:root {
  --ink: #102a2e;
  --muted: #64777a;
  --faint: #8d9c9e;
  --paper: #f4f7f5;
  --surface: #ffffff;
  --line: #dce6e3;
  --line-strong: #c8d8d4;
  --navy: #0e3035;
  --navy-deep: #08272c;
  --teal: #0c7c73;
  --teal-dark: #08685f;
  --teal-soft: #e5f5f1;
  --blue-soft: #eaf1f8;
  --blue: #50799f;
  --orange: #c77a2c;
  --orange-soft: #fff2e3;
  --red: #c14848;
  --red-soft: #fff0ef;
  --shadow-sm: 0 1px 2px rgba(10, 42, 46, 0.04), 0 5px 18px rgba(10, 42, 46, 0.04);
  --shadow-lg: 0 24px 70px rgba(7, 37, 41, 0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button, label[for] { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
a { color: inherit; text-decoration: none; }
[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;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 21px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  border-radius: 11px;
  background: var(--teal);
}

.brand-mark svg { width: 28px; height: 28px; stroke-width: 2; }
.brand-on-dark { color: white; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 680;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:focus-visible, .icon-button:focus-visible, .filter-tab:focus-visible, input:focus-visible, textarea:focus-visible, .drop-zone:focus-within { outline: 3px solid rgba(12, 124, 115, 0.22); outline-offset: 2px; }
.button:disabled { cursor: not-allowed; opacity: 0.45; }
.button svg { width: 18px; height: 18px; }
.button-primary { color: white; background: var(--teal); box-shadow: 0 8px 22px rgba(12, 124, 115, 0.18); }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); box-shadow: 0 10px 26px rgba(12, 124, 115, 0.24); }
.button-block { width: 100%; }
.button-soft { min-height: 38px; padding: 0 14px; color: var(--teal); background: var(--teal-soft); }
.button-soft:hover { background: #d8eee9; }
.button-ghost { border-color: var(--line-strong); background: white; }
.button-danger { color: white; background: var(--red); }

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  color: var(--muted);
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.icon-button:hover { color: var(--ink); background: var(--paper); }
.icon-button svg { width: 20px; height: 20px; }

/* Login */
.login-body { min-height: 100vh; background: var(--navy); }

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 0.94fr) minmax(520px, 1.06fr);
}

.login-intro {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(36px, 5vw, 72px) clamp(38px, 6vw, 96px);
  color: white;
  background:
    radial-gradient(circle at 17% 78%, rgba(28, 178, 161, 0.17), transparent 27%),
    radial-gradient(circle at 80% 20%, rgba(72, 130, 140, 0.19), transparent 25%),
    var(--navy);
}

.login-intro::before,
.login-intro::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.login-intro::before { width: 520px; height: 520px; right: -270px; top: -180px; }
.login-intro::after { width: 340px; height: 340px; left: -200px; bottom: 30px; }

.login-copy { position: relative; z-index: 1; max-width: 540px; margin: 72px 0; }
.login-copy .eyebrow { color: #69d2c4; }
.login-copy h1 { margin: 0; font-size: clamp(42px, 4.4vw, 68px); font-weight: 660; line-height: 1.12; letter-spacing: -0.045em; }
.login-lead { max-width: 480px; margin: 28px 0 0; color: rgba(255, 255, 255, 0.68); font-size: 17px; line-height: 1.85; }

.trust-list { position: relative; z-index: 1; display: grid; max-width: 560px; margin: 0; padding: 0; grid-template-columns: repeat(3, 1fr); list-style: none; }
.trust-list li { display: flex; min-width: 0; gap: 12px; padding-right: 22px; color: rgba(255, 255, 255, 0.55); font-size: 12px; }
.trust-list li + li { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.trust-list strong { display: block; margin-bottom: 2px; color: rgba(255, 255, 255, 0.9); font-size: 13px; }
.trust-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; color: #69d2c4; border: 1px solid rgba(105, 210, 196, 0.3); border-radius: 50%; font-size: 9px; font-weight: 700; }

.login-panel {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px;
  background: #f7f9f8;
}

.login-card { width: min(100%, 420px); }
.login-card-heading { margin-bottom: 36px; }
.login-card-heading h2 { margin: 0 0 10px; color: var(--navy); font-size: 31px; line-height: 1.25; letter-spacing: -0.025em; }
.login-card-heading > p:last-child { margin: 0; color: var(--muted); }
.mobile-brand { display: none; }

.field { display: block; margin-bottom: 22px; }
.field-label, .field-label-row { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 680; }
.field-label-row { display: flex; justify-content: space-between; }
.field-hint { color: var(--faint); font-weight: 500; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: 15px; width: 19px; height: 19px; color: var(--faint); pointer-events: none; }
.input-wrap input { width: 100%; height: 52px; padding: 0 48px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; background: white; outline: 0; transition: border-color 160ms ease, box-shadow 160ms ease; }
.input-wrap input::placeholder { color: #a3afaf; }
.input-wrap input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(12, 124, 115, 0.08); }
.password-toggle { position: absolute; right: 6px; }
.eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }

.password-rule { display: flex; align-items: center; gap: 8px; margin: -10px 0 22px; color: var(--faint); font-size: 12px; }
.rule-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.password-rule.valid { color: var(--teal); }
.password-rule.valid .rule-dot { background: var(--teal); }
.form-error { margin: -4px 0 16px; padding: 10px 12px; color: var(--red); border-radius: 8px; background: var(--red-soft); font-size: 13px; }

.prototype-note { display: flex; gap: 10px; margin-top: 28px; padding: 14px 16px; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.65); font-size: 12px; }
.prototype-note svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; color: var(--teal); }
.prototype-note p { margin: 0; }
.prototype-note strong { display: block; margin-bottom: 2px; color: var(--ink); }
.login-footer { margin: 44px 0 0; color: var(--faint); font-size: 11px; letter-spacing: 0.05em; }

