/* NeverPlayAlone Email · cream paper, ink outlines, hard shadows.
   Same design language as the NeverPlayAlone Console. */
:root {
  --bg: #f5f0e6;
  --paper: #fffaf0;
  --elev: #ebe5d6;
  --elev2: #e2dbc9;
  --ink: #0e0e10;
  --mute: #5a564f;
  --primary: #d54516;
  --primary-strong: #9f2d11;
  --accent: #2bc7ff;
  --accent-strong: #0e8ec0;
  --success: #b9e54a;
  --success-strong: #5f7f1c;
  --gold: #f5d05a;
  --gold-d: #e0b53a;
  --danger: #d54516;
  --danger-strong: #9f2d11;
  --line: rgba(14,14,16,.10);
  --line2: rgba(14,14,16,.22);
  --radius: 10px;
  --sb-w: 252px;
  --list-w: 420px;
  --fs-xs: 10.5px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-base: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  --body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); }
body { color: var(--ink); font-family: var(--body); font-size: var(--fs-base); line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
[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; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 6px; border: 2px solid var(--bg); }

/* ---- Controls --------------------------------------------------------- */
button, .btn {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--paper); color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink); font-family: var(--display); font-size: var(--fs-base); font-weight: 700; line-height: 1;
  letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
button:hover:not(:disabled), .btn:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
button:active:not(:disabled), .btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); background: var(--elev); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary, .btn.primary { background: var(--primary); color: #fff; }
button.primary:active:not(:disabled) { background: var(--primary-strong); }
button.ghost { border-color: transparent; background: transparent; box-shadow: none; }
button.ghost:hover:not(:disabled) { border-color: var(--ink); background: var(--paper); box-shadow: 2px 2px 0 var(--ink); }
button.danger { color: var(--danger-strong); }
button.sm, .btn.sm { min-height: 32px; padding: 5px 9px; font-size: var(--fs-md); box-shadow: 1.5px 1.5px 0 var(--ink); }
button.icon { width: 40px; padding: 0; font-size: 17px; }
button.sm.icon { width: 32px; }
:focus-visible { outline: 2.5px solid var(--accent-strong); outline-offset: 2px; }
input, select, textarea {
  width: 100%; min-height: 40px; margin: 0; padding: 8px 10px; border: 1.5px solid var(--ink); border-radius: 7px;
  background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px;
}
textarea { line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
input[type=checkbox] { width: 18px; min-height: 18px; height: 18px; accent-color: var(--primary); }
label.f { display: grid; gap: 6px; color: var(--mute); font-family: var(--display); font-size: var(--fs-md); font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid var(--line2); border-radius: 6px; background: var(--paper); font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; white-space: nowrap; }
.chip.lime { background: color-mix(in srgb, var(--success) 26%, var(--paper)); border-color: color-mix(in srgb, var(--success-strong) 55%, var(--paper)); }
.chip.orange { background: color-mix(in srgb, var(--danger) 14%, var(--paper)); border-color: color-mix(in srgb, var(--danger-strong) 55%, var(--paper)); color: var(--danger-strong); }
.chip.cyan { background: color-mix(in srgb, var(--accent) 18%, var(--paper)); border-color: color-mix(in srgb, var(--accent-strong) 55%, var(--paper)); }
.chip.gold { background: color-mix(in srgb, var(--gold) 30%, var(--paper)); border-color: var(--gold-d); }
.chip.ink { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.kicker { margin: 0; color: var(--mute); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--mute); }
.hint { margin: 0; font-size: var(--fs-md); line-height: 1.45; }
.err { min-height: 18px; margin: 0; color: var(--danger-strong); font-size: var(--fs-md); }
.spin { width: 22px; height: 22px; border: 3px solid var(--ink); border-top-color: var(--primary); border-radius: 5px; animation: spin .9s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } * { transition: none !important; } }

/* ---- Brand ------------------------------------------------------------ */
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 7px; background: var(--ink) center/66% 66% no-repeat url("/brand/npa-logo.svg"); }
.brand-name { display: grid; gap: 1px; min-width: 0; }
.brand-word { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.brand-word b { color: var(--primary); font-weight: inherit; }
.brand-sub { color: var(--mute); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---- Login ------------------------------------------------------------ */
.login-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login { width: min(420px, 100%); display: grid; gap: 16px; padding: 30px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.login h1 { margin: 6px 0 0; font-family: var(--display); font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.login p.lead { margin: -8px 0 4px; color: var(--mute); font-size: var(--fs-base); line-height: 1.5; }
.login button[type=submit] { width: 100%; min-height: 44px; }
.login .otp { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; text-align: center; }
.login .err:empty { min-height: 0; margin-top: -16px; }
.login-foot { margin: 0; color: var(--mute); font-size: var(--fs-sm); text-align: center; }
.password-control { position: relative; }
.password-control input { padding-right: 84px; }
.password-control button { position: absolute; top: 3px; right: 3px; bottom: 3px; min-height: 0; padding: 0 10px; border-color: transparent; background: var(--elev); box-shadow: none; font-size: var(--fs-md); }

/* ---- App layout ------------------------------------------------------- */
.app { display: grid; grid-template-columns: var(--sb-w) var(--list-w) minmax(0,1fr); height: 100vh; height: 100dvh; }
.app.wide { grid-template-columns: var(--sb-w) minmax(0,1fr); }
.app.wide .list-pane { display: none; }
.sidebar { display: flex; flex-direction: column; min-height: 0; border-right: 2px solid var(--ink); background: var(--paper); }
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 14px 14px; border-bottom: 2px solid var(--ink); }
.sb-compose { padding: 14px 12px 6px; }
.sb-compose button { width: 100%; min-height: 44px; }
.sb-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 10px 14px; }
.sb-section { margin-top: 14px; }
.sb-section > .kicker { padding: 0 8px 6px; }
.nav { display: grid; gap: 3px; }
.nav button {
  width: 100%; min-height: 38px; justify-content: flex-start; gap: 9px; padding: 7px 9px; border-color: transparent; border-radius: 8px;
  background: transparent; box-shadow: none; font-family: var(--body); font-size: var(--fs-base); font-weight: 600; text-align: left;
}
.nav button:hover:not(:disabled) { transform: none; box-shadow: none; background: var(--elev); }
.nav button[aria-current="true"] { border-color: var(--ink); background: var(--paper); box-shadow: 2.5px 2.5px 0 var(--ink); }
.nav .ico { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--elev); font-size: 12px; line-height: 1; }
.nav button[aria-current="true"] .ico { background: var(--primary); color: #fff; }
.nav .ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .count { min-width: 22px; padding: 1px 6px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: var(--fs-sm); font-weight: 700; text-align: center; }
.nav .count.soft { background: transparent; color: var(--mute); font-weight: 600; }
.sb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-top: 2px solid var(--ink); }
.sb-user { min-width: 0; font-size: var(--fs-md); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user small { display: block; color: var(--mute); font-weight: 500; }

.list-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 2px solid var(--ink); background: var(--bg); }
.pane-head { display: grid; gap: 10px; padding: 14px 14px 12px; border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.pane-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pane-title h1, .pane-title h2 { flex: 1; min-width: 0; margin: 0; font-family: var(--display); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search { position: relative; }
.search input { padding-left: 34px; }
.search::before { content: ""; position: absolute; left: 12px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border: 2px solid var(--mute); border-radius: 50%; }
.search::after { content: ""; position: absolute; left: 23px; top: 50%; width: 6px; height: 2px; margin-top: 3px; background: var(--mute); transform: rotate(45deg); }
.search input { padding-right: 38px; }
.search kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); }
kbd { display: inline-block; min-width: 22px; padding: 2px 6px; border: 1.5px solid var(--line2); border-bottom-width: 2.5px; border-radius: 5px; background: var(--paper); color: var(--mute); font-family: var(--mono); font-size: var(--fs-sm); line-height: 1.3; text-align: center; }
.keys { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px 16px; align-items: center; margin: 0; padding: 16px; }
.keys dt { white-space: nowrap; }
.keys dd { margin: 0; font-size: var(--fs-md); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-md); font-weight: 600; }
.filters .spacer { flex: 1; }
.messages { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.msg {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; width: 100%; min-height: 0; padding: 11px 14px 11px 16px;
  border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; background: transparent; box-shadow: none;
  font-family: var(--body); font-weight: 400; text-align: left; position: relative; line-height: 1.35;
}
.msg:hover:not(:disabled) { transform: none; box-shadow: none; background: var(--paper); }
.msg[aria-current="true"] { background: var(--paper); box-shadow: inset 4px 0 0 var(--primary); }
.msg.unread::before { content: ""; position: absolute; left: 6px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.msg .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.msg.unread .who, .msg.unread .subj { font-weight: 800; }
.msg .when { color: var(--mute); font-size: var(--fs-sm); white-space: nowrap; }
.msg .subj { grid-column: 1 / -1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-base); }
.msg .snip { grid-column: 1 / -1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mute); font-size: var(--fs-md); }
.msg .tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.list-foot { padding: 12px; text-align: center; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; color: var(--mute); text-align: center; }
.empty strong { color: var(--ink); font-family: var(--display); font-size: var(--fs-lg); }
.empty .tile { width: 46px; height: 46px; border: 1.5px dashed var(--line2); border-radius: 10px; display: grid; place-items: center; font-size: 22px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 14px 0; padding: 10px 12px; border: 1.5px solid var(--danger-strong); border-radius: 7px; background: color-mix(in srgb, var(--danger) 8%, var(--paper)); color: var(--danger-strong); font-size: var(--fs-md); }
.banner.info { border-color: var(--gold-d); background: color-mix(in srgb, var(--gold) 18%, var(--paper)); color: var(--ink); }
.banner button { margin-left: auto; }

