/* Tscheggsch — app shell. New Chalk accent: teal (hue 200), per HANDOFF §8.
   Matches the family's shared L/C, only hue changes. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

[data-app="tscheggsch"] {
  --accent:      oklch(0.690 0.105 200);
  --accent-tint: oklch(0.955 0.030 202);
  --accent-ink:  oklch(0.500 0.115 202);
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
[data-app="tscheggsch"][data-theme="dark"],
[data-theme="dark"] [data-app="tscheggsch"] {
  --accent-tint: oklch(0.345 0.052 200);
  --accent-ink:  oklch(0.832 0.092 202);
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: var(--font-ui); }

.mi {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  font-feature-settings: "liga"; -webkit-font-feature-settings: "liga";
  font-variation-settings: "opsz" 24;
  vertical-align: middle; -webkit-font-smoothing: antialiased;
}

/* Inputs adopt the Chalk input recipe (§7). */
.tg-input, .tg-textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  padding: 11px 14px;
  font: inherit; font-size: 14.5px;
  color: var(--ink);
  outline: none;
}
.tg-textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.tg-input:focus, .tg-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.tg-input.with-icon { padding-left: 40px; }
.tg-field { position: relative; display: flex; }
.tg-field > .mi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 20px; pointer-events: none; }

/* Buttons (§7). */
.tg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font: 600 14px var(--font-ui);
  padding: 0 18px; border-radius: var(--r); height: 44px;
  transition: filter .15s, border-color .15s, background .15s;
}
.tg-btn .mi { font-size: 20px; }
.tg-btn:disabled { opacity: .55; cursor: not-allowed; }
.tg-btn.block { width: 100%; }
.tg-btn.lg { height: 50px; font-size: 15px; }
.tg-btn.sm { height: 40px; font-size: 13.5px; padding: 0 14px; }
.tg-btn.primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.tg-btn.primary:not(:disabled):hover { filter: brightness(1.05); }
.tg-btn.secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); }
.tg-btn.secondary:hover { border-color: var(--ink); }
.tg-btn.ghost { background: transparent; color: var(--accent-ink); }
.tg-btn.ghost:hover { background: var(--accent-tint); }

.tg-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.tg-iconbtn {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r); color: var(--muted);
}
.tg-iconbtn:hover { border-color: var(--ink); color: var(--ink); }
.tg-iconbtn .mi { font-size: 20px; }

.tg-scroll::-webkit-scrollbar { width: 8px; }
.tg-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }

@keyframes tg-dot { 0%,70%,100% { opacity: .3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }

.tg-hoverrow { transition: border-color .15s, box-shadow .15s; }
.tg-hoverrow:hover { border-color: var(--accent); box-shadow: var(--shadow); }

@media (max-width: 720px) {
  .tg-share-grid, .tg-results-grid, .tg-resp-grid { grid-template-columns: 1fr !important; }
}

.tg-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 11px 18px;
  border-radius: 999px; font: 600 13.5px var(--font-ui); box-shadow: var(--shadow-lg);
  z-index: 100; max-width: 90vw;
}
