:root {
    color-scheme: light;
    --ink: #17211b;
    --muted: #627067;
    --line: #d9e1db;
    --paper: #fbfcfb;
    --panel: #ffffff;
    --accent: #176b52;
    --accent-dark: #0e4f3b;
    --accent-soft: #eef8f3;
    --sky: #326891;
    --warn: #9b3d1b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
}

.page {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 16px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 20px;
}

.brand {
    font-size: 1.1rem;
    font-weight: 800;
}

.topbar-subtitle {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

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

.inline-form {
    margin: 0;
}

.small-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.button-link {
    width: auto;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 800;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(23, 33, 27, 0.06);
}

h1 {
    margin: 0 0 8px;
    font-size: 1.95rem;
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    letter-spacing: 0;
}

p { color: var(--muted); line-height: 1.5; }

label.text-label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 750;
}

input[type="email"], input[type="password"], input[type="text"], input[type="number"], input[type="search"], input[type="date"], input[type="time"], select, textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 1rem;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

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

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    background: var(--accent);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

button:disabled {
    background: #cbd6d0;
    color: #f8fbf9;
    cursor: not-allowed;
}

.button.secondary, button.secondary {
    background: #edf3ef;
    color: var(--accent-dark);
}

.actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.error {
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 8px;
    background: #fff1eb;
    color: var(--warn);
    font-weight: 700;
}

.notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 750;
}

.notice.success {
    background: #eef8f3;
    color: var(--accent-dark);
}

.notice.error {
    background: #fff1eb;
    color: var(--warn);
}

.progress {
    margin: 0;
    color: var(--muted);
    font-weight: 750;
}

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

.progress-count {
    color: var(--accent-dark);
    font-weight: 850;
}

.progress-track {
    height: 8px;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eee9;
}

.progress-track div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--sky));
}

.helper-text {
    margin: 0 0 16px;
}

.choice {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    margin: 10px 0;
    padding: 14px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 1.08rem;
    font-weight: 750;
    cursor: pointer;
}

