        :root {
            --ink: #1a1a2e;
            --ink-mid: #3d3d5c;
            --ink-light: #6b6b8a;
            --gold: #c9a84c;
            --gold-light: #f0d98a;
            --sage: #4a7c59;
            --sage-light: #e8f2eb;
            --cream: #faf8f3;
            --white: #ffffff;
            --border: #e2ddd4;
            --error: #c0392b;
            --success: #27ae60;
            --shadow: 0 2px 20px rgba(26, 26, 46, 0.08);
            --shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.14);
            --radius: 10px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--cream);
            color: var(--ink);
            font-size: 15px;
            line-height: 1.65;
        }

        /* ── HEADER ── */
        .site-header {
            background: var(--ink);
            color: var(--white);
            padding: 0 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 68px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-mark {
            width: 38px;
            height: 38px;
            background: var(--gold);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            font-size: 16px;
            color: var(--ink);
        }

        .logo-text {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            font-size: 18px;
            letter-spacing: .3px;
        }

        .logo-sub {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.55);
            letter-spacing: .5px;
            margin-top: -3px;
        }

        .header-meta {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.55);
            text-align: right;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .header-meta strong {
            color: var(--gold);
            display: block;
            font-size: 13px;
        }

        .admin-link {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.45);
            text-decoration: none;
            letter-spacing: .3px;
            transition: color .15s;
        }
        .admin-link:hover { color: var(--gold-light, #f0d98a); }

        /* ── SOLICITATION PICKER ── */
        .sol-picker {
            background: #f0ede6; border-bottom: 1px solid #ddd8ce;
            padding: 14px 40px; display: none; align-items: center; gap: 14px;
        }
        .sol-picker.visible { display: flex; }
        .sol-picker label { font-size: 13px; font-weight: 500; color: var(--ink-mid, #3d3d5c); white-space: nowrap; }
        .sol-picker select {
            border: 1px solid #d0cbc2; border-radius: 8px; padding: 8px 12px;
            font-size: 14px; font-family: inherit; background: #fff; color: var(--ink, #1a1a2e);
            flex: 1; max-width: 480px;
        }
        .sol-picker select:focus { outline: none; border-color: var(--gold, #c9a84c); }

        /* ── DOCUMENTS LIST IN SIDEBAR ── */
        .doc-list-item {
            display: flex; align-items: center;
            padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.06); gap: 8px;
        }
        .doc-list-item:last-child { border-bottom: none; }
        .doc-list-item-info { flex: 1; min-width: 0; overflow: hidden; }
        .doc-list-item-name {
            font-size: 13px; font-weight: 500; color: var(--ink, #1a1a2e);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            display: block; max-width: 100%;
        }
        .doc-list-item-meta { font-size: 11px; color: var(--ink-light, #6b6b8a); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .doc-dl-btn {
            display: inline-flex; align-items: center; gap: 4px;
            font-size: 12px; font-weight: 500; color: var(--sage, #4a7c59);
            text-decoration: none; white-space: nowrap;
            flex-shrink: 0; flex-grow: 0;
            padding: 3px 8px; border-radius: 4px;
            background: var(--sage-light, #e8f2eb);
        }
        .doc-dl-btn:hover { text-decoration: underline; }
        .primary-badge-sm {
            display: inline-block; background: var(--sage-light, #e8f2eb);
            color: var(--sage, #4a7c59); font-size: 10px; font-weight: 600;
            padding: 1px 7px; border-radius: 10px; margin-left: 4px; vertical-align: middle;
        }

        /* ── HERO ── */
        .hero {
            background: linear-gradient(135deg, var(--ink) 0%, #2d2d4e 60%, #1a3a2a 100%);
            color: var(--white);
            padding: 80px 40px 70px;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }

        .hero-inner {
            max-width: 780px;
            position: relative;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(201, 168, 76, 0.2);
            border: 1px solid rgba(201, 168, 76, 0.4);
            color: var(--gold-light);
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            padding: 5px 14px;
            border-radius: 20px;
            margin-bottom: 18px;
        }

        .hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(28px, 4vw, 40px);
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 16px;
        }

        .hero h1 span {
            color: var(--gold);
        }

        .hero p {
            font-size: 15px;
            color: rgba(255, 255, 255, 0.75);
            max-width: 600px;
            margin-bottom: 28px;
        }

        .hero-meta {
            display: flex;
            gap: 24px;
            flex-wrap: wrap;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.6);
        }

        .hero-meta span {
            display: flex;
            align-items: center;
            gap: 7px;
        }

        .hero-meta svg {
            opacity: 0.7;
        }

        /* ── DOWNLOAD BUTTON ── */
        .download-btn {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            margin-top: 24px;
            background: var(--gold);
            color: var(--ink);
            font-family: 'DM Sans', sans-serif;
            font-size: 14px;
            font-weight: 600;
            padding: 11px 22px;
            border-radius: 8px;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: background .15s, opacity .15s;
        }
        .download-btn:hover { background: #b89440; }
        .download-btn.unavailable {
            background: transparent;
            color: rgba(255,255,255,.45);
            border: 1px solid rgba(255,255,255,.2);
            font-weight: 400;
            font-size: 13px;
            cursor: default;
            pointer-events: none;
        }
        .sidebar-download-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 10px 14px;
            background: var(--gold);
            color: var(--ink);
            border: none;
            border-radius: 8px;
            font-family: 'DM Sans', sans-serif;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            margin-top: 12px;
            transition: background .15s;
            justify-content: center;
        }
        .sidebar-download-btn:hover { background: #b89440; }
        .sidebar-download-unavail {
            font-size: 12px;
            color: var(--ink-light);
            margin-top: 10px;
            font-style: italic;
        }

        /* ── PROGRESS BAR ── */
        .progress-wrap {
            background: var(--white);
            border-bottom: 1px solid var(--border);
            padding: 0 40px;
            position: sticky;
            top: 68px;
            z-index: 90;
            box-shadow: var(--shadow);
        }

        .progress-steps {
            display: flex;
            max-width: 1400px;
            margin: 0 auto;
        }

        .progress-step {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 16px 12px;
            font-size: 13px;
            font-weight: 500;
            color: var(--ink-light);
            border-bottom: 3px solid transparent;
            cursor: default;
            transition: all .2s;
            white-space: nowrap;
            overflow: hidden;
        }

        .progress-step.active {
            color: var(--ink);
            border-bottom-color: var(--gold);
        }

        .progress-step.done {
            color: var(--sage);
            border-bottom-color: var(--sage);
        }

        .step-num {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--border);
            color: var(--ink-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            flex-shrink: 0;
            transition: all .2s;
        }

        .progress-step.active .step-num {
            background: var(--gold);
            color: var(--ink);
        }

        .progress-step.done .step-num {
            background: var(--sage);
            color: var(--white);
        }

        /* ── LAYOUT ── */
        .main-layout {
            max-width: 1400px;
            margin: 40px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 1fr 340px;
            gap: 28px;
            align-items: start;
        }

        @media (max-width: 768px) {
            .main-layout {
                grid-template-columns: 1fr;
            }

            .hero,
            .progress-wrap {
                padding-left: 20px;
                padding-right: 20px;
            }

            .site-header {
                padding: 0 20px;
            }
        }

        @media (min-width: 1400px) {
            .main-layout {
                max-width: 1400px;
                margin: 40px auto;
            }
        }

        /* ── CARDS ── */
        .card {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
        }

        .card-header {
            padding: 22px 28px 18px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .card-header h2 {
            font-family: 'Playfair Display', serif;
            font-size: 18px;
            font-weight: 600;
            color: var(--ink);
        }

        .card-icon {
            width: 36px;
            height: 36px;
            background: var(--sage-light);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--sage);
            font-size: 16px;
            flex-shrink: 0;
        }

        .card-body {
            padding: 32px 36px;
        }

        /* ── FORMS ── */
        .form-section {
            margin-bottom: 32px;
        }

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

        .section-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            color: var(--ink-light);
            margin-bottom: 16px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border);
        }

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

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

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

        @media (max-width: 720px) {
            .form-grid {
                grid-template-columns: 1fr;
            }

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

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 0;
        }

        .form-group.span-2 {
            grid-column: span 2;
        }

        .form-group.span-3 {
            grid-column: span 3;
        }

        label {
            font-size: 13px;
            font-weight: 500;
            color: var(--ink-mid);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        label .req {
            color: var(--error);
            font-size: 12px;
        }

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="number"],
        input[type="url"],
        input[type="date"],
        select,
        textarea {
            border: 1.5px solid var(--border);
            border-radius: 7px;
            padding: 12px 15px;
            font-family: 'DM Sans', sans-serif;
            font-size: 15px;
            color: var(--ink);
            background: var(--white);
            transition: border-color .15s, box-shadow .15s;
            width: 100%;
            appearance: none;
        }

        input:focus,
        select:focus,
        textarea:focus {
            outline: none;
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
        }

        input.invalid,
        select.invalid,
        textarea.invalid {
            border-color: var(--error);
            box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
        }

        select {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b8a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            padding-right: 36px;
        }

        textarea {
            resize: vertical;
            min-height: 90px;
        }

        .field-hint {
            font-size: 12px;
            color: var(--ink-light);
        }

        .field-error {
            font-size: 12px;
            color: var(--error);
            display: none;
        }

        .form-group.has-error .field-error {
            display: block;
        }

        /* ── CHECKBOXES ── */
        .checkbox-group {
            display: flex;
            flex-direction: column;
            gap: 9px;
        }

        .checkbox-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            cursor: pointer;
            padding: 2px 0;
        }

        .checkbox-item input[type="checkbox"] {
            width: 17px;
            height: 17px;
            border: 1.5px solid var(--border);
            border-radius: 4px;
            margin-top: 2px;
            flex-shrink: 0;
            cursor: pointer;
            appearance: auto;
            accent-color: var(--sage);
        }

        .checkbox-item span {
            font-size: 14px;
            line-height: 1.5;
        }

        /* ── FILE UPLOAD ── */
        .file-drop {
            border: 2px dashed var(--border);
            border-radius: var(--radius);
            padding: 28px 20px;
            text-align: center;
            cursor: pointer;
            transition: all .2s;
            position: relative;
        }

        .file-drop:hover,
        .file-drop.drag-over {
            border-color: var(--gold);
            background: rgba(201, 168, 76, 0.04);
        }

        .file-drop input[type="file"] {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
            width: 100%;
            height: 100%;
        }

        .file-drop-icon {
            font-size: 28px;
            margin-bottom: 10px;
        }

        .file-drop-text {
            font-size: 14px;
            font-weight: 500;
            color: var(--ink-mid);
            margin-bottom: 4px;
        }

        .file-drop-sub {
            font-size: 12px;
            color: var(--ink-light);
        }

        .file-list {
            margin-top: 12px;
            display: flex;
            flex-direction: column;
            gap: 7px;
            position: relative;
            z-index: 1;
        }

        .file-item {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--sage-light);
            border-radius: 6px;
            padding: 8px 12px;
            font-size: 13px;
            position: relative;
            z-index: 1;
        }

        .file-item span {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .file-item button {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--error);
            font-size: 16px;
            line-height: 1;
            padding: 0 2px;
        }

        /* ── ANNEX TABS ── */
        .annex-tabs {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .annex-tab {
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            border: 1.5px solid var(--border);
            background: var(--white);
            color: var(--ink-mid);
            transition: all .15s;
        }

        .annex-tab:hover {
            border-color: var(--gold);
            color: var(--ink);
        }

        .annex-tab.active {
            background: var(--ink);
            color: var(--white);
            border-color: var(--ink);
        }

        .annex-tab.completed {
            border-color: var(--sage);
            color: var(--sage);
        }

        .annex-panel {
            display: none;
        }

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

        /* ── TABLE ── */
        .data-table {
            width: 100%;
            min-width: 900px;
            border-collapse: collapse;
            font-size: 13px;
            table-layout: fixed;
        }

        .data-table th {
            background: var(--ink);
            color: var(--white);
            padding: 10px 12px;
            text-align: left;
            font-weight: 500;
            font-size: 12px;
            letter-spacing: .4px;
        }

        .data-table td {
            padding: 10px 12px;
            border-bottom: 1px solid var(--border);
            vertical-align: top;
        }

        .data-table td input,
        .data-table td select {
            padding: 6px 8px;
            font-size: 13px;
            min-width: 140px;
        }

        .data-table td textarea {
            padding: 6px 8px;
            font-size: 13px;
            min-width: 180px;
            min-height: 50px;
            resize: vertical;
        }

        .data-table tr:hover td {
            background: var(--cream);
        }

        .add-row-btn {
            margin-top: 12px;
            background: none;
            border: 1.5px dashed var(--border);
            border-radius: 7px;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 500;
            color: var(--ink-light);
            cursor: pointer;
            width: 100%;
            transition: all .15s;
            font-family: 'DM Sans', sans-serif;
        }

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

        /* ── BUTTONS ── */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 11px 22px;
            border-radius: 8px;
            font-family: 'DM Sans', sans-serif;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all .18s;
        }

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

        .btn-primary:hover {
            background: #2d2d4e;
        }

        .btn-gold {
            background: var(--gold);
            color: var(--ink);
            border-color: var(--gold);
        }

        .btn-gold:hover {
            background: #b89440;
        }

        .btn-outline {
            background: transparent;
            color: var(--ink);
            border-color: var(--border);
        }

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

        .btn-danger {
            background: var(--error);
            color: var(--white);
            border-color: var(--error);
        }

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

        .btn-row {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            margin-top: 28px;
            padding-top: 22px;
            border-top: 1px solid var(--border);
            flex-wrap: wrap;
        }

        /* ── SIDEBAR ── */
        .sidebar-card {
            position: sticky;
            top: 140px;
        }

        .info-block {
            margin-bottom: 22px;
        }

        .info-block:last-child {
            margin-bottom: 0;
        }

        .info-block h4 {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--ink-light);
            margin-bottom: 10px;
        }

        .info-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 8px;
            font-size: 13px;
        }

        .info-row .label {
            color: var(--ink-light);
            min-width: 80px;
            flex-shrink: 0;
        }

        .info-row .val {
            font-weight: 500;
            color: var(--ink);
        }

        .deadline-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(192, 57, 43, 0.07);
            border: 1px solid rgba(192, 57, 43, 0.2);
            color: var(--error);
            border-radius: 8px;
            padding: 10px 14px;
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 18px;
        }

        .eval-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid var(--border);
            font-size: 13px;
        }

        .eval-row:last-child {
            border-bottom: none;
        }

        .eval-pct {
            font-weight: 700;
            color: var(--gold);
        }

        .checklist {
            display: flex;
            flex-direction: column;
            gap: 7px;
        }

        .check-item {
            display: flex;
            align-items: center;
            gap: 9px;
            font-size: 13px;
            color: var(--ink-mid);
        }

        .check-item.done {
            color: var(--sage);
        }

        .check-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--border);
            flex-shrink: 0;
        }

        .check-item.done .check-dot {
            background: var(--sage);
        }

        /* ── TOAST / ALERTS ── */
        .toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 999;
            background: var(--ink);
            color: var(--white);
            border-radius: 10px;
            padding: 14px 20px;
            font-size: 14px;
            font-weight: 500;
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            gap: 10px;
            opacity: 0;
            transform: translateY(12px);
            transition: all .3s;
            max-width: 360px;
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

        .toast.success {
            border-left: 4px solid var(--success);
        }

        .toast.error {
            border-left: 4px solid var(--error);
        }

        .toast.info {
            border-left: 4px solid var(--gold);
        }

        /* ── SUCCESS STATE ── */
        .success-screen {
            text-align: center;
            padding: 60px 40px;
        }

        .success-icon {
            width: 72px;
            height: 72px;
            background: var(--sage-light);
            border-radius: 50%;
            margin: 0 auto 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
        }

        .success-screen h2 {
            font-family: 'Playfair Display', serif;
            font-size: 26px;
            margin-bottom: 12px;
            color: var(--sage);
        }

        .ref-box {
            background: var(--cream);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 16px 24px;
            display: inline-block;
            margin: 16px 0 24px;
            font-size: 14px;
        }

        .ref-box strong {
            display: block;
            font-family: monospace;
            font-size: 18px;
            color: var(--gold);
            margin-top: 4px;
            letter-spacing: 1px;
        }

        /* ── DATAVERSE STATUS ── */
        .dv-status {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: var(--ink-light);
            margin-top: 8px;
        }

        .dv-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--border);
            flex-shrink: 0;
        }

        .dv-dot.connected {
            background: var(--success);
        }

        .dv-dot.syncing {
            background: var(--gold);
            animation: pulse 1s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: .4;
            }
        }

        /* ── MISC ── */
        .required-note {
            font-size: 12px;
            color: var(--ink-light);
            margin-bottom: 20px;
        }

        .page {
            display: none;
        }

        .page.active {
            display: block;
        }

        .divider {
            height: 1px;
            background: var(--border);
            margin: 24px 0;
        }

        .text-sm {
            font-size: 13px;
        }

        .text-muted {
            color: var(--ink-light);
        }

        .badge {
            display: inline-block;
            padding: 3px 9px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
        }

        .badge-open {
            background: #e6f7ee;
            color: var(--success);
        }

        .badge-draft {
            background: #fff8e6;
            color: #b07d00;
        }

