@font-face {
  font-family: "Inter Tight";
  src: url("/intake/fonts/InterTight.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Anek Telugu";
  src: url("/intake/fonts/AnekTelugu-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
/* Mobile Foundation F1 Ivory/Midnight. Phone question structure follows E_Phone_TE. */
:root {
  color-scheme: light dark;
  --ground: #f8f5ef;
  --end: #f2eee6;
  --tile: #fff;
  --ink: #0f2233;
  --ink2: #5a6573;
  --line: #0f22331a;
  --gold: #a8813c;
  --accent: #0f6f66;
  --on-accent: #fff;
  --sel: #1f9a8c12;
  --shadow: #0f22330d;
}
@media (prefers-color-scheme:dark) {
  :root {
    --ground: #0b2735;
    --end: #06090f;
    --tile: #121e28;
    --ink: #f2efe8;
    --ink2: #9aa6b4;
    --line: #ffffff24;
    --gold: #d6b270;
    --accent: #86dccf;
    --on-accent: #0b2735;
    --sel: #4cc4b618;
    --shadow: #0005;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: linear-gradient(155deg,var(--ground),var(--end));
  color: var(--ink);
  font: 16px/1.45 "Inter Tight","Anek Telugu",system-ui,sans-serif;
}
main {
  max-width: 38rem;
  margin: auto;
  padding: max(20px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom));
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: .55;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.toolbar,
.meta,
.anchors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toolbar {
  margin: 12px 0;
}
.section-title {
  text-align: center;
  line-height: 1.3;
}
.back,
.plain,
.lang,
.secondary {
  border: 1px solid var(--line);
  background: var(--tile);
  border-radius: 24px;
  padding: 8px 14px;
  min-height: 44px;
}
.back {
  font-size: 24px;
  min-width: 48px;
}
.plain,
.lang {
  border-color: transparent;
  background: transparent;
  font-size: 14px;
}
.meta,
.instructions,
.translation,
.saved {
  color: var(--ink2);
}
progress {
  display: block;
  width: 100%;
  height: 5px;
  accent-color: var(--accent);
  margin: 4px 0 20px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 65dvh;
  padding: 24px 16px 18px;
  background: var(--tile);
  border: 1px solid var(--gold);
  border-radius: 24px;
  box-shadow: 0 9px 22px var(--shadow);
}
h1 {
  font-size: clamp(1.3rem,5vw,1.65rem);
  line-height: 1.35;
  margin: 0 4px 10px;
}
small.translation {
  display: block;
  font-size: .84rem;
  line-height: 1.45;
  font-weight: 400;
  margin-top: 4px;
}
.choices {
  display: grid;
  gap: 10px;
}
.choice {
  min-height: 62px;
  text-align: left;
  border-radius: 18px;
  background: var(--tile);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.selected {
  background: var(--sel)!important;
  outline: 2px solid var(--accent);
}
.mark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-content: center;
  border-radius: 50%;
}
.choice[role=checkbox] .mark {
  border-radius: 5px;
}
footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 18px;
}
.saved {
  text-align: center;
  font-size: .86rem;
}
.primary {
  width: 100%;
  min-height: 52px;
  border-radius: 32px;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  font-weight: 600;
}
.ratings,
.pad {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}
.ratings button,
.pad button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tile);
}
.digits {
  font-variant-numeric: tabular-nums;
  font-size: 1.4rem;
  text-align: center;
}
.feedback,
.instructions {
  margin: 0;
}
.anchors {
  font-size: .9em;
}
.panel {
  margin-top: 12dvh;
}
.panel p {
  color: var(--ink2);
}
.panel button {
  align-self: flex-start;
}
@media (prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto;
  }
}
@media (forced-colors:active) {
  .choice.selected {
    outline: 3px solid Highlight;
  }
  .primary {
    border: 1px solid ButtonText;
  }
}
.brand {
  justify-content: flex-start;
  padding: 6px 2px;
  color: var(--ink2);
}
.brand strong {
  color: var(--ink);
}
.brand .lang {
  margin-inline-start: auto;
}
.panel {
  margin-top: clamp(18px,6vh,64px);
  min-height: 0;
  padding: clamp(22px,5vw,34px);
  gap: 18px;
}
.panel h1,
.panel h2,
.panel p {
  margin: 0;
}
.panel h2 {
  font-size: 1.2rem;
}
.credentials {
  display: grid;
  gap: 16px;
}
.credentials label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.credentials input {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tile);
  color: var(--ink);
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  min-width: 0;
  width: 100%;
}
.credentials [role=status]:empty {
  display: none;
}
.sharing-choices {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sharing-choices legend {
  font-weight: 600;
  padding: 0 6px;
}

.panel .choice {
  align-self: stretch;
}
