:root,
html[data-theme="light"] {
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --blue-soft: rgba(59, 130, 246, 0.12);
  --blue-glass: rgba(59, 130, 246, 0.55);
  --ink: #1e293b;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --bg: #f1f5f9;
  --bg-glow: linear-gradient(180deg, #e8f0fe 0%, #f1f5f9 40%, #f8fafc 100%);
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --ok: #10b981;
  --ok-bg: rgba(16, 185, 129, 0.14);
  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.16);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(37, 99, 235, 0.12);
  --r: 22px;
  --nav-h: 108px;
  --dock-h: 78px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-bg: #ffffff;
  --glass-border: rgba(255, 255, 255, 0.95);
  --blur: blur(20px);
  --frame-bg: #dbe4f0;
  --dock: #ffffff;
  --edge: transparent;
}

html[data-theme="dark"] {
  --blue: #60a5fa;
  --blue-deep: #3b82f6;
  --blue-soft: rgba(96, 165, 250, 0.18);
  --blue-glass: rgba(37, 99, 235, 0.55);
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.28);
  --bg: #0b1220;
  --bg-glow: radial-gradient(80% 50% at 50% 0%, rgba(59,130,246,0.2), transparent 60%), #0b1220;
  --white: #0f172a;
  --card: rgba(15, 23, 42, 0.72);
  --card-solid: #111827;
  --ok: #34d399;
  --ok-bg: rgba(52, 211, 153, 0.14);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.14);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(8, 16, 32, 0.94);
  --glass-border: rgba(148, 163, 184, 0.28);
  --edge: rgba(148, 163, 184, 0.32);
  --blur: blur(20px);
  --frame-bg: #04080f;
  --dock: #0f172a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg-glow);
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.pwa-shell {
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg-glow);
  position: relative;
  overflow: hidden;
}
@media (min-width: 481px) {
  body { background: var(--frame-bg); }
  .pwa-shell {
    height: min(900px, calc(100dvh - 32px));
    max-height: min(900px, calc(100dvh - 32px));
    margin: 16px auto;
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
  }
}

/* ===== App bar ===== */
.appbar {
  padding: calc(14px + var(--safe-t)) 20px 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-shrink: 0; background: transparent;
}
.appbar h1, .appbar h2 {
  margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink);
}
.appbar .sub { margin: 3px 0 0; color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.appbar .hi { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.appbar .hi .wave { font-style: normal; }

.round-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08); display: grid; place-items: center; cursor: pointer;
  color: var(--ink); flex-shrink: 0; position: relative;
}
html[data-theme="dark"] .round-btn { background: rgba(15,23,42,0.92); }
.round-btn .dot {
  position: absolute; top: 10px; right: 11px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--danger);
}

.content {
  flex: 1 1 auto;
  min-height: 0; /* obrigatório p/ scroll interno no flex */
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px 18px calc(var(--nav-h) + 18px + var(--safe-b));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.content.no-nav { padding-bottom: calc(22px + var(--safe-b)); }

/* ===== Cards (foto: branco sólido + sombra suave) ===== */
.card, .glass-card {
  background: var(--card-solid);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  border: 0;
}
.card.glass { background: rgba(255,255,255,0.82); backdrop-filter: var(--blur); }
html[data-theme="dark"] .card,
html[data-theme="dark"] .glass-card { background: rgba(15,23,42,0.92); }
html[data-theme="dark"] .card.glass { background: rgba(15,23,42,0.72); }

.hero-glass {
  background: linear-gradient(135deg, #7dd3fc 0%, #60a5fa 42%, #3b82f6 100%);
  color: #fff;
  border-radius: 26px;
  padding: 22px 20px 20px;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
  margin-bottom: 20px;
  border: 0;
  position: relative; overflow: hidden;
}
.hero-glass::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 12%, rgba(255,255,255,0.4), transparent 42%);
  pointer-events: none;
}
.hero-glass .hero-title {
  position: relative; z-index: 1;
  font-size: 1.28rem; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.28; margin: 0 0 16px; max-width: 17ch;
}
.hero-glass .btn-hero {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #2563eb;
  border: 0; border-radius: 999px; padding: 11px 18px;
  font-weight: 800; font-size: 0.82rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.section-label {
  font-size: 0.95rem; font-weight: 800; margin: 6px 2px 12px; color: var(--ink);
}
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 8px 0 10px; font-weight: 800; font-size: 0.95rem;
}
.section-title a { color: var(--blue); font-size: 0.78rem; font-weight: 700; }

