:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef3ff;
    --text: #14213d;
    --muted: #64708b;
    --line: #dfe5f0;
    --primary: #3157d5;
    --primary-dark: #203f9f;
    --accent: #12a594;
    --danger: #b42318;
    --danger-bg: #fff1f0;
    --success: #067647;
    --success-bg: #ecfdf3;
    --shadow: 0 22px 60px rgba(32, 51, 96, .10);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(223, 229, 240, .85);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), #6a87ed);
    color: #fff;
    box-shadow: 0 9px 24px rgba(49, 87, 213, .25);
}
.main-nav { display: flex; align-items: center; gap: 22px; color: #34415d; font-weight: 650; }
.main-nav form { margin: 0; }
.nav-button { padding: 0; border: 0; background: transparent; color: inherit; font-weight: inherit; }
.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    border-radius: 14px;
    padding: 0 22px;
    background: var(--primary);
    color: #fff;
    font-weight: 750;
    box-shadow: 0 10px 25px rgba(49, 87, 213, .18);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); background: var(--primary-dark); box-shadow: 0 14px 32px rgba(49, 87, 213, .24); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.button-small { min-height: 40px; padding: 0 16px; border-radius: 12px; }
.button-secondary { background: #fff; color: var(--primary); box-shadow: none; }
.button-secondary:hover { background: var(--surface-soft); color: var(--primary-dark); }
.button-full { width: 100%; }
.hero { overflow: hidden; padding: 88px 0 76px; background: radial-gradient(circle at 78% 18%, #dce7ff 0, rgba(220,231,255,0) 30%), linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
.eyebrow { display: inline-block; color: var(--primary); font-size: 13px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(42px, 6vw, 72px); line-height: 1.03; letter-spacing: -.055em; }
h2 { margin-bottom: 14px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.04em; }
h3 { margin-bottom: 10px; font-size: 21px; letter-spacing: -.02em; }
.hero .eyebrow { margin-bottom: 20px; }
.hero-text { max-width: 680px; margin-bottom: 32px; color: var(--muted); font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px; color: var(--muted); font-size: 14px; font-weight: 650; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--accent); font-weight: 900; }
.hero-panel { position: relative; border: 1px solid rgba(255,255,255,.8); border-radius: 30px; padding: 26px; background: rgba(255,255,255,.78); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.metric-card { border-radius: 20px; padding: 26px; background: linear-gradient(135deg, #172858, #3157d5); color: #fff; }
.metric-label { display: block; margin-bottom: 8px; color: #b9c9ff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.metric-card strong { display: block; margin-bottom: 8px; font-size: 25px; }
.metric-card p { margin-bottom: 0; color: #dfe7ff; }
.flow-list { display: grid; gap: 10px; margin-top: 18px; }
.flow-list div { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 15px; padding: 12px 14px; background: #fff; }
.flow-list span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--surface-soft); color: var(--primary); font-size: 12px; font-weight: 850; }
.flow-list p { margin: 0; font-weight: 700; }
.section { padding: 82px 0; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); box-shadow: 0 8px 28px rgba(32, 51, 96, .05); }
.feature-card p { margin-bottom: 0; color: var(--muted); }
.feature-icon { display: grid; width: 44px; height: 44px; margin-bottom: 22px; place-items: center; border-radius: 14px; background: var(--surface-soft); color: var(--primary); font-weight: 850; }
.auth-section { min-height: calc(100vh - 145px); display: grid; place-items: center; padding: 54px 20px; background: radial-gradient(circle at 50% 0, #e5ecff, transparent 36%); }
.auth-card { width: min(100%, 520px); border: 1px solid var(--line); border-radius: 28px; padding: 36px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card-wide { width: min(100%, 680px); }
.auth-heading { margin-bottom: 26px; }
.auth-heading .eyebrow { margin-bottom: 10px; }
.auth-heading h1 { margin-bottom: 10px; font-size: 39px; }
.auth-heading p { margin-bottom: 0; color: var(--muted); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span { font-size: 14px; font-weight: 750; }
.field input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #cfd7e6;
    border-radius: 13px;
    padding: 0 15px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(49,87,213,.12); }
.field input:disabled { background: #f0f2f6; cursor: not-allowed; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 22px; color: var(--muted); font-size: 14px; }
.checkbox-row input { margin-top: 4px; accent-color: var(--primary); }
.auth-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; color: var(--primary); font-size: 14px; font-weight: 700; }
.auth-links-center { justify-content: center; }
.alert { margin-top: 18px; border: 1px solid transparent; border-radius: 14px; padding: 13px 16px; }
.auth-card .alert { margin: 0 0 20px; }
.alert-error { border-color: #f7c9c5; background: var(--danger-bg); color: var(--danger); }
.alert-success { border-color: #b7ebcd; background: var(--success-bg); color: var(--success); }
.lock-message { min-height: 23px; margin: 14px 0 0; color: var(--danger); text-align: center; font-size: 14px; font-weight: 700; }
.dashboard-section { min-height: calc(100vh - 145px); padding: 58px 0 80px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.dashboard-heading .eyebrow { margin-bottom: 10px; }
.dashboard-heading h1 { margin-bottom: 8px; font-size: clamp(38px, 5vw, 58px); }
.dashboard-heading p { margin-bottom: 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.stats-grid-four { grid-template-columns: repeat(4, 1fr); }
.stat-card { border: 1px solid var(--line); border-radius: 20px; padding: 23px; background: var(--surface); box-shadow: 0 8px 26px rgba(32, 51, 96, .05); }
.stat-card > span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.stat-card strong { display: block; margin-bottom: 5px; font-size: 27px; letter-spacing: -.025em; }
.stat-card small { color: var(--muted); }
.stat-card-primary { border-color: transparent; background: linear-gradient(135deg, #1b306b, var(--primary)); color: #fff; }
.stat-card-primary > span, .stat-card-primary small { color: #c9d5ff; }
.panel-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; background: var(--surface); }
.panel-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 20px; }
.panel-heading h2 { margin: 0; font-size: 24px; }
.panel-heading span { border-radius: 999px; padding: 5px 10px; background: var(--surface-soft); color: var(--primary); font-size: 12px; font-weight: 800; }
.empty-state { border: 1px dashed #c8d3e6; border-radius: 17px; padding: 30px; text-align: center; background: #fafbfe; }
.empty-state strong { display: block; margin-bottom: 8px; font-size: 18px; }
.empty-state p { margin-bottom: 0; color: var(--muted); }
.security-list { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; color: #3b4863; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; }
.status-ok { background: var(--accent); box-shadow: 0 0 0 5px rgba(18,165,148,.10); }
.admin-surface { background: linear-gradient(180deg, #eff3fb, var(--bg)); }
.admin-modules { display: grid; gap: 13px; }
.admin-module { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 18px; padding: 19px 22px; background: #fff; }
.admin-module > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #edf2ff; color: var(--primary); font-weight: 850; }
.admin-module h2 { margin: 0 0 3px; font-size: 19px; }
.admin-module p { margin: 0; color: var(--muted); }
.admin-module b { border-radius: 999px; padding: 6px 11px; background: #eef3f8; color: #53617b; font-size: 12px; }
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); }
.footer-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; }

@media (max-width: 920px) {
    .hero-grid, .panel-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 58px; }
    .feature-grid, .stats-grid, .stats-grid-four { grid-template-columns: repeat(2, 1fr); }
    .hero-panel { max-width: 650px; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 26px, 1160px); }
    .header-inner { min-height: 64px; }
    .main-nav { gap: 12px; font-size: 14px; }
    .main-nav a:not(.button), .nav-button { display: none; }
    h1 { font-size: 43px; }
    .hero { padding: 48px 0 54px; }
    .hero-grid { gap: 36px; }
    .hero-text { font-size: 17px; }
    .button { width: 100%; }
    .feature-grid, .stats-grid, .stats-grid-four, .field-grid { grid-template-columns: 1fr; }
    .auth-section { padding: 28px 13px; }
    .auth-card { padding: 25px 20px; border-radius: 21px; }
    .auth-heading h1 { font-size: 33px; }
    .auth-links, .dashboard-heading, .footer-inner { align-items: stretch; flex-direction: column; }
    .dashboard-heading .button { width: 100%; }
    .admin-module { grid-template-columns: auto 1fr; }
    .admin-module b { grid-column: 2; justify-self: start; }
    .footer-inner { justify-content: center; padding: 20px 0; text-align: center; }
}

/* Multilingual navigation */
.language-switcher { position: relative; flex: 0 0 auto; }
.language-switcher-button {
    display: inline-flex;
    min-width: 58px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}
.language-switcher-button:hover,
.language-switcher-button:focus-visible { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(49,87,213,.10); }
.language-chevron { transform: translateY(-1px); color: var(--muted); font-size: 14px; }
.language-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 9px);
    right: 0;
    width: 210px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 7px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(31, 45, 80, .16);
}
.language-option { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 8px; border-radius: 11px; padding: 10px; color: var(--text); text-decoration: none; }
.language-option:hover, .language-option:focus-visible { background: var(--surface-soft); outline: none; }
.language-option.is-active { background: #eaf0ff; color: var(--primary); }
.language-option > span { color: var(--muted); font-size: 12px; font-weight: 850; }
.language-option strong { font-size: 14px; }

@media (max-width: 640px) {
    .main-nav { margin-left: auto; }
    .language-menu { right: -6px; width: 190px; }
    .language-switcher-button { min-width: 52px; }
}

/* Content management and public task catalog */
.container-narrow { width: min(980px, calc(100% - 40px)); }
.admin-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 16px; padding: 7px; background: rgba(255,255,255,.75); }
.admin-subnav a { border-radius: 11px; padding: 9px 14px; color: var(--muted); font-size: 14px; font-weight: 750; }
.admin-subnav a:hover, .admin-subnav a.is-active { background: var(--surface-soft); color: var(--primary); }
.content-stats .stat-card { transition: transform .18s ease, border-color .18s ease; }
.content-stats .stat-card:hover { transform: translateY(-2px); border-color: #b9c7ee; }
.data-card, .form-card, .publish-card, .danger-zone { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 26px rgba(32,51,96,.05); }
.data-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 16px 18px; text-align: left; vertical-align: middle; }
.data-table th { background: #f8faff; color: var(--muted); font-size: 12px; letter-spacing: .055em; text-transform: uppercase; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong { display: block; }
.data-table td small { display: block; margin-top: 4px; color: var(--muted); }
.text-right { text-align: right !important; }
.actions-cell { white-space: nowrap; }
.actions-cell form { display: inline; }
.button-link { border: 0; padding: 4px 7px; background: transparent; color: var(--primary); font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.button-link:hover { text-decoration: underline; }
.button-link-danger { color: var(--danger); }
.muted { color: var(--muted); font-size: 14px; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; background: #eef2f7; color: #526078; font-size: 12px; font-weight: 800; }
.status-active, .status-published { background: #e8f8ef; color: #087044; }
.status-draft { background: #f1f3f7; color: #58647b; }
.status-review { background: #fff6dc; color: #875c00; }
.status-archived { background: #f4eefa; color: #734394; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--line); padding: 15px 18px; color: var(--muted); font-size: 14px; }
.pager a { color: var(--primary); font-weight: 750; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 750; }
.filter-chip.is-active, .filter-chip:hover { border-color: #b9c7ee; background: var(--surface-soft); color: var(--primary); }
.admin-form { display: grid; gap: 18px; }
.form-card { padding: 24px; }
.form-card > h2 { margin-bottom: 20px; font-size: 24px; }
.translation-card { border-left: 4px solid #c9d5ff; }
.translation-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.translation-heading h2 { margin: 0; font-size: 24px; }
.translation-heading span { border-radius: 999px; padding: 5px 9px; background: var(--surface-soft); color: var(--primary); font-size: 12px; font-weight: 850; }
.field-span-2 { grid-column: 1 / -1; }
.field select, .field textarea { width: 100%; border: 1px solid #cfd7e6; border-radius: 13px; padding: 13px 15px; background: #fff; color: var(--text); outline: none; transition: border .15s ease, box-shadow .15s ease; resize: vertical; }
.field select { min-height: 52px; }
.field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(49,87,213,.12); }
.field small { color: var(--muted); font-size: 12px; }
.field b { color: var(--danger); }
.content-editor { min-height: 360px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.6; }
.check-field { display: inline-flex; align-items: center; gap: 9px; color: #34415d; font-size: 14px; font-weight: 700; }
.check-field input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.check-field.compact { font-size: 13px; }
.check-stack { display: grid; align-content: center; gap: 13px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }
.danger-zone, .publish-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 22px 24px; }
.danger-zone { border-color: #f1c8c5; background: #fffafa; }
.danger-zone p, .publish-card p { margin: 5px 0 0; color: var(--muted); }
.button-danger { border: 1px solid var(--danger); border-radius: 13px; padding: 11px 17px; background: var(--danger); color: #fff; font-weight: 750; }
.survey-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.survey-summary > div { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; }
.survey-summary span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.question-list-card { margin-top: 22px; }
.question-list-card .panel-heading p { margin: 4px 0 0; color: var(--muted); }
.question-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 17px 0; }
.question-row > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--surface-soft); color: var(--primary); font-size: 12px; font-weight: 850; }
.question-row h3 { margin: 0 0 4px; font-size: 17px; }
.question-row p { margin: 0; color: var(--muted); font-size: 13px; }
.question-actions { display: flex; align-items: center; gap: 3px; }
.option-list { display: grid; gap: 14px; }
.option-card { border: 1px solid var(--line); border-radius: 17px; padding: 17px; background: #fafbfe; }
.option-card-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.option-card-heading strong { margin-right: auto; }
.option-language-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.option-language-grid .field { margin: 0; }
.option-language-grid textarea { min-height: 78px; }
.task-hero { padding: 64px 0 48px; background: radial-gradient(circle at 80% 0, #dce7ff, transparent 34%), #fff; }
.task-hero h1 { margin: 10px 0 14px; font-size: clamp(42px, 6vw, 66px); }
.task-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 18px; }
.task-section { padding-top: 42px; }
.task-layout { display: grid; grid-template-columns: 250px 1fr; align-items: start; gap: 26px; }
.category-filter { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: 19px; padding: 18px; background: #fff; }
.category-filter h2 { margin-bottom: 12px; font-size: 18px; }
.category-filter a { display: flex; justify-content: space-between; gap: 12px; border-radius: 11px; padding: 10px 11px; color: var(--muted); font-size: 14px; }
.category-filter a:hover, .category-filter a.is-active { background: var(--surface-soft); color: var(--primary); }
.category-filter b { font-size: 12px; }
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.task-card { display: flex; flex-direction: column; min-height: 290px; border: 1px solid var(--line); border-radius: 21px; padding: 22px; background: #fff; box-shadow: 0 8px 26px rgba(32,51,96,.05); }
.task-card-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 17px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.task-card-meta b { color: var(--success); }
.task-card h2 { margin-bottom: 12px; font-size: 25px; }
.task-card h2 a:hover { color: var(--primary); }
.task-card p { flex: 1; color: var(--muted); }
.task-card-footer { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 13px; }
.task-card-footer strong { color: var(--primary); font-size: 17px; }
.task-empty { grid-column: 1 / -1; }
.task-pager { margin-top: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.article-page { padding-bottom: 80px; }
.article-header { padding: 58px 0 42px; background: linear-gradient(180deg, #fff, #f3f6fc); }
.article-container { width: min(820px, calc(100% - 40px)); }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--primary); font-weight: 750; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 16px; color: var(--muted); font-size: 13px; font-weight: 750; text-transform: uppercase; }
.article-header h1 { font-size: clamp(40px, 6vw, 68px); }
.article-header p { color: var(--muted); font-size: 19px; }
.article-reward { display: inline-flex; align-items: center; gap: 12px; border: 1px solid #c8d5f6; border-radius: 14px; padding: 10px 14px; background: #fff; }
.article-reward span { color: var(--muted); font-size: 13px; }
.article-reward strong { color: var(--primary); }
.article-body { padding-top: 42px; color: #263550; font-size: 18px; line-height: 1.85; white-space: normal; }
.article-survey-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 46px; border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: #fff; box-shadow: var(--shadow); }
.article-survey-card h2 { margin: 8px 0; font-size: 28px; }
.article-survey-card p { margin: 0; color: var(--muted); }

@media (max-width: 980px) {
    .option-language-grid { grid-template-columns: repeat(2, 1fr); }
    .task-layout { grid-template-columns: 1fr; }
    .category-filter { position: static; }
    .survey-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .container-narrow, .article-container { width: min(100% - 26px, 980px); }
    .task-grid { grid-template-columns: 1fr; }
    .survey-summary { grid-template-columns: 1fr; }
    .question-row { grid-template-columns: auto 1fr; }
    .question-actions { grid-column: 2; justify-content: flex-start; }
    .option-language-grid { grid-template-columns: 1fr; }
    .option-card-heading { flex-wrap: wrap; }
    .danger-zone, .publish-card, .article-survey-card { align-items: stretch; flex-direction: column; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .button { width: 100%; }
}
.dashboard-task { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 15px 2px; }
.dashboard-task:hover strong { color: var(--primary); }
.dashboard-task strong, .dashboard-task small { display: block; }
.dashboard-task small { margin-top: 3px; color: var(--muted); }
.dashboard-task > span { color: var(--primary); font-weight: 800; white-space: nowrap; }
.panel-link { display: inline-block; margin-top: 16px; color: var(--primary); font-weight: 750; }

/* Finance and referral module v0.5 */
.referral-invite-notice { margin-bottom: 18px; border: 1px solid #c8d5f6; border-radius: 14px; padding: 13px 15px; background: #f3f6ff; color: var(--primary); }
.referral-grid, .finance-grid { margin-bottom: 24px; }
.copy-field { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.copy-field input { min-width: 0; }
.referral-code { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.referral-code span { color: var(--muted); }
.referral-code strong { letter-spacing: .12em; color: var(--primary); }
.steps-list { display: grid; gap: 15px; margin: 18px 0; padding-left: 25px; }
.steps-list li { padding-left: 5px; color: #263550; }
.muted-note { color: var(--muted); font-size: 14px; }
.table-panel { margin-top: 24px; overflow: hidden; }
.responsive-table { overflow-x: auto; }
.responsive-table table { width: 100%; border-collapse: collapse; }
.responsive-table th, .responsive-table td { border-bottom: 1px solid var(--line); padding: 14px 12px; text-align: left; vertical-align: top; }
.responsive-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.responsive-table td small { display: block; margin-top: 4px; color: var(--muted); }
.status-badge { display: inline-flex; border-radius: 999px; padding: 6px 10px; background: #eef1f7; color: #52617d; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.status-completed, .status-paid, .status-approved { background: #e5f7ee; color: #147a4a; }
.status-pending { background: #fff5dc; color: #966400; }
.status-rejected, .status-cancelled { background: #feecec; color: #a33232; }
.stack-form { display: grid; gap: 15px; margin-top: 18px; }
.stack-form .field { margin: 0; }
.money-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.money-field b { min-width: 48px; color: var(--muted); }
.form-warning { display: block; color: var(--danger); }
.compact-list { margin-top: 22px; }
.compact-list > div { display: flex; align-items: center; gap: 9px; margin-top: 9px; color: var(--muted); font-size: 13px; }
.money-positive { color: var(--success); font-weight: 750; }
.money-negative { color: var(--danger); font-weight: 750; }
.money-neutral { color: var(--muted); }
.danger-link { color: var(--danger); }
.settings-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.settings-actions { grid-column: 1 / -1; }
.method-fieldset { display: grid; gap: 8px; margin-top: 18px; border: 1px solid var(--line); border-radius: 15px; padding: 15px; }
.method-fieldset legend { padding: 0 8px; color: var(--muted); font-weight: 750; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.filter-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; background: #fff; color: var(--muted); font-weight: 750; }
.filter-tabs a.active, .filter-tabs a:hover { border-color: var(--primary); color: var(--primary); background: var(--surface-soft); }
.withdrawal-admin-list { display: grid; gap: 18px; }
.withdrawal-admin-card { margin: 0; }
.withdrawal-card-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.withdrawal-card-head h2 { margin: 9px 0 4px; }
.withdrawal-user { text-align: right; }
.withdrawal-user span, .withdrawal-user small { display: block; margin-top: 4px; color: var(--muted); }
.withdrawal-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 0; }
.withdrawal-details-grid > div { border: 1px solid var(--line); border-radius: 13px; padding: 13px; }
.withdrawal-details-grid span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.withdrawal-details-grid .full-width { grid-column: 1 / -1; }
.withdrawal-details-grid pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.withdrawal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.withdrawal-actions form { display: grid; gap: 10px; }
.withdrawal-actions .field { margin: 0; }
.admin-content-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.admin-content-nav a { border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; background: #fff; color: var(--muted); font-weight: 750; }
.admin-content-nav a.active, .admin-content-nav a:hover { color: var(--primary); border-color: #c8d5f6; background: var(--surface-soft); }

@media (max-width: 900px) {
    .settings-layout { grid-template-columns: 1fr; }
    .withdrawal-actions { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .copy-field { grid-template-columns: 1fr; }
    .withdrawal-card-head { flex-direction: column; }
    .withdrawal-user { text-align: left; }
    .withdrawal-details-grid { grid-template-columns: 1fr; }
    .withdrawal-details-grid .full-width { grid-column: auto; }
}
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }


/* Operations, moderation and anti-fraud center */
.operations-dashboard-stats { margin-top: 18px; }
.operations-filter { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.operations-filter .field { min-width: 180px; margin: 0; }
.operations-filter .operations-search { flex: 1 1 320px; }
.operations-filter .button { width: auto; }
.operations-table { min-width: 980px; }
.status-suspended { background: #fff0ed; color: #a13722; }
.status-closed { background: #eceff4; color: #4b5568; }
.risk-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; background: #eef2f7; color: #526078; font-size: 12px; font-weight: 850; }
.risk-low, .risk-info { background: #eaf7ef; color: #16724a; }
.risk-medium, .risk-warning { background: #fff6dc; color: #875c00; }
.risk-high { background: #fff0ed; color: #a13722; }
.risk-critical { background: #3a1720; color: #fff; }
.operations-user-heading { align-items: center; }
.operations-heading-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.operations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.operations-grid-wide { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.operations-section { margin-top: 24px; }
.detail-list { display: grid; gap: 0; margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 180px 1fr; gap: 18px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 13px; font-weight: 750; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.note-list { display: grid; gap: 10px; margin-top: 20px; }
.internal-note { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fafbfe; }
.internal-note.is-pinned { border-color: #c6d2f5; background: #f2f5ff; }
.internal-note strong { display: inline-block; margin-right: 8px; }
.internal-note small { color: var(--muted); }
.internal-note p { margin: 8px 0 0; white-space: pre-wrap; }
.panel-heading { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 22px; }
.risk-case-list { display: grid; gap: 14px; }
.risk-case-card { border: 1px solid var(--line); border-left-width: 5px; border-radius: 18px; padding: 20px; background: #fff; box-shadow: 0 8px 24px rgba(32,51,96,.04); }
.risk-case-card.severity-warning { border-left-color: #e5a800; }
.risk-case-card.severity-high { border-left-color: #d65b42; }
.risk-case-card.severity-critical { border-left-color: #681d31; }
.risk-case-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.risk-case-main h2 { margin: 9px 0 3px; font-size: 20px; }
.risk-case-main p { margin: 0; color: var(--muted); }
.risk-case-meta { display: grid; justify-items: end; gap: 5px; color: var(--muted); font-size: 13px; }
.risk-case-card details { margin-top: 14px; }
.risk-case-card summary { cursor: pointer; color: var(--primary); font-weight: 750; }
.risk-case-card pre { overflow: auto; max-height: 260px; border-radius: 12px; padding: 14px; background: #101827; color: #d9e3f5; font-size: 12px; }
.risk-case-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.risk-case-actions form { margin: 0; }
.risk-resolution-form { display: flex; align-items: center; gap: 6px; }
.risk-resolution-form input { min-width: 220px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
@media (max-width: 820px) {
    .operations-grid, .operations-grid-wide { grid-template-columns: 1fr; }
    .detail-list > div { grid-template-columns: 1fr; gap: 4px; }
    .risk-case-main { flex-direction: column; }
    .risk-case-meta { justify-items: start; }
    .risk-resolution-form { width: 100%; align-items: stretch; flex-direction: column; }
    .risk-resolution-form input { width: 100%; min-width: 0; }
}


/* Advertiser and campaign workspace v0.7 */
.narrow-container { max-width: 920px; }
.campaign-card-grid { display: grid; gap: 18px; }
.campaign-card { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 28px; align-items: center; }
.campaign-card h2 { margin: 12px 0 8px; }
.campaign-card p { margin: 0; color: var(--muted); }
.campaign-progress { display: grid; gap: 8px; }
.campaign-progress progress { width: 100%; height: 12px; accent-color: var(--primary); }
.campaign-progress span, .campaign-progress strong { color: var(--muted); font-size: 13px; }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 18px 0; }
.translation-stack { display: grid; gap: 18px; margin-top: 18px; }
.translation-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.translation-card legend { padding: 0 8px; color: var(--primary); font-weight: 850; }
.status-new { background: #eef1f7; color: #52617d; }
.status-pending_review { background: #fff5dc; color: #966400; }
.status-active { background: #e5f7ee; color: #147a4a; }
.status-paused { background: #eef1f7; color: #52617d; }
@media (max-width: 820px) { .campaign-card { grid-template-columns: 1fr; } }


/* Pre-survey advertisement gate v0.7.1 */
.pre-survey-gate { width: min(920px, calc(100% - 32px)); margin: 48px auto; padding: 30px; }
.pre-survey-gate-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; }
.pre-survey-gate-header h1 { margin: 8px 0 7px; font-size: clamp(30px, 4vw, 44px); }
.pre-survey-gate-header p { margin: 0; color: var(--muted); }
.pre-survey-countdown { min-width: 150px; border: 1px solid #cbd6f7; border-radius: 18px; padding: 14px 18px; background: var(--surface-soft); text-align: center; }
.pre-survey-countdown span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.pre-survey-countdown strong { display: block; margin-top: 5px; color: var(--primary); font-size: 34px; font-variant-numeric: tabular-nums; }
.pre-survey-ad-stage { position: relative; display: grid; min-height: 300px; place-items: center; overflow: hidden; margin: 28px 0 20px; border: 1px solid #cad5ee; border-radius: 24px; padding: 38px; background: radial-gradient(circle at 80% 10%, rgba(49,87,213,.22), transparent 34%), linear-gradient(135deg, #101b38, #233c83); color: #fff; }
.pre-survey-ad-stage::after { content: ''; position: absolute; inset: auto -70px -90px auto; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }
.pre-survey-ad-label { position: absolute; top: 14px; right: 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 10px; background: rgba(10,19,43,.36); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.pre-survey-ad-content { position: relative; z-index: 1; max-width: 650px; text-align: center; }
.pre-survey-ad-brand { display: inline-block; margin-bottom: 14px; color: #cdd8ff; font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pre-survey-ad-content h2 { margin: 0 0 12px; color: #fff; font-size: clamp(28px, 5vw, 48px); line-height: 1.08; }
.pre-survey-ad-content p { margin: 0 auto; color: #e1e8ff; font-size: 17px; }
.pre-survey-ad-content strong { display: inline-flex; margin-top: 22px; border-radius: 12px; padding: 11px 17px; background: #fff; color: #203f9f; }
.pre-survey-ad-placeholder { opacity: .96; }
.pre-survey-progress-block { display: grid; gap: 9px; }
.pre-survey-progress-block progress { width: 100%; height: 14px; accent-color: var(--primary); }
.pre-survey-progress-block p { margin: 0; color: var(--muted); text-align: center; }
.pre-survey-gate form { display: flex; justify-content: center; margin-top: 20px; }
.pre-survey-gate form .button { min-width: 210px; }
@media (max-width: 700px) {
    .pre-survey-gate { margin: 22px auto; padding: 20px; }
    .pre-survey-gate-header { flex-direction: column; }
    .pre-survey-countdown { width: 100%; }
    .pre-survey-ad-stage { min-height: 250px; padding: 30px 20px; }
}

/* Optional survey timer and campaign creative studio v0.8 */
.optional-time-limit { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface-soft); }
.optional-time-limit .field-help { margin: 0; color: var(--muted); font-size: 14px; }
.optional-time-limit [data-time-limit-field] { max-width: 360px; }
.creative-editor .section-heading { margin-bottom: 20px; }
.creative-preview-card { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, .7fr); gap: 22px; align-items: center; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--surface-soft); }
.creative-preview-media, .creative-display { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #0d1730; }
.creative-preview-media img, .creative-preview-media video, .creative-display img, .creative-display video { display: block; width: 100%; max-height: 440px; object-fit: contain; background: #0d1730; }
.creative-preview-meta { display: grid; gap: 10px; }
.creative-preview-meta span { color: var(--muted); }
.creative-file-details code { overflow-wrap: anywhere; font-size: 12px; }
.pre-survey-ad-stage.has-media-creative { position: relative; padding: 0; background: #081126; }
.pre-survey-media-link { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.pre-survey-media-link img, .pre-survey-media-link video { width: 100%; height: 100%; object-fit: cover; }
.pre-survey-ad-content.creative-overlay { align-self: end; width: min(760px, calc(100% - 36px)); max-width: none; margin: 160px 18px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; padding: 20px; background: linear-gradient(180deg, rgba(8,17,38,.35), rgba(8,17,38,.9)); backdrop-filter: blur(7px); }
.pre-survey-ad-content.creative-overlay h2 { font-size: clamp(24px, 4vw, 38px); }
@media (max-width: 760px) {
    .creative-preview-card { grid-template-columns: 1fr; }
    .pre-survey-ad-content.creative-overlay { margin-top: 120px; }
}

/* Campaign analytics and privacy-safe reporting v0.9 */
.analytics-heading { align-items: center; }
.analytics-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding: 18px 22px; }
.analytics-toolbar p { margin: 5px 0 0; color: var(--muted); }
.analytics-toolbar form { flex: 0 0 auto; margin: 0; }
.analytics-summary-grid { margin-bottom: 22px; }
.analytics-summary-grid small { display: block; margin-top: 7px; color: var(--muted); font-weight: 750; }
.analytics-grid { align-items: start; }
.analytics-funnel-panel { grid-column: span 1; }
.analytics-funnel-row, .analytics-option-row { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(180px, 1.5fr) 64px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.analytics-funnel-row:last-child, .analytics-option-row:last-child { border-bottom: 0; }
.analytics-funnel-label, .analytics-option-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.analytics-funnel-label span, .analytics-option-label span { color: #263550; }
.analytics-funnel-row small, .analytics-option-row small { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.analytics-bar-track { overflow: hidden; height: 10px; border-radius: 999px; background: #edf1f8; }
.analytics-bar-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #7f9af1); }
.analytics-daily-panel, .analytics-answers-panel, .analytics-demographics-panel { margin-top: 24px; }
.analytics-question { padding: 22px; border-top: 1px solid var(--line); }
.analytics-question:first-of-type { border-top: 0; }
.analytics-question-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.analytics-question-heading span { color: var(--primary); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.analytics-question-heading h3 { margin: 5px 0 0; font-size: 19px; }
.analytics-question-heading > strong { color: var(--muted); white-space: nowrap; }
.analytics-demographic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 22px; }
.analytics-demographic-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface-soft); }
.analytics-demographic-card h3 { margin: 0 0 12px; font-size: 16px; }
.analytics-demographic-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.analytics-demographic-row:last-of-type { border-bottom: 0; }
.analytics-demographic-row span { color: var(--muted); }
.analytics-demographic-row strong { text-align: right; font-size: 13px; }
@media (max-width: 980px) {
    .analytics-demographic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .analytics-toolbar { align-items: stretch; flex-direction: column; }
    .analytics-toolbar .button { width: 100%; }
    .analytics-funnel-row, .analytics-option-row { grid-template-columns: 1fr 56px; }
    .analytics-bar-track { grid-column: 1 / -1; grid-row: 2; }
    .analytics-question-heading { flex-direction: column; }
    .analytics-demographic-grid { grid-template-columns: 1fr; padding: 16px; }
}

/* Admedia 0.10 — production health center */
.system-health-page { padding-bottom: 4rem; }
.system-health-heading { align-items: flex-end; gap: 1.5rem; }
.health-overview {
    display: grid;
    grid-template-columns: 180px minmax(260px, 1fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    align-items: center;
    margin: 1.5rem 0 2rem;
    padding: 1.5rem;
    border: 1px solid #dce4f2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(26, 47, 92, .08);
}
.health-overview-pass { border-top: 4px solid #14875b; }
.health-overview-warning { border-top: 4px solid #d18800; }
.health-overview-fail { border-top: 4px solid #c43b47; }
.health-score { display: flex; align-items: baseline; gap: .25rem; padding: 1rem; border-radius: 18px; background: #f5f8ff; }
.health-score span { display: block; width: 100%; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #5d6b86; }
.health-score strong { font-size: 3rem; line-height: 1; color: #12213f; }
.health-score small { color: #64708a; }
.health-overview-copy p { margin: .75rem 0 .35rem; }
.health-overview-copy small { color: #6b7690; }
.health-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.health-summary-card { padding: .9rem; border-radius: 14px; background: #f6f8fc; border: 1px solid #e4e9f2; }
.health-summary-card span { display: block; font-size: .78rem; color: #66728a; }
.health-summary-card strong { display: block; margin-top: .25rem; font-size: 1.65rem; }
.health-summary-pass strong { color: #14875b; }
.health-summary-warning strong { color: #a96d00; }
.health-summary-fail strong { color: #b52d3a; }
.health-status { display: inline-flex; align-items: center; width: fit-content; padding: .28rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.health-status-pass { color: #096b45; background: #def7ea; }
.health-status-warning { color: #895600; background: #fff0c8; }
.health-status-fail { color: #a52634; background: #ffe1e4; }
.health-category { margin: 2rem 0; }
.health-category-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.health-category-heading h2 { margin: 0; font-size: 1.35rem; }
.health-category-heading span { display: grid; place-items: center; min-width: 2rem; height: 2rem; border-radius: 999px; background: #eaf0ff; color: #2c55ca; font-weight: 800; }
.health-check-list { display: grid; gap: .75rem; }
.health-check { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid #e1e7f0; border-radius: 16px; }
.health-check-pass { border-left: 4px solid #14875b; }
.health-check-warning { border-left: 4px solid #d18800; }
.health-check-fail { border-left: 4px solid #c43b47; }
.health-check-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 900; background: #edf2fb; }
.health-check-pass .health-check-icon { color: #08764c; background: #def7ea; }
.health-check-warning .health-check-icon { color: #986000; background: #fff0c8; }
.health-check-fail .health-check-icon { color: #ad2936; background: #ffe1e4; }
.health-check-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.health-check-title h3 { margin: .15rem 0 .35rem; font-size: 1rem; }
.health-check-body > p { margin: 0; color: #58647c; }
.health-metrics { margin-top: .8rem; }
.health-metrics summary { cursor: pointer; color: #315cc8; font-weight: 700; }
.health-metrics dl { display: grid; gap: .35rem; margin: .7rem 0 0; padding: .75rem; border-radius: 12px; background: #f7f9fc; }
.health-metrics dl div { display: grid; grid-template-columns: minmax(150px, .35fr) 1fr; gap: 1rem; }
.health-metrics dt { color: #71809a; text-transform: capitalize; }
.health-metrics dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.health-action { margin-top: .8rem; padding: .7rem .8rem; border-radius: 10px; color: #604b00; background: #fff8d8; }
.system-guidance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.system-guidance-grid .panel-card { padding: 1.1rem; border: 1px solid #e0e6ef; border-radius: 16px; background: #fff; }
.system-guidance-grid h2 { margin-top: 0; font-size: 1rem; }
.system-guidance-grid code { display: block; padding: .7rem; overflow-x: auto; border-radius: 10px; background: #101a30; color: #eaf0ff; }
.health-history-section { margin-top: 2rem; }
.health-history-table td, .health-history-table th { white-space: nowrap; }
@media (max-width: 980px) {
    .health-overview { grid-template-columns: 1fr; }
    .health-score { width: fit-content; }
    .system-guidance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .system-health-heading { align-items: stretch; }
    .system-health-heading form, .system-health-heading .button { width: 100%; }
    .health-summary-grid { grid-template-columns: 1fr; }
    .health-check-title { flex-direction: column; }
    .health-metrics dl div { grid-template-columns: 1fr; gap: .1rem; }
}
.dashboard-health-strip { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.25rem; margin: 1rem 0 1.5rem; padding: 1rem 1.2rem; border: 1px solid #dfe6f2; border-radius: 16px; background: #fff; color: inherit; text-decoration: none; }
.dashboard-health-strip > div { display: grid; gap: .15rem; }
.dashboard-health-strip > div > span { color: #68758e; font-size: .8rem; }
.dashboard-health-pass { border-left: 5px solid #14875b; }
.dashboard-health-warning { border-left: 5px solid #d18800; }
.dashboard-health-fail { border-left: 5px solid #c43b47; }
@media (max-width: 620px) { .dashboard-health-strip { grid-template-columns: 1fr; } }

/* Admedia 0.11 — AI Content Factory */
.ai-factory-page { padding-bottom: 5rem; }
.ai-provider-card { margin: 0 0 1.25rem; border: 1px solid; border-radius: 16px; padding: 1rem 1.15rem; background: #fff; }
.ai-provider-card strong { display: block; }
.ai-provider-card p { margin: .4rem 0 0; color: var(--muted); }
.ai-provider-card.is-ready { border-color: #a7dec5; background: #effaf5; color: #096b45; }
.ai-provider-card.is-missing { border-color: #f0d391; background: #fff9e8; color: #7d5600; }
.filter-search-row { display: grid; grid-template-columns: 1fr auto; gap: .75rem; margin-bottom: 1rem; }
.filter-search-row input { min-height: 48px; border: 1px solid #cfd7e6; border-radius: 13px; padding: 0 15px; background: #fff; }
.ai-status-filters .filter-chip { display: inline-flex; gap: .45rem; align-items: center; }
.ai-status-filters small { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: rgba(49,87,213,.12); }
.ai-status { display: inline-flex; align-items: center; border-radius: 999px; padding: .34rem .68rem; font-size: .76rem; font-weight: 850; white-space: nowrap; background: #eef2f8; color: #526079; }
.ai-status-draft { background: #eef2f8; }
.ai-status-queued, .ai-status-generating { background: #e8efff; color: #2452c4; }
.ai-status-ready_for_review { background: #fff0c8; color: #895600; }
.ai-status-approved, .ai-status-imported { background: #def7ea; color: #096b45; }
.ai-status-rejected, .ai-status-failed, .ai-status-cancelled { background: #ffe1e4; color: #a52634; }
.ai-jobs-table td:first-child { min-width: 310px; }
.pagination-wrap { padding: 1rem 1.1rem; border-top: 1px solid var(--line); }
.ai-locale-fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.ai-locale-fieldset legend { padding: 0 .4rem; font-weight: 800; }
.ai-locale-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; }
.ai-inline-note { margin: 0 0 1rem; border-color: #d8e2f5; background: #f5f8ff; color: #43506a; }
.ai-form-actions, .ai-job-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; margin-top: 1rem; }
.ai-job-toolbar { margin: -1rem 0 1.5rem; }
.ai-job-toolbar form { margin: 0; }
.button-danger { border-color: #efb6bd; background: #fff0f2; color: #a52634; }
.ai-job-heading { align-items: center; }
.ai-job-heading > .ai-status { font-size: .9rem; padding: .5rem .9rem; }
.ai-job-grid { margin-bottom: 1.5rem; }
.ai-definition-list { display: grid; gap: .7rem; margin: 0; }
.ai-definition-list div { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.ai-definition-list dt { color: var(--muted); }
.ai-definition-list dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.ai-source-list { margin: 0 0 1rem; padding-left: 1.2rem; overflow-wrap: anywhere; }
.ai-source-text { max-height: 340px; overflow: auto; white-space: pre-wrap; border-radius: 12px; padding: 1rem; background: #f7f9fc; color: #3f4d67; }
.ai-editor-brief { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.ai-editor-brief p { white-space: pre-wrap; }
.ai-validation-panel { display: grid; grid-template-columns: 145px 1fr; gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; border-left: 5px solid; }
.ai-validation-panel.is-valid { border-left-color: #14875b; }
.ai-validation-panel.is-invalid { border-left-color: #c43b47; }
.ai-validation-score { display: grid; place-items: center; border-radius: 18px; padding: 1.2rem; background: #f5f8ff; }
.ai-validation-score span { color: var(--muted); font-size: .78rem; text-transform: uppercase; }
.ai-validation-score strong { font-size: 2.2rem; }
.ai-imported-card, .ai-import-panel { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.ai-imported-card h2, .ai-import-panel h2 { margin: .35rem 0 0; }
.ai-preview-section { margin: 2rem 0; }
.ai-translation-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.ai-article-preview { max-width: 900px; }
.ai-article-preview h2 { font-size: 2rem; }
.ai-article-preview .lead { color: var(--muted); font-size: 1.08rem; }
.ai-preview-body { white-space: normal; line-height: 1.75; }
.ai-survey-preview-heading { margin-top: 2rem; }
.ai-question-list { display: grid; gap: 1rem; }
.ai-question-card h3 { margin: .75rem 0 1rem; font-size: 1.12rem; }
.ai-question-title { display: flex; justify-content: space-between; gap: 1rem; color: var(--primary); font-size: .8rem; font-weight: 850; text-transform: uppercase; }
.ai-question-card ol { display: grid; gap: .55rem; margin: 0; padding-left: 1.6rem; }
.ai-question-card li { padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; }
.ai-question-card li.is-correct { border-color: #9bd4b9; background: #effaf5; }
.ai-question-card li small { display: block; margin-top: .25rem; color: #096b45; font-weight: 800; }
.ai-explanation { margin: 1rem 0 0; color: var(--muted); }
.ai-review-panel, .ai-json-panel, .ai-history-panel { margin-top: 1.5rem; }
.ai-review-form { display: grid; gap: .75rem; margin-top: 1rem; }
.ai-reject-form { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.code-textarea { min-height: 480px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.5; tab-size: 2; }
.ai-review-entry { display: grid; grid-template-columns: 240px 1fr; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ai-review-entry:last-child { border-bottom: 0; }
.ai-review-entry strong, .ai-review-entry small { display: block; }
.ai-review-entry small { margin-top: .3rem; color: var(--muted); }
.ai-review-entry p { margin: 0; white-space: pre-wrap; }
.ai-provider-details { margin-top: 1.5rem; }
.ai-provider-details summary { cursor: pointer; font-weight: 800; }
.ai-provider-details pre { overflow: auto; border-radius: 12px; padding: 1rem; background: #101a30; color: #eaf0ff; }
@media (max-width: 820px) {
    .ai-locale-grid { grid-template-columns: 1fr 1fr; }
    .ai-validation-panel { grid-template-columns: 1fr; }
    .ai-validation-score { width: fit-content; }
    .ai-imported-card, .ai-import-panel { align-items: stretch; flex-direction: column; }
    .ai-review-entry { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .filter-search-row { grid-template-columns: 1fr; }
    .ai-locale-grid { grid-template-columns: 1fr; }
    .ai-form-actions, .ai-job-toolbar { flex-direction: column; }
    .ai-form-actions .button, .ai-job-toolbar .button { width: 100%; }
    .ai-definition-list div { grid-template-columns: 1fr; gap: .2rem; }
}


/* Task access and survey-flow hardening — v0.11.2 */
.task-progress-panel {
    max-width: 960px;
    margin: 0 auto 72px;
    scroll-margin-top: 96px;
}
.task-progress-panel > * + * { margin-top: 16px; }
.task-progress-panel .alert { margin-top: 0; }
.task-progress-panel .alert ul { margin: 8px 0 0; padding-left: 20px; }
.study-countdown { display: grid; gap: 12px; }
.study-countdown p { margin: 0; }

/* Admedia 0.12 — guided one-question survey flow */
.task-detail-page { background: linear-gradient(180deg, #f7f9ff 0, #f3f6fb 58%, #fff 58%); min-height: 100vh; }
.task-detail-container { max-width: 1080px; }
.task-detail-hero { padding: 42px 0 30px; }
.task-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.task-detail-meta > span { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border: 1px solid #d9e1ef; border-radius: 999px; background: #fff; color: #53617a; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.task-detail-meta .premium-task-badge { border-color: #f2d596; background: #fff8df; color: #8b5a00; }
.task-detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; align-items: end; }
.task-detail-heading h1 { max-width: 800px; margin: 0; color: #11203e; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
.task-detail-heading > div > p { max-width: 740px; margin: 18px 0 0; color: #60708c; font-size: 1.08rem; line-height: 1.7; }
.task-reward-card { display: grid; gap: 6px; padding: 20px; border: 1px solid #ccd8f1; border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 18px 45px rgba(44,71,126,.10); }
.task-reward-card span, .task-reward-card small { color: #6b7890; }
.task-reward-card strong { color: #2f58d7; font-size: 1.65rem; }
.task-reward-card small { line-height: 1.4; }
.task-action-panel { margin-top: 10px; padding: 28px; border: 1px solid #dce3ef; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(28,52,98,.10); scroll-margin-top: 90px; }
.task-action-panel > .alert { margin: 18px 0 0; }
.task-action-panel .alert ul { margin: 8px 0 0; padding-left: 20px; }
.task-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.task-step { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 14px; border: 1px solid #e2e7f0; border-radius: 15px; background: #fafbfe; color: #7a879e; }
.task-step > span { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #edf1f7; font-weight: 900; }
.task-step strong, .task-step small { display: block; }
.task-step strong { color: #3f4e68; }
.task-step small { margin-top: 3px; font-size: 11px; line-height: 1.35; }
.task-step.is-current { border-color: #b9c9f7; background: #f2f6ff; }
.task-step.is-current > span { background: #3158d5; color: #fff; }
.task-step.is-complete { border-color: #b7e2cc; background: #f0fbf5; }
.task-step.is-complete > span { background: #15915d; color: #fff; }
.task-state-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 22px; border: 1px solid #dbe3f0; border-radius: 18px; background: #f9fbff; }
.task-state-card h2 { margin: 4px 0 7px; color: #172642; font-size: 1.35rem; }
.task-state-card p { margin: 0; color: #61708a; line-height: 1.55; }
.task-state-card form { margin: 0; }
.task-state-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #e9efff; color: #3158d5; font-size: 1.25rem; font-weight: 900; }
.task-state-success { border-color: #b7e2cc; background: #f1fbf6; }
.task-state-success .task-state-icon { background: #15915d; color: #fff; }
.task-state-progress { border-color: #c7d4f5; background: #f3f7ff; }
.task-state-warning { border-color: #f0d697; background: #fffaf0; }
.task-state-warning .task-state-icon { background: #fff0c7; color: #936000; }
.task-survey-ready { display: grid; gap: 22px; padding: 24px; border: 1px solid #c9d6f4; border-radius: 18px; background: linear-gradient(145deg, #f5f8ff, #fff); }
.task-survey-ready h2 { margin: 5px 0 8px; color: #15233f; font-size: 1.5rem; }
.task-survey-ready p { margin: 0; color: #61708a; }
.task-survey-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.task-survey-rules li { min-height: 90px; padding: 14px; border: 1px solid #dce4f1; border-radius: 14px; background: #fff; }
.task-survey-rules strong, .task-survey-rules span { display: block; }
.task-survey-rules strong { color: #3158d5; font-size: 1.5rem; }
.task-survey-rules span { margin-top: 5px; color: #6b7890; font-size: 12px; line-height: 1.35; }
.task-survey-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.task-survey-actions form { margin: 0; }
.task-material-section { padding: 54px 0 82px; }
.task-material-heading { margin-bottom: 26px; }
.task-material-heading h2 { margin: 7px 0 0; color: #15233f; font-size: clamp(1.8rem, 3vw, 2.45rem); }
.task-material-body { max-width: 860px; color: #263651; font-size: 1.06rem; line-height: 1.85; }

.premium-access-card { display: grid; grid-template-columns: minmax(0,1fr) 210px; gap: 24px; align-items: center; margin: 0 0 24px; padding: 22px 24px; border: 1px solid #d9e2f2; border-radius: 20px; background: linear-gradient(135deg, #fff, #f4f7ff); }
.premium-access-card h2 { margin: 5px 0 7px; font-size: 1.35rem; }
.premium-access-card p { margin: 0; color: #62708a; }
.premium-access-card.is-unlocked { border-color: #b8e0cb; background: linear-gradient(135deg, #f2fcf7, #fff); }
.premium-access-progress { display: grid; gap: 8px; text-align: right; }
.premium-access-progress strong { color: #3158d5; font-size: 1.7rem; }
.premium-access-progress > div { height: 8px; overflow: hidden; border-radius: 99px; background: #e3e9f4; }
.premium-access-progress > div span { display: block; height: 100%; border-radius: inherit; background: #3158d5; }
.premium-access-card.is-unlocked .premium-access-progress strong { color: #15915d; }
.task-card.is-premium { border-color: #efd495; box-shadow: 0 16px 40px rgba(134,91,0,.08); }

.survey-shell { min-height: calc(100vh - 150px); padding: 42px 20px 70px; background: radial-gradient(circle at 15% 0, #eef3ff 0, transparent 34%), #f5f7fb; }
.survey-intro-card, .survey-question-card, .survey-result-card { width: min(100%, 920px); margin: 0 auto; border: 1px solid #dce3ee; border-radius: 26px; background: #fff; box-shadow: 0 28px 70px rgba(32,54,95,.12); }
.survey-intro-card { padding: 34px; }
.survey-intro-heading { margin: 26px 0; }
.survey-intro-heading h1 { margin: 6px 0 10px; color: #13213d; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -.035em; }
.survey-intro-heading p { margin: 0; color: #64728b; font-size: 1.05rem; }
.survey-intro-reward { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 20px; align-items: center; margin: 24px 0; padding: 18px 20px; border: 1px solid #c6d5f7; border-radius: 16px; background: #f4f7ff; }
.survey-intro-reward span, .survey-intro-reward strong { display: block; }
.survey-intro-reward span { color: #6b7890; font-size: 12px; }
.survey-intro-reward strong { margin-top: 3px; color: #3158d5; font-size: 1.45rem; }
.survey-intro-reward p { margin: 0; color: #50617f; line-height: 1.55; }
.survey-instruction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.survey-instruction-grid article { position: relative; min-height: 170px; padding: 22px; overflow: hidden; border: 1px solid #e0e6ef; border-radius: 18px; background: #fbfcff; }
.survey-instruction-grid article > span { color: #3158d5; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.survey-instruction-grid h2 { margin: 18px 0 8px; color: #1a2945; font-size: 1.1rem; }
.survey-instruction-grid p { margin: 0; color: #68758d; line-height: 1.55; }
.survey-intro-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.survey-intro-summary > div { padding: 16px; border-radius: 14px; background: #f1f4f9; text-align: center; }
.survey-intro-summary strong, .survey-intro-summary span { display: block; }
.survey-intro-summary strong { color: #203256; font-size: 1.5rem; }
.survey-intro-summary span { margin-top: 4px; color: #71809a; font-size: 12px; }
.survey-intro-action { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 24px; }
.survey-intro-action small { max-width: 280px; color: #71809a; line-height: 1.4; }

.survey-question-card { overflow: hidden; }
.survey-question-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 30px 18px; }
.survey-question-header p { margin: 4px 0 0; color: #61708a; }
.survey-question-progress-label { display: flex; align-items: baseline; color: #71809a; }
.survey-question-progress-label strong { color: #3158d5; font-size: 2rem; }
.survey-question-progress-label span { font-size: 1rem; }
.survey-progress-track { height: 7px; background: #e8edf5; }
.survey-progress-track span { display: block; height: 100%; border-radius: 0 99px 99px 0; background: linear-gradient(90deg, #3158d5, #6d8df0); transition: width .25s ease; }
.survey-question-card > .alert { margin: 22px 30px 0; }
.survey-question-copy { padding: 30px 30px 20px; }
.survey-question-copy > span { color: #3158d5; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.survey-question-copy h1 { max-width: 790px; margin: 10px 0 10px; color: #13213d; font-size: clamp(1.65rem, 3.5vw, 2.5rem); line-height: 1.18; letter-spacing: -.025em; }
.survey-question-copy p { margin: 0; color: #68758d; }
.survey-answer-form { padding: 0 30px 28px; }
.survey-option-list { display: grid; gap: 11px; }
.survey-option { display: grid; grid-template-columns: 42px minmax(0,1fr) 30px; gap: 14px; align-items: center; min-height: 66px; padding: 12px 16px; border: 1.5px solid #dbe2ed; border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
.survey-option:hover { border-color: #afc0ef; background: #f8faff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(39,65,118,.08); }
.survey-option input { position: absolute; opacity: 0; pointer-events: none; }
.survey-option-marker { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #edf1f8; color: #52617b; font-weight: 900; }
.survey-option-text { color: #243450; font-size: 1rem; line-height: 1.45; }
.survey-option-check { display: grid; place-items: center; width: 27px; height: 27px; border: 2px solid #d6deea; border-radius: 50%; color: transparent; font-size: 13px; font-weight: 900; }
.survey-option.is-selected { border-color: #3158d5; background: #f2f6ff; box-shadow: 0 12px 28px rgba(49,88,213,.12); }
.survey-option.is-selected .survey-option-marker { background: #3158d5; color: #fff; }
.survey-option.is-selected .survey-option-check { border-color: #3158d5; background: #3158d5; color: #fff; }
.survey-question-footer { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 18px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid #e3e8f0; }
.survey-answer-timer { display: flex; align-items: center; gap: 12px; color: #69768f; font-size: 13px; }
.survey-answer-timer strong { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 14px; background: #eef2fa; color: #3158d5; font-size: 1.2rem; }
.survey-question-action { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.survey-question-action p { max-width: 300px; margin: 0; color: #7a879d; font-size: 12px; line-height: 1.45; text-align: right; }
.survey-question-action .button { min-width: 245px; }
.survey-noscript { margin-top: 16px; }
.survey-expiry-note { display: flex; gap: 8px; align-items: center; padding: 14px 30px; border-top: 1px solid #e4e9f1; background: #fafbfe; color: #758199; font-size: 12px; }

.survey-result-card { max-width: 720px; padding: 42px; text-align: center; }
.survey-result-mark { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 22px; background: #15915d; color: #fff; font-size: 2rem; font-weight: 900; }
.survey-result-card.is-failed .survey-result-mark { background: #d28b11; }
.survey-result-card h1 { margin: 8px 0 2px; color: #14223e; font-size: clamp(3rem, 8vw, 5rem); line-height: 1; }
.survey-result-card h2 { margin: 12px 0 8px; color: #1f2f4e; }
.survey-result-card > p { color: #66748c; }
.survey-result-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 24px 0; }
.survey-result-stats > div { padding: 16px; border-radius: 14px; background: #f3f6fa; }
.survey-result-stats strong, .survey-result-stats span { display: block; }
.survey-result-stats strong { color: #2f58d7; font-size: 1.4rem; }
.survey-result-stats span { margin-top: 4px; color: #71809a; font-size: 12px; }
.survey-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.survey-result-actions form { margin: 0; }

.payout-method-grid { display: grid; gap: 10px; margin-top: 18px; }
.payout-method-grid legend { font-weight: 850; }
.payout-method-toggle { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 15px; border: 1px solid #dce3ee; border-radius: 15px; background: #fafbfe; cursor: pointer; }
.payout-method-toggle input { width: 18px; height: 18px; }
.payout-method-toggle-main strong, .payout-method-toggle-main small { display: block; }
.payout-method-toggle-main small { margin-top: 4px; color: #6c7890; line-height: 1.4; }
.payout-method-state { padding: 6px 9px; border-radius: 999px; background: #edf0f5; color: #6b778d; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.payout-method-toggle.is-enabled { border-color: #a8d9c0; background: #f1fbf6; }
.payout-method-toggle.is-enabled .payout-method-state { background: #dff5ea; color: #117248; }
.payout-method-warning { margin-bottom: 18px; }
.payout-method-warning p { margin: 6px 0 0; }

@media (max-width: 860px) {
    .task-detail-heading { grid-template-columns: 1fr; }
    .task-reward-card { width: min(100%, 300px); }
    .task-steps { grid-template-columns: 1fr; }
    .task-state-card { grid-template-columns: auto 1fr; }
    .task-state-card > .button, .task-state-card > form { grid-column: 1 / -1; }
    .task-state-card > .button, .task-state-card > form .button { width: 100%; }
    .task-survey-rules { grid-template-columns: 1fr 1fr; }
    .premium-access-card { grid-template-columns: 1fr; }
    .premium-access-progress { text-align: left; }
    .survey-question-footer { grid-template-columns: 1fr; }
    .survey-question-action { align-items: stretch; flex-direction: column; }
    .survey-question-action p { max-width: none; text-align: left; }
    .survey-question-action .button { width: 100%; min-width: 0; }
}

@media (max-width: 620px) {
    .task-detail-hero { padding-top: 24px; }
    .task-detail-heading h1 { font-size: 2.25rem; }
    .task-action-panel { padding: 18px; border-radius: 18px; }
    .task-state-card { grid-template-columns: 1fr; padding: 18px; }
    .task-survey-rules { grid-template-columns: 1fr 1fr; }
    .task-survey-actions { flex-direction: column; }
    .task-survey-actions .button, .task-survey-actions form, .task-survey-actions form .button { width: 100%; }
    .survey-shell { padding: 20px 10px 50px; }
    .survey-intro-card { padding: 20px; border-radius: 20px; }
    .survey-instruction-grid { grid-template-columns: 1fr; }
    .survey-intro-reward { grid-template-columns: 1fr; }
    .survey-intro-summary { grid-template-columns: 1fr 1fr 1fr; }
    .survey-intro-action { align-items: stretch; flex-direction: column; }
    .survey-intro-action .button { width: 100%; }
    .survey-question-card { border-radius: 20px; }
    .survey-question-header, .survey-question-copy, .survey-answer-form { padding-left: 18px; padding-right: 18px; }
    .survey-option { grid-template-columns: 34px minmax(0,1fr) 26px; gap: 10px; padding: 11px; }
    .survey-option-marker { width: 32px; height: 32px; border-radius: 10px; }
    .survey-expiry-note { padding-left: 18px; padding-right: 18px; }
    .survey-result-card { padding: 28px 18px; border-radius: 20px; }
    .survey-result-stats { grid-template-columns: 1fr; }
    .payout-method-toggle { grid-template-columns: auto 1fr; }
    .payout-method-state { grid-column: 2; width: fit-content; }
}

/* Admedia 0.13 — payments, notifications, legal consent and pilot launch */
.alert-warning {
    border-color: #efd48a;
    background: #fff9e8;
    color: #805500;
}
.container-narrow { max-width: 760px; }
.container-narrow-wide { max-width: 980px; }
.heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.heading-actions form { margin: 0; }
.nav-notification-link { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.nav-badge {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    padding: 0 6px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}
.footer-legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
.footer-legal-nav a { color: #4f5e78; font-size: 13px; font-weight: 700; }
.footer-legal-nav a:hover { color: var(--primary); }
.field textarea,
.field select,
.stack-form textarea,
.admin-payment-actions textarea {
    width: 100%;
    border: 1px solid #cfd7e6;
    border-radius: 13px;
    padding: 13px 15px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
    resize: vertical;
    transition: border .15s ease, box-shadow .15s ease;
}
.field select { min-height: 52px; }
.field textarea:focus,
.field select:focus,
.stack-form textarea:focus,
.admin-payment-actions textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(49,87,213,.12);
}
.button-danger { border-color: var(--danger); background: var(--danger); }
.button-danger:hover { background: #8f1c14; }
.stat-inline { display: grid; gap: 3px; min-width: 190px; text-align: right; }
.stat-inline strong { color: var(--primary); font-size: 1.65rem; }
.stat-inline span { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.definition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.definition-grid > div { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #f8faff; }
.definition-grid dt { margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.definition-grid dd { margin: 0; overflow-wrap: anywhere; font-weight: 750; }
.status-awaiting_payment { background: #fff3cf; color: #8a5b00; }
.status-paid { background: #e7f8ef; color: #087a4a; }
.status-cancelled, .status-expired { background: #eef1f6; color: #58667e; }
.status-rejected, .status-failed { background: #fff0ef; color: #a32118; }

.notification-page .dashboard-heading { align-items: center; }
.notification-list { display: grid; gap: 12px; }
.notification-card {
    display: grid;
    grid-template-columns: 10px minmax(0,1fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(32,51,96,.04);
}
.notification-card.is-read { opacity: .78; box-shadow: none; }
.notification-card.is-unread { border-color: #bdccf7; background: linear-gradient(135deg, #fff, #f6f8ff); }
.notification-marker { width: 9px; height: 44px; border-radius: 999px; background: #9aa7ba; }
.notification-info .notification-marker { background: var(--primary); }
.notification-warning .notification-marker { background: #d79a1d; }
.notification-error .notification-marker { background: var(--danger); }
.notification-success .notification-marker { background: var(--success); }
.notification-copy h2 { margin: 5px 0 5px; font-size: 18px; }
.notification-copy p { margin: 0; color: var(--muted); }
.notification-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #7a869d; font-size: 12px; }
.notification-meta span { color: var(--primary); font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.notification-preferences-panel h1 { margin: 7px 0 10px; font-size: clamp(2rem, 5vw, 3rem); }
.notification-preferences-panel > p { color: var(--muted); }
.setting-toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 22px; }
.setting-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fafbfe;
    color: #33415c;
    cursor: pointer;
}
.setting-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }
.setting-toggle-master { margin: 22px 0 10px; border-color: #becdf5; background: #f3f6ff; }

.legal-page { min-height: calc(100vh - 145px); padding: 56px 0 80px; }
.legal-container { max-width: 900px; }
.legal-heading { margin-bottom: 24px; }
.legal-heading h1 { margin: 8px 0 12px; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.legal-heading p { max-width: 720px; margin-bottom: 8px; color: var(--muted); font-size: 1.05rem; }
.legal-heading small { color: #7b879b; }
.legal-document-body { padding: 34px; }
.legal-document-body p { color: #2e3e59; font-size: 1.02rem; line-height: 1.85; }
.legal-document-body p:last-child { margin-bottom: 0; }
.legal-consent-section { align-items: start; }
.legal-consent-card { width: min(100%, 840px); }
.legal-consent-list { display: grid; gap: 14px; margin-bottom: 22px; }
.legal-consent-item { border: 1px solid var(--line); border-radius: 17px; padding: 18px; background: #fafbfe; }
.legal-consent-item strong, .legal-consent-item small { display: block; }
.legal-consent-item small { margin-top: 4px; color: var(--muted); }
.legal-consent-item p { margin: 9px 0; color: #59677f; }
.legal-consent-item a { color: var(--primary); font-weight: 750; }
.legal-consent-item .checkbox-row { margin: 15px 0 0; border-top: 1px solid var(--line); padding-top: 14px; color: #263650; }
.legal-admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.legal-admin-card { display: flex; flex-direction: column; gap: 18px; }
.legal-admin-card h2 { margin: 6px 0 7px; font-size: 1.35rem; }
.legal-admin-card p { margin: 0; color: var(--muted); }
.legal-admin-card dl { display: grid; gap: 8px; margin: 0; }
.legal-admin-card dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.legal-admin-card dt { color: var(--muted); }
.legal-admin-card dd { margin: 0; font-weight: 750; }
.legal-admin-card .button { margin-top: auto; }
.legal-editor { margin-top: 20px; }
.legal-translation-editor { display: grid; gap: 18px; margin: 22px 0; }
.legal-translation-editor fieldset { border: 1px solid var(--line); border-radius: 17px; padding: 18px; }
.legal-translation-editor legend { padding: 0 8px; color: var(--primary); font-weight: 850; }
.legal-body-editor { min-height: 320px; line-height: 1.65; }

.payment-layout { display: grid; grid-template-columns: minmax(250px,.65fr) minmax(0,1.35fr); gap: 18px; align-items: stretch; margin-bottom: 24px; }
.payment-balance-card { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, #172858, #3157d5); color: #fff; }
.payment-balance-card span, .payment-balance-card small { color: #d4dfff; }
.payment-balance-card strong { display: block; margin: 10px 0; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1; }
.payment-create-card h2 { font-size: 1.7rem; }
.payment-create-card form { max-width: 620px; }
.payment-invoice-card { max-width: 820px; margin: 18px auto 0; padding: 32px; }
.payment-invoice-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.payment-invoice-heading h1 { margin: 5px 0 0; font-size: clamp(2rem, 5vw, 3rem); }
.payment-invoice-amount { margin: 24px 0; color: var(--primary); font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 850; letter-spacing: -.05em; }
.payment-invoice-amount small { color: #758198; font-size: 1rem; letter-spacing: 0; }
.payment-instructions { margin: 20px 0; border: 1px solid #c9d5f6; border-radius: 16px; padding: 18px; background: #f4f7ff; }
.payment-instructions h2 { margin-bottom: 8px; font-size: 1.15rem; }
.payment-instructions p { margin: 0; color: #4c5d7c; white-space: pre-wrap; }
.admin-payment-list { display: grid; gap: 14px; margin-top: 18px; }
.admin-payment-card { padding: 22px; }
.admin-payment-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.admin-payment-summary h2 { margin: 5px 0 4px; font-size: 1.35rem; }
.admin-payment-summary p { margin: 0; color: var(--muted); }
.admin-payment-amount { display: grid; justify-items: end; gap: 8px; text-align: right; }
.admin-payment-amount strong { font-size: 1.45rem; }
.admin-payment-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.admin-payment-actions form { border: 1px solid var(--line); border-radius: 15px; padding: 16px; background: #fafbfe; }
.admin-payment-actions textarea { min-height: 82px; }
.admin-note { margin: 16px 0 0; border-top: 1px solid var(--line); padding-top: 15px; color: var(--muted); }

.pilot-score { display: grid; min-width: 150px; gap: 4px; border-radius: 18px; padding: 16px 20px; text-align: center; }
.pilot-score strong { font-size: 2rem; line-height: 1; }
.pilot-score span { font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.pilot-pass { background: var(--success-bg); color: var(--success); }
.pilot-warning { background: #fff7df; color: #8a5b00; }
.pilot-fail { background: var(--danger-bg); color: var(--danger); }
.pilot-check-list { display: grid; gap: 12px; }
.pilot-check { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 16px; align-items: start; padding: 18px 20px; }
.pilot-check-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #eef1f6; color: #60708a; font-size: 1.2rem; font-weight: 900; }
.pilot-check-pass .pilot-check-mark { background: var(--success-bg); color: var(--success); }
.pilot-check-warning .pilot-check-mark { background: #fff4d4; color: #8a5b00; }
.pilot-check-fail .pilot-check-mark { background: var(--danger-bg); color: var(--danger); }
.pilot-check h2 { margin: 6px 0 0; font-size: 1.1rem; }
.pilot-check details { margin-top: 10px; }
.pilot-check summary { cursor: pointer; color: var(--primary); font-weight: 750; }
.pilot-check pre { overflow: auto; max-height: 320px; border-radius: 12px; padding: 14px; background: #101a30; color: #edf2ff; font-size: 12px; }

@media (max-width: 980px) {
    .legal-admin-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { flex-wrap: wrap; }
    .footer-legal-nav { order: 3; width: 100%; }
}
@media (max-width: 780px) {
    .heading-actions { width: 100%; justify-content: flex-start; }
    .notification-card { grid-template-columns: 8px minmax(0,1fr); }
    .notification-card > form { grid-column: 2; }
    .setting-toggle-grid { grid-template-columns: 1fr; }
    .payment-layout { grid-template-columns: 1fr; }
    .definition-grid { grid-template-columns: 1fr; }
    .admin-payment-summary { flex-direction: column; }
    .admin-payment-amount { justify-items: start; text-align: left; }
    .admin-payment-actions { grid-template-columns: 1fr; }
    .legal-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .notification-card { padding: 15px; gap: 12px; }
    .notification-meta { flex-direction: column; gap: 3px; }
    .legal-document-body, .payment-invoice-card { padding: 20px; }
    .payment-invoice-heading { flex-direction: column; }
    .pilot-score { width: 100%; }
}

/* Support center and controlled pilot access (v0.14) */
.support-page { background: linear-gradient(180deg, #f7f9fd, var(--bg)); }
.support-open-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 15px;
    background: #fff;
    color: var(--muted);
    font-size: 14px;
}
.support-open-count strong { color: var(--primary); font-size: 1.15rem; }
.support-filter-bar { grid-template-columns: minmax(220px, 320px) auto; align-items: end; }
.support-filter-bar .field, .support-admin-filter .field { margin-bottom: 0; }
.support-ticket-list { display: grid; gap: 14px; margin: 20px 0 26px; }
.support-ticket-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 21px 23px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(32,51,96,.045);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.support-ticket-card:hover { transform: translateY(-2px); border-color: #b9c8ef; box-shadow: 0 14px 34px rgba(32,51,96,.08); }
.support-ticket-card h2 { margin: 7px 0 5px; font-size: 1.2rem; }
.support-ticket-card p { margin: 0; color: var(--muted); }
.support-ticket-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--primary); font-size: 12px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.support-ticket-card-side { display: grid; justify-items: end; gap: 8px; min-width: 190px; text-align: right; }
.support-ticket-card-side small { color: var(--muted); }
.support-status, .support-overdue-label, [class^="support-priority-"] {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.support-status-waiting_staff { background: #fff4d7; color: #8a5b00; }
.support-status-waiting_user { background: #eaf0ff; color: var(--primary); }
.support-status-resolved { background: var(--success-bg); color: var(--success); }
.support-status-closed { background: #eef1f6; color: #59677f; }
.support-priority-normal { background: #eef2f7; color: #5e6c84; }
.support-priority-high { background: #fff1df; color: #a45b00; }
.support-priority-urgent { background: var(--danger-bg); color: var(--danger); }
.support-overdue-label { background: var(--danger-bg); color: var(--danger); }
.support-overdue-text { display: block; margin-top: 5px; color: var(--danger) !important; font-weight: 800; }
.support-form-card { padding: 32px; }
.support-form-card h1 { margin: 8px 0 10px; font-size: clamp(2rem, 5vw, 3rem); }
.support-form-card > p { color: var(--muted); }
.support-related-details { margin: 18px 0 24px; border: 1px solid var(--line); border-radius: 15px; padding: 14px 16px; background: #fafbfe; }
.support-related-details summary { cursor: pointer; color: var(--primary); font-weight: 750; }
.support-related-details .field-grid { margin-top: 16px; }
.support-ticket-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.support-ticket-header h1 { margin: 9px 0 6px; font-size: clamp(2rem, 5vw, 3rem); }
.support-ticket-header p { margin: 0; color: var(--muted); }
.support-ticket-state { display: grid; justify-items: end; gap: 10px; min-width: 210px; text-align: right; }
.support-ticket-state small { color: var(--muted); }
.support-thread { display: grid; gap: 14px; margin-bottom: 24px; }
.support-thread > h2 { margin: 0 0 4px; }
.support-message { width: min(86%, 760px); border: 1px solid var(--line); border-radius: 19px; padding: 18px 20px; background: #fff; box-shadow: 0 7px 20px rgba(32,51,96,.04); }
.support-message.is-user { justify-self: end; border-color: #c7d4f8; background: #f4f7ff; }
.support-message.is-staff { justify-self: start; }
.support-message.is-internal { justify-self: stretch; width: 100%; border-style: dashed; border-color: #e3bf63; background: #fff9e9; }
.support-message header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.support-message header strong { color: var(--text); }
.support-message-body { color: #2d3d59; line-height: 1.7; overflow-wrap: anywhere; }
.support-reply-card { display: grid; gap: 14px; }
.support-reply-card form + form { border-top: 1px solid var(--line); padding-top: 15px; }
.support-admin-filter { grid-template-columns: 1.4fr repeat(3, minmax(150px, .7fr)) auto; align-items: end; }
.support-admin-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: 22px; align-items: start; }
.support-admin-sidebar { display: grid; gap: 16px; position: sticky; top: 88px; }
.support-admin-sidebar h2 { margin: 0 0 16px; font-size: 1.2rem; }
.support-event-list { display: grid; gap: 10px; }
.support-event-list > div { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.support-event-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.support-event-list strong, .support-event-list small { display: block; overflow-wrap: anywhere; }
.support-event-list small { margin-top: 3px; color: var(--muted); }
.pilot-mode-card { display: grid; gap: 5px; max-width: 330px; border: 1px solid var(--line); border-radius: 18px; padding: 17px 20px; background: #fff; }
.pilot-mode-card > span { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.pilot-mode-card strong { font-size: 1.2rem; }
.pilot-mode-card small { color: var(--muted); line-height: 1.45; }
.pilot-mode-invite_only { border-color: #b9c9f6; background: #f4f7ff; }
.pilot-mode-closed { border-color: #f0c7c3; background: #fff5f4; }
.pilot-access-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 20px; margin-bottom: 24px; }
.pilot-access-grid h2 { margin-top: 0; }
.pilot-access-summary { display: flex; flex-direction: column; justify-content: center; }
.pilot-access-summary > span { color: var(--muted); font-weight: 750; }
.pilot-access-summary > strong { margin: 10px 0; color: var(--primary); font-size: clamp(3rem, 8vw, 5rem); line-height: 1; }
.pilot-access-summary p { margin: 0; color: var(--muted); }
.pilot-generated-code { margin-bottom: 22px; border-color: #b5e2c8; background: #f2fcf6; }
.pilot-generated-code span, .pilot-generated-code strong { display: block; }
.pilot-generated-code span { color: var(--success); }
.pilot-generated-code strong { margin-top: 12px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(1.45rem, 4vw, 2.25rem); letter-spacing: .06em; }
.pilot-invite-notice, .pilot-registration-closed { margin-bottom: 22px; border: 1px solid #c5d1f4; border-radius: 16px; padding: 16px 18px; background: #f4f7ff; color: #30456e; }
.pilot-registration-closed h2 { margin: 0 0 8px; }
.pilot-registration-closed p { color: var(--muted); }
.field small { color: var(--muted); line-height: 1.45; }

@media (max-width: 980px) {
    .support-admin-filter { grid-template-columns: 1fr 1fr; }
    .support-admin-layout, .pilot-access-grid { grid-template-columns: 1fr; }
    .support-admin-sidebar { position: static; }
}
@media (max-width: 720px) {
    .support-ticket-card { grid-template-columns: 1fr; }
    .support-ticket-card-side, .support-ticket-state { justify-items: start; min-width: 0; text-align: left; }
    .support-ticket-header { flex-direction: column; }
    .support-message { width: 100%; }
    .support-admin-filter, .support-filter-bar { grid-template-columns: 1fr; }
    .support-form-card { padding: 22px; }
    .pilot-mode-card { max-width: none; width: 100%; }
}
.status-inactive { background: #eef1f6; color: #59677f; }

/* Admedia 0.16 — survey modes and reward policies */
.task-engine-note {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(52, 96, 255, .16);
    border-radius: 16px;
    background: rgba(52, 96, 255, .055);
}

.task-engine-note strong {
    display: block;
    margin-bottom: .35rem;
}

.task-engine-note p {
    margin: 0;
    color: var(--muted, #64748b);
}

.question-purpose-badge,
.survey-mode-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .34rem .68rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.2;
    background: #eef2ff;
    color: #3730a3;
}

.question-purpose-badge.purpose-research,
.question-purpose-badge.purpose-profile,
.survey-mode-badge.mode-opinion {
    background: #ecfeff;
    color: #155e75;
}

.question-purpose-badge.purpose-scored,
.survey-mode-badge.mode-test {
    background: #fff7ed;
    color: #9a3412;
}

.question-purpose-badge.purpose-control,
.question-purpose-badge.purpose-attention_check,
.survey-mode-badge.mode-mixed {
    background: #f5f3ff;
    color: #6d28d9;
}

.survey-intro-heading .survey-mode-badge {
    margin: .65rem 0 .15rem;
}

.field.is-muted {
    opacity: .72;
}

[data-score-threshold][hidden],
[data-control-threshold][hidden],
[data-correct-control][hidden],
[data-correct-answer-help][hidden] {
    display: none !important;
}


/* Admedia 0.17 — video tasks */
.video-admin-card .translation-heading p { margin: .35rem 0 0; color: var(--muted); }
.video-admin-preview dl { margin-bottom: 0; }
.video-study-page { min-height: calc(100vh - 160px); padding: 34px 0 64px; background: radial-gradient(circle at 20% 0%, #eef3ff 0, transparent 36%), linear-gradient(180deg, #f8faff, #eef2f8); }
.video-study-container { max-width: 1180px; }
.video-study-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin: 24px 0; }
.video-study-heading h1 { max-width: 800px; margin: 7px 0 8px; font-size: clamp(2rem, 5vw, 3.35rem); }
.video-study-heading p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.65; }
.video-study-rule { display: grid; min-width: 150px; border: 1px solid #c7d4f6; border-radius: 20px; padding: 18px 20px; background: #fff; text-align: center; box-shadow: 0 12px 30px rgba(34,58,112,.07); }
.video-study-rule strong { color: var(--primary); font-size: 2rem; line-height: 1; }
.video-study-rule span { margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.video-study-shell { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .45fr); gap: 22px; align-items: stretch; }
.video-stage { position: relative; min-height: 440px; overflow: hidden; border-radius: 24px; background: #070b14; box-shadow: 0 24px 60px rgba(12,23,49,.2); }
.video-stage video { display: block; width: 100%; height: 100%; min-height: 440px; max-height: 72vh; object-fit: contain; background: #070b14; }
.video-visibility-notice { position: absolute; inset: 18px 18px auto; z-index: 2; border-radius: 14px; padding: 13px 16px; background: rgba(151,50,39,.94); color: #fff; font-weight: 800; text-align: center; }
.video-progress-panel { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; padding: 24px; background: #fff; box-shadow: 0 18px 42px rgba(31,49,91,.08); }
.video-progress-score { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.video-progress-score span { color: var(--muted); font-weight: 800; }
.video-progress-score strong { color: var(--primary); font-size: 2.2rem; }
.video-progress-track { height: 10px; overflow: hidden; margin: 14px 0 24px; border-radius: 999px; background: #e9edf5; }
.video-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #6f8fe8); transition: width .35s ease; }
.video-progress-panel dl { display: grid; gap: 0; margin: 0; }
.video-progress-panel dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.video-progress-panel dt { color: var(--muted); }
.video-progress-panel dd { margin: 0; font-weight: 850; }
.video-progress-status { min-height: 48px; margin: auto 0 16px; border-radius: 14px; padding: 13px 15px; background: #f3f6fc; color: #425273; font-weight: 750; line-height: 1.45; }
.video-progress-panel form, .video-progress-panel button { width: 100%; }
.video-study-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.video-study-rules article { display: flex; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 17px; padding: 15px 17px; background: rgba(255,255,255,.85); color: var(--muted); }
.video-study-rules strong { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: #eaf0ff; color: var(--primary); }
.video-study-rules span { line-height: 1.45; }
@media (max-width: 900px) {
    .video-study-shell { grid-template-columns: 1fr; }
    .video-stage, .video-stage video { min-height: 300px; }
    .video-progress-status { margin-top: 18px; }
}
@media (max-width: 680px) {
    .video-study-heading { align-items: stretch; flex-direction: column; }
    .video-study-rule { min-width: 0; }
    .video-study-rules { grid-template-columns: 1fr; }
    .video-stage, .video-stage video { min-height: 220px; border-radius: 18px; }
    .video-progress-panel { padding: 20px; border-radius: 18px; }
}


/* Admedia 0.18 — data sources and batch generation */
.data-factory-page .dashboard-heading { margin-bottom: 24px; }
.dataset-type-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .38rem .7rem;
    background: #eef3ff;
    color: #334f9f;
    font-size: .78rem;
    font-weight: 800;
}
.dataset-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.dataset-stat-grid article {
    display: grid;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 49, 91, .05);
}
.dataset-stat-grid span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
}
.dataset-stat-grid strong {
    color: var(--text);
    font-size: 1.8rem;
}
.dataset-status-text { font-size: 1.05rem !important; }
.dataset-workflow-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
}
.dataset-workflow-grid .form-card { margin: 0; }
.step-number {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #eaf0ff;
    color: var(--primary);
    font-size: .9rem;
    font-weight: 900;
}
.dataset-upload-card form { display: grid; gap: 16px; }
.dataset-help-card {
    display: grid;
    gap: 7px;
    margin: 18px 0;
    border: 1px solid #c8d5f6;
    border-radius: 17px;
    padding: 17px 19px;
    background: #f5f8ff;
    color: #30476f;
}
.dataset-help-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.dataset-help-card code {
    display: block;
    overflow-x: auto;
    border-radius: 10px;
    padding: 10px 12px;
    background: #17213a;
    color: #fff;
}
.dataset-pattern-details {
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    background: #fafbfe;
}
.dataset-pattern-details summary {
    cursor: pointer;
    font-weight: 850;
}
.dataset-pattern-details > p { color: var(--muted); line-height: 1.5; }
.dataset-generation-card { margin-bottom: 24px; }
.dataset-generation-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(140px, .4fr) minmax(180px, .6fr) auto;
    gap: 14px;
    align-items: end;
}
.dataset-generation-form .field { margin: 0; }
.section-heading-inline {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.section-heading-inline h2 { margin: 0 0 5px; }
.section-heading-inline p { margin: 0; color: var(--muted); }
.dataset-mapping-grid {
    display: grid;
    grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr);
    gap: 22px;
    align-items: start;
}
.mapping-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.mapping-fields .field { margin: 0; }
.required-mark { color: #b42318; }
.dataset-preview-card { min-width: 0; }
.compact-table th, .compact-table td { min-width: 130px; padding: 10px 12px; font-size: .82rem; }
.dataset-profile {
    display: grid;
    grid-template-columns: minmax(140px, .35fr) minmax(0, 1fr);
    gap: 0;
    margin: 22px 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}
.dataset-profile dt,
.dataset-profile dd {
    margin: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 15px;
}
.dataset-profile dt { background: #f7f9fd; font-weight: 800; }
.dataset-profile dd { background: #fff; }
.dataset-profile dt:last-of-type,
.dataset-profile dd:last-of-type { border-bottom: 0; }

@media (max-width: 980px) {
    .dataset-workflow-grid,
    .dataset-mapping-grid { grid-template-columns: 1fr; }
    .dataset-generation-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .dataset-stat-grid { grid-template-columns: 1fr 1fr; }
    .mapping-fields,
    .dataset-generation-form { grid-template-columns: 1fr; }
    .section-heading-inline { flex-direction: column; }
}
@media (max-width: 460px) {
    .dataset-stat-grid { grid-template-columns: 1fr; }
}

/* Admedia 0.19 — Data Factory template editor, media import and moderation */
.template-library-card,
.template-editor-form,
.preview-record-picker,
.batch-moderation-form {
    margin-top: 22px;
}
.template-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.template-summary-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    display: grid;
    gap: 13px;
}
.template-summary-card h3,
.template-summary-card p { margin: 0; }
.template-summary-card p { color: var(--muted); line-height: 1.55; }
.template-summary-card dl,
.summary-list {
    display: grid;
    gap: 9px;
    margin: 0;
}
.template-summary-card dl > div,
.summary-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}
.template-summary-card dt,
.summary-list dt { color: var(--muted); }
.template-summary-card dd,
.summary-list dd { margin: 0; font-weight: 800; text-align: right; }
.field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.field-span-2 { grid-column: span 2; }
.question-plan-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.dataset-help-card {
    border: 1px solid #cfdaf3;
    border-radius: 16px;
    background: #f5f8ff;
    padding: 15px 17px;
}
.dataset-help-card p { margin: 6px 0 0; color: var(--muted); line-height: 1.55; }
.sticky-form-actions {
    position: sticky;
    bottom: 12px;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 35px rgba(25, 42, 82, .12);
    padding: 12px;
    backdrop-filter: blur(10px);
}
.media-import-toolbar,
.batch-moderation-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 14px;
}
.media-import-toolbar .field,
.batch-moderation-toolbar .field { margin: 0; min-width: 180px; }
.select-all-label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 750;
}
.record-media-form .data-table small,
.moderation-table small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.35;
}
.moderation-table td { vertical-align: top; }
.moderation-notes { flex: 1 1 320px; }
.moderation-stat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.template-preview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 20px;
    align-items: start;
}
.preview-article-card,
.preview-summary-card,
.preview-survey-card { min-width: 0; }
.preview-summary-card { position: sticky; top: 88px; }
.preview-question-list {
    display: grid;
    gap: 14px;
    padding: 0;
    list-style: none;
}
.preview-question-list > li {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}
.preview-question-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}
.preview-question-list ol { margin: 12px 0 0; padding-left: 22px; }
.preview-question-list ol li { padding: 4px 7px; border-radius: 8px; }
.preview-question-list ol li.is-correct-preview {
    background: #edf9f0;
    color: #176b33;
    font-weight: 750;
}
.purpose-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}
.question-purpose-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .76rem;
    font-weight: 800;
    background: #eef2f8;
    color: #43506a;
}
.question-purpose-badge.purpose-research { background: #eaf4ff; color: #145e9a; }
.question-purpose-badge.purpose-profile { background: #f2edff; color: #6446a5; }
.question-purpose-badge.purpose-scored { background: #edf9f0; color: #176b33; }
.question-purpose-badge.purpose-control { background: #fff5df; color: #875a00; }
.question-purpose-badge.purpose-attention_check { background: #fff0f0; color: #9b2929; }

@media (max-width: 1100px) {
    .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .question-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .moderation-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .template-card-grid,
    .template-preview-grid { grid-template-columns: 1fr; }
    .preview-summary-card { position: static; }
    .field-span-2 { grid-column: auto; }
}
@media (max-width: 620px) {
    .field-grid,
    .question-plan-grid,
    .moderation-stat-grid { grid-template-columns: 1fr; }
    .sticky-form-actions { position: static; flex-direction: column; }
    .sticky-form-actions .button { width: 100%; }
    .preview-question-heading { flex-direction: column; }
}

/* Admedia 0.20 — visual tasks, question library and response quality */
.visual-study-page { min-height: calc(100vh - 145px); padding: 48px 0 78px; }
.visual-study-container { width: min(1280px, calc(100% - 40px)); }
.visual-study-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin: 24px 0 28px;
}
.visual-study-heading h1 { margin: 8px 0 10px; font-size: clamp(34px, 5vw, 58px); }
.visual-study-heading p { max-width: 760px; margin: 0; color: var(--muted); }
.visual-study-rule {
    min-width: 150px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(32, 51, 96, .06);
}
.visual-study-rule strong { display: block; font-size: 34px; line-height: 1; color: var(--primary); }
.visual-study-rule span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 750; }
.visual-study-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}
.visual-study-content { display: grid; gap: 18px; min-width: 0; }
.visual-study-content.module-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.visual-study-content.module-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.visual-asset-card {
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(32, 51, 96, .08);
    outline: none;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.visual-asset-card:hover,
.visual-asset-card:focus { transform: translateY(-2px); border-color: #b9c9ff; box-shadow: 0 18px 45px rgba(32, 51, 96, .13); }
.visual-asset-card.is-viewed { border-color: var(--accent); }
.visual-asset-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #edf1f7; }
.visual-asset-caption { padding: 18px 18px 48px; }
.visual-asset-caption h2 { margin-bottom: 7px; font-size: 21px; }
.visual-asset-caption p { margin: 0; color: var(--muted); }
.visual-asset-status {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(20, 33, 61, .82);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.visual-asset-card.is-viewed .visual-asset-status { background: var(--success); }
.website-study-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(32, 51, 96, .06);
}
.website-study-card.is-viewed { border-color: var(--accent); }
.website-study-card h2 { margin: 0 0 6px; font-size: 21px; }
.website-study-card p { margin: 0 0 7px; color: var(--muted); }
.website-study-card small { color: var(--primary); font-weight: 700; word-break: break-all; }
.website-study-number { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--surface-soft); color: var(--primary); font-weight: 850; }
.visual-progress-panel {
    position: sticky;
    top: 92px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}
.visual-progress-panel dl { display: grid; gap: 10px; margin: 18px 0; }
.visual-progress-panel dl > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.visual-progress-panel dt { color: var(--muted); }
.visual-progress-panel dd { margin: 0; font-weight: 800; text-align: right; }
.visual-progress-panel form,
.visual-progress-panel .button { width: 100%; }
.video-progress-status { border-radius: 13px; padding: 11px 13px; background: var(--surface-soft); color: var(--primary); font-weight: 750; }
.video-study-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.video-study-rules article { display: flex; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 15px; background: #fff; }
.video-study-rules strong { display: grid; width: 32px; height: 32px; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--surface-soft); color: var(--primary); }
.study-asset-list { display: grid; gap: 14px; }
.study-asset-row {
    display: grid;
    grid-template-columns: minmax(120px, .45fr) minmax(0, 1.55fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 15px;
    background: #fff;
}
.study-asset-preview { overflow: hidden; border-radius: 13px; background: #eef2f8; }
.study-asset-preview img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.study-asset-fields { display: grid; grid-template-columns: 100px 1fr 1fr auto; gap: 10px; align-items: end; }
.study-asset-fields .field { margin: 0; }
.question-template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.question-template-card { display: grid; gap: 13px; border: 1px solid var(--line); border-radius: 19px; padding: 19px; background: #fff; }
.question-template-card h2 { margin: 0; font-size: 20px; }
.question-template-card p { margin: 0; color: var(--muted); }
.question-template-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 750; }
.question-template-options { display: grid; gap: 13px; }
.question-template-option-row { border: 1px solid var(--line); border-radius: 16px; padding: 15px; background: #fafbfe; }
.option-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.option-translation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.survey-quality-result { margin: 20px 0; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #f7f9fc; }
.survey-quality-result strong { display: block; margin-bottom: 6px; }
.survey-quality-result p { margin: 0 0 5px; }
.survey-quality-result span,
.survey-quality-result small { display: block; color: var(--muted); }
.survey-quality-result.quality-passed { border-color: #b7ebcd; background: var(--success-bg); color: var(--success); }
.survey-quality-result.quality-warning { border-color: #f0d69a; background: #fff9e8; color: #7a5600; }
.survey-quality-result.quality-failed { border-color: #f7c9c5; background: var(--danger-bg); color: var(--danger); }

@media (max-width: 1050px) {
    .visual-study-shell { grid-template-columns: 1fr; }
    .visual-progress-panel { position: static; }
    .study-asset-row { grid-template-columns: 1fr; }
    .study-asset-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .visual-study-heading { align-items: stretch; flex-direction: column; }
    .visual-study-rule { min-width: 0; text-align: left; }
    .visual-study-content.module-gallery,
    .visual-study-content.module-comparison,
    .question-template-grid,
    .option-translation-grid { grid-template-columns: 1fr; }
    .website-study-card { grid-template-columns: auto 1fr; }
    .website-study-card .button { grid-column: 1 / -1; width: 100%; }
    .video-study-rules { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .visual-study-container { width: min(100% - 24px, 1280px); }
    .study-asset-fields { grid-template-columns: 1fr; }
}
.study-asset-admin-row {
    display: grid;
    grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 15px;
    background: #fff;
    margin-bottom: 12px;
}
.study-asset-summary { min-width: 0; }
.study-asset-summary strong,
.study-asset-summary small { display: block; }
.study-asset-summary small { margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.study-asset-edit-form {
    display: grid;
    grid-template-columns: 82px minmax(130px, .8fr) minmax(180px, 1.2fr) 130px auto;
    gap: 9px;
    align-items: center;
}
.study-asset-edit-form input,
.study-asset-edit-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cfd7e6;
    border-radius: 11px;
    padding: 0 11px;
    background: #fff;
}
@media (max-width: 1100px) {
    .study-asset-admin-row { grid-template-columns: 1fr; }
    .study-asset-edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .study-asset-edit-form { grid-template-columns: 1fr; }
}

/* Admedia 0.21 — advanced survey questions */
.advanced-question-settings{margin-top:1.25rem;padding:1rem;border:1px solid var(--border,#d8dee8);border-radius:14px;background:rgba(248,250,252,.72)}
.advanced-question-settings[hidden]{display:none!important}.advanced-question-settings h3{margin:0 0 .85rem;font-size:1rem}
.survey-open-answer input,.survey-open-answer textarea{width:100%;font:inherit;border:1px solid #cbd5e1;border-radius:14px;padding:1rem;background:#fff;color:#172033;box-sizing:border-box}
.survey-open-answer textarea{resize:vertical;min-height:180px}.survey-open-answer small{display:block;margin-top:.6rem;color:#64748b}
.survey-scale-answer{padding:1rem 0}.survey-scale-labels{display:flex;justify-content:space-between;gap:1rem;color:#64748b;font-size:.9rem;margin-bottom:.7rem}
.survey-scale-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(54px,1fr));gap:.55rem}
.survey-scale-option{position:relative;cursor:pointer}.survey-scale-option input{position:absolute;opacity:0;pointer-events:none}
.survey-scale-option span{display:flex;align-items:center;justify-content:center;min-height:50px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;font-weight:700;transition:.18s ease}
.survey-scale-option input:checked+span{border-color:#1d4ed8;box-shadow:0 0 0 3px rgba(29,78,216,.14);background:#eff6ff;color:#1d4ed8}
.survey-ranking-list{list-style:none;padding:0;margin:0;display:grid;gap:.7rem}.survey-ranking-item{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:.8rem;padding:.8rem;border:1px solid #d8dee8;border-radius:14px;background:#fff}
.survey-ranking-position{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:#eef2ff;font-weight:800;color:#3730a3}.survey-ranking-text{font-weight:600}.survey-ranking-actions{display:flex;gap:.4rem}
@media(max-width:640px){.survey-ranking-item{grid-template-columns:38px 1fr}.survey-ranking-actions{grid-column:1/-1;justify-content:flex-end}.survey-scale-options{grid-template-columns:repeat(4,1fr)}}
