:root{
  /* Shadcn-like tokens (light) */
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  --radius: 14px;

  --shadow: 0 1px 2px hsl(0 0% 0% / 0.05), 0 12px 28px hsl(0 0% 0% / 0.08);
  --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.06);
  --shadow-lg: 0 20px 50px hsl(0 0% 0% / 0.12);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  font-size: 15px;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background:
    radial-gradient(1000px 520px at 8% -10%, hsl(var(--accent)) 0%, transparent 60%),
    radial-gradient(1000px 520px at 90% 0%, hsl(var(--secondary)) 0%, transparent 58%),
    hsl(var(--background));
  background-repeat: no-repeat;
  background-size: 120% 60%, 120% 60%, auto;
}

a{ color: hsl(var(--foreground)); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Layout */
.container{ max-width: 1160px; margin: 0 auto; padding: 26px; }
.main{ min-height: calc(100vh - 180px); }
@media (max-width: 768px){
  .container{ padding: 18px; }
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background) / .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 1px 0 hsl(var(--border)), 0 12px 30px hsl(0 0% 0% / 0.05);
}
.topbar__inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height: 64px; }
.topbar__inner{ flex-wrap: wrap; }
.topbar__bar{ display:flex; align-items:center; gap: 12px; }
.brand{ font-weight: 750; letter-spacing: .2px; font-size: 16px; }

.nav-toggle{
  display:none;
  align-items:center;
  gap: 8px;
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 8px 10px;
  border-radius: 999px;
  cursor:pointer;
}
.nav-toggle__icon{
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  display:inline-block;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}
.nav-toggle__icon::before{ top: -6px; }
.nav-toggle__icon::after{ top: 6px; }
.nav-toggle:focus-visible{ outline: none; box-shadow: 0 0 0 4px hsl(var(--ring) / .2); }

.nav{ display:flex; gap: 6px; align-items:center; flex-wrap:wrap; }
.nav a{
  color: hsl(var(--muted-foreground));
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .01em;
}
.nav a:hover{ text-decoration:none; background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.nav a.btn{ padding: 9px 12px; }
@media (max-width: 820px){
  .topbar__inner{ flex-direction:column; align-items:stretch; padding-bottom: 10px; }
  .topbar__bar{ width: 100%; justify-content:space-between; }
  .nav-toggle{ display:inline-flex; }
  .nav{
    width: 100%;
    justify-content:flex-start;
    gap: 6px;
    flex-direction:column;
    align-items:flex-start;
    display:none;
    padding: 6px 0 2px;
  }
  .nav.is-open{ display:flex; }
  .nav a{ width: 100%; }
  .nav a.btn{ width: auto; }
}

/* Typography helpers */
.muted{ color: hsl(var(--muted-foreground)); }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace; }

