:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-warm: #fffaf3;
  --ink: #211f1b;
  --muted: #716d65;
  --faint: #aaa49a;
  --line: #e9e4da;
  --orange: #f06a3a;
  --orange-deep: #d94d20;
  --orange-soft: #fff0e7;
  --blue: #3978c7;
  --blue-soft: #eaf3ff;
  --green: #2f8a66;
  --green-soft: #e9f7f0;
  --violet: #785bb4;
  --violet-soft: #f1edfb;
  --shadow-sm: 0 8px 24px rgba(54, 45, 32, .07);
  --shadow-lg: 0 28px 80px rgba(54, 45, 32, .15);
  --font: "DM Sans", "Noto Sans Gujarati", "Noto Sans Devanagari", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { min-height: 100%; max-width: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(240, 106, 58, .08), transparent 28rem),
    radial-gradient(circle at 100% 20%, rgba(57, 120, 199, .06), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell { min-height: 100dvh; padding-bottom: calc(90px + var(--safe-bottom)); }
.topbar {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(18px + var(--safe-top)) 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { margin-right: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.brand > span:last-child { display: grid; gap: 1px; }
.brand strong { font-size: 1.05rem; letter-spacing: -.025em; }
.brand small { color: var(--muted); font-size: .72rem; }
.brand-mark {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  place-content: center;
  gap: 3px;
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(240, 106, 58, .24);
  transform: rotate(-2deg);
}
.brand-mark i { display: block; border-radius: 50% 50% 42% 48%; background: #fff8ed; transform: rotate(25deg); }
.brand-mark i:nth-child(2) { opacity: .75; transform: rotate(75deg); }
.brand-mark i:nth-child(3) { opacity: .85; transform: rotate(-35deg); }
.brand-mark i:nth-child(4) { opacity: .6; transform: rotate(15deg); }
.brand-mark.small { width: 48px; height: 48px; flex-basis: 48px; border-radius: 16px; }

.top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.lang-switch {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
}
.lang-switch button {
  min-width: 42px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}
.lang-switch button.on {
  background: #282621;
  color: #fff;
}
.location-control {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .75);
  color: var(--muted);
}
.location-control svg { width: 16px; height: 16px; color: var(--orange); }
.location-control select {
  max-width: 116px;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
}
.avatar-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #282621;
  font-weight: 700;
}

.main-layout {
  width: min(1160px, calc(100% - 32px));
  margin: 8px auto 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, .78fr);
  gap: 24px;
  align-items: start;
}
.primary-column, .secondary-column { min-width: 0; }
.primary-column { display: grid; gap: 26px; }
.secondary-column { display: grid; gap: 18px; position: sticky; top: 18px; }

.assistant-card {
  min-height: 330px;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 32px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.95), rgba(255,250,243,.92)),
    var(--surface);
  border: 1px solid rgba(231, 221, 207, .92);
  box-shadow: var(--shadow-sm);
}
.assistant-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  right: -75px;
  top: -85px;
  border: 35px solid rgba(240, 106, 58, .07);
  border-radius: 50%;
}
.assistant-card__glow {
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 200px;
  left: -90px;
  bottom: -130px;
  border-radius: 50%;
  background: rgba(57, 120, 199, .08);
  filter: blur(18px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ready-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #37b980;
  box-shadow: 0 0 0 4px rgba(55, 185, 128, .13);
}
.assistant-card h1 {
  max-width: 700px;
  margin: 13px 0 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.assistant-card > p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.94rem, 1.7vw, 1.04rem);
  line-height: 1.55;
}
.ask-box {
  max-width: 690px;
  min-height: 66px;
  margin-top: 28px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ded7cc;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(58, 47, 31, .09);
  transition: border-color .2s, box-shadow .2s;
}
.ask-box:focus-within { border-color: rgba(240, 106, 58, .7); box-shadow: 0 12px 34px rgba(240, 106, 58, .13); }
.ask-box input, .drawer-composer input, .task-form input, .search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}
.ask-box input { padding: 0 10px; font-size: 1rem; }
input::placeholder { color: #aaa49a; }
.icon-button, .send-button {
  border: 0;
  display: grid;
  place-items: center;
}
.icon-button {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
}
.icon-button:hover { background: #f6f3ee; color: var(--ink); }
.send-button {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  background: var(--orange);
  color: white;
  box-shadow: 0 7px 15px rgba(240, 106, 58, .25);
}
.send-button:hover { background: var(--orange-deep); }
.mic-button.listening { background: var(--orange-soft); color: var(--orange); animation: listening 1.15s ease-in-out infinite; }
@keyframes listening { 50% { box-shadow: 0 0 0 8px rgba(240, 106, 58, .08); } }
.suggestions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.suggestions::-webkit-scrollbar { display: none; }
.suggestions button, .city-chips button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
}
.suggestions button:hover { border-color: #f3b39b; color: var(--orange-deep); }

.section-block { padding: 0 4px; }
.section-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.section-heading.compact { margin-bottom: 16px; }
.section-heading h2 { margin: 2px 0 0; font-size: 1.24rem; letter-spacing: -.035em; }
.section-kicker {
  margin: 0;
  color: var(--faint);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.text-button {
  min-height: 36px;
  padding: 6px 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  color: var(--orange-deep);
  background: transparent;
  font-size: .78rem;
  font-weight: 700;
}
.text-button svg { width: 15px; height: 15px; }
.snapshot-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 14px; }
.snapshot-card, .side-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.snapshot-card { min-height: 190px; padding: 20px; border-radius: 24px; }
.snapshot-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-icon, .quick-icon, .play-icon {
  display: grid;
  place-items: center;
}
.card-icon { width: 38px; height: 38px; border-radius: 12px; }
.card-icon svg { width: 19px; height: 19px; }
.weather-icon { background: var(--blue-soft); color: var(--blue); }
.news-icon { background: var(--orange-soft); color: var(--orange); }
.quiet-label { color: var(--muted); font-size: .72rem; font-weight: 600; }
.weather-main { margin-top: 21px; display: flex; align-items: end; gap: 12px; }
.weather-main strong { font-size: 2.35rem; line-height: 1; letter-spacing: -.06em; }
.weather-main span { padding-bottom: 4px; color: var(--ink); font-size: .9rem; font-weight: 600; }
.weather-card > p { margin: 8px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.weather-days {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.weather-day {
  padding: 8px 4px 7px;
  border-radius: 12px;
  background: #f7f4ee;
  text-align: center;
}
.weather-day b { display: block; font-size: .78rem; letter-spacing: -.03em; }
.weather-day span { color: var(--muted); font-size: .62rem; font-weight: 600; }
.briefing-card { display: flex; flex-direction: column; }
.briefing-title { margin-top: 18px; max-width: 320px; font-size: 1rem; line-height: 1.35; }
.listen-button {
  width: 100%;
  margin-top: auto;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 14px;
  background: #282621;
  color: #fff;
  text-align: left;
  font-size: .78rem;
  font-weight: 600;
}
.listen-button.playing { background: var(--orange-deep); }
.listen-button small { color: rgba(255,255,255,.58); font-size: .67rem; }
.play-icon { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.12); }
.play-icon svg { width: 15px; height: 15px; }

.story-list { display: grid; gap: 10px; }
.story-card {
  width: 100%;
  min-height: 104px;
  padding: 15px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  gap: 13px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255,255,255,.8);
  color: inherit;
  text-align: left;
  transition: transform .2s, border-color .2s, background .2s;
}
.story-card:hover { transform: translateY(-2px); border-color: #ddd2c2; background: #fff; }
.story-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: .78rem;
  font-weight: 700;
}
.story-content { min-width: 0; }
.story-content strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .92rem; line-height: 1.4; }
.story-content p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; color: var(--muted); font-size: .74rem; }
.story-meta { margin-top: 7px; display: flex; gap: 6px; color: var(--faint); font-size: .67rem; font-weight: 600; }
.story-arrow { color: var(--faint); padding-top: 8px; }
.story-skeleton {
  height: 104px;
  border-radius: 19px;
  background: linear-gradient(90deg, #f1ece4 15%, #fbf9f5 45%, #f1ece4 75%);
  background-size: 220% 100%;
  animation: skeleton 1.3s linear infinite;
}
@keyframes skeleton { to { background-position: -220% 0; } }
.empty-state { padding: 28px 20px; border: 1px dashed #d8d0c5; border-radius: 20px; color: var(--muted); text-align: center; font-size: .86rem; }

.side-card { padding: 22px; border-radius: 26px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-action {
  min-height: 110px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fdfcf9;
  color: inherit;
  text-align: left;
}
.quick-action:hover { border-color: #d9d0c5; background: #fff; }
.quick-icon { width: 34px; height: 34px; border-radius: 11px; }
.quick-icon svg { width: 18px; height: 18px; }
.quick-icon.coral { background: var(--orange-soft); color: var(--orange); }
.quick-icon.blue { background: var(--blue-soft); color: var(--blue); }
.quick-icon.green { background: var(--green-soft); color: var(--green); }
.quick-icon.violet { background: var(--violet-soft); color: var(--violet); }
.quick-action > span:last-child { display: grid; gap: 2px; }
.quick-action strong { font-size: .82rem; }
.quick-action small { color: var(--muted); font-size: .65rem; }

.task-count {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: .7rem;
  font-weight: 700;
}
.task-form {
  height: 48px;
  margin-bottom: 12px;
  padding: 4px 4px 4px 12px;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcfbf8;
}
.task-form input { font-size: .78rem; }
.task-form button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: #282621;
  color: #fff;
}
.task-form svg { width: 17px; height: 17px; }
.task-list { display: grid; gap: 4px; }
.task-row {
  min-height: 43px;
  display: grid;
  grid-template-columns: 28px 1fr 30px;
  align-items: center;
  gap: 7px;
  border-radius: 11px;
}
.task-row:hover { background: #faf8f4; }
.task-check {
  width: 21px;
  height: 21px;
  border: 1.5px solid #cfc8bd;
  border-radius: 7px;
  background: #fff;
  color: #fff;
  display: grid;
  place-items: center;
}
.task-check svg { width: 13px; height: 13px; }
.task-row.done .task-check { border-color: var(--green); background: var(--green); }
.task-row span { font-size: .77rem; line-height: 1.3; }
.task-row.done span { color: var(--faint); text-decoration: line-through; }
.task-delete { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--faint); }
.task-delete:hover { background: var(--orange-soft); color: var(--orange-deep); }
.task-delete svg { width: 14px; height: 14px; }
.local-note { margin: 12px 0 0; color: var(--faint); font-size: .62rem; text-align: center; }

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(12px + var(--safe-bottom));
  transform: translateX(-50%);
  width: min(340px, calc(100% - 28px));
  height: 68px;
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: center;
  border: 1px solid rgba(225, 218, 208, .92);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 45px rgba(49, 41, 31, .18);
  backdrop-filter: blur(20px);
}
.nav-item {
  height: 54px;
  border: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  background: transparent;
  color: var(--faint);
  font-size: .62rem;
  font-weight: 600;
}
.nav-item svg { width: 18px; height: 18px; }
.nav-item.active { color: var(--orange-deep); background: var(--orange-soft); }
.nav-assistant {
  width: 56px;
  height: 56px;
  margin: -17px auto 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 19px;
  background: transparent;
}

.drawer-backdrop { position: fixed; z-index: 70; inset: 0; background: rgba(25,22,18,.44); backdrop-filter: blur(4px); }
.drawer {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(680px, 100%);
  height: min(780px, 91dvh);
  padding: 10px 18px calc(18px + var(--safe-bottom));
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  border-radius: 30px 30px 0 0;
  background: var(--surface-warm);
  box-shadow: var(--shadow-lg);
  animation: drawer-in .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes drawer-in { from { transform: translate(-50%, 100%); } }
.drawer-handle { width: 42px; height: 4px; margin: 2px auto 12px; border-radius: 99px; background: #d9d2c7; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 14px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 4px 0 0; font-size: 1.35rem; letter-spacing: -.04em; }
.chat-log { min-height: 0; padding: 20px 2px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.message { max-width: min(86%, 520px); padding: 12px 14px; border-radius: 16px; font-size: .86rem; line-height: 1.5; white-space: pre-wrap; }
.message.assistant { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 5px; background: #fff; }
.message.user { align-self: flex-end; border-bottom-right-radius: 5px; background: #282621; color: #fff; }
.message.thinking { color: var(--muted); }
.drawer-composer {
  min-height: 62px;
  padding: 7px 7px 7px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddd6cb;
  border-radius: 18px;
  background: #fff;
}
.drawer-composer input { font-size: .92rem; }

.full-view {
  position: fixed;
  z-index: 60;
  inset: 0;
  overflow-y: auto;
  padding: calc(20px + var(--safe-top)) max(20px, calc((100vw - 760px)/2)) calc(40px + var(--safe-bottom));
  background: var(--bg);
  animation: view-in .24s ease-out;
}
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }
.full-view__header { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.full-view__header .icon-button { border: 1px solid var(--line); background: #fff; }
.full-view__header h2 { margin: 1px 0 0; font-size: 1.45rem; letter-spacing: -.04em; }
.city-chips { padding-bottom: 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.city-chips::-webkit-scrollbar { display: none; }
.city-chips button.on { border-color: #282621; background: #282621; color: #fff; }
.search-box {
  height: 52px;
  margin-bottom: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.search-box svg { width: 18px; height: 18px; color: var(--faint); }
.all-stories { display: grid; gap: 10px; }
.all-stories .story-card { background: #fff; }

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(100px + var(--safe-bottom));
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 11px 15px;
  border-radius: 12px;
  background: #282621;
  color: #fff;
  box-shadow: var(--shadow-sm);
  font-size: .78rem;
  text-align: center;
}

.settings-popover {
  position: fixed;
  z-index: 100;
  top: 75px;
  right: max(16px, calc((100vw - 1160px)/2));
  width: 250px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.settings-popover p { margin: 0 0 10px; font-size: .72rem; color: var(--muted); }
.language-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.language-options button { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #faf8f4; color: var(--muted); font-size: .72rem; font-weight: 600; }
.language-options button.on { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-deep); }

@media (min-width: 821px) {
  .app-shell { padding-bottom: 36px; }
  .bottom-nav { display: none; }
  .assistant-card { min-height: 300px; }
  .drawer {
    left: auto;
    right: max(16px, calc((100vw - 1160px) / 2));
    top: 16px;
    bottom: 16px;
    transform: none;
    width: min(420px, 38vw);
    height: auto;
    border-radius: 28px;
    animation: drawer-desktop .22s ease-out;
  }
  @keyframes drawer-desktop {
    from { opacity: 0; transform: translateY(10px); }
  }
  .full-view {
    inset: 18px max(18px, calc((100vw - 1160px) / 2));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
  }
  .settings-popover { top: 82px; }
}

@media (max-width: 820px) {
  .main-layout { grid-template-columns: 1fr; }
  .secondary-column { position: static; grid-template-columns: 1fr 1fr; }
  .avatar-button { display: none; }
}

@media (max-width: 620px) {
  body { background: var(--bg); }
  .app-shell { padding-bottom: calc(92px + var(--safe-bottom)); }
  .topbar {
    width: calc(100% - 24px);
    padding-top: calc(12px + var(--safe-top));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "langs langs";
    align-items: center;
    column-gap: 8px;
    row-gap: 10px;
  }
  .brand { grid-area: brand; margin-right: 0; min-width: 0; }
  .brand small { display: none; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; }
  .top-actions { grid-area: actions; }
  .lang-switch {
    grid-area: langs;
    width: auto;
    height: 42px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .lang-switch button { min-width: 0; height: 36px; }
  .location-control { height: 40px; padding: 0 10px; }
  .location-control select { max-width: 110px; font-size: .75rem; }
  .avatar-button { display: none; }
  .main-layout { width: calc(100% - 24px); margin-top: 2px; gap: 20px; }
  .primary-column { gap: 20px; }
  .assistant-card { min-height: 0; margin: 0; padding: 22px 18px 18px; border-radius: 24px; }
  .assistant-card h1 { margin-top: 10px; font-size: clamp(1.7rem, 8vw, 2.2rem); letter-spacing: -.045em; }
  .assistant-card > p { font-size: .86rem; }
  .ask-box {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    margin-top: 18px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px 44px;
    align-items: center;
  }
  .ask-box input { font-size: .9rem; padding-left: 7px; width: 100%; }
  .mic-button { width: 40px; height: 44px; }
  .send-button { width: 44px; height: 44px; }
  .suggestions { margin-right: -18px; padding-right: 18px; }
  .section-block { padding: 0; }
  .snapshot-grid { grid-template-columns: 1fr; gap: 10px; }
  .snapshot-card { min-height: 0; padding: 16px; border-radius: 20px; }
  .weather-main { margin-top: 14px; display: flex; align-items: end; gap: 10px; }
  .weather-main strong { font-size: 2.1rem; }
  .weather-main span { padding-bottom: 4px; font-size: .82rem; }
  .weather-days { margin-top: 14px; }
  .briefing-title { margin-top: 14px; font-size: .94rem; }
  .listen-button { grid-template-columns: 30px 1fr; padding: 9px; }
  .listen-button small { display: none; }
  .play-icon { width: 26px; height: 26px; }
  .story-card { min-height: 92px; padding: 13px; grid-template-columns: 34px minmax(0,1fr) 18px; gap: 11px; }
  .story-index { width: 34px; height: 34px; }
  .story-content strong { font-size: .88rem; }
  .secondary-column { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .side-card { padding: 18px; border-radius: 22px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-action { min-height: 92px; padding: 12px; }
  .quick-action strong { font-size: .8rem; }
  .quick-icon { width: 32px; height: 32px; }
  .drawer { width: 100%; height: min(92dvh, 780px); border-radius: 26px 26px 0 0; }
  .bottom-nav { width: min(360px, calc(100% - 20px)); }
}

@media (max-width: 390px) {
  .top-actions { gap: 6px; }
  .location-control select { max-width: 96px; }
  .brand strong { font-size: .95rem; }
  .assistant-card { padding: 20px 16px 16px; }
  .assistant-card h1 { font-size: 1.65rem; }
  .weather-day span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
