/* KidLink HQ v2 — iPhone-style */
:root {
  color-scheme: light;
  --bg: #f2f2f7;
  --bg-out: #d8d8de;
  --card: #ffffff;
  --text: #1c1c1e;
  --sub: #8e8e93;
  --tertiary: #aeaeb2;
  --line: rgba(60, 60, 67, 0.16);
  --blue: #007aff;
  --green: #34c759;
  --red: #ff3b30;
  --orange: #ff9500;
  --purple: #af52de;
  --teal: #64d2ff;
  --fill: rgba(118, 118, 128, 0.12);
  --field: rgba(118, 118, 128, 0.08);
  --sheet: #f2f2f7;
  --bar: rgba(249, 249, 249, 0.78);
  --seg: rgba(118, 118, 128, 0.16);
  --seg-on: #ffffff;
  --toast-bg: rgba(28, 28, 30, 0.92);
  --toast-fg: #fff;
  --danger-bg: #ff3b30;
  --ok-bg: #34c759;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #000000;
    --bg-out: #000000;
    --card: #1c1c1e;
    --text: #ffffff;
    --sub: #8e8e93;
    --tertiary: #636366;
    --line: rgba(84, 84, 88, 0.65);
    --blue: #0a84ff;
    --green: #30d158;
    --red: #ff453a;
    --orange: #ff9f0a;
    --purple: #bf5af2;
    --teal: #64d2ff;
    --fill: rgba(118, 118, 128, 0.24);
    --field: rgba(118, 118, 128, 0.24);
    --sheet: #1c1c1e;
    --bar: rgba(22, 22, 23, 0.78);
    --seg: rgba(118, 118, 128, 0.24);
    --seg-on: #636366;
    --toast-bg: rgba(44, 44, 46, 0.94);
    --toast-fg: #fff;
    --shadow: none;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg-out); }
body {
  font-family: var(--font);
  background: var(--bg-out);
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; color: inherit; }
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}
@media (max-width: 520px) {
  html, body { background: var(--bg); }
}
@media (min-width: 800px) {
  #app { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); min-height: 100vh; }
}

#demo-banner {
  position: sticky;
  top: 0;
  z-index: 70;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.1px;
  padding: 7px 12px;
  background: #ff9500;
  color: #1c1c1e;
}
#demo-banner[hidden] { display: none; }

#topbar .topbar-inner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(48px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
body.is-demo #topbar .topbar-inner { top: 30px; }
body.scrolled #topbar .topbar-inner,
body.subpage #topbar .topbar-inner {
  opacity: 1;
  pointer-events: auto;
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line);
}
/* Large title stays the page title until the user scrolls. */
body.subpage:not(.scrolled) .compact-title { opacity: 0; }
.compact-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.4px;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#back-btn {
  position: absolute;
  left: 4px;
  bottom: 2px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
#back-btn[hidden] { display: none; }

#view {
  padding: calc(8px + env(safe-area-inset-top)) 16px calc(108px + env(safe-area-inset-bottom));
  animation: rise .42s cubic-bezier(.32, .72, 0, 1);
}
body.subpage #view { padding-top: calc(56px + env(safe-area-inset-top)); }
body.is-demo.subpage #view { padding-top: calc(86px + env(safe-area-inset-top)); }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #view, .sheet, .toast { animation: none !important; }
  .swipe-fg, .tile, .btn { transition: none !important; }
}

.large-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 8px 0 2px;
  line-height: 1.1;
}
.page-sub { color: var(--sub); font-size: 15px; margin: 0 0 16px; }
.group-label {
  margin: 22px 16px 7px;
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.08px;
}

.group {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 8px;
}
.cell {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  border-bottom: 0.5px solid var(--line);
  color: inherit;
  text-align: left;
  font-size: 17px;
  cursor: pointer;
}
.cell:last-child { border-bottom: 0; }
.cell:active { background: var(--fill); }
.cell .main { flex: 1; min-width: 0; }
.cell .main b { display: block; font-weight: 600; letter-spacing: -0.3px; }
.cell .sub { color: var(--sub); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--tertiary); font-size: 20px; font-weight: 500; margin-left: auto; }

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 0;
  background: var(--fill);
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-block { width: 100%; margin-top: 10px; }
.btn-sm { min-height: 44px; padding: 8px 12px; font-size: 15px; }
.iconhit {
  width: 44px; height: 44px; border: 0; border-radius: 22px;
  background: var(--fill); color: var(--text); font-size: 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}

