:root {
  --paper: #f6f1ea;
  --paper-2: #efe7dc;
  --surface: #fffdfb;
  --surface-2: #fbf7f2;
  --ink: #211e1b;
  --ink-2: #443d37;
  --muted: #7c736b;
  --line: rgba(33, 30, 27, 0.11);
  --line-strong: rgba(33, 30, 27, 0.18);
  --teal: #235e57;
  --teal-deep: #17433e;
  --teal-soft: #e3efea;
  --coral: #d94b36;
  --coral-deep: #b93724;
  --coral-soft: #fce8e3;
  --gold: #bd8a45;
  --shadow-sm: 0 1px 2px rgba(33, 30, 27, 0.05), 0 8px 24px -16px rgba(33, 30, 27, 0.25);
  --shadow-md: 0 2px 6px rgba(33, 30, 27, 0.06), 0 24px 60px -28px rgba(33, 30, 27, 0.35);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC",
    "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 70vw;
  height: 70vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

body::before {
  top: -32vw;
  right: -24vw;
  background: radial-gradient(circle at 40% 40%, rgba(217, 75, 54, 0.14), rgba(217, 75, 54, 0) 65%);
}

body::after {
  bottom: -38vw;
  left: -28vw;
  background: radial-gradient(circle at 55% 45%, rgba(35, 94, 87, 0.15), rgba(35, 94, 87, 0) 68%);
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
}

svg {
  display: block;
}

.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;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* ---------- shell ---------- */

.view {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px calc(36px + env(safe-area-inset-bottom));
  animation: fade-in 0.45s ease both;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  box-shadow: 0 7px 18px -8px rgba(23, 67, 62, 0.55);
  flex: none;
}

.brand-word {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-word span {
  color: var(--coral);
}

.brand--small .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 11px;
}

.brand--small .brand-word {
  font-size: 15px;
}

/* ---------- login ---------- */

#login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: max(28px, env(safe-area-inset-top));
}

.login-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.login-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 75, 54, 0.1), transparent 65%);
  pointer-events: none;
}

.login-card .brand {
  margin-bottom: 28px;
}

.login-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 8.4vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.login-title em {
  font-style: normal;
  color: var(--coral);
}

.login-lede {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 300px;
}

.field {
  display: block;
  margin-bottom: 15px;
}

.field > span {
  display: block;
  margin: 0 0 7px 2px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 16px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.field input::placeholder {
  color: #b3a99f;
}

.field input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(35, 94, 87, 0.1);
}

#code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 16px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.985);
}

.btn-primary {
  width: 100%;
  height: 56px;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(23, 67, 62, 0.8);
}

.btn-primary:hover:not(:disabled) {
  background: var(--teal-deep);
}

.btn-primary:disabled {
  opacity: 0.55;
}

.center {
  text-align: center;
}

.form-error {
  min-height: 20px;
  margin: 12px 2px 0;
  color: var(--coral-deep);
  font-size: 13px;
  line-height: 1.5;
}

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  padding: 20px 0 0;
  margin: 20px 0 0;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.login-foot {
  margin: 18px 0 0;
  text-align: center;
  color: #a3998f;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.shake {
  animation: shake 0.36s ease;
}

