/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.js","import":"Plus_Jakarta_Sans","arguments":[{"subsets":["latin"],"display":"swap"}],"variableName":"font"} ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: '__Plus_Jakarta_Sans_532bb9';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/6fe53d21e6e7ebd8-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: '__Plus_Jakarta_Sans_532bb9';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/8ebc6e9dde468c4a-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Plus_Jakarta_Sans_532bb9';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/9e7b0a821b9dfcb4-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Plus_Jakarta_Sans_532bb9';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/636a5ac981f94f8b-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Plus_Jakarta_Sans_Fallback_532bb9';src: local("Arial");ascent-override: 98.88%;descent-override: 21.15%;line-gap-override: 0.00%;size-adjust: 104.98%
}.__className_532bb9 {font-family: '__Plus_Jakarta_Sans_532bb9', '__Plus_Jakarta_Sans_Fallback_532bb9';font-style: normal
}

/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* ============================================================
   Campus Sync — light theme
   Clean, spacious, structured & responsive (mobile + desktop)
   ============================================================ */

:root {
  /* palette */
  --bg: #f4f6fb;            /* app canvas */
  --panel: #ffffff;         /* cards & surfaces */
  --ink: #1b2034;           /* primary text */
  --muted: #69718f;         /* secondary text */
  --line: #e8ebf4;          /* hairline borders */
  --accent: #2b3bff;        /* primary (indigo/blue) */
  --accent-strong: #2230d6;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;   /* accent tint */
  --mine: #2b3bff;          /* own message bubble */
  --theirs: #ffffff;
  --hover: #f2f4fb;
  --sel: #eef0ff;
  --feed: #eef1f7;          /* chat canvas */
  --dot: #dde2ef;
  --danger: #d6384e;
  --agent: #0aa58f;         /* agent (secondary) */
  --agent-soft: #e1f6f2;

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(23, 28, 54, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(23, 28, 54, 0.18);
  --shadow-lg: 0 30px 70px -30px rgba(23, 28, 54, 0.35);

  /* shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
}

* { box-sizing: border-box; margin: 0; }

html { height: 100%; }
body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--accent-strong); }

/* slim, themed scrollbars */
* { scrollbar-width: thin; scrollbar-color: #cdd3e6 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #cdd3e6; border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #b6bdd6; border: 3px solid transparent; background-clip: padding-box; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

b { font-weight: 650; }
small, .muted { color: var(--muted); }
small { font-size: 12.5px; }
h1, h2, h3, h4 { letter-spacing: -0.02em; font-weight: 700; }

/* ---------- shared bits ---------- */
.av {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(23, 28, 54, 0.06);
}
.row-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1; gap: 1px; }
.row-main > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.field {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field::placeholder { color: #a4aabd; }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.06s ease;
}
.btn:hover:not(:disabled) { background: var(--accent-strong); }
.btn:active:not(:disabled) { transform: translateY(1px); }

.link { color: var(--muted); font-size: 14px; text-align: center; width: 100%; text-decoration: underline; }
.link:hover { color: var(--accent); }

.icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  flex: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.icon:hover { background: var(--hover); color: var(--ink); }

.err { color: var(--danger); font-size: 14px; }
.pad { padding: 16px; }
.center { text-align: center; margin: auto; }

/* brand */
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { position: relative; width: 38px; height: 38px; flex: none; }
.brand-mark i {
  position: absolute; width: 24px; height: 24px;
  border-radius: 50% 50% 50% 6px;
  background: linear-gradient(135deg, #3b4bff, #2230d6);
}
.brand-mark i + i {
  right: 0; bottom: 0;
  border-radius: 50% 50% 6px 50%;
  background: var(--ink); opacity: 0.9;
}
.brand.big { justify-content: center; transform: scale(1.8); margin-bottom: 20px; }
.brand.sm { gap: 10px; }
.brand.sm b { font-size: 17px; letter-spacing: -0.02em; }
.brand.sm .brand-mark { width: 30px; height: 30px; }
.brand.sm .brand-mark i { width: 19px; height: 19px; }

/* ---------- auth ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  padding: 36px 32px;
  border-radius: var(--r-xl);
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.auth-card .muted { text-align: center; }
.pick {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; font-size: 14px; color: var(--muted);
}

/* ---------- app shell ---------- */
.shell {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-width: 1560px;
  margin: 0 auto;
  background: var(--panel);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.talk-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(100deg, var(--accent), var(--agent));
  box-shadow: 0 8px 20px -10px var(--agent);
  transition: filter 0.15s ease, transform 0.06s ease, background 0.2s ease;
  touch-action: none;
  -moz-user-select: none;
       user-select: none; -webkit-user-select: none;
}
.talk-btn:hover { filter: brightness(1.05); }
.talk-btn:active { transform: scale(0.97); filter: brightness(0.97); }
.talk-btn.st-ready { background: linear-gradient(100deg, #0aa58f, #12b79d); }
.talk-btn.st-connecting, .talk-btn.st-thinking { background: linear-gradient(100deg, #99a0b8, #adb3c9); }
.talk-btn.st-listening { background: linear-gradient(100deg, #ff6b6b, var(--danger)); box-shadow: 0 8px 22px -8px var(--danger); }
.talk-btn.st-error { background: linear-gradient(100deg, #ff8585, var(--danger)); }
.me { display: flex; align-items: center; gap: 10px; }
.me-name { font-weight: 600; font-size: 14px; }

/* 3-column workspace: sidebar | chat | agent panel */
.app {
  min-height: 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) auto;
}
.app > .chat { grid-column: 2; min-height: 0; min-width: 0; }
.app > .panel { grid-column: 3; }

/* ---------- sidebar ---------- */
.side { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; background: var(--panel); }
.list { overflow-y: auto; flex: 1 1; padding: 10px 10px 16px; }
.fab { display: flex; justify-content: flex-end; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.fab-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 22px -10px var(--accent);
  transition: background 0.15s ease, transform 0.12s ease;
}
.fab-btn:hover { background: var(--accent-strong); transform: scale(1.05); }
.fab-btn:active { transform: scale(0.96); }
.list h2 {
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #98a0ba;
  padding: 16px 12px 6px;
}

.row {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-md);
  transition: background 0.12s ease;
}
.row:hover { background: var(--hover); }
.row time { align-self: flex-start; font-size: 11.5px; color: #9aa2bb; margin-top: 3px; }

.item { position: relative; }
.item.on { background: var(--sel); }
.item.on::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--accent);
}

.empty {
  padding: 44px 20px;
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; text-align: center;
}
.empty .btn { width: auto; margin-top: 8px; padding: 11px 22px; }

/* ---------- chat area ---------- */
.chat {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  background: var(--feed);
}
.chat.idle { align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; }
.chat.idle h2 { font-size: 24px; }
.chat.idle .muted { max-width: 300px; }

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.chat-head .row-main b { font-size: 15.5px; }
.back { display: none; }

.feed {
  flex: 1 1; overflow-y: auto;
  padding: 24px clamp(12px, 7%, 96px);
  display: flex; flex-direction: column; gap: 8px;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
}
.bubble {
  max-width: min(500px, 82%);
  padding: 10px 14px 8px;
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 4px;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.bubble p { white-space: pre-wrap; }
.bubble time { align-self: flex-end; font-size: 10.5px; opacity: 0.6; }
.bubble.mine { align-self: flex-end; background: var(--mine); color: #fff; border-color: transparent; border-bottom-right-radius: 6px; }
.bubble.mine time { color: #fff; }
.bubble.theirs { align-self: flex-start; background: var(--theirs); border-bottom-left-radius: 6px; }
.who { font-size: 12.5px; font-weight: 700; }
.shot { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 12px; margin-top: 2px; }
.doc {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 12px;
  background: var(--hover);
  text-decoration: none; color: inherit;
  margin-top: 2px; min-width: 230px;
}
.bubble.mine .doc { background: rgba(255, 255, 255, 0.16); }
.doc small { color: inherit; opacity: 0.7; }
.doc-ic { width: 40px; height: 40px; border-radius: 10px; background: #e5484d; color: #fff; display: grid; place-items: center; flex: none; }

/* composer */
.composer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.compose-row { display: flex; align-items: center; gap: 8px; }
.field.msg { border-radius: 999px; padding: 11px 18px; background: var(--bg); }
.field.msg:focus { background: var(--panel); }
.send {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; flex: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease;
}
.send:hover:not(:disabled) { background: var(--accent-strong); }
.attach {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--r-md);
  background: var(--hover);
}
.attach img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }

/* ---------- modal ---------- */
.scrim {
  position: fixed; inset: 0;
  background: rgba(18, 22, 42, 0.4);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  display: grid; place-items: center;
  padding: 16px; z-index: 10;
  animation: fade 0.15s ease-out;
}
.modal {
  width: min(460px, 100%); max-height: 88dvh;
  background: var(--panel); border-radius: var(--r-xl);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: rise 0.18s ease-out;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.tabs { display: flex; gap: 4px; background: var(--hover); padding: 4px; border-radius: 12px; }
.tabs button { padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); transition: all 0.12s ease; }
.tabs button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }
.people { overflow-y: auto; min-height: 120px; flex: 1 1; }
.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; color: var(--accent-ink); flex: none; transition: all 0.12s ease; }
.check.on { background: var(--accent); border-color: var(--accent); }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

/* ---------- personal agent ---------- */
.agent-ic {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; flex: none;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--agent));
}
.chat-head .agent-ic { width: 40px; height: 40px; }
.agent-row { margin-bottom: 4px; background: var(--agent-soft); }
.agent-row:hover, .agent-row.on { background: var(--agent-soft); outline: 1.5px solid var(--agent); outline-offset: -1.5px; }
.agent-row.on::before { background: var(--agent); }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--agent); color: #fff;
  font-size: 11.5px; font-weight: 700;
  display: inline-grid; place-items: center; margin-left: 6px;
}
.chat-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.counted {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 650;
  color: var(--muted); background: var(--hover); border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.counted:hover { background: var(--sel); color: var(--ink); }
.counted.on { color: var(--agent); background: var(--agent-soft); border-color: var(--agent); }
.counted .badge { margin-left: 2px; }
.agent-scroll { flex: 1 1; overflow-y: auto; padding: 8px 22px 44px; }
.agent-scroll .as { max-width: 760px; margin: 0 auto; }

.panel {
  width: 360px;
  border-left: 1px solid var(--line);
  background: var(--panel);
  display: flex; flex-direction: column;
  min-height: 0; overflow-y: auto;
}
.panel > header {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line); color: var(--agent);
  position: -webkit-sticky;
  position: sticky; top: 0; background: var(--panel); z-index: 1;
}
.panel > header b { flex: 1 1; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* agent space content */
.as { padding: 8px 18px 32px; display: flex; flex-direction: column; gap: 26px; }
#as-reminders, #as-materials { scroll-margin-top: 58px; }
.as h3 { font-size: 16px; margin: 16px 0 8px; }
.as h4 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 16px 0 6px; }
.as h4.late { color: var(--danger); }
.soft { font-size: 14px; padding: 6px 0; }
.notice { background: var(--agent-soft); border-radius: var(--r-md); padding: 13px 15px; font-size: 14px; border: 1px solid #c9ede7; }
.notice code { font-size: 13px; background: rgba(10, 165, 143, 0.12); padding: 1px 5px; border-radius: 6px; }
.wrap > * { white-space: normal; }

.rem {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid var(--line);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.rem.late { box-shadow: inset 3px 0 0 var(--danger), var(--shadow-sm); }
.rem.done b { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c4cade; display: grid; place-items: center; flex: none; font-size: 13px; color: #fff; transition: all 0.12s ease; }
.tick.on { background: var(--agent); border-color: var(--agent); }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: var(--accent); background: var(--sel); flex: none;
  transition: background 0.12s ease;
}
.chip:hover { background: #e2e5ff; }
.icon.sm { width: 28px; height: 28px; }
.done-group { margin-top: 4px; }
.folder summary { cursor: pointer; list-style: none; }

.folder { margin: 4px 0; }
.folder > summary { display: flex; align-items: center; gap: 8px; padding: 8px 8px; border-radius: 10px; transition: background 0.12s ease; }
.folder > summary:hover { background: var(--hover); }
.folder > summary small { margin-left: auto; color: #9aa2bb; }
.folder > summary::before { content: '▸'; color: var(--muted); font-size: 12px; transition: transform 0.15s; }
.folder[open] > summary::before { transform: rotate(90deg); }
.f-body { margin-left: 14px; padding-left: 14px; border-left: 2px solid var(--line); }
.mat { display: flex; gap: 11px; padding: 12px; border-radius: var(--r-md); margin: 4px 0; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mat-ic { font-size: 22px; line-height: 1.2; }
.mat p { font-size: 13.5px; color: var(--muted); }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 5px; }
.acts a, .acts button { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.acts a:hover, .acts button:hover { text-decoration: underline; }
.acts button:last-child { color: var(--muted); font-weight: 500; }

.flash { animation: flash 2.2s ease-out; }
@keyframes flash { 0%, 35% { box-shadow: 0 0 0 3px var(--agent), 0 0 24px var(--agent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- voice agent (hold to talk) ---------- */
.voice-agent { position: relative; display: inline-flex; }
.agent-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); flex: none; transition: background 0.15s ease; }
.agent-dot.st-connecting, .agent-dot.st-thinking { animation: pulse 1.1s infinite; }
.agent-dot.st-listening { animation: pulse 0.7s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); } 100% { box-shadow: 0 0 0 9px transparent; } }
.talk-label { white-space: nowrap; }

/* ---------- responsive ---------- */
@media (min-width: 761px) and (max-width: 1100px) {
  .app { grid-template-columns: 300px minmax(0, 1fr) auto; }
  .panel { width: 300px; }
}

@media (max-width: 760px) {
  /* single-pane navigation */
  .app { grid-template-columns: minmax(0, 1fr); }
  .app > .chat, .app > .panel { grid-column: 1; min-width: 0; display: none; }
  .app.open > .chat, .app.open > .panel { display: flex; }
  .app.open .side { display: none; }

  /* compact top bar */
  .topbar { padding: 10px 12px; gap: 8px; }
  .me-name { display: none; }
  .brand.sm b { display: none; }
  .brand.sm, .me { flex: none; }
  .me { gap: 6px; }

  /* talk button stretches to fill and stays labelled */
  .voice-agent { flex: 1 1; display: flex; min-width: 0; }
  .talk-btn { width: 100%; justify-content: center; padding: 10px 12px; font-size: 13.5px; }
  .talk-label { white-space: nowrap; }

  /* chat header: title row, then full-width reminders/materials row */
  .chat-head { flex-wrap: wrap; row-gap: 6px; padding: 10px 12px; }
  .chat-tools { order: 10; flex-basis: 100%; margin-left: 0; }
  .chat-tools .counted { flex: 1 1; justify-content: center; }

  .back { display: grid; }
  .feed { padding: 16px 12px; }
  .bubble { max-width: 88%; }
  .side { border-right: 0; }
  .auth-card { padding: 26px 22px; }

  /* agent panel & My Agent view full-screen */
  .panel { position: fixed; inset: 0; z-index: 9; width: auto; border-left: 0; border-radius: 0; }
  .agent-scroll { padding: 4px 12px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .scrim, .modal { animation: none; }
  * { transition: none !important; }
}
