      :root {
        --bg: #f4f4f2;
        --panel: #f4f4f2;
        --ink: #111;
        --muted: #83837c;
        --line: #d9d9d4;
        --yellow: #d6a400;
        --orange: #f97316;
        --blue: #2563eb;
        --red: #e11d48;
        --green: #007a4d;
        --state-functionality: #f7f6f0;
        --state-simplicity: #f5b43b;
        --state-rationality: #e91f2a;
        --state-innovation: #1478c8;
        --panel-heading-size: 14px;
        --panel-heading-weight: 200;
        --panel-subtitle-size: 12px;
        --panel-subtitle-weight: 200;
        --keyboard-inset: 0px;
      }

      [hidden] {
        display: none !important;
      }

      * { box-sizing: border-box; }

      html,
      body {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        overflow-x: hidden;
        overscroll-behavior: none;
        overscroll-behavior-x: none;
        background: var(--bg);
      }

      body {
        margin: 0;
        min-height: 0;
        background: var(--bg);
        color: var(--ink);
        font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
      }

      button, textarea, input { font: inherit; }
      button { cursor: pointer; }

      .app-splash {
        position: fixed;
        inset: 0;
        z-index: 10000;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 18px;
        background: var(--bg);
        color: rgba(17, 17, 17, .64);
        opacity: 1;
        visibility: visible;
        transition: opacity 320ms ease, visibility 0s linear 320ms;
      }

      .app-splash img {
        display: block;
        width: min(58vw, 240px);
        height: auto;
      }

      .app-splash span {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .22em;
      }

      html.app-ready,
      html.app-ready body {
        background: var(--bg);
      }

      html.app-ready .app-splash {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
      }

      @media (prefers-reduced-motion: reduce) {
        .app-splash { transition: none; }
      }

      .phone,
      .phone *,
      .phone *::before,
      .phone *::after {
        box-sizing: border-box;
      }

      .stage {
        position: fixed;
        top: 0;
        right: 0;
        bottom: auto;
        left: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        overflow-x: hidden;
        overscroll-behavior: none;
        background: var(--bg);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
      }

      .phone {
        position: relative;
        width: min(100vw, 430px);
        height: min(calc(100dvh - 48px), 880px);
        min-height: min(720px, calc(100dvh - 48px));
        overflow: hidden;
        overflow-x: hidden;
        overscroll-behavior: none;
        touch-action: none;
        contain: layout paint;
        background: var(--panel);
        border: 8px solid #111;
        border-radius: 34px;
      }

      .notch {
        position: absolute;
        left: 50%;
        top: 9px;
        z-index: 20;
        width: 92px;
        height: 6px;
        transform: translateX(-50%);
        border-radius: 999px;
        background: #c9c9c4;
      }

      .screen {
        height: 100%;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
      }

      .start,
      .app {
        position: relative;
        z-index: 2;
      }

      .start {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 44px 20px 20px;
        min-height: 0;
        overflow: hidden;
        overscroll-behavior: none;
        scrollbar-width: none;
        touch-action: none;
      }

      .start::-webkit-scrollbar {
        display: none;
      }

      .home-toolbar {
        position: relative;
        z-index: 4;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid var(--line);
        padding: 0 20px 14px;
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: 0;
      }

      .home-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
      }

      .software-button,
      .device-entry-button,
      .ownapp-entry-button,
      .hub-entry-button,
      .task-list-button {
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
      }

      .user-avatar {
        width: 44px;
        height: 44px;
        aspect-ratio: 1 / 1;
        min-width: 44px;
        min-height: 44px;
        flex: 0 0 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: transparent;
        color: #111;
        overflow: hidden;
        padding: 0;
        appearance: none;
        -webkit-appearance: none;
        touch-action: manipulation;
        position: relative;
        z-index: 2;
        outline: none;
        -webkit-tap-highlight-color: transparent;
      }

      .user-avatar:focus,
      .user-avatar:focus-visible {
        outline: none;
        box-shadow: none;
      }

      .user-avatar i {
        font-size: 14px;
      }

      .user-avatar i[hidden],
      .user-avatar img[hidden],
      .profile-avatar i[hidden],
      .profile-avatar img[hidden] {
        display: none !important;
      }

      .user-avatar img,
      .profile-avatar img {
        width: 100%;
        height: 100%;
        min-width: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center;
        border-radius: inherit;
        clip-path: circle(50% at 50% 50%);
        display: block;
      }

      .ownapp-entry-button,
      .hub-entry-button,
      .task-list-button {
        min-height: 34px;
        border-color: var(--line);
        background: transparent;
        color: #111;
      }

      .ownapp-entry-button i {
        font-size: 15px;
      }

      .memory-panel,
      .device-panel,
      .hub-panel,
      .ownapp-panel {
        position: absolute;
        inset: 0;
        z-index: 18;
        display: flex;
        flex-direction: column;
        padding: 52px 20px 24px;
        background: var(--panel);
        max-width: 100%;
        overflow-x: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        pointer-events: none;
        transition: opacity 220ms ease, transform 260ms cubic-bezier(0.16, 0.82, 0.22, 1), visibility 0s linear 260ms;
      }

      .device-panel {
        z-index: 130;
      }

      .phone.device-panel-open > :not(.device-panel):not(.notch) {
        visibility: hidden !important;
        pointer-events: none !important;
      }

      .phone.device-panel-open > .device-panel {
        visibility: visible !important;
      }

      .phone.overlay-panel-open > .start,
      .phone.overlay-panel-open > .task-panel,
      .phone.overlay-panel-open > .app,
      .phone.overlay-panel-open > .sheet-layer,
      .phone.overlay-panel-open > .timeline,
      .phone.overlay-panel-open > .modal-layer,
      .phone.overlay-panel-open > .runtime-input {
        visibility: hidden !important;
        pointer-events: none !important;
      }

      .memory-panel.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
        transition-delay: 0s;
      }

      .device-panel.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
        transition-delay: 0s;
      }

      .device-panel-title {
        min-width: 0;
      }

      .device-panel-title p {
        margin-top: 4px;
        color: var(--muted);
        font-size: var(--panel-subtitle-size);
        font-weight: var(--panel-subtitle-weight);
      }

      .device-header-button {
        width: 40px;
        height: 40px;
        min-height: 40px;
        margin-left: auto;
        padding: 0;
      }

      .device-panel-body {
        min-height: 0;
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
        scrollbar-width: none;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
      }

      .device-panel-body::-webkit-scrollbar {
        display: none;
      }

      .device-status {
        min-height: 38px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        color: var(--muted);
        font-size: 12px;
      }

      .device-status[data-tone="ok"] {
        border-color: #8ac69d;
        color: #285d39;
        background: #f3fbf5;
      }

      .device-status[data-tone="error"] {
        border-color: #d7a09d;
        color: #8b2c26;
        background: #fff6f5;
      }

      .device-card,
      .device-list-section {
        margin-top: 14px;
        padding: 14px;
        border: 1px solid var(--line);
        background: #fff;
      }

      .device-card h3,
      .device-list-section h3 {
        margin: 0 0 10px;
        font-size: 14px;
      }

      .device-card p,
      .device-card small,
      .device-id,
      .device-list-card span {
        display: block;
        margin-top: 6px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.45;
        overflow-wrap: anywhere;
      }

      .device-card code,
      .device-list-card code {
        display: block;
        margin-top: 10px;
        padding: 8px;
        border: 1px solid var(--line);
        background: #f5f5f2;
        font-size: 10px;
        line-height: 1.5;
        overflow-wrap: anywhere;
        user-select: all;
      }

      .device-card textarea {
        width: 100%;
        margin: 10px 0;
        padding: 10px;
        resize: vertical;
        border: 1px solid var(--line);
        background: #fff;
        font: inherit;
        font-size: 12px;
      }

      .device-primary-actions {
        display: grid;
        margin-top: 12px;
      }

      .device-offer-code {
        font-size: 28px;
        font-weight: 700;
        letter-spacing: .16em;
      }

      .device-list {
        display: grid;
        gap: 10px;
      }

      .device-list-card {
        padding-top: 10px;
        border-top: 1px solid var(--line);
      }

      .device-list-card:first-child {
        padding-top: 0;
        border-top: 0;
      }

      .device-card-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 10px;
      }

      .device-card-actions .btn {
        min-height: 34px;
        padding: 7px 10px;
      }

      .device-short-code {
        font-weight: 700;
        color: #111 !important;
      }

      .owner-identity-card {
        display: grid;
        gap: 10px;
      }

      .owner-identity-card[hidden] {
        display: none;
      }

      .owner-identity-card > p,
      .owner-identity-card > small {
        margin: 0;
      }

      .owner-identity-grid {
        display: grid;
        gap: 8px;
      }

      .owner-identity-field {
        min-width: 0;
      }

      .owner-identity-field > span {
        display: block;
        margin-bottom: 4px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 700;
      }

      .owner-identity-field > div {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
      }

      .owner-identity-field code {
        min-width: 0;
        margin: 0;
        border-right: 0;
      }

      .owner-identity-copy {
        min-width: 50px;
        border: 1px solid var(--line);
        background: #fff;
        color: #111;
        font: inherit;
        font-size: 10px;
        font-weight: 700;
      }

      .device-empty {
        color: var(--muted);
        font-size: 12px;
      }

      .hub-panel.show,
      .ownapp-panel.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
        transition-delay: 0s;
      }

      .memory-head {
        display: flex;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid var(--line);
        padding-bottom: 14px;
        flex: 0 0 auto;
      }

      .memory-head h2 {
        font-size: var(--panel-heading-size);
        font-weight: var(--panel-heading-weight);
        line-height: 1.15;
      }

      .memory-panel-title {
        min-width: 0;
      }

      .memory-panel-subtitle {
        margin-top: 4px;
        color: var(--muted);
        font-size: var(--panel-subtitle-size);
        font-weight: var(--panel-subtitle-weight);
        line-height: 1.2;
      }

      .memory-info-button {
        width: 40px;
        height: 40px;
        min-height: 40px;
        margin-left: auto;
        padding: 0;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
      }

      .ownapp-panel-subtitle {
        margin-top: 4px;
        color: var(--muted);
        font-size: var(--panel-subtitle-size);
        font-weight: var(--panel-subtitle-weight);
      }

      .hub-panel-title {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
      }

      .hub-panel-title h2 {
        font-size: var(--panel-heading-size);
        font-weight: var(--panel-heading-weight);
      }

      .hub-panel-subtitle {
        margin-top: 4px;
        color: var(--muted);
        font-size: var(--panel-subtitle-size);
        font-weight: var(--panel-subtitle-weight);
        line-height: 1.2;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
      }

      .hub-panel-subtitle::-webkit-scrollbar { display: none; }

      .memory-guidelines {
        position: absolute;
        top: 108px;
        left: 20px;
        right: 20px;
        z-index: 3;
        margin: 0;
        padding: 14px;
        border: 1px solid var(--line);
        background: var(--panel);
        box-shadow: 0 12px 30px rgba(17, 17, 17, .08);
      }

      .memory-guidelines strong {
        display: block;
        font-size: 13px;
        margin-bottom: 6px;
      }

      .memory-guidelines p {
        color: #55554f;
        font-size: 12px;
        line-height: 1.55;
      }

      .hub-panel-actions {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        flex: 0 0 auto;
      }

      .hub-view-icon-switch {
        width: 80px;
        height: 40px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: hidden;
        border: 1px solid var(--line);
        background: #fff;
      }

      .hub-view-icon-switch button {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        border: 0;
        border-right: 1px solid var(--line);
        background: transparent;
        padding: 0;
        color: #777771;
        font-size: 12px;
      }

      .hub-view-icon-switch button:last-child { border-right: 0; }
      .hub-view-icon-switch button.is-active { background: #111; color: #fff; }
      .hub-view-icon-switch button:focus-visible {
        position: relative;
        z-index: 1;
        outline: 2px solid #1769e0;
        outline-offset: -2px;
      }

      .hub-action-button {
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
      }

      .hub-action-button i {
        font-size: 14px;
      }

      .hub-asset-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        display: block;
        padding: 18px 0 8px;
        scrollbar-width: none;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
      }

      .hub-asset-list::-webkit-scrollbar {
        display: none;
      }

      .hub-window-status {
        padding: 14px 0 8px;
        color: var(--muted);
        font-size: 11px;
        text-align: center;
      }

      .hub-batch-progress {
        flex: 0 0 auto;
        padding: 12px 0 2px;
      }

      .hub-batch-progress-copy {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 7px;
        font-size: 11px;
      }

      .hub-batch-progress-copy strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .hub-batch-progress-copy span {
        flex: 0 0 auto;
        color: var(--muted);
      }

      .hub-batch-progress-track,
      .hub-upload-progress {
        height: 5px;
        background: rgba(17,17,17,0.08);
        overflow: hidden;
      }

      .hub-batch-progress-track span,
      .hub-upload-progress span {
        display: block;
        width: var(--hub-upload-progress, 0%);
        height: 100%;
        background: #111;
        transition: width 120ms linear;
      }

      .hub-asset-empty {
        border-bottom: 1px solid var(--line);
        background: transparent;
        padding: 16px 0;
      }

      .hub-asset-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        align-content: start;
      }

      .hub-asset-card {
        min-width: 0;
        position: relative;
        border: 0;
        background: transparent;
        padding: 0;
        display: grid;
        gap: 8px;
        align-content: start;
        color: #111;
        text-align: left;
        cursor: pointer;
      }

      .hub-asset-card.is-selecting .hub-asset-thumb {
        box-shadow: inset 0 0 0 2px rgba(17,17,17,0.18);
      }

      .hub-asset-card.is-selected .hub-asset-thumb {
        box-shadow: inset 0 0 0 3px #111;
      }

      .hub-asset-check {
        position: absolute;
        top: 7px;
        right: 7px;
        width: 22px;
        height: 22px;
        border: 1px solid rgba(17,17,17,0.24);
        background: rgba(255,255,255,0.88);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        color: transparent;
        font-size: 12px;
      }

      .hub-asset-card.is-selected .hub-asset-check {
        background: #111;
        border-color: #111;
        color: #fff;
      }

      .hub-asset-thumb {
        width: 100%;
        aspect-ratio: 1 / 1;
        min-height: 0;
        border: 1px solid var(--line);
        background: var(--state-context);
        display: grid;
        place-items: center;
        overflow: hidden;
      }

      .hub-asset-thumb img,
      .hub-asset-thumb video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        background: var(--panel-soft);
      }

      .hub-asset-thumb-icon {
        color: #111;
        font-size: 28px;
      }

      .hub-asset-thumb-video {
        position: relative;
        background: #111;
      }

      .hub-asset-thumb-video span {
        position: absolute;
        inset: auto 8px 8px auto;
        width: 26px;
        height: 26px;
        background: rgba(17,17,17,0.76);
        color: #fff;
        display: grid;
        place-items: center;
        font-size: 10px;
      }

      .hub-asset-thumb-text {
        align-content: start;
        justify-items: stretch;
        gap: 8px;
        padding: 10px;
        background: #fff;
      }

      .hub-asset-thumb-text small,
      .hub-asset-thumb-file span {
        color: #55554f;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0;
      }

      .hub-asset-thumb-text p {
        margin: 0;
        color: #111;
        font-size: 10px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: anywhere;
      }

      .hub-asset-thumb-file {
        gap: 8px;
      }

      .hub-asset-thumb-file i {
        font-size: 28px;
      }

      .hub-asset-card.pending .hub-asset-thumb {
        opacity: .74;
      }

      .hub-asset-card.failed .hub-asset-thumb {
        border-color: rgba(201, 72, 58, .42);
        color: #a64237;
        background: rgba(201, 72, 58, .08);
      }

      .hub-asset-placeholder {
        max-width: 160px;
      }

      .hub-asset-card strong {
        overflow-wrap: anywhere;
        line-height: 1.25;
        font-size: 12px;
      }

      .hub-asset-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 750;
      }

      .hub-bottom-action,
      .ownapp-delete-bar {
        position: sticky;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 8;
        margin-top: 14px;
        padding: 10px 0 0;
        border-top: 0;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .hub-bottom-action[hidden],
      .ownapp-delete-bar[hidden] {
        display: none;
      }

      .hub-bottom-action span,
      .ownapp-delete-bar span {
        color: #55554f;
        font-size: 12px;
        font-weight: 750;
      }

      .hub-detail-panel {
        position: absolute;
        inset: 0;
        z-index: 16;
        display: none;
      }

      .hub-detail-panel.show {
        display: block;
      }

      .hub-detail-scrim {
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.62);
      }

      .hub-detail-card {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 72%;
        overflow-y: auto;
        background: #fff;
        border-top: 1px solid var(--line);
        padding: 16px;
        box-shadow: 0 -18px 42px rgba(17,17,17,0.16);
      }

      .hub-detail-card header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line);
      }

      .hub-detail-card h3 {
        min-width: 0;
        font-size: 18px;
        line-height: 1.2;
        overflow-wrap: anywhere;
      }

      .hub-detail-body {
        display: grid;
        gap: 12px;
        padding: 14px 0;
      }

      .hub-detail-preview {
        width: 100%;
        aspect-ratio: 1.8;
        border: 1px solid var(--line);
        background: var(--state-context);
        display: grid;
        place-items: center;
        overflow: hidden;
      }

      .hub-detail-preview img,
      .hub-detail-preview video {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }

      .hub-detail-preview-image {
        aspect-ratio: auto;
        min-height: 0;
        overflow: visible;
        background: var(--panel-soft);
      }

      .hub-detail-preview-image img {
        width: 100%;
        height: auto;
        max-height: 52vh;
        object-fit: contain;
        display: block;
      }

      .hub-detail-preview i {
        font-size: 36px;
      }

      .hub-detail-preview-audio {
        aspect-ratio: auto;
        min-height: 220px;
        grid-template-rows: minmax(160px, 1fr) auto;
        gap: 12px;
        padding: 12px;
      }

      .hub-detail-preview-audio img {
        width: 100%;
        height: min(260px, 46vh);
        max-height: 260px;
        object-fit: contain;
        background: var(--panel-soft);
      }

      .hub-detail-preview-audio audio {
        width: 100%;
      }

      .hub-detail-preview-text {
        aspect-ratio: auto;
        min-height: 220px;
        align-content: start;
        justify-items: stretch;
        gap: 10px;
        padding: 14px;
        background: #fff;
      }

      .hub-detail-preview-text small {
        color: #55554f;
        font-size: 11px;
        font-weight: 900;
      }

      .hub-detail-preview-text pre {
        margin: 0;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        color: #111;
        font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      }

      .hub-detail-preview-file {
        gap: 10px;
      }

      .hub-detail-preview-file strong {
        font-size: 16px;
      }

      .hub-detail-row {
        display: grid;
        gap: 4px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--line);
      }

      .hub-detail-row span {
        color: var(--muted);
        font-size: 11px;
        font-weight: 750;
        text-transform: uppercase;
      }

      .hub-detail-row strong {
        font-size: 13px;
        line-height: 1.4;
        overflow-wrap: anywhere;
      }

      .hub-detail-delete {
        width: 100%;
      }

      .hub-cover-actions {
        display: grid;
        gap: 12px;
        padding: 14px 0 2px;
        border-top: 1px solid var(--line);
      }

      .hub-cover-actions > div:first-child {
        display: grid;
        gap: 3px;
      }

      .hub-cover-actions span,
      .hub-cover-candidate-head span {
        color: var(--muted);
        font-size: 11px;
      }

      .hub-cover-action-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
      }

      .hub-cover-action-grid button {
        min-height: 66px;
        border: 1px solid #111;
        background: #fff;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 5px;
        font-weight: 850;
      }

      .hub-cover-action-grid button:hover {
        border-color: #111;
        background: var(--panel-soft);
      }
      .hub-cover-action-grid small { font-size: 9px; font-weight: 900; }

      .hub-cover-candidate-list {
        display: grid;
        gap: 10px;
        padding: 12px 0 16px;
      }

      .hub-cover-candidate-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
      }

      .hub-cover-candidate-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
      }

      .hub-cover-candidate-grid button {
        aspect-ratio: 1;
        padding: 0;
        border: 2px solid transparent;
        background: var(--panel-soft);
        overflow: hidden;
      }

      .hub-cover-candidate-grid button:hover { border-color: #111; }
      .hub-cover-candidate-grid img { width: 100%; height: 100%; object-fit: contain; }
      .hub-cover-loading, .hub-cover-empty { margin: 0; padding: 12px; background: var(--panel-soft); color: var(--muted); }
      .hub-cover-generate-placeholder { padding: 14px; border: 1px solid var(--line); background: var(--panel-soft); color: #111; }
      .hub-cover-generate-placeholder p { margin: 7px 0; line-height: 1.5; }
      .hub-cover-generate-placeholder div { display: flex; flex-wrap: wrap; gap: 6px; }
      .hub-cover-generate-placeholder span { padding: 4px 6px; border: 1px solid var(--line-strong); background: #fff; color: #111; font-weight: 850; }

      .hub-asset-empty {
        color: var(--muted);
        line-height: 1.6;
      }

      .ownapp-panel-actions {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
      }

      .ownapp-panel-actions[hidden] {
        display: none !important;
      }

      .ownapp-panel-actions[hidden] * {
        display: none !important;
      }

      .ownapp-action-button {
        width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
      }

      .ownapp-action-button i {
        font-size: 14px;
      }

      .ownapp-library-view,
      .ownapp-runner-view {
        flex: 1 1 auto;
        min-height: 0;
      }

      .ownapp-library-view {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        padding-top: 18px;
        scrollbar-width: none;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
      }

      .ownapp-library-view::-webkit-scrollbar {
        display: none;
      }

      .ownapp-panel-status {
        min-height: 24px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 750;
        margin-bottom: 18px;
      }

      .ownapp-package-progress {
        height: 4px;
        margin: -10px 0 18px;
        overflow: hidden;
        background: color-mix(in srgb, var(--ink) 10%, transparent);
      }

      .ownapp-package-progress[hidden] {
        display: none;
      }

      .ownapp-package-progress span {
        display: block;
        width: 0;
        height: 100%;
        background: var(--ink);
        transition: width 160ms linear;
      }

      .ownapp-package-resume {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: -6px 0 18px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        background: rgba(255,255,255,.42);
      }

      .ownapp-package-resume[hidden] {
        display: none !important;
      }

      .ownapp-package-resume span {
        min-width: 0;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.4;
        overflow-wrap: anywhere;
      }

      .ownapp-package-resume-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
      }

      .ownapp-package-resume .btn {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 7px 10px;
        gap: 6px;
      }

      .ownapp-package-resume-actions .btn.secondary {
        width: 34px;
        padding: 7px;
      }

      .ownapp-package-resume-actions .btn > span:not(.sr-only) {
        color: inherit;
        font-size: inherit;
        line-height: inherit;
        overflow-wrap: normal;
      }

      .ownapp-icon-list {
        display: grid;
        gap: 10px;
        align-content: start;
      }

      .ownapp-mini-tile {
        min-width: 0;
        position: relative;
        width: 100%;
        min-height: 78px;
        border: 1px solid var(--line);
        background: transparent;
        padding: 10px;
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        color: #111;
        text-align: left;
      }

      .ownapp-mini-tile:hover .ownapp-mini-icon {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(17,17,17,0.16);
      }

      .ownapp-mini-tile.is-selecting:hover .ownapp-mini-icon {
        transform: none;
      }

      .ownapp-mini-tile.is-selected .ownapp-mini-icon {
        box-shadow: inset 0 0 0 3px #111, 0 10px 22px rgba(17,17,17,0.10);
      }

      .ownapp-select-check {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 2;
        width: 22px;
        height: 22px;
        border: 1px solid rgba(17,17,17,0.22);
        background: rgba(255,255,255,0.9);
        display: grid;
        place-items: center;
        color: transparent;
        font-size: 12px;
      }

      .ownapp-mini-tile.is-selected .ownapp-select-check {
        background: #111;
        border-color: #111;
        color: #fff;
      }

      .ownapp-mini-icon {
        width: 56px;
        height: 56px;
        border: 1px solid rgba(17,17,17,0.12);
        border-radius: 15px;
        display: grid;
        place-items: center;
        background:
          linear-gradient(145deg, rgba(255,255,255,0.28), rgba(255,255,255,0)),
          #00c96b;
        color: #fff;
        font-size: 23px;
        box-shadow: 0 10px 22px rgba(17,17,17,0.10);
        transition: transform 180ms ease, box-shadow 180ms ease;
      }

      .ownapp-mini-icon.general {
        background:
          linear-gradient(145deg, rgba(255,255,255,0.28), rgba(255,255,255,0)),
          #111;
      }

      .ownapp-mini-copy {
        min-width: 0;
        display: grid;
        gap: 4px;
      }

      .ownapp-mini-copy strong {
        width: 100%;
        color: #111;
        font-size: 13px;
        font-weight: 850;
        line-height: 1.25;
        overflow-wrap: anywhere;
      }

      .ownapp-mini-copy > span {
        min-width: 0;
        color: var(--muted);
        font-size: 11px;
        font-weight: 750;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .ownapp-mini-state {
        justify-self: end;
        min-width: 58px;
        border: 1px solid rgba(17,17,17,0.1);
        background: rgba(17,17,17,0.06);
        padding: 5px 7px;
        color: #111;
        font-size: 11px;
        font-weight: 850;
        text-align: center;
        display: grid;
        gap: 5px;
        justify-items: center;
      }

      .ownapp-mini-state.done {
        width: 9px;
        height: 9px;
        min-width: 9px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #00c853;
      }

      .ownapp-mini-state.coding {
        border-color: rgba(0,76,255,0.24);
        background: #fff;
        color: #004cff;
      }

      .ownapp-mini-state.failed {
        border-color: #ff1f4b;
        background: #ff3158;
        color: #fff;
      }

      .ownapp-mini-state.used {
        border-color: #ffce00;
        background: #ffdc00;
        color: #111;
      }

      .ownapp-mini-state.running {
        border-color: rgba(17,17,17,0.22);
        background: #111;
        color: #fff;
      }

      .ownapp-mini-progress {
        width: 50px;
        height: 5px;
        border-radius: 999px;
        background: rgba(0,76,255,0.16);
        overflow: hidden;
      }

      .ownapp-panel.running-ownapp {
        padding: 0;
        background: var(--bg, #f4f4f2);
      }

      .ownapp-panel.running-ownapp > .memory-head {
        display: none;
      }

      .ownapp-panel.running-ownapp .ownapp-runner-view {
        width: 100%;
        max-width: 100%;
        height: 100%;
        margin: 0;
        border: 0;
        background: var(--bg, #f4f4f2);
      }

      .ownapp-runtime-controls {
        position: absolute;
        z-index: 5;
        top: calc(8px + env(safe-area-inset-top, 0px));
        right: 8px;
        display: inline-flex;
        gap: 2px;
        padding: 3px;
        border: 1px solid rgba(17,17,17,.12);
        border-radius: 999px;
        background: rgba(244,244,242,.88);
        box-shadow: 0 8px 24px rgba(17,17,17,.10);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
      }

      .ownapp-runtime-controls .btn {
        width: 32px;
        height: 32px;
        min-height: 32px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
      }

      .ownapp-runtime-controls .btn:active {
        background: rgba(17,17,17,.08);
      }

      .ownapp-panel.ownapp-modal-active .ownapp-runtime-controls {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
      }

      .ownapp-mini-progress span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: #004cff;
      }

      .ownapp-empty {
        grid-column: 1 / -1;
        min-height: 260px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 10px;
        color: var(--muted);
        text-align: center;
        line-height: 1.6;
      }

      .ownapp-empty i {
        width: 64px;
        height: 64px;
        border: 1px solid var(--line);
        display: grid;
        place-items: center;
        color: #111;
        font-size: 24px;
      }

      .ownapp-empty strong {
        color: #111;
      }

      .ownapp-runner-view {
        width: calc(100% + 40px);
        max-width: calc(100% + 40px);
        margin: 14px -20px -24px;
        border-top: 1px solid var(--line);
        background: #fff;
        position: relative;
        overflow: hidden;
      }

      .ownapp-runner-status {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: grid;
        place-items: center;
        padding: 24px;
        color: var(--muted);
        background: #fff;
        text-align: center;
        line-height: 1.6;
      }

      .ownapp-runner-status[hidden] {
        display: none;
      }

      .ownapp-runner-view iframe {
        width: 100%;
        max-width: 100%;
        height: 100%;
        min-height: 0;
        border: 0;
        display: block;
        background: #fff;
      }

      .memory-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 8px;
        scrollbar-width: none;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
      }

      .memory-list::-webkit-scrollbar {
        display: none;
      }

      .memory-card,
      .memory-empty {
        border: 0;
        border-bottom: 1px solid var(--line);
        background: transparent;
        padding: 16px 0;
      }

      .memory-card-head,
      .memory-meta,
      .memory-tags {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
      }

      .memory-card-head {
        margin-bottom: 10px;
      }

      .memory-topic,
      .memory-type,
      .memory-tags span {
        border: 1px solid var(--line);
        padding: 3px 7px;
        font-size: 11px;
        color: #55554f;
        background: var(--state-functionality);
      }

      .memory-topic {
        color: #111;
        font-weight: 700;
      }

      .memory-card p,
      .memory-empty p {
        font-size: 14px;
        line-height: 1.6;
        color: #222;
      }

      .memory-tags {
        margin-top: 12px;
      }

      .memory-meta {
        justify-content: space-between;
        margin-top: 12px;
        color: var(--muted);
        font-size: 11px;
      }

      .memory-delete {
        width: 100%;
        margin-top: 12px;
        min-height: 34px;
        justify-content: center;
        gap: 6px;
      }

      .memory-empty {
        color: var(--muted);
      }

      .memory-empty strong {
        display: block;
        margin-bottom: 8px;
        color: #111;
      }

      h1, h2, h3, p { margin: 0; }

      .home-main {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        position: relative;
        z-index: 1;
        margin-left: -20px;
        margin-right: -20px;
        padding: 8px 20px 0;
        background: var(--panel);
        box-shadow: 0 -1px 0 var(--line);
        transition: box-shadow 620ms cubic-bezier(0.18, 0.82, 0.2, 1);
      }

      .home-greeting {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        position: relative;
        margin: 8px -20px 12px;
        padding: 0 20px;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: hidden;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
      }

      .home-bubble {
        width: min(100%, 320px);
        border-radius: 26px 26px 26px 8px;
        padding: 26px 24px 28px;
        border: 0;
        background: #111;
        color: #fff;
        text-align: left;
        box-shadow: 0 20px 34px rgba(0, 0, 0, 0.12);
      }

      .home-greeting-entry {
        display: block;
        flex: 0 0 auto;
        margin-top: 0;
        cursor: pointer;
      }

      .home-greeting-entry:focus-visible {
        outline: 3px solid var(--blue);
        outline-offset: 4px;
      }

      .home-greeting-entry:disabled {
        opacity: .72;
        cursor: wait;
      }

      .home-bubble-title {
        display: block;
        font-size: clamp(26px, 7vw, 27px);
        line-height: 1.18;
        letter-spacing: 0;
      }

      .home-bubble-tagline {
        display: none !important;
      }

      .suggestion-cloud {
        position: relative;
        min-height: 292px;
        margin-top: 18px;
      }

      .suggestion-chip {
        position: absolute;
        left: var(--chip-x, 0px);
        top: var(--chip-y, 0px);
        max-width: 304px;
        width: var(--chip-width, auto);
        border: 0;
        border-radius: 999px;
        padding: 0;
        background: transparent;
        color: #111;
        font-size: 12px;
        font-weight: 750;
        line-height: 1.25;
        text-align: left;
        white-space: nowrap;
        overflow: visible;
        text-overflow: ellipsis;
        transform: rotate(var(--chip-rotate, 0deg)) translateZ(0);
        animation-duration: var(--chip-speed, 2.8s);
        will-change: left, top, width, transform;
        backface-visibility: hidden;
        transition:
          left 540ms cubic-bezier(0.16, 0.84, 0.2, 1),
          top 540ms cubic-bezier(0.16, 0.84, 0.2, 1),
          transform 540ms cubic-bezier(0.16, 0.84, 0.2, 1),
          width 760ms cubic-bezier(0.16, 0.84, 0.2, 1);
      }

      .suggestion-chip::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        border: 1px solid var(--line);
        border-radius: inherit;
        background: #ecece8;
        box-shadow: 0 10px 18px rgba(0,0,0,0.04);
        transform: translateZ(0) scale(1);
        transform-origin: 50% 50%;
        will-change: box-shadow;
        backface-visibility: hidden;
      }

      .suggestion-chip-inner {
        position: relative;
        z-index: 1;
        display: block;
        width: 100%;
        padding: 9px var(--chip-pad-x, 13px);
        overflow: hidden;
        text-overflow: ellipsis;
        transform: translateZ(0);
        transform-origin: 50% 50%;
        backface-visibility: hidden;
      }

      .suggestion-chip:hover {
        background: transparent;
      }

      .suggestion-chip:hover::before {
        background: #fff;
      }

      .suggestion-chip.diagnostic,
      .suggestion-chip:disabled {
        cursor: default;
        color: #555;
        pointer-events: none;
      }

      .suggestion-chip.diagnostic::before,
      .suggestion-chip:disabled::before {
        background: #f7f7f5;
        border-style: dashed;
        box-shadow: none;
      }

      .suggestion-chip.loading {
        animation:
          chipBreathing
          var(--chip-speed, 5.8s)
          var(--chip-delay, 0s)
          cubic-bezier(0.34, 0, 0.16, 1)
          infinite;
        transform-origin: 50% 50%;
      }

      .suggestion-chip.loading::before {
        animation:
          chipBreathingShadow
          var(--chip-speed, 5.8s)
          var(--chip-delay, 0s)
          cubic-bezier(0.34, 0, 0.16, 1)
          infinite;
      }

      .suggestion-chip.arrived {
        animation: chipJelly var(--chip-jelly-duration, 1480ms) cubic-bezier(0.12, 1.18, 0.18, 1.02) both;
      }

      .suggestion-chip.arrived::before {
        animation: chipJellyShadow var(--chip-jelly-duration, 1480ms) cubic-bezier(0.12, 1.18, 0.18, 1.02) both;
      }

      @keyframes chipBreathing {
        0%, 100% {
          transform: rotate(var(--chip-rotate, 0deg)) translateZ(0) scale(1);
        }
        44% {
          transform: rotate(var(--chip-rotate, 0deg)) translateZ(0) scale(var(--chip-breath-scale, 1.08));
        }
        68% {
          transform: rotate(var(--chip-rotate, 0deg)) translateZ(0) scale(var(--chip-breath-return-scale, 1.025));
        }
        86% {
          transform: rotate(var(--chip-rotate, 0deg)) translateZ(0) scale(0.985);
        }
      }

      @keyframes chipBreathingShadow {
        0%, 100% {
          box-shadow: 0 10px 18px rgba(0,0,0,0.04);
        }
        44% {
          box-shadow: 0 18px 30px rgba(0,0,0,var(--chip-breath-shadow, 0.12));
        }
        68% {
          box-shadow: 0 13px 22px rgba(0,0,0,0.07);
        }
      }

      @keyframes chipJelly {
        0% { transform: rotate(var(--chip-rotate, 0deg)) translateZ(0) scale(0.88, 1.18); }
        24% { transform: rotate(var(--chip-rotate, 0deg)) translateZ(0) scale(1.18, 0.86); }
        48% { transform: rotate(var(--chip-rotate, 0deg)) translateZ(0) scale(0.93, 1.12); }
        72% { transform: rotate(var(--chip-rotate, 0deg)) translateZ(0) scale(1.06, 0.96); }
        88% { transform: rotate(var(--chip-rotate, 0deg)) translateZ(0) scale(0.985, 1.025); }
        100% { transform: rotate(var(--chip-rotate, 0deg)) translateZ(0) scale(1); }
      }

      @keyframes chipJellyShadow {
        0% { box-shadow: 0 10px 18px rgba(0,0,0,0.04); }
        24% { box-shadow: 0 24px 40px rgba(0,0,0,0.14); }
        72% { box-shadow: 0 17px 28px rgba(0,0,0,0.1); }
        100% { box-shadow: 0 10px 18px rgba(0,0,0,0.04); }
      }

      .suggestion-chip.chip-one {
        --chip-x: 10px;
        --chip-y: 0px;
        --chip-rotate: -4deg;
      }

      .suggestion-chip.chip-two {
        --chip-x: 178px;
        --chip-y: 34px;
        --chip-rotate: 5deg;
      }

      .suggestion-chip.chip-three {
        --chip-x: 38px;
        --chip-y: 78px;
        --chip-rotate: -2deg;
      }

      .suggestion-chip.chip-four {
        --chip-x: 4px;
        --chip-y: 126px;
        --chip-rotate: 4deg;
      }

      .suggestion-chip.chip-five {
        --chip-x: 162px;
        --chip-y: 148px;
        --chip-rotate: -5deg;
      }

      .suggestion-chip.chip-six {
        --chip-x: 62px;
        --chip-y: 190px;
        --chip-rotate: 3deg;
      }

      .config-panel {
        border: 1px solid var(--line);
        padding: 12px;
        margin-bottom: 12px;
        display: none;
        transition: transform 520ms cubic-bezier(0.18, 0.82, 0.2, 1);
      }

      .config-title {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.55;
      }

      .config-title strong {
        color: #111;
        font-size: 13px;
      }

      .config-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 10px;
      }

      .config-grid input,
      .config-grid select,
      .config-panel > input {
        width: 100%;
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: 0;
        background: transparent;
        padding: 10px 11px;
        outline: 0;
        font-size: 13px;
      }

      .config-panel > input { margin-top: 8px; }

      .composer {
        position: relative;
        z-index: 8;
        flex: 0 0 auto;
        border: 1px solid var(--line);
        padding: 12px;
        background: var(--panel);
        margin-top: auto;
        transition: transform 520ms cubic-bezier(0.18, 0.82, 0.2, 1);
      }

      .composer textarea {
        width: 100%;
        min-height: 106px;
        resize: none;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--ink);
        font-size: 15px;
        line-height: 1.75;
      }

      .composer-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        border-top: 1px solid var(--line);
        padding-top: 10px;
      }

      .composer-actions .attach-wrap {
        margin-right: auto;
      }

      .btn {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #111;
        border-radius: 0;
        padding: 0 14px;
        background: #111;
        color: #fff;
        font-size: 13px;
        font-weight: 850;
      }

      .btn.secondary {
        background: var(--panel);
        color: #111;
        border-color: var(--line);
      }

      .btn.voice {
        background: var(--panel);
        color: #1d4ed8;
        border-color: var(--blue);
      }

      .voice-icon {
        width: 40px;
        min-width: 40px;
        padding: 0;
      }

      .voice-icon i {
        font-size: 16px;
      }

      .btn.pass {
        min-height: 32px;
        border-radius: 999px;
        background: #fefce8;
        border-color: var(--yellow);
        color: #8a6200;
      }

      .app { display: none; }

      .task-panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 3;
        display: flex;
        flex-direction: column;
        background: var(--panel);
        box-shadow: none;
        transform: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        backface-visibility: hidden;
        transition: none;
        touch-action: pan-y;
      }

      .task-panel.show {
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }

      /* Flat surfaces are selected only by face-* visibility rules below. */
      .phone,
      .phone * {
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
      }

      .phone input,
      .phone textarea,
      .phone [contenteditable="true"],
      .phone .flow-message,
      .phone .flow-message * {
        user-select: text;
        -webkit-user-select: text;
        -webkit-touch-callout: default;
      }

      .task-panel header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        border-bottom: 1px solid var(--line);
        padding: 52px 16px 14px;
      }

      .task-panel-title {
        min-width: 0;
      }

      .task-panel h2 {
        font-size: var(--panel-heading-size);
        font-weight: var(--panel-heading-weight);
        line-height: 1.15;
        text-align: left;
        margin: 0;
      }

      .task-panel-subtitle {
        margin: 4px 0 0;
        color: var(--muted);
        font-size: var(--panel-subtitle-size);
        font-weight: var(--panel-subtitle-weight);
        line-height: 1.2;
      }

      .task-panel .back-button {
        flex: 0 0 34px;
      }

      .task-list {
        flex: 1;
        overflow-y: auto;
        padding: 0 16px 18px;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
      }

      .task-list-empty {
        padding: 22px 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.7;
      }

      .task-delete-notice {
        position: sticky;
        bottom: 10px;
        z-index: 8;
        margin: 10px 0 0;
        padding: 10px 12px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.94);
        color: #111;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(8px);
      }

      .task-delete-notice strong {
        display: block;
        font-size: 13px;
      }

      .task-delete-notice p {
        margin-top: 5px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.6;
      }

      .task-item {
        position: relative;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        align-items: center;
        border: 0;
        border-bottom: 1px solid var(--line);
        background: transparent;
        padding: 15px 0;
        color: #111;
        text-align: left;
      }

      .task-item h3 {
        font-size: 15px;
      }

      .task-item p {
        margin-top: 6px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.55;
      }

      .task-item time {
        display: block;
        margin-top: 8px;
        color: var(--muted);
        font-size: 11px;
      }

      .task-kind-icons {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 18px;
        color: rgba(17,17,17,.34);
        font-size: 10px;
      }

      .task-kind-icons i {
        width: 13px;
        text-align: center;
      }

      .task-delete {
        min-height: 30px;
        border-color: var(--line);
        background: transparent;
        color: var(--state-rationality);
        font-size: 12px;
      }

      .task-meta-actions {
        display: flex;
        align-items: center;
        gap: 6px;
      }

      .task-open {
        width: 100%;
        border: 0;
        background: transparent;
        padding: 0;
        text-align: left;
        color: inherit;
        cursor: pointer;
      }

      .task-time-with-id {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0;
        color: var(--muted);
        font-size: 11px;
      }

      .task-time-with-id time {
        display: inline;
        margin-top: 0;
      }

      .task-id-trigger {
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #b8b8b1;
        padding: 0;
        font-size: 11px;
      }

      .task-id-bubble {
        position: absolute;
        left: 0;
        top: 24px;
        z-index: 7;
        display: none;
        max-width: min(78vw, 360px);
        border: 1px solid var(--line);
        background: rgba(244,244,242,0.98);
        box-shadow: 0 10px 24px rgba(17,17,17,0.08);
        padding: 8px 10px;
        color: #666660;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 10px;
        line-height: 1.45;
        white-space: nowrap;
        overflow-x: auto;
      }

      .task-item.show-id .task-id-bubble {
        display: block;
      }

      .top {
        border-bottom: 1px solid var(--line);
        padding: 52px 16px 18px;
        background: rgba(244, 244, 242, 0.96);
      }

      .top-nav {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        align-items: center;
        gap: 12px;
        min-height: 34px;
      }

      .back-button {
        width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
        border-color: var(--line);
        background: transparent;
        color: #111;
      }

      .back-button i {
        font-size: 16px;
      }

      .title {
        min-width: 0;
        font-size: 16px;
        font-weight: 850;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .summary {
        width: 28px;
        height: 28px;
        min-height: 28px;
        flex: 0 0 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        padding: 0;
        background: transparent;
        color: #111;
        font-size: 15px;
        font-weight: 850;
        line-height: 1;
      }

      .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
      }

      .timeline-button {
        width: 34px;
        height: 34px;
        min-height: 34px;
        flex: 0 0 34px;
        padding: 0;
        border-color: var(--line);
        background: transparent;
        color: #111;
      }

      .known {
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        margin-top: 12px;
        border-top: 1px solid var(--line);
        padding-top: 0;
        transition:
          max-height 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
          opacity 240ms ease,
          transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
          padding-top 320ms ease;
      }

      .known.open {
        max-height: var(--known-height, 420px);
        opacity: 1;
        transform: translateX(0);
        padding-top: 8px;
      }

      .known-row {
        display: grid;
        grid-template-columns: 76px 1fr;
        gap: 10px;
        border-top: 1px solid #e5e5e1;
        padding: 8px 0 0;
        font-size: 12px;
        line-height: 1.55;
      }

      .known-row:first-child { border-top: 0; }
      .known-row span:first-child { color: var(--muted); }
      .known-row span:last-child {
        min-width: 0;
        font-weight: 800;
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 16px calc(var(--detail-input-height, 132px) + 18px);
        scrollbar-width: none;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
      }

      .content::-webkit-scrollbar { display: none; }

      .app.own-app-detail .completion,
      .app.own-app-detail .known,
      .app.own-app-detail .progress,
      .app.own-app-detail .result,
      .app.own-app-detail .bottom-actions {
        display: none !important;
      }

      .conversation-waterfall {
        display: grid;
        gap: 14px;
        padding: 16px 0 24px;
      }

      .flow-row {
        display: flex;
        align-items: flex-start;
        min-width: 0;
        max-width: 100%;
      }

      .flow-time-separator {
        justify-self: center;
        width: max-content;
        max-width: 100%;
        border: 1px solid var(--line);
        background: rgba(244,244,242,0.78);
        color: var(--muted);
        padding: 5px 9px;
        font-size: 11px;
        font-weight: 800;
      }

      .flow-row.user {
        justify-content: flex-end;
      }

      .flow-task-marker {
        justify-self: center;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 1px solid var(--line);
        background: rgba(244,244,242,0.9);
        color: #111;
        padding: 5px 9px;
        font-size: 11px;
        font-weight: 900;
      }

      .flow-message {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        border: 1px solid var(--line);
        background: var(--panel);
        padding: 12px 13px;
        font-size: 13px;
        line-height: 1.7;
      }

      .flow-row.user .flow-message {
        width: auto;
        max-width: 82%;
      }

      .flow-message-content {
        display: grid;
        gap: 8px;
        min-width: 0;
        max-width: 100%;
        user-select: text;
        -webkit-user-select: text;
      }

      .flow-message,
      .flow-message * {
        user-select: text;
        -webkit-user-select: text;
      }

      .flow-message-content p {
        margin: 0;
      }

      .flow-message-content h4,
      .flow-message-content h5 {
        margin: 2px 0 0;
        color: var(--ink);
        line-height: 1.35;
      }

      .flow-message-content h4 {
        font-size: 15px;
        font-weight: 900;
      }

      .flow-message-content h5 {
        font-size: 13px;
        font-weight: 900;
      }

      .flow-message-content ul,
      .flow-message-content ol {
        margin: 0;
        padding-left: 18px;
        display: grid;
        gap: 5px;
      }

      .flow-message-content li {
        padding-left: 2px;
      }

      .flow-message-content code {
        border: 1px solid var(--line);
        padding: 1px 4px;
        font-size: 0.94em;
        background: rgba(0,0,0,0.04);
      }

      .inline-source {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 17px;
        padding: 0 4px;
        margin: 0 2px;
        border: 0;
        border-radius: 8px;
        background: #111;
        color: #fff;
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
        vertical-align: 1px;
        cursor: pointer;
      }

      .inline-source:hover {
        background: #444;
      }

      .source-popover {
        position: fixed;
        z-index: 120;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(244,244,242,0.98);
        box-shadow: 0 18px 42px rgba(17,17,17,0.18);
        padding: 13px 36px 14px 14px;
        color: var(--ink);
      }

      .source-popover-meta {
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        margin-bottom: 6px;
      }

      .source-popover-title {
        display: block;
        color: var(--ink);
        font-size: 14px;
        font-weight: 950;
        line-height: 1.35;
        text-decoration: none;
      }

      a.source-popover-title:hover {
        text-decoration: underline;
      }

      .source-popover p {
        margin: 8px 0 0;
        color: #666660;
        font-size: 12px;
        line-height: 1.5;
      }

      .source-popover-close {
        position: absolute;
        right: 10px;
        top: 8px;
        width: 22px;
        height: 22px;
        border: 0;
        background: transparent;
        color: var(--muted);
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
      }

      .flow-sources {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 10px;
        padding-top: 9px;
        border-top: 1px solid var(--line);
      }

      .source-pill {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        max-width: 100%;
        gap: 6px;
        border: 1px solid var(--line);
        background: rgba(0,0,0,0.035);
        color: var(--ink);
        text-decoration: none;
        padding: 4px 7px 4px 5px;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.2;
      }

      .source-pill:hover {
        background: #111;
        color: #fff;
      }

      .source-pill img,
      .source-favicon {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        border-radius: 999px;
      }

      .source-pill img {
        object-fit: cover;
      }

      .source-favicon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border: 1px solid var(--line);
        color: #111;
        font-size: 10px;
        font-weight: 900;
      }

      .source-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 150px;
      }

      .source-number {
        color: var(--muted);
        font-size: 10px;
      }

      /* Reliability10-U1: keep all Chat min-content inside the message flow. */
      .content,
      .conversation-waterfall,
      .flow-row,
      .flow-message,
      .flow-message-content,
      .flow-message-content > *,
      .flow-sources,
      .source-pill,
      .pending-message,
      .pending-message-live,
      .flow-result-item,
      .flow-result-detail {
        min-inline-size: 0;
        max-inline-size: 100%;
        box-sizing: border-box;
      }

      .conversation-waterfall,
      .flow-row,
      .flow-message,
      .flow-message-content,
      .flow-sources {
        inline-size: 100%;
      }

      .flow-message-content,
      .flow-message-content :where(p, li, h4, h5, strong, em, a, span, blockquote),
      .source-popover-title,
      .source-popover p {
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .flow-message-content :where(p, li, h4, h5, strong, em, a, span, blockquote),
      .flow-message-content :where(img, video, canvas, svg) {
        min-inline-size: 0;
        max-inline-size: 100%;
      }

      .flow-message-content :where(img, video, canvas, svg) {
        block-size: auto;
      }

      .flow-message-content pre,
      .flow-message-content table {
        display: block;
        inline-size: 100%;
        max-inline-size: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
      }

      .flow-message-content pre {
        margin: 0;
        white-space: pre;
        overflow-wrap: normal;
        word-break: normal;
      }

      .flow-message-content pre code {
        display: inline-block;
        min-inline-size: max-content;
        border: 0;
        padding: 0;
        white-space: inherit;
        overflow-wrap: normal;
        word-break: normal;
      }

      .flow-message-content table {
        border-collapse: collapse;
      }

      .source-pill {
        flex: 0 1 auto;
      }

      .source-label {
        min-inline-size: 0;
        max-inline-size: 100%;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .source-popover {
        max-inline-size: calc(100vw - 24px);
        box-sizing: border-box;
      }

      .flow-option-summary {
        display: grid;
        gap: 7px;
        border-top: 1px solid var(--line);
        padding-top: 8px;
      }

      .flow-option-summary b {
        font-size: 12px;
        color: var(--muted);
      }

      .flow-option-summary ul {
        padding-left: 0;
        list-style: none;
        gap: 6px;
      }

      .flow-option-summary li {
        border: 1px solid var(--line);
        padding: 7px 8px;
        font-weight: 800;
        background: rgba(244,244,242,0.62);
      }

      .pending-message {
        width: min(100%, 430px);
        min-width: 180px;
      }

      .pending-message-live {
        display: grid;
        gap: 6px;
        min-width: 0;
      }

      .pending-message-live strong {
        font-size: 14px;
        font-weight: 500;
      }

      .pending-message-live p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.5;
      }

      .ai-running-dots {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 18px;
      }

      .ai-running-dots i {
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: #111;
        opacity: 0.28;
        animation: aiThinking 1.05s ease-in-out infinite;
      }

      .ai-running-dots i:nth-child(2) {
        animation-delay: 0.14s;
      }

      .ai-running-dots i:nth-child(3) {
        animation-delay: 0.28s;
      }

      @keyframes aiThinking {
        0%,
        70%,
        100% {
          transform: translateY(0) scale(0.72);
          opacity: 0.25;
        }
        35% {
          transform: translateY(-3px) scale(1);
          opacity: 0.9;
        }
      }

      .flow-row.user .flow-message {
        width: auto;
        max-width: 78%;
        background: #111;
        color: #fff;
        border-color: #111;
      }

      .user-attachments {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 120px));
        gap: 8px;
        margin-top: 10px;
        max-width: 260px;
      }

      .user-attachment-card {
        border: 1px solid rgba(255,255,255,0.22);
        background: rgba(255,255,255,0.08);
        color: #fff;
        padding: 0;
        min-width: 0;
        overflow: hidden;
      }

      .user-attachment-card.image {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        cursor: default;
      }

      .user-attachment-card.image img,
      .user-attachment-card.image video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        background: #111;
      }

      .user-attachment-card.file {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 9px;
        font-size: 12px;
      }

      .user-attachment-card.file span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .flow-actor {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 850;
      }

      .message-debug-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border: 1px solid var(--line);
        background: #fff;
        color: var(--muted);
        cursor: pointer;
      }

      .message-debug-trigger:hover,
      .message-debug-trigger.copied {
        border-color: #111;
        color: #111;
      }

      .flow-debug-summary {
        margin-top: 12px;
        padding-top: 9px;
        border-top: 1px solid var(--line);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.35;
      }

      .flow-debug-summary span {
        font-weight: 850;
        color: #111;
      }

      .flow-debug-summary code {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font: inherit;
      }

      .flow-debug-summary button {
        border: 1px solid var(--line);
        background: #fff;
        color: #111;
        font: inherit;
        font-weight: 800;
        padding: 4px 6px;
        cursor: pointer;
        white-space: nowrap;
      }

      .flow-debug-summary button.copied {
        border-color: #111;
      }

      .flow-debug-summary.open code {
        white-space: normal;
      }

      .flow-debug-details {
        flex-basis: 100%;
        display: grid;
        gap: 8px;
        margin-top: 4px;
      }

      .flow-debug-details[hidden] {
        display: none;
      }

      .flow-debug-step {
        border: 1px solid var(--line);
        background: rgba(255,255,255,0.42);
        padding: 8px;
      }

      .flow-debug-step b {
        display: block;
        color: #111;
        font-size: 11px;
        line-height: 1.35;
        margin-bottom: 4px;
      }

      .flow-debug-step p {
        margin: 0;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.45;
        word-break: break-word;
      }

      .flow-row.user .flow-actor {
        color: rgba(255,255,255,0.64);
      }

      .flow-message-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
        margin-top: 10px;
      }

      .ownapp-confirm-status {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        margin-right: auto;
        color: var(--muted);
        font-size: 13px;
        font-weight: 800;
      }

      .cover-candidate-picker {
        width: 100%;
        display: grid;
        gap: 10px;
        padding: 10px;
        border: 1px solid var(--line);
        background: #fff;
      }

      .cover-candidate-picker > strong {
        font-size: 13px;
      }

      .cover-candidate-picker section {
        display: grid;
        gap: 8px;
      }

      .cover-candidate-picker p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
      }

      .cover-candidate-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .cover-candidate-grid button {
        min-width: 0;
        border: 1px solid var(--line);
        background: #fff;
        padding: 6px;
        display: grid;
        gap: 6px;
        text-align: left;
      }

      .cover-candidate-grid button:hover {
        border-color: var(--ink);
      }

      .cover-candidate-grid button:disabled {
        opacity: .62;
      }

      .cover-candidate-grid img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: contain;
        background: var(--panel);
      }

      .cover-candidate-grid span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
        font-weight: 800;
      }

      .flow-status-addon {
        width: 82%;
        max-width: 520px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        justify-self: start;
        border: 0;
        background: transparent;
        color: #111;
        padding: 0;
        text-align: left;
      }

      .flow-status-head {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: nowrap;
        border-top: 0;
        padding-top: 0;
        margin-top: 0;
        position: relative;
        z-index: 2;
      }

      .flow-status-head-actions {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: wrap;
        flex: 0 0 auto;
      }

      .flow-status-steps-inline {
        display: grid;
        gap: 8px;
        border-top: 1px solid rgba(255,255,255,0.28);
        padding-top: 10px;
        color: rgba(255,255,255,0.9);
        font-size: 12px;
        line-height: 1.45;
      }

      .flow-status-steps-inline span {
        display: grid;
        grid-template-columns: 16px 1fr;
        gap: 6px;
        align-items: center;
      }

      .flow-status-addon.paused,
      .flow-status-addon.active {
        background: transparent;
      }

      .flow-status-addon.completed {
        background: transparent;
      }

      .flow-status-addon.error {
        background: transparent;
      }

      .flow-status-addon.manual-paused {
        background: transparent;
      }

      .flow-status-tag {
        width: max-content;
        max-width: calc(100% - 46px);
        border-radius: 999px;
        background: var(--state-simplicity);
        color: #fff;
        padding: 7px 10px;
        font-size: 12px;
        font-weight: 900;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 28px;
        border: 0;
        appearance: none;
        line-height: 1.2;
      }

      .flow-status-addon.completed .flow-status-tag { background: #94bf36; }
      .flow-status-addon.error .flow-status-tag { background: var(--state-rationality); }
      .flow-status-addon.manual-paused .flow-status-tag { background: var(--state-rationality); }
      .flow-status-addon.paused .flow-status-tag { background: var(--state-simplicity); }

      .flow-status-tag.interactive {
        cursor: pointer;
      }

      .flow-status-tag.interactive:active {
        transform: translateY(1px);
      }

      .flow-status-tag > i {
        font-size: 11px;
      }

      .flow-status-tag span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .flow-status-spinner {
        width: 22px;
        height: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 0 0 auto;
      }

      .flow-status-spinner i {
        width: 4px;
        height: 4px;
        display: block;
        border-radius: 999px;
        background: #fff;
        animation: taskPulse 0.9s ease-in-out infinite;
      }

      .flow-status-spinner i:nth-child(2) { animation-delay: 0.15s; }
      .flow-status-spinner i:nth-child(3) { animation-delay: 0.3s; }

      @keyframes taskPulse {
        0%, 100% { transform: scale(0.55); opacity: 0.5; }
        50% { transform: scale(1.2); opacity: 1; }
      }

      .flow-paused-options {
        width: 100%;
        max-width: none;
        display: grid;
        gap: 12px;
        margin-top: 0;
        padding-top: 10px;
        border-top: 1px solid var(--line);
        position: relative;
        z-index: 1;
        clear: both;
      }

      .flow-paused-options p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.65;
      }

      .flow-paused-options .option-grid {
        margin-top: 0;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .flow-paused-options.compact .option-grid {
        grid-template-columns: 1fr;
      }

      .paused-option-card {
        cursor: pointer;
        width: 100%;
        min-width: 0;
        max-width: none;
        text-align: left;
      }

      .flow-status-copy {
        color: rgba(255,255,255,0.86);
        font-size: 12px;
        line-height: 1.6;
      }

      .flow-status-title {
        color: #fff;
        font-size: 16px;
        font-weight: 900;
        line-height: 1.4;
      }

      .flow-status-known,
      .flow-status-progress-meta {
        display: grid;
        gap: 7px;
        border-top: 1px solid rgba(255,255,255,0.28);
        padding-top: 9px;
        color: rgba(255,255,255,0.9);
        font-size: 12px;
        line-height: 1.5;
      }

      .flow-status-known span,
      .flow-status-progress-meta span {
        display: grid;
        grid-template-columns: 18px auto 1fr;
        gap: 5px;
        align-items: start;
      }

      .flow-status-progress-meta span {
        grid-template-columns: 18px 1fr;
      }

      .flow-status-known i,
      .flow-status-progress-meta i {
        margin-top: 2px;
        color: rgba(255,255,255,0.86);
      }

      .flow-status-known b {
        font-weight: 900;
      }

      .flow-status-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 2px;
      }

      .flow-status-bottom {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 10px;
        margin-top: 2px;
      }

      .flow-status-btn {
        min-height: 34px;
        border: 1px solid rgba(255,255,255,0.46);
        background: rgba(255,255,255,0.14);
        color: #fff;
        padding: 0 12px;
        font-size: 12px;
        font-weight: 900;
      }

      .flow-status-btn.primary {
        background: #fff;
        color: #111;
        border-color: #fff;
      }

      .flow-status-bar,
      .overview-bar {
        display: block;
        height: 4px;
        background: rgba(0,0,0,0.25);
        overflow: hidden;
      }

      .flow-status-bar i,
      .overview-bar i {
        display: block;
        height: 100%;
        background: #fff;
      }

      .overview-bar {
        background: #deded8;
      }

      .overview-bar i {
        background: var(--state-innovation);
      }

      .flow-card {
        border-top: 1px solid var(--line);
        padding: 18px 0 0;
      }

      .flow-progress-compact {
        padding-top: 14px;
      }

      .flow-progress-compact .flow-card-head {
        align-items: center;
      }

      .flow-card:first-child {
        border-top: 0;
      }

      .flow-card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
      }

      .flow-card h3 {
        font-size: 18px;
        line-height: 1.3;
      }

      .flow-card p {
        color: var(--muted);
        font-size: 13px;
        line-height: 1.75;
      }

      .flow-kicker {
        display: inline-flex;
        align-items: center;
        width: max-content;
        margin-bottom: 10px;
        border-radius: 999px;
        padding: 5px 9px;
        background: #111;
        color: #fff;
        font-size: 11px;
        font-weight: 900;
      }

      .flow-kicker.info { background: var(--state-innovation); }
      .flow-kicker.confirm { background: var(--state-simplicity); }
      .flow-kicker.alert { background: var(--state-rationality); }
      .flow-kicker.active { background: var(--state-functionality); color: #111; }

      .flow-known-grid,
      .flow-metric-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-top: 1px solid var(--line);
        border-left: 1px solid var(--line);
        margin-top: 12px;
      }

      .flow-known-grid div,
      .flow-metric-grid div {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 10px;
      }

      .flow-known-grid span,
      .flow-metric-grid span {
        display: block;
        color: var(--muted);
        font-size: 11px;
      }

      .flow-known-grid strong,
      .flow-metric-grid strong {
        display: block;
        margin-top: 5px;
        font-size: 13px;
        line-height: 1.4;
        overflow-wrap: anywhere;
      }

      .flow-known-grid .long,
      .flow-metric-grid .long,
      .flow-metric-grid.readable div {
        grid-column: 1 / -1;
      }

      .flow-step-list {
        display: grid;
        gap: 8px;
        margin-top: 12px;
      }

      .flow-step {
        display: grid;
        grid-template-columns: 22px 1fr;
        gap: 9px;
        align-items: start;
      }

      .flow-step i {
        width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: 999px;
        font-size: 10px;
      }

      .flow-step strong {
        display: block;
        font-size: 13px;
        line-height: 1.45;
      }

      .flow-step small {
        display: block;
        margin-top: 3px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.45;
      }

      .flow-intervention {
        margin-left: -16px;
        margin-right: -16px;
        padding: 20px 16px;
        background: var(--state-innovation);
        color: #fff;
        border-top: 0;
      }

      .flow-intervention.tone-confirm { background: var(--state-simplicity); }
      .flow-intervention.tone-alert { background: var(--state-rationality); }
      .flow-intervention.tone-neutral { background: #111; }

      .flow-intervention p,
      .flow-intervention .option-meta,
      .flow-intervention .control label {
        color: rgba(255,255,255,0.78);
      }

      .flow-intervention .option-grid {
        margin-top: 16px;
      }

      .flow-intervention .btn.secondary,
      .flow-intervention .btn {
        border-color: rgba(255,255,255,0.5);
        background: rgba(255,255,255,0.08);
        color: #fff;
      }

      .flow-intervention .option-card {
        border-color: rgba(255,255,255,0.46);
        background: rgba(255,255,255,0.08);
        color: #fff;
      }

      .flow-intervention .option-card .option-meta,
      .flow-intervention .option-card .option-fields,
      .flow-intervention .option-card .option-fields span {
        color: rgba(255,255,255,0.78);
      }

      .flow-intervention .option-check {
        border-color: rgba(255,255,255,0.72);
        background: transparent;
        color: transparent;
      }

      .flow-intervention .option-card.option-selected .option-check {
        background: #fff;
        color: #111;
      }

      .flow-intervention .control input,
      .flow-intervention .control select,
      .flow-intervention .control textarea {
        border-color: rgba(255,255,255,0.46);
        color: #fff;
        background: rgba(255,255,255,0.08);
      }

      .flow-intervention .control input::placeholder,
      .flow-intervention .control textarea::placeholder {
        color: rgba(255,255,255,0.68);
      }

      .flow-result-item {
        border-top: 1px solid var(--line);
        padding: 14px 0;
      }

      .conversation-waterfall .result-components {
        margin-top: 12px;
      }

      .flow-result-item button {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        border: 0;
        background: transparent;
        padding: 0;
        text-align: left;
      }

      .flow-result-item h4 {
        font-size: 15px;
        line-height: 1.35;
      }

      .flow-result-detail {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition: max-height 360ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease, transform 280ms ease;
      }

      .flow-result-item.open .flow-result-detail {
        max-height: var(--flow-detail-height, 520px);
        opacity: 1;
        transform: translateY(0);
        margin-top: 10px;
      }

      .own-app-card {
        border: 1px solid #111;
        background: #111;
        color: #fff;
        padding: 18px;
      }

      .own-app-card p,
      .own-app-card li {
        color: rgba(255,255,255,0.76);
      }

      .own-app-card ul {
        display: grid;
        gap: 6px;
        margin-top: 12px;
        padding-left: 18px;
        font-size: 13px;
        line-height: 1.55;
      }

      .own-app-ready-meta {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 6px 10px;
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.22);
        font-size: 12px;
      }

      .own-app-ready-meta span {
        color: rgba(255,255,255,0.58);
        font-weight: 800;
      }

      .own-app-ready-meta strong {
        min-width: 0;
        color: #fff;
        overflow-wrap: anywhere;
      }

      .own-app-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 16px;
      }

      .own-app-actions.single {
        grid-template-columns: 1fr;
      }

      .own-app-actions .btn {
        border-color: rgba(255,255,255,0.5);
        color: #fff;
        background: transparent;
      }

      .own-app-actions .btn:first-child {
        background: #fff;
        color: #111;
        border-color: #fff;
      }

      .ownapp-coding-entry-card {
        border: 1px solid var(--line);
        background: #fff;
        padding: 14px;
      }

      .ownapp-coding-entry-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 10px;
      }

      .ownapp-coding-status {
        display: inline-flex;
        align-items: center;
        width: max-content;
        max-width: 50%;
        border: 1px solid var(--line);
        padding: 4px 8px;
        font-size: 11px;
        font-weight: 900;
        white-space: nowrap;
      }

      .ownapp-coding-status.tone-done {
        border-color: #00ff4c;
        background: #00ff4c;
        color: #006b0c;
      }

      .ownapp-coding-status.tone-warning {
        border-color: var(--state-rationality);
        color: var(--state-rationality);
      }

      .ownapp-coding-status.tone-confirm {
        border-color: #111;
        background: #111;
        color: #fff;
      }

      .ownapp-coding-entry-card h3,
      .ownapp-coding-summary h3,
      .ownapp-coding-panel h3 {
        margin: 0;
        font-size: 16px;
        line-height: 1.35;
      }

      .ownapp-coding-entry-card p,
      .ownapp-coding-summary p,
      .ownapp-coding-panel p {
        margin: 8px 0 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.65;
      }

      .ownapp-coding-card-runtime {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 6px 10px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
        font-size: 11px;
        line-height: 1.45;
      }

      .ownapp-coding-card-runtime span {
        color: var(--muted);
        font-weight: 700;
      }

      .ownapp-coding-card-runtime strong {
        min-width: 0;
        font-weight: 700;
        overflow-wrap: anywhere;
      }

      .ownapp-coding-entry-actions,
      .ownapp-coding-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
      }

      .ownapp-planning-primary-action {
        margin: 10px 0 4px;
      }

      .ownapp-planning-primary-action .btn {
        width: 100%;
        min-height: 46px;
      }

      .ownapp-coding-queue-state {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 46px;
        padding: 0 16px;
        border: 1px solid var(--line);
        color: var(--muted);
        font-size: 14px;
      }

      .ownapp-coding-workspace {
        display: grid;
        gap: 12px;
      }

      .ownapp-coding-summary,
      .ownapp-coding-panel {
        border: 1px solid var(--line);
        background: #fff;
        padding: 14px;
      }

      .ownapp-coding-summary.tone-active {
        border-color: #1478c8;
      }

      .ownapp-coding-summary.tone-done {
        border-color: #00ff4c;
      }

      .ownapp-coding-summary.tone-warning {
        border-color: var(--state-rationality);
      }

      .ownapp-coding-meta {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 7px 10px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
        font-size: 12px;
      }

      .ownapp-coding-meta span {
        color: var(--muted);
        font-weight: 800;
      }

      .ownapp-coding-meta strong {
        min-width: 0;
        overflow-wrap: anywhere;
      }

      .ownapp-coding-plan-list {
        display: grid;
        gap: 7px;
        margin: 12px 0 0;
        padding-left: 20px;
        font-size: 13px;
        line-height: 1.55;
      }

      .ownapp-coding-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        margin-top: 12px;
      }

      .ownapp-coding-chips span {
        border: 1px solid var(--line);
        padding: 5px 8px;
        font-size: 12px;
        font-weight: 850;
      }

      .ownapp-coding-subsection {
        display: grid;
        gap: 6px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
      }

      .ownapp-plan-details {
        margin-top: 12px;
        border: 1px solid var(--line);
        background: rgba(17, 17, 17, 0.025);
      }

      .ownapp-plan-details > summary {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        cursor: pointer;
        color: #111;
        font-size: 13px;
        font-weight: 850;
      }

      .ownapp-plan-details[open] > summary {
        border-bottom: 1px solid var(--line);
      }

      .ownapp-plan-details > :not(summary) {
        margin-left: 12px;
        margin-right: 12px;
      }

      .ownapp-coding-subsection strong {
        font-size: 12px;
        line-height: 1.3;
      }

      .ownapp-coding-subsection p {
        margin: 0;
      }

      .ownapp-coding-subsection ul {
        display: grid;
        gap: 4px;
        margin: 0;
        padding-left: 18px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.45;
      }

      .ownapp-visual-delivery {
        border: 1px solid var(--line);
        padding: 12px;
      }

      .ownapp-coding-capability-blocked {
        display: block;
        padding: 8px;
        border: 1px solid #c98718;
        background: #fff7e6;
        color: #6f4700;
        font-size: 12px;
        line-height: 1.45;
      }

      .ownapp-coding-step-list {
        display: grid;
        gap: 9px;
        margin-top: 12px;
      }

      .ownapp-coding-live-status {
        display: grid;
        gap: 6px;
        margin: 0 0 14px;
        padding: 12px;
        border: 1px solid #d8d8d2;
        background: #f6f6f3;
      }

      .ownapp-coding-live-status.is-live {
        border-color: #00a83b;
        background: #effcf3;
      }

      .ownapp-coding-live-status.is-waiting {
        border-color: #d59a00;
        background: #fff9e8;
      }

      .ownapp-coding-live-status span,
      .ownapp-coding-event-list span {
        color: #687078;
        font-size: 12px;
        line-height: 1.45;
      }

      .ownapp-coding-event-list {
        display: grid;
        margin-top: 14px;
        border-top: 1px solid #deded8;
      }

      .ownapp-coding-event-list > div {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 3px 10px;
        padding: 10px 0;
        border-bottom: 1px solid #e5e5df;
      }

      .ownapp-coding-event-list time {
        grid-row: 1 / span 3;
        color: #7a7f84;
        font-size: 11px;
      }

      .ownapp-coding-event-list code,
      .ownapp-coding-changed-files code {
        display: block;
        overflow-wrap: anywhere;
        font-size: 11px;
      }

      .ownapp-coding-result-groups {
        display: grid;
        gap: 10px;
      }

      .ownapp-coding-result-groups section {
        display: grid;
        gap: 5px;
      }

      .ownapp-coding-result-groups h4 {
        margin: 0;
        font-size: 12px;
      }

      .ownapp-coding-result-groups ul {
        display: grid;
        gap: 4px;
        margin: 0;
        padding-left: 16px;
        color: #687078;
        font-size: 12px;
        line-height: 1.45;
      }

      .ownapp-coding-changed-files {
        display: grid;
        gap: 6px;
        margin-top: 14px;
      }

      .ownapp-coding-poll-error {
        color: #b42318;
      }

      .ownapp-coding-step-list div {
        display: grid;
        grid-template-columns: 22px 1fr;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 800;
      }

      .ownapp-coding-step-list i {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: 50%;
        font-size: 10px;
        color: var(--muted);
      }

      .ownapp-coding-step-list .done i {
        background: #00ff4c;
        border-color: #00ff4c;
        color: #006b0c;
      }

      .ownapp-coding-step-list .active i,
      .ownapp-coding-step-list .doing i {
        background: #111;
        border-color: #111;
        color: #fff;
      }

      .ownapp-coding-step-list .failed i {
        background: var(--state-rationality);
        border-color: var(--state-rationality);
        color: #fff;
      }

      .ownapp-coding-status-copy {
        border-top: 1px solid var(--line);
        padding-top: 10px;
      }

      .ownapp-coding-log-list {
        display: grid;
        gap: 8px;
        margin-top: 12px;
      }

      .ownapp-coding-log-list div {
        border-top: 1px solid var(--line);
        padding-top: 8px;
        display: grid;
        gap: 3px;
      }

      .ownapp-coding-log-list strong {
        font-size: 13px;
      }

      .ownapp-coding-log-list span {
        color: var(--muted);
        font-size: 12px;
        line-height: 1.5;
      }

      .cover-candidate-empty {
        display: grid;
        place-items: center;
        aspect-ratio: 1;
        background: #f4f4f2;
        color: var(--muted);
      }

      .coding-indicator {
        width: max-content;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 14px;
        color: rgba(255,255,255,0.82);
        font-size: 12px;
        font-weight: 900;
      }

      .coding-indicator i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--state-innovation);
        box-shadow: 14px 0 0 var(--state-simplicity), 28px 0 0 var(--state-rationality);
        animation: codePulse 1.2s ease-in-out infinite;
      }

      @keyframes codePulse {
        0%, 100% { opacity: 0.45; transform: translateY(0); }
        50% { opacity: 1; transform: translateY(-2px); }
      }

      .section {
        border-top: 1px solid var(--line);
        margin-left: -16px;
        margin-right: -16px;
        padding: 22px 16px;
      }

      .section:first-child { border-top: 0; }

      .completion-head {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        border: 0;
        padding: 0;
        background: transparent;
        text-align: left;
      }

      .completion-actions {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        flex: 0 0 auto;
      }

      .completion-title {
        font-size: 14px;
        font-weight: 850;
      }

      .completion-finished {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--state-innovation);
        font-weight: 900;
      }

      .completion-finished i {
        font-size: 13px;
      }

      .completion-sub {
        margin-top: 8px;
        color: var(--muted);
        font-size: 12px;
      }

      .chip {
        display: inline-flex;
        align-items: center;
        width: max-content;
        border: 0;
        border-radius: 999px;
        padding: 6px 10px;
        background: var(--panel);
        color: #111;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.2;
      }

      .chip.active { background: var(--state-functionality); color: #111; }
      .chip.intervention,
      .chip.info { background: var(--state-innovation); color: #fff; }
      .chip.decision,
      .chip.confirm { background: var(--state-simplicity); color: #fff; }
      .chip.risk,
      .chip.alert { background: var(--state-rationality); color: #fff; }

      .chip.hidden {
        display: none;
      }

      .icon-button {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #111;
        font-size: 18px;
        font-weight: 900;
        line-height: 1;
      }

      .icon-button svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        stroke-width: 2;
        fill: none;
      }

      .bar {
        height: 4px;
        margin-top: 18px;
        background: #dfdfda;
      }

      .bar span {
        display: block;
        height: 100%;
        width: 0%;
        background: #111;
        transition: width 0.3s ease;
      }

      .bar span.info { background: var(--state-innovation); }
      .bar span.confirm { background: var(--state-simplicity); }
      .bar span.alert { background: var(--state-rationality); }
      .bar span.active { background: #111; }

      .steps {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        border-top: 1px solid transparent;
        margin-top: 0;
        padding-top: 0;
        transition:
          max-height 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
          opacity 260ms ease,
          transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
          margin-top 320ms ease,
          padding-top 320ms ease,
          border-color 240ms ease;
      }

      .steps.open {
        max-height: var(--steps-height, 520px);
        opacity: 1;
        transform: translateY(0);
        border-top-color: var(--line);
        margin-top: 12px;
        padding-top: 10px;
      }

      .step-row {
        width: 100%;
        display: grid;
        grid-template-columns: 21px 1fr;
        align-items: start;
        gap: 8px;
        border: 0;
        padding: 6px 0;
        background: transparent;
        text-align: left;
        font-size: 14px;
      }

      .step-icon {
        width: 21px;
        height: 21px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: 999px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
        transform: translateY(1px);
      }

      .step-copy {
        min-width: 0;
      }

      .step-copy strong {
        display: block;
        color: #111;
        font-size: 14px;
        line-height: 1.35;
      }

      .step-trace {
        display: block;
        margin-top: 4px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.45;
      }

      .step-row.done .step-icon,
      .step-row.done .step-copy strong { border-color: #111; color: #111; }
      .step-row.doing .step-icon,
      .step-row.doing .step-copy strong { border-color: var(--state-simplicity); color: #111; }
      .step-row[disabled] { opacity: 0.55; cursor: default; }

      .progress h2 {
        margin-top: 18px;
        font-size: 22px;
        line-height: 1.25;
      }

      .progress {
        border-top: 1px solid var(--line);
      }

      .progress p {
        margin-top: 12px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.75;
      }

      .rendering {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 18px;
        border-top: 1px solid var(--line);
        padding-top: 12px;
        color: var(--muted);
        font-size: 12px;
      }

      .rendering.paused svg {
        display: none;
      }

      .progress-meta-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .progress-actions {
        display: none;
        gap: 8px;
        margin-left: auto;
      }

      .progress-actions.show {
        display: flex;
      }

      .progress-actions .btn {
        min-height: 30px;
        padding: 0 10px;
        font-size: 12px;
      }

      .progress-input {
        display: none;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 14px;
        border-top: 1px solid var(--line);
        padding-top: 12px;
      }

      .progress-input.show {
        display: flex;
      }

      .progress-input input {
        flex: 1;
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: 0;
        background: transparent;
        padding: 10px 11px;
        outline: 0;
      }

      .progress-input textarea {
        flex: 1 0 100%;
        order: 1;
        min-width: 0;
        min-height: 40px;
        max-height: 112px;
        resize: none;
        border: 1px solid var(--line);
        border-radius: 0;
        background: transparent;
        padding: 9px 11px;
        outline: 0;
        line-height: 1.55;
      }

      .progress-input .voice-icon {
        order: 2;
        margin-left: auto;
      }

      .progress-input .btn:not(.voice) {
        order: 2;
      }

      .trace-toggle {
        width: 100%;
        display: none;
        justify-content: space-between;
        align-items: center;
        border: 0;
        border-top: 1px solid var(--line);
        margin-top: 14px;
        padding: 12px 0 0;
        background: transparent;
        color: #111;
        font-size: 12px;
        font-weight: 850;
        text-align: left;
      }

      .trace-toggle.show { display: flex; }

      .collapse-symbol {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #111;
        font-size: 18px;
        font-weight: 900;
        line-height: 1;
      }

      .rendering svg {
        width: 44px;
        height: 18px;
      }

      .rendering rect {
        fill: #111;
        transform-origin: center;
        animation: renderPulse 1.1s infinite ease-in-out;
      }

      .rendering rect:nth-child(2) { animation-delay: 0.15s; }
      .rendering rect:nth-child(3) { animation-delay: 0.3s; }

      @keyframes renderPulse {
        0%, 100% { opacity: 0.18; transform: scaleY(0.55); }
        50% { opacity: 1; transform: scaleY(1); }
      }

      .model-trace {
        display: none;
        border-top: 1px solid var(--line);
        margin-top: 12px;
        padding-top: 12px;
      }

      .model-trace.show { display: block; }

      .trace-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-top: 1px solid var(--line);
        border-left: 1px solid var(--line);
      }

      .trace-cell {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 8px;
      }

      .trace-cell span {
        display: block;
        color: var(--muted);
        font-size: 10px;
      }

      .trace-cell strong {
        display: block;
        margin-top: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
      }

      .trace-diagnosis {
        border: 1px solid var(--line);
        border-top: 0;
        padding: 9px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.55;
      }

      .hint {
        margin-top: 18px;
        border-top: 1px solid var(--line);
        padding-top: 12px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.6;
      }

      .ack {
        display: none;
        margin-top: 20px;
        border-top: 1px solid var(--line);
        padding-top: 14px;
      }

      .ack.show { display: block; }

      .ack h3 {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #111;
        font-size: 14px;
      }

      .ack h3 .ack-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        border: 1px solid #111;
        border-radius: 999px;
        color: #111;
        font-size: 9px;
        font-weight: 900;
        line-height: 1;
      }

      .ack p,
      .ack li {
        color: var(--muted);
        font-size: 13px;
        line-height: 1.65;
      }

      .ack ul {
        margin: 8px 0 0;
        padding-left: 18px;
      }

      .result { display: none; }
      .result.show { display: block; }

      .result h2 {
        margin-top: 12px;
        font-size: 22px;
        line-height: 1.25;
      }

      .metric-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-top: 1px solid var(--line);
        border-left: 1px solid var(--line);
        margin-top: 18px;
      }

      .metric-grid.readable {
        grid-template-columns: 1fr;
      }

      .metric {
        min-height: 78px;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 12px;
      }

      .metric.long {
        grid-column: 1 / -1;
        min-height: 0;
      }

      .metric span {
        display: block;
        color: var(--muted);
        font-size: 11px;
      }

      .metric strong {
        display: block;
        margin-top: 6px;
        font-size: 14px;
        line-height: 1.35;
      }

      .result-item {
        border-top: 1px solid var(--line);
        padding: 16px 0;
      }

      .metric-grid + #resultItems .result-item:first-child {
        border-top: 0;
      }

      .result-components {
        display: grid;
        gap: 12px;
        margin-top: 16px;
        min-width: 0;
        max-width: 100%;
      }

      .result-components:empty {
        display: none;
      }

      .media-grid,
      .link-list,
      .file-list {
        display: grid;
        gap: 10px;
        min-width: 0;
        max-width: 100%;
      }

      .media-card,
      .link-card,
      .file-card,
      .modal-trigger-card {
        position: relative;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        border: 1px solid var(--line);
        background: rgba(255,255,255,0.42);
      }

      .media-card img,
      .media-card video {
        display: block;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4 / 3;
        max-height: 240px;
        object-fit: contain;
        background: #e7e7e2;
        opacity: 0;
        position: relative;
        z-index: 1;
        transition: opacity 160ms ease;
      }

      .media-card.media-loaded img,
      .media-card.media-loaded video {
        opacity: 1;
      }

      .media-card a {
        display: block;
        position: relative;
        z-index: 1;
      }

      .media-card.media-pending {
        min-height: 126px;
        aspect-ratio: 4 / 3;
      }

      .media-confidence-note {
        position: absolute;
        right: 6px;
        bottom: 6px;
        z-index: 2;
        padding: 3px 6px;
        background: rgba(17,17,17,0.72);
        color: #fff;
        font-size: 11px;
        line-height: 1;
        pointer-events: none;
      }

      .media-loading {
        position: absolute;
        inset: 0;
        min-height: 126px;
        display: grid;
        place-items: center;
        background:
          linear-gradient(110deg, rgba(255,255,255,0.24), rgba(255,255,255,0.64), rgba(255,255,255,0.24)),
          #e7e7e2;
        background-size: 220% 100%;
        color: var(--muted);
        font-size: 12px;
        z-index: 0;
        animation: mediaLoadingSweep 1.05s ease-in-out infinite;
      }

      .media-loading::before {
        content: "";
        width: 20px;
        height: 20px;
        border: 2px solid rgba(17,17,17,0.16);
        border-top-color: rgba(17,17,17,0.66);
        border-radius: 999px;
        animation: mediaLoadingSpin 0.8s linear infinite;
      }

      .media-loading span {
        position: absolute;
        bottom: 14px;
      }

      .media-card.media-loaded .media-loading {
        display: none;
      }

      .media-card.media-failed .media-loading {
        animation: none;
      }

      .media-card.media-failed .media-loading::before {
        display: none;
      }

      .media-card.media-failed .media-loading span {
        position: static;
      }

      .media-card.media-failed .media-loading span::before {
        content: "图片加载失败";
        font-size: 12px;
      }

      .media-card.media-failed .media-loading span {
        font-size: 0;
      }

      @keyframes mediaLoadingSpin {
        to { transform: rotate(360deg); }
      }

      @keyframes mediaLoadingSweep {
        0% { background-position: 100% 0; }
        100% { background-position: -100% 0; }
      }

      .flow-message .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 12px;
      }

      .flow-inline-media {
        margin: 12px 0 14px;
        min-width: 0;
        max-width: 100%;
      }

      .flow-inline-media .media-grid {
        margin-top: 0;
      }

      .topic-inline-media .media-copy {
        display: none;
      }

      .flow-message .media-card img,
      .flow-message .media-card video {
        max-height: 180px;
      }

      .flow-debug-appendix {
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
        color: var(--muted);
        font-size: 12px;
      }

      .flow-debug-appendix p,
      .flow-debug-appendix li {
        font-size: 12px;
        line-height: 1.5;
      }

      .media-more-card {
        min-height: 126px;
        border: 1px dashed var(--line);
        background: rgba(255,255,255,0.38);
        color: #111;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font: inherit;
        cursor: pointer;
      }

      .media-more-card i {
        font-size: 20px;
      }

      .media-more-card span {
        font-size: 13px;
        font-weight: 700;
      }

      .media-copy,
      .link-card,
      .file-card,
      .modal-trigger-card {
        padding: 12px;
      }

      .media-copy h4,
      .link-card h4,
      .file-card h4,
      .modal-trigger-card h4 {
        margin: 0;
        color: #111;
        font-size: 14px;
        line-height: 1.35;
      }

      .media-copy p,
      .link-card p,
      .file-card p,
      .modal-trigger-card p {
        margin-top: 6px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.55;
      }

      .link-card,
      .file-card {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 10px;
        color: inherit;
        text-decoration: none;
      }

      .link-card i,
      .file-card i {
        margin-top: 2px;
        color: #111;
      }

      .component-meta {
        display: block;
        margin-top: 5px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        overflow-wrap: anywhere;
      }

      .result-item button {
        width: 100%;
        border: 0;
        padding: 0;
        background: transparent;
        text-align: left;
      }

      .result-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
      }

      .result-heading {
        min-width: 0;
        flex: 1;
      }

      .result-side {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
      }

      .result-expand {
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #111;
        font-size: 18px;
        font-weight: 900;
        line-height: 1;
      }

      .result-expand .minus {
        display: none;
      }

      .result-item.open .result-expand .plus {
        display: none;
      }

      .result-item.open .result-expand .minus {
        display: inline;
      }

      .result-item:not(.has-detail) .result-expand {
        display: none;
      }

      .status-label {
        flex: 0 0 auto;
        border: 1px solid var(--line);
        padding: 4px 8px;
        color: #6f6f69;
        font-size: 12px;
        font-weight: 850;
        line-height: 1.2;
      }

      .status-label.recommend { border-color: var(--yellow); color: #8a6200; }
      .status-label.pending { border-color: var(--blue); color: #1d4ed8; }
      .status-label.risk-status { border-color: var(--red); color: #be123c; }

      .result-item small {
        display: block;
        margin-bottom: 7px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
      }

      .result-item h3 {
        margin-top: 0;
        font-size: 16px;
      }

      .result-item p {
        margin-top: 9px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.65;
      }

      .detail {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        border-top: 1px solid transparent;
        margin-top: 0;
        padding-top: 0;
        transition:
          max-height 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
          opacity 260ms ease,
          transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
          margin-top 320ms ease,
          padding-top 320ms ease,
          border-color 240ms ease;
      }

      .result-item.has-fields .detail {
        border-top: 0;
        padding-top: 0;
      }

      .result-item.open .detail {
        max-height: var(--detail-height, 720px);
        opacity: 1;
        transform: translateY(0);
        border-top-color: var(--line);
        margin-top: 12px;
        padding-top: 12px;
      }

      .result-item.open.has-fields .detail {
        margin-top: 8px;
        padding-top: 0;
      }

      .detail .result-components {
        margin-top: 12px;
      }

      .modal-layer {
        position: absolute;
        inset: 0;
        z-index: 110;
        display: none;
        align-items: stretch;
        padding: 18px;
        background: var(--panel);
      }

      .modal-layer.show {
        display: flex;
      }

      .modal-card {
        width: 100%;
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid var(--line);
        background: var(--panel);
        padding: 18px;
        box-shadow: none;
      }

      .modal-card h2 {
        margin: 6px 42px 14px 0;
        font-size: 21px;
        line-height: 1.25;
      }

      .modal-close {
        float: right;
        width: 34px;
        min-height: 34px;
        padding: 0;
      }

      .modal-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.65;
        padding-right: 2px;
      }

      .image-search-results {
        columns: 2 112px;
        column-gap: 10px;
      }

      .image-search-card {
        display: inline-block;
        width: 100%;
        break-inside: avoid;
        margin: 0 0 10px;
        border: 1px solid var(--line);
        background: #fff;
        color: #111;
        text-decoration: none;
        vertical-align: top;
      }

      .image-search-card img {
        width: 100%;
        display: block;
        background: #eee;
      }

      .image-search-card span {
        display: block;
        padding: 8px;
        font-size: 12px;
        line-height: 1.4;
      }

      .image-more-head {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: baseline;
        margin-bottom: 12px;
        color: #111;
      }

      .image-more-head strong {
        font-size: 14px;
        line-height: 1.3;
      }

      .image-more-head span {
        color: var(--muted);
        font-size: 12px;
        white-space: nowrap;
      }

      .image-more-results {
        margin-top: 0;
        padding-bottom: 6px;
      }

      .image-more-load {
        width: 100%;
        min-height: 58px;
        margin-top: 12px;
      }

      .image-more-load:disabled {
        opacity: 0.45;
        cursor: default;
      }

      .profile-card {
        position: relative;
        height: auto;
        max-height: inherit;
        min-height: 0;
        box-sizing: border-box;
        padding: 18px 20px max(20px, env(safe-area-inset-bottom));
        background: #111;
        color: #fff;
      }

      .profile-card h2 {
        font-size: 18px;
        line-height: 1.2;
        margin-right: 136px;
      }

      .profile-drawer {
        position: absolute;
        z-index: 8;
        top: var(--profile-drawer-top, 98px);
        right: 0;
        left: 0;
        bottom: auto;
        overflow: hidden;
        width: 100%;
        height: calc(100% - var(--profile-drawer-top, 98px));
        max-height: calc(100% - var(--profile-drawer-top, 98px));
        margin: 0;
        background: transparent;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        transition: visibility 0s linear 220ms;
        will-change: auto;
        backface-visibility: hidden;
        contain: layout paint style;
      }

      .profile-drawer.show {
        background: transparent;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        border-radius: 0;
        transform: none;
        transition-delay: 0s;
      }

      .profile-drawer .profile-card {
        height: 100%;
        background: #111;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translate3d(0, -100%, 0);
        transition: transform 220ms cubic-bezier(0.2, 0.78, 0.2, 1);
        will-change: auto;
        backface-visibility: hidden;
      }

      .profile-drawer.show .profile-card {
        transform: translate3d(0, 0, 0);
      }

      .start.profile-open .home-main {
        pointer-events: none;
      }

      .start.profile-open .profile-drawer .profile-card {
        will-change: transform;
      }

      .start.profile-open .home-toolbar {
        position: relative;
        z-index: 9;
      }

      .start.profile-open #openProfile {
        opacity: 1;
        pointer-events: auto;
        border-color: #111;
        background: transparent;
        color: #111;
        box-shadow: inset 0 0 0 1px #111;
      }

      .start.profile-open #openProfile img {
        opacity: 1;
      }

      .profile-preview {
        display: flex;
        align-items: center;
        gap: 12px;
        border-top: 1px solid rgba(255,255,255,0.24);
        border-bottom: 1px solid rgba(255,255,255,0.24);
        padding: 12px 0;
        margin: 12px 0 12px;
      }

      .profile-avatar {
        width: 52px;
        height: 52px;
        aspect-ratio: 1 / 1;
        min-height: 52px;
        flex: 0 0 52px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.32);
        border-radius: 50%;
        background: rgba(255,255,255,0.08);
        color: #fff;
        overflow: hidden;
        padding: 0;
        appearance: none;
        -webkit-appearance: none;
        clip-path: circle(50% at 50% 50%);
        contain: paint;
        outline: none;
        -webkit-tap-highlight-color: transparent;
      }

      .profile-avatar:focus,
      .profile-avatar:focus-visible {
        outline: none;
        box-shadow: none;
      }

      .profile-avatar img {
        object-fit: cover;
        object-position: center;
        background: transparent;
      }

      .profile-avatar i {
        font-size: 20px;
      }

      .profile-preview strong {
        display: block;
        font-size: 15px;
        line-height: 1.35;
      }

      .profile-preview p {
        margin-top: 4px;
        color: rgba(255,255,255,0.66);
        font-size: 11px;
        line-height: 1.35;
      }

      .profile-field {
        display: grid;
        gap: 6px;
        margin-top: 12px;
        color: rgba(255,255,255,0.72);
        font-size: 11px;
        font-weight: 800;
      }

      .profile-field input {
        width: 100%;
        border: 1px solid rgba(255,255,255,0.38);
        background: rgba(255,255,255,0.06);
        padding: 10px 12px;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        outline: none;
      }

      /* iOS Safari/PWA zooms the whole viewport when an editable control is
         rendered below 16px. Keep the visual density through spacing and
         line-height instead of shrinking interactive text. */
      @media (max-width: 600px), (hover: none) and (pointer: coarse) {
        .composer textarea,
        .runtime-input textarea,
        .progress-input input,
        .progress-input textarea,
        .config-grid input,
        .config-grid select,
        .config-panel > input,
        .flow-intervention .control input,
        .flow-intervention .control select,
        .flow-intervention .control textarea,
        .control input,
        .control select,
        .control textarea,
        .freeform input,
        .owner-migration-redeem input,
        .profile-field input {
          font-size: 16px;
        }
      }

      .profile-field input:focus {
        border-color: #fff;
      }

      .profile-actions {
        display: grid;
        grid-template-columns: 1fr 1fr 0.78fr;
        gap: 8px;
        margin-top: 14px;
      }

      .profile-actions .btn:last-child {
        grid-column: auto;
        position: static;
        width: 100%;
        min-height: 36px;
        padding: 0 14px;
        background: #fff;
        color: #111;
        border-color: #fff;
      }

      .profile-build {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px;
        align-items: center;
        gap: 10px;
        margin: 12px 0 0;
        color: rgba(255,255,255,0.58);
        font-size: 10px;
        line-height: 1.35;
      }

      .profile-build > div {
        display: grid;
        gap: 2px;
        min-width: 0;
      }

      .profile-build strong {
        color: rgba(255,255,255,0.86);
        font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
        font-size: 10px;
        font-weight: 600;
        overflow-wrap: anywhere;
        text-align: left;
      }

      .profile-storage strong {
        font-family: inherit;
      }

      .profile-update-button {
        width: 36px;
        height: 36px;
        display: inline-grid;
        place-items: center;
        border: 1px solid rgba(255,255,255,0.32);
        background: transparent;
        color: #fff;
        cursor: pointer;
      }

      .profile-update-button.is-checking i {
        animation: ownaxe-update-spin 0.8s linear infinite;
      }

      .profile-update-status {
        grid-column: 1 / -1;
        min-height: 1.35em;
        margin: 0;
        color: rgba(255,255,255,0.72);
        font-size: 10px;
        line-height: 1.35;
      }

      .profile-support-record {
        width: 100%;
        margin-top: 10px;
      }

      @keyframes ownaxe-update-spin {
        to { transform: rotate(360deg); }
      }

      .profile-card .btn.secondary {
        border-color: rgba(255,255,255,0.32);
        background: transparent;
        color: #fff;
      }

      .profile-card .modal-close {
        position: absolute;
        top: 14px;
        right: 20px;
        float: none;
        border-color: rgba(255,255,255,0.32);
        color: #fff;
        background: transparent;
      }

      .profile-card .modal-close:focus,
      .profile-card .modal-close:focus-visible {
        outline: none;
        border-color: rgba(255,255,255,0.58);
        box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
      }

      .owner-migration-card {
        display: grid;
        gap: 10px;
      }

      .owner-migration-card .device-short-code {
        width: 100%;
        border: 1px solid var(--line);
        background: #fff;
        padding: 12px;
        font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
        font-size: 18px;
        font-weight: 900;
        letter-spacing: .12em;
        text-align: center;
        user-select: all;
      }

      .owner-migration-redeem {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
      }

      .owner-migration-redeem input {
        min-width: 0;
        border: 1px solid var(--line);
        background: transparent;
        padding: 10px 11px;
        text-transform: uppercase;
      }

      .modal-fields {
        display: grid;
        border-top: 1px solid var(--line);
        border-left: 1px solid var(--line);
        margin-top: 14px;
      }

      .modal-field {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 10px;
      }

      .modal-field span {
        display: block;
        color: var(--muted);
        font-size: 11px;
      }

      .modal-field strong {
        display: block;
        margin-top: 4px;
        color: #111;
        font-size: 13px;
      }

      .modal-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 16px;
      }

      .field-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        border-top: 1px solid var(--line);
        border-left: 1px solid var(--line);
        margin-top: 10px;
      }

      .field {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 9px;
      }

      .field.long {
        grid-column: 1 / -1;
      }

      .field span {
        display: block;
        color: var(--muted);
        font-size: 11px;
      }

      .field strong {
        display: block;
        margin-top: 4px;
        font-size: 13px;
        line-height: 1.35;
      }

      .bottom-actions {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        border-top: 1px solid var(--line);
        padding: 20px 20px 28px;
        background: rgba(244, 244, 242, 0.96);
      }

      .bottom-actions.show { display: block; }

      .bottom-actions.reviewless #resultButtons {
        display: none;
      }

      .runtime-input {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        display: none;
        flex-wrap: wrap;
        gap: 8px;
        border-top: 1px solid var(--line);
        padding: 18px 20px 28px;
        background: rgba(244, 244, 242, 0.96);
      }

      .runtime-input.show { display: flex; }

      .runtime-primary-action {
        order: -2;
        flex: 1 0 100%;
        min-height: 46px;
      }

      html.keyboard-open .runtime-input,
      html.keyboard-open .bottom-actions {
        bottom: var(--keyboard-inset);
        padding-bottom: 12px;
      }

      html.keyboard-open .content {
        padding-bottom: calc(var(--detail-input-height, 132px) + var(--keyboard-inset) + 18px);
      }

      html.keyboard-open .start .composer {
        z-index: 30;
        position: fixed;
        right: 20px;
        bottom: calc(var(--keyboard-inset) + max(12px, env(safe-area-inset-bottom)));
        left: 20px;
        margin-top: 0;
        transform: none;
      }

      .runtime-input.tone-info {
        border-top-color: var(--line);
        background: var(--panel);
      }

      .runtime-input.tone-confirm {
        border-top-color: var(--line);
        background: var(--panel);
      }

      .runtime-input.tone-alert {
        border-top-color: var(--line);
        background: var(--panel);
      }

      .runtime-input.tone-neutral {
        border-top-color: var(--line);
        background: var(--panel);
      }

      .abort-task {
        display: none;
        border-color: var(--red);
        color: var(--red);
      }

      .abort-task.show { display: inline-flex; }

      .runtime-input textarea {
        flex: 1 0 100%;
        order: 1;
        min-width: 0;
        min-height: 40px;
        max-height: 112px;
        resize: none;
        border: 1px solid var(--line);
        border-radius: 0;
        background: transparent;
        padding: 9px 11px;
        outline: 0;
        line-height: 1.55;
      }

      .runtime-input textarea.long-placeholder {
        min-height: 72px;
      }

      .runtime-input.tone-info textarea,
      .runtime-input.tone-confirm textarea,
      .runtime-input.tone-alert textarea,
      .runtime-input.tone-neutral textarea {
        border: 1px solid rgba(17,17,17,0.18);
        background: rgba(255,255,255,0.62);
        color: #111;
        padding: 9px 11px;
      }

      .runtime-input > .attach-wrap,
      .runtime-input > .abort-task {
        order: 2;
      }

      .runtime-input > .voice-icon {
        order: 2;
        margin-left: auto;
      }

      .runtime-input > #runtimeSend {
        order: 2;
      }

      .attach-wrap {
        position: relative;
        flex: 0 0 40px;
      }

      .attach-button {
        width: 40px;
        min-width: 40px;
        padding: 0;
      }

      .attach-menu {
        position: absolute;
        left: 0;
        bottom: calc(100% + 8px);
        z-index: 90;
        display: none;
        min-width: 132px;
        border: 1px solid var(--line);
        background: var(--panel);
        color: #111;
      }

      .attach-wrap.open .attach-menu {
        display: block;
      }

      .attach-menu button {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 9px;
        border: 0;
        border-bottom: 1px solid var(--line);
        background: transparent;
        padding: 11px 12px;
        color: inherit;
        font-size: 13px;
        font-weight: 850;
        text-align: left;
      }

      .attach-menu button:last-child {
        border-bottom: 0;
      }

      .attachment-summary {
        display: none;
        flex: 1 0 100%;
        order: -1;
        gap: 8px;
        flex-wrap: wrap;
      }

      .runtime-input.has-attachments .attachment-summary {
        display: flex;
      }

      .composer.has-attachments .attachment-summary {
        display: flex;
        margin: 10px 0 12px;
        max-height: 58px;
        overflow: auto;
      }

      .composer.has-attachments textarea {
        min-height: 84px;
      }

      .bottom-actions.has-attachments .attachment-summary {
        display: flex;
        margin-bottom: 12px;
      }

      .attachment-card {
        max-width: 100%;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid var(--line);
        background: rgba(255,255,255,0.18);
        padding: 6px 7px;
        color: #111;
        font-size: 12px;
        font-weight: 800;
      }

      .attachment-thumb,
      .attachment-file-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border: 1px solid var(--line);
        background: rgba(17,17,17,0.06);
        object-fit: cover;
      }

      .attachment-file-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #111;
        font-size: 16px;
      }

      .attachment-name {
        max-width: 184px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .attachment-remove {
        width: 24px;
        height: 24px;
        min-height: 24px;
        padding: 0;
        border-color: var(--line);
        background: transparent;
        color: inherit;
      }

      .runtime-input.tone-info textarea::placeholder,
      .runtime-input.tone-confirm textarea::placeholder,
      .runtime-input.tone-alert textarea::placeholder,
      .runtime-input.tone-neutral textarea::placeholder {
        color: rgba(17,17,17,0.42);
      }

      .runtime-input.tone-info .attachment-summary,
      .runtime-input.tone-confirm .attachment-summary,
      .runtime-input.tone-alert .attachment-summary,
      .runtime-input.tone-neutral .attachment-summary {
        color: rgba(255,255,255,0.82);
      }

      .runtime-input.tone-info .attachment-card,
      .runtime-input.tone-confirm .attachment-card,
      .runtime-input.tone-alert .attachment-card,
      .runtime-input.tone-neutral .attachment-card {
        border-color: rgba(17,17,17,0.18);
        color: #111;
      }

      .runtime-input.tone-info .attachment-thumb,
      .runtime-input.tone-confirm .attachment-thumb,
      .runtime-input.tone-alert .attachment-thumb,
      .runtime-input.tone-neutral .attachment-thumb,
      .runtime-input.tone-info .attachment-file-icon,
      .runtime-input.tone-confirm .attachment-file-icon,
      .runtime-input.tone-alert .attachment-file-icon,
      .runtime-input.tone-neutral .attachment-file-icon {
        border-color: rgba(17,17,17,0.18);
        color: #111;
      }

      .runtime-input.tone-info .btn,
      .runtime-input.tone-confirm .btn,
      .runtime-input.tone-alert .btn,
      .runtime-input.tone-neutral .btn {
        border-color: rgba(17,17,17,0.24);
        color: #111;
        background: transparent;
      }

      .runtime-input.tone-info #runtimeSend,
      .runtime-input.tone-confirm #runtimeSend,
      .runtime-input.tone-alert #runtimeSend,
      .runtime-input.tone-neutral #runtimeSend {
        background: #111;
        border-color: #111;
        color: #fff;
      }

      .result-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 14px;
      }

      .result-buttons.single {
        grid-template-columns: 1fr;
      }

      .milestone-icon {
        display: inline-flex;
        margin-right: 8px;
      }

      .milestone-icon i {
        font-size: 15px;
      }

      .followup {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 0;
      }

      .followup textarea {
        flex: 1 0 100%;
        order: 1;
        min-width: 0;
        min-height: 40px;
        max-height: 112px;
        resize: none;
        border: 1px solid var(--line);
        border-radius: 0;
        background: transparent;
        padding: 9px 11px;
        outline: 0;
        line-height: 1.55;
      }

      .followup .attach-wrap {
        order: 2;
      }

      .followup .voice-icon {
        order: 2;
        margin-left: auto;
      }

      .followup .btn:not(.voice) {
        order: 2;
      }

      .sheet-layer {
        position: absolute;
        inset: 0;
        z-index: 50;
        display: none;
        align-items: flex-end;
        background: rgba(17, 17, 17, 0.1);
      }

      .sheet-layer.show { display: flex; }

      .sheet {
        width: 100%;
        max-height: 82%;
        overflow-y: auto;
        background: #f8f7f1;
        border-top: 1px solid var(--line);
        box-shadow: none;
        color: #111;
        padding: 24px 18px 176px;
        scrollbar-width: none;
      }

      .hub-asset-list.is-view-transitioning {
        opacity: .985;
        transform: translateY(1px);
        transition: opacity 120ms ease-out, transform 120ms ease-out;
      }

      @media (prefers-reduced-motion: reduce) {
        .hub-asset-list.is-view-transitioning {
          opacity: 1;
          transform: none;
          transition: none;
        }
      }

      .sheet.tone-info {
        background: var(--panel);
        border-color: var(--line);
      }

      .sheet.tone-confirm {
        background: var(--panel);
        border-color: var(--line);
      }

      .sheet.tone-alert {
        background: var(--panel);
        border-color: var(--line);
      }

      .sheet.tone-neutral {
        background: var(--panel);
        border-color: var(--line);
      }

      .sheet::-webkit-scrollbar { display: none; }

      .sheet-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
      }

      .sheet-head-actions {
        display: flex;
        gap: 8px;
        align-items: center;
        flex: 0 0 auto;
      }

      .sheet-head-actions .pass {
        max-width: 96px;
        min-height: 34px;
        padding: 0 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .sheet h3 {
        margin-top: 0;
        font-size: 18px;
        min-width: 0;
      }

      .sheet-close {
        width: 34px;
        height: 34px;
        min-height: 34px;
        flex: 0 0 34px;
        padding: 0;
        border-color: var(--line);
        background: transparent;
        color: #111;
      }

      .sheet h3::before {
        content: "";
        display: inline-block;
        width: 9px;
        height: 9px;
        margin-right: 8px;
        background: #111;
        vertical-align: 2px;
      }

      .sheet h3::before { background: #111; }
      .sheet.tone-info h3::before { background: var(--state-innovation); }
      .sheet.tone-confirm h3::before { background: var(--state-simplicity); }
      .sheet.tone-alert h3::before { background: var(--state-rationality); }
      .sheet p {
        margin-top: 9px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.7;
      }

      .option-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 18px;
      }

      .option-grid.compact { grid-template-columns: 1fr; }

      .option-card {
        width: 100%;
        border: 1px solid rgba(17,17,17,0.16);
        border-radius: 0;
        background: rgba(255,255,255,0.62);
        padding: 12px;
        color: #111;
        text-align: left;
      }

      .option-card.primary {
        border-color: #111;
        background: #fff;
      }

      .option-title {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        font-size: 14px;
        font-weight: 900;
        line-height: 1.35;
      }

      .option-title-meta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
      }

      .option-check {
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(17,17,17,0.3);
        border-radius: 50%;
        background: transparent;
        color: transparent;
        font-size: 10px;
      }

      .option-card.option-selected .option-check {
        border-color: #111;
        background: #111;
        color: #fff;
      }

      .option-meta {
        margin-top: 6px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.55;
      }

      .option-fields {
        display: grid;
        gap: 4px;
        margin-top: 8px;
        color: #111;
        font-size: 12px;
        line-height: 1.5;
      }

      .option-fields span {
        color: var(--muted);
      }

      .control-stack {
        display: grid;
        gap: 12px;
        margin-top: 16px;
      }

      .control {
        border-top: 0;
        padding-top: 0;
      }

      .control label {
        display: block;
        margin-bottom: 8px;
        color: #111;
        font-size: 13px;
        font-weight: 850;
      }

      .control input,
      .control select,
      .control textarea {
        width: 100%;
        border: 1px solid rgba(17,17,17,0.18);
        border-radius: 0;
        background: rgba(255,255,255,0.62);
        padding: 10px 11px;
        color: #111;
        outline: 0;
      }

      .control select option {
        background: #fff;
        color: #111;
      }

      .control input[type="checkbox"] {
        width: auto;
        min-width: 18px;
        height: 18px;
        margin: 0;
        accent-color: #111;
        transform: translateY(1px);
      }

      .toggle-control {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        margin-bottom: 0 !important;
        color: #111;
        font-size: 13px;
        font-weight: 850;
        line-height: 1.45;
      }

      .toggle-control span {
        flex: 1;
        min-width: 0;
      }

      .sheet input::placeholder,
      .sheet textarea::placeholder { color: #8a8983; }

      .sheet input[type="date"] {
        color-scheme: light;
        padding-right: 38px;
        background:
          rgba(255,255,255,0.55)
          url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E")
          no-repeat right 12px center / 16px 16px;
      }

      .sheet input[type="date"]::-webkit-calendar-picker-indicator {
        opacity: 0;
      }

      .control textarea {
        min-height: 72px;
        resize: vertical;
      }

      .control-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
      }

      .range-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-bottom: 8px;
      }

      .range-head label {
        margin-bottom: 0;
      }

      .range-value {
        color: #111;
        font-size: 13px;
        font-weight: 850;
      }

      .control input[type="range"] {
        -webkit-appearance: none;
        appearance: none;
        height: 26px;
        border: 0;
        padding: 0;
        background: transparent;
        accent-color: #111;
      }

      .control input[type="range"]::-webkit-slider-runnable-track {
        height: 6px;
        border-radius: 999px;
        background: rgba(17,17,17,0.32);
      }

      .control input[type="range"]::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
        margin-top: -6px;
        border: 1px solid rgba(17,17,17,0.28);
        border-radius: 999px;
        background: #111;
        -webkit-appearance: none;
      }

      .control input[type="range"]::-moz-range-track {
        height: 6px;
        border-radius: 999px;
        background: rgba(17,17,17,0.32);
      }

      .control input[type="range"]::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border: 1px solid rgba(17,17,17,0.28);
        border-radius: 999px;
        background: #111;
      }

      .choice-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .choice {
        min-height: 36px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: transparent;
        padding: 0 12px;
        color: #111;
        font-size: 13px;
        font-weight: 800;
      }

      .choice.selected {
        border-color: #111;
        background: #111;
        color: #fff;
      }

      .sheet .choice {
        border-color: rgba(17,17,17,0.22);
        color: #111;
      }

      .sheet .choice.selected {
        border-color: #111;
        background: #111;
        color: #fff;
      }

      .seat-map {
        display: grid;
        gap: 8px;
        border: 1px solid var(--line);
        padding: 12px;
        background: rgba(255,255,255,0.32);
      }

      .seat-map::before {
        content: attr(data-map-label);
        display: block;
        border-bottom: 2px solid #111;
        padding-bottom: 8px;
        margin-bottom: 2px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 850;
        text-align: center;
      }

      .seat-map-header,
      .seat-row {
        display: grid;
        align-items: center;
        gap: 6px;
      }

      .seat-map-header {
        color: var(--muted);
        font-size: 11px;
        font-weight: 850;
      }

      .seat-row-label {
        color: var(--muted);
        font-size: 11px;
        font-weight: 850;
        text-align: right;
      }

      .seat {
        min-width: 0;
        height: 34px;
        border: 1px solid var(--line);
        border-radius: 6px 6px 10px 10px;
        background: transparent;
        color: #111;
        font-size: 11px;
        font-weight: 850;
      }

      .seat.available:hover,
      .seat.preferred:hover {
        border-color: #111;
      }

      .seat.selected {
        border-color: var(--green);
        background: #e9f8f0;
        color: var(--green);
      }

      .seat.occupied,
      .seat.blocked {
        color: #aaa;
        background: #e8e8e3;
        cursor: not-allowed;
        text-decoration: line-through;
      }

      .seat.preferred {
        border-color: var(--yellow);
        color: #8a6200;
      }

      .seat-aisle {
        min-width: 12px;
        height: 1px;
      }

      .seat-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
        color: var(--muted);
        font-size: 11px;
      }

      .legend-dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin-right: 4px;
        border: 1px solid var(--line);
      }

      .legend-dot.selected { border-color: var(--green); background: #e9f8f0; }
      .legend-dot.occupied { background: #e8e8e3; }
      .legend-dot.preferred { border-color: var(--yellow); }

      .option-selected {
        border-color: #111 !important;
        color: #111 !important;
        background: #fff !important;
      }

      .option-selected .option-check {
        display: inline-flex;
      }

      .freeform {
        display: flex;
        align-items: center;
        gap: 8px;
        border-top: 1px solid rgba(17,17,17,0.14);
        margin-top: 14px;
        padding-top: 12px;
      }

      .freeform input {
        flex: 1;
        min-width: 0;
        border: 1px solid rgba(17,17,17,0.18);
        border-radius: 0;
        background: rgba(255,255,255,0.62);
        color: #111;
        padding: 10px 11px;
        outline: 0;
      }

      .sheet .btn.secondary,
      .sheet .btn.voice {
        background: transparent;
        border-color: rgba(17,17,17,0.24);
        color: #111;
      }

      .sheet .voice-icon i,
      .sheet .btn i {
        color: inherit;
      }

      .sheet .btn:not(.secondary):not(.voice) {
        background: #111;
        border-color: #111;
        color: #fff;
      }

      .timeline {
        position: absolute;
        inset: 0;
        z-index: 60;
        display: none;
        flex-direction: column;
        background: var(--panel);
      }

      .timeline.show { display: flex; }

      .timeline-header {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid var(--line);
        padding: 52px 16px 14px;
      }

      .timeline-header p {
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
      }

      .timeline-header h2 {
        margin-top: 3px;
        font-size: 18px;
      }

      .timeline-close {
        width: 34px;
        height: 34px;
        min-height: 34px;
        flex: 0 0 34px;
        padding: 0;
        border-color: var(--line);
        background: transparent;
        color: #111;
      }

      .timeline-tabs {
        display: flex;
        gap: 6px;
        margin-top: 12px;
      }

      .timeline-tab {
        min-height: 28px;
        border: 1px solid var(--line);
        background: transparent;
        padding: 5px 10px;
        color: #6f6f69;
        font-size: 12px;
        font-weight: 850;
      }

      .timeline-tab.active {
        background: #111;
        border-color: #111;
        color: #fff;
      }

      .timeline-list {
        flex: 1;
        overflow-y: auto;
        padding: 18px 16px 76px;
      }

      .task-overview {
        display: grid;
        gap: 14px;
      }

      .overview-card {
        width: 100%;
        border: 1px solid var(--line);
        background: transparent;
        padding: 14px;
        text-align: left;
      }

      .overview-card h3 {
        font-size: 15px;
        line-height: 1.35;
      }

      .overview-card p {
        margin-top: 8px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.65;
      }

      .overview-lines {
        display: grid;
        border-top: 1px solid var(--line);
        margin-top: 12px;
      }

      .overview-lines div {
        display: grid;
        grid-template-columns: 82px 1fr;
        gap: 12px;
        border-bottom: 1px solid var(--line);
        padding: 8px 0;
      }

      .overview-lines span {
        display: block;
        color: var(--muted);
        font-size: 12px;
      }

      .overview-lines strong {
        display: block;
        font-size: 13px;
        line-height: 1.4;
        overflow-wrap: anywhere;
      }

      .overview-progress-head {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: flex-start;
      }

      .overview-progress-head strong {
        font-size: 12px;
      }

      .overview-status-tag {
        display: inline-flex;
        width: max-content;
        margin-bottom: 8px;
        border-radius: 999px;
        background: #111;
        color: #fff;
        padding: 5px 9px;
        font-size: 11px;
        font-weight: 900;
      }

      .task-overview-item.status-paused .overview-status-tag {
        background: var(--state-simplicity);
      }

      .task-overview-item.status-manual-paused .overview-status-tag {
        background: var(--state-rationality);
      }

      .task-overview-item.status-completed .overview-status-tag {
        background: #00ff4c;
        color: #006b0c;
      }

      .task-overview-item.status-completed .overview-bar i {
        background: #00ff4c;
      }

      .task-overview-item.status-error .overview-status-tag {
        background: var(--state-rationality);
      }

      .overview-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 14px;
      }

      .overview-progress .overview-bar {
        margin-top: 12px;
      }

      .task-overview-item .overview-bar {
        margin-top: 12px;
      }

      .overview-steps {
        display: grid;
        gap: 9px;
        margin-top: 14px;
      }

      .overview-steps div {
        display: grid;
        grid-template-columns: 22px 1fr;
        align-items: center;
        gap: 8px;
        color: #111;
        font-size: 13px;
        font-weight: 850;
      }

      .overview-steps i {
        width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: 999px;
        font-size: 10px;
      }

      .overview-steps .doing i {
        border-color: var(--state-simplicity);
      }

      .overview-steps .todo {
        color: var(--muted);
      }

      .event {
        position: relative;
        padding: 0 0 18px 28px;
      }

      .event::before {
        content: "";
        position: absolute;
        left: 4px;
        top: 23px;
        bottom: -2px;
        width: 1px;
        background: var(--line);
      }

      .event:last-child::before { display: none; }

      .dot {
        position: absolute;
        left: 0;
        top: 7px;
        width: 9px;
        height: 9px;
        border-radius: 999px;
        background: var(--yellow);
        box-shadow: 0 0 0 4px var(--panel);
      }

      .event.user .dot { background: #111; }
      .event.model-success .dot { background: #1f8f4d; }
      .event.model-failed .dot { background: #d33; }

      .event.model-success .event-card h3,
      .event.model-failed .event-card h3 {
        display: inline-flex;
        align-items: center;
        gap: 6px;
      }

      .event.model-success .event-card h3::before,
      .event.model-failed .event-card h3::before {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border-radius: 999px;
        color: #fff;
        font-size: 10px;
        font-weight: 900;
      }

      .event.model-success .event-card h3::before {
        content: "✓";
        background: #1f8f4d;
      }

      .event.model-failed .event-card h3::before {
        content: "!";
        background: #d33;
      }

      .event-card {
        width: 100%;
        border: 0;
        border-top: 1px solid var(--line);
        padding: 12px 0 0;
        background: transparent;
        text-align: left;
      }

      .event-meta {
        position: relative;
        display: flex;
        justify-content: space-between;
        gap: 8px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 850;
      }

      .event-time-with-id {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
      }

      .event-id-trigger {
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #b8b8b1;
        padding: 0;
        font-size: 11px;
      }

      .event-id-bubble {
        position: absolute;
        left: 0;
        top: 24px;
        z-index: 5;
        display: none;
        max-width: min(78vw, 360px);
        border: 1px solid var(--line);
        background: rgba(244,244,242,0.98);
        box-shadow: 0 10px 24px rgba(17,17,17,0.08);
        padding: 8px 10px;
        color: #666660;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 10px;
        line-height: 1.45;
        white-space: nowrap;
        overflow-x: auto;
      }

      .event.show-id .event-id-bubble {
        display: block;
      }

      .event-card h3 {
        margin-top: 10px;
        font-size: 14px;
      }

      .event-card p {
        margin-top: 8px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.65;
        white-space: pre-wrap;
      }

      .error {
        display: none;
        border-top: 1px solid var(--red);
        padding-top: 12px;
        margin-top: 12px;
        color: var(--red);
        font-size: 13px;
        line-height: 1.6;
      }

      .error.show { display: block; }

      @media (max-width: 520px) {
        .stage { padding: 0; }
        .phone {
          width: 100vw;
          height: 100%;
          min-height: 0;
          max-height: none;
          border: 0;
          border-radius: 0;
        }
        .notch { display: none; }
        .memory-head { gap: 10px; }
        .hub-panel-actions { gap: 5px; }
        .hub-action-button {
          width: 40px;
          height: 40px;
          min-height: 40px;
        }
      }

      @media (display-mode: standalone) {
        html,
        body,
        .stage {
          min-height: 100dvh;
        }

        body {
          overscroll-behavior-y: none;
        }

        .stage {
          padding: 0;
        }

        .phone {
          width: 100vw;
          height: 100%;
          min-height: 0;
          max-height: none;
          border: 0;
          border-radius: 0;
        }

        .notch {
          display: none;
        }

        .start,
        .memory-panel,
        .device-panel,
        .hub-panel,
        .ownapp-panel {
          padding-top: calc(8px + env(safe-area-inset-top));
          padding-bottom: calc(20px + env(safe-area-inset-bottom));
        }

        .home-toolbar {
          margin-bottom: 0;
        }

        .software-button,
        .device-entry-button,
        .ownapp-entry-button,
        .hub-entry-button,
        .task-list-button {
          width: 36px;
          height: 36px;
          min-height: 36px;
        }

        .task-panel header,
        .top,
        .timeline-header {
          padding-top: calc(20px + env(safe-area-inset-top));
        }
      }

      /* Scroll ownership: the PWA shell never scrolls; only the active page's
         single content viewport accepts vertical gestures. */
      .app,
      .task-panel,
      .memory-panel,
      .device-panel,
      .hub-panel,
      .ownapp-panel,
      .timeline,
      .sheet-layer,
      .modal-layer {
        min-height: 0;
        overflow: hidden;
        overscroll-behavior: none;
        touch-action: none;
      }

      .home-greeting,
      .content,
      .task-list,
      .memory-list,
      .device-panel-body,
      .hub-asset-list,
      .ownapp-library-view,
      .sheet,
      .timeline-body {
        min-height: 0;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
      }
.ownapp-support-details {
  margin-top: 10px;
  border-top: 1px solid var(--line, #d8d8d4);
}

.ownapp-support-details > summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--muted, #72726d);
  font-size: 12px;
  list-style: none;
}

.ownapp-support-details > summary::-webkit-details-marker { display: none; }
.ownapp-support-details > summary::after { content: "+"; font-size: 18px; line-height: 1; }
.ownapp-support-details[open] > summary::after { content: "−"; }

.demo-technical-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 8px 0;
  min-width: 0;
}

.demo-technical-facts > div,
.support-reference {
  display: grid;
  grid-template-columns: minmax(88px, 0.38fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
}

.ownapp-package-demo-details {
  width: 100%;
  margin-top: 8px;
}

.ownapp-package-demo-details > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}

.ownapp-package-demo-details .demo-technical-facts {
  margin-top: 8px;
}

.demo-technical-facts span,
.support-reference span { color: var(--muted, #72726d); }
.demo-technical-facts code,
.support-reference strong {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  font: inherit;
  color: var(--ink, #111);
}

.support-reference button {
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line, #d8d8d4);
  background: transparent;
  color: inherit;
}

@media (max-width: 360px) {
  .demo-technical-facts > div,
  .support-reference { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .support-reference button { justify-self: start; }
}

/* One navigation stage: home, list and detail always occupy the same viewport.
   Back/forward animation only moves these two already-painted surfaces. */
.phone .start,
.phone .task-panel,
.phone .app {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: var(--panel);
  transform: none;
  transform-origin: center;
  transform-style: flat;
  transition: none;
  filter: none;
  will-change: auto;
  backface-visibility: hidden;
  contain: layout paint style;
}

.phone [data-route-transition-surface] {
  overflow: hidden;
  backface-visibility: hidden;
  will-change: transform;
  transition: none !important;
  animation: none !important;
}

.phone [data-route-transition-prime] {
  backface-visibility: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.phone [data-route-transition-prime] img[data-route-pending-image],
.phone [data-route-transition-surface] img[data-route-pending-image] {
  /* Keep an incomplete lazy thumbnail visibly occupied during an interactive
     return. Hiding it produced a white flash before its first decoded frame. */
  visibility: visible !important;
  opacity: 1 !important;
  background: linear-gradient(135deg, #e7e8e5 0%, #f3f3ef 100%) !important;
}

.phone.face-home .start,
.phone.face-list .task-panel,
.phone.face-detail .app {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.phone.face-home .task-panel,
.phone.face-home .app,
.phone.face-list .start,
.phone.face-list .app,
.phone.face-detail .start,
.phone.face-detail .task-panel {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#ownAxeUpdateNotice {
  position: fixed;
  z-index: 12000;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  width: min(368px, calc(100vw - 24px));
  min-height: 84px;
  padding: 13px 15px;
  transform: translateX(-50%);
  border: 1px solid rgba(17, 17, 17, .14);
  border-radius: 12px;
  background: rgba(250, 250, 248, .97);
  color: #111;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  font: 600 12px/1.3 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  pointer-events: none;
}

.ownaxe-update-notice-icon {
  grid-row: 1;
  width: 28px;
  color: #111;
  font-size: 22px;
  text-align: center;
}

.ownaxe-update-notice-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ownaxe-update-notice-copy strong {
  min-width: 0;
  overflow: hidden;
  font: 650 12px/1.3 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ownaxe-update-notice-copy span {
  flex: none;
  color: #858580;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.ownaxe-update-progress {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #deded9;
}

.ownaxe-update-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #111;
  transition: width 160ms linear;
}

#ownAxeUpdateNotice [data-ownaxe-update-action] {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #111;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font: 650 11px/1 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  white-space: nowrap;
  pointer-events: auto;
}

#ownAxeUpdateNotice [data-ownaxe-update-action]:disabled {
  border-color: #aaa;
  background: #aaa;
}

#ownAxeUpdateNotice [data-ownaxe-update-action][hidden],
.ownaxe-update-progress[hidden] {
  display: none;
}
