        :root {
            --ink: #111111;
            --ink-soft: #333333;
            --muted: #666666;
            --muted-2: #999999;
            --line: #d9d9d9;
            --line-strong: #b3b3b3;
            --bg: #ffffff;
            --surface: #ffffff;
            --surface-2: #fafafa;
            --radius-lg: 2px;
            --radius: 2px;
            --radius-sm: 2px;
        }

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

        [hidden] {
            display: none !important;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            font-size: 15px;
            line-height: 1.55;
            color: var(--ink);
            background: var(--bg);
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }

        body.modal-open {
            overflow: hidden;
        }

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

        button {
            cursor: pointer;
        }

        a {
            color: inherit;
        }

        svg {
            display: block;
        }

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

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            height: 38px;
            padding: 0 14px;
            border: 1px solid var(--ink);
            border-radius: var(--radius);
            background: #ffffff;
            color: var(--ink);
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
            transition: background-color .15s ease, color .15s ease, border-color .15s ease;
        }

        .btn svg {
            width: 15px;
            height: 15px;
            flex: 0 0 auto;
        }

        .btn-primary {
            background: var(--ink);
            color: #ffffff;
            border-color: var(--ink);
        }

        .btn-primary:hover {
            background: #2a2a2a;
            border-color: #2a2a2a;
        }

        .btn-ghost {
            background: #ffffff;
            border-color: var(--line-strong);
            color: var(--ink-soft);
        }

        .btn-ghost:hover {
            background: var(--surface-2);
            border-color: var(--ink);
            color: var(--ink);
        }

        .btn-soft {
            background: #ffffff;
            color: var(--ink-soft);
            border-color: var(--line-strong);
        }

        .btn-soft:hover {
            background: var(--surface-2);
            border-color: var(--ink);
            color: var(--ink);
        }

        .btn-danger-solid {
            background: var(--ink);
            color: #ffffff;
            border-color: var(--ink);
        }

        .btn-danger-solid:hover {
            background: #2a2a2a;
            border-color: #2a2a2a;
        }

        .btn-sm {
            height: 32px;
            padding: 0 11px;
            font-size: 13px;
            border-radius: var(--radius-sm);
        }

        .btn-sm svg {
            width: 13px;
            height: 13px;
        }

        .btn-xs {
            height: 28px;
            padding: 0 9px;
            font-size: 12px;
            border-radius: var(--radius-sm);
            gap: 4px;
        }

        .btn-xs svg {
            width: 12px;
            height: 12px;
        }

        .icon-btn {
            width: 32px;
            height: 32px;
            padding: 0;
            display: inline-grid;
            place-items: center;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            background: #ffffff;
            color: var(--muted);
            transition: background-color .15s ease, border-color .15s ease, color .15s ease;
        }

        .icon-btn svg {
            width: 14px;
            height: 14px;
        }

        .icon-btn:hover {
            background: var(--surface-2);
            border-color: var(--ink);
            color: var(--ink);
        }

        .icon-btn.danger:hover {
            background: #ffffff;
            border-color: var(--ink);
            color: var(--ink);
        }

        .icon-btn.is-sm {
            width: 28px;
            height: 28px;
            border-radius: var(--radius-sm);
        }

        .icon-btn.is-sm svg {
            width: 13px;
            height: 13px;
        }

        button:focus-visible,
        a:focus-visible {
            outline: 1px solid var(--ink);
            outline-offset: 2px;
        }

        input:focus-visible,
        select:focus-visible,
        textarea:focus-visible {
            outline: none;
        }

        .topbar {
            position: sticky;
            top: 0;
            z-index: 60;
            background: #ffffff;
            border-bottom: 1px solid var(--line);
        }

        .topbar-inner {
            max-width: 1320px;
            height: 66px;
            margin: 0 auto;
            padding: 0 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            text-decoration: none;
        }

        .brand-mark {
            width: 34px;
            height: 34px;
            flex: 0 0 auto;
            display: grid;
            place-items: center;
            border-radius: var(--radius-sm);
            overflow: hidden;
            background: #ffffff;
            border: 1px solid var(--line-strong);
        }

        .brand-mark img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 5px;
        }

        .brand-fallback {
            display: none;
            width: 100%;
            height: 100%;
            align-items: center;
            justify-content: center;
            background: #111111;
            color: #ffffff;
            font-size: 17px;
            font-weight: 700;
            line-height: 1;
        }

        .brand-text {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .brand-name {
            font-size: 17px;
            font-weight: 700;
            letter-spacing: -.01em;
            line-height: 1.2;
            color: var(--ink);
        }

        .brand-sub {
            margin-top: 1px;
            font-size: 11.5px;
            font-weight: 400;
            color: var(--muted);
            letter-spacing: .02em;
        }

        .topbar-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .topbar-divider {
            width: 1px;
            height: 22px;
            background: var(--line);
            margin: 0 4px;
        }

        .lang-switch {
            position: relative;
            display: flex;
            align-items: center;
            gap: 6px;
            height: 38px;
            padding: 0 10px;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius);
            background: #ffffff;
            color: var(--muted);
            transition: border-color .15s ease;
        }

        .lang-switch:hover {
            border-color: var(--ink);
        }

        .lang-switch .globe {
            width: 15px;
            height: 15px;
            flex: 0 0 auto;
        }

        .lang-switch .chev {
            width: 11px;
            height: 11px;
            pointer-events: none;
            color: var(--muted-2);
        }

        .lang-switch select {
            appearance: none;
            -webkit-appearance: none;
            border: 0;
            background: transparent;
            padding: 0 2px;
            font-size: 13.5px;
            font-weight: 500;
            color: var(--ink);
            cursor: pointer;
            max-width: 96px;
        }

        .page {
            max-width: 1320px;
            margin: 0 auto;
            padding: 32px 28px 52px;
            display: flex;
            flex-direction: column;
            gap: 22px;
        }

        .page-intro {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 24px;
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-size: 11.5px;
            font-weight: 500;
            letter-spacing: .06em;
            text-transform: uppercase;
            color: var(--muted);
        }

        .eyebrow .dot {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--ink);
        }

        .page-intro h1 {
            margin: 10px 0 8px;
            font-size: clamp(25px, 3vw, 32px);
            font-weight: 700;
            letter-spacing: -.03em;
            line-height: 1.15;
            color: var(--ink);
        }

        .page-intro p {
            margin: 0;
            max-width: 700px;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.65;
        }

        .intro-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 7px 12px;
            border-radius: var(--radius);
            background: #ffffff;
            border: 1px solid var(--line);
            color: var(--muted);
            font-size: 12px;
            font-weight: 400;
            white-space: nowrap;
        }

        .intro-badge svg {
            width: 14px;
            height: 14px;
            color: var(--ink-soft);
        }

        .card {
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
        }

        .card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 18px 22px;
            border-bottom: 1px solid var(--line);
            background: #ffffff;
            flex-wrap: wrap;
        }

        .card-head h2 {
            margin: 0;
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 16px;
            font-weight: 600;
            letter-spacing: -.01em;
            color: var(--ink);
        }

        .card-head p {
            margin: 4px 0 0;
            color: var(--muted);
            font-size: 13px;
        }

        .card-head .head-right {
            color: var(--muted);
            font-size: 12px;
            font-weight: 400;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .badge {
            display: inline-grid;
            place-items: center;
            min-width: 20px;
            height: 20px;
            padding: 0 6px;
            border-radius: var(--radius-sm);
            background: #ffffff;
            border: 1px solid var(--line-strong);
            color: var(--muted);
            font-size: 11.5px;
            font-weight: 500;
            font-variant-numeric: tabular-nums;
        }

        .overview-meta {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            color: var(--muted);
            font-size: 12px;
            font-weight: 400;
            white-space: nowrap;
        }

        .overview-meta .pulse {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--ink);
            animation: pulse 2.4s infinite;
        }

        @keyframes pulse {
            0% {
                opacity: .35;
            }

            50% {
                opacity: 1;
            }

            100% {
                opacity: .35;
            }
        }

        .stats {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0;
        }

        .stat {
            position: relative;
            padding: 16px 20px;
            border-right: 1px solid var(--line);
            background: #ffffff;
        }

        .stat:last-child {
            border-right: 0;
        }

        .stat:hover {
            background: var(--surface-2);
        }

        .stat-label {
            font-size: 12px;
            font-weight: 400;
            color: var(--muted);
        }

        .stat-value {
            margin-top: 4px;
            font-size: 28px;
            font-weight: 700;
            line-height: 1.1;
            letter-spacing: -.03em;
            font-variant-numeric: tabular-nums;
            color: var(--ink);
        }

        .project-breakdown {
            padding: 12px 22px 16px;
            border-top: 1px solid var(--line);
            display: flex;
            flex-wrap: wrap;
            gap: 8px 20px;
            font-size: 12px;
            color: var(--muted);
            background: #ffffff;
        }

        .project-breakdown .pb {
            display: inline-flex;
            gap: 6px;
            align-items: center;
        }

        .project-breakdown .pb b {
            color: var(--ink);
            font-weight: 600;
            font-variant-numeric: tabular-nums;
        }

        .project-breakdown .dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--ink);
        }

        .goal {
            padding: 18px 22px 22px;
            border-top: 1px solid var(--line);
            background: #ffffff;
        }

        .goal-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }

        .goal-controls {
            display: flex;
            align-items: center;
            gap: 9px;
            flex-wrap: wrap;
            font-size: 13.5px;
            color: var(--ink-soft);
        }

        .select {
            appearance: none;
            -webkit-appearance: none;
            height: 34px;
            padding: 0 28px 0 10px;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            background-color: #ffffff;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 9px center;
            background-size: 10px;
            font-size: 13px;
            font-weight: 400;
            color: var(--ink);
            cursor: pointer;
        }

        .select:hover {
            border-color: var(--ink);
        }

        .goal-target {
            width: 70px;
            height: 34px;
            padding: 0 6px;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            background: #ffffff;
            color: var(--ink);
            font-size: 15px;
            font-weight: 600;
            text-align: center;
            outline: none;
            font-variant-numeric: tabular-nums;
        }

        .goal-target:hover {
            border-color: var(--ink);
        }

        .goal-pct {
            font-size: 30px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: -.03em;
            color: var(--ink);
            font-variant-numeric: tabular-nums;
        }

        .goal-pct small {
            margin-left: 2px;
            font-size: 14px;
            font-weight: 500;
            color: var(--muted);
        }

        .goal-track {
            height: 2px;
            margin: 16px 0 10px;
            background: var(--line);
            overflow: hidden;
        }

        .goal-fill {
            height: 100%;
            width: 0%;
            background: var(--ink);
            transition: width .5s ease;
        }

        .goal-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            font-size: 12px;
            color: var(--muted);
        }

        .days-pill {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 2px 8px;
            border-radius: var(--radius-sm);
            background: #ffffff;
            border: 1px solid var(--line);
            color: var(--muted);
            white-space: nowrap;
        }

        .coach {
            margin-top: 14px;
            padding: 10px 12px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: var(--surface-2);
            color: var(--ink-soft);
            font-size: 13px;
            line-height: 1.5;
        }

        .materials-head {
            padding: 16px 22px;
            background: #ffffff;
        }

        .head-title {
            display: flex;
            align-items: center;
            gap: 11px;
            min-width: 0;
        }

        .head-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .chev-icon {
            transition: transform .2s ease;
        }

        .materials.collapsed .materials-body {
            display: none;
        }

        .materials.collapsed #toggle-materials .chev-icon {
            transform: rotate(-90deg);
        }

        .materials-body {
            padding: 16px 22px 22px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            background: #ffffff;
        }

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

        .project {
            border: 1px solid var(--line);
            border-radius: var(--radius);
            background: #ffffff;
            overflow: hidden;
        }

        .project:hover {
            border-color: var(--line-strong);
        }

        .project-head {
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            background: #ffffff;
            cursor: pointer;
            user-select: none;
        }

        .project-head:hover {
            background: var(--surface-2);
        }

        .project-index {
            width: 28px;
            height: 28px;
            flex: 0 0 auto;
            display: grid;
            place-items: center;
            border-radius: var(--radius-sm);
            background: #ffffff;
            border: 1px solid var(--line-strong);
            color: var(--ink-soft);
            font-size: 11px;
            font-weight: 600;
            font-variant-numeric: tabular-nums;
        }

        .project-id {
            flex: 1;
            min-width: 0;
        }

        .project-id h3 {
            margin: 0;
            font-size: 14px;
            font-weight: 600;
            color: var(--ink);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .project-host {
            display: block;
            margin-top: 1px;
            font-size: 11.5px;
            color: var(--muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

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

        .project.collapsed .project-body {
            display: none;
        }

        .project.collapsed [data-action="toggle-project"] .chev-icon {
            transform: rotate(-90deg);
        }

        .project-body {
            padding: 14px;
            border-top: 1px solid var(--line);
        }

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

        .mat.full {
            grid-column: 1 / -1;
        }

        .mat-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 5px;
            font-size: 11.5px;
            font-weight: 500;
            color: var(--muted);
        }

        .copy-link {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 1px 5px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: #ffffff;
            color: var(--ink-soft);
            font-size: 11px;
        }

        .copy-link svg {
            width: 11px;
            height: 11px;
        }

        .copy-link:hover {
            border-color: var(--ink);
            background: var(--surface-2);
            color: var(--ink);
        }

        .mat-input {
            width: 100%;
            min-height: 38px;
            padding: 8px 10px;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            background: #ffffff;
            font-size: 13px;
            color: var(--ink);
            outline: none;
            resize: vertical;
        }

        .mat-input:hover {
            border-color: var(--ink);
        }

        .mat-input:focus {
            border-color: var(--ink);
        }

        textarea.mat-input {
            min-height: 66px;
            max-height: 260px;
            line-height: 1.5;
            overflow-y: auto;
        }

        .projects-empty {
            padding: 36px 20px;
            text-align: center;
            border: 1px dashed var(--line-strong);
            border-radius: var(--radius);
            background: #ffffff;
        }

        .projects-empty .empty-icon {
            margin: 0 auto 10px;
        }

        .projects-empty h3 {
            margin: 0 0 4px;
            font-size: 14px;
            font-weight: 600;
        }

        .projects-empty p {
            margin: 0 0 14px;
            color: var(--muted);
            font-size: 13px;
        }

        .platforms {
            scroll-margin-top: 80px;
        }

        .filters {
            display: grid;
            grid-template-columns: minmax(200px, 1fr) repeat(5, minmax(110px, 140px));
            align-items: center;
            gap: 8px;
            padding: 14px 22px;
            border-bottom: 1px solid var(--line);
            background: #ffffff;
        }

        .search-field {
            position: relative;
            width: 100%;
            min-width: 0;
        }

        .search-field svg {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            width: 15px;
            height: 15px;
            color: var(--muted-2);
            pointer-events: none;
        }

        .filter-search {
            width: 100%;
            height: 38px;
            padding: 0 12px 0 34px;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            background: #ffffff;
            font-size: 13px;
            color: var(--ink);
            outline: none;
            transition: border-color .15s ease;
        }

        .filter-search::placeholder {
            color: var(--muted-2);
        }

        .filter-search:hover {
            border-color: var(--ink);
        }

        .filter-search:focus {
            border-color: var(--ink);
        }

        .filter-select {
            appearance: none;
            -webkit-appearance: none;
            height: 38px;
            width: 100%;
            min-width: 0;
            padding: 0 28px 0 10px;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            background-color: #ffffff;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 8px center;
            background-size: 10px;
            font-size: 12px;
            font-weight: 400;
            color: var(--ink);
            cursor: pointer;
            text-overflow: ellipsis;
        }

        .filter-select:hover {
            border-color: var(--ink);
        }

        .filter-hint {
            display: flex;
            align-items: flex-start;
            gap: 7px;
            padding: 9px 22px;
            border-bottom: 1px solid var(--line);
            background: #ffffff;
            color: var(--muted);
            font-size: 11.5px;
            line-height: 1.55;
        }

        .filter-hint svg {
            width: 12px;
            height: 12px;
            flex: 0 0 auto;
            margin-top: 1px;
            color: var(--muted-2);
        }

        .table-wrap {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        table {
            width: 100%;
            min-width: 1040px;
            border-collapse: separate;
            border-spacing: 0;
        }

        thead th {
            padding: 11px 14px;
            background: #ffffff;
            border-bottom: 1px solid var(--line);
            text-align: left;
            font-size: 11px;
            font-weight: 500;
            letter-spacing: .04em;
            text-transform: uppercase;
            color: var(--muted);
            white-space: nowrap;
        }

        thead th:first-child {
            padding-left: 22px;
        }

        thead th:last-child {
            padding-right: 22px;
        }

        tbody td {
            padding: 11px 14px;
            border-bottom: 1px solid var(--line);
            font-size: 13px;
            vertical-align: top;
        }

        tbody td:first-child {
            padding-left: 22px;
        }

        tbody td:last-child {
            padding-right: 22px;
        }

        tbody tr.main-row:hover td {
            background: var(--surface-2);
        }

        tbody tr.main-row.sub-present td {
            border-bottom: 1px dashed var(--line);
        }

        tbody tr.row-overdue td:first-child {
            box-shadow: inset 2px 0 0 var(--ink);
        }

        tbody tr.sub-row td {
            background: #fcfcfc;
        }

        tbody tr.sub-row.row-overdue td:first-child {
            box-shadow: inset 2px 0 0 var(--ink);
        }

        .platform-name {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            max-width: 230px;
            font-weight: 500;
            color: var(--ink);
            text-decoration: none;
            line-height: 1.35;
        }

        .platform-name span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .platform-name svg {
            width: 11px;
            height: 11px;
            flex: 0 0 auto;
            color: var(--muted-2);
            opacity: 0;
            transition: opacity .15s ease;
        }

        .platform-name:hover {
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .platform-name:hover svg {
            opacity: 1;
        }

        .custom-badge {
            display: inline-flex;
            align-items: center;
            padding: 0 5px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: #ffffff;
            color: var(--muted-2);
            font-size: 10px;
            font-weight: 400;
            margin-left: 2px;
            vertical-align: middle;
        }

        .platform-host {
            display: block;
            max-width: 230px;
            margin-top: 1px;
            color: var(--muted-2);
            font-size: 11px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cat-tag {
            display: inline-flex;
            padding: 2px 6px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: #ffffff;
            color: var(--muted);
            font-size: 11px;
            white-space: nowrap;
        }

        .dr-btn {
            display: inline-flex;
            align-items: center;
            padding: 1px 6px;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            background: #ffffff;
            color: var(--ink-soft);
            font-size: 10.5px;
            font-weight: 600;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
            cursor: pointer;
            transition: border-color .15s ease, background-color .15s ease;
        }

        .dr-btn:hover {
            border-color: var(--ink);
            background: var(--surface-2);
        }

        .dr-btn.is-null {
            color: var(--muted-2);
            border-color: var(--line);
            font-weight: 400;
        }

        .dr-input {
            width: 60px;
            padding: 2px 5px;
            border: 1px solid var(--ink);
            border-radius: var(--radius-sm);
            background: #ffffff;
            color: var(--ink);
            font-size: 11px;
            font-weight: 600;
            font-variant-numeric: tabular-nums;
            outline: none;
        }

        .proj-col {
            display: inline-block;
            color: var(--ink);
            font-size: 12px;
            font-weight: 600;
            max-width: 160px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .status-select {
            appearance: none;
            -webkit-appearance: none;
            padding: 4px 22px 4px 8px;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            font-size: 11.5px;
            font-weight: 400;
            cursor: pointer;
            outline: none;
            background-color: #ffffff;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 7px center;
            background-size: 8px;
            color: var(--ink);
        }

        .status-select:hover {
            border-color: var(--ink);
        }

        .date-input {
            width: 126px;
            padding: 5px 6px;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            background: #ffffff;
            color: var(--ink);
            font-size: 12px;
            outline: none;
        }

        .date-input:hover {
            border-color: var(--ink);
        }

        .date-input.is-empty,
        .link-input.date.is-empty {
            color: transparent;
        }

        .date-input.is-empty::-webkit-datetime-edit,
        .link-input.date.is-empty::-webkit-datetime-edit {
            color: transparent;
        }

        .date-input.is-empty:focus,
        .link-input.date.is-empty:focus,
        .date-input.is-empty:focus::-webkit-datetime-edit,
        .link-input.date.is-empty:focus::-webkit-datetime-edit {
            color: var(--ink);
        }

        .link-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            height: 30px;
            padding: 0 9px;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            background: #ffffff;
            color: var(--ink-soft);
            font-size: 12px;
            font-weight: 400;
            white-space: nowrap;
        }

        .link-btn:hover {
            border-color: var(--ink);
            background: var(--surface-2);
            color: var(--ink);
        }

        .link-btn svg {
            width: 12px;
            height: 12px;
            color: var(--muted);
        }

        .link-btn .count {
            display: inline-grid;
            place-items: center;
            min-width: 16px;
            height: 16px;
            padding: 0 4px;
            border-radius: var(--radius-sm);
            background: #ffffff;
            border: 1px solid var(--line);
            color: var(--muted);
            font-size: 10px;
            font-weight: 500;
            font-variant-numeric: tabular-nums;
        }

        .notes-input {
            width: 100%;
            min-width: 140px;
            padding: 5px 6px;
            border: 1px dashed transparent;
            border-radius: var(--radius-sm);
            background: transparent;
            color: var(--ink);
            font-size: 12px;
            outline: none;
        }

        .notes-input::placeholder {
            color: var(--muted-2);
        }

        .notes-input:hover {
            border-color: var(--line);
        }

        .notes-input:focus {
            border-style: solid;
            border-color: var(--ink);
            background: #ffffff;
        }

        .expand-row td {
            padding: 0 22px 12px;
            background: #ffffff;
            border-bottom: 1px solid var(--line);
        }

        .link-panel {
            padding: 12px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: #ffffff;
        }

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

        .link-panel-title {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 500;
            color: var(--muted);
        }

        .link-panel-title svg {
            width: 12px;
            height: 12px;
        }

        .count-pill {
            padding: 1px 5px;
            border-radius: var(--radius-sm);
            background: #ffffff;
            border: 1px solid var(--line);
            font-size: 10.5px;
            color: var(--muted);
        }

        .muted-note {
            color: var(--muted-2);
            font-size: 11px;
        }

        .link-rows {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .link-empty {
            margin: 0 0 9px;
            color: var(--muted);
            font-size: 12.5px;
        }

        .link-row {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .link-input {
            min-width: 0;
            height: 32px;
            padding: 0 8px;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            background: #ffffff;
            font-size: 12px;
            outline: none;
        }

        .link-input:hover {
            border-color: var(--ink);
        }

        .link-input:focus {
            border-color: var(--ink);
        }

        .link-input.url {
            flex: 2 1 220px;
        }

        .link-input.title {
            flex: 1 1 140px;
        }

        .link-input.date {
            flex: 0 0 124px;
        }

        .link-panel>.btn {
            margin-top: 9px;
        }

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

        .empty-icon {
            width: 46px;
            height: 46px;
            border-radius: var(--radius-sm);
            display: grid;
            place-items: center;
            background: #ffffff;
            border: 1px solid var(--line);
            color: var(--muted-2);
            margin: 0 auto;
        }

        .empty-icon svg {
            width: 20px;
            height: 20px;
        }

        .empty-state h3 {
            margin: 11px 0 4px;
            font-size: 14px;
            font-weight: 600;
        }

        .empty-state p {
            margin: 0 0 14px;
            color: var(--muted);
            font-size: 13px;
        }

        .footer {
            max-width: 1320px;
            margin: 0 auto;
            padding: 22px 28px 36px;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 24px;
            color: var(--muted);
            font-size: 12px;
            flex-wrap: wrap;
            border-top: 1px solid var(--line);
        }

        .footer-brand-block {
            max-width: 780px;
        }

        .footer-brand {
            display: block;
            font-size: 12.5px;
            font-weight: 500;
            color: var(--ink-soft);
        }

        .footer-about {
            max-width: 760px;
            margin: 5px 0 0;
            color: var(--muted);
            font-size: 12.5px;
            line-height: 1.65;
        }

        .footer-links {
            display: flex;
            align-items: center;
            gap: 8px;
            padding-top: 1px;
        }

        .footer .sep {
            color: var(--muted-2);
        }

        .link-btn-text {
            padding: 0;
            border: 0;
            background: none;
            color: var(--muted);
            font-size: 12px;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .link-btn-text:hover {
            color: var(--ink);
        }

        .toast-stack {
            position: fixed;
            left: 50%;
            bottom: 20px;
            z-index: 120;
            width: min(92vw, 420px);
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            gap: 7px;
            pointer-events: none;
        }

        .toast {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 13px;
            border-radius: var(--radius-sm);
            background: #111111;
            border: 1px solid #111111;
            color: #ffffff;
            font-size: 13px;
            line-height: 1.4;
            animation: toast-in .2s ease both;
        }

        .toast svg {
            width: 14px;
            height: 14px;
            flex: 0 0 auto;
        }

        .toast.error {
            background: #ffffff;
            border-color: var(--ink);
            color: var(--ink);
        }

        .toast.leaving {
            animation: toast-out .18s ease both;
        }

        @keyframes toast-in {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: none;
            }
        }

        @keyframes toast-out {
            to {
                opacity: 0;
                transform: translateY(4px);
            }
        }

        .modal-root {
            position: fixed;
            inset: 0;
            z-index: 200;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(0, 0, 0, .28);
            animation: fade-in .15s ease both;
        }

        .modal {
            width: min(94vw, 460px);
            padding: 20px;
            border-radius: var(--radius);
            background: #ffffff;
            border: 1px solid var(--ink);
            animation: modal-in .2s ease both;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal h3 {
            margin: 0 0 12px;
            font-size: 16px;
            font-weight: 600;
            letter-spacing: -.01em;
            color: var(--ink);
        }

        .modal p {
            margin: 0;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.6;
        }

        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 18px;
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .form-field {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .form-field.full {
            grid-column: 1 / -1;
        }

        .form-label {
            font-size: 11.5px;
            font-weight: 500;
            color: var(--muted);
        }

        .form-input,
        .form-select {
            height: 36px;
            padding: 0 10px;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            background: #ffffff;
            color: var(--ink);
            font-size: 13px;
            outline: none;
            transition: border-color .15s ease;
        }

        .form-input:hover,
        .form-select:hover {
            border-color: var(--ink);
        }

        .form-input:focus,
        .form-select:focus {
            border-color: var(--ink);
        }

        .form-select {
            appearance: none;
            -webkit-appearance: none;
            padding-right: 28px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 8px center;
            background-size: 10px;
            cursor: pointer;
        }

        .form-error {
            margin-top: 6px;
            padding: 6px 9px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: #ffffff;
            color: var(--ink-soft);
            font-size: 12px;
        }

        @keyframes fade-in {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes modal-in {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: none;
            }
        }

        @media (max-width: 1080px) {
            .filters {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

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

            .stats {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .stat:nth-child(2n) {
                border-right: 0;
            }

            .stat:nth-child(3),
            .stat:nth-child(4) {
                border-top: 1px solid var(--line);
            }

            .topbar-inner,
            .page,
            .footer {
                padding-left: 20px;
                padding-right: 20px;
            }
        }

        @media (max-width: 820px) {
            .page-intro {
                align-items: flex-start;
            }

            .intro-badge {
                display: none;
            }

            .material-grid {
                grid-template-columns: 1fr;
            }

            .mat.full {
                grid-column: auto;
            }

            .card-head .head-right {
                flex-wrap: wrap;
                white-space: normal;
            }
        }

        @media (max-width: 640px) {
            .topbar-inner {
                height: 58px;
                gap: 10px;
            }

            .brand-name {
                font-size: 15.5px;
            }

            .brand-sub {
                display: none;
            }

            .brand-mark {
                width: 30px;
                height: 30px;
            }

            .topbar-actions {
                gap: 5px;
            }

            .topbar-divider {
                display: none;
            }

            .btn-label {
                display: none;
            }

            .topbar .btn {
                width: 38px;
                padding: 0;
            }

            .lang-switch {
                padding: 0 7px;
                gap: 4px;
                height: 38px;
            }

            .lang-switch .globe {
                display: none;
            }

            .lang-switch select {
                max-width: 78px;
                font-size: 12.5px;
            }

            .page {
                padding-top: 22px;
                padding-bottom: 38px;
                gap: 16px;
            }

            .page-intro h1 {
                font-size: 24px;
            }

            .page-intro p {
                font-size: 13px;
            }

            .card-head {
                padding: 14px 16px;
                gap: 10px;
            }

            .card-head p {
                font-size: 12px;
            }

            .overview-meta {
                display: none;
            }

            .stat {
                padding: 12px 14px;
            }

            .stat-value {
                font-size: 24px;
            }

            .goal {
                padding: 14px 16px 18px;
            }

            .goal-controls {
                gap: 6px;
                font-size: 12px;
            }

            .goal-target {
                width: 58px;
                height: 30px;
                font-size: 13.5px;
            }

            .goal-pct {
                font-size: 22px;
            }

            .materials-head {
                padding: 13px 16px;
                flex-wrap: wrap;
                row-gap: 10px;
            }

            .materials-head .head-title {
                flex: 1 1 100%;
            }

            .materials-head .head-actions {
                margin-left: auto;
            }

            .materials-body {
                padding: 12px 16px 18px;
            }

            .project-head {
                padding: 10px 12px;
                gap: 8px;
            }

            .project-actions .btn-xs .label {
                display: none;
            }

            .project-actions .btn-xs {
                width: 26px;
                padding: 0;
            }

            .project-body {
                padding: 12px;
            }

            .filters {
                padding: 12px 16px;
                grid-template-columns: 1fr 1fr;
            }

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

            .filter-hint {
                padding: 8px 16px;
            }

            .footer {
                padding-left: 16px;
                padding-right: 16px;
                padding-bottom: 26px;
            }

            .toast-stack {
                bottom: 12px;
            }

            .modal {
                padding: 16px;
            }

            .form-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: .001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: .001ms !important;
                scroll-behavior: auto !important;
            }
        }

        .noscript {
            max-width: 1000px;
            margin: 18px auto 0;
            padding: 12px 16px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: #ffffff;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.6;
        }

        /* ===== 顶部 Snippets 样式 ===== */
        .snippets-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .snippets-panel {
            position: absolute;
            top: calc(100% + 12px);
            /* 距离顶部按钮往下 12px */
            right: 0;
            width: 320px;
            background: var(--surface);
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-lg);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            z-index: 100;
        }

        .snippets-panel.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* 小箭头(三角)指示器 */
        .snippets-panel::before {
            content: '';
            position: absolute;
            top: -6px;
            right: 20px;
            width: 10px;
            height: 10px;
            background: var(--surface-2);
            border-left: 1px solid var(--line-strong);
            border-top: 1px solid var(--line-strong);
            transform: rotate(45deg);
        }

        .snippets-header {
            padding: 12px 16px;
            border-bottom: 1px solid var(--line);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--surface-2);
            font-size: 13px;
            font-weight: 600;
            color: var(--ink);
        }

        .snippets-project-select {
            font-size: 12px;
            padding: 2px 4px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: #fff;
            color: var(--muted);
            max-width: 140px;
            outline: none;
            cursor: pointer;
        }

        .snippets-body {
            max-height: min(520px, calc(100vh - 150px));
            overflow-y: auto;
        }

        .snippet-item {
            padding: 12px 16px;
            border-bottom: 1px solid var(--line);
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .snippet-item:last-child {
            border-bottom: none;
        }

        .snippet-label {
            font-size: 11px;
            color: var(--muted);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: .04em;
        }

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

        .snippet-text {
            font-size: 12.5px;
            color: var(--ink);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            line-height: 1.4;
        }

        .btn-snippet-copy {
            display: flex;
            align-items: center;
            gap: 4px;
            background: #ffffff;
            border: 1px solid var(--line-strong);
            padding: 4px 8px;
            border-radius: var(--radius-sm);
            font-size: 11px;
            font-weight: 500;
            color: var(--ink-soft);
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .btn-snippet-copy svg {
            width: 12px;
            height: 12px;
        }

        .btn-snippet-copy:hover {
            border-color: var(--ink);
            color: var(--ink);
        }

        .btn-snippet-copy.copied {
            background: var(--ink);
            border-color: var(--ink);
            color: #fff;
        }

        /* 移动端适配：隐藏文字标签，仅展示图标 */
        /* ===== 移动端适配：让面板变成通栏固定 ===== */
        @media (max-width: 640px) {
            .snippets-wrapper .btn-label {
                display: none;
            }

            .snippets-wrapper .btn {
                width: 38px;
                padding: 0;
            }

            /* 修复面板在手机端溢出屏幕的问题 */
            .snippets-panel {
                position: fixed;
                /* 改成 fixed 定位 */
                top: 66px;
                /* 固定在顶栏下方 (顶栏高度58px + 一点间距) */
                left: 16px;
                /* 左右留出 16px 边距 */
                right: 16px;
                width: auto;
                /* 取消 320px 的固定宽度 */
                transform: translateY(-10px);
            }

            .snippets-panel.open {
                transform: translateY(0);
            }

            /* 手机上不需要那个小三角了，因为位置变了 */
            .snippets-panel::before {
                display: none;
            }

            /* 确保下拉框不撑破屏幕 */
            .snippets-project-select {
                max-width: 160px;
            }
        }
/* ===== v13 additions: social / custom fields ===== */
.social-block,
.custom-block {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

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

.block-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.block-title strong {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
}

.block-title span {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.45;
}

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

.social-card {
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.social-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 5px;
}

.social-name {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-soft);
}

.add-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--muted);
}

.add-btn svg {
    width: 11px;
    height: 11px;
}

.add-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.social-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-row .mat-input {
    flex: 1;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    padding: 6px 8px;
    font-size: 12.5px;
}

.field-btn {
    width: 28px;
    height: 34px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--muted);
}

.field-btn svg {
    width: 12px;
    height: 12px;
}

.field-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.field-btn.danger:hover {
    border-color: #b91c1c;
    color: #b91c1c;
}

.custom-row {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) minmax(160px, 1.2fr) 28px 28px;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}

.custom-row .mat-input {
    min-height: 34px;
    height: 34px;
    padding: 6px 8px;
    font-size: 12.5px;
}

.block-empty {
    margin: 0;
    padding: 10px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* ===== v13 additions: active table row ===== */
tbody tr.is-active-row td {
    box-shadow: inset 0 2px 0 #1AAD19, inset 0 -2px 0 #1AAD19;
}

tbody tr.is-active-row td:first-child {
    box-shadow: inset 0 2px 0 #1AAD19, inset 0 -2px 0 #1AAD19, inset 3px 0 0 #1AAD19;
}

tbody tr.is-active-row td:last-child {
    box-shadow: inset 0 2px 0 #1AAD19, inset 0 -2px 0 #1AAD19, inset -2px 0 0 #1AAD19;
}

/* ===== v13 additions: pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 14px 22px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 500;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--surface-2);
}

.page-btn.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #ffffff;
}

.page-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.page-nav {
    padding: 0 11px;
}

.page-gap {
    padding: 0 2px;
    color: var(--muted-2);
    font-size: 12px;
}

/* ===== v13 additions: selective data dialog ===== */
.modal.modal-wide {
    width: min(94vw, 620px);
}

.data-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.data-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    cursor: pointer;
}

.data-option:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.data-option input {
    width: 15px;
    height: 15px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: #16a34a;
}

.data-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.data-option-text strong {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
}

.data-option-text small {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.45;
}

.data-option-all {
    border-style: dashed;
    background: var(--surface-2);
}

.data-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.data-mode {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.data-mode:hover {
    border-color: var(--line-strong);
}

.data-mode input {
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: #16a34a;
}

.data-mode span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.data-mode strong {
    font-size: 12px;
    font-weight: 600;
}

.data-mode small {
    font-size: 11px;
    line-height: 1.4;
    color: var(--muted);
}

#data-modal-error {
    margin-top: 10px;
}

.snippet-empty {
    padding: 16px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* ===== v13 additions: responsive ===== */
@media (max-width: 820px) {
    .social-grid {
        grid-template-columns: 1fr;
    }

    .data-modes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        padding: 0 16px;
    }

    .topbar-actions {
        gap: 4px;
    }

    .topbar .btn {
        width: 34px;
        height: 34px;
    }

    .lang-switch {
        height: 34px;
        padding: 0 6px;
    }

    .lang-switch select {
        max-width: 64px;
        font-size: 12px;
    }

    .custom-row {
        grid-template-columns: minmax(0, 1fr) 28px 28px;
    }

    .custom-row .custom-label {
        grid-column: 1 / -1;
    }

    .pagination {
        padding: 12px 16px 16px;
    }

    .page-btn {
        min-width: 30px;
        height: 30px;
        padding: 0 7px;
    }
}