.reader { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.reader-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.reader-bar .spacer { flex: 1; }
.reader-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 22px clamp(16px, 3vw, 40px) 40px; }
.reader-card { max-width: 980px; margin: 0 auto; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.reader-head { display: grid; gap: 10px; padding: 20px 22px 16px; border-bottom: 1.5px dashed var(--line2); }
.reader-head h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.meta { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 12px; margin: 0; font-size: var(--fs-md); }
.meta dt { color: var(--mute); font-weight: 700; }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.reader-body { padding: 18px 22px 22px; }
.reader-body pre { margin: 0; font-family: var(--body); font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.reader-body iframe { display: block; width: 100%; min-height: 160px; border: 0; background: #fff; border-radius: 6px; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 20px; }
.attachment { max-width: 100%; min-height: 40px; justify-content: flex-start; font-family: var(--body); font-weight: 600; font-size: var(--fs-md); }
.attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment small { color: var(--mute); font-weight: 500; }
.thread { max-width: 980px; margin: 18px auto 0; }
.thread .msg { border: 1.5px solid var(--line2); border-radius: 8px; margin-top: 6px; background: var(--paper); }
.reader-empty { flex: 1; display: grid; place-items: center; padding: 32px; color: var(--mute); text-align: center; }
.reader-empty .mark { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 12px; background: var(--ink) center/62% no-repeat url("/brand/npa-logo.svg"); box-shadow: 4px 4px 0 var(--line2); }

/* ---- Tools views (accounts, status, security) ------------------------- */
.page { flex: 1; min-height: 0; overflow-y: auto; padding: 22px clamp(16px, 3vw, 40px) 48px; }
.page-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 18px; }
.page-head h1 { margin: 2px 0 4px; font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.035em; }
.page-head p { margin: 0; max-width: 72ch; color: var(--mute); line-height: 1.5; }
.panel { min-width: 0; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.panel-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 18px; border-bottom: 1.5px dashed var(--line2); }
.panel-h h2 { flex: 1; min-width: 0; margin: 0; font-family: var(--display); font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.02em; }
.panel-b { padding: 16px 18px; }
.panel-b > p:first-child { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
table.t { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
table.t th { padding: 8px 10px; border-bottom: 1.5px solid var(--ink); color: var(--mute); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-align: left; text-transform: uppercase; white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; overflow-wrap: anywhere; }
table.t tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.mono { font-family: var(--mono); font-size: var(--fs-md); overflow-wrap: anywhere; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; padding: 12px; border: 1.5px dashed var(--ink); border-radius: 8px; background: var(--bg); font-family: var(--mono); }
.progress { height: 8px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--elev); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--primary); }

/* ---- Compose dialog --------------------------------------------------- */
dialog { padding: 0; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
dialog::backdrop { background: rgba(14,14,16,.35); }
.compose { width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.compose form { display: flex; flex-direction: column; max-height: calc(100dvh - 36px); }
.dlg-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1.5px dashed var(--line2); }
.dlg-head h2 { flex: 1; margin: 0; font-family: var(--display); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.03em; }
.dlg-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 12px; padding: 16px; }
.dlg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1.5px dashed var(--line2); }
.dlg-foot .spacer { flex: 1; }
.compose textarea[name=text] { min-height: 280px; }
.addr-row { display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 8px; }
.addr-row > span { color: var(--mute); font-family: var(--display); font-size: var(--fs-md); font-weight: 700; }
#cc-toggle-row { margin-top: -6px; padding-left: 72px; }
.compose .err:empty { min-height: 0; margin-top: -12px; }
.files { display: flex; flex-wrap: wrap; gap: 6px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 9px; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--bg); font-size: var(--fs-md); }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button { min-height: 26px; width: 26px; padding: 0; box-shadow: none; border-color: transparent; background: transparent; }
.draft-note { color: var(--mute); font-size: var(--fs-sm); }
.dialog-sm { width: min(460px, calc(100vw - 32px)); }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 22px; max-width: min(560px, calc(100vw - 32px)); padding: 11px 16px; border: 2px solid var(--ink); border-radius: 9px; background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--primary); font-weight: 600; transform: translateX(-50%); }
.toast.error { background: var(--paper); color: var(--danger-strong); border-color: var(--danger-strong); box-shadow: 4px 4px 0 var(--danger-strong); }