/* App */
.app-body { min-height: 100vh; background: var(--paper); }
.page-width { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.app-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(207, 220, 216, 0.8); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px); }
.header-inner { display: flex; height: 72px; align-items: center; justify-content: space-between; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.connection-status { display: flex; align-items: center; gap: 7px; margin-right: 10px; color: var(--teal); font-size: 12px; font-weight: 650; }
.connection-status > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: #20a88e; box-shadow: 0 0 0 4px rgba(32, 168, 142, 0.11); }
.account-button { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 5px 10px 5px 6px; border: 0; border-radius: 12px; background: transparent; cursor: default; }
.account-button > svg { width: 16px; height: 16px; color: var(--faint); }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; color: var(--teal-dark); border-radius: 10px; background: var(--teal-soft); font-weight: 760; }
.account-copy { display: grid; text-align: left; line-height: 1.2; }
.account-copy strong { font-size: 13px; }
.account-copy small { margin-top: 4px; color: var(--faint); font-size: 10px; }
.logout-button { margin-left: 2px; }

.app-main { padding-top: 54px; padding-bottom: 48px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 34px; }
.welcome-row h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 43px); font-weight: 650; line-height: 1.15; letter-spacing: -0.035em; }
.welcome-row h1 span { color: var(--teal); }
.welcome-row > div:first-child > p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.retention-summary { display: flex; flex: 0 0 auto; gap: 20px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.62); }
.retention-summary > div { display: flex; align-items: center; gap: 9px; }
.retention-summary > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.retention-summary > div > span:last-child { display: grid; line-height: 1.2; }
.retention-summary strong { font-size: 12px; }
.retention-summary small { margin-top: 4px; color: var(--faint); font-size: 10px; }
.summary-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; font-size: 13px; font-weight: 750; }
.summary-icon svg { width: 17px; height: 17px; }

.text-icon { color: #397190; background: var(--blue-soft); }
.file-icon { color: var(--teal); background: var(--teal-soft); }
.archive-icon { color: #a15f23; background: var(--orange-soft); }

.composer-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 18px; }
.composer-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 11px; font-size: 16px; font-weight: 760; }
.section-icon svg { width: 20px; height: 20px; }
.card-heading h2 { margin: 0 0 3px; font-size: 16px; }
.card-heading p { margin: 0; color: var(--faint); font-size: 11px; }
.text-composer textarea { display: block; width: 100%; height: 114px; resize: vertical; padding: 15px 16px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 11px; background: #fbfcfc; outline: 0; line-height: 1.7; }
.text-composer textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(12, 124, 115, 0.06); }
.text-composer textarea::placeholder { color: #a4b0b0; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.character-count { color: var(--faint); font-size: 10px; }
.character-count strong { color: var(--muted); font-weight: 560; }

.drop-zone { display: flex; height: 166px; align-items: center; justify-content: center; gap: 15px; color: var(--muted); border: 1.5px dashed #b9cfca; border-radius: 12px; background: #f8fbfa; cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--teal); background: var(--teal-soft); }
.drop-zone > span:last-child { display: grid; }
.drop-zone strong { margin-bottom: 4px; color: var(--ink); font-size: 13px; }
.drop-zone small { color: var(--faint); font-size: 11px; }
.upload-illustration { display: grid; width: 46px; height: 46px; place-items: center; color: var(--teal); border-radius: 13px; background: white; box-shadow: var(--shadow-sm); }
.upload-illustration svg { width: 23px; height: 23px; }
.upload-progress { height: 166px; padding: 48px 24px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfc; }
.upload-file-row { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; font-size: 12px; }
.upload-file-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-row strong { color: var(--teal); }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--teal); transition: width 180ms ease; }

