:root {
  color-scheme: light;
  font-family: Inter, "Aptos", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a2821;
  background: #f5f7f4;
  font-size: 16px;
  font-synthesis: none;
  --ink: #1a2821;
  --soft: #586760;
  --strong: #245940;
  --line: #dfe6df;
  --paper: #ffffff;
  --canvas: #f5f7f4;
  --forest: #13251e;
  --lime: #d6fa9b;
  --green: #2b6248;
  --radius: 17px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #397b5a;
  outline-offset: 3px;
}
button { color: inherit; }
button, input, select, textarea { max-width: 100%; }
a { color: inherit; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { letter-spacing: -.025em; font-weight: 650; }
p { line-height: 1.55; }
textarea { resize: vertical; }
.icon {
  --icon-size: 20px;
  width: var(--icon-size);
  height: var(--icon-size);
  flex: 0 0 var(--icon-size);
  display: inline-block;
  vertical-align: middle;
  background: currentColor;
  mask: var(--icon-src) center / contain no-repeat;
}
.shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.rail {
  display: flex; flex-direction: column; position: sticky; top: 0; align-self: start;
  height: 100dvh; background: var(--forest); color: #ecf3ec; padding: 26px 16px 14px; z-index: 5;
}
.brand { display: flex; gap: 11px; align-items: center; text-align: left; margin: 0 2px 44px 3px; }
.brand-mark { background: var(--lime); width: 40px; height: 40px; color: var(--forest); flex: 0 0 40px; border-radius: 11px; display: grid; place-items: center; }
.brand-mark .icon { --icon-size: 25px; }
.brand-name { font-size: .99rem; font-weight: 750; letter-spacing: -.045em; line-height: 1.19; }
.brand-name small { display: block; color: #a6baad; font-size: .72rem; font-weight: 500; margin-top: 3px; letter-spacing: .005em; }
.rail-label { padding: 0 11px 10px; color: #a9bcb0; font-size: .72rem; font-weight: 660; letter-spacing: .10em; text-transform: uppercase; }
.rail-nav { display: grid; gap: 5px; }
.rail-item {
  text-align: left; width: 100%; border: 0; background: transparent; color: #c2d1c6;
  padding: 11px 11px; border-radius: 9px; font-size: .91rem; display: flex; gap: 12px; align-items: center;
}
.rail-item .icon { --icon-size: 19px; }
.rail-item:hover { background: #213b30; color: white; }
.rail-item[aria-current="page"] { background: #2b4639; color: #edffdd; font-weight: 680; }
.rail-item[aria-current="page"] .icon { color: var(--lime); }
.rail-bottom { margin-top: auto; display: grid; gap: 13px; }
.rail-links { display: flex; flex-wrap: wrap; gap: 3px 8px; padding: 0 2px 2px; }
.rail-links a { color: #aebfb2; font-size: .7rem; font-weight: 500; text-decoration: none; }
.rail-links a:hover { color: #fff; text-decoration: underline; }
.rail-links a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 3px; }
.account { border-top: 1px solid #365043; padding: 12px 2px 2px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; background: #e5edb8; color: #283822; font-size: .79rem; font-weight: 780; flex: 0 0 auto; }
.account-text { font-size: .83rem; font-weight: 660; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-text small { display: block; color: #a9bead; font-size: .72rem; font-weight: 500; margin-top: 2px; }
.main { min-width: 0; }
.topbar { height: 65px; padding: 0 36px; display: flex; justify-content: space-between; gap: 16px; align-items: center; background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; min-width: 0; color: #52645a; font-size: .875rem; }
.breadcrumbs button { color: inherit; padding: 4px 0; border: 0; background: none; }
.breadcrumbs button:hover { color: var(--green); text-decoration: underline; }
.breadcrumbs strong { color: var(--ink); font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs .icon { --icon-size: 15px; color: #819086; }
.top-ops { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.top-search { display: flex; align-items: center; gap: 8px; color: #4e6057; background: #f5f7f5; border: 1px solid #e7ece8; border-radius: 8px; font-size: .825rem; height: 35px; padding: 0 9px; }
.top-search .icon { --icon-size: 16px; }
kbd { border: 1px solid #dde6de; background: #fff; border-radius: 5px; padding: 2px 5px; font: 600 .7rem system-ui; color: #5c6b62; margin-left: 10px; }
.top-avatar { width: 32px; height: 32px; background: #e4ebe2; }
.page { max-width: 1420px; margin: 0 auto; padding: 36px 40px 54px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.page-head h1 { font-size: clamp(2rem,3vw,2.9rem); font-weight: 750; line-height: 1.06; }
.page-head p { margin-top: 6px; color: var(--soft); font-size: .94rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px;
  padding: 8px 13px; border-radius: 9px; border: 1px solid var(--line); background: white;
  color: var(--ink); font-size: .86rem; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.btn .icon { --icon-size: 17px; }
.btn:hover { background: #f2f6f2; border-color: #bdd1c3; }
.btn.primary { background: #254e39; color: white; border-color: transparent; }
.btn.primary:hover { background: #316549; }
.btn.lime { background: var(--lime); color: #1f321e; border-color: transparent; }
.btn.lime:hover { background: #e5ffbc; }
.btn.subtle { background: transparent; border-color: transparent; }
.btn.danger { background: #a32834; border-color: transparent; color: white; }
.btn.danger:hover { background: #89212c; }
.btn.small { min-height: 34px; padding: 6px 10px; font-size: .8rem; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; color: #53675b; background: white; border: 1px solid var(--line); border-radius: 8px; }
.icon-btn .icon { --icon-size: 17px; }
.icon-btn:hover { background: #edf4ee; }
.icon-btn.flat { border: 0; background: transparent; }
.icon-btn.flat:hover { background: #edf4ee; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: .78rem; letter-spacing: .105em; text-transform: uppercase; font-weight: 740; }
.eyebrow .icon { --icon-size: 16px; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 20px;
  padding: 24px 27px 23px; min-height: 262px; background: linear-gradient(110deg, #f4eef9, #e6d9f4); border: 1px solid #e5d9ee; color: #2f2044;
  display: flex; justify-content: space-between; align-items: center;
}
.hero-main { position: relative; z-index: 2; width: min(615px, 67%); }
.hero .eyebrow { color: #5e4283; }
.hero h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem,3.5vw,3.15rem); line-height: 1.12; letter-spacing: -.051em; font-weight: 400; margin: 7px 0 7px; }
.hero p { color: #604d72; font-size: .91rem; }
.prompt-row {
  display: flex; position: relative; align-items: flex-end; gap: 8px; margin: 18px 0 12px; padding: 8px;
  border: 1px solid #cfc0e0; border-radius: 11px; background: #ffffff; min-height: 52px;
}
.prompt-row:focus-within { border-color: #966ebd; box-shadow: 0 0 0 1px #966ebd; }
.prompt-row textarea {
  flex: 1; width: 100%; min-width: 0; min-height: 104px; max-height: 260px; border: 0; background: none; color: #302140;
  padding: 7px 8px; font: inherit; font-size: .95rem; line-height: 1.5; outline: none; resize: vertical;
}
.prompt-row textarea::placeholder { color: #6d5a7f; opacity: 1; }
.prompt-row .btn { min-height: 37px; background: #503479; border-color: #503479; color: white; }
.prompt-row .btn:hover { background: #634391; border-color: #634391; }
.suggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.suggestion {
  padding: 5px 9px; border: 1px solid #d5c5e7; border-radius: 6px; background: #f6effb;
  color: #55416c; font-size: .76rem; line-height: 1.22; font-weight: 590;
}
.suggestion:hover { background: #e9ddf5; color: #432c5f; border-color: #ac8cc6; }
.hero-drawing { position: absolute; inset: 0 0 0 63%; color: #8661ad; pointer-events: none; }
.hero-drawing::before {
  content: ""; position: absolute; inset: -125px -170px -130px -40px;
  opacity: .4; background: repeating-radial-gradient(ellipse at 46% 54%, transparent 0 18px, #b89bd2 19px 20px, transparent 21px 31px);
  transform: rotate(-18deg); mask: linear-gradient(90deg,transparent,#000 30%);
}
.hero-card { position: absolute; width: 128px; height: 147px; border-radius: 11px; background: #fbf7ff; box-shadow: 0 13px 37px #4d316040; padding: 12px; border: 1px solid #d7c5e8; }
.hero-card.back { right: 40px; top: 45px; transform: rotate(14deg); background: #e0d1f1; }
.hero-card.front { right: 111px; top: 72px; transform: rotate(-11deg); }
.hero-card .sheet-badge { background: #eadcf5; color: #654395; width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 10px; }
.sheet-badge .icon { --icon-size: 17px; }
.sheet-line { display: block; height: 5px; border-radius: 5px; background: #b8cdb2; margin-bottom: 7px; }
.sheet-line.ink { background: #62856d; }
.hero-card .sheet-line { background: #d6c7e6; }
.hero-card .sheet-line.ink { background: #9c7bb8; }
.hero-card .sheet-choice i { border-color: #ac91c0; }
.hero-card .sheet-choice { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.sheet-choice i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #7d9e81; }
.sheet-choice .sheet-line { margin: 0; }
.hero-drawing .glint { position: absolute; font-size: 30px; right: 54px; top: 29px; }
.hero-drawing .glint.second { font-size: 19px; right: 53px; top: 213px; }
.hero-drawing .glint.third { font-size: 16px; right: 250px; top: 53px; opacity: .65; }
.library { margin-top: 31px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-heading h2 { font-size: 1.45rem; line-height: 1.2; }
.section-heading .count { margin-left: 7px; color: #5a6c5f; font-weight: 600; font-size: .82rem; vertical-align: middle; }
.library-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.switcher { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.pill-tab { border: none; background: transparent; color: #506256; padding: 7px 11px; min-height: 35px; border-radius: 7px; font-size: .845rem; font-weight: 620; white-space: nowrap; }
.pill-tab:hover { background: #e8eee8; }
.pill-tab[aria-pressed="true"] { background: #e3eee1; color: #244e37; font-weight: 700; }
.library-controls .search-label { width: min(225px, 48%); }
.search-label { display: flex; align-items: center; gap: 8px; padding: 0 10px; min-height: 37px; color: #607166; border: 1px solid var(--line); background: white; border-radius: 8px; }
.search-label .icon { --icon-size: 16px; }
.search-label input { flex: 1; border: 0; background: transparent; padding: 7px 0; min-width: 0; width: 100%; font-size: .85rem; outline: none; }
.search-label:focus-within { outline: 2px solid #397b5a; outline-offset: 2px; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.form-card { min-width: 0; display: block; text-align: left; padding: 0; border: 1px solid var(--line); background: white; border-radius: 13px; overflow: hidden; }
.form-card:hover { border-color: #8eae98; box-shadow: 0 5px 15px #1b3f2610; transform: translateY(-1px); }
.form-art {
  position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: center; align-items: flex-start;
  height: 101px; background: var(--art-bg,#e6f0de); color: var(--art-fg,#4d8050); padding-top: 21px;
}
.form-art::before {
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: .64;
  background-image: radial-gradient(currentColor .7px, transparent .9px);
  background-size: 12px 12px; mask: linear-gradient(90deg,#000,transparent 45%,transparent 60%,#000);
}
.form-art .mini-sheet {
  width: 128px; min-height: 102px; background: #ffffffee; box-shadow: 0 5px 16px #182e2620;
  border: 1px solid #ffffff9c; border-radius: 8px 8px 0 0; padding: 8px 9px;
}
.form-art .sheet-badge { background: var(--art-bg); width: 22px; height: 21px; border-radius: 6px; display: grid; place-items: center; margin-bottom: 6px; }
.form-art .sheet-badge .icon { --icon-size: 13px; }
.form-art .sheet-line { height: 4px; margin-bottom: 5px; background: currentColor; opacity: .22; }
.form-art .sheet-line.ink { opacity: .72; }
.form-art .sheet-choice { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.form-art .sheet-choice i { width: 7px; height: 7px; border-color: currentColor; opacity: .55; }
.form-art .sheet-choice .sheet-line { margin: 0; }
.form-info { display: grid; gap: 9px; padding: 13px 13px 12px; }
.form-card-title { color: #1c2b22; font-size: 1rem; line-height: 1.28; font-weight: 710; letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-meta { display: flex; gap: 9px; justify-content: space-between; align-items: center; color: #5b6e61; font-size: .78rem; }
.form-meta > span:last-child { display: inline-flex; gap: 5px; align-items: center; }
.form-meta .icon { --icon-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; font-size: .74rem; font-weight: 690; line-height: 1.15; white-space: nowrap; background: #ecf0ed; color: #515d56; }
.status::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status.open { background: #e4f1e4; color: #296243; }
.status.closed { background: #f6eddd; color: #7b5729; }
.empty { text-align: center; padding: 38px 20px; background: white; border: 1px dashed #bacabf; border-radius: 13px; color: #5b6e62; }
.empty h2, .empty h3 { margin-bottom: 7px; color: var(--ink); }
.empty p { max-width: 430px; margin: 0 auto; }
.empty .btn { margin-top: 13px; }
.editor-page { padding-top: 24px; }
.editor-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 20px; }
.editor-title { min-width: 0; }
.editor-title h1 { font-weight: 680; font-size: clamp(1.45rem,3vw,2.22rem); line-height: 1.14; overflow-wrap: anywhere; }
.editor-title .title-meta { margin-top: 8px; display: flex; gap: 9px; align-items: center; color: var(--soft); font-size: .78rem; }
.toolbar { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.editor-tabs { display: flex; gap: 16px; align-items: stretch; border-bottom: 1px solid #d7e2d9; margin-bottom: 21px; }
.editor-tab { min-height: 40px; display: flex; align-items: center; gap: 6px; border: 0; background: transparent; font-size: .9rem; color: #526359; font-weight: 520; padding: 0 8px 9px; border-bottom: 2px solid transparent; }
.editor-tab .icon { --icon-size: 17px; }
.editor-tab:hover { color: var(--strong); }
.editor-tab[aria-current="page"] { font-weight: 640; color: #28593e; border-bottom-color: #4a885e; }
.tab-num { background: #e4eee1; font-size: .69rem; border-radius: 5px; padding: 2px 5px; }
.editor-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,298px); align-items: start; gap: 18px; }
.editor-stack { min-width: 0; display: grid; gap: 13px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 13px; }
.title-card { border-top: 5px solid #5c9570; padding: 20px; }
.title-card h2 { font-size: 1.37rem; }
.field { display: grid; gap: 7px; margin-bottom: 16px; font-size: .82rem; font-weight: 540; color: #4b5e53; }
.field:last-child { margin-bottom: 0; }
.field input, .field textarea, .field select, .text-input {
  width: 100%; min-height: 41px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid #d6e1d7; background: #fff; color: var(--ink); font-size: .92rem; font-weight: 400;
}
.field textarea { min-height: 75px; }
.field select { appearance: none; background: white url("./icons/chevron-down.png") right 11px center / 15px no-repeat; padding-right: 30px; }
.field .help { color: #586a5e; font-weight: 450; font-size: .79rem; line-height: 1.4; }
.field .plain-input { border-color: transparent; padding: 5px 2px; border-radius: 4px; border-bottom-color: #e1e9e2; }
.title-card .field:first-child input { font-weight: 650; font-size: 1.3rem; letter-spacing: -.02em; }
.editor-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.editor-section-head h2 { font-size: 1.15rem; font-weight: 640; }
.question {
  position: relative; padding: 14px 14px 14px 44px; min-height: 101px; cursor: pointer;
  border: 1px solid var(--line); background: white; border-radius: 12px; display: grid; gap: 10px;
}
.question:hover { border-color: #8eb69a; }
.question.selected { border-color: #70a47e; box-shadow: inset 3px 0 #70a47e; }
.question.dragging { opacity: .55; }
.question.drop-target { outline: 2px dashed #77a387; outline-offset: 1px; }
.drag { position: absolute; left: 8px; top: 11px; width: 29px; height: 30px; cursor: grab; }
.question .select-item { position: absolute; left: 12px; top: 17px; width: 16px; height: 16px; accent-color: #3f7953; margin: 0; }
.question-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #5d7264; font-size: .76rem; font-weight: 500; }
.question-label .icon { --icon-size: 14px; }
.question h3 { font-size: 1rem; font-weight: 500; letter-spacing: -.012em; line-height: 1.35; margin-top: 4px; overflow-wrap: anywhere; }
.required { color: #ac3945; margin-left: 3px; }
.option-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.option-preview span { border: 1px solid #e2e9e3; background: #f7f9f7; color: #43564a; font-size: .75rem; padding: 4px 8px; border-radius: 5px; overflow-wrap: anywhere; max-width: 100%; }
.text-preview { color: #697972; font-size: .76rem; padding-bottom: 5px; border-bottom: 1px solid #e0e8e0; width: min(290px,95%); }
.inspector { position: sticky; top: 18px; padding: 16px; border-top: 3px solid #70a47e; }
.inspector-context { display: grid; gap: 2px; margin: 0 0 16px; padding: 9px 11px; border-radius: 9px; background: #eff6ee; border-left: 3px solid #70a47e; font-size: .82rem; color: #3f5a47; }
.inspector-context span { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: #5d7c66; }
.inspector-context strong { font-weight: 600; color: #1f3a2a; font-size: .92rem; }
.inspector-context small { color: #5a6f60; font-size: .76rem; line-height: 1.35; }
.inspector h2 { font-size: 1.1rem; font-weight: 640; margin-bottom: 14px; }
.inspector-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.inspector-head .icon { --icon-size: 17px; color: #5a7666; }
.inspector .field textarea { min-height: 66px; }
.inline-controls { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 9px; padding-top: 11px; border-top: 1px solid var(--line); }
.inline-controls > div { display: flex; gap: 5px; }
.danger-text { color: #9b303c; }
.check-row { display: flex; gap: 8px; align-items: center; font-size: .86rem; font-weight: 500; color: #33463b; }
.inspector .check-row { margin: 2px 0 16px; }
.check-row input, .preview-form input[type="checkbox"], .preview-form input[type="radio"] { accent-color: #3d7a53; width: 17px; height: 17px; margin: 0; }
.limit-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.settings-panel { padding: 20px; max-width: 740px; }
.settings-panel h2 { margin-bottom: 15px; font-size: 1.23rem; }
.setting-row { padding: 16px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.setting-row h3 { font-size: .96rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.setting-row p { color: var(--soft); font-size: .85rem; }
.settings-panel .field { padding-top: 15px; border-top: 1px solid var(--line); }
.toggle { flex: 0 0 auto; width: 41px; height: 23px; appearance: none; border-radius: 20px; background: #c3cfc5; border: 1px solid transparent; cursor: pointer; margin: 0; position: relative; }
.toggle::before { content: ""; width: 17px; height: 17px; position: absolute; top: 2px; left: 2px; background: white; border-radius: 50%; }
.toggle:checked { background: #367046; }
.toggle:checked::before { left: 20px; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.stat-card { padding: 15px; display: grid; justify-items: start; gap: 7px; }
.stat-icon { background: #eaf3e7; color: #34684a; border-radius: 7px; width: 29px; height: 29px; display: grid; place-items: center; }
.stat-icon .icon { --icon-size: 16px; }
.stat-card .label { font-size: .83rem; font-weight: 610; color: var(--soft); }
.stat-card strong { font-size: 1.65rem; font-weight: 750; line-height: 1.08; letter-spacing: -.05em; overflow-wrap: anywhere; }
.response-layout { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(0,.94fr); gap: 13px; margin-bottom: 16px; }
.chart, .insights { padding: 18px; }
.chart h2, .insights h2, .responses-table h2 { font-size: 1.16rem; }
.chart .caption, .insights .caption { margin: 4px 0 14px; font-size: .82rem; color: var(--soft); }
.bar-list { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 48px minmax(0,1fr) 32px; align-items: center; gap: 8px; font-size: .77rem; color: #465c4d; }
.bar-row strong { text-align: right; }
.bar-track { height: 10px; background: #edf3ec; border-radius: 20px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: #75a87e; }
.bar-row:nth-last-child(1) .bar-track i { background: #377454; }
.insights { background: #eaf3e5; border-color: #d7e6ce; display: flex; flex-direction: column; align-items: flex-start; }
.insights .eyebrow { color: #386445; margin-bottom: 9px; font-size: .7rem; }
.insights .btn { margin-top: auto; }
.insights-result { font-size: .87rem; color: #304b39; margin: 9px 0; }
.insights-result ul { padding-left: 17px; margin: 7px 0; display: grid; gap: 6px; line-height: 1.35; }
.responses-table { overflow: hidden; }
.table-head { padding: 15px; display: flex; justify-content: space-between; align-items: center; gap: 13px; }
.table-scroll { overflow-x: auto; }
table { text-align: left; width: 100%; border-collapse: collapse; font-size: .84rem; white-space: nowrap; }
th { color: #496052; background: #f2f6f2; font-weight: 710; }
td, th { padding: 10px 13px; border-top: 1px solid var(--line); }
.table-head label { max-width: 190px; }
.template-grid { margin-top: 15px; }
.template-card .form-info { gap: 6px; }
.template-card .form-meta { font-size: .83rem; align-items: flex-start; line-height: 1.45; min-height: 40px; }
dialog {
  width: min(490px,calc(100vw - 28px)); border: 1px solid #d2e1d4; border-radius: 16px; padding: 0;
  color: var(--ink); background: white; box-shadow: 0 18px 68px #0b281f44; max-height: 92vh; overflow: auto;
}
dialog.wide { width: min(640px,calc(100vw - 28px)); }
dialog::backdrop { background: #11281db3; }
.dialog-content { padding: 20px; }
.dialog-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 12px; }
.dialog-top h2 { font-size: 1.25rem; font-weight: 640; line-height: 1.18; align-self: center; }
.dialog-content > p { color: var(--soft); margin-bottom: 14px; font-size: .9rem; }
.dialog-footer { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }
.publish-options { display: grid; gap: 8px; }
.publish-option { display: flex; align-items: flex-start; gap: 9px; padding: 9px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.publish-option:has(input:checked) { background: #f1f8ee; border-color: #84a888; }
.publish-option input { accent-color: #3c784e; margin-top: 2px; }
.publish-option p { color: var(--soft); font-size: .83rem; }
.question-types { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.question-types .btn { justify-content: flex-start; white-space: normal; text-align: left; }
.question-types .icon { color: #467955; }
.quick-results { display: grid; gap: 7px; margin-top: 10px; }
.quick-results .btn { justify-content: flex-start; gap: 12px; font-weight: 500; white-space: normal; text-align: left; }
.preview-form { display: grid; gap: 15px; }
.preview-question { display: grid; gap: 7px; font-size: .9rem; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.preview-question .check-row { font-weight: 480; }
.preview-description { color: var(--soft); font-size: .92rem; margin-bottom: 8px; }
.response-detail { display: grid; gap: 12px; }
.response-detail div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.response-detail p { color: var(--soft); font-size: .88rem; margin-top: 4px; }
#toast:empty { display: none; }
#toast {
  position: fixed; z-index: 15; bottom: 16px; right: 17px; max-width: calc(100vw - 34px);
  border-radius: 10px; background: #203b2c; color: #f0faec; padding: 9px 10px 9px 14px;
  box-shadow: 0 6px 18px #172e2040; display: flex; gap: 11px; align-items: center; font-size: .88rem;
}
#toast button { background: #d9efbd; color: #25412c; padding: 5px 8px; border-radius: 5px; border: 0; font-weight: 700; }
.noscript { margin: 25px; }
@media (max-width: 1090px) {
  .shell { grid-template-columns: 193px minmax(0,1fr); }
  .page { padding-left: 25px; padding-right: 25px; }
  .topbar { padding: 0 25px; }
  .brand { gap: 8px; }
  .hero-main { width: min(565px,73%); }
  .hero-card.front { right: 70px; }
  .hero-card.back { right: 24px; }
  .hero-drawing .glint.third { display: none; }
  .editor-layout { grid-template-columns: minmax(0,1fr) minmax(230px,265px); }
}
@media (max-width: 850px) {
  .shell { grid-template-columns: 62px minmax(0,1fr); }
  .rail { padding: 14px 8px 9px; }
  .brand { margin: 0 3px 26px; }
  .brand-name,.rail-label,.rail-item span:last-child,.account-text { display: none; }
  .rail-item { width: 43px; height: 41px; margin: 0 auto; justify-content: center; padding: 0; }
  .account { justify-content: center; }
  .rail-links { display: none; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-main { width: min(545px,76%); }
  .hero-card { width: 106px; height: 121px; }
  .hero-card.front { right: 52px; }
  .hero-card.back { right: 22px; }
  .hero-drawing .glint { right: 31px; }
}
@media (max-width: 650px) {
  .shell { display: block; }
  .rail { position: sticky; top: 0; height: auto; padding: 8px 12px; display: flex; flex-direction: row; align-items: center; gap: 12px; }
  .brand { margin: 0 auto 0 0; }
  .brand-mark { width: 31px; height: 31px; flex-basis: 31px; border-radius: 8px; }
  .brand-mark .icon { --icon-size: 19px; }
  .brand-name { display: block; font-size: .83rem; }
  .brand-name small { display: none; }
  .rail-nav { display: flex; gap: 4px; }
  .rail-item { width: 34px; height: 34px; }
  .rail-bottom { display: none; }
  .topbar { padding: 0 13px; height: 48px; }
  .top-avatar, .top-search kbd, .top-search span:last-of-type { display: none; }
  .top-search { width: 34px; justify-content: center; padding: 0; }
  .page { padding: 20px 13px 34px; }
  .page-head { margin-bottom: 15px; }
  .page-head h1 { font-size: 1.85rem; }
  .page-head p { font-size: .83rem; }
  .hero { min-height: auto; padding: 17px 14px; }
  .hero-main { width: 100%; }
  .hero-drawing { inset: 0 0 0 80%; opacity: .45; }
  .hero-card { display: none; }
  .hero-drawing .glint { right: 12px; top: 16px; }
  .hero h2 { font-size: 1.96rem; }
  .hero p { font-size: .84rem; }
  .prompt-row { margin-top: 11px; }
  .prompt-row textarea { font-size: .88rem; min-height: 92px; }
  .prompt-row .btn { font-size: .79rem; padding: 6px 8px; }
  .prompt-row .btn .icon { display: none; }
  .library { margin-top: 20px; }
  .library-controls { align-items: stretch; flex-direction: column; gap: 6px; }
  .library-controls .search-label { width: 100%; }
  .grid { gap: 8px; }
  .form-art { height: 74px; padding-top: 9px; }
  .form-art .mini-sheet { width: 92px; }
  .form-info { padding: 8px; gap: 6px; }
  .form-card-title { font-size: .9rem; white-space: initial; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .form-meta { font-size: .7rem; gap: 4px; }
  .editor-heading { align-items: start; flex-direction: column; gap: 9px; margin-bottom: 11px; }
  .editor-tabs { gap: 6px; margin-bottom: 12px; }
  .editor-tab { font-size: .82rem; padding-left: 4px; padding-right: 4px; }
  .editor-layout { grid-template-columns: minmax(0,1fr); }
  .inspector { position: static; scroll-margin-top: 60px; }
  .question { padding-right: 9px; }
  .stats { gap: 5px; }
  .stat-card { padding: 8px; }
  .stat-card strong { font-size: 1.12rem; }
  .stat-card .label { font-size: .72rem; }
  .response-layout { grid-template-columns: minmax(0,1fr); }
  .table-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .form-card, .btn, .rail-item, .suggestion { transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--soft); font-size: .88rem; }
.field-help { color: var(--soft); font-size: .77rem; margin: -9px 0 10px; }
.comment-cell { max-width: 290px; overflow: hidden; text-overflow: ellipsis; }
.more-rows { padding: 11px 13px; border-top: 1px solid var(--line); }
.empty-table { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
