:root {
    --primary: #0f766e;
    --primary-dark: #0b4f4a;
    --primary-soft: #e7f5f2;
    --accent: #f59e0b;
    --ink: #17212b;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --canvas: #f5f7fa;
    --nav: #102a2a;
    --danger: #dc2626;
    --success: #15803d;
    --info: #0369a1;
    --warning: #b45309;
    --purple: #7e22ce;
    --radius: 16px;
    --shadow: 0 12px 32px rgba(15, 23, 42, .08);
    --shadow-sm: 0 5px 18px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.container-narrow { width: min(880px, calc(100% - 32px)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.public-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    backdrop-filter: blur(14px);
}
.public-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 18px rgba(15, 118, 110, .24);
    font-weight: 800;
    letter-spacing: -.5px;
}
.brand-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 330px; }
.brand-copy span { color: var(--muted); font-size: 11px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links > a:not(.btn) { color: #334155; font-weight: 650; font-size: 13px; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 72px;
    background:
        radial-gradient(circle at 85% 10%, rgba(245, 158, 11, .18), transparent 25%),
        radial-gradient(circle at 12% 90%, rgba(45, 212, 191, .16), transparent 28%),
        linear-gradient(135deg, #0e2e2d 0%, #0f4e49 58%, #0b7268 100%);
    color: #fff;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .13;
    background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero .eyebrow { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #c7fff7; }
.hero h1 { margin: 18px 0; font-size: clamp(38px, 5.5vw, 68px); line-height: 1.03; letter-spacing: -.05em; max-width: 760px; }
.hero p { margin: 0; color: rgba(255,255,255,.78); font-size: 17px; max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-panel { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); backdrop-filter: blur(12px); border-radius: 24px; padding: 24px; box-shadow: 0 30px 70px rgba(0,0,0,.2); }
.hero-panel h3 { margin: 0 0 16px; font-size: 15px; }
.hero-stat { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.11); }
.hero-stat:first-of-type { border-top: 0; }
.hero-stat-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.11); }
.hero-stat span { color: rgba(255,255,255,.65); font-size: 12px; }
.hero-stat strong { font-size: 20px; }

.section { padding: 72px 0; }
.section-white { background: #fff; }
.section-heading { max-width: 720px; margin-bottom: 30px; }
.section-heading h2 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.feature-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 900; font-size: 18px; }
.feature-card h3 { margin: 17px 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); }