.mobile-only { display: none !important; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 1280px) { :root { --list-w: 360px; --sb-w: 230px; } }
@media (max-width: 960px) {
  .app, .app.wide { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 70; width: min(300px, 86vw); transform: translateX(-104%); box-shadow: 6px 0 0 rgba(14,14,16,.18); }
  /* Animate only the opening: a resize or rotation must not show the drawer sliding away. */
  .app.nav-open .sidebar { transform: none; transition: transform .18s ease; }
  .scrim { position: fixed; inset: 0; z-index: 65; background: rgba(14,14,16,.35); }
  .app .list-pane, .app .reader { display: none; }
  .app[data-view="list"] .list-pane { display: flex; border-right: 0; }
  .app[data-view="reader"] .reader { display: flex; }
  .app[data-view="page"] .reader { display: flex; }
  .mobile-only { display: inline-flex !important; }
  .desktop-only { display: none !important; }
  .reader-scroll, .page { padding: 14px 10px 32px; }
  .reader-head { padding: 16px 14px 12px; }
  .reader-head h2 { font-size: 20px; }
  .reader-body { padding: 14px; }
  .attachments { padding: 0 14px 14px; }
  .grid2 { grid-template-columns: minmax(0,1fr); }
  .compose { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; box-shadow: none; }
  .compose form { max-height: 100dvh; height: 100%; }
  .addr-row { grid-template-columns: minmax(0,1fr); gap: 4px; }
  #cc-toggle-row { margin-top: 0; padding-left: 0; }
  .search input { padding-right: 10px; }
  .codes { grid-template-columns: minmax(0,1fr); }
}
