@charset "UTF-8";

:root {
  color-scheme: light;
  --green: #10745c;
  --green-dark: #07533f;
  --green-light: #e9f4ee;
  --green-pale: #f1f8f4;
  --ink: #1d3029;
  --body: #46574e;
  --muted: #7d8983;
  --line: #e4eae6;
  --background: #f5f7f6;
  --white: #ffffff;
  --danger: #b74337;
  --shadow: 0 4px 18px rgba(25, 59, 42, .035);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--body); background: var(--background); font-size: 14px; line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, a, input, textarea, select { outline: none; }
:focus-visible { outline: 3px solid #6fb49b; outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); }
img, svg { max-width: 100%; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
button svg { pointer-events: none; }
.icon { width: 20px; height: 20px; }
.icon-sm { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.text-link { padding: 0; color: var(--green); background: none; border: 0; font-weight: 600; cursor: pointer; }
.text-link:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.flex-row { display: flex; align-items: center; gap: 12px; }
.spacer { flex: 1; }
.hidden, [hidden] { display: none !important; }

/* Workspace frame */
.sidebar { width: 224px; position: fixed; inset: 0 auto 0 0; z-index: 20; background: var(--white); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 31px 18px 20px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.brand-mark { width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; background: var(--green); color: white; box-shadow: 0 4px 10px rgba(16, 116, 92, .12); }
.brand-mark .icon { width: 23px; height: 23px; }
.brand-name { color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: .025em; line-height: 1.45; }
.brand-caption { font-size: 9px; color: var(--muted); letter-spacing: .15em; line-height: 1.5; }
.sidebar-nav { display: grid; gap: 7px; margin-top: 43px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; color: #68766f; border: 0; background: transparent; border-radius: 8px; font-weight: 500; transition: background .15s, color .15s; }
.nav-item.active { background: var(--green-light); color: var(--green); font-weight: 650; }
.nav-item:hover { background: var(--green-pale); color: var(--green); }
.nav-item .nav-count { margin-left: auto; min-width: 22px; border-radius: 5px; padding: 0 5px; background: #daebe1; font-size: 11px; text-align: center; }
.nav-section-label { margin: 27px 14px 9px; font-size: 10px; color: #a0aaa4; letter-spacing: .1em; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.workspace-card { border: 1px solid var(--line); background: #fafcfb; padding: 14px 13px; border-radius: 9px; font-size: 12px; }
.workspace-card strong { display: block; margin-bottom: 4px; color: #596e61; font-size: 12px; font-weight: 600; }
.workspace-card p { color: #94a098; font-size: 11px; line-height: 1.75; }
.workspace-card .pill { margin-bottom: 9px; }
.account-row { display: flex; gap: 9px; align-items: center; padding: 22px 4px 0; }
.account-avatar { width: 32px; height: 32px; border-radius: 50%; background: #e9eeeb; display: grid; place-items: center; font-weight: 600; font-size: 12px; color: #65766c; }
.account-name { color: #3f5347; font-size: 12px; font-weight: 600; }
.account-email { font-size: 10px; color: #98a39c; }
.account-row .icon-button { margin-left: auto; }
.app-main { margin-left: 224px; min-height: 100vh; }
.topbar { height: 77px; background: rgba(255, 255, 255, .86); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 40px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: #8b9690; font-size: 12px; }
.breadcrumb strong { font-weight: 500; color: #43564a; }
.breadcrumb .icon { width: 15px; height: 15px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; color: #7f8d84; font-size: 11px; }
.topbar-actions .local-indicator::before { content: ""; display: inline-block; width: 6px; height: 6px; background: #6d9d7d; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.page-container { max-width: 1320px; margin: 0 auto; padding: 35px 40px 55px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.eyebrow { font-size: 10px; color: #8a9e91; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 7px; font-weight: 600; }
.page-title { font-size: 27px; font-weight: 650; line-height: 1.4; letter-spacing: -.035em; }
.page-description { margin-top: 7px; color: #89948d; font-size: 12px; }
.heading-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Buttons and common surfaces */
.button { border: 1px solid transparent; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 9px 17px; border-radius: 7px; font-weight: 550; line-height: 1.5; font-size: 13px; transition: background .16s, border-color .16s, box-shadow .16s, transform .16s; white-space: nowrap; }
.button.primary { background: var(--green); color: white; box-shadow: 0 2px 4px rgba(9, 72, 51, .08); }
.button.primary:hover:not(:disabled) { background: var(--green-dark); box-shadow: 0 3px 9px rgba(9, 72, 51, .15); }
.button.secondary { color: #4e6357; background: white; border-color: #dfe6e0; }
.button.secondary:hover:not(:disabled) { background: #f8fbf9; border-color: #bdcfc2; }
.button.ghost { color: #708176; background: transparent; }
.button.ghost:hover:not(:disabled) { background: #edf2ee; color: var(--green); }
.button.danger { color: var(--danger); background: #fff5f3; border-color: #f4d5cf; }
.button.danger:hover:not(:disabled) { background: #fbe8e4; }
.button.small { min-height: 32px; font-size: 12px; padding: 6px 11px; gap: 6px; }
.button.wide { width: 100%; }
.button .icon { width: 17px; height: 17px; }
.icon-button { width: 30px; height: 30px; display: inline-grid; place-items: center; padding: 0; color: #8a9790; background: transparent; border: 1px solid transparent; border-radius: 6px; }
.icon-button:hover:not(:disabled) { border-color: #e0e8e1; background: #f6f9f7; color: var(--green); }
.icon-button.danger:hover { color: var(--danger); background: #fff1ee; border-color: #f3d5ce; }
.icon-button .icon { width: 16px; height: 16px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 25px 27px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel-title { color: #314c3d; font-size: 15px; font-weight: 600; }
.panel-description { color: #909c94; font-size: 12px; margin-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-size: 11px; line-height: 1.7; font-weight: 500; border-radius: 5px; background: #f0f3f1; color: #87938b; white-space: nowrap; }
.badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.draft { background: #f0f2f1; color: #84928a; }
.badge.running { color: #a27a31; background: #fbf5e8; }
.badge.completed { background: #eaf5ef; color: #37845f; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d9e5dc; border-radius: 20px; padding: 3px 9px; color: #708975; font-size: 10px; line-height: 1.5; }
.notice { display: flex; gap: 11px; align-items: flex-start; padding: 15px 18px; border: 1px solid #dce9df; background: #f0f7f2; border-radius: 8px; color: #688373; font-size: 12px; }
.notice-icon { display: flex; color: #609678; padding-top: 1px; flex-shrink: 0; }
.notice-icon .icon { width: 16px; height: 16px; }
.notice-body { line-height: 1.8; }
.notice-body strong { color: #4d715b; font-weight: 600; }
.notice.subtle { background: #f9faf8; border-color: #e9ece5; color: #939b8e; }
.notice.subtle .notice-icon { color: #9aa58f; }
.error-banner { background: #fff3ef; color: #a95243; border: 1px solid #f1d4cb; border-radius: 7px; padding: 12px 15px; margin-bottom: 18px; font-size: 12px; }
.loading-state { text-align: center; padding: 80px 20px; color: var(--muted); }

/* Home */
.welcome-panel { min-height: 226px; position: relative; display: flex; align-items: center; overflow: hidden; background: #eaf3eb; border: 1px solid #e0eade; border-radius: 12px; margin-bottom: 23px; }
.welcome-copy { position: relative; z-index: 2; padding: 32px 36px; max-width: 68%; }
.hero-title { font-size: 25px; color: #224c35; font-weight: 650; line-height: 1.5; letter-spacing: -.035em; }
.hero-description { margin-top: 10px; font-size: 12px; color: #73917b; max-width: 430px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 23px; }
.hero-actions .button { min-height: 37px; font-size: 12px; }
.hero-visual { width: 300px; height: 226px; position: absolute; right: 25px; top: 0; }
.decor-ring { border: 1px solid rgba(93, 141, 102, .13); border-radius: 50%; width: 224px; height: 224px; position: absolute; right: 10px; top: 0; }
.decor-ring::before, .decor-ring::after { content: ""; position: absolute; border: 1px solid rgba(93, 141, 102, .12); border-radius: 50%; }
.decor-ring::before { inset: -27px; }
.decor-ring::after { inset: 28px; }
.visual-card { width: 166px; background: rgba(255, 255, 255, .96); border: 1px solid rgba(229, 237, 229, .85); border-radius: 10px; box-shadow: 0 10px 27px rgba(70, 109, 76, .09); position: absolute; top: 34px; right: 60px; transform: rotate(-8deg); padding: 16px; }
.visual-card .visual-card-top { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; font-weight: 600; margin-bottom: 14px; }
.visual-card .visual-line { height: 5px; border-radius: 4px; background: #e8eee9; margin: 8px 0; }
.visual-card .visual-line.short { width: 65%; }
.visual-card .visual-line.green { background: #a6c6ad; width: 80%; }
.visual-card .visual-choices { display: flex; gap: 5px; padding-top: 7px; }
.visual-card .visual-choices i { width: 20px; height: 20px; border: 1px solid #dde9e0; background: #f4f8f4; border-radius: 4px; }
.visual-card .visual-choices i:first-child { background: #76a185; border-color: #76a185; }
.visual-stat { position: absolute; top: 129px; right: 2px; padding: 12px 16px; background: white; border: 1px solid #e0eade; border-radius: 8px; box-shadow: 0 6px 16px rgba(70, 109, 76, .08); font-size: 9px; color: #91a295; transform: rotate(4deg); min-width: 128px; }
.visual-stat strong { font-size: 22px; display: block; color: #3c7052; font-weight: 650; line-height: 1.3; }
.visual-stat .icon { margin-right: 5px; width: 13px; height: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-bottom: 31px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 9px; padding: 21px 23px; box-shadow: var(--shadow); position: relative; }
.stat-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; background: #f2f6f3; color: #7f9e8a; position: absolute; right: 21px; top: 20px; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-label { color: #8b978e; font-size: 12px; }
.stat-value { display: block; font-size: 28px; color: #294333; font-weight: 650; letter-spacing: -.04em; margin-top: 6px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 12px; color: #a0aaa2; font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.stat-note { font-size: 10px; color: #a1aaa4; margin-top: 6px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 15px; }
.section-title { font-size: 16px; font-weight: 600; color: #304a3b; }
.section-meta { color: #96a097; font-size: 11px; }
.survey-list { display: grid; gap: 12px; }
.survey-card { display: flex; align-items: center; gap: 17px; background: white; border: 1px solid var(--line); border-radius: 9px; padding: 21px 24px; transition: border-color .15s, box-shadow .15s; }
.survey-card:hover { border-color: #cadace; box-shadow: var(--shadow); }
.survey-icon { width: 42px; height: 45px; color: #8bab98; background: #f0f6f2; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.survey-main { min-width: 0; flex: 1; }
.survey-name { font-size: 14px; font-weight: 600; color: #385242; overflow-wrap: anywhere; }
.survey-meta { color: #98a299; font-size: 11px; display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 7px; }
.survey-meta .icon { width: 12px; height: 12px; margin-right: 4px; }
.survey-status { margin-right: 20px; }
.survey-card-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.empty-state { text-align: center; background: white; border: 1px dashed #dce6dd; border-radius: 10px; padding: 48px 22px; color: #98a39a; }
.empty-state > .icon { width: 36px; height: 36px; color: #a2b6a7; margin-bottom: 14px; }
.empty-state h3 { font-size: 15px; color: #5c7463; font-weight: 600; margin-bottom: 7px; }
.empty-state p { font-size: 12px; margin-bottom: 20px; }
.empty-state .button + .button { margin-left: 6px; }

/* Steps */
.steps { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 29px; margin-bottom: 26px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.step { display: flex; gap: 10px; align-items: center; flex-shrink: 0; color: #a5aea7; }
.step-number { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #e4e9e4; border-radius: 50%; color: #a8b1a9; font-size: 11px; font-weight: 600; background: #fafbf9; }
.step-number .icon { width: 14px; height: 14px; }
.step-label { font-size: 12px; font-weight: 500; }
.step-note { font-size: 9px; color: #b0b9b1; margin-top: 1px; }
.step.active .step-number { background: var(--green); color: white; border-color: var(--green); box-shadow: 0 0 0 4px #edf5ef; }
.step.active .step-label { color: var(--green); font-weight: 600; }
.step.active .step-note { color: #8ca895; }
.step.done .step-number { border-color: #d7e7db; color: var(--green); background: #edf6ef; }
.step.done .step-label { color: #6b8e76; }
.step-line { height: 1px; background: #e7ece7; margin: 14px 16px 0; flex: 1; min-width: 15px; }

/* Forms and questionnaire editor */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 22px; align-items: start; }
.editor-main, .editor-aside, .audience-layout > * { min-width: 0; }
.editor-aside { display: grid; gap: 17px; }
.editor-aside .panel { padding: 20px; }
.editor-aside .panel + .panel { margin-top: 0; }
.editor-aside .sticky-panel, .sticky-panel { position: sticky; top: 20px; }
.field { margin-bottom: 19px; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; font-size: 12px; color: #50675a; font-weight: 550; margin-bottom: 8px; }
.required { color: #af8571; margin-left: 3px; }
.input, .textarea, .select, .quantity-input { width: 100%; color: #3f5748; background: white; border: 1px solid #dfe6df; border-radius: 6px; padding: 10px 12px; font-size: 13px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.input::placeholder, .textarea::placeholder { color: #b0b8b0; }
.input:hover, .textarea:hover, .select:hover, .quantity-input:hover { border-color: #c4d3c6; }
.input:focus, .textarea:focus, .select:focus, .quantity-input:focus { border-color: #67a58c; box-shadow: 0 0 0 3px #ecf5ee; }
.textarea { display: block; resize: vertical; min-height: 90px; }
.select { min-height: 39px; appearance: auto; }
.field-help { font-size: 10px; color: #a0aaa1; margin-top: 6px; }
.field-error { color: var(--danger); font-size: 11px; margin-top: 6px; }
.field.invalid .input, .field.invalid .textarea, .field.invalid .select { border-color: #cf8c7e; }
.inline-field { display: flex; align-items: center; gap: 10px; }
.inline-field .field-label { margin: 0; flex-shrink: 0; }
.inline-field .select { width: auto; }
.editor-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 23px 0 13px; }
.save-status { display: inline-flex; align-items: center; gap: 5px; color: #8a9c8b; font-size: 10px; }
.save-status .icon { width: 12px; height: 12px; }
.question-card { border: 1px solid var(--line); background: white; border-radius: 9px; margin-bottom: 15px; box-shadow: var(--shadow); overflow: hidden; }
.question-card:focus-within { border-color: #bfD5c5; }
.question-card.invalid { border-color: #dfaa9d; }
.question-topline { display: flex; align-items: center; gap: 9px; padding: 12px 20px; background: #fafcf9; border-bottom: 1px solid #edf0eb; }
.question-index { font-size: 10px; font-weight: 650; color: #92a697; font-variant-numeric: tabular-nums; }
.question-type { border-radius: 4px; background: #edf4ed; padding: 2px 7px; font-size: 10px; color: #7d9581; }
.question-tools { display: flex; gap: 2px; margin-left: auto; }
.question-content { padding: 20px; }
.question-content .textarea { min-height: 66px; }
.question-content .field-label { font-size: 11px; }
.option-row { display: flex; align-items: center; gap: 9px; margin: 8px 0; }
.option-row .input { font-size: 12px; padding: 9px 11px; }
.option-marker { width: 14px; height: 14px; border: 1px solid #cddbd0; border-radius: 50%; flex-shrink: 0; }
.option-marker.multiple { border-radius: 3px; }
.question-footer { border-top: 1px solid #f0f3ee; margin-top: 14px; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #a3afa5; font-size: 10px; }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.type-button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; background: #fcfdfb; border: 1px solid #e3eae0; border-radius: 7px; padding: 13px 11px; color: #6c8772; transition: border-color .15s, background .15s; }
.type-button:hover { background: #eff7f0; border-color: #b7d0bc; }
.type-icon { color: #86a58d; }
.type-icon .icon { width: 18px; height: 18px; }
.type-name { font-size: 12px; font-weight: 550; color: #536f5b; }
.type-description { font-size: 9px; color: #a2afa3; }
.add-question { margin-top: 20px; }
.add-question-title { color: #8fa092; font-size: 11px; margin-bottom: 10px; }
.actions-bar { display: flex; align-items: center; justify-content: space-between; gap: 13px; border-top: 1px solid var(--line); padding-top: 23px; margin-top: 27px; }
.actions-bar > div { display: flex; align-items: center; gap: 10px; }
.editor-aside .notice { font-size: 11px; padding: 14px; }
.aside-tip-list { padding-left: 17px; margin: 12px 0 0; color: #9ba99c; font-size: 11px; line-height: 2; }
.preview-question { padding: 18px 0; border-bottom: 1px solid #edf1eb; }
.preview-question:last-child { border-bottom: none; }
.preview-question h3, .preview-question h4 { font-size: 13px; font-weight: 550; color: #506b57; margin-bottom: 12px; }
.preview-question .question-index { margin-right: 8px; }
.preview-options { display: grid; gap: 8px; }
.preview-option { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #8c9e8d; }
.preview-option::before { content: ""; width: 12px; height: 12px; border: 1px solid #cbd8cd; border-radius: 50%; }
.preview-options.multiple .preview-option::before { border-radius: 2px; }
.rating-preview { display: flex; gap: 8px; flex-wrap: wrap; }
.rating-dot { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #e0e8dd; background: #f9fcf8; border-radius: 5px; color: #91a38f; font-size: 11px; }
.answer-placeholder { border: 1px dashed #dfe6dc; padding: 13px; color: #b1bbae; border-radius: 6px; font-size: 11px; }

/* Audience and launch confirmation */
.audience-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.group-card { padding: 20px; text-align: left; border: 1px solid #e1e9df; border-radius: 9px; background: white; color: #6e8474; position: relative; transition: border-color .15s, background .15s, box-shadow .15s; }
.group-card:hover { border-color: #b3cdb9; background: #fcfefb; }
.group-card.selected { border-color: #6eab86; background: #f1f8f1; box-shadow: 0 0 0 1px #6eab86; }
.group-card.selected::after { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; background: var(--green); color: white; border-radius: 50%; font-size: 11px; position: absolute; top: 15px; right: 15px; }
.group-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #6f9a7d; background: #ecf3e9; margin-bottom: 12px; }
.group-icon .icon { width: 23px; height: 23px; }
.group-name { color: #3c6148; font-size: 15px; font-weight: 600; display: block; }
.group-description { color: #91a28f; font-size: 11px; display: block; margin-top: 6px; line-height: 1.85; }
.group-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.group-tags span { background: #f0f4ec; border: 1px solid #e6edde; color: #9aa994; font-size: 9px; border-radius: 4px; padding: 2px 6px; }
.filter-section { padding-top: 22px; margin-top: 22px; border-top: 1px solid #edf0e8; }
.filter-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.filter-title { font-size: 12px; font-weight: 550; color: #5a765e; margin-bottom: 12px; display: flex; justify-content: space-between; }
.filter-title small { font-size: 10px; color: #a3b09e; font-weight: 400; }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.check-option { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e3e9df; border-radius: 6px; padding: 9px 11px; color: #7e907e; font-size: 11px; background: white; cursor: pointer; user-select: none; }
.check-option:hover { background: #f7fbf4; border-color: #cbdcc7; }
.check-option.selected, .check-option:has(input:checked) { background: #f2f8ee; border-color: #c9ddc4; color: #5c8062; }
.checkbox { appearance: none; width: 13px; height: 13px; margin: 0; border: 1px solid #cad7c6; background: white; border-radius: 3px; display: grid; place-items: center; cursor: pointer; }
.checkbox:checked { border-color: #72a37c; background: #72a37c; }
.checkbox:checked::after { content: "✓"; color: white; font-size: 9px; font-weight: 700; line-height: 1; }
.quantity-control { display: flex; align-items: center; gap: 12px; color: #98a78f; font-size: 12px; }
.quantity-input { width: 150px; font-size: 21px; font-weight: 600; padding: 9px 13px; color: #3f6748; font-variant-numeric: tabular-nums; }
.quantity-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip { background: white; border: 1px solid #e1e8da; border-radius: 5px; padding: 5px 12px; color: #94a38c; font-size: 11px; }
.chip:hover, .chip.selected { border-color: #94ba8f; color: #5c895e; background: #f3f9ef; }
.summary-card { padding: 23px !important; }
.summary-card .panel-title { padding-bottom: 17px; margin-bottom: 4px; border-bottom: 1px solid #eaf0e5; }
.summary-row { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; padding: 12px 0; color: #93a08b; }
.summary-row > :last-child { color: #5f795b; text-align: right; overflow-wrap: anywhere; }
.summary-total { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; margin-top: 9px; border-top: 1px solid #e5ecdc; color: #8a9c80; font-size: 12px; }
.summary-total strong { color: #426b40; font-size: 24px; font-weight: 650; }
.summary-total strong small { font-size: 11px; font-weight: 400; margin-left: 4px; }
.summary-note { margin: 13px 0 17px; font-size: 10px; color: #a6b29c; line-height: 1.9; }
.selection-chip { display: inline-block; padding: 3px 7px; background: #f2f7eb; border: 1px solid #e6eedb; color: #8c9f7f; font-size: 10px; border-radius: 4px; margin: 3px 3px 0 0; }
.confirm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin: 20px 0; }
.confirm-section { padding: 18px 20px; background: #f8faf5; border: 1px solid #e7eede; border-radius: 7px; }
.confirm-label { color: #9aaa8e; font-size: 11px; margin-bottom: 7px; }
.confirm-value { color: #536f45; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.confirm-value.large { font-size: 26px; }

/* Running experiment */
.progress-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 22px; align-items: start; }
.progress-card { text-align: center; padding: 33px 30px; }
.progress-circle { width: 188px; height: 188px; position: relative; margin: 15px auto 22px; }
.progress-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.progress-circle .track { fill: none; stroke: #edf3e7; stroke-width: 7; }
.progress-circle .fill { fill: none; stroke: #619368; stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .7s ease; }
.progress-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #426d45; font-size: 39px; font-weight: 600; line-height: 1.4; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.progress-value small { color: #a1b394; font-size: 11px; font-weight: 400; letter-spacing: .02em; margin-top: 5px; }
.progress-detail { color: #8ca07f; font-size: 12px; line-height: 1.9; }
.progress-detail strong { color: #688758; font-weight: 550; }
.progress-card .status-line { justify-content: center; margin-bottom: 16px; }
.progress-card h2 { color: #436939; font-size: 20px; font-weight: 600; margin-bottom: 7px; }
.progress-bar { height: 5px; background: #edf3e7; border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 5px; background: #73a27a; transition: width .5s; }
.run-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 28px; padding-top: 22px; border-top: 1px solid #e7efdf; }
.run-stat { text-align: center; border-right: 1px solid #edf2e6; font-size: 11px; color: #9cad90; }
.run-stat:last-child { border-right: 0; }
.run-stat strong { display: block; color: #5d8050; font-size: 24px; line-height: 1.5; font-weight: 600; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.activity-list { display: grid; margin-top: 19px; }
.activity-item { display: flex; gap: 10px; position: relative; padding: 0 0 22px; color: #8d9e81; font-size: 11px; }
.activity-item:not(:last-child)::before { content: ""; width: 1px; background: #e5eddb; position: absolute; left: 3px; top: 9px; bottom: 0; }
.activity-item:last-child { padding-bottom: 0; }
.activity-dot { width: 7px; height: 7px; background: #a7bf95; border: 2px solid #edf4e5; border-radius: 50%; margin-top: 5px; flex-shrink: 0; z-index: 1; }
.activity-item strong { display: block; color: #758f64; font-size: 11px; font-weight: 500; }
.activity-item small { color: #b0bda4; font-size: 9px; }
.status-line { display: flex; align-items: center; gap: 7px; color: #93a581; font-size: 11px; }
.status-line::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #80a16c; box-shadow: 0 0 0 4px #f0f6e8; }

/* Report and table */
.results-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-bottom: 22px; }
.download-panel { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #edf5e8; border: 1px solid #dfebd5; border-radius: 9px; padding: 23px 25px; margin-bottom: 22px; }
.download-panel h3 { font-size: 15px; color: #4c713d; font-weight: 600; }
.download-panel p { color: #98aa88; font-size: 11px; margin-top: 6px; }
.download-panel .button { flex-shrink: 0; }
.table-wrap { width: 100%; overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 9px; }
.result-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; white-space: nowrap; }
.result-table th { padding: 14px 17px; font-weight: 550; color: #7c9270; background: #f7faf3; border-bottom: 1px solid #e5eddb; }
.result-table td { padding: 13px 17px; color: #8e9e83; border-bottom: 1px solid #edf2e6; max-width: 300px; white-space: normal; min-width: 85px; }
.result-table td:first-child { font-variant-numeric: tabular-nums; font-weight: 500; color: #6e8c60; white-space: nowrap; }
.result-table tr:last-child td { border-bottom: 0; }
.result-table tbody tr:hover { background: #fcfef9; }
.table-caption { color: #a5b198; font-size: 10px; margin-top: 12px; }
.result-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0 20px; }

/* Login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 52% 48%; background: white; }
.login-story { display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 44px clamp(38px, 6vw, 110px); background: #eaf2e9; }
.login-story::before { content: ""; position: absolute; width: 620px; height: 620px; border: 1px solid #dce8d8; border-radius: 50%; bottom: -400px; right: -290px; box-shadow: 0 0 0 55px #e7efe4, 0 0 0 56px #dfeada, 0 0 0 110px #e8f0e6, 0 0 0 111px #dfe9da; pointer-events: none; }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.login-brand .brand-name { font-size: 18px; }
.login-brand .brand-caption { color: #9aae99; }
.login-headline { font-size: clamp(30px, 3.2vw, 47px); line-height: 1.5; color: #2c5336; font-weight: 600; letter-spacing: -.045em; margin-top: clamp(60px, 11vh, 120px); position: relative; z-index: 1; }
.login-headline em { font-style: normal; color: #658d61; }
.login-intro { font-size: 13px; line-height: 2.1; color: #8ca080; margin-top: 20px; max-width: 360px; position: relative; z-index: 1; }
.story-steps { display: flex; gap: 22px; margin-top: 47px; position: relative; z-index: 1; }
.story-step { font-size: 11px; color: #8fa780; display: flex; gap: 9px; align-items: center; }
.story-step > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; background: rgba(255,255,255,.58); border: 1px solid #dce8d4; color: #8ca37d; border-radius: 8px; }
.story-step .icon { width: 14px; height: 14px; }
.login-footnote { margin-top: auto; padding-top: 70px; color: #a6b79a; font-size: 10px; position: relative; z-index: 1; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 65px 45px; }
.login-form-wrap { width: 100%; max-width: 350px; }
.login-form-wrap .eyebrow { margin-bottom: 12px; }
.login-heading { font-size: 28px; font-weight: 600; color: #35573b; letter-spacing: -.04em; }
.login-subtitle { font-size: 12px; color: #a2ae9b; margin-top: 10px; margin-bottom: 32px; }
.login-form-wrap .field { margin-bottom: 22px; }
.login-form-wrap .input { padding: 12px 13px; min-height: 45px; }
.login-form-wrap .button.primary { min-height: 44px; margin-top: 5px; }
.login-demo-hint { background: #f7faf4; border: 1px solid #e7eddf; border-radius: 8px; padding: 15px 16px; margin-top: 24px; color: #94a786; font-size: 11px; line-height: 1.9; }
.login-demo-hint strong { display: block; color: #718c62; font-size: 11px; margin-bottom: 6px; font-weight: 500; }
.login-demo-hint .text-link { font-size: 11px; margin-top: 8px; }
.login-privacy-note { font-size: 10px; color: #b2bdaa; line-height: 1.9; margin-top: 22px; text-align: center; }

/* Dialogs and feedback */
dialog.modal { color: var(--body); background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 24px 100px rgba(26, 51, 33, .2); padding: 0; width: min(680px, calc(100vw - 32px)); max-height: 85vh; overflow: auto; }
dialog.modal::backdrop { background: rgba(21, 42, 28, .35); backdrop-filter: blur(3px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 18px; color: #365d3b; font-weight: 600; }
.modal-body { padding: 23px 25px; }
.modal-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 17px 25px; border-top: 1px solid var(--line); background: #fcfdfb; }
.modal:has(#questionnaire-import-form) .modal-footer { position: sticky; bottom: 0; z-index: 1; }
.import-fields { border: 0; padding: 0; min-width: 0; }
.import-fields [hidden] { display: none; }
.import-file { padding: 8px 12px; height: auto; }
.import-check { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.import-preview { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.import-preview h3 { margin: 6px 0; }
.import-issues { margin-top: 12px; }
.import-issues ul, .import-options { padding-left: 1.35rem; margin-top: 5px; }
.import-assist { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.import-assist .button { margin-top: 8px; }
.question-rule { margin-top: 8px; color: #3f6959; font-size: 12px; }
.toast-container { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: grid; gap: 9px; pointer-events: none; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 18px; color: #517642; background: #fcfff9; border: 1px solid #dfe9d6; box-shadow: 0 7px 26px rgba(43, 71, 35, .12); border-radius: 9px; font-size: 12px; animation: toast-in .18s ease-out; }
.toast.error { color: #ad5a45; border-color: #eed7ca; background: #fffaf7; }
.toast .icon { width: 17px; height: 17px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

/* Application-specific markup */
.brand-name, .brand-caption, .step-label, .step-note { display: block; }
.brand-link { display: block; }
.nav-label { margin: 36px 14px 0; color: #9aa69e; font-size: 10px; letter-spacing: .12em; }
.sidebar-nav { margin-top: 9px; }
.nav-live-dot, .status-dot, .workspace-indicator { display: inline-block; width: 6px; height: 6px; background: #609a78; border-radius: 50%; flex-shrink: 0; }
.nav-live-dot { margin-left: auto; box-shadow: 0 0 0 3px #edf5ef; }
.workspace-indicator { margin: 0 6px 0 0; vertical-align: 1px; }
.workspace-card > strong { display: inline; }
.workspace-card > p { margin-top: 7px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #edf2ee; color: #67816f; font-size: 11px; font-weight: 600; }
.account-row > span:nth-child(2) { min-width: 0; }
.account-row strong, .account-row small { display: block; }
.account-row strong { font-size: 11px; color: #52705d; font-weight: 550; }
.account-row small { font-size: 9px; color: #98a59c; margin-top: 2px; }
.topbar-label { color: #8c9b91; font-size: 10px; }
.app-footer { padding: 0 40px 23px; font-size: 10px; color: #a4afa7; display: flex; gap: 10px; justify-content: center; }
.welcome-copy > .pill { background: rgba(255,255,255,.46); border-color: #d2e2d1; color: #81a185; font-size: 9px; margin-bottom: 11px; }
.visual-card-heading { display: flex; align-items: center; gap: 5px; color: #658a6c; font-size: 9px; font-weight: 600; white-space: nowrap; margin-bottom: 12px; }
.visual-card-heading > .icon { width: 13px; height: 13px; }
.visual-check { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; margin-left: auto; color: #6c9b74; background: #edf5ec; }
.visual-check .icon { width: 10px; height: 10px; }
.visual-line.long { width: 90%; margin-bottom: 12px; }
.visual-option { display: flex; align-items: center; gap: 7px; margin: 9px 0; }
.visual-option > i { width: 9px; height: 9px; border: 1px solid #d2ded1; border-radius: 50%; }
.visual-option > span { height: 4px; width: 75%; border-radius: 3px; background: #edf2ea; }
.visual-option.selected > i { border-color: #80a985; box-shadow: inset 0 0 0 2px #f1f7ef; background: #80a985; }
.visual-option.selected > span { background: #bbd4b8; width: 55%; }
.visual-card-footer { border-top: 1px solid #edf2e9; padding-top: 7px; margin-top: 12px; font-size: 7px; color: #aab9a2; }
.hero-visual .decor-ring.second { width: 143px; height: 143px; right: 51px; top: 41px; opacity: .5; }
.hero-visual .decor-ring.second::before, .hero-visual .decor-ring.second::after { display: none; }
.visual-stat { width: 183px; right: -1px; top: 146px; display: flex; align-items: center; gap: 8px; transform: rotate(3deg); padding: 10px 11px; }
.visual-stat > .stat-icon { position: static; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #86a57b; background: #f0f6e9; }
.visual-stat > .stat-icon .icon { width: 15px; height: 15px; margin: 0; }
.visual-stat > div { flex-shrink: 0; }
.visual-stat strong { font-size: 20px; letter-spacing: -.04em; }
.visual-stat strong small { font-size: 7px; color: #9eaf94; font-weight: 400; letter-spacing: 0; }
.visual-stat > div > span { font-size: 7px; }
.visual-mini-chart { height: 30px; display: flex; align-items: flex-end; gap: 3px; margin-left: auto; }
.visual-mini-chart i { width: 4px; background: #b5cda7; border-radius: 2px; height: 12px; }
.visual-mini-chart i:nth-child(2) { height: 18px; }
.visual-mini-chart i:nth-child(3) { height: 15px; }
.visual-mini-chart i:nth-child(4) { height: 25px; }
.visual-mini-chart i:nth-child(5) { height: 30px; background: #739d69; }
.count-label { display: inline-grid; min-width: 20px; height: 19px; padding: 0 6px; margin-left: 6px; place-items: center; background: #eaf0e8; border: 1px solid #dfe8da; border-radius: 4px; color: #8a9e80; font-size: 10px; font-weight: 500; vertical-align: 1px; }
.empty-icon { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 15px; border: 1px solid #e7eee0; border-radius: 12px; color: #97af88; background: #f5f9ef; }
.empty-icon .icon { width: 25px; height: 25px; }
.empty-state .flex-row { justify-content: center; flex-wrap: wrap; }
.page-container > .notice { margin-top: 23px; }
.question-section-heading { margin-top: 28px; }
.question-topline .flex-row { gap: 9px; }
.question-type { display: inline-flex; gap: 5px; align-items: center; }
.question-type .icon { width: 12px; height: 12px; }
.required-label { color: #abb7a5; font-size: 9px; }
.required-star { color: #bc8472; }
.optional-label { font-size: 10px; color: #adb8a8; font-weight: 400; margin-left: 4px; }
.question-card.has-error { border-color: #dca99a; }
.question-title-input { padding: 9px 0; border-color: transparent; border-radius: 0; border-bottom-color: #eef2e9; font-weight: 500; font-size: 13px; }
.question-title-input:focus { padding-left: 10px; padding-right: 10px; border-radius: 5px; }
.option-marker.square { border-radius: 3px; }
.option-editor { margin-top: 4px; margin-bottom: 10px; }
.question-content > .text-link { font-size: 11px; margin-left: 23px; display: inline-flex; align-items: center; gap: 4px; }
.rating-preview { margin-top: 16px; }
.inline-field > label { color: #8fa082; font-size: 11px; }
.rating-labels { display: flex; justify-content: space-between; max-width: 279px; color: #adbaa0; font-size: 9px; margin-top: 6px; }
.type-grid { grid-template-columns: 1fr; margin-top: 17px; }
.type-button { flex-direction: row; align-items: center; gap: 10px; padding: 12px; }
.type-button > span:nth-child(2) { min-width: 0; }
.type-name, .type-description { display: block; }
.type-description { margin-top: 3px; font-size: 9px; }
.type-button > .icon:last-child { width: 12px; height: 12px; margin-left: auto; color: #a9b79e; }
.aside-label { display: block; color: #a6b49a; font-size: 8px; letter-spacing: .17em; font-weight: 550; margin-bottom: 6px; }
.aside-divider { height: 1px; background: #e8efdf; margin: 21px 0 18px; }
.aside-tip-title { color: #789365; font-size: 11px; font-weight: 550; }
.editor-aside .button.wide { margin-top: 12px; font-size: 11px; }
.editor-aside .notice { margin-top: 17px; }
.add-question { border: 1px dashed #ceddc5; border-radius: 9px; background: #f9fcf6; padding: 19px; }
.add-question-title { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #94a783; }
.add-question-title .icon { width: 14px; height: 14px; }
.add-question-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.add-question-buttons .button { color: #87a172; font-size: 10px; }
.group-tags { display: block; font-size: 9px; color: #9caf8d; }
.group-check { display: none; }
.group-card.selected::after { display: none; }
.group-card.selected .group-check { position: absolute; right: 14px; top: 14px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); }
.group-check .icon { width: 11px; height: 11px; }
.filter-title > span { font-size: 10px; font-weight: 400; color: #a5b398; }
.quantity-panel .quantity-control { margin-top: 22px; }
.summary-card { border: 1px solid var(--line); background: white; border-radius: 10px; box-shadow: var(--shadow); }
.summary-row > strong { max-width: 65%; font-weight: 500; }
.audience-layout > div > .notice, .progress-layout > aside > .notice { margin-top: 18px; }
.confirm-label, .confirm-value { display: block; }
.question-outline { margin-top: 25px; border-top: 1px solid #e7efdf; }
.question-outline-row { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf2e6; }
.question-outline-row:last-child { border-bottom: 0; padding-bottom: 1px; }
.question-outline-row > span:first-child { color: #a8ba99; font-size: 10px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.question-outline-row > p { flex: 1; font-size: 12px; color: #7d9570; overflow-wrap: anywhere; }
.question-outline-row > .badge { margin-left: auto; font-size: 9px; }
.progress-card .status-line::before { display: none; }
.progress-card .status-line > span:last-child { font-size: 10px; color: #9dae90; }
.badge.running::before { display: none; }
.badge.running .status-dot { width: 4px; height: 4px; background: #b69556; }
.progress-circle > svg { transform: none; }
.progress-value > strong { font-size: 39px; font-weight: 600; letter-spacing: -.05em; }
.progress-value > strong > small { display: inline; margin-left: 2px; color: #8fab7b; font-size: 18px; letter-spacing: 0; font-weight: 400; }
.progress-value > span { font-size: 10px; color: #a3b792; margin-top: 4px; letter-spacing: .04em; font-weight: 400; }
.run-stats + .progress-bar { margin-top: 24px; }
.progress-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; color: #a6b696; font-size: 9px; }
.progress-bottom strong { color: #8da57c; font-weight: 500; font-variant-numeric: tabular-nums; }
.progress-actions { margin-top: 25px; }
.green-text { color: #46784a !important; }
.audience-mini { display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; }
.audience-mini .group-icon { margin-bottom: 0; }
.audience-mini strong { color: #6d8b5c; font-size: 13px; font-weight: 600; display: block; }
.audience-mini div > span { display: block; color: #a1b08e; font-size: 10px; margin-top: 3px; }
.activity-list { border-top: 1px solid #e9f0e0; margin-top: 12px; padding-top: 20px; }
.activity-list > h4 { font-size: 11px; color: #90a47c; font-weight: 550; margin-bottom: 20px; }
.download-panel > div:nth-child(2) { flex: 1; }
.download-panel h2 { font-size: 15px; color: #4c713d; font-weight: 600; }
.download-icon { display: grid; place-items: center; width: 42px; height: 45px; border: 1px solid #d5e6ca; background: rgba(255,255,255,.6); border-radius: 8px; color: #93af7e; flex-shrink: 0; }
.results-table-panel { padding: 23px 0 0; overflow: hidden; }
.results-table-panel > .section-heading { padding: 0 24px 17px; }
.results-table-panel .table-wrap { border-left: 0; border-right: 0; border-radius: 0; }
.results-table-panel .table-caption { display: flex; justify-content: space-between; gap: 12px; padding: 0 24px 17px; }
.result-table th { max-width: 220px; min-width: 120px; white-space: normal; }
.result-table th:nth-child(-n+5) { min-width: 105px; }
.preview-intro h3 { color: #5b7c48; font-size: 20px; margin-top: 15px; font-weight: 600; }
.preview-intro p { color: #9aaa8e; font-size: 12px; margin-top: 9px; white-space: pre-wrap; }
.preview-option::before { display: none; }
.login-brand { justify-content: space-between; }
.login-brand .brand { padding: 0; }
.login-story > div:nth-child(2) { margin-top: auto; padding-top: 55px; }
.login-story > div:nth-child(2) > .eyebrow { color: #93aa86; font-size: 10px; letter-spacing: .08em; margin-bottom: 18px; }
.login-headline { margin-top: 0; }
.story-steps { gap: 25px; padding-top: 25px; margin-top: 23px; border-top: 1px solid #d8e5d1; }
.story-step { flex-direction: column; align-items: flex-start; gap: 12px; flex: 1; }
.story-step > .story-step-icon { width: 32px; height: 32px; }
.story-step h3 { font-size: 12px; font-weight: 500; color: #6e8e5b; margin-bottom: 5px; }
.story-step p { font-size: 9px; color: #9db18e; line-height: 1.8; }
.story-step .eyebrow { font-size: 7px; margin-bottom: 5px; color: #a9bc99; }
.login-footnote { display: flex; gap: 7px; align-items: center; padding-top: 65px; }
.login-demo-hint { margin-top: 22px; }
.login-demo-hint > p { margin-top: 8px; font-size: 11px; line-height: 1.9; color: #8da27c; }
.login-demo-hint > .button { margin-top: 12px; color: #7a9867; font-size: 11px; min-height: 34px; }
.login-form-wrap > .field-help { text-align: center; font-size: 9px; line-height: 1.9; margin-top: 20px; }

/* Tablet and narrow desktop */
@media (max-width: 1180px) {
  .sidebar { width: 205px; padding-left: 13px; padding-right: 13px; }
  .app-main { margin-left: 205px; }
  .topbar { padding: 0 28px; }
  .page-container { padding: 30px 28px 45px; }
  .editor-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; }
  .audience-layout { grid-template-columns: minmax(0, 1fr) 265px; gap: 18px; }
  .welcome-copy { max-width: 66%; padding: 28px; }
  .hero-title { font-size: 23px; }
  .hero-visual { right: 0; transform: scale(.9); transform-origin: right center; }
  .steps { padding: 20px; }
  .step-line { margin-left: 9px; margin-right: 9px; }
  .step-note { display: none; }
  .step { gap: 7px; }
  .survey-status { margin-right: 0; }
  .survey-card { gap: 12px; padding: 18px; }
  .survey-card-actions { gap: 4px; }
  .survey-card-actions .button { padding: 6px 9px; }
}

@media (max-width: 980px) {
  .editor-layout, .audience-layout { grid-template-columns: minmax(0, 1fr); }
  .editor-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .editor-aside .sticky-panel, .sticky-panel { position: static; }
  .progress-layout { grid-template-columns: minmax(0, 1fr); }
  .welcome-copy { max-width: 72%; }
  .hero-visual { right: -15px; opacity: .7; transform: scale(.76); }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 18px; }
  .stat-icon { right: 14px; top: 18px; width: 31px; height: 31px; }
  .stat-value { font-size: 25px; }
  .survey-card { flex-wrap: wrap; }
  .survey-main { flex-basis: 55%; }
  .survey-card-actions { margin-left: 54px; }
  .login-story { padding-left: 38px; padding-right: 38px; }
  .story-steps { gap: 14px; flex-wrap: wrap; }
  .story-step { font-size: 10px; gap: 6px; }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 13px; }
  .sidebar { position: relative; width: 100%; padding: 16px 20px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand-name { font-size: 15px; }
  .brand-caption { font-size: 8px; }
  .sidebar-nav { display: flex; gap: 8px; margin-top: 17px; padding-bottom: 12px; overflow-x: auto; }
  .nav-item { width: auto; flex-shrink: 0; padding: 8px 12px; font-size: 12px; gap: 7px; border-radius: 6px; }
  .nav-item .icon { width: 16px; height: 16px; }
  .sidebar-bottom { position: absolute; right: 15px; top: 15px; margin: 0; padding: 0; }
  .workspace-card, .nav-section-label { display: none; }
  .account-row { padding: 0; gap: 7px; }
  .account-avatar { width: 28px; height: 28px; }
  .account-row .account-email, .account-row .account-name { display: none; }
  .app-main { margin-left: 0; min-height: auto; }
  .topbar { height: 49px; padding: 0 20px; }
  .topbar-actions { gap: 9px; font-size: 10px; }
  .topbar-actions .pill { display: none; }
  .breadcrumb { font-size: 10px; gap: 7px; }
  .page-container { padding: 23px 18px 36px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 15px; margin-bottom: 21px; }
  .eyebrow { font-size: 9px; }
  .page-title { font-size: 23px; }
  .page-description { font-size: 11px; }
  .heading-actions { gap: 7px; }
  .heading-actions .button { min-height: 34px; padding: 7px 12px; font-size: 11px; }
  .panel { padding: 21px 19px; }
  .panel-title { font-size: 14px; }
  .welcome-panel { min-height: 215px; margin-bottom: 17px; }
  .welcome-copy { padding: 25px 23px; max-width: 100%; }
  .hero-title { font-size: 23px; max-width: 280px; }
  .hero-description { font-size: 11px; max-width: 280px; }
  .hero-actions { gap: 10px; margin-top: 20px; flex-wrap: wrap; }
  .hero-visual { display: none; }
  .stats-grid, .results-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 23px; }
  .stat-card { padding: 14px 12px; }
  .stat-icon { display: none; }
  .stat-label { font-size: 10px; }
  .stat-value { font-size: 23px; margin-top: 7px; }
  .stat-note { display: none; }
  .stat-value small { font-size: 9px; margin-left: 3px; }
  .section-title { font-size: 14px; }
  .section-meta { font-size: 10px; }
  .survey-card { padding: 17px 15px; gap: 10px; }
  .survey-icon { width: 34px; height: 38px; border-radius: 7px; }
  .survey-name { font-size: 13px; }
  .survey-meta { font-size: 9px; gap: 7px; }
  .survey-status { margin-left: auto; }
  .survey-status .badge { font-size: 9px; padding: 3px 6px; }
  .survey-card-actions { margin: 5px 0 0 44px; width: calc(100% - 44px); justify-content: flex-start; }
  .survey-card-actions .button { font-size: 11px; }
  .steps { padding: 17px 12px; gap: 0; margin-bottom: 19px; }
  .step { flex-direction: column; gap: 6px; }
  .step-number { width: 25px; height: 25px; font-size: 10px; }
  .step-label { font-size: 9px; white-space: nowrap; }
  .step-line { margin: 12px 5px 0; min-width: 7px; }
  .step.active .step-number { box-shadow: 0 0 0 3px #edf5ef; }
  .editor-layout, .audience-layout, .progress-layout { gap: 17px; }
  .editor-aside { grid-template-columns: 1fr; }
  .editor-aside .panel { padding: 20px; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-button { padding: 12px 14px; }
  .question-topline { padding: 10px 14px; }
  .question-content { padding: 16px 14px; }
  .option-row { gap: 7px; }
  .option-row .input { min-width: 0; }
  .question-tools { gap: 0; }
  .question-tools .icon-button { width: 27px; }
  .actions-bar { flex-wrap: wrap; gap: 12px; padding-top: 20px; margin-top: 20px; }
  .actions-bar .button { min-height: 38px; padding: 8px 12px; font-size: 12px; }
  .save-status { font-size: 9px; }
  .editor-toolbar { flex-wrap: wrap; }
  .group-grid { gap: 10px; }
  .group-card { padding: 17px 14px; }
  .group-name { font-size: 14px; }
  .group-description { font-size: 10px; }
  .group-icon { width: 34px; height: 34px; }
  .group-card.selected::after { width: 15px; height: 15px; top: 11px; right: 11px; font-size: 9px; }
  .group-tags { gap: 3px; }
  .group-tags span { padding: 2px 4px; font-size: 8px; }
  .checkbox-grid { gap: 7px; }
  .check-option { font-size: 10px; padding: 8px 10px; }
  .confirm-grid { grid-template-columns: 1fr; gap: 11px; }
  .confirm-section { padding: 15px 17px; }
  .progress-card { padding: 25px 21px; }
  .progress-circle { width: 168px; height: 168px; }
  .progress-value { font-size: 34px; }
  .run-stats { margin-top: 23px; }
  .run-stat strong { font-size: 22px; }
  .run-stat { font-size: 10px; }
  .download-panel { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .download-panel .button { width: 100%; }
  .result-table th, .result-table td { padding: 12px 14px; }
  .notice { padding: 13px 14px; font-size: 11px; gap: 9px; }
  .empty-state { padding: 35px 17px; }
  .empty-state .button { font-size: 11px; padding: 8px 11px; }
  .login-page { grid-template-columns: 1fr; }
  .login-story { padding: 25px 28px 30px; }
  .login-story::before { bottom: -520px; right: -350px; }
  .login-headline { margin-top: 35px; font-size: 30px; }
  .login-intro { font-size: 11px; line-height: 1.9; margin-top: 13px; }
  .story-steps { margin-top: 23px; gap: 20px; }
  .login-footnote { display: none; }
  .login-form-side { padding: 35px 28px 45px; align-items: flex-start; }
  .login-form-wrap { max-width: 420px; }
  .login-heading { font-size: 24px; }
  .login-subtitle { margin-bottom: 24px; }
  .login-demo-hint { margin-top: 19px; }
  .toast-container { right: 16px; bottom: 16px; }
  .toast { font-size: 11px; padding: 12px 14px; }
  .modal-header, .modal-body, .modal-footer { padding-left: 19px; padding-right: 19px; }
}

@media (max-width: 370px) {
  .page-container { padding-left: 13px; padding-right: 13px; }
  .sidebar { padding-left: 15px; padding-right: 15px; }
  .brand-name { font-size: 14px; }
  .account-avatar { display: none; }
  .topbar-actions .local-indicator { font-size: 9px; }
  .step-label { font-size: 8px; }
  .steps { padding-left: 9px; padding-right: 9px; }
  .group-grid { grid-template-columns: 1fr; }
  .survey-main { flex-basis: 50%; }
}

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

/* Reading comfort: use real secondary text, rather than decorative grey. */
.muted, .page-description, .panel-description, .field-help, .section-meta,
.survey-meta, .stat-label, .stat-note, .summary-note, .summary-row,
.group-description, .group-tags, .filter-title > span, .quantity-control,
.progress-detail, .progress-bottom, .table-caption, .result-table td,
.preview-intro p, .preview-option, .login-subtitle,
.login-demo-hint > p, .login-intro, .workspace-card p, .app-footer,
.topbar-label, .breadcrumb, .save-status, .optional-label, .required-label,
.question-index, .aside-tip-list, .aside-tip-title, .type-description,
.audience-mini div > span, .activity-item, .activity-item small,
.login-footnote, .login-form-wrap > .field-help, .story-step p {
  color: #718078;
}
.page-description, .panel-description, .survey-meta, .summary-row,
.summary-note, .group-description, .preview-option, .progress-detail,
.notice, .result-table, .download-panel p, .login-subtitle,
.login-demo-hint > p, .check-option { font-size: 12px; }
.stat-label, .stat-note, .section-meta, .field-help, .table-caption,
.save-status, .optional-label, .required-label, .question-index,
.aside-tip-list, .aside-tip-title, .type-description, .app-footer,
.topbar-label, .breadcrumb, .progress-bottom, .audience-mini div > span,
.activity-item, .activity-item small, .login-form-wrap > .field-help,
.workspace-card p, .account-row small, .question-content > .text-link,
.group-tags, .filter-title > span, .quantity-presets .chip,
.login-footnote, .story-step p, .type-name { font-size: 11px; }
.step-note { font-size: 10px; color: #89978d; }
.summary-row > strong, .confirm-value, .result-table td { color: #607668; }
.survey-name, .field-label, .question-title-input, .group-name,
.login-demo-hint > .button, .story-step h3 { color: #3e5d4b; }
.result-table th { font-size: 12px; color: #587452; }

/* CoSER research runs share the same workspace surfaces. */
.ga-layout, .ga-section, .ga-workspace .results-table-panel { margin-top: 22px; }
.ga-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ga-form-row .field { margin-bottom: 10px; }
.ga-draft-action { display: block; margin-top: 8px; }
.ga-workspace .actions-bar { align-items: center; }
.ga-workspace .actions-bar .field-help { flex: 1; margin-top: 0; }
.ga-run-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.ga-run-panel .error-banner { margin-top: 18px; margin-bottom: 0; }
.ga-workspace .result-table th { min-width: 105px; max-width: 300px; white-space: normal; }
.ga-workspace .result-table td { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .ga-layout, .ga-section { margin-top: 16px; }
  .ga-workspace .actions-bar .field-help { flex-basis: 100%; }
  .ga-run-stats { gap: 4px; }
  .ga-run-stats .run-stat strong { font-size: 18px; }
}
.type-name { font-size: 12px; }
.type-description { line-height: 1.6; }
.type-grid .type-button { min-height: 70px; }
.sidebar-nav .nav-item { font-size: 13px; }
.sidebar-bottom .account-row strong { font-size: 12px; }

@media (max-width: 1180px) {
  .step-note { display: none; }
}

@media (max-width: 760px) {
  .nav-label { display: none; }
  .sidebar-nav { margin-top: 16px; }
  .sidebar-bottom .account-row > span:nth-child(2) { display: none; }
  .sidebar-bottom .avatar { width: 28px; height: 28px; }
  .app-footer { flex-wrap: wrap; padding: 0 18px 20px; gap: 6px; font-size: 10px; }
  .topbar-label { display: none; }
  .topbar-actions .pill { display: inline-flex; font-size: 9px; }
  .step-label { font-size: 10px; }
  .steps { gap: 0; }
  .step-note { display: none; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-button { padding: 11px 9px; gap: 7px; }
  .type-button > .icon:last-child { display: none; }
  .type-grid .type-description { font-size: 10px; }
  .aside-label { font-size: 9px; }
  .quantity-panel .quantity-control { margin-top: 17px; }
  .question-outline-row { gap: 9px; }
  .question-outline-row > p { font-size: 12px; }
  .question-outline-row > .badge { font-size: 9px; padding: 2px 6px; }
  .progress-value > strong { font-size: 35px; }
  .progress-value > strong > small { font-size: 17px; }
  .progress-value > span { font-size: 11px; }
  .progress-bottom { align-items: flex-start; font-size: 10px; }
  .progress-bottom > span { max-width: 70%; }
  .summary-card { position: static; }
  .results-table-panel > .section-heading { padding-left: 18px; padding-right: 18px; align-items: flex-start; }
  .results-table-panel .table-caption { padding-left: 18px; padding-right: 18px; font-size: 10px; }
  .download-icon { display: none; }
  .login-brand > .pill { font-size: 8px; white-space: nowrap; }
  .login-story > div:nth-child(2) { margin-top: 0; padding-top: 36px; }
  .login-story > div:nth-child(2) > .eyebrow { margin-bottom: 12px; font-size: 9px; }
  .story-steps { gap: 13px; padding-top: 20px; margin-top: 23px; flex-wrap: nowrap; }
  .story-step { gap: 9px; min-width: 0; }
  .story-step h3 { font-size: 11px; line-height: 1.6; }
  .story-step p { font-size: 10px; line-height: 1.75; }
  .story-step .eyebrow { font-size: 7px; }
  .story-step > .story-step-icon { width: 26px; height: 26px; }
  .login-intro { font-size: 12px; }
  .login-footnote { display: none; }
  .login-form-wrap > .field-help { text-align: left; }
}

@media (max-width: 370px) {
  .step-label { font-size: 9px; }
  .sidebar-bottom .avatar { display: none; }
  .type-grid { grid-template-columns: 1fr; }
  .heading-actions { flex-wrap: wrap; }
}
.ga-profile-picker { margin-bottom: 1rem; }
.ga-profile-picker summary { cursor: pointer; font-weight: 600; }
.ga-profile-picker[open] > :not(summary) { margin-top: 0.5rem; }
.ga-profile-search, .ga-profile-pager { display: flex; align-items: center; gap: 0.5rem; }
.ga-profile-search .input { min-width: 0; }
.ga-profile-search .button { flex-shrink: 0; }
.ga-profile-results { display: grid; gap: 0.35rem; max-height: 14rem; overflow: auto; }
.ga-profile-option { display: flex; align-items: start; gap: 0.5rem; }
.ga-profile-option small { display: block; }
.ga-profile-picker [data-profile-picked] { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ga-profile-pager { justify-content: space-between; }
.account-row > span:nth-child(2) strong, .account-row > span:nth-child(2) small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.admin-workspace { display: grid; gap: 1rem; }
.admin-workspace > * { min-width: 0; }
.admin-status:empty { height: 0; margin: 0; }
.admin-status { color: var(--green-dark); font-size: 0.9rem; }
.admin-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.admin-overview .panel-header { gap: 0.5rem; flex-wrap: wrap; }
.admin-overview .field-help { margin: -0.25rem 0 0.5rem; }
.admin-inline-form { display: grid; grid-template-columns: minmax(0, 24rem) auto; justify-content: start; align-items: end; gap: 0.5rem 0.75rem; margin-bottom: 0.75rem; }
.admin-inline-form .field { margin: 0; min-width: 0; }
.admin-form-error:empty { display: none; }
.admin-inline-form .admin-form-error { grid-column: 1 / -1; }
.admin-subheading { margin: 1.25rem 0 0.7rem; }
.admin-invite-list { padding: 0; margin: 0; list-style: none; }
.admin-invite-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; border-top: 1px solid var(--line); padding: 0.65rem 0; }
.admin-invite-list li > span { min-width: 0; overflow-wrap: anywhere; }
.admin-invite-list small, .admin-account-table small { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 0.15rem; }
.admin-account-table { min-width: 35rem; }
.admin-account-table th[scope="row"] { text-align: left; }
.admin-row-actions, .admin-pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.admin-pagination { margin-top: 0.55rem; }
.admin-pagination [data-admin-page] { margin: 0; }
.admin-pagination[hidden] { display: none; }

@media (max-width: 430px) {
  .admin-inline-form { grid-template-columns: minmax(0, 1fr); }
  .admin-inline-form > .button { justify-self: start; }
}
