:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #15352f;
  background: #f4f6f2;
  font-synthesis: none;
  --ink: #15352f;
  --muted: #4f685f;
  --line: #dfe8e0;
  --teal: #176352;
  --dark: #10352f;
  --paper: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 250px; }
button, input, textarea { font: inherit; }
button, a.primary { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #418d78; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.top { background: var(--dark); color: #eef8ef; padding: env(safe-area-inset-top) 0 0; }
.top-inner { max-width: 1160px; margin: auto; padding: 13px clamp(12px, 4vw, 36px); display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand img { border-radius: 12px; flex-shrink: 0; }
.brand strong, .brand div span { display: block; }
.brand strong { font-size: clamp(.86rem, 4vw, 1.03rem); letter-spacing: -.025em; }
.brand div span { color: #a7c9b9; font-size: .64rem; letter-spacing: .16em; margin-top: 2px; }
.top-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.header-button { min-height: 40px; color: #eef8ef; border: 1px solid #53796d; background: #1b443a; border-radius: 12px; padding: 5px 9px; font-size: .75rem; font-weight: 650; }
.frame { margin: auto; max-width: 1160px; padding: 18px clamp(10px, 4vw, 36px) max(20px, env(safe-area-inset-bottom)); }
.notice { margin: 0 0 12px; color: #264f42; background: #e4eee4; border-radius: 12px; padding: 11px 13px; font-size: .85rem; }
.gate, .inbox, .detail { border: 1px solid var(--line); border-radius: 21px; background: var(--paper); min-width: 0; }
.gate { max-width: 450px; margin: 32px auto; padding: 24px; }
.gate form, .gate form label { display: grid; gap: 12px; }
.gate h1 { margin-bottom: 18px; }
.workspace { display: grid; align-items: start; gap: 14px; }
.inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 21px 15px 19px; }
h1 { font-size: clamp(1.38rem, 4.6vw, 1.82rem); letter-spacing: -.05em; line-height: 1.1; }
.inbox-head p { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.icon-button { width: 42px; height: 42px; background: #edf4ee; color: var(--ink); border: 0; border-radius: 12px; flex-shrink: 0; font-size: 1.45rem; }
.mail-list { list-style: none; margin: 0; padding: 0 8px 8px; }
.mail-list li + li { border-top: 1px solid #eef1ee; }
.mail-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: start; gap: 8px; width: 100%; text-align: left; color: var(--ink); padding: 13px 7px; min-height: 72px; background: transparent; border: 0; border-radius: 11px; }
.mail-row:hover, .mail-row[aria-current="true"] { background: #eef5ed; }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; color: #245545; background: #dfece2; border-radius: 10px; font-size: .72rem; font-weight: 750; }
.mail-list li:nth-child(2n) .avatar { background: #eae5d5; }
.mail-row strong, .mail-subject { display: block; overflow-wrap: anywhere; }
.mail-row strong { font-size: .78rem; margin-bottom: 3px; }
.mail-subject { font-size: .89rem; line-height: 1.25; }
.mail-row time { font-size: .69rem; color: var(--muted); padding-top: 2px; }
.empty { padding: 27px 14px 35px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 8px; }
.empty span { width: 49px; height: 49px; border-radius: 15px; background: #edf4ee; display: grid; place-items: center; font-size: 1.4rem; }
.empty strong { color: var(--ink); }
.empty p { font-size: .86rem; }
.detail { display: none; padding: 17px 13px; }
.workspace[data-open="true"] .inbox { display: none; }
.workspace[data-open="true"] .detail { display: block; }
.detail-empty { min-height: 255px; align-content: center; }
.back { margin: 0 0 12px; }
.from { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
h2 { margin: 6px 0 16px; font-size: clamp(1.3rem, 4.8vw, 1.85rem); letter-spacing: -.04em; line-height: 1.15; overflow-wrap: anywhere; }
h3 { font-size: .92rem; }
.summary-card { background: #edf5ea; border-radius: 15px; padding: 12px; }
.summary-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.summary-card p { margin: 6px 0 3px; font-size: 1.04rem; line-height: 1.5; }
.text-button { background: transparent; border: 0; border-radius: 8px; color: #11604e; font-weight: 700; font-size: .81rem; min-height: 41px; padding: 4px 6px; }
.actions, .proposal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; }
.actions button, .secondary { min-height: 40px; background: #fff; border: 1px solid #cfdfd4; border-radius: 10px; color: var(--ink); padding: 5px 8px; font-size: .78rem; font-weight: 650; }
.assistant { padding: 11px 12px; border-radius: 11px; background: #f2f6f2; margin: 10px 0; font-size: .88rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.proposal { background: #f6f8f3; border: 1px solid var(--line); border-radius: 12px; padding: 11px; margin: 10px 0; }
.proposal p { margin: 7px 0; font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
.proposal label { display: grid; gap: 4px; margin-top: 9px; font-size: .79rem; }
input, textarea { min-width: 0; max-width: 100%; padding: 9px; border: 1px solid #c9dad0; background: white; border-radius: 10px; font-size: 1rem; color: var(--ink); }
textarea { resize: vertical; }
.primary { min-height: 42px; padding: 8px 12px; background: var(--teal); color: white; border: 0; border-radius: 10px; text-decoration: none; font-weight: 700; display: inline-grid; place-items: center; }
.proposal-actions { justify-content: flex-end; margin-bottom: 0; }
.command { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 5px; margin-top: 14px; }
.command input { padding-inline: 7px; }
.mic { color: var(--teal); background: #e4f0e8; border: 0; border-radius: 10px; width: 42px; display: grid; place-items: center; }
.mic[aria-pressed="true"] { background: #8c302b; color: white; }
.mic span { height: 16px; width: 9px; border: 2px solid currentColor; border-radius: 9px; position: relative; transform: translateY(-2px); }
.mic span::before { content: ""; position: absolute; height: 9px; width: 15px; bottom: -4px; left: -5px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 9px 9px; }
.mic span::after { content: ""; position: absolute; width: 2px; height: 4px; bottom: -7px; left: 2px; background: currentColor; }
.submit { width: 40px; font-size: 1.2rem; padding: 0; }
.sr-only { border: 0; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
@media (min-width: 650px) {
  .frame { padding-top: 25px; }
  .workspace { grid-template-columns: minmax(255px, .82fr) minmax(0, 1.35fr); }
  .workspace[data-open="true"] .inbox, .detail { display: block; }
  .detail { padding: 23px; }
  .back { display: none; }
  .inbox-head { padding-inline: 18px; }
  .mail-row { padding-inline: 10px; }
}
