:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #182720;
  background: #f4f6f2;
  color-scheme: light;
  --ink: #182720;
  --muted: #506158;
  --line: #dce5de;
  --green: #155641;
  --green-dark: #0d3e2e;
  --paper: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #357959; outline-offset: 3px; }
p, h1, h2, h3 { margin: 0; }
p { line-height: 1.55; }

.shell {
  max-width: 680px;
  min-height: 100vh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) clamp(18px, 5vw, 44px) max(36px, env(safe-area-inset-bottom));
}
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 760; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--green); color: white; font-size: 16px; letter-spacing: -.06em; }
.quiet { background: transparent; color: var(--green-dark); border: 0; min-height: 44px; padding: 0 4px; font-weight: 650; }
.destructive { color: #963b32; margin-top: 14px; }
.view { padding-top: 24px; }
.intro { margin-bottom: 24px; }
.intro h1 { font-size: clamp(34px, 8vw, 58px); font-weight: 760; line-height: 1.03; letter-spacing: -.06em; text-wrap: balance; }
.intro p { margin-top: 12px; max-width: 46ch; color: var(--muted); }
.dashboard { margin-top: 12px; margin-bottom: 24px; padding: 24px; border: 1px solid #d2e4d6; border-radius: 20px; background: #e7f1e7; }
.dashboard .account-name { margin: 0 0 12px; font-size: 13px; font-weight: 680; color: var(--green-dark); overflow-wrap: anywhere; }
.back { margin: -7px 0 10px; }
.agent-list, .queue { display: grid; gap: 11px; }
.agent { display: grid; grid-template-columns: 48px minmax(0, 1fr) 14px; align-items: center; gap: 13px; width: 100%; padding: 13px; min-height: 82px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-align: left; }
.agent:hover { border-color: #9ab6a4; }
.agent-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; font-size: 25px; font-weight: 650; }
.morning-icon { background: #e2f1e7; color: #18503b; }
.supplies-icon { background: #f2ecdc; color: #74541c; }
.feedback-icon { background: #eee8f6; color: #5c4773; }
.agent-text { display: grid; gap: 3px; }
.agent-text strong { font-size: 17px; letter-spacing: -.025em; }
.agent-text span { font-size: 13px; color: var(--muted); }
.chevron { color: #587368; font-size: 26px; }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: clamp(15px, 3vw, 23px); background: var(--paper); overflow-wrap: anywhere; }
.panel h2 { font-size: 20px; line-height: 1.15; letter-spacing: -.025em; }
.panel p + p { margin-top: 8px; }
.muted { color: var(--muted); }
label { font-size: 14px; font-weight: 650; }
input, textarea { width: 100%; padding: 12px; border: 1px solid #aebfb3; border-radius: 9px; background: #fbfcfb; color: var(--ink); }
input { min-height: 47px; margin-top: 8px; }
textarea { resize: vertical; min-height: 92px; line-height: 1.45; }
details { margin: 13px 0 15px; color: var(--muted); font-size: 13px; }
summary { cursor: pointer; font-weight: 650; }
details p { margin: 8px 0 0; }
.primary, .secondary { min-height: 46px; border-radius: 10px; width: 100%; padding: 10px 15px; font-weight: 680; }
.primary { border: 1px solid var(--green); background: var(--green); color: #fff; }
.primary:hover:not(:disabled) { background: var(--green-dark); }
.secondary { border: 1px solid #b9cbbf; background: #f5f9f6; color: var(--green-dark); }
.secondary:hover:not(:disabled) { background: #eaf2eb; }
.status { margin: 13px 0 0; padding: 10px 12px; border-radius: 9px; background: #e3efe7; font-size: 14px; color: #214d37; }
.status.error { background: #f7e9e6; color: #8a3028; }
.report, .result, .queue { margin-top: 15px; }
.report p { white-space: pre-wrap; }
.report h2 { margin: 15px 0 8px; }
.report h2:first-child { margin-top: 0; }
.result > * + *, .confirmation > * + * { margin-top: 11px; }
.confirmation { padding-top: 13px; border-top: 1px solid var(--line); }
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 11px; background: #e9eee9; }
.switch button { min-height: 42px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 650; }
.switch button[aria-pressed="true"] { background: white; color: var(--ink); box-shadow: 0 1px 2px #12291e22; }
.queue-item { display: grid; gap: 9px; }
.queue-item h3 { font-size: 16px; }
.queue-item .meta, .queue-item .note { font-size: 13px; color: var(--muted); }
.queue-item .customer-text { white-space: pre-wrap; }

@media (max-width: 340px) {
  .agent { grid-template-columns: 38px minmax(0, 1fr) 11px; gap: 9px; }
  .agent-icon { width: 38px; height: 38px; }
  .top { gap: 6px; }
  .brand { gap: 6px; font-size: 11px; }
}