.choice:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.choice input {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.choice:has(input:disabled) {
    border-color: #bed9cb;
    background: #f3faf6;
    cursor: default;
}

.choice input:disabled {
    opacity: 1;
}

.fixed-choice-pill {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

.note-label {
    margin-top: 18px;
}

.summary-row, .order-row {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

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

.summary-row.is-missing {
    color: var(--warn);
}

.summary-row strong, .order-row strong {
    display: block;
    margin-bottom: 4px;
}

.summary-row small,
.answer-note {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
}

.list-panel {
    margin-top: 14px;
}

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

.list-panel-head h2 {
    margin: 0;
}

.list-panel-head span {
    color: var(--muted);
    font-weight: 850;
}

.mini-list {
    display: grid;
    gap: 8px;
}

.mini-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
}

.mini-row span {
    min-width: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.mini-row strong {
    min-width: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
}

.mini-row small {
    min-width: 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mini-row.is-done {
    border-color: #cbded3;
    background: #f8fbf9;
}

.mini-row.is-done strong {
    color: var(--accent-dark);
}

.success-callout {
    display: grid;
    gap: 4px;
    margin: 18px 0 4px;
    padding: 14px;
    border: 1px solid #d6e8dd;
    border-radius: 8px;
    background: var(--accent-soft);
}

.success-callout span {
    color: var(--muted);
}

.order-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

@media (min-width: 640px) {
    .page { padding-top: 40px; }
    .actions.two { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 2.25rem; }
    .service-grid, .appointment-fields { grid-template-columns: 1fr 1fr; }
    .service-option { min-height: 180px; grid-template-columns: 60px minmax(0, 1fr); }
    .service-option > strong { grid-column: 2; }
}

@media (min-width: 860px) {
    .order-page {
        width: min(100% - 32px, 960px);
        display: grid;
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 16px;
        align-items: start;
    }

    .order-page .topbar {
        grid-column: 1 / -1;
    }

    .order-page .list-panel {
        position: sticky;
        top: 18px;
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .page {
        padding: 14px;
    }

    .topbar {
        display: grid;
        align-items: stretch;
    }

    .topbar-actions {
        justify-content: space-between;
    }

    .panel {
        padding: 16px;
    }

    .summary-row {
        display: grid;
    }
}

.login-body {
    background:
        linear-gradient(140deg, rgba(23, 107, 82, 0.14), rgba(255, 255, 255, 0) 42%),
        linear-gradient(320deg, rgba(119, 79, 33, 0.12), rgba(255, 255, 255, 0) 36%),
        #f7faf7;
}

.login-page {
    width: min(100%, 980px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 20px;
    display: grid;
    align-content: center;
    gap: 22px;
}

.login-hero {
    padding: 10px 2px;
}

.login-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
}

.login-hero p {
    max-width: 34rem;
    font-size: 1.08rem;
}

.login-panel {
    align-self: start;
}

.service-page { width: min(100%, 880px); }
.service-grid { display: grid; gap: 14px; }
.service-option {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(23, 33, 27, 0.06);
}
.service-option h1 { margin: 0 0 4px; font-size: 1.45rem; }
.service-option p { margin: 0; }
.service-option > strong { color: var(--accent); }
.service-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 1.3rem;
    font-weight: 900;
}
.appointment-option { border-left-color: var(--sky); }
.appointment-option .service-icon { background: #edf5fa; color: #245676; }
.appointment-fields { display: grid; gap: 0 12px; }
.appointment-fields label { margin-top: 16px; }
.appointment-fields input { margin-top: 6px; }
.time-picker {
    min-width: 0;
    margin: 16px 0 0;
    padding: 0;
    border: 0;
}
.time-picker legend { padding: 0; font-weight: 750; }
.time-picker-controls {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) auto minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: end;
    gap: 8px;
    margin-top: 6px;
}
.time-picker-controls label { min-width: 0; margin: 0; }
.time-picker-controls label span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}
.time-picker-controls select { min-width: 0; padding-left: 10px; padding-right: 8px; }
.time-divider { padding-bottom: 14px; font-size: 1.25rem; font-weight: 850; }
.appointment-details { min-width: 220px; max-width: 420px; white-space: normal; }
.appointment-details small { display: block; margin-top: 7px; color: var(--admin-muted); }
.status-confirmed { background: #e8f2fb; color: #245676; }
.status-cancelled { background: #f2f2f2; color: #68746d; }

.admin-body {
    background: #f5f7f5;
}

.admin-body button,
.admin-body .button {
    width: auto;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.94rem;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px;
    background: #ffffff;
    border-right: 1px solid var(--line);
}

.admin-brand {
    margin-bottom: 18px;
    padding: 0 8px;
    color: var(--ink);
}

.admin-nav {
    display: grid;
    gap: 4px;
}

.admin-nav a {
    color: #34443a;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
}

.admin-nav a:hover {
    background: #eef3ef;
    color: var(--accent-dark);
}

.admin-main {
    width: min(100%, 1240px);
    padding: 24px 28px 36px;
}

.admin-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.admin-header h1 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.admin-header p,
.admin-card-head p {
    margin: 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.stat-card, .admin-card, .order-admin-card, .account-card, .question-list article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stat-card {
    padding: 13px 14px;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stat-card span, .question-list span, .account-card span, .answer-grid span, label span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.stat-card strong {
    display: block;
    font-size: 1.55rem;
}

.admin-card {
    padding: 18px 20px;
    margin-bottom: 16px;
}

.admin-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
}

.admin-card-head h2 {
    margin-bottom: 4px;
}

.filter-form {
    display: grid;
    grid-template-columns: 220px 150px 88px;
    gap: 10px;
    min-width: 468px;
}

.filter-form input,
.filter-form select,
.filter-form button,
.admin-form-grid input,
.admin-form-grid select,
.account-card input {
    min-height: 42px;
}

.order-admin-list, .question-list, .account-grid {
    display: grid;
    gap: 10px;
}

.order-admin-card, .question-list article, .account-card {
    padding: 14px 16px;
}

.order-admin-top, .question-list article {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.status-pill {
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf3ef;
    color: var(--accent-dark);
    font-weight: 850;
    font-size: 0.84rem;
}

.answer-grid, .admin-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.answer-grid div {
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfb;
}

.answer-grid strong {
    font-size: 0.96rem;
}

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

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-line input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.admin-actions form {
    margin: 0;
}

.compact-button {
    width: auto;
    min-width: 82px;
    min-height: 38px;
    font-size: 0.9rem;
}

button.danger {
    background: #9b2f20;
}

.admin-note {
    padding: 9px 10px;
    background: #fff8eb;
    border: 1px solid #efd8aa;
    border-radius: 8px;
    margin: 10px 0 0;
}

.question-editor {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfb;
    margin-bottom: 12px;
}

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

@media (min-width: 760px) {
    .login-page {
        grid-template-columns: minmax(0, 1.1fr) 380px;
        align-items: center;
    }
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-nav {
        grid-template-columns: repeat(4, auto);
    }

    .admin-main {
        padding: 20px;
    }

    .admin-card-head, .order-admin-top, .question-list article {
        display: grid;
    }

    .filter-form, .answer-grid, .admin-form-grid, .account-grid, .stat-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }
}

@media print {
    .admin-sidebar, .admin-header, .stat-grid, .filter-form, .admin-actions, #questions, #accounts,
    .admin-topbar, .admin-summary, .panel-toolbar, .row-actions {
        display: none !important;
    }

    .admin-shell, .admin-main {
        display: block;
        padding: 0;
    }

    .order-admin-card {
        break-inside: avoid;
        box-shadow: none;
    }

    body[data-print-order] .orders-table thead,
    body[data-print-order] .order-print-row {
        display: none;
    }

    body[data-print-order] .order-print-row.print-target {
        display: table-row;
    }
}

/* Desktop admin redesign */
.admin-body {
    --admin-bg: #f6f7f8;
    --admin-ink: #1c2520;
    --admin-muted: #67736c;
    --admin-border: #dfe5e1;
    --admin-green: #176b52;
    background: var(--admin-bg);
    color: var(--admin-ink);
}

.admin-body h1,
.admin-body h2,
.admin-body p {
    margin-top: 0;
}

.admin-body h1 {
    margin-bottom: 2px;
    font-size: 1.65rem;
}

.admin-body h2 {
    margin-bottom: 2px;
    font-size: 1.08rem;
}

.admin-body p {
    margin-bottom: 0;
    color: var(--admin-muted);
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--admin-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.admin-kicker {
    margin-bottom: 2px;
    color: var(--admin-green);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-tabs a {
    color: #33423a;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
}

.admin-tabs a:hover {
    background: #edf3ef;
    color: var(--admin-green);
}

.admin-workspace {
    width: min(100% - 48px, 1320px);
    margin: 0 auto;
    padding: 18px 0 40px;
}

.admin-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.summary-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
    color: var(--admin-ink);
    text-decoration: none;
}

.summary-tile span {
    color: var(--admin-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.summary-tile strong {
    font-size: 1.35rem;
}

.summary-focus {
    border-color: #c7ded3;
    background: #f2faf6;
}

.admin-panel {
    margin-bottom: 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
}

.panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--admin-border);
}

.admin-filter {
    display: grid;
    grid-template-columns: 230px 150px 82px;
    gap: 8px;
}

.admin-body input,
.admin-body select,
.admin-body textarea {
    min-height: 38px;
    border-color: var(--admin-border);
    border-radius: 7px;
    padding: 8px 10px;
    font-size: 0.94rem;
}

.admin-body textarea {
    min-height: 86px;
}

.admin-body button,
.admin-body .button {
    width: auto;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 0.92rem;
}

.desktop-table-wrap {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.orders-table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-muted);
    font-size: 0.78rem;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.orders-table td {
    padding: 12px;
    border-bottom: 1px solid #edf0ee;
    vertical-align: top;
}

.orders-table tr:hover td {
    background: #fafcfb;
}

.orders-table td > span,
.account-row span,
.question-table span {
    display: block;
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.action-col {
    width: 190px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf3ef;
    color: var(--admin-green);
    font-size: 0.82rem;
    font-weight: 850;
}

.status-ordered {
    background: #eef2ff;
    color: #334b9f;
}

.status-done {
    background: #f0f0f0;
    color: #555;
}

.status-reviewed {
    background: #fff7e6;
    color: #836018;
}

.order-details summary {
    cursor: pointer;
    color: var(--admin-green);
    font-weight: 850;
}

.order-details dl {
    display: grid;
    gap: 8px;
    min-width: 360px;
    margin: 10px 0 0;
}

.order-details div {
    padding: 8px;
    border: 1px solid #edf0ee;
    border-radius: 7px;
    background: #fbfcfb;
}

.order-details dt {
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.order-details dd {
    margin: 2px 0 0;
    font-weight: 800;
}

.order-details .answer-note {
    font-weight: 650;
}

.muted {
    color: var(--admin-muted);
}

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

.row-actions form {
    margin: 0;
}

.text-button {
    display: inline-flex;
    width: auto;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--admin-green);
    font: inherit;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.danger-text {
    color: #a13226;
}

.edit-row td {
    background: #f9fbfa;
}

.inline-editor {
    padding: 14px;
    border: 1px solid #edf0ee;
    border-radius: 8px;
    background: #fbfcfb;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
}

.admin-form-grid label span,
.checkbox-line span {
    display: block;
    margin-bottom: 4px;
    color: var(--admin-muted);
    font-size: 0.8rem;
    font-weight: 850;
}

.answer-editor {
    display: grid;
    gap: 8px;
}

.answer-editor textarea {
    min-height: 68px;
}

.fixed-option-list {
    display: grid;
    gap: 8px;
}

.fixed-option-list > span {
    color: var(--admin-muted);
    font-size: 0.8rem;
    font-weight: 850;
}

.fixed-option-list p {
    margin: 0;
    font-size: 0.9rem;
}

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

.fixed-option-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--admin-border);
    border-radius: 7px;
    background: #fff;
}

.fixed-option-grid input {
    width: 18px;
    height: 18px;
    accent-color: var(--admin-green);
}

.fixed-option-grid label span {
    margin: 0;
}

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

.checkbox-line {
    align-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
}

.checkbox-line input {
    width: 18px;
    height: 18px;
    accent-color: var(--admin-green);
}

.admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.compact-button {
    min-width: auto;
}

.admin-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: 14px;
    align-items: start;
}

.questions-form {
    grid-template-columns: 1fr 150px 190px;
}

.question-order-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 14px 10px;
}

.question-table {
    display: grid;
    gap: 0;
}

.question-table article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-top: 1px solid #edf0ee;
    cursor: pointer;
}

.question-table article:hover {
    background: #fafcfb;
}

.question-table article.is-selected {
    position: relative;
    border-color: #b7d9c9;
    border-left: 5px solid var(--admin-green);
    outline: 2px solid #b7d9c9;
    outline-offset: -2px;
    background: #ecf8f2;
    box-shadow: inset 0 0 0 1px rgba(23, 107, 82, 0.18);
    padding-left: 9px;
}

.question-table article.is-selected .drag-handle {
    border-color: var(--admin-green);
    background: var(--admin-green);
    color: #fff;
}

.question-subheading-preview {
    display: block;
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.35;
}

.question-table article.is-dragging {
    opacity: 0.55;
}

.drag-handle {
    width: 42px;
    min-height: 32px;
    padding: 6px 9px;
    border: 1px solid var(--admin-border);
    background: #f7faf8;
    color: var(--admin-green);
    cursor: grab;
    font-size: 0.82rem;
    font-weight: 900;
}

.drag-handle:active {
    cursor: grabbing;
}

.editing-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--admin-green);
    color: #fff;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 900;
}

.account-list {
    display: grid;
}

.account-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border-top: 1px solid #edf0ee;
}

.account-row input {
    width: 100%;
}

.account-row button {
    justify-self: start;
}

.empty-state {
    padding: 18px;
}

@media (max-width: 980px) {
    .admin-topbar,
    .panel-toolbar,
    .question-table article {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .admin-summary,
    .admin-two-col,
    .admin-form-grid,
    .questions-form,
    .fixed-option-grid,
    .account-row,
    .admin-filter {
        grid-template-columns: 1fr;
    }

    .admin-workspace {
        width: min(100% - 24px, 1320px);
    }

    .question-table article {
        grid-template-columns: 1fr;
    }

    .drag-handle {
        justify-self: start;
    }
}
.answer-list {
    margin: 6px 0 0;
    padding-left: 20px;
}

.answer-list li {
    margin: 3px 0;
}
