:root {
    --ink: #203240;
    --muted: #687d8c;
    --line: #dce8f0;
    --surface: #ffffff;
    --background: #f5f9fc;
    --primary: #1998e5;
    --primary-dark: #0b78bb;
    --primary-soft: #eaf6fe;
    --green: #17805f;
    --green-soft: #e9f7f1;
    --amber: #a96508;
    --amber-soft: #fff6e4;
    --red: #b63a45;
    --red-soft: #fff0f1;
    --blue: #147fc3;
    --blue-soft: #e8f5fd;
    --shadow: 0 8px 28px rgba(37, 100, 139, .09);
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: clip; background: var(--background); scrollbar-gutter: stable; }
[hidden] { display: none !important; }
body {
    margin: 0;
    min-width: 0;
    overflow-x: clip;
    color: var(--ink);
    background: var(--background);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, summary, select { cursor: pointer; }
img, video { max-width: 100%; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid rgba(25, 152, 229, .28);
    outline-offset: 2px;
}
pre, code { max-width: 100%; overflow-x: auto; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: 30px; line-height: 1.25; }
h2 { font-size: 19px; line-height: 1.35; }
h3 { font-size: 15px; }

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}
.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: min(1120px, calc(100% - 40px));
    min-height: 66px;
    margin: auto;
    gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; white-space: nowrap; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 6px; color: white; background: var(--primary); font-family: Georgia, serif; font-size: 19px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 8px 11px; border-radius: 5px; color: #4c6271; font-weight: 600; }
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.active { color: var(--primary-dark); background: var(--primary-soft); }
.header-account { display: flex; align-items: center; justify-content: flex-end; gap: 12px; white-space: nowrap; }
.account-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.points-pill { padding: 5px 9px; border: 1px solid #efd69f; border-radius: 5px; color: var(--amber); background: var(--amber-soft); font-size: 12px; }
.inline-form { display: inline; margin: 0; }
.link-button { padding: 0; border: 0; color: var(--muted); background: none; }
.link-button:hover, .text-link:hover { color: var(--primary); }

.admin-layout { display: grid; width: min(1480px, 100%); min-height: calc(100vh - 67px); margin: 0 auto; grid-template-columns: 220px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 67px; height: calc(100vh - 67px); padding: 24px 16px; border-right: 1px solid var(--line); background: white; overflow-y: auto; }
.admin-sidebar-head { display: flex; padding: 0 10px 18px; border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; gap: 10px; }
.admin-sidebar-head strong { font-size: 16px; }
.admin-sidebar-head span { padding: 2px 7px; border-radius: 4px; color: var(--primary-dark); background: var(--primary-soft); font-size: 10px; font-weight: 700; }
.admin-sidebar-nav { display: grid; padding-top: 12px; gap: 10px; }
.admin-nav-group { display: grid; gap: 3px; }
.admin-nav-group p { margin: 7px 10px 3px; color: #91a2ae; font-size: 10px; font-weight: 700; }
.admin-nav-group a { padding: 8px 10px; border-radius: 5px; color: #4a6070; font-weight: 600; }
.admin-nav-group a:hover { color: var(--primary-dark); background: #f4f9fc; }
.admin-nav-group a.active { color: var(--primary-dark); background: var(--primary-soft); }
.admin-workspace { min-width: 0; }
.admin-page-shell { width: min(1120px, calc(100% - 48px)); }
.admin-footer { width: min(1120px, calc(100% - 48px)); }

.page-shell { width: min(1120px, calc(100% - 40px)); min-height: calc(100vh - 150px); margin: 0 auto; padding: 40px 0 70px; }
.site-footer { display: flex; width: min(1120px, calc(100% - 40px)); min-height: 70px; margin: auto; border-top: 1px solid var(--line); color: var(--muted); align-items: center; justify-content: space-between; font-size: 12px; }
.page-heading { margin-bottom: 28px; }
.page-heading > p:last-child, .page-heading > div > p:last-child, .form-page-header p:last-child { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.heading-with-action { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.heading-with-action > div { min-width: 0; }
.heading-count { color: var(--muted); white-space: nowrap; }
.eyebrow { margin-bottom: 8px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; }
.muted { color: var(--muted); }
.back-link {
    display: inline-flex;
    min-height: 36px;
    margin-bottom: 22px;
    padding: 5px 12px 5px 6px;
    border: 1px solid #d4e7f2;
    border-radius: 7px;
    color: #476778;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 2px 7px rgba(37, 100, 139, .04);
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.back-link::before {
    display: grid;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    color: var(--primary);
    background: var(--primary-soft);
    flex: 0 0 24px;
    place-items: center;
    content: "\2190";
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    transition: color .18s ease, background-color .18s ease;
}
.back-link:hover {
    border-color: #9fcfe9;
    color: var(--primary-dark);
    background: #fff;
    box-shadow: 0 5px 14px rgba(37, 100, 139, .09);
    transform: translateX(-1px);
}
.back-link:hover::before { color: #fff; background: var(--primary); }
.back-link:active { box-shadow: none; transform: translateX(0); }

.button {
    display: inline-flex;
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: white;
    background: var(--primary);
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1.25;
}
.button:hover { border-color: var(--primary-dark); background: var(--primary-dark); }
.button:disabled { opacity: .62; cursor: wait; pointer-events: none; }
.button-secondary { border-color: var(--line); color: #456070; background: white; }
.button-secondary:hover { border-color: #a9c7da; color: var(--primary-dark); background: #f5faff; }
.button-light { border-color: rgba(255,255,255,.55); color: white; background: rgba(255,255,255,.12); }
.button-light:hover { border-color: white; color: var(--primary-dark); background: white; }
.button-danger { border-color: #e4b8bc; color: var(--red); background: white; }
.button-danger:hover { border-color: var(--red); color: white; background: var(--red); }
.button-small { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.button-wide { width: 100%; }
.button-disabled { border-color: #d8e3ea; color: #899aa5; background: #edf2f5; cursor: not-allowed; }
.button-row { display: flex; justify-content: flex-end; gap: 10px; }
.table-link { color: var(--primary); font-weight: 700; white-space: nowrap; }
.table-link:hover { text-decoration: underline; }
.table-link-danger { padding: 0; border: 0; color: var(--red); background: transparent; }
.table-link-danger:hover { color: #8f2630; }

.alert { position: relative; margin: -12px 0 26px; padding: 13px 44px 13px 16px; border: 1px solid; border-radius: 6px; background: white; }
.alert-success { border-color: #b9ddcf; color: var(--green); background: var(--green-soft); }
.alert-warning { border-color: #ecd198; color: #83510f; background: #fff9e9; }
.alert-error { border-color: #ecc4c8; color: #9b2f39; background: #fff4f5; }
.alert-close { position: absolute; top: 7px; right: 9px; width: 30px; height: 30px; border: 0; color: inherit; background: transparent; font-size: 22px; }

.empty-state { display: grid; min-height: 260px; padding: 36px; border: 1px dashed #b9cedb; border-radius: 8px; color: var(--muted); background: #fbfdff; place-content: center; justify-items: center; text-align: center; }
.empty-state strong { color: var(--ink); font-size: 18px; }
.empty-state p { margin: 5px 0 14px; }
.empty-state a:not(.button) { color: var(--primary); font-weight: 700; }
.empty-state.compact { min-height: 120px; }
.not-found span { color: #c7d1cd; font-size: 60px; font-weight: 800; }

.survey-list { display: grid; gap: 12px; }
.survey-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 205px); min-height: 180px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 2px 8px rgba(37, 100, 139, .04); gap: 30px; }
.survey-item:hover { border-color: #a8cce2; box-shadow: var(--shadow); }
.survey-main h2 { margin: 8px 0 7px; font-size: 21px; }
.survey-main > p { max-width: 720px; margin-bottom: 18px; color: var(--muted); }
.survey-meta, .survey-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 12px; }
.survey-meta span:first-child { color: var(--primary); font-weight: 700; }
.survey-foot { padding-top: 13px; border-top: 1px solid #eaf0f4; }
.survey-action { display: flex; min-width: 0; flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; }
.survey-action > .button { width: 100%; }
.survey-status-summary { display: grid; gap: 6px; text-align: right; }
.attempt-count { color: var(--muted); font-size: 12px; }
.survey-status-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.survey-status-list .status { min-height: 23px; padding: 3px 7px; font-size: 11px; }

.status { display: inline-flex; min-height: 26px; padding: 3px 9px; border-radius: 4px; color: #596d79; background: #edf2f5; align-items: center; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-pending, .status-draft { color: var(--amber); background: var(--amber-soft); }
.status-reviewing, .status-shipped, .status-submitting { color: var(--primary-dark); background: var(--primary-soft); }
.status-approved, .status-published, .status-active, .status-completed, .status-submitted { color: var(--green); background: var(--green-soft); }
.status-failed { color: var(--red); background: var(--red-soft); }
.status-rejected, .status-closed, .status-disabled, .status-cancelled { color: var(--red); background: var(--red-soft); }
.status-large { min-height: 34px; padding: 6px 13px; font-size: 13px; }

.auth-layout { display: grid; width: min(850px, 100%); min-height: 580px; margin: 16px auto; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.auth-panel { padding: 54px 58px; }
.auth-panel h1 { font-size: 28px; }
.auth-aside { display: flex; padding: 45px 34px; color: white; background: #188dd2; flex-direction: column; justify-content: flex-end; }
.auth-aside strong { font-size: 22px; line-height: 1.4; }
.auth-aside p { margin: 10px 0 0; color: #d9f1ff; }
.auth-aside.accent-amber { color: var(--ink); background: #dff2ff; }
.auth-aside.accent-amber p { color: #547184; }
.auth-switch { margin: 24px 0 0; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--primary); font-weight: 700; }
.stack-form { display: grid; margin-top: 28px; gap: 17px; }
.code-form { display: grid; margin-top: 26px; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.code-form + .stack-form { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }

label { display: grid; color: #354e5e; gap: 6px; font-weight: 700; }
label small, .existing-file span { color: var(--muted); font-weight: 400; }
input, textarea, select {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 9px 11px;
    border: 1px solid #cbdbe5;
    border-radius: 5px;
    outline: none;
    color: var(--ink);
    background: white;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(25, 152, 229, .13); }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; margin: 0; accent-color: var(--primary); }
.select-answer { position: relative; }
.select-answer::after { position: absolute; top: 50%; right: 15px; width: 7px; height: 7px; border-right: 2px solid var(--primary-dark); border-bottom: 2px solid var(--primary-dark); transform: translateY(-70%) rotate(45deg); pointer-events: none; content: ""; }
.select-answer select { min-height: 48px; padding-right: 40px; border-color: #b9d8e9; border-radius: 7px; color: var(--ink); background: #fbfdff; appearance: none; }
.select-answer select:hover { border-color: #82b9d8; background: #f6fbfe; }
.other-answer { margin-top: 8px; border-color: #9acbe7; background: #fbfeff; }

.survey-header { width: min(720px, 100%); margin: -8px auto 0; padding: 26px 28px 24px; border: 1px solid #cbe6f6; border-radius: 10px; color: var(--ink); background: #eaf7ff; box-shadow: 0 10px 28px rgba(37, 100, 139, .08); }
.survey-header .back-link, .survey-header p { color: #5c7484; }
.survey-header .back-link { margin-bottom: 18px; border-color: rgba(159, 207, 233, .82); color: var(--primary-dark); background: rgba(255, 255, 255, .82); }
.survey-header .back-link:hover { border-color: var(--primary); background: #fff; }
.survey-header .eyebrow { color: var(--primary-dark); }
.survey-header h1 { max-width: 720px; margin-bottom: 12px; color: #153b54; font-size: 30px; overflow-wrap: anywhere; text-wrap: pretty; }
.survey-header-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.survey-header-row > div:first-child { min-width: 0; }
.reward-box { display: grid; min-width: 140px; flex: 0 0 140px; padding: 15px 12px; border: 1px solid #acd5ee; border-radius: 8px; background: rgba(255, 255, 255, .9); box-shadow: 0 5px 14px rgba(37, 100, 139, .08); text-align: center; }
.reward-box strong { color: var(--primary-dark); font-size: 27px; }
.reward-box span { color: var(--muted); font-size: 11px; }
.survey-rules { display: flex; margin-top: 22px; padding-top: 17px; border-top: 1px solid rgba(156, 205, 231, .72); color: #4f6d7e; flex-wrap: wrap; gap: 7px 8px; font-size: 12px; }
.survey-rules span { padding: 4px 10px; border: 1px solid rgba(167, 214, 237, .85); border-radius: 999px; background: rgba(255, 255, 255, .58); }
.questionnaire-form { width: min(720px, 100%); margin: 26px auto 0; }
.question-block { min-width: 0; max-width: 100%; margin: 0 0 16px; padding: 23px 26px 26px; border: 1px solid #d2e2eb; border-radius: 9px; background: white; box-shadow: 0 4px 14px rgba(37, 100, 139, .045); }
.question-block:focus-within { border-color: #9bcce7; box-shadow: 0 0 0 3px rgba(25, 152, 229, .08), 0 5px 16px rgba(37, 100, 139, .07); }
.question-block legend { display: flex; width: 100%; min-width: 0; margin-bottom: 13px; padding: 0; align-items: flex-start; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.question-block legend > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.question-block legend i { margin-left: 4px; color: var(--red); font-style: normal; }
.question-number { display: inline-grid; width: 28px; height: 28px; flex: 0 0 28px; margin-right: 10px; border-radius: 6px; color: white; background: var(--primary); box-shadow: 0 3px 8px rgba(25, 152, 229, .2); place-items: center; font-size: 12px; }
.question-help { margin: 1px 0 14px 38px; color: var(--muted); font-size: 12px; }
.choice-list { display: grid; gap: 8px; }
.choice { display: grid; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #d6e4ec; border-radius: 7px; background: #fcfeff; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 9px; font-weight: 500; overflow-wrap: anywhere; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.choice > span { min-width: 0; overflow-wrap: anywhere; }
.choice:hover { border-color: #99c8e4; background: #f8fcff; }
.choice:has(input:checked) { border-color: #83c4e7; background: #eff9ff; box-shadow: inset 3px 0 0 var(--primary); }
.choice-list > .other-answer { margin-top: 0; }
.existing-file { display: flex; margin-bottom: 9px; gap: 12px; }
.existing-file a { color: var(--primary); font-weight: 700; }
.file-upload { display: grid; gap: 9px; }
.file-input { position: relative; display: grid; min-height: 94px; border: 1px dashed #8fc4e2; border-radius: 8px; color: var(--primary-dark); background: #f7fcff; place-items: center; overflow: hidden; transition: border-color .15s ease, background .15s ease; }
.file-input:hover { border-color: var(--primary); background: #f1faff; }
.file-input input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload.is-locked .file-input, .file-upload.is-locked .file-input:hover { border-style: solid; border-color: #abd8c7; color: #167b59; background: #f2fbf7; }
.file-upload.is-locked .file-input input { cursor: not-allowed; }
.file-input span { display: grid; justify-items: center; font-weight: 700; }
.file-input strong { max-width: min(520px, calc(100vw - 100px)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-input span small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 400; text-align: center; }
.file-upload-progress { display: grid; min-height: 58px; padding: 10px 12px; border: 1px solid #c9e2f1; border-radius: 7px; color: #466474; background: #f8fcff; gap: 7px; }
.file-upload-progress > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.file-upload-progress span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.file-upload-progress strong { flex: 0 0 auto; color: var(--primary-dark); font-size: 11px; }
.file-upload-progress progress { width: 100%; height: 7px; border: 0; border-radius: 4px; background: #dcecf5; overflow: hidden; appearance: none; }
.file-upload-progress progress::-webkit-progress-bar { border-radius: 4px; background: #dcecf5; }
.file-upload-progress progress::-webkit-progress-value { border-radius: 4px; background: var(--primary); transition: width .15s linear; }
.file-upload-progress progress::-moz-progress-bar { border-radius: 4px; background: var(--primary); }
.file-upload-progress.is-ready { border-color: #b9ddcf; color: var(--green); background: var(--green-soft); }
.file-upload-progress.is-ready strong { color: var(--green); }
.file-upload-progress.is-ready progress::-webkit-progress-value { background: var(--green); }
.file-upload-progress.is-ready progress::-moz-progress-bar { background: var(--green); }
.file-upload-progress.is-error { border-color: #ecc4c8; color: var(--red); background: var(--red-soft); }
.file-upload-progress.is-error strong { color: var(--red); }
.file-upload-progress.is-error progress::-webkit-progress-value { background: var(--red); }
.file-upload-progress.is-error progress::-moz-progress-bar { background: var(--red); }
.file-upload-progress.is-fallback { border-color: #e8cc8a; color: #805b12; background: #fff9e9; }
.file-upload-progress.is-fallback strong { color: #805b12; }
.file-upload-progress.is-fallback progress::-webkit-progress-value { background: #d39b2c; }
.file-upload-progress.is-fallback progress::-moz-progress-bar { background: #d39b2c; }
.upload-remove-button { min-height: 30px; padding: 5px 10px; border: 1px solid #dfb6bb; border-radius: 6px; color: var(--red); background: white; cursor: pointer; justify-self: end; font-size: 11px; font-weight: 700; }
.upload-remove-button:hover { border-color: var(--red); color: white; background: var(--red); }
.upload-remove-button:disabled { opacity: .55; cursor: wait; }
.upload-remove-button[hidden] { display: none; }
.submit-bar { display: flex; width: 100%; margin: 24px auto 0; padding: 17px 20px; border: 1px solid #b9d9ec; border-radius: 8px; background: white; box-shadow: 0 8px 30px rgba(27, 94, 135, .14); align-items: center; justify-content: space-between; gap: 18px; }
.submit-bar div { display: grid; }
.submit-bar span { color: var(--muted); font-size: 12px; }
.notice-block, .action-section { display: flex; margin: 30px 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; background: white; align-items: center; justify-content: space-between; gap: 22px; }
.notice-block p, .action-section p { margin: 2px 0 0; color: var(--muted); }
.survey-state-card { width: min(720px, 100%); margin: 30px auto 0; padding: 22px 24px; border-left: 3px solid var(--primary); box-shadow: 0 8px 24px rgba(37, 100, 139, .07); }
.survey-login-card { border-left-color: #59afd9; }
.state-card-copy { display: grid; min-width: 0; gap: 3px; }
.state-card-label { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.state-card-copy strong { font-size: 17px; line-height: 1.4; }
.state-card-copy p { overflow-wrap: anywhere; }
.state-card-copy .status { min-height: 24px; margin-left: 3px; padding: 3px 8px; font-size: 11px; vertical-align: middle; }
.survey-state-card > .button, .survey-state-card > .button-row { flex: 0 0 auto; }
.survey-state-card > .button { min-width: 116px; }
.form-context { display: flex; width: min(720px, 100%); margin: 20px auto 0; padding: 14px 17px; border: 1px solid #c6e2f2; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; color: var(--ink); background: #eaf7ff; box-shadow: 0 4px 12px rgba(37, 100, 139, .05); align-items: center; justify-content: space-between; gap: 18px; }
.form-context span { color: var(--muted); font-size: 12px; }
.bot-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.captcha-section { display: flex; margin-top: 18px; padding: 20px 22px; border: 1px solid #b9d9ec; border-radius: 7px; background: #f5fbff; align-items: center; justify-content: space-between; gap: 24px; }
.captcha-section > div:first-child { display: grid; gap: 3px; }
.captcha-section > div:first-child span { color: var(--muted); font-size: 12px; }
.captcha-control { display: grid; grid-template-columns: 170px 38px minmax(130px, 170px); align-items: center; gap: 8px; }
.captcha-control img { display: block; width: 170px; height: 52px; border: 1px solid #b7d6e8; border-radius: 5px; background: white; }
.captcha-control input { height: 52px; font-size: 18px; text-align: center; letter-spacing: 0; }
.captcha-refresh { display: grid; width: 38px; height: 38px; padding: 0; border: 1px solid #b7d6e8; border-radius: 5px; color: var(--primary-dark); background: white; cursor: pointer; place-items: center; font-size: 22px; }
.captcha-refresh:hover { border-color: var(--primary); background: var(--primary-soft); }

.account-summary { display: flex; min-height: 200px; margin: -8px 0 35px; padding: 34px 0; border-bottom: 1px solid #cae6f6; color: var(--ink); background: transparent; align-items: center; justify-content: space-between; gap: 25px; }
.account-summary p { margin-bottom: 0; color: #5d7686; }
.account-summary .eyebrow { color: var(--primary-dark); }
.balance { display: grid; min-width: 185px; padding-left: 28px; border-left: 1px solid #b9daed; }
.balance span { color: var(--muted); font-size: 12px; }
.balance strong { color: var(--primary-dark); font-size: 36px; }
.balance a { color: var(--primary-dark); font-size: 12px; font-weight: 700; }
.account-nav { display: flex; width: fit-content; max-width: 100%; margin: -8px 0 30px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 3px 12px rgba(37, 100, 139, .06); gap: 4px; overflow-x: auto; }
.account-nav a { display: inline-flex; min-height: 40px; flex: 0 0 auto; padding: 9px 15px; border-radius: 5px; color: var(--muted); align-items: center; justify-content: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.account-nav a:hover { color: var(--primary-dark); background: #f1f9fe; }
.account-nav a.active { color: white; background: var(--primary); box-shadow: 0 3px 8px rgba(25, 152, 229, .2); }
.account-nav small { display: grid; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; color: var(--primary-dark); background: var(--primary-soft); place-items: center; font-size: 10px; }
.account-nav a.active small { color: var(--primary-dark); background: white; }
.account-section { min-height: 330px; }
.account-settings-form { width: min(680px, 100%); padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.content-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.section-title { display: flex; min-height: 50px; margin-bottom: 14px; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section-title h2 { margin: 0; font-size: 20px; }
.section-title .eyebrow { margin-bottom: 4px; }
.section-title > span, .section-title > a { color: var(--muted); font-size: 12px; }

.table-wrap { width: 100%; border: 1px solid var(--line); border-radius: 7px; overflow-x: auto; background: white; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 15px; color: var(--muted); background: #f4f9fc; text-align: left; font-size: 11px; white-space: nowrap; }
td { padding: 15px; border-top: 1px solid #e8eef2; vertical-align: middle; }
td small { display: block; max-width: 310px; margin-top: 3px; color: var(--muted); }
td.actions { display: flex; gap: 12px; }
.order-list, .point-log { border: 1px solid var(--line); border-radius: 7px; background: white; }
.order-row { display: flex; padding: 18px 20px; align-items: center; justify-content: space-between; gap: 24px; }
.order-row + .order-row, .point-log > div + div { border-top: 1px solid #e8eef2; }
.order-no { color: var(--muted); font-family: Consolas, monospace; font-size: 11px; }
.order-row h3 { margin: 3px 0; }
.order-row p { margin: 0; color: var(--muted); }
.order-status { display: grid; min-width: 125px; justify-items: end; gap: 5px; }
.order-status small { color: var(--muted); }
.point-log > div { display: grid; padding: 13px 17px; grid-template-columns: 1fr auto; align-items: center; gap: 0 20px; }
.account-settings > summary { width: fit-content; list-style: none; }
.account-settings > summary::-webkit-details-marker { display: none; }
.account-settings > form { width: min(620px, 100%); margin-top: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.point-log span { font-weight: 700; }
.point-log small { color: var(--muted); }
.point-log strong { grid-column: 2; grid-row: 1 / span 2; font-size: 17px; }
.positive { color: var(--green); }
.negative { color: var(--red); }

.answer-sheet { border: 1px solid var(--line); border-radius: 8px; background: white; }
.answer-row { display: grid; padding: 22px 24px; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 30px; }
.answer-row + .answer-row { border-top: 1px solid #e6edf2; }
.answer-question { display: flex; gap: 10px; }
.answer-question span { color: var(--primary); font-size: 12px; font-weight: 800; }
.answer-value { min-width: 0; color: #344f60; white-space: normal; overflow-wrap: anywhere; }
.answer-image { width: min(320px, 100%); max-height: 260px; border-radius: 5px; object-fit: cover; }
.answer-video { width: min(480px, 100%); max-height: 340px; background: #111; }
.media-thumb { position: relative; display: block; width: min(320px, 100%); padding: 0; border: 1px solid var(--line); border-radius: 6px; background: white; cursor: zoom-in; overflow: hidden; }
.media-thumb .answer-image { display: block; width: 100%; border-radius: 0; }
.media-thumb > span { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 4px; color: white; background: rgba(21, 55, 76, .78); font-size: 11px; }
.media-video-button { display: inline-flex; min-width: min(280px, 100%); padding: 14px 17px; border: 1px solid #b9d9ec; border-radius: 6px; color: var(--ink); background: #f5fbff; align-items: center; gap: 13px; cursor: pointer; text-align: left; }
.media-video-button:hover { border-color: var(--primary); background: var(--primary-soft); }
.media-play-symbol { display: grid; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; color: white; background: var(--primary); place-items: center; padding-left: 2px; }
.media-video-button > span:last-child { display: grid; }
.media-video-button small { color: var(--muted); font-weight: 400; }
.review-note { margin-bottom: 20px; padding: 16px 20px; border-left: 4px solid var(--amber); background: var(--amber-soft); }
.review-note p { margin: 3px 0 0; }
.inline-action-form { display: grid; min-width: min(500px, 55%); grid-template-columns: 1fr auto; gap: 10px; }
.timeline { border-left: 2px solid #cddfea; }
.timeline > div { position: relative; padding: 0 0 22px 22px; }
.timeline > div::before { position: absolute; top: 8px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); content: ""; }
.timeline p { margin: 7px 0 1px; }
.timeline small { color: var(--muted); }
.review-panel { display: grid; margin-top: 30px; padding: 0; border: 1px solid #c6e1f1; border-radius: 10px; background: white; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); align-items: stretch; gap: 0; overflow: hidden; box-shadow: 0 8px 24px rgba(37, 100, 139, .07); }
.review-summary { display: grid; padding: 26px 27px; border-right: 1px solid #c6e1f1; background: #edf8fe; align-content: start; gap: 4px; }
.review-summary h2 { margin: 2px 0 2px; font-size: 21px; }
.review-summary > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.review-reward { display: grid; margin-top: 18px; padding-top: 15px; border-top: 1px solid #c9e4f3; gap: 2px; }
.review-reward span, .review-reward small { color: var(--muted); font-size: 11px; }
.review-reward strong { color: var(--primary-dark); font-size: 24px; line-height: 1.2; }
.review-assignee { display: flex; margin-top: 15px; padding: 9px 11px; border: 1px solid #c6e1f1; border-radius: 6px; background: rgba(255,255,255,.68); align-items: center; justify-content: space-between; gap: 10px; }
.review-assignee span { color: var(--muted); font-size: 11px; }
.review-assignee strong { color: var(--primary-dark); font-size: 12px; }
.review-copy-source { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.review-copy-button { margin-top: 17px; justify-self: start; }
.review-copy-button.is-copied { color: var(--green); border-color: #bfe0d2; background: var(--green-soft); }
.review-start-form { display: flex; padding: 26px 27px; align-items: center; justify-content: space-between; gap: 20px; }
.review-start-copy { display: grid; gap: 3px; }
.review-start-copy span { color: var(--muted); font-size: 12px; }
.review-locked { display: grid; min-height: 92px; margin: 26px 27px; padding: 17px 18px; border: 1px solid #b9d9ec; border-radius: 7px; background: #f7fcff; align-content: center; gap: 3px; }
.review-locked span { color: var(--muted); font-size: 12px; }
.review-panel h2 { margin-bottom: 5px; }
.review-panel form { display: grid; gap: 15px; }
.review-decision-form { padding: 24px 27px; align-content: center; }
.review-note-field { display: grid; gap: 7px; }
.review-note-field > span { color: #35566b; font-size: 12px; font-weight: 700; }
.review-note-field small { margin-left: 5px; color: var(--muted); font-weight: 400; }
.review-note-field textarea { min-height: 112px; background: #fbfdff; }
.review-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.review-form-footer > span { color: var(--muted); font-size: 11px; }
.review-form-footer .button-row { margin-left: auto; }
.official-review-panel { display: grid; margin-top: 24px; border: 1px solid #c7dfeb; border-radius: 8px; background: white; overflow: hidden; box-shadow: 0 8px 24px rgba(35, 83, 111, .06); }
.official-review-head { display: flex; padding: 22px 24px; border-bottom: 1px solid #d7e7ee; background: #eff8fc; align-items: flex-start; justify-content: space-between; gap: 20px; }
.official-review-head h2 { margin: 2px 0 3px; font-size: 20px; }
.official-review-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }
.official-review-fields { display: grid; padding: 22px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.official-review-fields label { display: grid; min-width: 0; gap: 7px; }
.official-review-fields label > span { color: #35566b; font-size: 12px; font-weight: 800; }
.official-review-fields input[readonly], .official-review-fields textarea[readonly] { color: var(--ink); background: #f8fbfc; cursor: text; }
.official-review-media { display: flex; margin: 0 24px 22px; padding: 16px 18px; border: 1px solid #d5e4eb; border-radius: 7px; background: #fbfdfe; align-items: center; justify-content: space-between; gap: 18px; }
.official-review-media > div { display: grid; gap: 2px; }
.official-review-media span { color: var(--muted); font-size: 12px; }
.official-review-actions { display: flex; padding: 18px 24px; border-top: 1px solid #dce8ee; background: #f8fbfc; align-items: center; justify-content: space-between; gap: 16px; }
.official-review-confirm { display: grid; flex: 1 1 auto; grid-template-columns: minmax(130px, .8fr) minmax(180px, 1fr) auto; gap: 9px; }
.official-review-confirm .button { min-width: 180px; }
.official-review-error { display: grid; max-width: 720px; color: var(--red); gap: 3px; }
.official-review-error span { font-size: 12px; line-height: 1.6; }
.official-review-complete { display: grid; margin: 0 24px 22px; padding: 16px 18px; border: 1px solid #bfe0d2; border-radius: 7px; color: #22684c; background: var(--green-soft); gap: 3px; }
.official-review-running { border-color: #bcdced; color: var(--primary-dark); background: var(--primary-soft); }
.official-review-complete span, .official-review-complete p { margin: 0; color: #4d7565; font-size: 12px; }

.heading-balance { display: grid; min-width: 120px; text-align: right; }
.heading-balance span { color: var(--muted); font-size: 12px; }
.heading-balance strong { color: var(--amber); font-size: 30px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; grid-template-rows: auto 1fr; }
.product-image { display: grid; aspect-ratio: 16 / 10; overflow: hidden; color: #37789e; background: #dceff9; place-items: center; font-size: 44px; font-weight: 800; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { display: flex; min-width: 0; padding: 19px; flex-direction: column; }
.product-body h2 { margin: 11px 0 5px; }
.product-body > p { min-height: 48px; margin-bottom: 18px; color: var(--muted); }
.product-body > .button { width: 100%; margin-top: auto; }
.product-top { display: flex; align-items: center; justify-content: space-between; }
.product-top > span { color: var(--muted); font-size: 11px; }
.product-top > strong { color: var(--amber); font-size: 22px; }
.product-top small { font-size: 11px; }
.redeem-dialog { width: min(500px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 9px; color: var(--ink); background: transparent; box-shadow: 0 20px 65px rgba(18, 63, 93, .3); }
.redeem-dialog::backdrop { background: rgba(15, 45, 66, .5); backdrop-filter: blur(2px); }
.redeem-dialog-panel { padding: 25px 27px 27px; border: 1px solid #cfe4ef; border-radius: 9px; background: white; }
.redeem-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.redeem-dialog-head h2 { margin: 0; font-size: 22px; }
.redeem-product-summary { display: grid; min-height: 74px; margin: 20px 0; padding: 13px; border: 1px solid #d5e7ef; border-radius: 7px; background: #f3f9fc; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.redeem-product-summary > span { display: grid; width: 46px; height: 46px; border-radius: 7px; color: white; background: var(--primary); place-items: center; font-size: 20px; font-weight: 800; }
.redeem-product-summary > div { display: grid; min-width: 0; gap: 3px; }
.redeem-product-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.redeem-product-summary small { color: var(--muted); }
.redeem-product-summary b { color: var(--amber); white-space: nowrap; font-size: 18px; }
.redeem-form { display: grid; gap: 13px; }
.redeem-form label { gap: 6px; }
.redeem-form textarea { min-height: 84px; resize: vertical; }
.redeem-dialog-actions { display: flex; margin-top: 4px; justify-content: flex-end; gap: 9px; }

.stat-grid { display: grid; margin-bottom: 35px; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-grid-reviewer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-grid a { display: grid; min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.stat-grid a:hover { border-color: #9cc8e2; box-shadow: var(--shadow); }
.stat-grid span { color: var(--muted); }
.stat-grid strong { align-self: center; font-size: 34px; }
.stat-grid small { color: var(--primary); }
.form-page-header { margin-bottom: 20px; }
.editor-form { display: grid; width: min(880px, 100%); gap: 15px; }
.editor-form.narrow { width: min(720px, 100%); }
.editor-form section { padding: 25px 27px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.editor-form section h2 { margin-bottom: 20px; font-size: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span-2 { grid-column: 1 / -1; }
.editor-actions, .bottom-actions { display: flex; padding-top: 6px; justify-content: flex-end; gap: 10px; }
.check-setting { display: grid; width: fit-content; grid-template-columns: 18px auto; align-items: center; }
.check-setting > span { display: grid; gap: 1px; }

.question-admin-list { display: grid; gap: 9px; }
.question-admin-list article { display: grid; min-height: 108px; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: white; grid-template-columns: 34px 1fr auto; align-items: center; gap: 15px; }
.drag-index { display: grid; width: 30px; height: 30px; border-radius: 5px; color: var(--primary); background: var(--primary-soft); place-items: center; font-weight: 800; }
.question-admin-list h2 { margin: 3px 0; font-size: 16px; }
.question-admin-list p { margin: 0; color: var(--muted); font-size: 12px; }
.question-type { color: var(--primary); font-size: 11px; font-weight: 700; }
.row-actions { display: flex; align-items: center; gap: 7px; }
.icon-danger { display: grid; width: 34px; height: 34px; padding: 0; border: 1px solid #e8c8cb; border-radius: 5px; color: var(--red); background: white; place-items: center; font-size: 20px; }
.filter-tabs { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.filter-tabs a { padding: 6px 10px; border-radius: 4px; color: var(--muted); font-size: 12px; }
.filter-tabs a span { margin-left: 3px; opacity: .7; }
.filter-tabs a.active { color: white; background: var(--primary); }
.review-filter-bar { display: grid; margin: -8px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: white; grid-template-columns: minmax(250px, 1fr) 240px auto auto; align-items: end; gap: 12px; }
.review-filter-bar label { color: var(--muted); font-size: 11px; gap: 4px; }
.review-filter-bar input, .review-filter-bar select { min-height: 38px; padding-top: 7px; padding-bottom: 7px; color: var(--ink); font-size: 13px; }
.review-filter-actions { display: flex; gap: 7px; }
.review-filter-result { padding-bottom: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.time-filter-tabs { display: flex; margin: -8px 0 18px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: white; gap: 3px; overflow-x: auto; }
.time-filter-tabs a { padding: 7px 13px; border-radius: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.time-filter-tabs a:hover { color: var(--primary-dark); background: var(--primary-soft); }
.time-filter-tabs a.active { color: white; background: var(--primary); }
.review-date-fields { display: grid; margin: -8px 0 18px; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; }
.review-date-fields label { color: var(--muted); font-size: 11px; gap: 4px; }
.review-date-fields input { min-height: 38px; padding-top: 7px; padding-bottom: 7px; font-size: 13px; }

.choice-settings { display: grid; padding: 17px; border: 1px solid #cfe3ef; border-radius: 7px; background: #f8fcff; gap: 14px; }
.choice-settings > label:first-child { gap: 7px; }
.choice-settings textarea { min-height: 140px; background: white; }
.encoding-warning { display: grid; padding: 10px 12px; border-left: 3px solid var(--red); border-radius: 4px; color: var(--red); background: var(--red-soft); gap: 2px; }
.encoding-warning strong { font-size: 13px; }
.encoding-warning span { font-size: 12px; }
.choice-preview { display: flex; min-height: 26px; flex-wrap: wrap; gap: 6px; }
.choice-preview span { padding: 4px 9px; border: 1px solid #c8e1ee; border-radius: 14px; color: var(--primary-dark); background: white; font-size: 12px; }
.choice-preview small { color: var(--muted); }

.standalone-survey-body { background: #edf6fb; }
.standalone-header { min-height: 76px; color: white; background: #176fd0; }
.standalone-header-inner { display: flex; width: min(1080px, calc(100% - 40px)); min-height: 76px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 24px; }
.standalone-brand { display: inline-flex; min-width: 0; max-width: 66%; align-items: center; gap: 12px; }
.standalone-brand .brand-mark { flex: 0 0 34px; background: rgba(255,255,255,.18); }
.standalone-brand-copy { display: grid; min-width: 0; gap: 1px; }
.standalone-brand-copy small { color: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.standalone-brand-copy strong { overflow: hidden; color: white; font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.standalone-account { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.standalone-user { display: inline-flex; min-height: 42px; padding: 5px 10px 5px 6px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; color: white; align-items: center; gap: 9px; }
.standalone-user:hover { background: rgba(255,255,255,.1); }
.standalone-avatar { display: grid; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.18); place-items: center; font-weight: 800; }
.standalone-user-copy { display: grid; gap: 0; line-height: 1.25; }
.standalone-user-copy strong { font-size: 12px; }
.standalone-user-copy small { color: rgba(255,255,255,.72); font-size: 10px; }
.standalone-logout { min-height: 36px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; color: white; background: transparent; cursor: pointer; font-size: 12px; }
.standalone-logout:hover { border-color: white; background: rgba(255,255,255,.12); }
.standalone-page-shell { width: min(760px, calc(100% - 32px)); min-height: 0; margin: 34px auto 42px; padding: 0 0 38px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.standalone-page-shell .survey-header { width: 100%; margin: 0 0 22px; padding: 32px 34px 26px; border: 1px solid #cbe6f6; border-radius: 14px; background: white; box-shadow: 0 10px 28px rgba(38, 96, 135, .1); }
.standalone-page-shell .survey-header h1 { font-size: 29px; }
.standalone-page-shell .questionnaire-form { width: 100%; }
.standalone-page-shell .questionnaire-form { margin-top: 28px; }
.standalone-page-shell .form-context { width: 100%; margin-top: 0; }
.standalone-footer { width: min(760px, calc(100% - 32px)); min-height: 55px; }

.auth-dialog, .media-dialog { width: min(470px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 10px; color: var(--ink); background: transparent; box-shadow: 0 18px 60px rgba(18, 63, 93, .28); }
.auth-dialog::backdrop, .media-dialog::backdrop { background: rgba(15, 45, 66, .52); backdrop-filter: blur(2px); }
.auth-dialog-panel { padding: 27px 30px 29px; border: 1px solid #cfe4ef; border-radius: 10px; background: white; }
.auth-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.auth-dialog-head h2 { margin: 0; font-size: 22px; }
.dialog-close { display: grid; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: white; place-items: center; font-size: 22px; line-height: 1; }
.dialog-close:hover { color: var(--red); border-color: #e1b9be; background: var(--red-soft); }
.auth-dialog-tabs { display: flex; margin: 21px 0 19px; border-bottom: 1px solid var(--line); gap: 4px; }
.auth-dialog-tabs button { padding: 9px 16px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.auth-dialog-tabs button.active { border-bottom-color: var(--primary); color: var(--primary-dark); }
.dialog-alert { margin: 0 0 14px; padding: 10px 12px; border: 1px solid; border-radius: 5px; font-size: 12px; }
.auth-switch-button { padding: 0; border: 0; background: transparent; cursor: pointer; font-weight: 700; }
.auth-dialog .stack-form { margin-top: 5px; }
.auth-dialog .code-form { margin-top: 5px; }
.media-dialog { width: min(920px, calc(100% - 28px)); }
.media-dialog-panel { position: relative; padding: 22px; border: 1px solid #cfe4ef; border-radius: 10px; background: #11202a; }
.media-dialog-panel .dialog-close { position: absolute; z-index: 2; top: 10px; right: 10px; color: white; border-color: rgba(255,255,255,.4); background: rgba(0,0,0,.35); }
.media-stage { display: grid; min-height: 240px; max-height: 75vh; place-items: center; }
.media-stage img, .media-stage video { display: block; max-width: 100%; max-height: 75vh; border-radius: 5px; object-fit: contain; }
.media-dialog-panel > p { margin: 12px 0 0; color: #d7e7ef; text-align: center; }
.media-preview-link { padding: 0; border: 0; color: var(--primary); background: transparent; cursor: pointer; font-weight: 700; }
.media-preview-link:hover { text-decoration: underline; }
.submission-main-cell { min-width: 230px; }
.review-highlights { display: grid; max-width: 340px; margin: 6px 0 4px; gap: 3px; }
.review-highlights span { color: #4f6878; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.review-highlights b { color: var(--primary-dark); font-weight: 700; }

.request-list, .user-admin-list, .order-admin-list { display: grid; gap: 12px; }
.request-list article, .user-admin-list article, .order-admin-list article { padding: 20px 22px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.request-summary, .order-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.request-summary h2, .order-admin-head h2 { margin: 5px 0 2px; font-size: 17px; }
.request-summary p, .order-admin-head p { margin: 0; color: var(--muted); font-size: 12px; }
.request-list blockquote { margin: 16px 0; padding: 11px 14px; border-left: 3px solid #9fc7df; background: #f4f9fc; }
.request-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.handle-note { margin: 12px 0 0; color: var(--muted); }
.user-admin-item { display: block; }
.user-card-head { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 24px; }
.user-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.user-identity > span, .product-cell > span { display: grid; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 6px; color: white; background: var(--primary); place-items: center; font-weight: 800; }
.user-identity h2 { margin: 0; font-size: 16px; }
.user-identity p { margin: 2px 0 0; color: #4f6878; font-size: 12px; overflow-wrap: anywhere; }
.user-identity small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.user-points { display: grid; min-width: 88px; justify-items: end; text-align: right; }
.user-points strong { color: var(--primary-dark); font-size: 24px; line-height: 1.2; }
.user-points span { color: var(--muted); font-size: 11px; }
.user-management-row { display: flex; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); align-items: flex-end; justify-content: space-between; gap: 16px; }
.user-role-form { display: grid; grid-template-columns: 180px 160px auto; align-items: end; gap: 8px; }
.user-role-form label, .points-adjust form label { color: var(--muted); font-size: 11px; gap: 4px; }
.user-role-form select { min-height: 38px; padding-top: 7px; padding-bottom: 7px; color: var(--ink); font-size: 13px; }
.points-adjust { position: relative; }
.points-adjust summary { list-style: none; color: var(--primary-dark); white-space: nowrap; }
.points-adjust summary::-webkit-details-marker { display: none; }
.points-adjust summary::marker { content: ""; }
.points-adjust[open] summary { border-color: #a9c7da; background: var(--primary-soft); }
.points-adjust form { position: absolute; z-index: 5; top: 42px; right: 0; display: grid; width: 330px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: var(--shadow); gap: 11px; }
.product-cell { display: flex; align-items: center; gap: 12px; }
.product-cell img { width: 48px; height: 48px; border-radius: 5px; object-fit: cover; }
.product-cell small { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-admin-head > div:last-child { display: grid; justify-items: end; gap: 5px; }
.shipping-address { display: grid; margin: 16px 0; padding: 13px 15px; background: #f4f9fc; grid-template-columns: minmax(140px, .7fr) minmax(180px, 1fr); gap: 12px 22px; }
.shipping-address > div { display: grid; gap: 3px; }
.shipping-address span { color: var(--muted); font-size: 11px; }
.shipping-address strong { overflow-wrap: anywhere; }
.shipping-address .shipping-note { grid-column: 1 / -1; }
.order-remark { margin-top: 3px !important; overflow-wrap: anywhere; }
.shipping-form { display: grid; grid-template-columns: 160px 1fr 1fr auto; align-items: end; gap: 10px; }

@media (max-width: 980px) {
    .header-inner { grid-template-columns: auto 1fr; gap: 14px; }
    .main-nav { grid-row: 2; grid-column: 1 / -1; padding-bottom: 9px; overflow-x: auto; }
    .header-account { grid-column: 2; grid-row: 1; }
    .account-name { display: none; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .user-role-form { grid-template-columns: 160px 145px auto; }
    .shipping-form { grid-template-columns: 1fr 1fr; }
    .admin-layout { grid-template-columns: 190px minmax(0, 1fr); }
    .admin-sidebar { top: 104px; height: calc(100vh - 104px); }
    .admin-page-shell, .admin-footer { width: min(100% - 32px, 1120px); }
}

@media (max-width: 700px) {
    body { font-size: 13px; }
    h1, .survey-header h1 { font-size: 25px; }
    .header-inner, .page-shell, .site-footer { width: min(100% - 24px, 1120px); }
    .header-inner { position: relative; min-height: 58px; }
    .brand > span:last-child { display: none; }
    .main-nav a { padding: 6px 8px; }
    .points-pill { display: none; }
    .header-account { position: absolute; top: 8px; right: 0; }
    .header-account .link-button { padding: 5px 2px; }
    .standalone-header { min-height: 62px; padding: 0 12px; }
    .standalone-header-inner { width: 100%; min-height: 62px; }
    .standalone-brand { max-width: 54%; font-size: 14px; }
    .standalone-brand .brand-mark { width: 29px; height: 29px; flex-basis: 29px; }
    .standalone-user { font-size: 11px; }
    .standalone-user > span { width: 25px; height: 25px; }
    .standalone-page-shell { width: calc(100% - 24px); margin: 22px auto 30px; padding: 0 0 38px; }
    .standalone-page-shell .survey-header { width: 100%; margin: 0 0 18px; padding: 26px 18px 22px; border-radius: 11px; }
    .standalone-page-shell .survey-header h1 { font-size: 25px; }
    .standalone-footer { width: calc(100% - 24px); }
    .page-shell { padding-top: 27px; }
    .heading-with-action { align-items: flex-start; flex-direction: column; gap: 14px; }
    .survey-item { grid-template-columns: 1fr; padding: 20px; gap: 12px; }
    .survey-action { min-width: 0; align-items: stretch; }
    .survey-action .status { width: fit-content; }
    .survey-status-summary { text-align: left; }
    .survey-status-list { justify-content: flex-start; }
    .auth-layout { display: block; min-height: 0; margin: 0; }
    .auth-panel { padding: 32px 24px; }
    .auth-aside { display: none; }
    .code-form { grid-template-columns: 1fr; }
    .survey-header { width: 100%; margin-top: -2px; padding: 24px 18px 20px; }
    .account-summary { margin-top: -27px; padding-right: 0; padding-left: 0; }
    .survey-header-row, .account-summary { align-items: flex-start; flex-direction: column; }
    .reward-box { width: 100%; flex-basis: auto; }
    .survey-rules { gap: 6px 14px; }
    .survey-rules span { white-space: normal; }
    .survey-state-card { width: 100%; margin-top: 22px; padding: 18px; }
    .survey-state-card > .button-row { width: 100%; justify-content: stretch; }
    .survey-state-card > .button-row .button { flex: 1 1 0; }
    .question-block { padding: 19px 16px 22px; }
    .question-help { margin-left: 0; }
    .choice-settings { padding: 14px; }
    .submit-bar { align-items: stretch; flex-direction: column; }
    .account-summary { min-height: 220px; }
    .balance { width: 100%; padding: 14px 0 0; border-top: 1px solid #b9daed; border-left: 0; }
    .order-row, .notice-block, .action-section { align-items: stretch; flex-direction: column; }
    .form-context, .captcha-section { align-items: stretch; flex-direction: column; }
    .captcha-control { width: 100%; grid-template-columns: 170px 38px; }
    .captcha-control input { grid-column: 1 / -1; }
    .account-nav { width: 100%; margin-top: -15px; }
    .account-nav a { padding-right: 12px; padding-left: 12px; }
    .account-settings-form { padding: 18px; }
    .account-submission-table { border: 0; overflow: visible; background: transparent; }
    .account-submission-table table, .account-submission-table tbody, .account-submission-table tr, .account-submission-table td { display: block; width: 100%; }
    .account-submission-table thead { display: none; }
    .account-submission-table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 7px; background: white; overflow: hidden; }
    .account-submission-table td { display: grid; min-height: 42px; padding: 10px 13px; border-top: 1px solid #e8eef2; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 10px; overflow-wrap: anywhere; }
    .account-submission-table td:first-child { border-top: 0; }
    .account-submission-table td::before { color: var(--muted); content: attr(data-label); font-size: 11px; font-weight: 600; }
    .account-submission-table td > strong, .account-submission-table td > small { grid-column: 2; }
    .account-submission-table td > small { margin-top: -6px; }
    .order-status { justify-items: start; }
    .answer-row { grid-template-columns: 1fr; padding: 18px; gap: 10px; }
    .inline-action-form { min-width: 100%; grid-template-columns: 1fr; }
    .review-panel { grid-template-columns: 1fr; padding: 0; gap: 0; }
    .review-summary { padding: 20px; border-right: 0; border-bottom: 1px solid #c6e1f1; }
    .review-start-form { padding: 20px; align-items: stretch; flex-direction: column; }
    .review-start-form .button { width: 100%; }
    .review-decision-form { padding: 20px; }
    .review-form-footer { align-items: stretch; flex-direction: column; }
    .review-form-footer .button-row { width: 100%; margin-left: 0; }
    .review-form-footer .button { flex: 1 1 0; }
    .review-locked { margin: 20px; }
    .official-review-head, .official-review-media, .official-review-actions { align-items: stretch; flex-direction: column; }
    .official-review-fields { padding: 18px; grid-template-columns: 1fr; }
    .official-review-fields .span-2 { grid-column: auto; }
    .official-review-media { margin: 0 18px 18px; }
    .official-review-confirm { grid-template-columns: 1fr; }
    .official-review-confirm .button { min-width: 0; }
    .official-review-actions > .button, .official-review-confirm .button { width: 100%; }
    .official-review-complete { margin: 0 18px 18px; }
    .product-grid, .stat-grid { grid-template-columns: 1fr; }
    .redeem-dialog-panel { padding: 22px 18px; }
    .redeem-product-summary { grid-template-columns: 42px minmax(0, 1fr); }
    .redeem-product-summary > span { width: 42px; height: 42px; }
    .redeem-product-summary > b { grid-column: 2; }
    .redeem-dialog-actions .button { flex: 1 1 0; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .editor-form section { padding: 20px 17px; }
    .question-admin-list article { grid-template-columns: 30px 1fr; padding: 16px; }
    .row-actions { grid-column: 2; }
    .filter-tabs { width: 100%; overflow-x: auto; }
    .review-filter-bar { margin-top: -2px; grid-template-columns: 1fr; gap: 9px; }
    .review-filter-actions { align-items: center; }
    .review-filter-result { padding: 0; }
    .review-date-fields { grid-template-columns: 1fr 1fr; }
    .shipping-address { grid-template-columns: 1fr; }
    .shipping-address .shipping-note { grid-column: auto; }
    .review-date-fields .button { grid-column: 1 / -1; }
    .request-summary, .order-admin-head { flex-direction: column; }
    .request-form { grid-template-columns: 1fr 1fr; }
    .request-form input { grid-column: 1 / -1; }
    .user-admin-list article { padding: 17px; }
    .user-card-head { align-items: flex-start; gap: 14px; }
    .user-management-row { align-items: stretch; flex-direction: column; }
    .user-role-form { grid-template-columns: 1fr 1fr; }
    .user-role-form button { grid-column: 1 / -1; }
    .points-adjust { width: 100%; }
    .points-adjust summary { width: fit-content; }
    .points-adjust form { right: auto; left: 0; width: min(330px, calc(100vw - 58px)); }
    .shipping-form { grid-template-columns: 1fr; }
    .editor-actions { position: sticky; bottom: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.96); }
    .site-footer { min-height: 60px; }
    .admin-layout { display: block; min-height: 0; }
    .admin-sidebar { position: sticky; z-index: 15; top: 99px; width: 100%; height: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; }
    .admin-sidebar-head, .admin-nav-group p { display: none; }
    .admin-sidebar-nav { display: flex; width: max-content; padding: 0; gap: 4px; }
    .admin-nav-group { display: contents; }
    .admin-nav-group a { padding: 7px 10px; white-space: nowrap; }
    .admin-page-shell, .admin-footer { width: min(100% - 24px, 1120px); }
    .review-start-form { justify-content: flex-start; }
}

/* 2026 interface refresh */
:root {
    --ink: #183447;
    --muted: #667e8c;
    --line: #d9e6ed;
    --surface: #ffffff;
    --background: #f4f8fa;
    --primary: #138fd3;
    --primary-dark: #076da9;
    --primary-soft: #e9f6fc;
    --green: #147b5c;
    --green-soft: #e9f6f0;
    --amber: #9b630f;
    --amber-soft: #fff6e5;
    --red: #b23e48;
    --red-soft: #fff0f2;
    --blue: #147eb8;
    --blue-soft: #eaf5fb;
    --shadow: 0 14px 34px rgba(35, 83, 111, .09);
}

body { color: var(--ink); background: var(--background); }
h1 { font-size: 32px; font-weight: 800; line-height: 1.24; }
h2 { color: #1d3a4d; }

.site-header {
    border-bottom-color: #dce8ee;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 0 rgba(30, 69, 93, .03);
}
.header-inner {
    width: min(1180px, calc(100% - 48px));
    min-height: 72px;
    gap: 34px;
}
.brand { gap: 11px; color: #183c53; font-size: 18px; }
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(7, 109, 169, .2);
    font-size: 20px;
}
.main-nav { gap: 4px; }
.main-nav a {
    display: inline-flex;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #506978;
    align-items: center;
    font-weight: 700;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.main-nav a:hover { border-color: #dbeaf2; color: var(--primary-dark); background: #f7fbfd; }
.main-nav a.active { border-color: #c9e5f4; color: var(--primary-dark); background: var(--primary-soft); }
.header-account { gap: 9px; }
.header-account .account-name { color: #415d6d; font-weight: 700; }
.points-pill {
    padding: 6px 10px;
    border-color: #ead6a8;
    border-radius: 7px;
    background: #fff9eb;
}
.header-account > .text-link, .header-account .link-button {
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 6px;
}
.header-account > .text-link:hover, .header-account .link-button:hover { color: var(--primary-dark); background: var(--primary-soft); }

.page-shell {
    width: min(1180px, calc(100% - 48px));
    padding: 48px 0 84px;
}
.site-footer {
    width: min(1180px, calc(100% - 48px));
    border-top-color: #dce8ee;
    color: #78909d;
}
.page-heading { margin-bottom: 32px; }
.page-heading h1, .form-page-header h1 { margin-bottom: 9px; color: #17374c; }
.page-heading > p:last-child, .page-heading > div > p:last-child, .form-page-header p:last-child { color: #6c8290; }
.heading-with-action { align-items: center; }
.heading-count {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255,255,255,.72);
    font-size: 12px;
}
.eyebrow { margin-bottom: 7px; color: var(--primary-dark); font-size: 10px; letter-spacing: 1.2px; }

.button {
    min-height: 41px;
    padding: 9px 16px;
    border-radius: 8px;
    box-shadow: 0 5px 13px rgba(19, 143, 211, .14);
    transition: border-color .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.button:hover { box-shadow: 0 7px 17px rgba(7, 109, 169, .19); transform: translateY(-1px); }
.button:active { box-shadow: none; transform: translateY(0); }
.button-secondary, .button-danger, .button-disabled { box-shadow: none; }
.button-secondary { border-color: #cfdfe7; background: #fff; }
.button-secondary:hover { border-color: #91bfd8; background: #f6fbfd; box-shadow: none; }
.button-small { min-height: 35px; padding: 7px 12px; border-radius: 7px; }
.table-link { color: var(--primary-dark); }

.alert { margin-top: -8px; border-radius: 8px; box-shadow: 0 6px 18px rgba(35, 83, 111, .05); }
.empty-state {
    border-color: #bfd3de;
    border-radius: 8px;
    background: rgba(255,255,255,.62);
}
.empty-state strong { color: #29495b; }

.survey-list { gap: 16px; }
.survey-item {
    min-height: 172px;
    padding: 26px 28px;
    border-color: #d8e5ec;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(35, 83, 111, .04);
    gap: 34px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.survey-item:hover { border-color: #9bc9df; box-shadow: 0 14px 30px rgba(35, 83, 111, .09); transform: translateY(-2px); }
.survey-main h2 { margin: 10px 0 7px; color: #15384d; font-size: 22px; }
.survey-main > p { margin-bottom: 20px; color: #6d8390; }
.survey-meta { gap: 8px 18px; }
.survey-meta span:first-child { color: var(--primary-dark); }
.survey-foot { padding-top: 14px; border-top-color: #e7eff3; }
.survey-action { padding-left: 24px; border-left: 1px solid #e5eef2; }
.survey-status-summary { gap: 7px; }
.survey-status-list .status { border: 1px solid transparent; }

.status { min-height: 27px; border-radius: 6px; }
.status-pending, .status-draft { border: 1px solid #f0d79f; }
.status-reviewing, .status-shipped, .status-submitting { border: 1px solid #bcdced; }
.status-approved, .status-published, .status-active, .status-completed, .status-submitted { border: 1px solid #bfe0d2; }
.status-failed { border: 1px solid #f2c3c8; }
.status-rejected, .status-closed, .status-disabled, .status-cancelled { border: 1px solid #ebc5c8; }

label { color: #365466; }
input, textarea, select {
    min-height: 44px;
    padding: 10px 12px;
    border-color: #cbdce5;
    border-radius: 7px;
    color: #1d3b4e;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
input:hover, textarea:hover, select:hover { border-color: #a9cadb; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(19, 143, 211, .12); }

.survey-header {
    width: min(780px, 100%);
    margin-top: -4px;
    padding: 30px 32px 27px;
    border-color: #cfe3ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(35, 83, 111, .08);
}
.survey-header::before {
    display: block;
    height: 4px;
    margin: -30px -32px 25px;
    background: var(--primary);
    content: "";
}
.survey-header h1 { color: #16394f; font-size: 31px; }
.survey-header-row { gap: 34px; }
.reward-box {
    min-width: 132px;
    flex-basis: 132px;
    padding: 16px 12px;
    border-color: #b9dbed;
    border-radius: 8px;
    background: #f4fbfe;
    box-shadow: none;
}
.reward-box strong { font-size: 29px; }
.survey-rules { margin-top: 24px; padding-top: 18px; }
.survey-rules span { border-radius: 6px; background: #f8fcfe; }
.questionnaire-form { width: min(780px, 100%); margin-top: 24px; }
.question-block {
    margin-bottom: 14px;
    padding: 25px 27px 27px;
    border-color: #d6e4eb;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(35, 83, 111, .035);
}
.question-block:focus-within { border-color: #92c8e2; box-shadow: 0 0 0 3px rgba(19, 143, 211, .07), 0 8px 20px rgba(35, 83, 111, .06); }
.question-number { color: var(--primary-dark); background: var(--primary-soft); box-shadow: none; }
.choice { border-radius: 7px; background: #fff; }
.choice:hover { background: #f8fcfe; }
.choice:has(input:checked) { border-color: #79bddf; background: #eef8fd; box-shadow: inset 3px 0 0 var(--primary); }
.file-input { border-radius: 8px; background: #f8fcfe; }
.captcha-section, .submit-bar { border-radius: 8px; }
.submit-bar { box-shadow: 0 10px 26px rgba(35, 83, 111, .1); }
.survey-state-card, .form-context { width: min(780px, 100%); }

.account-summary {
    min-height: 184px;
    margin: -8px 0 28px;
    padding: 30px 4px;
    border-bottom-color: #cfe1ea;
}
.account-summary h1 { margin-bottom: 8px; }
.balance {
    min-width: 190px;
    padding: 15px 20px;
    border: 1px solid #c7e1ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(35, 83, 111, .06);
}
.balance strong { font-size: 34px; }
.account-nav {
    display: grid;
    width: 100%;
    margin: 0 0 36px;
    padding: 5px;
    border-color: #d3e3eb;
    border-radius: 8px;
    background: #edf5f8;
    box-shadow: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}
.account-nav a { min-height: 44px; border: 1px solid transparent; border-radius: 7px; }
.account-nav a:hover { border-color: #d7e8f0; background: rgba(255,255,255,.72); }
.account-nav a.active { border-color: var(--primary); background: var(--primary); box-shadow: 0 5px 12px rgba(19, 143, 211, .17); }
.account-nav small { border-radius: 6px; }
.account-section { min-height: 350px; }
.account-settings-form { padding: 27px; border-radius: 8px; box-shadow: 0 4px 14px rgba(35, 83, 111, .04); }
.content-section { margin-top: 36px; padding-top: 0; border-top: 0; }
.section-title { margin-bottom: 16px; align-items: center; }
.section-title > span, .section-title > a { color: var(--primary-dark); font-weight: 700; }

.table-wrap {
    border-color: #d6e3ea;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(35, 83, 111, .04);
}
th { padding: 12px 16px; color: #657e8c; background: #f0f6f8; font-weight: 800; }
td { padding: 16px; border-top-color: #e6eef2; }
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background: #fbfdfe; }
.order-list, .point-log, .answer-sheet { border-color: #d6e3ea; border-radius: 8px; box-shadow: 0 4px 15px rgba(35, 83, 111, .04); }
.order-row { padding: 20px 22px; }
.answer-row { padding: 23px 25px; }
.answer-question span { display: grid; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 6px; background: var(--primary-soft); place-items: center; }

.product-grid { gap: 20px; }
.product-card { border-color: #d5e3ea; border-radius: 8px; box-shadow: 0 4px 14px rgba(35, 83, 111, .04); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.product-card:hover { border-color: #9fc9dd; box-shadow: var(--shadow); transform: translateY(-2px); }
.product-image { background: #e5f2f7; }
.product-body { padding: 21px; }

.admin-layout {
    width: min(1500px, 100%);
    min-height: calc(100vh - 73px);
    grid-template-columns: 236px minmax(0, 1fr);
}
.admin-sidebar {
    top: 73px;
    height: calc(100vh - 73px);
    padding: 27px 17px;
    border-right-color: #d9e6ed;
    background: #fbfdfe;
}
.admin-sidebar-head { padding: 0 9px 20px; }
.admin-sidebar-head strong { color: #193c51; font-size: 17px; }
.admin-sidebar-head span { padding: 4px 8px; border-radius: 6px; }
.admin-sidebar-nav { padding-top: 15px; gap: 13px; }
.admin-nav-group { gap: 4px; }
.admin-nav-group p { margin: 7px 11px 4px; color: #8aa0ad; letter-spacing: .8px; }
.admin-nav-group a {
    position: relative;
    min-height: 41px;
    padding: 9px 11px 9px 15px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #4a6474;
}
.admin-nav-group a:hover { border-color: #e0ebf0; background: #f4f9fb; }
.admin-nav-group a.active { border-color: #cae4f1; color: var(--primary-dark); background: var(--primary-soft); }
.admin-nav-group a.active::before { position: absolute; top: 10px; bottom: 10px; left: 6px; width: 3px; border-radius: 2px; background: var(--primary); content: ""; }
.admin-workspace { background: var(--background); }
.admin-page-shell, .admin-footer { width: min(1180px, calc(100% - 64px)); }
.stat-grid { margin-bottom: 38px; gap: 14px; }
.stat-grid a {
    min-height: 148px;
    padding: 22px;
    border-color: #d5e3ea;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(35, 83, 111, .035);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.stat-grid a:hover { border-color: #9bc7dc; box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-grid strong { color: #173b50; }
.editor-form { gap: 17px; }
.editor-form section { padding: 27px 29px; border-color: #d5e3ea; border-radius: 8px; box-shadow: 0 4px 14px rgba(35, 83, 111, .035); }
.question-admin-list { gap: 11px; }
.question-admin-list article, .request-list article, .user-admin-list article, .order-admin-list article {
    border-color: #d5e3ea;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(35, 83, 111, .035);
}
.question-admin-list article:hover, .request-list article:hover, .user-admin-list article:hover, .order-admin-list article:hover { border-color: #b5d2e0; }
.filter-tabs, .time-filter-tabs { border-color: #d3e3eb; border-radius: 8px; background: #edf5f8; }
.filter-tabs a, .time-filter-tabs a { border-radius: 6px; font-weight: 700; }
.review-filter-bar { padding: 17px 18px; border-color: #d5e3ea; border-radius: 8px; box-shadow: 0 3px 12px rgba(35, 83, 111, .035); }
.review-date-fields { border-radius: 8px; }
.review-panel { border-color: #c9dfea; border-radius: 8px; box-shadow: 0 10px 28px rgba(35, 83, 111, .07); }
.review-summary { background: #eef7fb; }

.standalone-survey-body { background: #eef5f8; }
.standalone-header {
    min-height: 72px;
    border-bottom: 1px solid rgba(255,255,255,.18);
    background: #086fad;
    box-shadow: 0 7px 20px rgba(20, 70, 101, .13);
}
.standalone-header-inner { width: min(1060px, calc(100% - 48px)); min-height: 72px; }
.standalone-brand .brand-mark { background: rgba(255,255,255,.16); box-shadow: none; }
.standalone-user { border-radius: 7px; }
.standalone-page-shell { width: min(800px, calc(100% - 40px)); margin-top: 38px; }
.standalone-page-shell .survey-header {
    padding: 31px 33px 27px;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(35, 83, 111, .09);
}
.standalone-page-shell .survey-header::before { margin: -31px -33px 25px; }
.standalone-page-shell .questionnaire-form, .standalone-page-shell .form-context, .standalone-page-shell .survey-state-card { width: 100%; }
.standalone-footer { width: min(800px, calc(100% - 40px)); }
.auth-dialog, .media-dialog, .auth-dialog-panel, .media-dialog-panel { border-radius: 8px; }

@media (max-width: 980px) {
    .header-inner { width: min(100% - 32px, 1180px); gap: 14px; }
    .admin-layout { grid-template-columns: 208px minmax(0, 1fr); }
    .admin-sidebar { top: 110px; height: calc(100vh - 110px); }
    .admin-page-shell, .admin-footer { width: min(100% - 36px, 1180px); }
    .survey-action { padding-left: 18px; }
}

@media (max-width: 700px) {
    h1, .survey-header h1 { font-size: 26px; }
    html, body { width: 100%; max-width: 100%; }
    .header-inner, .page-shell, .site-footer { width: min(100% - 24px, 1180px); }
    .page-shell { padding-top: 30px; padding-bottom: 64px; }
    .header-inner { min-height: 60px; grid-template-columns: auto minmax(0, 1fr); }
    .main-nav { min-width: 0; max-width: 100%; gap: 2px; }
    .main-nav a { min-height: 35px; padding: 7px 9px; border-radius: 7px; }
    .header-account { right: 0; max-width: calc(100% - 48px); }
    .header-account > .text-link, .header-account .link-button { padding-right: 5px; padding-left: 5px; }
    .heading-with-action { align-items: stretch; }
    .heading-count { width: fit-content; align-self: flex-start; }
    .heading-with-action > .button { width: 100%; }
    .survey-item { width: 100%; min-width: 0; padding: 20px; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .survey-main, .survey-action { min-width: 0; }
    .survey-main h2 { overflow-wrap: anywhere; }
    .survey-action { padding: 15px 0 0; border-top: 1px solid #e5eef2; border-left: 0; }
    .survey-header { padding: 24px 18px 21px; }
    .survey-header::before { margin: -24px -18px 20px; }
    .question-block { padding: 20px 17px 22px; }
    .account-summary { min-height: 0; margin-top: -12px; padding: 25px 0; }
    .balance { width: 100%; padding: 14px 17px; border-top: 1px solid #c7e1ee; }
    .account-nav { display: flex; width: 100%; margin-top: 0; padding: 4px; overflow-x: auto; }
    .account-nav a { min-width: max-content; flex: 1 0 auto; padding: 8px 13px; }
    .account-settings-form { padding: 19px; }
    .account-submission-table tr { border-radius: 8px; box-shadow: 0 3px 12px rgba(35, 83, 111, .035); }
    .standalone-header { min-height: 64px; }
    .standalone-header-inner { min-height: 64px; }
    .standalone-page-shell { width: calc(100% - 24px); margin-top: 22px; }
    .standalone-page-shell .survey-header { padding: 24px 18px 21px; }
    .standalone-page-shell .survey-header::before { margin: -24px -18px 20px; }
    .admin-sidebar { top: 101px; padding: 8px 12px; background: rgba(255,255,255,.96); }
    .admin-page-shell, .admin-footer { width: min(100% - 24px, 1180px); }
    .admin-nav-group a.active::before { display: none; }
    .editor-form section { padding: 21px 18px; }
    .review-filter-bar { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Site settings and invitations */
.brand-mark img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.site-announcement { width: 100%; margin: -8px 0 24px; padding: 12px 15px; border-left: 3px solid var(--primary); color: #31566b; background: #eaf6fc; line-height: 1.7; }
.maintenance-shell { display: grid; width: min(620px, 100%); min-height: 420px; margin: 6vh auto 0; place-content: center; justify-items: center; text-align: center; }
.maintenance-body .page-shell { min-height: calc(100vh - 80px); padding-top: 24px; }
.maintenance-shell h1 { margin: 10px 0 12px; }
.maintenance-shell > p:not(.eyebrow) { max-width: 520px; margin: 0 0 24px; color: var(--muted); line-height: 1.8; }
.maintenance-mark { display: grid; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 8px; color: white; background: var(--primary); place-items: center; font-size: 24px; font-weight: 800; }

.admin-tool-section { margin: 0 0 24px; padding: 23px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; margin-bottom: 17px; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 0 0 4px; font-size: 18px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.invite-create-form { display: grid; grid-template-columns: 110px minmax(170px, 1fr) 150px 190px minmax(190px, 1fr) auto; align-items: end; gap: 12px; }
.invite-create-form label { color: var(--muted); font-size: 11px; gap: 5px; }
.invite-create-form input { min-height: 40px; font-size: 13px; }
.invite-create-form .button { min-height: 40px; }
.invite-search { margin-top: 0; grid-template-columns: minmax(260px, 1fr) auto auto; }
.invite-filter-tabs { flex-wrap: wrap; justify-content: flex-end; }
.invite-code { display: inline-block; padding: 5px 8px; border: 1px solid #cce1ec; border-radius: 5px; color: #056da9; background: #f1f9fd; font-family: Consolas, "SFMono-Regular", monospace; font-size: 13px; font-weight: 700; letter-spacing: 0; user-select: all; }
.invite-table td:first-child { min-width: 165px; }
.invite-table td:last-child { min-width: 105px; }
.invite-edit-details { display: inline-block; margin-right: 9px; vertical-align: middle; }
.invite-edit-details > summary { list-style: none; cursor: pointer; }
.invite-edit-details > summary::-webkit-details-marker { display: none; }
.invite-edit-form { display: grid; width: min(560px, 70vw); margin-top: 10px; padding: 14px; border: 1px solid #cfe0e8; border-radius: 7px; background: #f7fbfd; grid-template-columns: 120px 120px minmax(180px, 1fr); align-items: end; gap: 10px; }
.invite-edit-form label { color: var(--muted); font-size: 11px; gap: 4px; }
.invite-edit-form label:last-of-type { grid-column: 1 / -1; }
.invite-edit-form input, .invite-edit-form select { min-height: 37px; padding: 7px 9px; font-size: 13px; }
.status-expired, .status-exhausted { border: 1px solid #d5dde2; color: #687985; background: #eef2f4; }

.settings-form { width: min(920px, 100%); }
.settings-section-intro { margin: -3px 0 15px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.settings-switches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.settings-switches .check-setting { width: 100%; min-height: 94px; padding: 15px; border: 1px solid #d7e5ec; border-radius: 7px; background: #f8fbfd; align-items: start; }
.settings-switches .check-setting:has(input:checked) { border-color: #9ccbe1; background: #eef8fc; }
.settings-switches .check-setting input { margin-top: 3px; }
.settings-switches .check-setting small { margin-top: 5px; line-height: 1.5; }
.site-icon-setting { display: flex; min-height: 76px; padding-top: 4px; align-items: center; gap: 14px; }
.site-icon-setting img { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 8px; background: white; object-fit: cover; }
.site-icon-setting > div { display: grid; gap: 7px; }
.plain-check { display: flex; color: var(--muted); align-items: center; gap: 7px; font-size: 12px; }
.plain-check input { width: 16px; height: 16px; }
.image-file-picker { position: relative; display: grid; min-height: 72px; padding: 10px 12px; border: 1px dashed #9ec9dc; border-radius: 7px; color: #31566b; background: #f7fbfd; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; overflow: hidden; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.image-file-picker:hover { border-color: var(--primary); background: #f0f9fd; }
.image-file-picker:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19, 143, 211, .12); }
.image-file-picker > input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.image-file-picker-visual { display: grid; width: 44px; height: 44px; border: 1px solid #c5e0ec; border-radius: 7px; color: var(--primary-dark); background: white; place-items: center; overflow: hidden; }
.image-file-picker-icon { font-size: 23px; font-weight: 700; line-height: 1; }
.image-file-picker-preview { display: none; width: 100%; height: 100%; object-fit: cover; }
.image-file-picker.has-file { border-style: solid; border-color: #8fc7de; background: #f2fafe; }
.image-file-picker.has-file .image-file-picker-icon { display: none; }
.image-file-picker.has-file .image-file-picker-preview { display: block; }
.image-file-picker-copy { display: grid; min-width: 0; gap: 3px; }
.image-file-picker-copy strong { color: #19465f; font-size: 13px; }
.image-file-picker-copy small { display: block; min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 500; }

input[type="date"], input[type="datetime-local"] { min-height: 44px; padding: 8px 9px 8px 12px; color: #24485d; background: #fbfdfe; color-scheme: light; cursor: pointer; font-variant-numeric: tabular-nums; }
input[type="date"]:hover, input[type="datetime-local"]:hover { border-color: #8fbfd5; background: #f7fbfd; }
input[type="date"]::-webkit-datetime-edit, input[type="datetime-local"]::-webkit-datetime-edit { min-width: 0; padding: 1px 2px; }
input[type="date"]::-webkit-datetime-edit-fields-wrapper, input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper { display: flex; min-width: 0; align-items: center; }
input[type="date"]::-webkit-datetime-edit-text, input[type="datetime-local"]::-webkit-datetime-edit-text { padding: 0 2px; color: #8aa0ad; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="datetime-local"]::-webkit-calendar-picker-indicator { width: 20px; height: 20px; margin-left: 7px; padding: 6px; border-radius: 6px; background-color: #e8f5fb; cursor: pointer; opacity: .82; transition: background-color .16s ease, opacity .16s ease; }
input[type="date"]::-webkit-calendar-picker-indicator:hover, input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover { background-color: #d6edf8; opacity: 1; }
.invite-code-form { grid-template-columns: 1fr; }
.verification-email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.verification-email-row .button { min-width: 112px; white-space: nowrap; }

@media (max-width: 1100px) {
    .invite-create-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .invite-create-form .invite-remark-field { grid-column: span 2; }
    .settings-switches { grid-template-columns: 1fr; }
    .settings-switches .check-setting { min-height: 0; }
}

@media (max-width: 700px) {
    .site-announcement { margin-top: 0; }
    .maintenance-shell { min-height: 340px; margin-top: 0; }
    .invite-filter-tabs { justify-content: flex-start; }
    .invite-create-form, .invite-search, .invite-code-form, .verification-email-row { grid-template-columns: 1fr; }
    .invite-create-form .invite-remark-field { grid-column: auto; }
    .invite-create-form .button { width: 100%; }
    .invite-edit-form { width: 100%; min-width: 250px; grid-template-columns: 1fr; }
    .invite-edit-form label:last-of-type { grid-column: auto; }
}