/* Home summary trio */
.summary-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px;
}
.summary-row--4 {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 380px) {
  .summary-row--4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.summary-tile {
  background: #fff;
  border: 0; border-radius: 20px;
  padding: 14px 8px 12px; text-align: center;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
html[data-theme="dark"] .summary-tile { background: rgba(15,23,42,0.92); }
.summary-tile .ico-wrap {
  width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 10px;
  display: grid; place-items: center; background: #eff6ff; color: var(--blue);
}
.summary-row--4 .summary-tile .ico-wrap { width: 32px; height: 32px; margin-bottom: 8px; }
.summary-row--4 .summary-tile b { font-size: 0.95rem; }
.summary-tile b { display: block; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.summary-tile span { display: block; font-size: 0.62rem; color: var(--muted); font-weight: 600; margin-top: 3px; line-height: 1.25; }

.hero-glass .hero-kicker {
  position: relative; z-index: 1;
  margin: 0 0 6px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.88;
}

/* Now card */
.now-card {
  display: block;
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
html[data-theme="dark"] .now-card { background: rgba(15,23,42,0.92); }
.now-card__top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.now-card__pills {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end;
  max-width: 55%;
}
.now-card__title { font-weight: 800; font-size: 1rem; }
.now-card__meta { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.now-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  background: var(--blue-soft); border-radius: 14px; padding: 10px 8px;
  text-align: center; margin-bottom: 10px;
}
.now-stats b { display: block; font-size: 1.05rem; font-weight: 800; }
.now-stats span { font-size: 0.62rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.now-stats .warn b { color: var(--warn); }
.now-card__foot { font-size: 0.78rem; color: var(--blue); font-weight: 700; }

.alert-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.home-alert {
  display: block;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  border-left: 4px solid var(--blue);
}
html[data-theme="dark"] .home-alert { background: rgba(15,23,42,0.92); }
.home-alert--warn { border-left-color: var(--warn); background: var(--warn-bg); }
.home-alert--danger { border-left-color: var(--danger); background: var(--danger-bg); }
.home-alert--info { border-left-color: var(--blue); }
.home-alert .t { font-weight: 800; font-size: 0.88rem; }
.home-alert .d { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.fin-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border-radius: 18px; padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
html[data-theme="dark"] .fin-strip { background: rgba(15,23,42,0.92); }
.fin-strip .t { font-weight: 800; font-size: 0.9rem; }
.fin-strip .d { font-size: 0.75rem; color: var(--muted); margin-top: 2px; text-transform: capitalize; }
.fin-strip__go { color: var(--blue); font-weight: 800; font-size: 0.8rem; white-space: nowrap; }

.top-clothes { padding: 14px 16px; margin-bottom: 12px; }
.top-clothes__hint {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}
.top-clothes__row {
  display: grid; grid-template-columns: 1fr 1.2fr 36px;
  gap: 8px; align-items: center;
  margin-bottom: 10px;
}
.top-clothes__row:last-child { margin-bottom: 0; }
.top-clothes__name {
  font-size: 0.78rem; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.top-clothes__bar {
  height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden;
}
html[data-theme="dark"] .top-clothes__bar { background: rgba(148,163,184,0.2); }
.top-clothes__bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  min-width: 4px;
}
.top-clothes__qty {
  text-align: right; font-size: 0.78rem; font-weight: 800; color: var(--ink);
}

/* Activity rows */
.activity-card {
  padding: 4px 14px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  border: 0;
}
html[data-theme="dark"] .activity-card { background: rgba(15,23,42,0.92); }
.activity-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 2px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.activity-row:last-child { border-bottom: 0; }
.activity-row .dot-ico {
  width: 40px; height: 40px; border-radius: 50%;
  background: #eff6ff; color: var(--blue);
  display: grid; place-items: center; flex-shrink: 0;
}
.activity-row .main { flex: 1; min-width: 0; }
.activity-row .t { font-weight: 800; font-size: 0.88rem; color: var(--ink); }
.activity-row .d { color: var(--muted); font-size: 0.72rem; margin-top: 2px; font-weight: 500; }
.activity-row .status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0;
}
.activity-row .status-dot.warn { background: #f59e0b; }
.activity-row .status-dot.ok { background: var(--ok); }

/* Legacy helpers kept */
.hero-card {
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  color: #fff; border-radius: 28px; padding: 20px;
  box-shadow: var(--shadow-lg); margin-bottom: 16px; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.35);
}
.hero-card .label { font-size: 0.75rem; opacity: 0.8; font-weight: 600; }
.hero-card .big { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 14px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.hero-stats div {
  background: rgba(255,255,255,0.16); border-radius: 16px; padding: 10px 8px; text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-stats b { display: block; font-size: 1.15rem; font-weight: 800; }
.hero-stats span { font-size: 0.65rem; opacity: 0.85; font-weight: 600; }
.hero-stats.soft div { background: var(--blue-soft); color: var(--blue); border: 0; }
.hero-stats .muted-stat { opacity: 0.75; }
.hero-stats .warn-stat { background: var(--warn-bg) !important; color: var(--warn) !important; }

.list-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
.list-row.bare { border: 0; padding: 0; }
.ico {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}
.ico.blue { background: var(--blue-soft); color: var(--blue); }
.ico.green { background: var(--ok-bg); color: var(--ok); }
.ico.orange { background: var(--warn-bg); color: var(--warn); }
.ico.red { background: var(--danger-bg); color: var(--danger); }
.ico.navy { background: rgba(30,41,59,0.08); color: var(--ink); }
.list-main { flex: 1; min-width: 0; }
.list-main .t { font-weight: 800; font-size: 0.9rem; }
.list-main .d { color: var(--muted); font-size: 0.75rem; margin-top: 2px; font-weight: 500; }
.list-right { text-align: right; flex-shrink: 0; }
.list-right .v { font-weight: 800; font-size: 0.88rem; }
.list-right .s { font-size: 0.7rem; font-weight: 700; margin-top: 2px; }

.pill {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 4px 10px; font-size: 0.68rem; font-weight: 800;
}
.p-ok, .pill.ok { background: var(--ok-bg); color: var(--ok); }
.p-warn, .pill.warn { background: var(--warn-bg); color: var(--warn); }
.p-danger { background: var(--danger-bg); color: var(--danger); }
.p-blue, .pill.blue { background: var(--blue-soft); color: var(--blue); }

.btn {
  appearance: none; border: 0; border-radius: 18px; padding: 14px 16px;
  font-weight: 800; font-size: 0.9rem; cursor: pointer; width: 100%;
  display: inline-block; text-align: center;
}
.btn-primary {
  background: #3b82f6; color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}
.btn-ghost {
  background: #fff; color: var(--ink); box-shadow: none;
  margin-top: 10px; border: 1.5px solid rgba(148, 163, 184, 0.35);
}
.btn-sm { width: auto; padding: 10px 14px; font-size: 0.78rem; border-radius: 14px; }
.btn-outline {
  background: #fff; color: var(--blue); border: 1.5px solid var(--blue);
  border-radius: 18px; padding: 14px 16px; font-weight: 800; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.seg {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
  background: rgba(255,255,255,0.5); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 5px; margin: 12px 0;
}
.seg button {
  border: 0; background: transparent; border-radius: 12px; padding: 10px 6px;
  font-weight: 800; font-size: 0.76rem; color: var(--muted); cursor: pointer;
}
.seg button.on { background: var(--card-solid); color: var(--blue); box-shadow: var(--shadow); }

.qty {
  min-width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; background: var(--blue-soft); color: var(--blue);
}
.qty.warn { background: var(--warn-bg); color: var(--warn); }
.qty.muted { background: rgba(148,163,184,0.15); color: var(--muted); }

.item {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }

.timeline .step { display: flex; gap: 12px; margin-bottom: 14px; }
.timeline .rail { width: 12px; display: flex; flex-direction: column; align-items: center; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; flex-shrink: 0; }
.timeline .step.done .dot { background: var(--ok); }
.timeline .step.now .dot { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.timeline .line { flex: 1; width: 2px; background: var(--line); margin: 4px 0; min-height: 18px; }
.timeline .when { font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.timeline .what { font-weight: 800; font-size: 0.86rem; }

/* ===== Bottom nav — dock alto + cava circular no + ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 100%);
  bottom: 0;
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 0 0 var(--safe-b);
  z-index: 50;
  background: transparent;
  border: 0;
  pointer-events: none;
}

.nav-dock {
  position: absolute;
  left: 0; right: 0; bottom: var(--safe-b);
  height: var(--dock-h);
  pointer-events: none;
  filter: drop-shadow(0 -6px 22px rgba(15, 23, 42, 0.1));
}

/* Placa branca com cava circular — centro baixo p/ o + alinhar na base */
.nav-dock-plate {
  position: absolute;
  inset: 0;
  background: #ffffff;
  /* cava centrada ~ na altura do anel (fundo do + perto da base do menu) */
  -webkit-mask-image: radial-gradient(
    circle 38px at 50% 34px,
    transparent 0,
    transparent 37px,
    #000 38.5px
  );
  mask-image: radial-gradient(
    circle 38px at 50% 34px,
    transparent 0,
    transparent 37px,
    #000 38.5px
  );
}
html[data-theme="dark"] .nav-dock-plate { background: #0f172a; }

.nav-items {
  position: absolute;
  left: 0; right: 0; bottom: var(--safe-b);
  height: var(--dock-h);
  display: grid;
  grid-template-columns: 1fr 1fr 96px 1fr 1fr;
  align-items: end;
  padding: 0 6px 12px;
  z-index: 2;
  pointer-events: none;
}

.bottom-nav a.nav-item {
  pointer-events: auto;
  border: 0;
  background: 0;
  font-size: 0.64rem;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-height: 48px;
  padding-bottom: 2px;
  text-decoration: none;
}
.bottom-nav a.nav-item.on { color: var(--blue); }
.bottom-nav a.nav-item svg { width: 22px; height: 22px; }
.bottom-nav a.nav-item span { line-height: 1; }

.nav-fab-spacer { pointer-events: none; }

/* FAB baixo: fundo do círculo alinhado com a base do menu */
.nav-fab {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: var(--safe-b);
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  z-index: 5;
  text-decoration: none;
}

.nav-fab-halo {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.36) 0%,
    rgba(59, 130, 246, 0.16) 48%,
    rgba(59, 130, 246, 0.05) 64%,
    rgba(59, 130, 246, 0) 76%
  );
  animation: fab-halo 2.6s ease-in-out infinite;
}

.nav-fab-ring {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16);
  z-index: 1;
}
html[data-theme="dark"] .nav-fab-ring { background: #0f172a; }

.nav-fab-btn {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #60a5fa 0%, #3b82f6 48%, #2563eb 100%);
  color: #fff;
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

@keyframes fab-halo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.07); opacity: 0.88; }
}

.fab { display: none !important; }

/* Forms */
.field { margin-bottom: 12px; }
.field label {
  display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted); margin: 0 0 6px;
}
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-radius: 16px; padding: 14px 14px;
  font-weight: 700; background: #fff; color: var(--ink);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  appearance: none; -webkit-appearance: none;
}
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
  background: rgba(8,20,42,0.9); color: #fff;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blue-soft); border-color: var(--blue);
}
.field input[readonly], .field select[readonly], .field textarea[readonly] {
  background: rgba(148,163,184,0.12); color: var(--muted);
}
.text-danger { color: var(--danger); font-size: 0.75rem; font-weight: 600; }
.empty {
  text-align: center; color: var(--muted); padding: 28px 12px;
  font-weight: 600; font-size: 0.88rem; line-height: 1.45;
}
.theme-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.install-link {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 12px; padding: 12px 14px; border-radius: 16px;
  border: 1px dashed var(--blue); background: var(--blue-soft); color: var(--blue);
  font-weight: 800; font-size: 0.86rem; cursor: pointer;
}
.pwa-install-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; }
.pwa-install-modal[hidden] { display: none !important; }
.pwa-install-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.4); backdrop-filter: blur(4px); }
.pwa-install-sheet {
  position: relative; width: min(440px, 100%); background: var(--card); backdrop-filter: var(--blur);
  color: var(--ink); border-radius: 24px 24px 0 0;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg); border: 1px solid var(--glass-border);
}
.pwa-install-sheet h3 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; }
.pwa-install-body { color: var(--muted); font-size: 0.86rem; font-weight: 500; line-height: 1.45; margin-bottom: 14px; }
.pwa-install-body ol { margin: 0; padding-left: 1.2rem; }
.pwa-install-body li { margin: 6px 0; }