.field { margin-bottom: 12px; }
.field label, .lbl {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  margin: 0 2px 6px;
}
.input, .textarea, .select {
  width: 100%;
  min-height: 44px;
  font-size: 17px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.checkline { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; }
.checkline input { width: 22px; height: 22px; accent-color: var(--blue); }

.segmented {
  display: flex;
  background: var(--seg);
  border-radius: 10px;
  padding: 2px;
  min-height: 44px;
  margin: 0 0 14px;
}
.segmented button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
  cursor: pointer;
  letter-spacing: -0.2px;
}
.segmented button.on {
  background: var(--seg-on);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 44px;
  border: 0;
  background: var(--fill);
  color: var(--text);
  border-radius: 999px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.chip.on { background: var(--text); color: var(--bg); }

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--sub);
  white-space: nowrap;
}
.pill.money, .pill.financial { background: rgba(52, 199, 89, 0.18); color: #248a3d; }
.pill.health { background: rgba(255, 59, 48, 0.15); color: #d70015; }
.pill.classes, .pill.school { background: rgba(0, 122, 255, 0.15); color: #0040dd; }
.pill.food { background: rgba(255, 149, 0, 0.18); color: #c93400; }
.pill.errands, .pill.shopping { background: rgba(175, 82, 222, 0.16); color: #8944ab; }
.pill.campus, .pill.other { background: var(--fill); color: var(--sub); }
.pill.needed { background: rgba(52, 199, 89, 0.18); color: #248a3d; }
.pill.claimed { background: rgba(0, 122, 255, 0.15); color: #0040dd; }
.pill.shipped { background: rgba(255, 149, 0, 0.2); color: #c93400; }
.pill.received { background: var(--fill); color: var(--sub); }
.pill.pending { background: rgba(255, 149, 0, 0.2); color: #c93400; }
.pill.approved { background: rgba(0, 122, 255, 0.15); color: #0040dd; }
.pill.sent { background: rgba(52, 199, 89, 0.18); color: #248a3d; }
.pill.declined { background: rgba(255, 59, 48, 0.15); color: #d70015; }
.pill.lock { background: var(--text); color: var(--bg); }
@media (prefers-color-scheme: dark) {
  .pill.money, .pill.financial, .pill.needed, .pill.sent { color: #30d158; }
  .pill.health, .pill.declined { color: #ff453a; }
  .pill.classes, .pill.school, .pill.claimed, .pill.approved { color: #64b5ff; }
  .pill.food, .pill.shipped, .pill.pending { color: #ffd60a; }
  .pill.errands, .pill.shopping { color: #dab0ff; }
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; margin: 6px 0 8px; }
.tile {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.2px;
  min-height: 44px;
  padding: 0;
}
.tile .ic {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transition: transform .35s cubic-bezier(.32, .72, 0, 1);
}
.tile:active .ic { transform: scale(0.9); }
.g-blue { background: linear-gradient(160deg, #5ac8fa, #007aff); }
.g-green { background: linear-gradient(160deg, #63e6a4, #34c759); }
.g-orange { background: linear-gradient(160deg, #ffd60a, #ff9f0a); }
.g-red { background: linear-gradient(160deg, #ff6482, #ff375f); }
.g-purple { background: linear-gradient(160deg, #da8fff, #5e5ce6); }
.g-pink { background: linear-gradient(160deg, #ff9f0a, #ff375f); }
.g-teal { background: linear-gradient(160deg, #64d2ff, #0a84ff); }
.g-gray { background: linear-gradient(160deg, #aeaeb2, #636366); }
.g-yellow { background: linear-gradient(160deg, #ffe066, #ff9f0a); }

.heard { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.heard::-webkit-scrollbar { display: none; }
.heard button {
  flex: 0 0 auto;
  min-height: 64px;
  min-width: 148px;
  text-align: left;
  border: 0;
  background: var(--card);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  color: inherit;
  box-shadow: var(--shadow);
}
.heard b { display: block; font-size: 15px; }
.heard span { color: var(--sub); font-size: 13px; }

.checkin { background: var(--card); border-radius: 16px; padding: 14px 14px 10px; margin-bottom: 10px; }
.ci-top { display: flex; gap: 10px; align-items: center; }
.avatar {
  width: 40px; height: 40px; border-radius: 20px;
  background: linear-gradient(135deg, #0a84ff, #5e5ce6);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex: 0 0 auto;
}
.mood-badge { font-size: 28px; margin-left: auto; }
.ci-note { margin: 10px 0 0; font-size: 16px; white-space: pre-wrap; }
.ci-photo { width: 100%; border-radius: 12px; margin-top: 10px; display: block; max-height: 280px; object-fit: cover; }
.reacts { display: flex; gap: 8px; margin-top: 10px; }
.reacts button {
  min-height: 44px;
  border: 0;
  background: var(--fill);
  border-radius: 999px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.reacts button.on { background: rgba(255, 45, 85, 0.15); color: #ff2d55; }
.reacts button.on.thumbs { background: rgba(0, 122, 255, 0.15); color: var(--blue); }

.moods { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.moods button {
  flex: 0 0 auto;
  width: 72px;
  min-height: 72px;
  border-radius: 16px;
  border: 0;
  background: var(--fill);
  cursor: pointer;
  font-size: 26px;
}
.moods button small { display: block; font-size: 11px; font-weight: 600; color: var(--sub); margin-top: 2px; }
.moods button.on { background: var(--blue); }
.moods button.on small { color: #fff; }

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  margin: 4px 0;
  white-space: pre-wrap;
  font-size: 16px;
}
.msg.mine { margin-left: auto; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg.theirs { background: var(--card); border-bottom-left-radius: 6px; }
.msg .who { font-size: 12px; font-weight: 650; opacity: 0.75; margin-bottom: 2px; }
.thread { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }

.barline { height: 8px; border-radius: 99px; background: var(--fill); overflow: hidden; margin: 8px 0 4px; }
.barline > div { height: 100%; background: var(--blue); border-radius: 99px; }
.barline > div.over { background: var(--red); }

.swipe { position: relative; overflow: hidden; background: var(--card); }
.swipe + .swipe { border-top: 0.5px solid var(--line); }
.swipe-under {
  position: absolute; inset: 0;
  display: flex; justify-content: flex-end;
}
.swipe-under button {
  width: 88px;
  border: 0;
  color: #fff;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
}
.swipe-under .danger { background: var(--danger-bg); }
.swipe-under .ok { background: var(--ok-bg); }
.swipe-under .info { background: var(--blue); }
.swipe-fg {
  position: relative;
  background: var(--card);
  transform: translateX(0);
  transition: transform .42s cubic-bezier(.32, .72, 0, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 12px 12px 16px;
}
.task-title { font-weight: 600; letter-spacing: -0.2px; }
.task-title.done { text-decoration: line-through; color: var(--sub); }
.check {
  width: 28px; height: 28px; border-radius: 14px;
  border: 2px solid var(--tertiary); background: transparent; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto;
}
.check.on { background: var(--green); border-color: var(--green); }
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.due { font-size: 13px; color: var(--sub); font-weight: 600; }
.due.over { color: var(--red); }

#tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  z-index: 50;
  display: flex;
  justify-content: space-around;
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--line);
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
}
#tabbar[hidden] { display: none; }
#tabbar button {
  flex: 1;
  border: 0;
  background: none;
  color: var(--sub);
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.1px;
}
#tabbar button.on { color: var(--blue); }
#tabbar svg { width: 26px; height: 26px; }
#tabbar svg path, #tabbar svg rect, #tabbar svg circle {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round;
}
#tabbar button.on svg path, #tabbar button.on svg rect { fill: currentColor; }

.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: 100%;
  max-width: 480px;
  max-height: min(92vh, 820px);
  overflow-y: auto;
  background: var(--sheet);
  border-radius: 14px 14px 0 0;
  padding: 6px 16px calc(20px + env(safe-area-inset-bottom));
  animation: sheetUp .48s cubic-bezier(.32, .72, 0, 1);
}
@keyframes sheetUp {
  from { transform: translateY(110%); }
  to { transform: none; }
}
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--tertiary); margin: 6px auto 10px; opacity: 0.7; }
.sheet h3 { margin: 4px 0 14px; font-size: 20px; letter-spacing: -0.4px; }
.sheet-x {
  position: absolute; right: 12px; top: 12px;
  width: 30px; height: 30px; border-radius: 15px; border: 0;
  background: var(--fill); color: var(--sub); font-size: 16px; cursor: pointer;
}

#toast-root {
  position: fixed; left: 0; right: 0;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 120; display: flex; justify-content: center; pointer-events: none;
}
.toast {
  background: var(--toast-bg); color: var(--toast-fg);
  padding: 12px 16px; border-radius: 14px; font-size: 15px; font-weight: 600;
  max-width: min(420px, 92vw); animation: rise .25s ease;
}

.loginwrap { display: block; padding: 18px 0 48px; }
.login-card { width: 100%; }
.login-logo {
  width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 14px;
  background: linear-gradient(160deg, #5ac8fa, #007aff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 28px; letter-spacing: -1px;
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.35);
}
.login-card h1 { text-align: center; font-size: 34px; letter-spacing: -0.6px; margin: 0; }
.tag { text-align: center; color: var(--sub); margin: 4px 0 22px; }
.errbox { background: rgba(255, 59, 48, 0.12); color: var(--red); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 15px; }
.demo-actions { display: grid; gap: 8px; margin: 8px 0 16px; }
.demo-actions .btn {
  background: var(--card); color: var(--text); box-shadow: var(--shadow);
  flex-direction: column; align-items: flex-start; text-align: left; padding: 10px 16px;
}
.demo-actions small { display: block; font-weight: 500; color: var(--sub); font-size: 12px; }
.or { text-align: center; color: var(--sub); font-size: 13px; margin: 14px 0; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav b { font-size: 17px; letter-spacing: -0.3px; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  background: var(--card); border-radius: 16px; padding: 10px 6px 8px;
}
.cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--sub); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; border: 0; background: none; color: var(--text);
  border-radius: 50%; font-size: 15px; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center; font-weight: 500;
}
.cal-day.today { background: var(--blue); color: #fff; font-weight: 700; }
.cal-day .dot {
  position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 2px; background: var(--red);
}
.cal-day.today .dot { background: #fff; }

.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo {
  background: var(--card); border-radius: 14px; overflow: hidden;
}
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--fill); }
.photo .cap { padding: 8px 10px 10px; font-size: 13px; }
.photo .actions { display: flex; justify-content: flex-end; gap: 4px; padding: 0 6px 6px; }

.kv { display: grid; grid-template-columns: 112px 1fr; gap: 4px 10px; padding: 8px 0; border-top: 0.5px solid var(--line); font-size: 15px; }
.kv .k { color: var(--sub); }
.empty { text-align: center; color: var(--sub); padding: 28px 12px; font-size: 15px; }
.invite {
  font-size: 28px; letter-spacing: 4px; font-weight: 800; text-align: center;
  background: var(--fill); border-radius: 12px; padding: 14px; margin: 8px 0;
}
.linkish { color: var(--blue); font-weight: 600; text-decoration: none; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.composer { margin-bottom: 14px; }
.hint { color: var(--sub); font-size: 13px; margin-top: 8px; }
.flight { font-variant-numeric: tabular-nums; letter-spacing: -0.2px; }
.chatbar { display: flex; gap: 8px; margin-top: 8px; }
.chatbar .input { border-radius: 22px; }
.qchips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bot, .user { white-space: pre-wrap; }
.msg.bot { background: var(--card); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.ai-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  color: var(--text);
  border: 0;
  border-radius: 18px;
  padding: 16px 16px 14px;
  margin: 0 0 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.ai-card:active { transform: scale(0.99); }
.ai-card .kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1px;
  margin-bottom: 6px;
}
.ai-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}
.ai-card .hint { margin: 8px 0 0; }
.proposal {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0.5px solid var(--line);
}
.proposal b { display: block; margin: 4px 0; font-weight: 650; }
.sheet .chat { max-height: 42vh; overflow-y: auto; padding-right: 2px; }
.copyrow { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.copyrow .input { flex: 1; min-width: 0; font-size: 14px; }
.btn[disabled], .input:disabled, .select:disabled { opacity: 0.45; cursor: default; pointer-events: none; }
.token-once { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.upload-off { background: var(--fill); border-radius: 12px; padding: 12px 14px; color: var(--sub); font-size: 14px; margin-bottom: 10px; }