/* Cards */
.card{
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card--soft{
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  box-shadow: var(--shadow-sm);
}
.card--interactive{ transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.card--interactive:hover{
  transform: translateY(-2px);
  border-color: hsl(var(--border));
  box-shadow: var(--shadow-lg);
}

.pagehead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  margin: 18px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid hsl(var(--border));
}
@media (max-width: 720px){
  .pagehead{ flex-direction:column; align-items:flex-start; }
}
.pagehead h2{ margin:0; font-size: 24px; letter-spacing:-.02em; }
.pagehead p{ margin: 6px 0 0; }
.pagehead__actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Modals */
dialog.modal{
  border: none;
  padding: 0;
  background: transparent;
  width: min(720px, 92vw);
  max-width: 100%;
}
dialog.modal::backdrop{
  background: hsl(0 0% 0% / 0.45);
  backdrop-filter: blur(2px);
}
.modal__content{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.modal__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.modal__header h3{ margin: 0; }
.modal__header p{ margin: 4px 0 0; }
.modal__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Hero */
.hero{
  min-height: calc(100vh - 120px);
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items:center;
}
.hero__content h1{ margin:0 0 12px; font-size: 44px; line-height: 1.1; letter-spacing:-.03em; }
.hero__content p{ margin:0 0 18px; color: hsl(var(--muted-foreground)); font-size: 16px; line-height: 1.65; }
.hero__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero__actions{ display:flex; gap:12px; flex-wrap:wrap; }
.hero__panel{
  border: 1px solid hsl(var(--border));
}
.hero__stepBadge{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 700;
}
.hero__stepTitle{ font-weight: 700; margin:0 0 4px; }
.hero__stepDesc{ margin:0; color: hsl(var(--muted-foreground)); font-size: 14px; }
.hero__meta{ display:flex; gap: 16px; flex-wrap:wrap; }
.hero__meta{ justify-content:flex-start; }
.hero__metaItem{ display:flex; flex-direction:column; gap:4px; }
.hero__metaLabel{ color: hsl(var(--muted-foreground)); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.hero__metaValue{ font-size: 20px; font-weight: 750; }

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
}

.section{ margin: 38px 0; }
.section__title{ font-size: 22px; margin: 0 0 8px; letter-spacing:-.02em; }
.section__subtitle{ margin: 0 0 18px; color: hsl(var(--muted-foreground)); }
.feature-grid{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card{
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 16px;
  background: hsl(var(--card));
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  display:flex;
  flex-direction:column;
  gap: 16px;
}
.hero__panelHeader{ display:flex; align-items:center; justify-content:space-between; }
.hero__panelTitle{ font-weight: 700; font-size: 16px; }
.hero__steps{ display:grid; gap: 12px; margin:0; padding:0; list-style:none; }
.hero__step{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 14px;
  background: hsl(var(--accent));
  border: 1px solid hsl(var(--border));
}
.hero__stepBadge{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 700;
}
.hero__stepTitle{ font-weight: 700; margin:0 0 4px; }
.hero__stepDesc{ margin:0; color: hsl(var(--muted-foreground)); font-size: 14px; }
.hero__meta{ display:flex; gap: 16px; flex-wrap:wrap; }
.hero__meta{ justify-content:flex-start; }
.hero__metaItem{ display:flex; flex-direction:column; gap:4px; }
.hero__metaLabel{ color: hsl(var(--muted-foreground)); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.hero__metaValue{ font-size: 20px; font-weight: 750; }

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
}

.section{ margin: 38px 0; }
.section__title{ font-size: 22px; margin: 0 0 8px; letter-spacing:-.02em; }
.section__subtitle{ margin: 0 0 18px; color: hsl(var(--muted-foreground)); }
.feature-grid{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card{
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 16px;
  background: hsl(var(--card));
  box-shadow: var(--shadow-sm);
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.feature-card h4{ margin:0; font-size: 16px; }
.feature-card p{ margin:0; color: hsl(var(--muted-foreground)); font-size: 14px; }
.feature-icon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: hsl(var(--accent));
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
  color: hsl(var(--accent-foreground));
}

.cta{
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(var(--card)) 45%, hsl(var(--background)) 100%);
  padding: 26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  flex-wrap:wrap;
  box-shadow: var(--shadow);
}
.cta h3{ margin:0 0 6px; font-size: 22px; letter-spacing:-.02em; }
.cta p{ margin:0; color: hsl(var(--muted-foreground)); }

@media (max-width: 920px){
  .feature-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .feature-grid{ grid-template-columns: 1fr; }
}

/* Alerts */
.alert{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid hsl(var(--border));
  margin: 14px 0;
  background: hsl(var(--muted));
}
.alert--error{ background: hsl(0 84% 96%); border-color: hsl(0 84% 88%); }
.alert--success{ background: hsl(142 76% 96%); border-color: hsl(142 76% 86%); }
.alert--info{ background: hsl(199 89% 96%); border-color: hsl(199 89% 86%); }

/* Buttons (variants similar to shadcn) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration:none !important;
  user-select:none;
  box-shadow: var(--shadow-sm);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px hsl(var(--ring) / .18);
}

.btn--ghost{
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.btn--ghost:hover{ background: hsl(var(--accent)); border-color: hsl(var(--border)); }

.btn--secondary{
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.btn--secondary:hover{ filter: brightness(.98); }

.btn--danger{
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}
.btn--danger:hover{ filter: brightness(.98); }

.btn--sm{ padding: 8px 11px; border-radius: 10px; font-size: 13px; }

/* Forms */
.form{ display:flex; flex-direction:column; gap: 12px; }
.form--grid{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field--full{ grid-column: 1 / -1; }

.field{ display:flex; flex-direction:column; gap:6px; }
.field span{ display:block; font-size: 13px; color: hsl(var(--muted-foreground)); }
.form--typeform{ gap: 16px; }
.form--typeform .field span{
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.field input,
.field select,
.field textarea{
  width:100%;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  color: hsl(var(--foreground));
  border-radius: 12px;
  padding: 11px 12px;
  outline:none;
}
.form--typeform .field input,
.form--typeform .field select,
.form--typeform .field textarea{
  padding: 13px 14px;
  font-size: 15px;
  border-radius: 14px;
  background: hsl(var(--card));
}

.field input::placeholder,
.field textarea::placeholder{ color: hsl(var(--muted-foreground)); }

.field textarea{ resize: vertical; min-height: 92px; }

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 4px hsl(var(--ring) / .14);
}

input[type="file"]{ padding: 10px 12px; }

.hint{ color: hsl(var(--muted-foreground)); font-size: 12px; margin-top: 6px; display:block; }

.check{ display:flex; align-items:flex-start; gap:10px; user-select:none; }
.check input{ margin-top: 3px; accent-color: hsl(var(--primary)); }

.field--check{ display:flex; gap:10px; align-items:center; }
.field--check > span{ margin:0; }

.auth{ display:flex; justify-content:center; padding: 32px 0 40px; }
.auth__card{ width: min(560px, 100%); }
.auth__header{ margin-bottom: 16px; }
.auth__header h2{ margin:0 0 6px; }
.auth__footer{ margin-top: 12px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

/* Grids */
.grid{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px){ .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 980px){ .grid--2{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){ .grid{ grid-template-columns: 1fr; } .form--grid{ grid-template-columns: 1fr; } }
@media (max-width: 640px){ .grid--2{ grid-template-columns: 1fr; } }

.form__row{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (max-width: 640px){ .form__row{ grid-template-columns: 1fr; } }

/* Wysiwyg */
.wysiwyg{
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: hsl(var(--card));
  overflow:hidden;
  box-shadow: var(--shadow-sm);
}
.wysiwyg__toolbar{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  padding: 10px 12px;
  background: hsl(var(--muted));
  border-bottom: 1px solid hsl(var(--border));
}
.wysiwyg__toolbar button{
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: 10px;
  padding: 6px 10px;
  cursor:pointer;
  font-size: 12px;
}
.wysiwyg__toolbar button:hover{ background: hsl(var(--accent)); }
.wysiwyg__editor{
  min-height: 180px;
  padding: 14px;
  outline:none;
}
.wysiwyg__editor:empty:before{
  content: attr(data-placeholder);
  color: hsl(var(--muted-foreground));
}

/* Tables */
.tablewrap, .tableWrap{ overflow:auto; }
.table{ width:100%; border-collapse: collapse; }
.table th, .table td{ text-align:left; padding: 10px 12px; border-bottom: 1px solid hsl(var(--border)); vertical-align: top; }
.table th{ color: hsl(var(--muted-foreground)); font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table tr:hover td{ background: hsl(var(--accent) / .6); }

/* Stats */
.stats{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
@media (max-width: 720px){ .stats{ grid-template-columns: 1fr; } }
.stat__label{ color: hsl(var(--muted-foreground)); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.stat__value{ font-size: 30px; font-weight: 800; margin-top: 6px; letter-spacing:-.02em; }

/* Pre blocks */
.pre{
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 12px;
  overflow:auto;
}

/* Company cards */
.company{ display:flex; flex-direction:column; gap: 14px; }
.company__top{ display:flex; justify-content:space-between; gap: 12px; align-items:center; }
.company__name{ font-weight: 750; font-size: 18px; }
.company__logo{ width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid hsl(var(--border)); background: hsl(var(--muted)); }
.company__actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 14px; align-items:center; }
.company__actions form{ margin:0; }

/* Progress */
.progress{ height: 10px; border-radius: 999px; background: hsl(var(--muted)); overflow:hidden; border: 1px solid hsl(var(--border)); margin-top: 12px; }
.progress__bar{ height: 100%; background: hsl(var(--primary)); }

/* Responses */
.responses__section{
  margin: 20px 0 10px;
  font-size: 16px;
  border-top: 1px solid hsl(var(--border));
  padding-top: 14px;
}
.responses__item{ padding: 12px 0; border-bottom: 1px solid hsl(var(--border)); }
.responses__q{ font-weight: 700; margin-bottom: 8px; }
.responses__a{ color: hsl(var(--foreground)); line-height: 1.6; }

/* Reports */
.report-grid{ display:grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 16px; }
.report-meta{ display:flex; justify-content:space-between; align-items:flex-start; gap: 14px; flex-wrap:wrap; }
.report-meta__badges{ display:flex; gap: 8px; flex-wrap:wrap; align-items:center; }
.empty-state{
  border: 1px dashed hsl(var(--border));
  background: hsl(var(--muted));
  border-radius: 12px;
  padding: 16px;
}
.rich-content{
  line-height: 1.7;
}
.rich-content blockquote{
  border-left: 3px solid hsl(var(--border));
  padding-left: 12px;
  color: hsl(var(--muted-foreground));
}
.pdf-details summary{
  cursor:pointer;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.pdf-frame{
  margin-top: 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  overflow:hidden;
  background: hsl(var(--muted));
}
.pdf-frame iframe{ width:100%; height: 520px; border:0; display:block; }

@media (max-width: 900px){
  .report-grid{ grid-template-columns: 1fr; }
}

/* Utility */
.nowrap{ white-space: nowrap; }
.row{ display:flex; gap:12px; }
.row--between{ justify-content:space-between; }
.row--center{ align-items:center; }

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 12px;
  font-weight: 600;
}
.badge--ok{
  background: hsl(142 76% 96%);
  color: hsl(142 40% 30%);
  border-color: hsl(142 76% 80%);
}

.site-footer{
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background) / .9);
  margin-top: 40px;
}
.site-footer__inner{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 32px;
  align-items:start;
  padding: 24px 0 28px;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
}
.site-footer__inner > span{
  color: hsl(var(--foreground));
  font-weight: 600;
  line-height: 1.6;
  max-width: 360px;
}
.site-footer__links{
  display:flex;
  flex-direction:column;
  gap: 8px;
  align-items:flex-start;
}
.site-footer__links a{
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}
.site-footer__links a:hover{ color: hsl(var(--foreground)); }
.site-footer__meta{
  display:flex;
  flex-direction:column;
  gap: 6px;
  color: hsl(var(--muted-foreground));
}
.site-footer__meta strong{
  color: hsl(var(--foreground));
  font-size: 14px;
}
@media (max-width: 980px){
  .site-footer__inner{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__inner > span{ grid-column: 1 / -1; }
}
@media (max-width: 700px){
  .site-footer__inner{
    grid-template-columns: 1fr;
    gap: 14px;
    text-align:center;
  }
  .site-footer__inner > span{
    width: 100%;
    max-width: none;
  }
  .site-footer__links{
    align-items:center;
    width: 100%;
  }
  .site-footer__meta{ align-items:center; }
}

/* Typeform-like (clean + light) */
.tf{ margin-top: 16px; }
.tf__header{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 12px; }
.tf__title{ margin:0; font-size: 22px; letter-spacing:-.02em; }
.tf__headerActions{ display:flex; gap: 10px; align-items:center; }

.tf__body{
  display:grid;
  grid-template-columns: 300px 1fr;
  gap: 12px;
  align-items: start;
}

.tf__sidebar{
  position: sticky;
  top: 86px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.tf__sidebarHeader{
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px 14px;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-weight: 650;
}

.iconBtn{
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  width: 38px; height: 34px;
  border-radius: 10px;
  cursor:pointer;
}
.iconBtn:hover{ background: hsl(var(--accent)); }
.iconBtn:focus-visible{ outline: none; box-shadow: 0 0 0 4px hsl(var(--ring) / .14); }

.tf__sections{ padding: 10px 10px 12px; max-height: calc(100vh - 160px); overflow:auto; display:flex; flex-direction:column; gap: 8px; }
.tf__section,
.tf__sec{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.tf__section:hover,
.tf__sec:hover{ background: hsl(var(--accent)); transform: translateY(-1px); }
.tf__section--active,
.tf__sec.is-active{ border-color: hsl(var(--ring)); background: hsl(var(--accent)); }
.tf__sectionTitle{ font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.tf__sectionMeta{ color: hsl(var(--muted-foreground)); font-size: 12px; }

.tf__main{ min-height: 520px; display:flex; flex-direction:column; gap: 16px; }
.tf__progress{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 12px; }
.tf__progressBar{ flex:1; height: 10px; border-radius: 999px; background: hsl(var(--muted)); overflow:hidden; border: 1px solid hsl(var(--border)); min-width: 120px; }
.tf__progressFill{ height:100%; background: hsl(var(--primary)); width:0%; transition: width .25s ease; }
.tf__progressMeta{ display:flex; gap: 10px; min-width: 140px; justify-content:flex-end; color: hsl(var(--muted-foreground)); flex-wrap:wrap; }
.tf__status{
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--accent));
  color: hsl(var(--foreground));
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.tf__status.is-saving{
  background: hsl(48 100% 94%);
  border-color: hsl(48 96% 82%);
  color: hsl(28 54% 30%);
}
.tf__status.is-saved{
  background: hsl(142 76% 96%);
  border-color: hsl(142 76% 86%);
  color: hsl(142 45% 30%);
}
.tf__status.is-error{
  background: hsl(0 84% 96%);
  border-color: hsl(0 84% 86%);
  color: hsl(0 70% 35%);
}
.tf__progressFill--pulse{
  animation: tf-progress-pulse 700ms ease;
}

.tf__card{
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  min-height: 440px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap: 16px;
}

.tf__question{ font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing:-.02em; }
.tf__help{ margin-top: -4px; }
.tf__input{ margin-top: 8px; }
.tf__nav{ margin-top: 14px; display:flex; justify-content:space-between; align-items:center; gap: 12px; flex-wrap:wrap; }
.tf__navRight{ display:flex; gap: 10px; flex-wrap:wrap; }
.tf__hint{
  min-height: 20px;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}
.tf__hint.is-saved{
  color: hsl(142 45% 30%);
}
.tf__hint.is-error{
  color: hsl(0 70% 35%);
}

.tf__input input,
.tf__input textarea{
  width: 100%;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  color: hsl(var(--foreground));
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 18px;
  outline:none;
}
.tf__input textarea{ min-height: 140px; resize: vertical; }
.tf__input input:focus,
.tf__input textarea:focus{ border-color: hsl(var(--ring)); box-shadow: 0 0 0 4px hsl(var(--ring) / .14); }

.choiceList{ display:flex; flex-direction:column; gap: 10px; }
.choice,
.tf__choice{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  cursor:pointer;
  user-select:none;
  font-size: 16px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.choice:hover,
.tf__choice:hover{ background: hsl(var(--accent)); }
.choice input,
.tf__choice input{
  accent-color: hsl(var(--primary));
  width: 18px;
  height: 18px;
  margin: 0;
}
.choice div,
.tf__choice div{
  flex: 1;
  display:flex;
  align-items:center;
  gap: 8px;
}
.tf__choice:focus-within{
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 4px hsl(var(--ring) / .12);
}

.scale3{ display:grid; grid-template-columns: 1fr; gap: 10px; }
.scale3__labels{ display:flex; justify-content:space-between; color: hsl(var(--muted-foreground)); font-size: 12px; }
.scale3 input[type="range"]{ width:100%; }

@media (max-width: 980px){
  .tf__body{ grid-template-columns: 1fr; }
  .tf__sidebar{ position: relative; top: 0; }
}
.tf__sidebar--collapsed .tf__sections{ display:none; }
@media (max-width: 720px){
  .tf__progress{ flex-direction:column; align-items:flex-start; }
  .tf__progressMeta{ justify-content:flex-start; min-width: 0; }
  .tf__card{ padding: 20px; min-height: auto; }
  .tf__question{ font-size: 20px; }
  .tf__input input, .tf__input textarea{ font-size: 16px; }
  .tf__nav{ flex-direction:column; align-items:stretch; }
  .tf__navRight{ width:100%; justify-content:space-between; }
}

@keyframes tf-progress-pulse{
  0%{ box-shadow: 0 0 0 0 hsl(var(--primary) / .4); }
  100%{ box-shadow: 0 0 0 10px hsl(var(--primary) / 0); }
}