/* ===== Roupas: calendário circular (foto) ===== */
.roupas-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-month {
  font-size: 0.95rem; font-weight: 800; color: var(--ink); margin: 4px 2px 10px;
}
.days-circle {
  display: flex; gap: 6px; overflow-x: auto; padding: 0 2px 14px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.days-circle::-webkit-scrollbar { display: none; }
.day-circle {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; font-weight: 700;
}
.day-circle .n { font-size: 0.95rem; font-weight: 800; line-height: 1; color: var(--ink); }
.day-circle .w { font-size: 0.58rem; text-transform: uppercase; margin-top: 2px; color: var(--muted); }
.day-circle.on {
  background: #dbeafe; color: var(--blue);
  box-shadow: none;
}
.day-circle.on .n, .day-circle.on .w { color: #1d4ed8; }
.day-circle.has-data:not(.on)::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); margin-top: 2px;
}

.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 0;
  border-radius: 18px; padding: 13px 16px; margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
html[data-theme="dark"] .search-bar { background: rgba(15,23,42,0.92); }
.search-bar input {
  border: 0; background: transparent; width: 100%; font-weight: 600; color: var(--ink); outline: 0;
}
.search-bar svg { color: var(--muted); flex-shrink: 0; }

.chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border-radius: 999px; padding: 9px 15px;
  font-weight: 700; font-size: 0.78rem; background: #fff; color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.35); text-decoration: none; cursor: pointer;
}
.chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }

