:root {
  --navy: #16324f;
  --navy-2: #10263e;
  --green: #08a889;
  --green-soft: #dff4ef;
  --ink: #1c3347;
  --muted: #718391;
  --line: #dbe6eb;
  --soft: #f4f8fa;
  --white: #fff;
  --danger: #ae4a4a;
  --shadow: 0 14px 40px rgba(22, 50, 79, .08);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #fff; overflow-x: hidden; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #fff; font-size: 14px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(8, 168, 137, .24); outline-offset: 2px; }
button { cursor: pointer; }
button[disabled] { cursor: not-allowed; opacity: .45; }
code { padding: 2px 5px; background: #eef4f6; border-radius: 4px; font-size: 12px; }

.app-shell { display: flex; min-height: 100vh; background: #f8fbfc; }
.rail { position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; flex-direction: column; width: 250px; padding: 28px 20px 20px; color: #d4e2ed; background: var(--navy); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.02em; line-height: 1.1; }
.brand small { display: block; margin-top: 3px; color: #96adbc; font-size: 11px; letter-spacing: .08em; }
.brand-mark { display: inline-grid; place-items: center; width: 43px; height: 43px; color: var(--navy); background: #8cddd7; border: 2px solid rgba(255, 255, 255, .2); border-radius: 13px 13px 13px 4px; font-size: 18px; font-weight: 900; letter-spacing: -.08em; }
.rail-caption { margin: 45px 9px 9px; color: #6f8ba2; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.rail-nav { display: grid; gap: 4px; }
.rail-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #b8c9d6; border-radius: 8px; transition: background .16s, color .16s; }
.rail-nav a span { width: 18px; color: #80c7c1; font-size: 18px; text-align: center; }
.rail-nav a:hover, .rail-nav a.active { color: #fff; background: #20445f; }
.rail-bottom { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 14px 8px 3px; color: #86a2b6; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; background: var(--green); border-radius: 999px; box-shadow: 0 0 0 4px rgba(8, 168, 137, .13); }
.page-main { width: min(100%, 1320px); min-height: 100vh; margin-left: 250px; padding: 48px clamp(26px, 5vw, 72px) 52px; }
.mobile-bar { display: none; }
.content-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 auto 32px; max-width: 1080px; }
.content-head h1 { margin: 7px 0 5px; color: var(--navy-2); font-size: clamp(30px, 4vw, 46px); letter-spacing: -.055em; line-height: 1.1; }
.content-head p { margin: 0; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-label { color: #0b8d7b; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.muted { color: var(--muted); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 750; transition: transform .16s, background .16s, border-color .16s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--green); box-shadow: 0 8px 20px rgba(8, 168, 137, .16); }
.button-primary:hover { background: #078e78; }
.button-secondary { color: #4f697e; background: #fff; border-color: #cfdde4; }
.button-secondary:hover { color: var(--navy); border-color: #9fc2d0; background: #f6fafb; }
.button-publish { color: #fff; background: var(--navy); }
.button-publish:hover { background: #0d253d; }
.button-small { min-height: 36px; padding: 0 13px; font-size: 12px; }
.text-link { color: #078e78; font-size: 13px; font-weight: 750; }
.text-link span { margin-left: 4px; font-size: 17px; }

.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin: 0 auto 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-strip > div { padding: 20px 22px 19px; border-right: 1px solid var(--line); }
.metric-strip > div:last-child { border-right: 0; }
.metric-strip span, .metric-strip small { display: block; color: var(--muted); font-size: 12px; }
.metric-strip strong { display: block; margin: 4px 0 1px; color: var(--navy); font-size: 33px; letter-spacing: -.06em; line-height: 1.1; }
.metric-strip .date-metric { font-size: 24px; letter-spacing: -.03em; }
.workspace-panel, .results-panel { max-width: 1080px; margin: 0 auto; padding: 22px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 4px 18px rgba(24, 51, 77, .025); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.panel-head h2 { margin: 0 0 2px; color: var(--navy); font-size: 19px; letter-spacing: -.03em; }
.panel-head p { margin: 0; color: var(--muted); font-size: 12px; }
.survey-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; border-top: 1px solid #e8eff2; transition: padding .16s, background .16s; }
.survey-row:hover { padding-right: 1px; padding-left: 9px; background: #fbfdfd; }
.survey-row-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.survey-row-main > div { min-width: 0; }
.survey-row-main strong, .survey-row-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.survey-row-main strong { color: var(--navy); font-size: 14px; }
.survey-row-main span { max-width: 420px; margin-top: 2px; color: var(--muted); font-size: 12px; }
.survey-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: #0b8d7b; background: var(--green-soft); border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.survey-row-meta { display: flex; align-items: center; gap: 17px; flex: 0 0 auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.row-arrow { color: var(--green); font-size: 19px; }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.status-draft { color: #6f7e87; background: #edf2f4; }
.status-scheduled { color: #856d2f; background: #fff6dc; }
.status-published { color: #237358; background: #e8f7ef; }
.status-paused { color: #7a5a30; background: #fff0da; }
.status-closed { color: #925650; background: #f8ecea; }
.status-cancelled { color: #8a5960; background: #f6eaf0; }
.empty-state { padding: 54px 20px 44px; text-align: center; }
.empty-mark { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 16px; color: var(--green); border: 1px dashed #9ed5c9; border-radius: 10px; font-size: 25px; }
.empty-state h3 { margin: 0; color: var(--navy); font-size: 17px; }
.empty-state p { margin: 5px 0 20px; color: var(--muted); font-size: 13px; }
.quiet-footer { max-width: 1080px; margin: 23px auto 0; color: #93a1aa; font-size: 11px; }

.notice { max-width: 1080px; margin: 0 auto 18px; padding: 11px 14px; border: 1px solid; border-radius: 8px; font-size: 13px; }
.notice.success { color: #276c57; background: #edf9f3; border-color: #c8e9dc; }
.notice.error { color: #9c4343; background: #fff3f2; border-color: #f0ceca; }
.button-danger { color: #9b4e4e; background: #fff; border-color: #e6c1bf; }
.button-danger:hover { background: #fff5f4; border-color: #d99b96; }
.button-quiet { color: #718391; background: transparent; border-color: transparent; }
.button-quiet:hover { color: var(--navy); background: #eef4f6; }

.builder-shell { display: grid; grid-template-columns: minmax(0, 1fr) 305px; gap: 24px; width: min(100%, 1185px); margin: 0 auto; align-items: start; }
.builder-main, .builder-inspector { background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 4px 18px rgba(24, 51, 77, .025); }
.builder-main { padding: 22px 24px 26px; }
.builder-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.builder-toolbar h2 { margin: 4px 0 0; color: var(--navy); font-size: 18px; letter-spacing: -.03em; }
.toolbar-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.builder-title-fields { display: grid; gap: 14px; padding: 22px 0 18px; }
label { display: grid; gap: 6px; color: #586f7e; font-size: 12px; font-weight: 700; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="datetime-local"], textarea, select { width: 100%; color: var(--ink); background: #fff; border: 1px solid #cddce3; border-radius: 7px; outline: none; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px #fff inset; transition: background-color 9999s ease-out; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="datetime-local"], select { height: 40px; padding: 0 11px; }
textarea { min-height: 74px; padding: 10px 11px; resize: vertical; line-height: 1.6; }
input:hover, textarea:hover, select:hover { border-color: #a5c8d2; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8, 168, 137, .11); }
.page-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.page-tab { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 11px; color: #687d8b; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; white-space: nowrap; }
.page-tab.active { color: var(--navy); background: #e6f6f2; border-color: #9bd6ca; }
.page-tab-add { color: var(--green); background: #fff; }
.question-editor { position: relative; margin-top: 14px; padding: 17px 18px 18px; border: 1px solid #d9e5e9; border-radius: 9px; background: #fff; }
.question-editor:hover { border-color: #b8d1d8; box-shadow: 0 5px 18px rgba(20, 57, 75, .04); }
.question-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.question-editor-head > div { display: flex; align-items: center; gap: 9px; }
.question-editor-number { display: grid; place-items: center; width: 26px; height: 26px; color: #fff; background: var(--navy); border-radius: 6px; font-size: 11px; font-weight: 800; }
.question-editor-head strong { color: var(--navy); font-size: 13px; }
.question-editor-head button { padding: 2px 5px; color: #9aabb4; background: none; border: 0; font-size: 18px; }
.question-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 12px; }
.question-editor-grid .wide { grid-column: 1 / -1; }
.style-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 40px; color: #6b7e8a; font-size: 11px; }
.style-controls > span { font-weight: 750; }
.style-controls .inline-control { min-height: auto; }
.color-control { width: 34px !important; height: 30px !important; padding: 2px !important; border-radius: 6px !important; cursor: pointer; }
.inline-control { display: flex; align-items: center; gap: 7px; min-height: 40px; color: #5f7481; font-size: 12px; font-weight: 650; }
.inline-control input[type="checkbox"], .check-list input[type="checkbox"], .check-grid input[type="checkbox"] { accent-color: var(--green); }
.option-editor, .matrix-editor, .logic-editor { margin-top: 13px; padding-top: 13px; border-top: 1px solid #e8eff1; }
.option-editor > span, .matrix-editor > span, .logic-editor > span { display: block; margin-bottom: 6px; color: #6b7e8a; font-size: 11px; font-weight: 750; }
.option-editor textarea, .matrix-editor textarea { min-height: 58px; }
.logic-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-editor, .selection-editor { margin-top: 13px; padding-top: 13px; border-top: 1px solid #e8eff1; }
.range-editor > span, .selection-editor > span { display: block; margin-bottom: 6px; color: #6b7e8a; font-size: 11px; font-weight: 750; }
.add-question-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 9px; margin-top: 15px; }
.add-question-row select { min-height: 52px; }
.add-question-row .add-question { margin-top: 0; }
.add-question { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 15px; color: var(--green); background: #f7fcfb; border: 1px dashed #9bd6ca; border-radius: 8px; font-weight: 750; }
.add-question span { margin-right: 7px; font-size: 20px; }
.inline-note { margin: 12px 0 0; padding: 10px 12px; color: #748792; background: #f5fafb; border-radius: 7px; font-size: 11px; }
.builder-inspector { padding: 22px 20px; }
.inspector-head { padding-bottom: 17px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.inspector-head h2 { margin: 4px 0 0; color: var(--navy); font-size: 18px; }
.builder-inspector > label { margin-bottom: 16px; }
.check-list { display: grid; gap: 9px; margin-bottom: 12px; }
.check-list label, .check-grid label { display: flex; align-items: center; gap: 7px; color: #526b7a; font-size: 12px; font-weight: 650; }
.check-list input, .check-grid input { width: 15px; height: 15px; margin: 0; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; }
.field-note, .inspector-note, .public-link { margin: 0 0 17px; color: #81919a; font-size: 11px; line-height: 1.6; }
.inspector-note { display: grid; gap: 4px; padding: 12px; background: #f5fafb; border-left: 3px solid #8cddd7; }
.inspector-note strong { color: var(--navy); font-size: 12px; }
.public-link { padding-top: 15px; border-top: 1px solid var(--line); }
.public-link span { display: block; margin-bottom: 4px; color: var(--navy); font-weight: 750; }
.public-link a { display: block; overflow-wrap: anywhere; color: var(--green); font-size: 11px; }

.results-panel { padding-bottom: 28px; }
.result-question { padding: 19px 0 21px; border-top: 1px solid #e8eff1; }
.result-question h3 { margin: 0 0 16px; color: var(--navy); font-size: 14px; }
.bar-row { max-width: 650px; margin: 10px 0; }
.bar-row > div:first-child { display: flex; justify-content: space-between; gap: 15px; color: #657b88; font-size: 12px; }
.bar-row strong { color: var(--navy); }
.bar-track { height: 8px; margin-top: 5px; overflow: hidden; background: #edf3f5; border-radius: 999px; }
.bar-track i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.numeric-summary { display: inline-block; margin: 5px 0 0; padding: 11px 13px; color: #356b65; background: var(--green-soft); border-radius: 7px; font-size: 13px; }

.distribution-shell { display: grid; gap: 16px; width: min(100%, 1080px); margin: 0 auto; }
.distribution-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 4px 18px rgba(24, 51, 77, .025); }
.distribution-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.distribution-card h2 { margin: 5px 0 3px; color: var(--navy); font-size: 19px; letter-spacing: -.035em; }
.distribution-card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.share-layout { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; align-items: center; padding-top: 22px; }
.share-link label { color: #586f7e; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 6px; }
.copy-row input { min-width: 0; color: var(--navy); background: #f7fafb; }
.share-link .field-note { margin-top: 9px; }
.qr-card { display: grid; justify-items: center; gap: 8px; color: #718391; font-size: 11px; }
.qr-card img { display: block; width: 170px; height: 170px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.distribution-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-top: 20px; }
.distribution-buttons { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 20px; }
.distribution-card > .field-note { margin: 12px 0 0; }
.distribution-meta { display: flex; flex-wrap: wrap; gap: 22px; padding: 4px 2px; color: #83929a; font-size: 11px; }
.distribution-meta strong { margin-left: 5px; color: var(--navy); font-size: 12px; }

.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(60px, 8vw, 120px); align-items: center; width: min(100%, 1160px); min-height: calc(100vh - 96px); margin: 0 auto; padding: 48px 32px; }
.login-intro { max-width: 560px; }
.login-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 13px; font-weight: 850; letter-spacing: .18em; }
.login-kicker .brand-mark { width: 42px; height: 42px; font-size: 17px; }
.login-intro h1 { margin: 30px 0 22px; color: var(--navy-2); font-size: clamp(42px, 5vw, 62px); letter-spacing: -.075em; line-height: 1.14; }
.login-intro h1 span, .login-intro h1 em { display: block; }
.login-intro h1 em { color: var(--green); font-style: normal; }
.login-intro > p { max-width: 420px; margin: 0; color: #708391; font-size: 15px; line-height: 1.7; }
.login-note { display: flex; align-items: center; gap: 9px; margin-top: 36px; color: #91a1a9; font-size: 12px; }
.login-card { width: 100%; max-width: 380px; justify-self: end; padding: 30px 30px 28px; background: #fff; border: 1px solid #d8e5e9; border-radius: 16px; box-shadow: 0 20px 55px rgba(24, 51, 77, .08); }
.login-card-mark { display: flex; align-items: center; gap: 9px; color: #80919a; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.login-card-mark .brand-mark { width: 29px; height: 29px; border-radius: 8px 8px 8px 3px; font-size: 12px; }
.login-card h2 { margin: 24px 0 5px; color: var(--navy); font-size: 25px; letter-spacing: -.04em; }
.login-card > p { margin: 0 0 22px; font-size: 12px; }
.login-card form { display: grid; gap: 13px; }
.login-card .button { width: 100%; min-height: 48px; margin-top: 5px; }
.form-footnote { color: #95a1a7; font-size: 11px; line-height: 1.65; }

.public-shell .page-main { width: 100%; margin: 0; padding: 0; }
.form-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: min(100%, 840px); margin: 0 auto; padding: 27px 20px 18px; color: #8b9aa2; font-size: 11px; }
.public-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); font-size: 14px; font-weight: 850; }
.public-brand .brand-mark { width: 33px; height: 33px; border-width: 1px; border-radius: 9px 9px 9px 3px; font-size: 13px; }
.deadline-note { padding: 4px 8px; color: #8a6850; background: #fff7ed; border: 1px solid #f0dfc7; border-radius: 999px; }
.anonymous-note { margin-left: auto; }
.form-container { width: min(100%, 720px); margin: 0 auto; padding: 65px 20px 42px; }
.form-heading { margin-bottom: 34px; }
.form-line { width: 44px; height: 4px; margin-bottom: 21px; background: var(--green); border-radius: 999px; }
.form-heading h1 { max-width: 680px; margin: 0; color: var(--navy); font-size: clamp(31px, 5vw, 48px); letter-spacing: -.065em; line-height: 1.18; }
.form-heading p { max-width: 600px; margin: 15px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.progress-track { display: grid; gap: 8px; margin-bottom: 34px; color: #8a9aa2; font-size: 11px; }
.progress-track > div { height: 4px; overflow: hidden; background: #e8f0f2; border-radius: 99px; }
.progress-track i { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .25s; }
.form-page { display: none; }
.form-page.active { display: block; animation: fade-in .2s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-title { padding: 0 0 17px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.page-title > span { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.page-title h2 { margin: 5px 0 0; color: var(--navy); font-size: 22px; letter-spacing: -.04em; }
.page-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.question-block, .basic-info-block { position: relative; padding: 26px 0 28px; border-bottom: 1px solid #e3ecef; }
.question-heading { display: flex; align-items: flex-start; gap: 13px; }
.question-number { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; margin-top: 1px; color: #0b8d7b; background: var(--green-soft); border-radius: 6px; font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.question-heading h3 { margin: 0; color: var(--navy); font-size: 17px; letter-spacing: -.025em; line-height: 1.5; }
.field-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; margin-top: 1px; color: #0b8d7b; background: var(--green-soft); border-radius: 8px; }
.field-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.question-title-text { display: inline; }
.required-mark, .optional-mark { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; font-size: 10px; font-weight: 750; vertical-align: 2px; }
.required-mark { color: #a04d45; background: #fff0ef; }
.optional-mark { color: #778993; background: #eef3f5; }
.question-description { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.choice-list { display: grid; gap: 9px; margin: 19px 0 0 43px; }
.choice { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 10px; min-height: 47px; padding: 10px 13px; color: #455f70; background: #fff; border: 1px solid #dce7eb; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; transition: border .15s, background .15s; }
.choice:hover { border-color: #a3d2c9; background: #f8fdfc; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-box { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; border: 1.5px solid #a9bbc4; border-radius: 50%; }
.choice input[type="checkbox"] + .choice-box { border-radius: 4px; }
.choice input:checked + .choice-box { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 4px #fff; }
.text-control { display: block; width: calc(100% - 43px); margin: 18px 0 0 43px; min-height: 46px; padding: 11px 13px; color: var(--ink); border-radius: 7px; font-size: 13px; }
textarea.text-control { min-height: 112px; }
.rating-list { display: flex; gap: 8px; margin: 20px 0 0 43px; }
.rating-list label { display: block; }
.rating-list input { position: absolute; opacity: 0; }
.rating-list span { display: grid; place-items: center; width: 45px; height: 45px; color: #5e7381; border: 1px solid #cadbe1; border-radius: 7px; cursor: pointer; }
.rating-list span:hover { border-color: #85cbbf; }
.rating-list input:checked + span { color: #fff; background: var(--green); border-color: var(--green); }
.rating-ends { display: flex; justify-content: space-between; margin: 7px 0 0 43px; color: #99a7ad; font-size: 10px; }
.nps-list { display: flex; gap: 5px; margin: 20px 0 0 43px; flex-wrap: wrap; }
.nps-list label { display: block; }
.nps-list input { position: absolute; opacity: 0; }
.nps-list span { display: grid; place-items: center; width: 38px; height: 38px; color: #5e7381; border: 1px solid #cadbe1; border-radius: 6px; cursor: pointer; font-size: 12px; }
.nps-list span:hover { border-color: #85cbbf; }
.nps-list input:checked + span { color: #fff; background: var(--green); border-color: var(--green); }
.slider-control { display: flex; align-items: center; gap: 14px; margin: 20px 0 0 43px; }
.slider-control input { flex: 1; accent-color: var(--green); }
.slider-control output { display: grid; place-items: center; min-width: 55px; min-height: 38px; color: var(--navy); background: var(--green-soft); border-radius: 7px; font-size: 14px; font-weight: 800; }
.ranking-list { display: grid; gap: 9px; margin: 18px 0 0 43px; }
.ranking-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; gap: 12px; min-height: 45px; padding: 8px 11px; color: #455f70; border: 1px solid #dce7eb; border-radius: 7px; font-size: 13px; }
.ranking-row select { height: 34px; }
.input-hint { margin: 7px 0 0 43px; color: #99a7ad; font-size: 10px; }
.multi-text-list, .constant-sum { display: grid; gap: 10px; margin: 18px 0 0 43px; }
.multi-text-row, .sum-row { display: grid; grid-template-columns: minmax(110px, .35fr) minmax(0, 1fr); align-items: center; gap: 12px; color: #526b7a; font-size: 13px; }
.multi-text-row .text-control, .sum-row .text-control { width: 100%; margin: 0; }
.sum-total { padding-top: 7px; color: #718391; font-size: 12px; }
.sum-total strong { color: var(--green); font-size: 16px; }
.consent-choice { display: flex; align-items: center; gap: 9px; margin: 18px 0 0 43px; color: #526b7a; font-size: 13px; }
.consent-choice input { width: 17px; height: 17px; accent-color: var(--green); }
.location-control { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin: 18px 0 0 43px; }
.location-control .button { min-height: 38px; }
.location-control span { color: #84949d; font-size: 11px; }
.matrix-wrap { margin: 18px 0 0 43px; overflow-x: auto; border: 1px solid #dce7eb; border-radius: 7px; }
.matrix { min-width: 580px; width: 100%; border-collapse: collapse; }
.matrix th, .matrix td { padding: 9px 7px; text-align: center; border-bottom: 1px solid #e7eef1; }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.matrix thead th { color: #81929b; background: #f6fafb; font-size: 10px; font-weight: 700; }
.matrix tbody th { min-width: 110px; color: #506878; font-size: 11px; font-weight: 650; text-align: left; }
.matrix-choice { display: grid; place-items: center; cursor: pointer; }
.matrix-choice input { position: absolute; opacity: 0; }
.matrix-choice span { display: inline-block; width: 16px; height: 16px; border: 1.5px solid #a9bbc4; border-radius: 50%; }
.matrix-choice input:checked + span { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 4px #fff; }
.matrix-choice em { display: none; }
.basic-info-block { margin-top: 15px; }
.basic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0 43px; }
.basic-grid label { color: #667d8b; font-size: 11px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; padding: 26px 0 0; }
.form-actions #next-page { margin-left: auto; }
.form-error-summary { margin-top: 18px; padding: 11px 13px; color: #9c4343; background: #fff3f2; border: 1px solid #f0ceca; border-radius: 7px; font-size: 12px; }
.field-error { margin: 10px 0 0 43px; color: var(--danger); font-size: 11px; }
.question-block.has-error .question-heading h3 { color: #9a4a45; }
.question-block.has-error .choice, .question-block.has-error .text-control, .question-block.has-error .matrix-wrap, .question-block.has-error .ranking-row, .question-block.has-error .constant-sum { border-color: #df9c97; }
.basic-grid .field-error { margin-left: 0; }
.form-footer { padding: 58px 0 0; color: #a0abb0; font-size: 11px; text-align: center; }
.preview-banner { width: min(100%, 720px); margin: 0 auto; padding: 10px 20px; color: #536c7b; background: #eef7f7; border-bottom: 1px solid #d6e9e5; font-size: 12px; text-align: center; }
.preview-banner a { margin-left: 8px; color: var(--green); font-weight: 750; }
.unavailable { display: grid; place-items: center; min-height: 80vh; padding: 30px; text-align: center; }
.unavailable-mark { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; color: var(--green); border: 1px solid #a8d9cf; border-radius: 11px; font-size: 24px; }
.unavailable h1 { margin: 0; color: var(--navy); font-size: 30px; letter-spacing: -.05em; }
.unavailable p { margin: 8px 0 19px; color: var(--muted); }

@media (max-width: 980px) {
  .rail { width: 210px; }
  .page-main { margin-left: 210px; padding-right: 28px; padding-left: 28px; }
  .survey-row-meta { gap: 9px; }
  .survey-row-meta > span:nth-child(3) { display: none; }
  .builder-shell { grid-template-columns: 1fr; }
  .builder-inspector { display: grid; grid-template-columns: 1fr 1fr; gap: 0 17px; }
  .builder-inspector .inspector-head, .builder-inspector .inspector-note, .builder-inspector .public-link { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .rail { display: none; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 10px; background: #f8fbfc; }
  .mobile-bar .brand-mark { width: 35px; height: 35px; font-size: 14px; }
  .mobile-bar .brand strong { color: var(--navy); font-size: 15px; }
  .mobile-bar .brand small { color: var(--muted); }
  .icon-link { display: grid; place-items: center; width: 35px; height: 35px; color: var(--green); border: 1px solid #a7d6cd; border-radius: 7px; font-size: 20px; }
  .page-main { width: 100%; margin: 0; padding: 23px 16px 35px; }
  .content-head { display: block; margin-bottom: 25px; }
  .content-head h1 { font-size: 31px; }
  .content-head .head-actions { margin-top: 16px; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-strip > div { padding: 15px 14px; }
  .metric-strip > div:nth-child(2) { border-right: 0; }
  .metric-strip > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .metric-strip strong { font-size: 28px; }
  .workspace-panel, .results-panel, .builder-main, .builder-inspector { padding: 16px; border-radius: 9px; }
  .panel-head { display: block; }
  .panel-head .text-link { display: inline-block; margin-top: 10px; }
  .survey-row { display: block; padding: 15px 2px; }
  .survey-row-meta { display: flex; justify-content: flex-start; margin: 9px 0 0 51px; }
  .survey-row-meta > span:nth-child(2) { display: none; }
  .survey-row-main span { max-width: 240px; }
  .builder-toolbar { display: block; }
  .toolbar-actions { justify-content: flex-start; margin-top: 14px; }
  .builder-inspector { display: block; }
  .distribution-card { padding: 16px; border-radius: 9px; }
  .distribution-card-head { display: block; }
  .distribution-card-head > .status { margin-top: 12px; }
  .share-layout, .distribution-fields { grid-template-columns: 1fr; }
  .qr-card { justify-items: start; }
  .qr-card img { width: 150px; height: 150px; }
  .question-editor-grid { grid-template-columns: 1fr; }
  .question-editor-grid .wide { grid-column: auto; }
  .logic-row { grid-template-columns: 1fr; }
  .add-question-row { grid-template-columns: 1fr; }
  .login-layout { display: block; min-height: auto; padding: 32px 20px; }
  .login-intro h1 { margin-top: 22px; font-size: 44px; }
  .login-intro h1 em { white-space: normal; }
  .login-intro > p { font-size: 14px; }
  .login-note { margin-top: 22px; }
  .login-card { margin-top: 42px; padding: 27px 23px 23px; }
  .form-top { flex-wrap: wrap; padding: 18px 16px 11px; }
  .anonymous-note { width: 100%; margin: 0; }
  .form-container { padding: 43px 16px 30px; }
  .form-heading h1 { font-size: 34px; }
  .question-heading h3 { font-size: 16px; }
  .choice-list, .text-control, .rating-list, .rating-ends, .matrix-wrap, .basic-grid, .field-error, .multi-text-list, .constant-sum { margin-left: 0; }
  .text-control { width: 100%; }
  .rating-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .rating-list span { width: auto; height: 41px; }
  .nps-list, .slider-control, .ranking-list, .input-hint, .consent-choice { margin-left: 0; }
  .location-control { margin-left: 0; }
  .nps-list { gap: 4px; }
  .nps-list { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); }
  .nps-list span { width: auto; min-width: 0; height: 36px; }
  .ranking-row { grid-template-columns: minmax(0, 1fr) 83px; }
  .multi-text-row, .sum-row { grid-template-columns: 1fr; gap: 5px; }
  .basic-grid { grid-template-columns: 1fr; }
  .matrix-wrap { margin-right: 0; overflow: visible; border-right: 1px solid #dce7eb; border-radius: 7px; }
  .matrix { min-width: 0; display: block; }
  .matrix thead { display: none; }
  .matrix tbody, .matrix tr { display: block; }
  .matrix tr { padding: 13px 10px; border-bottom: 1px solid #e7eef1; }
  .matrix tr:last-child { border-bottom: 0; }
  .matrix tbody th { min-width: 0; padding: 0 0 9px; }
  .matrix td { display: inline-block; padding: 0; border: 0; }
  .matrix-choice { display: block; }
  .matrix-choice em { display: block; margin: 0 5px 5px 0; padding: 6px 8px; color: #5e7381; border: 1px solid #cadbe1; border-radius: 6px; font-size: 11px; font-style: normal; }
  .matrix-choice input:checked ~ em { color: #fff; background: var(--green); border-color: var(--green); }
  .form-actions { position: sticky; bottom: 0; z-index: 1; margin: 0 -16px; padding: 14px 16px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
}