@keyframes shake {
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* ---------- main ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 0 12px;
  background: linear-gradient(to bottom, rgba(246, 241, 234, 0.96) 55%, rgba(246, 241, 234, 0));
  backdrop-filter: blur(8px);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.net {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.net i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bdb3a8;
  transition: background 0.3s ease;
}

.net.online i {
  background: #35a37c;
  box-shadow: 0 0 0 4px rgba(53, 163, 124, 0.13);
}

.net.offline i {
  background: var(--coral);
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  transition: background 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover {
  background: #fff;
}

.icon-btn:active {
  transform: scale(0.94);
}

.hero {
  padding: 22px 2px 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 9vw, 41px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.hero h1 em {
  font-style: normal;
  color: var(--coral);
}

.hero-sub {
  margin: 12px 0 0;
  max-width: 310px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ---------- call cards ---------- */

.action {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 16px;
  overflow: hidden;
  isolation: isolate;
}

.action-normal {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(145deg, #2a6d64 0%, var(--teal) 48%, var(--teal-deep) 100%);
  color: #f9f6f1;
  box-shadow: 0 24px 50px -28px rgba(23, 67, 62, 0.85);
}

.action-normal::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -80px;
  bottom: -100px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.04), 0 0 0 68px rgba(255, 255, 255, 0.026);
  z-index: -1;
}

.action-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.icon-bubble {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.action-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.action-head p {
  margin: 2px 0 0;
  color: rgba(249, 246, 241, 0.64);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.presets {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 0 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.presets::-webkit-scrollbar {
  display: none;
}

.preset {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(249, 246, 241, 0.86);
  font-size: 12px;
  transition: background 0.16s ease;
}

.preset:hover {
  background: rgba(255, 255, 255, 0.14);
}

.note-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  margin-bottom: 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  font-size: 14px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.note-input::placeholder {
  color: rgba(249, 246, 241, 0.45);
}

.note-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.16);
}

.btn-call {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 0;
  background: #f8f3ea;
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn-call:hover:not(:disabled) {
  background: #fffdf8;
}

.btn-call:active:not(:disabled) {
  transform: scale(0.985);
}

.btn-call:disabled {
  opacity: 1;
  background: rgba(248, 243, 234, 0.38);
  color: rgba(23, 67, 62, 0.72);
  box-shadow: none;
}

.action-urgent {
  background:
    radial-gradient(130% 100% at 0% 0%, rgba(255, 255, 255, 0.13), transparent 55%),
    linear-gradient(145deg, #e2583f 0%, var(--coral) 46%, var(--coral-deep) 100%);
  color: #fff8f5;
  box-shadow: 0 26px 54px -28px rgba(185, 55, 36, 0.9);
  padding: 18px 18px 20px;
  text-align: center;
}

.action-urgent::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 0.7px, transparent 0.7px);
  background-size: 9px 9px;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.urgent-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 10px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 22px;
}

.urgent-orbit {
  position: relative;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.urgent-orbit .halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: halo 2.8s ease-out infinite;
}

.urgent-orbit .halo:nth-child(2) {
  animation-delay: 1.1s;
}

.urgent-orbit .core {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.urgent-btn:hover .core {
  background: rgba(255, 255, 255, 0.2);
}

.urgent-btn.holding .core {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.28);
}

.urgent-ring {
  position: absolute;
  inset: -3px;
  transform: rotate(-90deg);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.urgent-btn.holding .urgent-ring {
  opacity: 1;
}

.urgent-ring circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 296;
  stroke-dashoffset: 296;
}

.urgent-btn.holding .urgent-ring circle {
  animation: hold-ring 2s linear forwards;
}

@keyframes hold-ring {
  from { stroke-dashoffset: 296; }
  to { stroke-dashoffset: 0; }
}

@keyframes halo {
  0% { transform: scale(0.82); opacity: 0.7; }
  70% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

.urgent-title {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.urgent-sub {
  font-size: 11.5px;
  color: rgba(255, 248, 245, 0.72);
  letter-spacing: 0.04em;
}

.urgent-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(255, 248, 245, 0.58);
}

.urgent-btn:disabled {
  opacity: 0.72;
}

.urgent-btn:disabled .halo {
  animation: none;
  opacity: 0;
}

/* ---------- active ---------- */

#active {
  margin: 8px 0 0;
}

.active-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: rise 0.35s ease both;
}

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

.active-card.is-urgent {
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(150deg, var(--coral) 0%, var(--coral-deep) 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 24px 50px -28px rgba(185, 55, 36, 0.85);
}

.active-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.active-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
}

.active-card.is-urgent .active-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.active-kicker .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.active-title {
  margin: 7px 0 2px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.active-card.is-urgent .active-title {
  font-family: var(--sans);
  font-size: 24px;
  letter-spacing: 0.02em;
}

.active-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.active-card.is-urgent .active-sub {
  color: rgba(255, 255, 255, 0.72);
}

.active-time {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 4px;
}

.active-card.is-urgent .active-time {
  color: rgba(255, 255, 255, 0.75);
}

.active-note {
  margin: 13px 0 0;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.active-card.is-urgent .active-note {
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 18px 0 4px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 5px;
  height: 1px;
  background: var(--line);
}

.timeline .tl {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  color: #a79d93;
}

.timeline .tl .dot {
  display: block;
  width: 11px;
  height: 11px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.timeline .tl.done {
  color: var(--teal);
  font-weight: 650;
}

.timeline .tl.done .dot {
  background: var(--teal);
  border-color: var(--teal);
}

.timeline .tl .tl-time {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  color: #b3a99f;
  font-weight: 500;
}

.active-card.is-urgent .timeline::before {
  background: rgba(255, 255, 255, 0.25);
}

.active-card.is-urgent .timeline .tl {
  color: rgba(255, 255, 255, 0.55);
}

.active-card.is-urgent .timeline .tl.done {
  color: #fff;
}

.active-card.is-urgent .timeline .tl .dot {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.active-card.is-urgent .timeline .tl.done .dot {
  background: #fff;
  border-color: #fff;
}

.active-card.is-urgent .timeline .tl .tl-time {
  color: rgba(255, 255, 255, 0.5);
}

.active-actions {
  display: flex;
  gap: 9px;
  margin-top: 16px;
}

.btn-ghost {
  flex: 1;
  height: 44px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.18s ease;
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.active-card.is-urgent .btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.active-card.is-urgent .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pulse-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.5px;
}

.pulse-line .bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  position: relative;
}

.pulse-line .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.75);
  animation: sweep 1.8s ease-in-out infinite;
}

@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

/* ---------- history ---------- */

.history {
  margin-top: 26px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 3px 13px;
}

.section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section-head span {
  color: var(--muted);
  font-size: 11.5px;
}

.history-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.h-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.h-item:last-child {
  border-bottom: 0;
}

.h-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
}

.h-icon.urgent {
  background: var(--coral-soft);
  color: var(--coral);
}

.h-body {
  min-width: 0;
}

.h-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}

.h-title .mini {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.h-note {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h-meta {
  text-align: right;
}

.h-time {
  font-size: 10.5px;
  color: #a79d93;
  white-space: nowrap;
}

.h-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--teal);
}

.h-status.sent {
  color: var(--gold);
}

.h-status.canceled {
  color: #a79d93;
}

.h-status svg {
  width: 11px;
  height: 11px;
}

.empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.foot-note {
  margin: 22px 0 0;
  text-align: center;
  color: #a89e94;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 14px);
  z-index: 90;
  max-width: min(88vw, 380px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(33, 30, 27, 0.94);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.urgent {
  background: var(--coral-deep);
}

/* ---------- sheet ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(33, 30, 27, 0.34);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.overlay.show {
  opacity: 1;
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: min(480px, 100%);
  transform: translate(-50%, 104%);
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  padding: 10px 22px calc(26px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.4);
  transition: transform 0.32s cubic-bezier(0.22, 0.85, 0.25, 1);
}

.sheet.show {
  transform: translate(-50%, 0);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
  margin: 4px auto 18px;
}

.sheet h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.sheet-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.sheet-row .label {
  color: var(--muted);
}

.sheet-row .value {
  font-weight: 600;
  color: var(--ink-2);
  text-align: right;
  overflow-wrap: anywhere;
}

.sheet-actions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.btn-secondary {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
}

.btn-secondary:hover {
  background: #f6efe6;
}

.btn-danger {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(217, 75, 54, 0.22);
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 14px;
  font-weight: 650;
}

.sheet-close {
  margin-top: 8px;
  width: 100%;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- responsive ---------- */

@media (min-width: 560px) {
  .view {
    padding-left: 24px;
    padding-right: 24px;
  }

  .login-card {
    padding: 34px 30px 28px;
  }

  .action {
    padding: 26px;
  }

  .action-urgent {
    padding: 22px 26px 24px;
  }
}

@media (max-width: 360px) {
  .view {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .action {
    padding: 18px;
    border-radius: 26px;
  }

  .urgent-title {
    font-size: 19px;
  }

  .h-item {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 13px;
  }

  .h-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
}

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