.ship-card, .roupa-card {
  display: block;
  background: #fff;
  border-radius: 22px; padding: 14px 14px 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  margin-bottom: 12px; border: 0;
}
html[data-theme="dark"] .roupa-card { background: rgba(15,23,42,0.92); }
.roupa-card .roupa-head {
  display: flex; gap: 12px; align-items: flex-start;
}
.roupa-card .thumb {
  width: 44px; height: 44px; border-radius: 14px;
  background: #eff6ff; color: #2563eb;
  display: grid; place-items: center; flex-shrink: 0; font-weight: 800; font-size: 1rem;
}
.roupa-card .body { flex: 1; min-width: 0; }
.roupa-card .title { font-weight: 800; font-size: 0.95rem; color: var(--ink); }
.roupa-card .meta { color: var(--muted); font-size: 0.72rem; margin-top: 3px; font-weight: 500; }
.roupa-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mode-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: #fff; padding: 5px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05); margin-bottom: 12px; border: 0;
}
html[data-theme="dark"] .mode-toggle { background: rgba(15,23,42,0.92); }
.mode-toggle a {
  border-radius: 999px; padding: 11px 8px; text-align: center;
  font-weight: 700; font-size: 0.82rem; color: #94a3b8;
}
.mode-toggle a.on { background: #dbeafe; color: #2563eb; }

.ship-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
  background: #f1f5f9; border-radius: 14px; padding: 12px 8px; margin-top: 12px;
}
html[data-theme="dark"] .ship-stats { background: rgba(148,163,184,0.12); }
.ship-stats div { text-align: center; }
.ship-stats b { display: block; font-size: 1rem; font-weight: 800; color: var(--ink); }
.ship-stats span { font-size: 0.62rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.ship-stats .warn b { color: #f59e0b; }

.months {
  display: flex; gap: 6px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none;
}
.months::-webkit-scrollbar { display: none; }
.month-pill {
  flex: 0 0 auto; border: 0; cursor: pointer; text-decoration: none;
  background: transparent; color: var(--muted); font-weight: 700; font-size: 0.88rem;
  padding: 8px 14px; border-radius: 999px;
}
.month-pill.on { background: #dbeafe; color: #2563eb; font-weight: 800; }

/* ===== OS recorder (foto) ===== */
.os-mic-stage {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 12px 10px; margin-bottom: 4px;
}
.os-mic-ring {
  width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: transparent;
}
.os-mic-ring .ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(59, 130, 246, 0.22);
}
.os-mic-ring .ring.r1 { inset: -10px; border-color: rgba(59, 130, 246, 0.28); }
.os-mic-ring .ring.r2 { inset: -24px; border-color: rgba(59, 130, 246, 0.16); }
.os-mic-ring .ring.r3 { inset: -38px; border-color: rgba(59, 130, 246, 0.1); }
.os-mic-ring .ring.r4 { inset: -52px; border-color: rgba(59, 130, 246, 0.06); }
.os-mic-ring.recording .ring {
  animation: mic-ring 1.6s ease-out infinite;
}
.os-mic-ring.recording .ring.r2 { animation-delay: 0.15s; }
.os-mic-ring.recording .ring.r3 { animation-delay: 0.3s; }
.os-mic-ring.recording .ring.r4 { animation-delay: 0.45s; }
.os-mic-core {
  position: relative; z-index: 1;
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 32px rgba(37,99,235,0.42), 0 0 0 10px rgba(59,130,246,0.12);
  border: 0; cursor: pointer;
}
.os-timer {
  margin-top: 28px; font-size: 1.65rem; font-weight: 800; letter-spacing: 0.06em; color: var(--ink);
}
.os-wave {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  height: 36px; margin: 10px 0 8px; width: 100%; max-width: 200px;
}
.os-wave span {
  width: 3px; border-radius: 2px; background: #93c5fd; opacity: 0.7; height: 8px;
}
.os-wave.live span { animation: wave 0.9s ease-in-out infinite; opacity: 1; background: var(--blue); }
.os-wave span:nth-child(2n) { animation-delay: 0.1s; height: 14px; }
.os-wave span:nth-child(3n) { animation-delay: 0.2s; height: 10px; }
.os-wave span:nth-child(4n) { animation-delay: 0.05s; height: 18px; }
.os-wave span:nth-child(5n) { height: 12px; }
.btn-stop-rec {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; border: 0; border-radius: 14px;
  padding: 12px 18px; font-weight: 800; font-size: 0.88rem; cursor: pointer;
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}
.btn-stop-rec .sq { width: 12px; height: 12px; background: #fff; border-radius: 2px; }
.os-hint {
  margin: 4px 0 18px; font-size: 0.75rem; color: var(--muted); font-weight: 600; text-align: center;
}
.os-details-card {
  background: #fff; border: 0; border-radius: 18px;
  padding: 14px; margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  position: relative;
}
html[data-theme="dark"] .os-details-card { background: rgba(15,23,42,0.92); }
.os-details-card .label-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 0.86rem; font-weight: 800; color: var(--ink);
}
.os-details-card .label-row svg { color: var(--blue); }
.os-details-card textarea {
  width: 100%; border: 0; background: transparent; min-height: 88px;
  font-weight: 500; color: var(--ink); resize: vertical; outline: 0;
}
.os-details-card .hint { font-size: 0.7rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.os-details-card .resize-hint {
  position: absolute; right: 12px; bottom: 10px; color: #cbd5e1; font-size: 0.7rem; line-height: 1;
  pointer-events: none; user-select: none;
}

.os-photo-card {
  background: var(--card); border-radius: 20px; padding: 14px 16px;
  margin: 0 2px 16px; box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
}
html[data-theme="dark"] .os-photo-card { background: rgba(15,23,42,0.92); }
.os-photo-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.btn-os-photo {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 0.85rem;
  border-radius: 14px; padding: 12px 14px; cursor: pointer;
}
.os-photo-preview {
  display: block; width: 100%; max-height: 260px; object-fit: cover;
  border-radius: 14px; margin-top: 12px;
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select { padding-right: 36px; width: 100%; appearance: none; -webkit-appearance: none; }
@keyframes mic-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.08); opacity: 0.35; }
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 14px 32px rgba(37,99,235,0.42), 0 0 0 10px rgba(59,130,246,0.12); }
  50% { box-shadow: 0 14px 32px rgba(37,99,235,0.5), 0 0 0 16px rgba(59,130,246,0.06); }
}
@keyframes wave {
  0%, 100% { height: 8px; }
  50% { height: 28px; }
}

