@font-face {
    font-family: Inter;
    src: url("InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    font-family: Inter, "Segoe UI", Helvetica, sans-serif;
    color: #152844;
    background: #f2f6fc;
    --ink: #152844;
    --muted: #52647d;
    --line: #dce5f1;
    --paper: #fff;
    --deep: #2239df;
    --green: #225ace;
    --pale: #edf3ff;
    --focus: #285ce8;
    --radius: 12px;
    --content-pad: clamp(1rem, 2vw, 2rem);
    --hero-gradient: linear-gradient(135deg, #1874e1, #5130da 45%, #111827 110%);
}
body { color: var(--ink); background: #f2f6fc; font-size: .9rem; line-height: 1.5; }
a { color: #174cb5; }
:focus-visible { outline-offset: 2px; }
.layout { grid-template-columns: 260px minmax(0,1fr); }
.sidebar { gap: .7rem; padding: 0 12px 16px; color: #fff; background: #2239df; }
.sidebar > .brand {
    display: flex;
    min-height: 65px;
    margin-inline: -12px;
    padding: 0 22px;
    border-bottom: 1px solid #ffffff32;
    letter-spacing: -.045em;
    font-weight: 750;
    font-size: 1.25rem;
}
.brand-mark { width: 33px; height: 33px; border-radius: 10px; color: #2841cf; background: #fff; }
.brand-mark i:first-child { height: .52rem; }
.brand-mark i:nth-child(2) { height: 1.13rem; }
.brand-mark i:last-child { height: .82rem; }
.nav { gap: 3px; }
.nav-folder summary { justify-content: space-between; font-weight: 660; }
.nav-folder summary::after { content: '⌄'; }
.nav-folder[open] summary::after { transform: rotate(180deg); }
.nav-children { padding-left: .5rem; }
@media(max-width:760px) {
  .nav:has(.nav-folder) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; }
  .nav-folder[open] { grid-column:1/-1; }
  .nav-children { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); }
}
.nav-group { display: block; margin: .85rem .75rem .2rem; color: #d4ddff; font-size: .69rem; font-weight: 680; letter-spacing: .085em; text-transform: uppercase; }
.nav a, .nav summary {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 43px;
    border-radius: 9px;
    color: #eef2ff;
    padding: 9px 12px;
    font-size: .86rem;
    font-weight: 550;
    line-height: 1.35;
}
.nav :is(a,summary):hover, .nav a[aria-current="page"] { background: #ffffff26; color: #fff; }
.nav a[aria-current="page"] { font-weight: 720; box-shadow: inset 3px 0 #a9cdff; }
.sidebar :focus-visible { outline-color: white; }
.nav .nav-icon { display: inline-grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; font-size: 1.08rem; }
.nav .nav-icon svg { width: 18px; height: 18px; }
.account { padding: .85rem .6rem 0; border-color: #ffffff38; }
.account small { color: #d6e1ff; }
.account .button.secondary { min-height: 2.2rem; padding: .4rem .7rem; color: #fff; background: #ffffff14; border-color: #ffffff55; }
.account .button.secondary:hover { background: #ffffff28; }
.workspace { min-width: 0; width: 100%; max-width: none; padding: 0 var(--content-pad) 2.5rem; margin: 0; }
.page-header {
    min-height: 135px;
    margin: 0 calc(-1 * var(--content-pad)) 1.4rem;
    padding: 1.85rem var(--content-pad);
    align-items: center;
    color: white;
    background: var(--hero-gradient);
}
.page-header h1 { font-size: clamp(1.65rem, 2.55vw, 2.25rem); font-weight: 700; letter-spacing: -.045em; }
.page-header p { margin-top: .35rem; color: #edf1ff; line-height: 1.55; }
.view-overview .page-header { min-height: 110px; color: var(--ink); background: none; margin-bottom: .1rem; }
.view-overview .page-header p { color: var(--muted); }
.card, .metric, .filter-bar, .question-editor, .survey-preview { box-shadow: 0 2px 8px #18335d09; }
.card { margin-bottom: 1.15rem; }
.card > h2:first-child { margin: 0; padding: 1.1rem 1.25rem .65rem; }
.card > .form-stack, .card > .form-grid { padding: 1.1rem 1.25rem; }
.card.form-stack { padding: 1.2rem 1.35rem; }
.card.form-stack > h2:first-child { padding: 0; }
details.card > summary { padding: 1rem 1.25rem; font-weight: 650; }
.workspace .card > a:only-of-type { display: inline-block; margin: .2rem 1.25rem 1rem; }
.card > .section-description { margin: 0; padding: 0 1.25rem .8rem; }
.card:not(.form-stack,.analytics .card) > p:not(.empty,.notice,.section-description),
.card > details:not(.profile), .card > .qr-grid { margin: .75rem 1.25rem 1rem; }
.card-head, .card-body { padding: 1.15rem 1.3rem; }
.profile-list, .compact { max-width: none; }
.filter-bar, .profile-picker {
    display: flex; flex-wrap: wrap; align-items: end; gap: .75rem;
    width: 100%; max-width: none; margin: 0 0 1.15rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem;
}
.filter-bar > label { flex: 1 1 8rem; max-width: 21rem; }
.filter-bar .button { flex: 0 0 auto; }
.profile-picker select { max-width: 24rem; }
.button { min-height: 40px; padding: .57rem .95rem; border-radius: 8px; font-size: .85rem; font-weight: 650; }
.button.primary { background: #255ddb; }
.button.primary:hover { background: #1648b8; }
.button.secondary { color: #24436a; background: white; border-color: #cfdcec; }
.button.secondary:hover { background: #f1f5ff; border-color: #a7bee6; }
label { color: #263e5e; font-size: .84rem; }
input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]), select, textarea {
    background: #fff; color: var(--ink); border-color: #bbcadd; border-radius: 7px; min-height: 40px;
}
input::placeholder, textarea::placeholder { color: #637792; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--green); }
.metric { padding: 1rem 1.15rem; }
.metric > dt { color: #4b6381; font-weight: 600; }
.metric > dd, .analytics-indicators strong { font-variant-numeric: tabular-nums; }
.metric.highlight { border-color: #c6d6fb; background: #edf3ff; }
thead { background: #f2f6fc; }
thead th { color: #48607b; font-size: .78rem; }
td, th { border-bottom-color: #e6edf5; font-size: .87rem; }
tbody tr:hover { background: #f8faff; }
.follow-action summary, .history-table summary, .profile > summary::after { color: #2255bd; }
.notice, .token-note { border-color: #a6d9c3; background: #ecfaf3; color: #15573c; }
.notice.error { border-color: #e8bdc0; background: #fff1f2; color: #852338; }
.demo-panel, .code-line, .review .existing-reply { border-color: #cbd9f2; background: #eef4ff; }
.demo-panel span { color: #385473; }
.tag { border-radius: 6px; font-size: .76rem; }
.tag.info, .tag.demo { background: #e8eeff; color: #2449a1; }
.tag.muted { background: #eef2f7; color: #425775; }
.mail-list h2 { font-size: 1.05rem; }
.mail-detail { padding: 1.25rem; }
.mail-detail > header { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.mail-detail .contact { background: #f4f7fc; padding: .7rem 1rem; border-radius: .6rem; }
.account-password { max-width: 35rem; }
.account-data-row details form { margin-top: .65rem; max-width: 30rem; }
.account-data-row details label { display: flex; align-items: baseline; gap: .4rem; }
.mail-list .mail-item { margin: 0 .35rem; padding: .85rem 1rem; }
.analytics .card { padding: 1.15rem 1.25rem; }
.analytics .card > h2:first-child { padding: 0; }
.analytics .analytics-indicators > :first-child { color: #fff; background: linear-gradient(120deg,#294eae,#263f8c 55%,#233977); }
.analytics .analytics-indicators > :first-child :is(p,h2,strong,small) { color: inherit; }
.analytics-bars meter { accent-color: #4167cf; }
.analytics-week progress { accent-color: #4673de; }
.analytics-week progress::-webkit-progress-value { background: #4673de; }
.analytics-week progress::-moz-progress-bar { background: #4673de; }
.question-editor, .survey-preview { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: #fff; min-width: 0; }
.question-editor + .question-editor, .survey-preview { margin-top: .8rem; }
.question-editor legend, .survey-preview h3 { font-weight: 650; color: #1e375d; }
.question-editor { display: grid; grid-template-columns: minmax(6rem,.45fr) minmax(12rem,1.5fr); gap: .75rem 1rem; }
.question-editor legend { padding-inline: .5rem; }
.question-editor .check-line { align-self: end; display: flex; gap: .4rem; align-items: center; }
.survey-preview { background: #f4f7fc; margin: 0; border: 0; }
.survey-preview > label { max-width: 16rem; }
.survey-preview [data-preview-content] { margin: 1rem auto; padding: clamp(1rem,3vw,2.2rem); border: 1px solid var(--line); border-radius: 14px; background: white; overflow-wrap: anywhere; }
.survey-preview [data-preview-content] section { margin-block: 1rem; padding: 1rem 0 0; border-top: 1px solid var(--line); }
.survey-preview [data-preview-content] p { margin: .35rem 0; color: #445b7b; }
.sign-in { padding: 1.25rem; background: radial-gradient(ellipse at 2% 4%,#dbe6ff,transparent 53%), radial-gradient(ellipse at 100% 100%,#e2ddfb,transparent 55%), #f4f7fe; }
.sign-in-panel { width: min(100%,27rem); padding: clamp(1.55rem,4.5vw,2.6rem); border-radius: 18px; border: 1px solid #d4e0f1; box-shadow: 0 16px 55px #23346c15; }
.sign-in-panel .brand { color: #173ba4; }
.sign-in-panel .brand-mark { color: white; background: #2745d8; }
.sign-in-panel .button.primary { width: 100%; }
@media (max-width: 1050px) {
    .layout { grid-template-columns: 215px minmax(0,1fr); }
}
@media (max-width: 760px) {
    .layout { display: block; }
    .sidebar { position: static; min-height: 0; max-height: none; padding: 0 .75rem .65rem; gap: .35rem; overflow: visible; }
    .sidebar > .brand { min-height: 50px; border: 0; padding: 0 1rem; }
    .nav { display: flex; flex-wrap: nowrap; align-items: center; overflow-x: auto; max-width: 100%; gap: .2rem; scrollbar-width: thin; scrollbar-color: #a6b8ff #2239df; }
    .nav > a, .nav > details { flex: 0 0 auto; }
    .nav .nav-group { display: none; }
    .nav a, .nav summary { font-size: .81rem; min-height: 37px; padding: .45rem .7rem; }
    .nav .nav-icon { width: 16px; flex-basis: 16px; }
    .account { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem; padding: .45rem .35rem 0; }
    .account small { display: none; }
    .account .button.secondary { min-height: 1.8rem; padding: .2rem .55rem; font-size: .75rem; }
    .page-header { min-height: 100px; padding-block: 1.35rem; }
    .workspace { --content-pad: 1rem; }
    .filter-bar, .profile-picker { padding: .85rem; }
    .card-head, .card-body, .mail-detail { padding: 1rem; }
    .form-grid, .question-editor { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .filter-bar > label { max-width: none; flex-basis: 100%; }
    .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
    .metric { padding: .7rem; }
}