.content-section { margin-top: 52px; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading-row h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.filter-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.7); }
.filter-tab { min-height: 34px; padding: 0 13px; color: var(--muted); border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 620; }
.filter-tab span { display: inline-grid; min-width: 18px; height: 18px; margin-left: 3px; place-items: center; border-radius: 999px; background: var(--paper); font-size: 9px; }
.filter-tab.active { color: var(--ink); background: white; box-shadow: 0 1px 5px rgba(16, 42, 46, 0.08); }

.item-list { display: grid; gap: 10px; }
.list-loading, .list-error { padding: 38px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.list-error button { margin-left: 8px; padding: 5px 10px; color: var(--teal); border: 1px solid var(--line-strong); border-radius: 7px; background: white; cursor: pointer; }
.share-item { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 1px 2px rgba(12, 44, 48, 0.025); transition: border-color 160ms ease, box-shadow 160ms ease; }
.share-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.expiring-item { border-left: 3px solid #e2a14e; }
.item-main { display: flex; min-width: 0; flex: 1; gap: 15px; }
.item-type-badge { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 11px; font-size: 12px; font-weight: 780; }
.item-type-badge svg { width: 20px; height: 20px; }
.item-content { min-width: 0; flex: 1; }
.item-topline { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.kind-label { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.status-chip { display: inline-flex; min-height: 21px; align-items: center; gap: 5px; padding: 0 8px; border-radius: 999px; font-size: 9px; font-weight: 680; }
.status-chip span { width: 5px; height: 5px; border-radius: 50%; }
.status-used { color: var(--teal-dark); background: var(--teal-soft); }
.status-used span { background: var(--teal); }
.status-new { color: #7c704d; background: #f7f1dd; }
.status-new span { background: #b49335; }
.text-preview, .file-name { margin: 0 0 10px; color: var(--ink); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.file-name { font-weight: 650; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 15px; color: var(--faint); font-size: 10px; }
.item-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.item-meta svg { width: 13px; height: 13px; }
.item-meta .expiry { color: var(--muted); }
.item-meta .expiry-soon { color: var(--orange); font-weight: 650; }
.item-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 3px; padding-top: 7px; }
.action-delete:hover { color: var(--red); background: var(--red-soft); }
.action-history.active { color: var(--teal); background: var(--teal-soft); }

.history-panel { margin-top: 15px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfa; }
.history-title { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 11px; }
.history-title span { color: var(--faint); }
.history-panel ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.history-device { display: flex; align-items: center; gap: 9px; }
.history-device i { width: 7px; height: 7px; border: 2px solid white; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px var(--line-strong); }
.history-device > span { display: grid; line-height: 1.25; }
.history-device strong { font-size: 10px; font-weight: 650; }
.history-device small { margin-top: 3px; color: var(--faint); font-size: 9px; }
.empty-history { color: var(--faint); font-size: 11px; text-align: center; }

.empty-state { padding: 64px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.empty-state h3 { margin: 14px 0 5px; color: var(--ink); }
.empty-state p { margin: 0; font-size: 12px; }
.empty-icon { display: inline-grid; width: 48px; height: 48px; place-items: center; color: var(--teal); border-radius: 14px; background: var(--teal-soft); }
.empty-icon svg { width: 24px; height: 24px; }

.app-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 32px; color: var(--faint); border-top: 1px solid var(--line); font-size: 10px; }
.app-footer p { margin: 0; }
.app-footer p:first-child { display: flex; align-items: center; gap: 7px; }
.app-footer p:first-child span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; padding: 20px; place-items: center; background: rgba(5, 30, 34, 0.48); backdrop-filter: blur(5px); }
.modal { position: relative; width: min(100%, 400px); padding: 32px; border-radius: 18px; background: white; box-shadow: var(--shadow-lg); text-align: center; animation: modal-in 180ms ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal-warning { display: inline-grid; width: 50px; height: 50px; place-items: center; color: var(--red); border-radius: 15px; background: var(--red-soft); }
.modal-warning svg { width: 23px; height: 23px; }
.modal h2 { margin: 18px 0 8px; font-size: 20px; }
.modal p { margin: 0; color: var(--muted); font-size: 13px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }

.toast-region { position: fixed; z-index: 60; right: 24px; bottom: 24px; pointer-events: none; }
.toast { display: flex; min-width: 240px; align-items: center; gap: 10px; padding: 13px 16px; color: white; border-radius: 12px; background: var(--navy); box-shadow: var(--shadow-lg); animation: toast-in 220ms ease-out; font-size: 12px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.toast-icon { display: grid; width: 23px; height: 23px; place-items: center; color: var(--navy); border-radius: 50%; background: #7fe0d2; }
.toast-icon svg { width: 14px; height: 14px; stroke-width: 2.4; }

@media (max-width: 960px) {
  .login-shell { grid-template-columns: minmax(340px, 0.78fr) minmax(440px, 1fr); }
  .login-intro { padding: 44px; }
  .login-copy h1 { font-size: 46px; }
  .trust-list { grid-template-columns: 1fr; gap: 15px; }
  .trust-list li + li { padding-left: 0; border-left: 0; }
  .trust-list li { padding: 0; }
  .composer-grid { grid-template-columns: 1fr; }
  .text-composer textarea { height: 140px; }
}

@media (max-width: 760px) {
  .login-shell { display: block; background: #f7f9f8; }
  .login-intro { display: none; }
  .login-panel { min-height: 100svh; padding: 28px 22px; }
  .mobile-brand { display: inline-block; margin-bottom: 44px; color: var(--teal); font-size: 22px; font-weight: 780; letter-spacing: 0.1em; }
  .login-card-heading { margin-bottom: 30px; }
  .login-card-heading h2 { font-size: 28px; }
  .login-footer { margin-top: 34px; }

  .page-width { width: min(100% - 28px, 1180px); }
  .header-inner { height: 64px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .status-full, .account-copy, .account-button > svg { display: none; }
  .connection-status { margin-right: 2px; }
  .account-button { min-height: 42px; padding: 4px; }
  .avatar { width: 34px; height: 34px; }
  .logout-button { width: 38px; height: 38px; }

  .app-main { padding-top: 32px; }
  .welcome-row { display: block; margin-bottom: 25px; }
  .welcome-row h1 { font-size: 31px; }
  .retention-summary { margin-top: 22px; justify-content: space-between; }
  .retention-summary > div { flex: 1; }
  .retention-summary > div + div { padding-left: 14px; }
  .composer-card { padding: 18px; }
  .drop-zone { height: 140px; }
  .upload-progress { height: 140px; padding: 39px 15px; }
  .content-section { margin-top: 38px; }
  .section-heading-row { display: block; }
  .filter-tabs { margin-top: 16px; }
  .filter-tab { flex: 1; }

  .share-item { display: block; padding: 16px; }
  .item-main { gap: 11px; }
  .item-type-badge { width: 36px; height: 36px; border-radius: 9px; }
  .item-actions { justify-content: flex-end; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
  .item-actions .button-soft { margin-right: auto; }
  .item-meta { gap: 6px 12px; }
  .history-panel { margin-left: -47px; }
  .app-footer { display: grid; gap: 7px; text-align: center; }
  .app-footer p { justify-content: center; }
  .toast-region { right: 14px; bottom: 14px; left: 14px; }
  .toast { min-width: 0; }
}

@media (max-width: 420px) {
  .login-panel { justify-content: flex-start; }
  .login-card { margin-top: 20px; }
  .retention-summary { gap: 9px; padding: 11px; }
  .summary-icon { width: 29px; height: 29px; }
  .composer-footer .button { padding: 0 14px; }
  .item-topline { align-items: flex-start; flex-direction: column; gap: 5px; }
  .modal { padding: 28px 22px 22px; }
}

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