/* legado — não esconder mais: Edit da OS usa .os-recorder para o player */
.os-recorder-legacy-hidden { display: none; }
.mic-badge {
  display: inline-flex; font-size: 0.68rem; font-weight: 800; color: var(--blue);
  background: var(--blue-soft); padding: 3px 8px; border-radius: 999px;
}

/* Financeiro foto */
.fin-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.fin-pair--3 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.fin-pair--3 .fin-tile { padding: 12px 10px; }
.fin-pair--3 .fin-tile .val { font-size: 0.95rem; }
.fin-pair--3 .fin-tile .lbl { font-size: 0.62rem; line-height: 1.2; }
.fin-tile {
  background: var(--card); border: 1px solid var(--glass-border); border-radius: 20px;
  padding: 16px; box-shadow: var(--shadow); backdrop-filter: var(--blur);
}
.fin-tile .lbl { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.fin-tile .val { font-size: 1.35rem; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.fin-tile .val.ok { color: var(--ok); }
.fin-tile .val.warn { color: var(--warn); }

.fin-status {
  border-radius: 18px; padding: 14px 16px; margin-bottom: 14px;
  background: var(--blue-soft); border-left: 4px solid var(--blue);
}
.fin-status--ok { background: var(--ok-bg, rgba(34,197,94,0.12)); border-left-color: var(--ok); }
.fin-status--warn { background: var(--warn-bg); border-left-color: var(--warn); }
.fin-status--danger { background: var(--danger-bg); border-left-color: var(--danger); }
.fin-status__title { font-weight: 800; font-size: 1rem; }
.fin-status__detail { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }

.fin-breakdown { padding: 14px 16px; margin-bottom: 16px; }
.fin-breakdown__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.fin-breakdown__head .t { font-weight: 800; text-transform: capitalize; }
.fin-breakdown__head .d { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

.fin-stack-bar {
  display: flex; height: 10px; border-radius: 999px; overflow: hidden;
  background: #e2e8f0; margin-bottom: 12px;
}
html[data-theme="dark"] .fin-stack-bar { background: rgba(148,163,184,0.2); }
.fin-stack-bar .seg { display: block; height: 100%; min-width: 2px; }
.fin-stack-bar .seg.fee { background: #3b82f6; }
.fin-stack-bar .seg.extra { background: #8b5cf6; }
.fin-stack-bar .seg.arrears { background: #f59e0b; }

.fin-break-rows { display: flex; flex-direction: column; gap: 8px; }
.fin-break-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem;
}
.fin-break-row .name { flex: 1; font-weight: 600; color: var(--ink); }
.fin-break-row .amt { font-weight: 800; }
.fin-break-row .amt.ok { color: var(--ok); }
.fin-break-row.total {
  margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.fin-break-row .dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.fin-break-row .dot.fee { background: #3b82f6; }
.fin-break-row .dot.extra { background: #8b5cf6; }
.fin-break-row .dot.arrears { background: #f59e0b; }
.fin-note {
  margin: 12px 0 0; font-size: 0.72rem; color: var(--muted); line-height: 1.4;
}
.fin-hint {
  margin: 8px 0 0; font-size: 0.68rem; color: var(--muted); line-height: 1.35;
}

.fin-extra-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.fin-extra-row:last-child { border-bottom: 0; }
.fin-extra-row .d { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.fin-extra-row .hint { font-size: 0.7rem; color: var(--muted); }

.fin-chart { padding: 16px 14px 12px; margin-bottom: 16px; }
.fin-chart__bars {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 6px; height: 110px; margin-bottom: 10px;
}
.fin-chart__col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  height: 100%; justify-content: flex-end; gap: 6px;
}
.fin-chart__bar {
  width: 100%; max-width: 28px; border-radius: 8px 8px 4px 4px;
  min-height: 8px;
}
.fin-chart__bar.paid { background: linear-gradient(180deg, #34d399, #10b981); }
.fin-chart__bar.open { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.fin-chart__lbl {
  font-size: 0.62rem; color: var(--muted); font-weight: 700;
  text-transform: lowercase;
}
.fin-chart__legend {
  display: flex; gap: 14px; justify-content: center;
  font-size: 0.68rem; color: var(--muted); font-weight: 600;
}
.fin-chart__legend .lg {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  margin-right: 5px; vertical-align: middle;
}
.fin-chart__legend .lg.paid { background: #10b981; }
.fin-chart__legend .lg.open { background: #f59e0b; }

.tx-details { border-bottom: 1px solid var(--line); }
.tx-details:last-child { border-bottom: 0; }
.tx-details > summary {
  list-style: none; cursor: pointer;
}
.tx-details > summary::-webkit-details-marker { display: none; }
.tx-details .tx-row { border-bottom: 0; }
.tx-details__body {
  padding: 0 4px 12px 52px;
}

.tx-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.tx-row:last-child { border-bottom: 0; }
.tx-ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
}
.tx-ico.up { background: var(--ok-bg); color: var(--ok); }
.tx-ico.down { background: var(--danger-bg); color: var(--danger); }
.tx-amt.up { color: var(--ok); font-weight: 800; }
.tx-amt.down { color: var(--danger); font-weight: 800; }

/* Perfil foto */
.profile-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12px 8px 20px;
}
.profile-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(145deg, #60a5fa, #2563eb); color: #fff;
  display: grid; place-items: center; font-size: 2rem; font-weight: 800;
  box-shadow: 0 12px 28px rgba(37,99,235,0.35); margin-bottom: 12px;
}
.profile-hero .name { font-size: 1.15rem; font-weight: 800; }
.profile-hero .link { color: var(--blue); font-size: 0.82rem; font-weight: 700; margin-top: 4px; }
.menu-list { padding: 4px 8px; }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 8px;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi-ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft);
  color: var(--blue); display: grid; place-items: center; flex-shrink: 0;
}
.menu-item .mi-t { flex: 1; font-weight: 700; font-size: 0.9rem; text-align: left; }
.menu-item .chev { color: var(--muted); font-weight: 800; }

/* ===== Dark mode — contornos suaves para legibilidade ===== */
html[data-theme="dark"] .round-btn,
html[data-theme="dark"] .card,
html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .summary-tile,
html[data-theme="dark"] .activity-card,
html[data-theme="dark"] .roupa-card,
html[data-theme="dark"] .mode-toggle,
html[data-theme="dark"] .chip:not(.on),
html[data-theme="dark"] .fin-tile,
html[data-theme="dark"] .tx,
html[data-theme="dark"] .menu,
html[data-theme="dark"] .menu-list,
html[data-theme="dark"] .os-details-card,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .select-wrap select,
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .logout,
html[data-theme="dark"] .pwa-install-sheet {
  border: 1px solid var(--edge);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.06), var(--shadow);
}

html[data-theme="dark"] .nav-dock-plate {
  background: #111827;
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] .nav-fab-ring {
  background: #111827;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.28), 0 4px 14px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .chip:not(.on) {
  background: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
  border-color: var(--edge);
}
html[data-theme="dark"] .mode-toggle a.on,
html[data-theme="dark"] .month-pill.on,
html[data-theme="dark"] .day-circle.on {
  background: rgba(96, 165, 250, 0.22);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
}
html[data-theme="dark"] .ship-stats {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
html[data-theme="dark"] .activity-row,
html[data-theme="dark"] .tx-row,
html[data-theme="dark"] .menu-item,
html[data-theme="dark"] .list-row {
  border-bottom-color: rgba(148, 163, 184, 0.22);
}
html[data-theme="dark"] .hero-glass {
  border: 1px solid rgba(147, 197, 253, 0.28);
}
html[data-theme="dark"] .ico-wrap,
html[data-theme="dark"] .dot-ico,
html[data-theme="dark"] .thumb,
html[data-theme="dark"] .mi,
html[data-theme="dark"] .menu-item .mi-ico {
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}

/* OS chat (PWA) */
.os-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 8px;
}
.os-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card, #fff);
  box-sizing: border-box;
}
/* Áudio/foto: bolha larga o suficiente para o player nativo do celular */
.os-msg.has-media {
  width: min(100%, 340px);
  max-width: 100%;
  min-width: min(100%, 280px);
}
.os-msg.me {
  align-self: flex-end;
  background: #eff6ff;
  border-color: #bfdbfe;
  border-bottom-right-radius: 6px;
}
.os-msg.them {
  align-self: flex-start;
  background: #f8fafc;
  border-bottom-left-radius: 6px;
}
.os-msg.aval {
  background: #fffbeb;
  border-color: #fde68a;
}
.os-msg__meta {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
.os-msg__kind {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.os-msg__kind.warn { color: var(--warn); }
.os-msg__kind.ok { color: var(--ok); }
.os-msg__kind.bad { color: var(--danger); }
.os-msg__body {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: pre-wrap;
  line-height: 1.35;
}
.os-msg__audio {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  margin-top: 8px;
}
.os-msg__audio-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue);
}
.os-msg__photo {
  display: block;
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  margin-top: 8px;
  object-fit: cover;
}
.os-aval-banner {
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.os-aval-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.os-aval-actions .btn { margin-top: 0; }
html[data-theme="dark"] .os-msg.me {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(147, 197, 253, 0.35);
}
html[data-theme="dark"] .os-msg.them {
  background: rgba(148, 163, 184, 0.12);
}
html[data-theme="dark"] .os-msg.aval {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(251, 191, 36, 0.35);
}