.public-footer { padding: 30px 0; background: #0c2423; color: rgba(255,255,255,.65); }
.public-footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.public-footer .brand { color: #fff; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; }
.auth-art {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px;
    color: #fff;
    background: linear-gradient(145deg, #0c2625, #0d5f58);
}
.auth-art::after { content: ""; position: absolute; width: 500px; height: 500px; border: 90px solid rgba(255,255,255,.06); border-radius: 50%; right: -180px; bottom: -210px; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -.045em; margin: 0 0 18px; }
.auth-art p { color: rgba(255,255,255,.72); font-size: 16px; max-width: 530px; }
.auth-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.auth-metric { padding: 15px; border-radius: 14px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.1); }
.auth-metric strong { display: block; font-size: 22px; }
.auth-metric span { color: rgba(255,255,255,.65); font-size: 11px; }
.auth-form-wrap { display: grid; place-items: center; padding: 36px; }
.auth-form { width: min(430px, 100%); }
.auth-form h2 { font-size: 32px; margin: 20px 0 8px; letter-spacing: -.03em; }
.auth-form > p { color: var(--muted); margin: 0 0 28px; }

.btn { border: 1px solid transparent; border-radius: 11px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; font-size: 13px; line-height: 1.2; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 8px 20px rgba(15,118,110,.2); }
.btn-primary:hover { color: #fff; background: var(--primary-dark); }
.btn-accent { color: #4a2a00; background: var(--accent); }
.btn-accent:hover { color: #321c00; filter: brightness(.96); }
.btn-light { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-light:hover { color: var(--ink); background: #f8fafc; }
.btn-ghost { color: #334155; background: transparent; border-color: var(--line); }
.btn-danger { color: #fff; background: var(--danger); }
.btn-sm { padding: 7px 10px; border-radius: 9px; font-size: 11px; }
.btn-lg { padding: 13px 19px; font-size: 14px; border-radius: 13px; }
.btn-block { width: 100%; }

.form-group { margin-bottom: 17px; }
.form-label { display: block; margin-bottom: 7px; font-weight: 750; color: #334155; font-size: 12px; }
.required-mark { color: var(--danger); }
.form-control {
    width: 100%;
    min-height: 43px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    padding: 10px 12px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,118,110,.1); }
.form-control:disabled, .form-control[readonly] { background: #f1f5f9; color: #64748b; }
textarea.form-control { min-height: 105px; resize: vertical; }
.form-hint { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.input-icon { position: relative; }
.input-icon .form-control { padding-left: 40px; }
.input-icon > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.check-row, .radio-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input, .radio-row input { margin-top: 4px; accent-color: var(--primary); }
.choice-list { display: grid; gap: 9px; }
.choice-card { display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.choice-card:hover { border-color: #94a3b8; }
.choice-card input { margin-top: 4px; accent-color: var(--primary); }
.scale-row { display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 8px; }
.scale-option { position: relative; }
.scale-option input { position: absolute; opacity: 0; pointer-events: none; }
.scale-option span { min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; cursor: pointer; background: #fff; }
.scale-option input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }

.alert { padding: 12px 14px; border-radius: 11px; border: 1px solid; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.alert-danger { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.alert-warning { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.alert-info { color: #075985; background: #f0f9ff; border-color: #bae6fd; }

.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .02em; white-space: nowrap; }
.badge-success { color: #166534; background: #dcfce7; }
.badge-info { color: #075985; background: #e0f2fe; }
.badge-warning { color: #92400e; background: #fef3c7; }
.badge-danger { color: #991b1b; background: #fee2e2; }
.badge-purple { color: #6b21a8; background: #f3e8ff; }
.badge-muted { color: #475569; background: #e2e8f0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; z-index: 40; display: flex; flex-direction: column; background: var(--nav); color: rgba(255,255,255,.7); border-right: 1px solid rgba(255,255,255,.05); }
.sidebar-brand { height: 76px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand { color: #fff; }
.sidebar .brand-copy strong { max-width: 150px; }
.sidebar .brand-copy span { color: rgba(255,255,255,.5); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 18px 12px; }
.nav-section-label { padding: 13px 11px 7px; color: rgba(255,255,255,.35); font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 11px; margin: 2px 0; border-radius: 10px; color: rgba(255,255,255,.68); font-weight: 650; font-size: 12px; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-nav a.active { color: #fff; background: rgba(45,212,191,.14); box-shadow: inset 3px 0 0 #2dd4bf; }
.nav-icon { width: 20px; text-align: center; font-size: 15px; }
.sidebar-user { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.user-mini { display: flex; align-items: center; gap: 10px; }
.avatar { width: 37px; height: 37px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.12); font-weight: 850; }
.user-mini strong { display: block; color: #fff; font-size: 11px; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-mini span { color: rgba(255,255,255,.45); font-size: 10px; }
.app-main { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 25; height: 76px; display: flex; align-items: center; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar-inner { width: 100%; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-title { min-width: 0; }
.topbar-title h1 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.topbar-title p { margin: 1px 0 0; color: var(--muted); font-size: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.content { padding: 28px; }

.page-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
.page-head h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.03em; }
.page-head p { margin: 0; color: var(--muted); }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.card-header h3 { margin: 0; font-size: 14px; }
.card-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.card-body { padding: 19px; }
.card-footer { padding: 14px 19px; border-top: 1px solid var(--line); background: #fbfcfd; border-radius: 0 0 var(--radius) var(--radius); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-main-side { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .7fr); gap: 18px; }

.stat-card { position: relative; overflow: hidden; padding: 19px; }
.stat-card::after { content: ""; position: absolute; right: -22px; bottom: -32px; width: 90px; height: 90px; border-radius: 50%; background: var(--primary-soft); }
.stat-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.stat-icon { width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); font-weight: 900; }
.stat-value { position: relative; z-index: 1; margin: 13px 0 2px; font-size: 27px; line-height: 1; font-weight: 850; letter-spacing: -.04em; }
.stat-note { position: relative; z-index: 1; color: var(--muted); font-size: 10px; }

.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th { text-align: left; padding: 10px 13px; color: #64748b; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 10px; text-transform: uppercase; letter-spacing: .055em; white-space: nowrap; }
.table td { padding: 12px 13px; border-bottom: 1px solid #edf2f7; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfdfd; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.table-person { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.table-person .avatar { color: var(--primary); background: var(--primary-soft); }
.table-person strong { display: block; font-size: 12px; }
.table-person span { display: block; color: var(--muted); font-size: 10px; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty-state-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 13px; background: var(--primary-soft); color: var(--primary); font-size: 22px; }
.empty-state h3 { margin: 0 0 5px; color: var(--ink); }
.empty-state p { margin: 0 auto; max-width: 440px; }

.filter-bar { display: grid; grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(130px, .7fr)) auto; gap: 10px; align-items: end; }
.filter-bar.compact { grid-template-columns: repeat(4, minmax(130px, 1fr)) auto; }
.filter-bar .form-group { margin: 0; }

.progress { height: 8px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #2dd4bf); transition: width .25s ease; }
.progress-lg { height: 11px; }
.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-bottom: 6px; }

.chart-list { display: grid; gap: 13px; }
.chart-row { display: grid; grid-template-columns: minmax(110px, .9fr) minmax(140px, 2fr) 48px; gap: 11px; align-items: center; }
.chart-row-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.chart-track { height: 10px; background: #e8edf2; border-radius: 999px; overflow: hidden; }
.chart-fill { height: 100%; background: var(--primary); border-radius: inherit; min-width: 2px; }
.chart-value { text-align: right; font-weight: 800; font-size: 11px; }
.donut {
    --value: 0;
    width: 150px;
    height: 150px;
    margin: 8px auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--primary) calc(var(--value) * 1%), #e2e8f0 0);
    position: relative;
}
.donut::after { content: ""; width: 108px; height: 108px; border-radius: 50%; background: #fff; position: absolute; }
.donut strong { position: relative; z-index: 1; font-size: 24px; }

.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 24px 1fr; gap: 11px; position: relative; padding-bottom: 17px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 7px; top: 17px; bottom: 0; width: 1px; background: var(--line); }
.timeline-dot { width: 15px; height: 15px; margin-top: 3px; border-radius: 50%; background: var(--primary-soft); border: 4px solid var(--primary); }
.timeline-content strong { display: block; font-size: 11px; }
.timeline-content span { color: var(--muted); font-size: 10px; }

.pagination { display: flex; gap: 5px; align-items: center; justify-content: flex-end; padding-top: 14px; }
.pagination a, .pagination span { min-width: 34px; height: 34px; padding: 0 9px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #475569; font-size: 11px; font-weight: 750; }
.pagination .active { color: #fff; border-color: var(--primary); background: var(--primary); }

.survey-shell { min-height: 100vh; background: #eef3f5; }
.survey-top { position: sticky; top: 0; z-index: 25; background: #fff; border-bottom: 1px solid var(--line); }
.survey-top-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.survey-progress { width: min(390px, 40vw); }
.survey-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; padding: 28px 0 80px; align-items: start; }
.survey-index { position: sticky; top: 94px; }
.survey-index a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 11px; border-radius: 10px; color: #475569; font-size: 11px; }
.survey-index a:hover, .survey-index a.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.section-number { width: 23px; height: 23px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 850; font-size: 10px; }
.survey-intro { padding: 24px; margin-bottom: 16px; background: linear-gradient(135deg, #fff, #f1fbf8); }
.survey-intro h1 { margin: 8px 0 7px; font-size: 26px; letter-spacing: -.035em; }
.survey-section { margin-bottom: 18px; scroll-margin-top: 95px; }
.survey-section-head { padding: 20px 22px 14px; }
.survey-section-head h2 { margin: 0 0 4px; font-size: 17px; }
.survey-section-head p { margin: 0; color: var(--muted); font-size: 12px; }
.question { padding: 19px 22px; border-top: 1px solid var(--line); }
.question.hidden-by-condition { display: none; }
.question-label { margin: 0 0 9px; font-size: 13px; font-weight: 750; color: #273444; }
.question-help { margin: -4px 0 10px; color: var(--muted); font-size: 11px; }
.survey-actions { position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; margin-top: 16px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -8px 24px rgba(15,23,42,.08); backdrop-filter: blur(12px); }
.consent-box { padding: 16px; border: 1px solid #b9ded8; border-radius: 12px; background: #f0fdfa; }

.profile-summary { padding: 22px; background: linear-gradient(135deg, #0e3e3a, #0f766e); color: #fff; }
.profile-summary .avatar { width: 58px; height: 58px; font-size: 19px; background: rgba(255,255,255,.15); }
.profile-summary h2 { margin: 12px 0 3px; }
.profile-summary p { margin: 0; color: rgba(255,255,255,.65); }
.detail-list { display: grid; gap: 0; }
.detail-row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 11px 0; border-bottom: 1px solid #edf2f7; }
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { color: var(--muted); font-size: 11px; }
.detail-row dd { margin: 0; font-weight: 650; }

.receipt { max-width: 760px; margin: 34px auto; }
.receipt-head { padding: 30px; text-align: center; color: #fff; background: linear-gradient(145deg, #0e3e3a, #0f766e); border-radius: 18px 18px 0 0; }
.receipt-check { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #0f766e; background: #fff; font-size: 27px; font-weight: 900; }
.receipt-head h1 { margin: 0 0 6px; font-size: 27px; }
.receipt-head p { margin: 0; color: rgba(255,255,255,.7); }
.receipt-body { padding: 26px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; }
.receipt-code { padding: 14px; text-align: center; border: 1px dashed #94a3b8; border-radius: 12px; background: #f8fafc; letter-spacing: .1em; font-weight: 900; font-size: 17px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 20px; background: rgba(15,23,42,.58); }
.modal-backdrop.open { display: grid; }
.modal { width: min(720px, 100%); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.modal-header { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; }
.modal-body { padding: 21px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 21px; border-top: 1px solid var(--line); }
.close-modal { border: 0; background: transparent; font-size: 20px; color: var(--muted); }

.install-page { min-height: 100vh; padding: 45px 0; background: linear-gradient(135deg, #0c2927 0 32%, #eef4f3 32%); }
.install-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); max-width: 1000px; margin: 0 auto; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.install-side { padding: 28px; color: #fff; background: #0d3936; }
.install-side h1 { font-size: 27px; line-height: 1.1; margin: 24px 0 10px; }
.install-side p { color: rgba(255,255,255,.65); }
.install-steps { display: grid; gap: 13px; margin-top: 30px; }
.install-step { display: flex; gap: 10px; color: rgba(255,255,255,.7); font-size: 12px; }
.install-step span { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.1); font-weight: 800; }
.install-main { padding: 32px; }
.requirement-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 20px; }
.requirement { display: flex; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 9px; background: #f8fafc; font-size: 11px; }

@media (max-width: 1050px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; gap: 34px; }
    .hero-panel { max-width: 620px; }
    .filter-bar, .filter-bar.compact { grid-template-columns: repeat(2, 1fr); }
    .filter-bar .btn { align-self: end; }
}

@media (max-width: 860px) {
    .app-shell { display: block; }
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open::after { content: ""; position: fixed; inset: 0; z-index: 35; background: rgba(15,23,42,.45); }
    .app-main { min-width: 0; }
    .menu-toggle { display: inline-flex; }
    .content { padding: 20px; }
    .topbar-inner { padding: 0 20px; }
    .grid-main-side, .survey-layout { grid-template-columns: 1fr; }
    .survey-index { display: none; }
    .survey-progress { width: 250px; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .install-shell { grid-template-columns: 1fr; margin: 0 18px; }
    .install-side { display: none; }
}

@media (max-width: 640px) {
    body { font-size: 13px; }
    .container, .container-narrow { width: min(100% - 22px, 1160px); }
    .public-nav { height: 64px; }
    .brand-copy strong { max-width: 190px; }
    .nav-links > a:not(.btn) { display: none; }
    .hero { padding: 60px 0 54px; }
    .hero h1 { font-size: 39px; }
    .hero p { font-size: 15px; }
    .section { padding: 50px 0; }
    .features, .grid-2, .grid-3, .card-grid, .form-grid, .form-grid-3, .auth-metrics, .requirement-list { grid-template-columns: 1fr; }
    .public-footer-inner { flex-direction: column; align-items: flex-start; }
    .page-head { flex-direction: column; }
    .page-actions { justify-content: flex-start; }
    .filter-bar, .filter-bar.compact { grid-template-columns: 1fr; }
    .content { padding: 15px; }
    .topbar-inner { padding: 0 15px; }
    .topbar-title p { display: none; }
    .topbar-actions .hide-mobile { display: none; }
    .survey-top-inner { height: auto; min-height: 68px; padding: 10px 0; }
    .survey-top .brand-copy { display: none; }
    .survey-progress { width: 190px; }
    .survey-layout { padding-top: 14px; }
    .survey-intro, .question, .survey-section-head { padding-left: 16px; padding-right: 16px; }
    .survey-actions { flex-direction: column-reverse; }
    .survey-actions .btn { width: 100%; }
    .detail-row { grid-template-columns: 1fr; gap: 2px; }
    .chart-row { grid-template-columns: 90px minmax(110px, 1fr) 40px; }
    .install-main { padding: 22px; }
}

@media print {
    .no-print, .sidebar, .topbar, .public-nav, .public-footer, .survey-top, .survey-actions { display: none !important; }
    body, .app-main, .content, .survey-shell { background: #fff !important; padding: 0 !important; }
    .app-shell { display: block; }
    .card { box-shadow: none; break-inside: avoid; }
    .receipt { margin: 0 auto; }
}
