
        :root {
            --bg-base: #fafaf9;
            --surface: rgba(255, 255, 255, 0.9);
            --surface-solid: #ffffff;
            --surface-soft: #f6f6f4;
            --text-primary: #181818;
            --text-secondary: #676767;
            --text-tertiary: #a1a1a8;
            --text-quaternary: #c7c7cd;
            --accent-dark: #18352b;
            --accent-sky: #5a94d8;
            --accent-sky-bg: #edf5ff;
            --accent-emerald: #3ea375;
            --accent-emerald-bg: #e8f7ef;
            --accent-violet: #7e73d8;
            --accent-violet-bg: #f2efff;
            --accent-amber: #d9a63a;
            --accent-amber-bg: #fdf7ea;
            --danger: #d95a5a;
            --danger-bg: #fdf1f1;
            --shadow-sm: 0 4px 14px rgba(22, 22, 22, 0.05);
            --shadow-md: 0 10px 30px rgba(22, 22, 22, 0.08);
            --shadow-lg: 0 18px 42px rgba(22, 22, 22, 0.12);
            --radius-sm: 10px;
            --radius-md: 16px;
            --radius-lg: 22px;
            --radius-xl: 28px;
            --radius-full: 9999px;
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 20px;
            --space-6: 24px;
            --space-7: 28px;
            --space-8: 32px;
            --space-10: 40px;
            --transition-fast: 140ms ease;
            --transition-base: 220ms ease;
        /*    --font-weight-title: 700;
            --font-weight-body: 100;*/
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        html, body {
            min-height: 100%;
            background: transparent;
        }

        html {
            background: transparent;
        }

        body {
            font-family: "Huiwen-mincho", "汇文明朝体", "Songti SC", "STSong", "SimSun", serif;
            letter-spacing: 0.4px;
            color: var(--text-primary);
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
            word-break: break-all;
            min-height: 100vh;
            min-height: 100dvh;
            overscroll-behavior: none;
            background: transparent;
        }
        body::before {
            content: "";
            position: fixed;
            inset: 0;
            z-index: 0;
            pointer-events: none;

            background:
                radial-gradient(circle at 10% 10%, rgba(126, 211, 160, 0.26), transparent 26%),
                radial-gradient(circle at 100% 18%, rgba(126, 160, 255, 0.18), transparent 24%),
                linear-gradient(180deg, #fbfbf9 0%, #f7f7f5 100%);
        }

        button, input, textarea, select {
            font: inherit;
        }

        button {
            border: none;
            background: none;
            color: inherit;
        }

        button:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        .invite-access-mask {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background:
                radial-gradient(circle at 10% 10%, rgba(126, 211, 160, 0.26), transparent 26%),
                radial-gradient(circle at 100% 18%, rgba(126, 160, 255, 0.18), transparent 24%),
                linear-gradient(180deg, #fbfbf9 0%, #f7f7f5 100%);
            user-select: none;
            -webkit-user-select: none;
        }

        .invite-access-mask.is-hidden {
            display: none;
        }

        .invite-access-panel {
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .invite-access-top {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: max(180px, calc(env(safe-area-inset-top) + 44px)) 24px clamp(28px, 7vh, 56px);
            text-align: center;
        }

        .invite-access-title {
            font-size: clamp(2rem, 6vw, 2.4rem);
            font-weight: 700;
            color: #27894C;
            letter-spacing: 0.08em;
        }

        .invite-access-subtitle {
            margin-top: 14px;
            font-size: 1.05rem;
            color: #78887e;
        }

        .invite-access-prompt {
            display: none;
        }

        .invite-access-slots {
            position: relative;
            display: flex;
            gap: 10px;
            justify-content: center;
            align-items: stretch;
            width: min(100%, 380px);
            margin-top: 22px;
            padding: 12px 0 10px;
        }

        .invite-access-input {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
            border: none;
            background: transparent;
            color: transparent;
            caret-color: transparent;
            font-size: 16px;
        }

        .invite-access-input:focus {
            outline: none;
        }

        .invite-access-slot {
            flex: 1;
            max-width: 34px;
            display: flex;
            flex-direction: column;
            align-items: center;
            pointer-events: none;
        }

        .invite-access-slot-char {
            min-height: 46px;
            line-height: 46px;
            font-family: "Huiwen-mincho", "汇文明朝体", "Songti SC", "STSong", "SimSun", serif;
            font-size: 2.15rem;
            font-weight: 700;
            color: #222222;
            text-align: center;
        }

        .invite-access-slot-line {
            width: 100%;
            height: 2px;
            margin-top: 4px;
            background: #d2ded6;
            transition: background var(--transition-fast);
        }

        .invite-access-slot-line.active {
            background: #cccccc;
        }

        .invite-access-prompt-text {
            margin-top: 40px;
            min-height: 22px;
            font-size: 0.9rem;
            color: #9aaba0;
            letter-spacing: 0.06em;
            text-align: center;
            transition: color var(--transition-fast);
        }

        .invite-access-prompt-text.is-hint {
            color: var(--accent-amber);
        }

        .invite-access-prompt-text.is-neutral {
            color: var(--text-tertiary);
        }

        .invite-access-prompt-text.is-error {
            color: #c24a4a;
        }

        .invite-access-prompt-text.is-success {
            color: var(--accent-emerald);
        }

        /* 兼容旧 class 名，防止其他地方引用 */
        .invite-access-error {
            display: none;
        }

        .invite-access-bottom {
            padding: 0 18px max(18px, calc(env(safe-area-inset-bottom) + 12px));
        }

        .invite-access-consent {
            width: min(100%, 420px);
            margin: 0 auto 18px;
            padding: 0 4px;
            color: #6f7d74;
            font-size: 0.84rem;
        }

        .invite-access-consent-row {
            display: flex;
            align-items: center;
            gap: 4px;
            justify-content: center;
            margin-bottom: 8px;
        }

        .invite-access-consent-checkbox {
            width: 14px;
            height: 14px;
            accent-color: var(--accent-emerald);
            flex: 0 0 auto;
        }

        .invite-access-consent-text {
            color: var(--text-tertiary);
        }

        .invite-access-consent-links {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            flex-wrap: wrap;
            color: #7f8c84;
        }

        .invite-access-link {
            color: #2d7d52a3;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .invite-access-confirm-btn {
            display: block;
            width: min(100%, 420px);
            margin: 0 auto 14px;
            height: 54px;
            border: none;
            border-radius: 18px;
            background: linear-gradient(180deg, #2f9456 0%, #267b47 100%);
            color: #ffffff;
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            box-shadow: 0 14px 28px rgba(39, 137, 76, 0.22);
        }

        .invite-access-confirm-btn:disabled {
            background: #d8dfdb;
            color: #92a097;
            box-shadow: none;
            opacity: 1;
        }

        .invite-access-keyboard {
            width: 100%;
            margin: 0 auto;
            box-sizing: border-box;
            padding: clamp(10px, 3vw, 14px) clamp(10px, 3vw, 14px) clamp(12px, 3.2vw, 16px);
            border-radius: 28px;
            background: rgba(255, 255, 255, 0.82);
            box-shadow: 0 -10px 34px rgba(24, 24, 24, 0.08);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }

        .invite-access-keyboard-row {
            display: flex;
            justify-content: center;
            flex-wrap: nowrap;
            gap: clamp(4px, 1.6vw, 8px);
        }

        .invite-access-keyboard-row + .invite-access-keyboard-row {
            margin-top: 8px;
        }

        .invite-access-key {
            flex: 0 1 clamp(22px, 7vw, 32px);
            min-width: 0;
            min-height: clamp(40px, 11vw, 44px);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border: none;
            border-radius: 8px;
            background: #ffffff;
            color: #223128;
            font-size: 1rem;
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(25, 25, 25, 0.06);
        }

        .invite-access-key.utility {
            flex-basis: clamp(48px, 18vw, 72px);
            background: #f1f5f2;
            color: #506058;
        }

        .invite-access-key-icon {
            width: clamp(17px, 5vw, 20px);
            height: clamp(17px, 5vw, 20px);
            flex: 0 0 auto;
        }

        .invite-paste-bubble {
            position: fixed;
            z-index: 10001;
            transform: translate(-50%, 6px) scale(0.96);
            opacity: 0;
            min-width: 78px;
            padding: 9px 18px;
            border: none;
            border-radius: 12px;
            background: rgba(24, 24, 24, 0.94);
            color: #ffffff;
            font-size: 0.95rem;
            line-height: 1;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
            transition: opacity var(--transition-fast), transform var(--transition-fast);
        }

        .invite-paste-bubble.active {
            opacity: 1;
            transform: translate(-50%, 0) scale(1);
        }

        @media (max-height: 780px) {
            .invite-access-top {
                justify-content: flex-start;
                padding-top: max(120px, calc(env(safe-area-inset-top) + 20px));
                padding-bottom: 14px;
            }

            .invite-access-prompt {
                margin-top: 32px;
            }

            .invite-access-slot-char {
                min-height: 40px;
                line-height: 40px;
                font-size: 1.95rem;
            }

            .invite-access-key {
                flex-basis: clamp(20px, 6.4vw, 28px);
                min-height: 40px;
            }

            .invite-access-key.utility {
                flex-basis: clamp(44px, 16vw, 64px);
            }
        }

        .sync-primary-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
        }

        .sync-primary-title,
        .sync-subsection-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .sync-subsection {
            margin-top: 22px;
        }

        .sync-status-text {
            font-size: 0.82rem;
            color: var(--text-secondary, #666);
            line-height: 1.55;
        }

        .sync-status-toggle {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .sync-code-block {
            margin: 16px 0 16px;
        }

        .sync-code-label {
            font-size: 0.75rem;
            color: var(--text-tertiary, #999);
            margin-bottom: 12px;
        }

        .sync-code-display {
            font-size: 2rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
            word-break: keep-all;
            white-space: nowrap;
        }

        .sync-action-row,
        .backup-action-row {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .sync-action-row {
            margin-bottom: 10px;
        }

        .sync-action-row .ghost-btn,
        .backup-action-row .ghost-btn {
            min-width: 0;
            white-space: normal;
            line-height: 1.45;
        }

        .backup-action-row {
            margin-top: 14px;
        }

        @media (max-width: 560px) {
            .sync-status-toggle {
                align-self: center;
            }

            .sync-action-row .ghost-btn,
            .backup-action-row .ghost-btn {
                padding-left: 10px;
                padding-right: 10px;
                font-size: 14px;
            }
        }

        .ambient-orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.14;
            pointer-events: none;
            z-index: 0;
        }

        .orb-1 {
            top: -80px;
            right: -60px;
            width: 280px;
            height: 280px;
            background: #71c495;
        }

        .orb-2 {
            bottom: 110px;
            left: -120px;
            width: 260px;
            height: 260px;
            background: #91abff;
        }

        .app-shell {
            position: relative;
            z-index: 1;
            min-height: 100vh;
            background: transparent;
        }

        .app-header {
            position: sticky;
            top: 0;
            z-index: 100;
            padding: 14px 20px 12px;
            padding-top: max(14px, env(safe-area-inset-top));
            background: linear-gradient(to bottom, rgba(250, 250, 249, 0.96), rgba(250, 250, 249, 0.82), rgba(250, 250, 249, 0));
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);

        }

        .header-inner,
        .page {
            max-width: 720px;
            margin: 0 auto;
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 44px;
            position: relative;
        }

        .header-side {
            width: 64px;
            display: flex;
            align-items: center;
        }

        .header-side.right {
            justify-content: flex-end;
        }

        .icon-btn,
        .back-btn {
            width: 40px;
            height: 40px;
            border-radius: var(--radius-full);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-secondary);
            transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
        }

        .icon-btn:hover,
        .back-btn:hover {
            background: rgba(255, 255, 255, 0.76);
            color: var(--text-primary);
        }

        .icon-btn:active,
        .back-btn:active {
            transform: scale(0.95);
        }

        .icon-btn svg,
        .back-btn svg,
        .dropdown-chevron,
        .menu-arrow svg {
            width: 20px;
            height: 20px;
        }

        .header-title-wrap {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: inline-flex;
            align-items: center;
            gap: 4px;
            min-width: 0;
        }

        .header-title-wrap.board-mode {
            left: 50%;
            right: auto;
            transform: translateX(-50%);
            justify-content: flex-start;
            pointer-events: auto;
        }

        .header-title-wrap.plain-mode {
            left: 0;
            right: 0;
            transform: none;
            justify-content: center;
            pointer-events: none;
        }

        .header-title-wrap.detail-mode {
            left: 0;
            right: 0;
            transform: none;
            justify-content: center;
            pointer-events: none;
        }

        .header-title-wrap.detail-mode .header-title-trigger {
            padding-left: 0;
            padding-right: 0;
            pointer-events: none;
        }

        .header-title-trigger {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 8px 12px;
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: background var(--transition-fast), transform var(--transition-fast);
        }

        .header-title-wrap.plain-mode .header-title-trigger {
            gap: 0;
            padding-left: 0;
            padding-right: 0;
            pointer-events: none;
        }

        .header-title-wrap.plain-mode .dropdown-chevron {
            display: none;
        }

        .header-title-trigger:hover {
            background: rgba(255, 255, 255, 0.72);
        }

        .header-title-trigger:active {
            transform: scale(0.98);
        }

        .header-title-trigger.disabled {
            cursor: default;
        }

        .header-title-trigger.disabled:hover {
            background: none;
        }

        .header-title-trigger.open .dropdown-chevron {
            transform: rotate(180deg);
        }

        .header-title-trigger.disabled .dropdown-chevron {
            opacity: 0;
        }

        .header-title,
        .header-subtitle {
            font-size: 20px;
            line-height: 1.2;
            letter-spacing: -0.02em;
            white-space: nowrap;
        }

        .header-title {
            font-weight: 500;
        }

        .header-subtitle {
            font-weight: 500;
            color: #63ae81;
        }

        .title-separator {
            color: var(--text-quaternary);
            font-weight: 500;
        }

        .dropdown-chevron {
            color: var(--text-tertiary);
            transition: transform var(--transition-base), opacity var(--transition-fast);
        }

        .page-stage {
            padding: 0 20px calc(120px + env(safe-area-inset-bottom));
        }

        .screen {
            display: none;
        }

        .screen.active {
            display: block;
        }

        .page {
            padding-top: 6px;
        }

        .cards-stack {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .principle-card,
        .panel-card,
        .menu-card,
        .stat-card,
        .empty-state {
            background: var(--surface);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 16px;
            box-shadow: var(--shadow-sm);
            border: 1px solid rgba(255, 255, 255, 0.55);
        }

        .principle-card {
            overflow: hidden;
            cursor: pointer;
            transition: transform var(--transition-base), box-shadow var(--transition-base);
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }

        .principle-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .principle-card:active {
            transform: scale(0.992);
        }

        .card-head {
            padding: 16px 16px 13px;
        }

        .card-meta {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 10px;
        }

        .card-meta.bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-top: 18px;
            flex-wrap: nowrap;
        }

        .card-meta-left {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
            flex-wrap: wrap;
        }

        .compact-card-top {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .compact-card-main {
            flex: 1;
            min-width: 0;
        }

        .category-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 10px;
            border-radius: var(--radius-full);
            font-size: 12px;
            font-weight: 100;
            letter-spacing: 0.01em;
        }

        .category-tag::before {
            content: "";
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: currentColor;
        }

        .category-tag.consumption {
            color: var(--accent-sky);
            background: var(--accent-sky-bg);
        }

        .category-tag.asset {
            color: var(--accent-emerald);
            background: var(--accent-emerald-bg);
        }

        .category-tag.philosophy {
            color: var(--accent-violet);
            background: var(--accent-violet-bg);
        }

        .category-tag.rose {
            color: #cf5d78;
            background: #fbeef2;
        }

        .category-tag.amber {
            color: #c4872f;
            background: #fcf3e2;
        }

        .category-tag.teal {
            color: #2d8d87;
            background: #e9f8f6;
        }

        .category-tag.other {
            color: var(--text-tertiary);
            background: #f0f0f1;
        }

        .card-time {
            margin-left: auto;
            font-size: 12px;
            color: var(--text-tertiary);
            font-weight: 100;
            line-height: 1;
            letter-spacing: 0.1em;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
            text-align: right;
        }

        .card-title {
            margin-top: 10px;
            font-size: 18px;
            line-height: 1.34;
            font-weight: 500;
            letter-spacing: -0.02em;
        }

        .card-title-main {
            margin-top: 10px;
            font-size: 18px;
            line-height: 1.48;
            font-weight: 500;
            letter-spacing: -0.02em;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .compact-principle {
            margin-top: 10px;
            font-size: 15px;
            line-height: 1.6;
            font-weight: 500;
            color: var(--text-secondary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .compact-reminder {
            margin-top: 2px;
            font-size: 18px;
            line-height: 1.5;
            font-weight: 500;
            color: var(--text-primary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .compact-topic-sub {
            margin-top: 6px;
            font-size: 14px;
            line-height: 1.45;
            color: var(--text-tertiary);
            font-weight: 100;
        }

        .topic-card-title {
            font-size: 20px;
            line-height: 1.35;
            font-weight: 900;
            letter-spacing: 0.02em;
        }

        .topic-card-block {
            margin-top: 10px;
        }

        .topic-card-label {
            font-size: 13px;
            line-height: 1.3;
            color: var(--text-tertiary);
            font-weight: 500;
            letter-spacing: 0.04em;
        }

        .topic-card-text,
        .single-content-text,
        .topic-card-note-preview {
            margin-top: 7px;
            font-size: 16px;
            line-height: 1.65;
            color: var(--text-primary);
            font-weight: 100;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .topic-card-text {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .topic-card-note-preview {
            display: -webkit-box;
            -webkit-line-clamp: 6;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .topic-card-strands {
            margin-top: 8px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .topic-card-strand-item {
            font-size: 15px;
            line-height: 1.3;
            color: var(--text-secondary);
            font-weight: 100;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .pin-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 9px;
            border-radius: var(--radius-full);
            font-size: 11px;
            font-weight: 500;
            color: var(--accent-emerald);
            background: var(--accent-emerald-bg);
        }

        .compact-reminder-sub {
            margin-top: 10px;
            font-size: 13px;
            line-height: 1.55;
            color: var(--text-secondary);
            font-weight: 500;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .single-content-card .card-head {
            padding: 18px 16px 16px;
        }

        .single-content-text {
            margin-top: 0;
            color: var(--text-primary);
        }

        .fab {
            position: fixed;
            right: 24px;
            bottom: calc(44px + env(safe-area-inset-bottom));
            width: 56px;
            height: 56px;
            border-radius: var(--radius-full);
            background:#222222;
            color: #f0f7f3;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 14px 28px rgba(24, 24, 24, 0.22);
            cursor: pointer;
            z-index: 110;
            transition: transform var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base);
        }

        .fab:hover {
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 18px 32px rgba(24, 24, 24, 0.26);
        }

        .fab:active {
            transform: scale(0.95);
        }

        .fab.hidden {
            opacity: 0;
            pointer-events: none;
            transform: translateY(12px);
        }

        .fab svg {
            width: 22px;
            height: 22px;
            stroke-width: 2.6;
        }

        .panel-card,
        .stat-card {
            padding: 20px;
        }

        .subpage-grid {
            display: flex;
            flex-direction: column;
            gap: 18px;
            padding-bottom: calc(112px + env(safe-area-inset-bottom));
        }

        .section-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 24px;
        }

        .section-head h2 {
            font-size: 22px;
            line-height: 1.2;
            font-weight: 500;
            letter-spacing: -0.03em;
        }

        .section-head p {
            margin-top: 6px;
            font-size: 14px;
            line-height: 1.65;
            color: var(--text-secondary);
            font-weight: 100;
            max-width: 34em;
        }

        .mode-tabs {
            display: flex;
            gap: 8px;
            padding: 5px;
            background: rgba(241, 244, 240, 0.88);
            border-radius: var(--radius-full);
            box-shadow: inset 0 0 0 1px rgba(24, 24, 24, 0.04);
        }

        .mode-tabs-wrap {
            position: sticky;
            top: 64px;
            z-index: 20;
        }

        .mode-tabs-wrap .panel-card {
            padding: 6px;
            background: rgba(255, 255, 255, 0.82);
            box-shadow: 0 10px 28px rgba(22, 22, 22, 0.08);
        }

        .mode-tab {
            flex: 1;
            padding: 12px 14px;
            border-radius: var(--radius-full);
            text-align: center;
            font-size: 13px;
            line-height: 1.2;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
        }

        .mode-tab.active {
            background: #222222;
            color: white;
            box-shadow: 0 10px 18px rgba(24, 24, 24, 0.16);
        }

        .mode-panel {
            display: none;
        }

        .mode-panel.active {
            display: block;
        }

        .field-stack {
            display: flex;
            flex-direction: column;
            gap: 22px;
        }

        .form-panel {
            padding: 24px 22px 26px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 248, 0.94) 100%);
            box-shadow: 0 16px 36px rgba(22, 22, 22, 0.08);
        }

        .form-panel .field-stack {
            gap: 18px;
        }

        .field-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .field-group label {
            display: block;
            font-size: 12px;
            line-height: 1.2;
            color: #7a7f78;
            font-weight: 500;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .field-group input,
        .field-group textarea {
            width: 100%;
            border: 1px solid rgba(24, 24, 24, 0.07);
            border-radius: var(--radius-md);
            padding: 15px 16px;
            background: rgba(250, 250, 248, 0.96);
            color: var(--text-primary);
            font-size: 16px;
            line-height: 1.6;
            font-weight: 100;
            outline: none;
            transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
        }

        .field-group input::placeholder,
        .field-group textarea::placeholder {
            color: #a7aba5;
            font-weight: 500;
        }

        .field-group input:focus,
        .field-group textarea:focus {
            border-color: rgba(62, 163, 117, 0.32);
            box-shadow: 0 0 0 4px rgba(62, 163, 117, 0.08);
            background: #fff;
        }

        .field-group textarea {
            resize: vertical;
            max-height: 88px;
            line-height: 1.75;
        }

        .field-group.readonly textarea,
        .field-group.readonly input {
            background: rgba(24, 24, 24, 0.03);
        }

        .category-trigger {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 15px 16px;
            border-radius: var(--radius-md);
            border: 1px solid rgba(24, 24, 24, 0.07);
            background: rgba(250, 250, 248, 0.96);
            color: var(--text-primary);
            cursor: pointer;
            transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
        }

        .category-trigger:hover {
            background: #fff;
        }

        .category-trigger:active {
            transform: scale(0.992);
        }

        .category-trigger-value {
            flex: 1;
            text-align: left;
            font-size: 16px;
            line-height: 1.5;
            font-weight: 500;
        }

        .category-trigger-label {
            font-size: 12px;
            color: var(--text-tertiary);
            font-weight: 500;
            letter-spacing: 0.04em;
            flex-shrink: 0;
        }

        .category-trigger svg {
            width: 18px;
            height: 18px;
            color: var(--text-tertiary);
            flex-shrink: 0;
        }

        .micro-note {
            font-size: 13px;
            line-height: 2;
            color: var(--text-tertiary);
            font-weight: 100;
        }

        .prompt-summary-card {
            display: flex;
            flex-direction: column;
            gap: 14px;
            padding: 18px;
            border-radius: 20px;
            background: linear-gradient(180deg, rgba(244, 248, 244, 0.96) 0%, rgba(250, 251, 248, 0.98) 100%);
            border: 1px solid rgba(62, 163, 117, 0.1);
        }

        .prompt-summary-title {
            font-size: 15px;
            line-height: 1.6;
            color: var(--text-primary);
            font-weight: 500;
        }

        .prompt-summary-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            font-size: 13px;
            line-height: 1.75;
            color: var(--text-secondary);
        }

        .prompt-summary-list strong {
            color: var(--text-primary);
            font-weight: 500;
        }

        .prompt-summary-edit-btn {
            margin-top: 4px;
        }

        .ai-mode-tip {
            display: none;
            align-items: center;
            gap: 2px;
            margin-bottom: 18px;
            padding: 12px 14px;
            border-radius: 16px;
            background: rgba(74, 159, 212, 0.08);
            color: #55708f;
            font-size: 13px;
            line-height: 1.65;
        }

        .ai-mode-tip.active {
            display: flex;
            flex-wrap: wrap;
        }

        .ai-mode-tip button {
            color: #2f6fa4;
            font-weight: 500;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .primary-btn,
        .secondary-btn,
        .ghost-btn {
            width: 100%;
            min-height: 54px;
            padding: 15px 18px;
            border-radius: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 15px;
            line-height: 1.2;
            font-weight: 500;
            text-align: center;
            transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
        }

        .primary-btn {
            background: #222222;
            color: white;
            box-shadow: 0 12px 24px rgba(24, 24, 24, 0.16);
        }

        .secondary-btn {
            background: #222222;
            color: white;
            box-shadow: none;
        }

        .ghost-btn {
            background: rgba(24, 24, 24, 0.05);
            color: #2f3b35;
            box-shadow: inset 0 0 0 1px rgba(24, 24, 24, 0.04);
        }

        .primary-btn:active,
        .secondary-btn:active,
        .ghost-btn:active {
            transform: scale(0.985);
        }

        .bottom-dock {
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            width: min(720px, calc(100vw - 24px));
            bottom: calc(12px + env(safe-area-inset-bottom));
            z-index: 120;
            padding: 0;
            background: transparent;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border-radius: 0;
            box-shadow: none;
            border: none;
            display: none;
            flex-direction: column;
            gap: 8px;
        }

        .bottom-dock.active {
            display: flex;
        }

        .bottom-dock-row {
            display: flex;
            gap: 8px;
        }

        .bottom-dock-row.single .primary-btn,
        .bottom-dock-row.single .secondary-btn,
        .bottom-dock-row.single .ghost-btn {
            width: 100%;
            flex: 1 1 100%;
        }

        .bottom-dock-row .ghost-btn,
        .bottom-dock-row .secondary-btn,
        .bottom-dock-row .primary-btn {
            flex: 1;
            width: auto;
            border-radius: 18px;
        }

        .bottom-dock-row.four-col {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }

        .dock-mini-btn {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-height: 58px;
            border-radius: 18px;
            background: rgba(24, 24, 24, 0.05);
            color: var(--text-primary);
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: transform var(--transition-fast), background var(--transition-fast);
        }

        .dock-mini-btn:active {
            transform: scale(0.97);
        }

        .dock-mini-btn.primary {
            background: var(--accent-dark);
            color: white;
        }

        .dock-mini-btn.warn {
            background: var(--danger-bg);
            color: var(--danger);
        }

        .dock-mini-btn.active {
            background: var(--accent-emerald-bg);
            color: var(--accent-emerald);
        }

        .dock-mini-btn svg {
            width: 18px;
            height: 18px;
        }

        .stat-card {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 14px;
        }

        .stat-label {
            font-size: 12px;
            color: var(--text-tertiary);
            font-weight: 500;
            letter-spacing: 0.04em;
        }

        .stat-value {
            margin-top: 8px;
            font-size: 46px;
            line-height: 1;
            font-weight: 500;
            letter-spacing: 0.05em;
        }

        .stat-side {
            font-size: 12px;
            line-height: 1.5;
            color: var(--text-secondary);
            font-weight: 100;
            text-align: right;
        }

        .settings-overlay,
        .dropdown-overlay,
        .modal-mask {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0);
            opacity: 0;
            pointer-events: none;
            transition: opacity var(--transition-base), background var(--transition-base);
        }

        .settings-overlay.active,
        .dropdown-overlay.active,
        .modal-mask.active {
            opacity: 1;
            pointer-events: auto;
            background: rgba(19, 19, 19, 0.14);
        }

        .dropdown-overlay {
            z-index: 170;
        }

        .category-dropdown {
            position: fixed;
            top: 72px;
            left: 50%;
            transform: translateX(-50%) translateY(-8px);
            width: min(250px, calc(100vw - 32px));
            max-height: calc(100dvh - 96px);
            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            border: 1px solid rgba(255, 255, 255, 0.7);
            opacity: 0;
            pointer-events: none;
            transition: opacity var(--transition-base), transform var(--transition-base);
            z-index: 180;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .category-dropdown.active {
            opacity: 1;
            pointer-events: auto;
            transform: translateX(-50%) translateY(0);
        }

        .dropdown-header {
            padding: 16px 18px 8px;
        }

        .dropdown-header-title {
            font-size: 13px;
            color: var(--text-tertiary);
            font-weight: 500;
            letter-spacing: 0.04em;
        }

        .dropdown-list {
            padding: 8px;
            max-height: min(50vh, 360px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .dropdown-topbar {
            padding: 0 12px 4px;
        }

        .dropdown-view-switch {
            display: inline-flex;
            width: 100%;
            gap: 6px;
            padding: 4px;
            border-radius: 999px;
            background: rgba(24, 24, 24, 0.05);
        }

        .dropdown-view-btn {
            flex: 1;
            min-width: 0;
            padding: 8px 12px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 500;
            color: var(--text-secondary);
            transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
        }

        .dropdown-view-btn.active {
            background: #fff;
            color: var(--text-primary);
            box-shadow: 0 4px 12px rgba(24, 24, 24, 0.08);
        }

        .dropdown-view-switch.four-way {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .dropdown-item {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border-radius: var(--radius-md);
            cursor: pointer;
            font-size: 15px;
            transition: background var(--transition-fast);
            text-align: left;
        }

        .dropdown-item:hover {
            background: rgba(24, 24, 24, 0.04);
        }

        .dropdown-item.active {
            background: rgba(24, 24, 24, 0.06);
        }

        .dropdown-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .dropdown-dot.all {
            background: var(--text-tertiary);
        }

        .dropdown-dot.consumption {
            background: var(--accent-sky);
        }

        .dropdown-dot.asset {
            background: var(--accent-emerald);
        }

        .dropdown-dot.philosophy {
            background: var(--accent-violet);
        }

        .dropdown-dot.rose {
            background: #cf5d78;
        }

        .dropdown-dot.amber {
            background: #c4872f;
        }

        .dropdown-dot.teal {
            background: #2d8d87;
        }

        .dropdown-dot.other {
            background: var(--text-quaternary);
        }

        .dropdown-item-text {
            flex: 1;
            font-weight: 100;
            color: var(--text-secondary);
        }

        .dropdown-item.active .dropdown-item-text {
            color: var(--text-primary);
            font-weight: 500;
        }

        .dropdown-check {
            width: 18px;
            height: 18px;
            color: var(--text-primary);
            opacity: 0;
            transform: scale(0.6);
            transition: transform var(--transition-fast), opacity var(--transition-fast);
            flex-shrink: 0;
        }

        .dropdown-item.active .dropdown-check {
            opacity: 1;
            transform: scale(1);
        }

        .settings-overlay {
            z-index: 200;
        }

        .settings-panel {
            position: fixed;
            inset: 0 auto 0 0;
            width: min(320px, 86vw);
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            transform: translateX(-100%);
            transition: transform var(--transition-base), box-shadow var(--transition-base);
            box-shadow: none;
            z-index: 210;
            display: flex;
            flex-direction: column;
            border-right: 1px solid rgba(255, 255, 255, 0.7);
        }

        .settings-panel.active {
            transform: translateX(0);
            box-shadow: var(--shadow-lg);
        }

        .settings-header {
            padding: 22px 20px 16px;
            padding-top: max(22px, calc(env(safe-area-inset-top) + 12px));
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
        }

        .settings-avatar {
            width: 48px;
            height: 48px;
            border-radius: 22px;
            background:
                radial-gradient(circle at 28% 24%, rgb(255 255 255 / 80%), transparent 34%), linear-gradient(135deg, rgb(25 177 49 / 45%) 0%, rgb(100 211 255 / 25%) 100%);
            color: #214336;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 500;
            flex-shrink: 0;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.58),
                0 8px 22px rgba(113, 196, 149, 0.18);
            border: 1px solid rgba(255, 255, 255, 0.62);
            animation: settingsAvatarFloat 2.4s ease-in-out infinite;
        }

        .settings-user {
            flex: 1;
            min-width: 0;
            padding: 4px 6px;
            border-radius: 14px;
            cursor: pointer;
            transition: background var(--transition-fast), transform var(--transition-fast);
        }

        .settings-user:hover {
            background: rgba(255, 255, 255, 0.48);
        }

        .settings-user:active {
            transform: scale(0.992);
        }

        .settings-user-name {
            font-size: 18px;
            line-height: 1.2;
            font-weight: 500;
            letter-spacing: -0.02em;
        }

        .settings-user-sub {
            margin-top: 6px;
            font-size: 13px;
            line-height: 1.55;
            color: var(--text-tertiary);
            font-weight: 500;
        }

        .settings-body {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            padding: 0 20px calc(20px + env(safe-area-inset-bottom));
        }

        .settings-section + .settings-section {
            margin-top: 16px;
        }

        .settings-section-title {
            margin-bottom: 10px;
            font-size: 12px;
            letter-spacing: 0.04em;
            color: var(--text-tertiary);
            font-weight: 100;
            padding: 0 2px;
        }

        .settings-version {
            margin-top: auto;
            padding: 28px 0 2px;
            text-align: center;
            font-size: 11px;
            line-height: 1;
            color: var(--text-quaternary);
            letter-spacing: 0.08em;
            user-select: none;
            -webkit-user-select: none;
        }

        .menu-card {
            padding: 8px;
        }

        .legal-card {
            padding: 18px 18px 8px;
        }

        .legal-head {
            margin-bottom: 10px;
        }

        .legal-toc {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 18px;
        }

        .legal-chip {
            padding: 8px 12px;
            border-radius: 999px;
            background: rgba(24, 24, 24, 0.05);
            color: var(--text-secondary);
            font-size: 12px;
            line-height: 1.2;
            cursor: default;
        }

        .legal-content {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .legal-section {
            padding-top: 2px;
            border-top: 1px solid rgba(24, 24, 24, 0.06);
        }

        .legal-section:first-child {
            border-top: none;
        }

        .legal-section h3 {
            margin: 0 0 10px;
            font-size: 16px;
            line-height: 1.4;
            color: var(--text-primary);
        }

        .legal-section p {
            margin: 0 0 10px;
            font-size: 14px;
            line-height: 1.8;
            color: var(--text-secondary);
        }

        .legal-section p:last-child {
            margin-bottom: 0;
        }

        .settings-item {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 12px;
            border-radius: var(--radius-md);
            cursor: pointer;
            position: relative;
            transition: background var(--transition-fast), transform var(--transition-fast);
            text-align: left;
        }

        .settings-item:hover {
            background: rgba(24, 24, 24, 0.04);
        }

        .settings-item:active {
            transform: scale(0.99);
        }

        .menu-item-icon {
            width: 38px;
            height: 38px;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .menu-item-icon svg {
            width: 18px;
            height: 18px;
        }

        .menu-item-text {
            flex: 1;
            min-width: 0;
        }

        .menu-item-title {
            font-size: 15px;
            line-height: 1.3;
            font-weight: 500;
        }

        .menu-item-desc {
            margin-top: 2px;
            font-size: 12px;
            line-height: 1.5;
            color: #888888;
            font-weight: 100;
        }

        .menu-arrow {
            flex-shrink: 0;
            color: var(--text-quaternary);
        }

        .settings-file-input {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
        }

        .category-manage-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .category-manage-item {
            padding: 14px 16px;
        }

        .category-manage-row {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .category-manage-tag {
            flex-shrink: 0;
        }

        .category-manage-dot {
            width: 10px;
            height: 10px;
            flex-shrink: 0;
        }

        .category-manage-input {
            flex: 1 1 0;
            width: 100%;
            min-width: 0;
            border: 1px solid rgba(24, 24, 24, 0.07);
            border-radius: var(--radius-md);
            padding: 11px 12px;
            background: rgba(250, 250, 248, 0.96);
            color: var(--text-primary);
            font-size: 14px;
            line-height: 1.5;
            font-weight: 500;
            outline: none;
            transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
        }

        .category-manage-input:focus {
            border-color: rgba(62, 163, 117, 0.32);
            box-shadow: 0 0 0 4px rgba(62, 163, 117, 0.08);
            background: #fff;
        }

        .category-manage-input:disabled {
            background: rgba(24, 24, 24, 0.04);
            color: var(--text-secondary);
        }

        .category-manage-actions {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }

        .category-manage-btn {
            min-height: 34px;
            border-radius: 12px;
            padding: 8px 10px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
        }

        .category-manage-btn:active {
            transform: scale(0.985);
        }

        .category-manage-btn.secondary {
            background: rgba(24, 24, 24, 0.05);
            color: var(--text-primary);
        }

        .category-manage-btn.danger {
            background: rgba(224, 83, 83, 0.1);
            color: #c24a4a;
        }

        .category-manage-create {
            margin-top: 16px;
        }

        .category-manage-create .ghost-btn {
            background: rgba(74, 159, 212, 0.1);
            color: #3f7fa8;
            box-shadow: inset 0 0 0 1px rgba(74, 159, 212, 0.12);
        }

        .category-manage-item {
            touch-action: none;
            transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
        }

        .category-manage-item.dragging {
            transform: scale(1.01);
            box-shadow: var(--shadow-md);
            opacity: 0.92;
        }

        .settings-footer {
            padding: 12px 20px calc(18px + env(safe-area-inset-bottom));
            text-align: center;
        }

        .settings-version {
            font-size: 12px;
            color: var(--text-quaternary);
            font-weight: 100;
        }

        @keyframes settingsAvatarFloat {
            0%, 100% {
                transform: translateY(0);
                box-shadow:
                    inset 0 1px 0 rgba(255, 255, 255, 0.58),
                    0 8px 22px rgba(113, 196, 149, 0.18);
            }
            50% {
                transform: translateY(-4px);
                box-shadow:
                    inset 0 1px 0 rgba(255, 255, 255, 0.58),
                    0 14px 30px rgba(113, 196, 149, 0.22);
            }
        }

        .profile-modal-card {
            width: min(420px, 100%);
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: 26px;
            box-shadow: var(--shadow-lg);
            padding: 22px 20px 20px;
            transform: translateY(10px) scale(0.98);
            transition: transform var(--transition-base);
        }

        .modal-mask.active .profile-modal-card {
            transform: translateY(0) scale(1);
        }

        .profile-modal-head h3 {
            font-size: 18px;
            line-height: 1.3;
            font-weight: 500;
            letter-spacing: -0.02em;
        }

        .profile-modal-head p {
            margin-top: 6px;
            font-size: 13px;
            line-height: 1.6;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .profile-modal-fields {
            margin-top: 18px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .profile-modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 18px;
        }

        .profile-modal-actions .modal-btn {
            min-height: 48px;
        }

        .empty-state {
            padding: 34px 20px;
            text-align: center;
        }

        .empty-state h3 {
            font-size: 18px;
            line-height: 1.3;
            font-weight: 500;
        }

        .empty-state p {
            margin-top: 8px;
            margin-bottom: 14px;
            font-size: 14px;
            line-height: 1.65;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .detail-page {
            display: flex;
            flex-direction: column;
            gap: 14px;
            padding-bottom: 96px;
        }

        .detail-card {
            padding: 20px 18px;
        }

        .detail-hero {
            background: linear-gradient(180deg, rgba(232, 253, 239, 0.88), rgba(255, 255, 255, 0.82));
        }

        .detail-hero .card-meta {
            margin-bottom: 14px;
        }

        .detail-title {
            font-size: 22px;
            line-height: 1.4;
            font-weight: 500;
            letter-spacing: -0.025em;
        }

        .detail-principle {
            margin-top: 18px;
        }

        .detail-principle-label,
        .detail-secondary-label {
            font-size: 12px;
            line-height: 1.2;
            letter-spacing: 0.05em;
            font-weight: 100;
            text-transform: uppercase;
        }

        .detail-principle-label {
            color: var(--accent-amber);
            margin-bottom: 10px;
        }

        .detail-principle-text {
            font-size: 17px;
            line-height: 1.72;
            font-weight: 100;
            color: var(--text-primary);
            user-select: text;
        }

        .detail-secondary-card {
            margin-top: 18px;
            padding-top: 14px;
            border-top: 1px solid rgba(24, 24, 24, 0.08);
        }

        .detail-chat-fab {
            position: fixed;
            right: 24px;
            bottom: calc(44px + env(safe-area-inset-bottom));
            z-index: 90;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: #222222;
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 16px 32px rgba(24, 24, 24, 0.22);
            transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
        }

        .detail-chat-fab svg {
            width: 22px;
            height: 22px;
        }

        .detail-chat-fab:active {
            transform: scale(0.96);
        }

        .detail-principle.hidden,
        .detail-secondary-card.hidden,
        .detail-block.hidden {
            display: none;
        }

        .detail-secondary-label {
            color: var(--text-tertiary);
            margin-bottom: 8px;
        }

        .detail-secondary-text {
            font-size: 15px;
            line-height: 1.75;
            color: var(--text-secondary);
            font-weight: 100;
            user-select: text;
        }

        .detail-block {
            padding: 18px;
        }

        .detail-section-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
        }

        .detail-block-title {
            font-size: 15px;
            line-height: 1.3;
            font-weight: 500;
            margin-bottom: 16px;
        }

        .detail-section-head .detail-block-title {
            margin-bottom: 0;
        }

        .detail-summary-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .view-switch {
            display: inline-flex;
            gap: 6px;
            padding: 4px;
            border-radius: 999px;
            background: rgba(24, 24, 24, 0.05);
            box-shadow: var(--shadow-xs);
        }

        .view-switch-btn {
            min-width: 68px;
            padding: 7px 12px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 500;
            color: var(--text-secondary);
            transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
        }

        .view-switch-btn.active {
            background: #fff;
            color: var(--text-primary);
            box-shadow: 0 4px 12px rgba(24, 24, 24, 0.08);
        }

        .detail-summary-item {
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .detail-summary-item.interactive {
            align-items: stretch;
        }

        .detail-summary-btn {
            flex: 1;
            padding: 2px 0;
            text-align: left;
        }

        .detail-summary-btn:active {
            transform: scale(0.996);
        }

        .number-badge {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: rgba(24, 24, 24, 0.06);
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 500;
            line-height: 1;
            font-variant-numeric: tabular-nums;
            margin-top: 4px;
        }

        .detail-summary-text {
            flex: 1;
            font-size: 16px;
            line-height: 1.72;
            font-weight: 100;
            color: var(--text-tertiary);
            user-select: text;
        }

        .detail-summary-text.strong {
            color: var(--text-primary);
            font-weight: 100;
        }

        .detail-summary-subtext {
            margin-top: 6px;
            font-size: 15px;
            line-height: 1.65;
            color: var(--text-tertiary);
            font-weight: 100;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .subcard-parent-line {
            margin-top: 8px;
            font-size: 12px;
            line-height: 1.5;
            color: var(--text-tertiary);
            font-weight: 500;
        }

        .subcard-parent-line strong {
            color: var(--text-secondary);
            font-weight: 500;
        }

        .detail-raw-text {
            font-size: 15px;
            line-height: 1.8;
            color: var(--text-secondary);
            font-weight: 100;
            white-space: pre-wrap;
            user-select: text;
        }

        .detail-copy-target {
            -webkit-touch-callout: none;
        }

        .detail-source-switch {
            display: inline-flex;
            gap: 6px;
            padding: 4px;
            border-radius: 999px;
            background: rgba(24, 24, 24, 0.05);
        }

        .detail-source-tab {
            padding: 7px 12px;
            border-radius: 999px;
            font-size: 12px;
            color: var(--text-secondary);
            font-weight: 100;
            cursor: pointer;
            transition: background var(--transition-fast), color var(--transition-fast);
        }

        .detail-source-tab.active {
            background: white;
            color: var(--text-primary);
            box-shadow: 0 4px 12px rgba(24, 24, 24, 0.08);
        }

        .subcard-sheet-body {
            padding: 6px 20px calc(40px + env(safe-area-inset-bottom));
            overflow-y: auto;
        }

        .subcard-sheet-body.compact {
            padding-top: 2px;
        }

        .subcard-sheet-section + .subcard-sheet-section {
            margin-top: 18px;
        }

        .subcard-sheet-label {
            font-size: 11px;
            line-height: 1.2;
            letter-spacing: 0.05em;
            color: var(--text-tertiary);
            font-weight: 500;
            text-transform: uppercase;
        }

        .subcard-sheet-topbar {
            margin-top: 18px;
            margin-bottom: 24px;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }

        .subcard-sheet-title {
            margin: 0;
            font-size: 20px;
            line-height: 1.45;
            font-weight: 500;
            letter-spacing: -0.02em;
            flex: 1;
            min-width: 0;
        }

        .subcard-sheet-more-btn {
            flex-shrink: 0;
            margin-top: 2px;
        }

        .subcard-sheet-text {
            margin-top: 10px;
            font-size: 15px;
            line-height: 1.8;
            color: var(--text-secondary);
            font-weight: 500;
            white-space: pre-wrap;
        }

        .subcard-sheet-source {
            margin-top: 22px;
            padding-top: 18px;
            border-top: 1px solid rgba(24, 24, 24, 0.08);
        }

        .subcard-sheet-source.hidden {
            display: none;
        }

        .subcard-sheet-section.hidden {
            display: none;
        }

        .subcard-sheet-source-btn {
            width: 100%;
            margin-top: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 16px;
            background: rgba(24, 24, 24, 0.04);
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 500;
            text-align: left;
        }

        .subcard-sheet-source-btn span:last-child {
            color: var(--text-tertiary);
            font-size: 18px;
            line-height: 1;
        }

        .subcard-editor-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .subcard-editor-empty {
            padding: 16px 14px;
            border-radius: 18px;
            background: rgba(24, 24, 24, 0.03);
            border: 1px dashed rgba(24, 24, 24, 0.1);
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.65;
            font-weight: 500;
        }

        .subcard-editor-item {
            padding: 14px;
            border-radius: 18px;
            background: rgba(24, 24, 24, 0.035);
            border: 1px solid rgba(24, 24, 24, 0.06);
        }

        .subcard-editor-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }

        .subcard-editor-index {
            font-size: 12px;
            line-height: 1.2;
            color: var(--text-tertiary);
            font-weight: 500;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .subcard-editor-remove {
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(24, 24, 24, 0.06);
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 500;
        }

        .subcard-editor-tools {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .subcard-editor-move {
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(24, 24, 24, 0.04);
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 500;
        }

        .subcard-editor-fields {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .subcard-editor-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 12px;
        }

        .subcard-editor-actions {
            margin-top: 6px;
        }

        .subcard-category-trigger {
            width: 100%;
        }

        .masked-key {
            /* font-family: '汇文明朝体', serif;*/
            font-size: 13px;
            color: var(--text-secondary);
            font-weight: 100;
        }

        .check-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 14px;
            border-radius: var(--radius-md);
            background: rgba(24, 24, 24, 0.04);
        }

        .switch {
            position: relative;
            width: 48px;
            height: 30px;
            border-radius: 999px;
            background: rgba(24, 24, 24, 0.12);
            transition: background var(--transition-fast);
            flex-shrink: 0;
        }

        .switch::after {
            content: "";
            position: absolute;
            top: 3px;
            left: 3px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: white;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
            transition: transform var(--transition-fast);
        }

        .switch.on {
            background: var(--accent-emerald);
        }

        .switch.on::after {
            transform: translateX(18px);
        }

        .checkbox-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: var(--text-primary);
            font-weight: 500;
            padding: 12px 14px;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.82);
            border: 1px solid rgba(24, 24, 24, 0.06);
        }

        .checkbox-item input {
            width: 18px;
            height: 18px;
            accent-color: var(--accent-emerald);
            flex-shrink: 0;
        }

        .share-sheet {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            max-height: calc(100vh - 48px);
            background: rgba(255, 255, 255, 0.98);
            border-radius: 28px 28px 0 0;
            box-shadow: 0 -18px 40px rgba(24, 24, 24, 0.12);
            transform: translateY(100%);
            transition: transform var(--transition-base);
            z-index: 230;
            display: flex;
            flex-direction: column;
            padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
        }

        .modal-mask.active .share-sheet {
            transform: translateY(0);
        }

        .share-sheet-handle {
            width: 42px;
            height: 5px;
            border-radius: 999px;
            background: rgba(24, 24, 24, 0.14);
            margin: 0 auto 12px;
            flex-shrink: 0;
        }

        .share-sheet-head {
            padding: 4px 4px 12px;
            text-align: center;
            flex-shrink: 0;
        }

        .share-sheet-title {
            font-size: 17px;
            line-height: 1.3;
            font-weight: 500;
        }

        .share-sheet-subtitle {
            margin-top: 4px;
            font-size: 12px;
            line-height: 1.6;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .share-preview-wrap {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            overflow-y: auto;
            padding: 6px 0 14px;
            flex: 1;
            min-height: 0;
        }

        .share-preview-canvas {
            width: min(100%, 420px);
            border-radius: 24px;
            box-shadow: 0 12px 28px rgba(24, 24, 24, 0.10);
            background: transparent;
        }

        .share-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            padding-top: 10px;
            flex-shrink: 0;
        }

        .header-text-btn {
            min-width: 48px;
            padding: 8px 10px;
            border-radius: var(--radius-full);
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
        }

        .header-text-btn:hover {
            background: rgba(255, 255, 255, 0.72);
            color: var(--text-primary);
        }

        .header-text-btn:active {
            transform: scale(0.97);
        }

        .header-text-btn.active {
            background: rgba(24, 24, 24, 0.08);
            color: var(--text-primary);
        }

        .header-more-btn {
            width: 40px;
            height: 30px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .header-more-btn svg {
            width: 18px;
            height: 18px;
        }

        .modal-mask {
            z-index: 260;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            --keyboard-offset: 0px;
            --modal-viewport-top: 0px;
            --modal-viewport-height: 100dvh;
            overflow-y: auto;
        }

        .modal-mask.keyboard-open {
            top: var(--modal-viewport-top);
            bottom: auto;
            height: var(--modal-viewport-height);
            align-items: center;
            padding-top: max(16px, calc(env(safe-area-inset-top) + 12px));
            padding-bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
        }

        .sheet-mask {
            position: fixed;
            inset: 0;
            z-index: 265;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding: 16px;
            background: rgba(19, 19, 19, 0);
            opacity: 0;
            pointer-events: none;
            transition: opacity var(--transition-base), background var(--transition-base);
        }

        #subCardEditMask {
            z-index: 300;
        }

        #categorySheetMask {
            z-index: 340;
        }

        #subCardActionOverlay {
            z-index: 344;
        }

        #subCardActionMenu {
            z-index: 345;
        }

        .sheet-mask.active {
            opacity: 1;
            pointer-events: auto;
            background: rgba(19, 19, 19, 0.18);
        }

        .bottom-sheet {
            width: min(520px, 100%);
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: 28px 28px 20px 20px;
            box-shadow: var(--shadow-lg);
            border: 1px solid rgba(255, 255, 255, 0.72);
            transform: translateY(24px);
            transition: transform var(--transition-base);
            overflow: hidden;
            max-height: min(76vh, 680px);
            display: flex;
            flex-direction: column;
        }

        .sheet-mask.active .bottom-sheet {
            transform: translateY(0);
        }

        .sheet-handle {
            width: 42px;
            height: 5px;
            border-radius: 999px;
            background: rgba(24, 24, 24, 0.12);
            margin: 10px auto 0;
            flex-shrink: 0;
        }

        .sheet-header {
            padding: 14px 20px 10px;
            flex-shrink: 0;
        }

        .sheet-title {
            font-size: 18px;
            font-weight: 500;
            margin-bottom: 12px;
        }

        .sheet-subtitle {
            margin-top: 6px;
            font-size: 13px;
            line-height: 1.6;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .sheet-create-box {
            display: none;
            padding: 0 20px 12px;
            flex-shrink: 0;
        }

        .sheet-create-box.active {
            display: block;
        }

        .sheet-create-row {
            display: flex;
            gap: 10px;
        }

        .sheet-create-row input {
            flex: 1;
            min-width: 0;
            border: 1px solid rgba(24, 24, 24, 0.08);
            border-radius: 16px;
            padding: 13px 14px;
            background: rgba(24, 24, 24, 0.03);
        }

        .sheet-create-row button {
            padding: 13px 16px;
            border-radius: 16px;
            font-size: 14px;
            font-weight: 100;
            cursor: pointer;
        }

        .sheet-create-row .ghost {
            background: rgba(24, 24, 24, 0.06);
            color: var(--text-primary);
        }

        .sheet-create-row .primary {
            background: var(--accent-dark);
            color: white;
        }

        .sheet-list {
            padding: 8px 14px 18px;
            overflow-y: auto;
        }

        .sheet-item {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 15px 16px;
            border-radius: 20px;
            background: transparent;
            cursor: pointer;
            text-align: left;
            transition: background var(--transition-fast), transform var(--transition-fast);
        }

        .sheet-item + .sheet-item {
            margin-top: 6px;
        }

        .sheet-item:active {
            transform: scale(0.992);
        }

        .sheet-item.active {
            background: rgba(24, 24, 24, 0.06);
        }

        .sheet-item.create {
            background: rgba(62, 163, 117, 0.08);
            color: var(--accent-emerald);
        }

        .sheet-item-text {
            flex: 1;
            font-size: 15px;
            font-weight: 100;
            color: var(--text-primary);
        }

        .sheet-item-sub {
            margin-top: 2px;
            font-size: 12px;
            line-height: 1.5;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .sheet-check {
            width: 18px;
            height: 18px;
            color: var(--text-primary);
            opacity: 0;
        }

        .sheet-item.active .sheet-check {
            opacity: 1;
        }

        .toast {
            position: fixed;
            left: 50%;
            bottom: calc(96px + env(safe-area-inset-bottom));
            transform: translateX(-50%) translateY(12px);
            background: rgba(24, 24, 24, 0.92);
            color: white;
            padding: 12px 16px;
            border-radius: 16px;
            font-size: 13px;
            font-weight: 500;
            box-shadow: var(--shadow-md);
            opacity: 0;
            pointer-events: none;
            transition: opacity var(--transition-base), transform var(--transition-base);
            z-index: 280;
            max-width: calc(100vw - 32px);
            text-align: center;
            line-height: 1.5;
        }

        .toast.active {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .progress-mask {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(19, 19, 19, 0.14);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 270;
            padding: 24px;
        }

        .progress-mask.active {
            display: flex;
        }

        .progress-card {
            width: min(320px, 100%);
            background: rgba(255, 255, 255, 0.96);
            border-radius: 24px;
            box-shadow: var(--shadow-lg);
            padding: 24px 20px;
            text-align: center;
        }

        .progress-spinner {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 4px solid rgba(62, 163, 117, 0.14);
            border-top-color: var(--accent-emerald);
            margin: 0 auto 16px;
            animation: spin 0.9s linear infinite;
        }

        .progress-title {
            font-size: 18px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .progress-text {
            margin-top: 8px;
            font-size: 13px;
            line-height: 1.6;
            color: var(--text-secondary);
            font-weight: 500;
        }

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

        .modal-card {
            width: min(360px, 100%);
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-lg);
            transform: translateY(10px) scale(0.98);
            transition: transform var(--transition-base);
            overflow: hidden;
        }

        .modal-mask.active .modal-card {
            transform: translateY(0) scale(1);
        }

        .modal-mask.keyboard-open .modal-card,
        .modal-mask.keyboard-open .profile-modal-card {
            max-height: calc(100% - 32px);
            overflow-y: auto;
        }

        .modal-body {
            padding: 24px 24px 16px;
        }

        .modal-title {
            font-size: 18px;
            line-height: 1.3;
            font-weight: 500;
            letter-spacing: -0.02em;
        }

        .modal-text {
            margin-top: 8px;
            font-size: 14px;
            line-height: 1.65;
            color: var(--text-secondary);
            font-weight: 500;
            white-space: pre-wrap;
        }

        .modal-actions {
            display: flex;
            gap: 10px;
            padding: 0 24px 20px;
        }

        .modal-actions-row {
            display: flex;
            gap: 10px;
            width: 100%;
        }

        .modal-actions-stacked-split {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .modal-actions-stacked-split .modal-actions-row:last-child .modal-btn {
            flex: 1 1 100%;
            width: 100%;
        }

        .modal-btn {
            flex: 1;
            padding: 16px 14px;
            border-radius: var(--radius-md);
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
        }

        .modal-btn.secondary {
            background: rgba(24, 24, 24, 0.06);
            color: var(--text-primary);
        }

        .modal-btn.primary {
            background: var(--accent-dark);
            color: white;
        }

        .action-menu {
            position: fixed;
            min-width: 184px;
            max-width: min(240px, calc(100vw - 24px));
            padding: 8px;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: 20px;
            box-shadow: var(--shadow-lg);
            border: 1px solid rgba(255, 255, 255, 0.72);
            z-index: 290;
            display: none;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }

        .action-menu.active {
            display: block;
        }

        .action-menu-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .action-menu-item {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border-radius: 16px;
            text-align: left;
            cursor: pointer;
            color: var(--text-primary);
            transition: background var(--transition-fast), transform var(--transition-fast);
        }

        .action-menu-item:hover {
            background: rgba(24, 24, 24, 0.05);
        }

        .action-menu-item:active {
            transform: scale(0.985);
        }

        .action-menu-item.warn {
            color: var(--danger);
        }

        .action-menu-item-icon {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        .action-menu-item-text {
            flex: 1;
            font-size: 14px;
            font-weight: 100;
            line-height: 1.4;
        }

        ::-webkit-scrollbar {
            width: 4px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(24, 24, 24, 0.2);
            border-radius: 999px;
        }

        @media (max-width: 640px) {
            .app-header {
                padding-left: 16px;
                padding-right: 16px;
            }

            .page-stage {
                padding-left: 16px;
                padding-right: 16px;
            }

            .header-side {
                width: 52px;
            }

            .fab {
                right: 24px;
                bottom: 44px;
            }

            .card-head,
            .panel-card,
            .stat-card {
                padding: 18px;
            }

            .core-principle {
                margin-left: 18px;
                margin-right: 18px;
            }

            .category-dropdown {
                top: 68px;
            }

            .detail-title {
                font-size: 24px;
                letter-spacing: 0.4px;

            }

            .share-preview-wrap {
                padding: 10px;
            }

            .sheet-mask {
                padding: 0;
            }

            .bottom-sheet {
                width: 100%;
                border-radius: 28px 28px 0 0;
                max-height: 90vh;
            }

            .section-head h2 {
                font-size: 20px;
            }

            .section-head p {
                font-size: 13px;
            }

            .form-panel {
                padding: 20px 18px 22px;
            }

            .field-group input,
            .field-group textarea,
            .category-trigger {
                padding: 14px 14px;
                font-size: 15px;
            }

            .bottom-dock {
                width: calc(100vw - 20px);
                bottom: calc(10px + env(safe-area-inset-bottom));
                padding: 7px;
                border-radius: 22px;
            }

            .primary-btn,
            .secondary-btn,
            .ghost-btn {
                min-height: 50px;
                padding: 14px 16px;
                font-size: 14px;
            }
        }

        .header-title,
        .header-subtitle,
        .card-title,
        .card-title-main,
        .compact-reminder,
        .topic-card-title,
        .topic-card-label,
        .section-head h2,
        .mode-tab,
        .field-group label,
        .category-trigger-value,
        .category-trigger-label,
        .primary-btn,
        .secondary-btn,
        .ghost-btn,
        .stat-label,
        .stat-value,
        .dropdown-header-title,
        .dropdown-view-btn,
        .dropdown-item.active .dropdown-item-text,
        .settings-user-name,
        .menu-item-title,
        .category-manage-btn,
        .profile-modal-head h3,
        .empty-state h3,
        .detail-title,
        .detail-block-title,
        .view-switch-btn,
        .number-badge,
        .detail-summary-text.strong,
        .subcard-parent-line strong,
        .subcard-sheet-label,
        .subcard-sheet-title,
        .subcard-sheet-source-btn,
        .subcard-editor-index,
        .subcard-editor-remove,
        .subcard-editor-move,
        .checkbox-item,
        .share-sheet-title,
        .header-text-btn,
        .sheet-title,
        .toast,
        .progress-title,
        .modal-title,
        .legal-section h3,
        .modal-btn {
            font-weight: 900;
        }

        body,
        .category-tag,
        .card-time,
        .compact-principle,
        .compact-topic-sub,
        .topic-card-text,
        .topic-card-note-preview,
        .single-content-text,
        .topic-card-strand-item,
        .section-head p,
        .field-group input,
        .field-group textarea,
        .field-group input::placeholder,
        .field-group textarea::placeholder,
        .micro-note,
        .stat-side,
        .dropdown-item-text,
        .settings-user-sub,
        .settings-section-title,
        .menu-item-desc,
        .category-manage-input,
        .settings-version,
        .profile-modal-head p,
        .empty-state p,
        .detail-principle-label,
        .detail-secondary-label,
        .detail-principle-text,
        .detail-secondary-text,
        .detail-summary-text,
        .detail-summary-subtext,
        .subcard-parent-line,
        .detail-raw-text,
        .detail-source-tab,
        .subcard-sheet-text,
        .subcard-editor-empty,
        .masked-key,
        .share-sheet-subtitle,
        .sheet-subtitle,
        .sheet-create-row button,
        .sheet-item-text,
        .sheet-item-sub,
        .progress-text,
        .modal-text,
        .legal-chip,
        .legal-section p,
        .action-menu-item-text {
            font-weight: 500;
        }

        /* ── 同步确认弹窗专用样式 ── */
        .sync-consent-card {
            width: min(88vw, 360px);
        }

        .sync-consent-check-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-top: 4px;
            cursor: pointer;
        }

        .sync-consent-check-row input[type="checkbox"] {
            flex-shrink: 0;
            width: 15px;
            height: 15px;
            margin-top: 4px;
            accent-color: var(--accent-emerald);
            cursor: pointer;
        }

        .sync-consent-check-label {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .sync-consent-link {
            color: var(--accent-sky);
            text-decoration: underline;
            text-underline-offset: 2px;
            cursor: pointer;
            font-size: inherit;
            padding: 0;
            background: none;
            border: none;
            font-family: inherit;
        }

        .sync-consent-link:hover {
            opacity: 0.8;
        }

        .sync-consent-actions {
            display: flex;
            gap: 10px;
            padding: 12px 16px 16px;
        }

        .sync-consent-cancel {
            flex: 0 0 auto;
            min-width: 80px;
            padding-left: 12px;
            padding-right: 12px;
        }

        .sync-consent-confirm {
            flex: 1;
        }

        .sync-consent-confirm:disabled {
            opacity: 0.42;
            pointer-events: none;
        }

        /* ── screen-more 页面样式（复用现有 settings-section） ── */
        #screen-more .settings-section {
            padding: 0;
        }

        #screen-more .settings-section-title {
            padding: 0 2px;
            margin-bottom: 8px;
            font-size: 0.72rem;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