/* === Extracted inline styles === */
.hidden { display: none; }
.req-color { color: var(--error); }
.th-80 { min-height: 80px; }
.th-160 { min-height: 160px; }
.th-200 { min-height: 200px; }
.table-wrap { overflow-x: auto; }
.w5 { width: 5%; }
.w15 { width: 15%; }
.w20 { width: 20%; }
.w25 { width: 25%; }
.row-del-btn { background: none; border: none; cursor: pointer; color: var(--error); font-size: 16px; }
.input-readonly { background: var(--cream); color: var(--ink-mid); }
.totals-block { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.totals-row { display: flex; gap: 20px; font-size: 14px; }
.totals-row-final { display: flex; gap: 20px; font-size: 16px; padding-top: 8px; border-top: 2px solid var(--border); }
.fw700 { font-weight: 700; }
.total-value { color: var(--gold); font-size: 20px; }
.mt12 { margin-top: 12px; }
.mt14 { margin-top: 14px; }
.mt24 { margin-top: 24px; }
.annex-info-banner {
    background: var(--cream); border: 1px solid var(--border); border-radius: 8px;
    padding: 16px 20px; margin-bottom: 20px; font-size: 13px; color: var(--ink-mid);
}
.annex-confirm-banner {
    margin-top: 16px; padding: 12px 16px; background: var(--sage-light);
    border-radius: 8px; font-size: 13px; color: var(--sage);
}
.annex-note { font-size: 13px; color: var(--ink-mid); margin-bottom: 16px; }
.annex-c-mandatory {
    background: #fff8e6; border: 1px solid #ffe090; border-radius: 8px;
    padding: 14px 18px; margin-bottom: 20px; font-size: 13px;
}
.file-drop-stack { display: flex; flex-direction: column; gap: 18px; }
.file-drop-label { margin-bottom: 8px; display: block; }
.dataverse-box {
    background: var(--cream); border: 1px solid var(--border); border-radius: 8px;
    padding: 16px 20px; margin-top: 20px; font-size: 13px; color: var(--ink-mid);
}
.dataverse-box-title { color: var(--ink); }
.dv-status-mt { margin-top: 10px; }
.server-error-panel {
    margin-bottom: 18px; background: #fef2f2; border: 1.5px solid #fca5a5;
    border-radius: 8px; padding: 14px 18px;
}
.server-error-title { font-weight: 600; color: #b91c1c; margin-bottom: 8px; }
.server-error-list { margin: 0; padding-left: 20px; color: #b91c1c; font-size: 13.5px; line-height: 1.7; }
.success-desc { color: var(--ink-light); max-width: 480px; margin: 0 auto; }
.ref-timestamp { font-size: 12px; color: var(--ink-light); margin-top: 6px; }
.eval-row-sub { font-size: 12px; color: var(--ink-light); }
.questions-text { font-size: 12px; color: var(--ink-light); line-height: 1.6; }
.questions-email { font-size: 12px; color: var(--gold); margin-top: 6px; font-weight: 500; }
.review-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.review-summary-cell { background: var(--cream); border-radius: 8px; padding: 16px 20px; }
.review-summary-label { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-light); margin-bottom: 8px; }
.review-summary-main { font-weight: 600; font-size: 15px; }
.review-summary-sub { font-size: 13px; color: var(--ink-light); margin-top: 4px; }
.review-summary-role { font-weight: 500; font-size: 13px; }
.review-summary-total { font-weight: 700; font-size: 18px; color: var(--gold); }

/* ── Portal Auth Modal (pam-*) ──────────────────────────────────────────────── */
.pam-overlay {
    position: fixed; inset: 0; background: rgba(10,15,30,.7);
    backdrop-filter: blur(4px); z-index: 10000;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.pam-overlay[hidden] { display: none; }

.pam-card {
    background: #fff; border-radius: 16px; width: 100%; max-width: 400px;
    box-shadow: 0 24px 64px rgba(0,0,0,.35); overflow: hidden;
}
.pam-header {
    background: #0f2433; padding: 22px 24px 18px;
    display: flex; align-items: center; justify-content: space-between;
}
.pam-title  { color: #fff; font-size: 17px; font-weight: 700; line-height: 1.2; }
.pam-subtitle { color: rgba(255,255,255,.45); font-size: 11px; margin-top: 3px; text-transform: uppercase; letter-spacing: .06em; }
.pam-close  { background: none; border: none; color: rgba(255,255,255,.5); font-size: 18px; cursor: pointer; padding: 4px; line-height: 1; border-radius: 4px; }
.pam-close:hover { color: #fff; }

.pam-tabs   { display: flex; border-bottom: 1px solid #e5e7eb; }
.auth-tab-btn {
    flex: 1; padding: 13px 0; font-size: 13px; font-weight: 600;
    border: none; border-bottom: 2px solid transparent;
    background: none; cursor: pointer; color: #9ca3af;
    transition: color .15s, border-color .15s;
}
.auth-tab-btn.active { color: #1f6f6b; border-bottom-color: #1f6f6b; }
.auth-tab-btn:hover:not(.active) { color: #374151; }

.pam-body   { padding: 24px; }

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.pam-field  { margin-bottom: 16px; }
.pam-field label {
    display: block; font-size: 12px; font-weight: 600;
    color: #374151; margin-bottom: 6px;
}
.pam-field input {
    width: 100%; box-sizing: border-box;
    border: 1.5px solid #d1d5db; border-radius: 9px;
    padding: 11px 14px; font-size: 14px; font-family: inherit;
    color: #111827; background: #f9fafb;
    transition: border-color .15s, background .15s;
    outline: none;
}
.pam-field input:focus { border-color: #1f6f6b; background: #fff; }
.pam-field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pam-field-row label { margin-bottom: 0; }

.pam-hint { font-weight: 400; color: #9ca3af; }
.pam-desc { font-size: 13px; color: #4b5563; margin: 0 0 18px; line-height: 1.5; }

.pam-btn-primary {
    width: 100%; padding: 13px; background: #1f6f6b; color: #fff;
    border: none; border-radius: 9px; font-size: 14px; font-weight: 700;
    cursor: pointer; letter-spacing: .02em; margin-top: 4px;
    transition: background .15s, transform .1s;
}
.pam-btn-primary:hover { background: #175f5b; }
.pam-btn-primary:active { transform: scale(.98); }
.pam-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.pam-link-btn { background: none; border: none; color: #1f6f6b; font-size: 12px; cursor: pointer; padding: 0; text-decoration: underline; }
.pam-link-btn:hover { color: #175f5b; }
.pam-center-row { text-align: center; margin-top: 14px; }

.pam-msg { margin-top: 14px; padding: 11px 14px; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.pam-msg[hidden] { display: none; }
.pam-msg.ok  { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.pam-msg.err { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Auth status bar (pab-*) ────────────────────────────────────────────────── */
.pab-bar {
    position: fixed; top: 12px; right: 16px; z-index: 9000;
    display: flex; align-items: center; gap: 8px;
}
.pab-pill {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 999px;
    padding: 6px 14px 6px 10px; font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.pab-pill[hidden] { display: none; }
.pab-dot  { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; flex-shrink: 0; }
.pab-email { color: #0f2433; font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pab-signout { background: none; border: none; color: #9ca3af; font-size: 11px; cursor: pointer; padding: 0; margin-left: 4px; }
.pab-signout:hover { color: #374151; }
.pab-open-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; background: #0f2433; color: #fff;
    border: none; border-radius: 999px; font-size: 12px; font-weight: 600;
    cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18);
    transition: background .15s;
}
.pab-open-btn:hover { background: #1a3a52; }

/* ── Floating save button (sdf-*) ───────────────────────────────────────────── */
.sdf-fab {
    position: fixed; bottom: 28px; right: 28px; z-index: 9999;
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
    pointer-events: none;
}
.sdf-tooltip {
    background: #0f2433; color: #e2e8f0; font-size: 11px;
    padding: 5px 10px; border-radius: 6px; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.sdf-tooltip[hidden] { display: none; }
.sdf-btn {
    pointer-events: auto; display: flex; align-items: center; gap: 8px;
    padding: 13px 22px; background: #1f6f6b; color: #fff;
    border: none; border-radius: 999px; cursor: pointer;
    font-size: 13px; font-weight: 700; letter-spacing: .02em;
    box-shadow: 0 4px 16px rgba(31,111,107,.45), 0 2px 4px rgba(0,0,0,.15);
    transition: background .15s, transform .1s;
}
.sdf-btn:hover { background: #175f5b; transform: translateY(-1px); }
.sdf-btn.saved { background: #166534; }
.sdf-msg {
    font-size: 11px; color: #166534; font-weight: 600;
    background: #f0fdf4; border: 1px solid #86efac;
    padding: 3px 10px; border-radius: 6px; pointer-events: none;
}
.sdf-msg[hidden] { display: none; }
