@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: dark;
  --bg: #0c0a08;
  --panel: #16130f;
  --panel-2: #1e1a15;
  --border: #2c2620;
  --graphite: #1a1a1a;
  --off-white: #f7f7f7;
  --text: #ffffff;
  --cream: #f3ece1;
  --muted: #9c948a;
  --muted-2: #726b62;
  --orange: #ff9f2e;
  --orange-soft: #ffb85c;
  --orange-dim: #c97a1f;
  --active-fill: rgba(255,159,46,0.16);
  --grad: linear-gradient(135deg, #ff9f2e, #ffbf66);
  --danger: #e0574a;
  --ok: #4caf7d;
  --warn: #e0a53f;
  --radius: 12px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #faf7f2;
  --panel: #ffffff;
  --panel-2: #f4efe6;
  --graphite: #ece4d4;
  --border: rgba(20,15,8,0.12);
  --text: #16130f;
  --cream: #16130f;
  --muted: #7a7168;
  --muted-2: #948b80;
  --orange: #d97e17;
  --orange-soft: #b8660f;
  --orange-dim: #a35f11;
  --active-fill: rgba(217,126,23,0.12);
  --grad: linear-gradient(135deg, #e28a1e, #f0a942);
  --danger: #c23b2e;
  --ok: #2f8a5b;
  --warn: #a8690f;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 12% -10%, rgba(255,159,46,0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 30%, rgba(255,159,46,0.06), transparent 55%);
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
[data-theme="light"] body { background-image: none; }

/* reusable glow helpers */
.glow-line { position: relative; }
.glow-line::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,159,46,0.7), transparent);
}
.glow-shadow { box-shadow: 0 20px 60px -24px rgba(255,159,46,0.25), 0 0 0 1px var(--border); }

h1, h2, h3, h4 { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.01em; margin: 0; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 13px;
}
/* .btn-primary/.btn-ghost/.btn-danger style both <button> and <a> CTAs, so the pill
   shape/padding/weight below must not live only on the `button` element selector. */
.btn-primary, .btn-ghost, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--grad);
  color: #1a1200;
  border: none;
  box-shadow: 0 10px 28px -8px rgba(255,159,46,0.55);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 14px 34px -8px rgba(255,159,46,0.7); transform: translateY(-1px); }
.btn-ghost {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.5);
}
.btn-ghost:hover { background: var(--graphite); border-color: var(--orange); color: var(--orange-soft); transform: translateY(-1px); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: rgba(224,87,74,0.1); }
.btn-block { width: 100%; }

input, textarea, select {
  font-family: inherit;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 13px;
  font-size: 14px;
  width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); }
label { font-size: 12px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 6px; }
.field { margin-bottom: 14px; }

.modal, .plan-card, .feature-card, .auth-card, .mkt-mock {
  position: relative;
  box-shadow: 0 24px 50px -30px rgba(255,159,46,0.35);
}
.modal::before, .plan-card::before, .feature-card::before, .auth-card::before, .mkt-mock::before {
  content: '';
  position: absolute; top: 0; left: 14%; right: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,159,46,0.6), transparent);
  pointer-events: none;
}
.kpi-card, .panel-box, .table-wrap, .column {
  position: relative;
  box-shadow: 0 10px 24px -18px rgba(0,0,0,0.6);
}

::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.brand-mark { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark img { width: 26px; height: 26px; filter: drop-shadow(0 0 10px rgba(255,159,46,0.55)); }
.brand-mark span { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }

/* ================= Marketing site ================= */
.mkt-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6vw; background: rgba(10,10,10,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.mkt-header nav { display: flex; gap: 28px; align-items: center; }
.mkt-header nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
.mkt-header nav a:hover { color: var(--text); }
.mkt-header .actions { display: flex; gap: 10px; align-items: center; }

.mkt-hero { padding: 100px 6vw 70px; text-align: center; position: relative; overflow: hidden; }
.mkt-hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); z-index: 0;
  width: 900px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,159,46,0.18), transparent 70%);
  pointer-events: none;
}
.mkt-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 500px 400px at 8% 95%, rgba(255,159,46,0.14), transparent 60%),
    radial-gradient(ellipse 400px 300px at 96% 20%, rgba(255,159,46,0.08), transparent 60%);
  pointer-events: none;
}
.mkt-eyebrow {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(255,159,46,0.1); border: 1px solid rgba(255,159,46,0.3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.mkt-hero h1 { font-size: clamp(34px, 5.5vw, 64px); line-height: 1.05; max-width: 900px; margin: 0 auto 20px; position: relative; z-index: 1; }
.mkt-hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mkt-hero p.lead { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 34px; line-height: 1.6; position: relative; z-index: 1; }
.mkt-hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.mkt-hero .cta-row button, .mkt-hero .cta-row a { font-size: 15px; padding: 14px 26px; }

.mkt-mock {
  z-index: 1;
  margin: 60px auto 0; max-width: 1000px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  position: relative;
}
.mkt-mock .bar { display:flex; gap:6px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--border); }
.mkt-mock .bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mkt-mock .body { background: var(--bg); padding: 26px; display: grid; grid-template-columns: 160px 1fr; gap: 20px; text-align: left; }
.mkt-mock .side { display: flex; flex-direction: column; gap: 8px; }
.mkt-mock .side .item { padding: 8px 10px; border-radius: 8px; font-size: 12px; color: var(--muted); }
.mkt-mock .side .item.active { background: var(--panel-2); color: var(--orange); font-weight: 700; }
.mkt-mock .kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mkt-mock .kpi { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.mkt-mock .kpi .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.mkt-mock .kpi .v { font-size: 20px; font-weight: 800; margin-top: 6px; }
.mkt-mock .kpi .v.accent { color: var(--orange); text-shadow: 0 0 20px rgba(255,159,46,0.45); }

.mkt-strip { padding: 40px 6vw; text-align: center; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--border); }
.mkt-strip b { color: var(--text); }

.mkt-section { padding: 90px 6vw; max-width: 1180px; margin: 0 auto; }
.mkt-kicker { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; text-align: center; }
.mkt-section h2 { font-size: clamp(26px, 3.5vw, 40px); text-align: center; max-width: 700px; margin: 0 auto 16px; }
.mkt-section p.sub { color: var(--muted); text-align: center; max-width: 560px; margin: 0 auto 50px; font-size: 16px; line-height: 1.6; }

.grid-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-features { grid-template-columns: 1fr; } .mkt-mock .body { grid-template-columns: 1fr; } .mkt-mock .side { display:none; } }
.feature-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature-card .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,159,46,0.12); display:flex; align-items:center; justify-content:center; margin-bottom: 16px; color: var(--orange); font-size: 18px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

.compare-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.compare-table thead th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.compare-table td.check { color: var(--ok); font-weight: 700; }
.compare-table td.cross { color: var(--muted); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table th.oryon-col, .compare-table td.oryon-col { background: rgba(255,159,46,0.06); }

.currency-toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 4px; margin: 0 auto 40px; }
.currency-toggle button { background: transparent; color: var(--muted); padding: 8px 18px; font-size: 12px; border-radius: 999px; }
.currency-toggle button.active { background: var(--panel-2); color: var(--orange); }

.plans-row { display: flex; justify-content: center; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; width: 100%; }
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; position: relative; display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 0 60px -10px rgba(255,159,46,0.35), 0 30px 60px rgba(255,159,46,0.1); }
.plan-card .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #1a1200; font-size: 11px; font-weight: 800; padding: 5px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.plan-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.plan-card .price { font-size: 38px; font-weight: 900; margin-bottom: 2px; }
.plan-card .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-card .old-price { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-bottom: 18px; }
.plan-card .desc { color: var(--muted); font-size: 13px; margin-bottom: 20px; min-height: 32px; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-card li { font-size: 13px; color: var(--text); display: flex; gap: 9px; align-items: flex-start; }
.plan-card li::before { content: '✓'; color: var(--orange); font-weight: 800; flex-shrink: 0; }

.mkt-cta { text-align: center; padding: 90px 6vw; background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mkt-cta h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.mkt-cta p { color: var(--muted); margin-bottom: 30px; }

.mkt-footer { padding: 50px 6vw 30px; }
.mkt-footer .top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.mkt-footer .cols { display: flex; gap: 60px; flex-wrap: wrap; }
.mkt-footer .col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.mkt-footer .col a { display: block; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.mkt-footer .col a:hover { color: var(--text); }
.mkt-footer .bottom { border-top: 1px solid var(--border); padding-top: 20px; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ================= Auth pages ================= */
.auth-page { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 34px; }
.auth-card .brand-mark { margin-bottom: 26px; }
.auth-card h1 { font-size: 22px; margin-bottom: 8px; }
.auth-card p.sub { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.auth-error { background: rgba(224,87,74,0.1); border: 1px solid rgba(224,87,74,0.3); color: var(--danger); font-size: 13px; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; display: none; }
.auth-error.show { display: block; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }
.auth-switch a { color: var(--orange); font-weight: 700; }

/* ================= App shell (dashboard) ================= */
body.app-body { display: flex; height: 100vh; overflow: hidden; }
.sidebar { position: relative; overflow: hidden; width: 230px; flex-shrink: 0; background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 20px 14px; }
.sidebar::before {
  content: ''; position: absolute; z-index: -1; top: -60px; left: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,159,46,0.10), transparent 70%);
  pointer-events: none;
}
.sidebar .brand { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 6px 20px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.sidebar .brand img { width: 28px; height: 28px; filter: drop-shadow(0 0 8px rgba(255,159,46,0.45)); }
.sidebar .brand span { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--cream); }
.sidebar .brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0.02em; margin-top: 1px; }

.nav-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted-2); padding: 0 12px; margin: 14px 0 8px;
}
.nav-section-label:first-child { margin-top: 0; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  padding: 9px 12px; border-radius: 9px; color: var(--muted); font-size: 13.5px;
  cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 500;
  transition: background .12s ease, color .12s ease;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; }
.nav-item:hover { background: var(--panel-2); color: var(--cream); }
.nav-item.active { background: var(--active-fill); color: var(--orange-soft); font-weight: 700; }

.sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.sidebar-tag { color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; align-items: center; }
.sidebar-tag b { color: var(--text); font-weight: 700; }
.logout-btn { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 700; width: 100%; justify-content: flex-start; }
.logout-btn:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 700;
  width: 100%; justify-content: flex-start; text-transform: none; letter-spacing: 0;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-icon { font-size: 13px; }
.theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: inline; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { padding: 18px 24px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--border); gap: 12px; }
.topbar h1 { font-size: 19px; color: var(--cream); }
.topbar .subtitle { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.topbar .actions { display: flex; gap: 10px; align-items: center; }

.view { flex: 1; overflow-y: auto; padding: 24px; display: none; }
.view.active { display: block; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.kpi-card .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.kpi-card .value { font-size: 24px; font-weight: 800; color: var(--text); }
.kpi-card .value.accent { color: var(--orange-soft); }
.kpi-card .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .panel-grid { grid-template-columns: 1fr; } }
.panel-box { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.panel-box h3 { font-size: 14px; margin-bottom: 14px; color: var(--muted); }
.panel-box .empty { color: var(--muted); font-size: 13px; }
.list-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.list-row:last-child { border-bottom: none; }
.list-row .name { font-weight: 700; }
.list-row .meta { color: var(--muted); font-size: 12px; }

table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 13px; }
thead th { text-align: left; color: var(--muted-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 16px 8px; font-weight: 700; }
tbody tr { background: var(--panel-2); transition: border-color .12s ease; }
tbody td { padding: 14px 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
tbody td:first-child { border-left: 1px solid var(--border); border-radius: 10px 0 0 10px; font-weight: 600; color: var(--cream); }
tbody td:last-child { border-right: 1px solid var(--border); border-radius: 0 10px 10px 0; }
tbody tr:hover { cursor: pointer; }
tbody tr:hover td { border-color: var(--orange-dim); }
.table-wrap { background: transparent; border: none; border-radius: 0; overflow: visible; overflow-x: auto; }

.badge { display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; }
.badge-ativo, .badge-pago, .badge-fechado { background: rgba(76,175,125,0.15); color: var(--ok); }
.badge-pausado, .badge-pendente { background: rgba(224,165,63,0.15); color: var(--warn); }
.badge-encerrado, .badge-atrasado, .badge-perdido { background: rgba(224,87,74,0.15); color: var(--danger); }
.badge-neutral { background: var(--border); color: var(--muted); }

.board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; }
.column { width: 250px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--panel); border-radius: 12px; border: 1px solid var(--border); max-height: 100%; }
.column-head { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; }
.column-head .count { color: var(--orange); font-weight: 800; }
.column-body { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.column-body.drag-over { background: rgba(255, 159, 46, 0.06); }
.card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; cursor: grab; font-size: 13px; }
.card:hover { border-color: var(--orange); }
.card.dragging { opacity: 0.4; }
.card .name { font-weight: 700; margin-bottom: 4px; }
.card .meta { color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; }

.event-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-bottom: 1px solid var(--border); }
.event-row:last-child { border-bottom: none; }
.event-row .date-box { width: 54px; flex-shrink: 0; text-align: center; background: var(--panel-2); border-radius: 8px; padding: 6px 0; }
.event-row .date-box .d { font-size: 16px; font-weight: 800; color: var(--orange); }
.event-row .date-box .m { font-size: 9px; color: var(--muted); text-transform: uppercase; }
.event-row .info { flex: 1; }
.event-row .title { font-weight: 700; font-size: 14px; }
.event-row .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.event-row.done { opacity: 0.45; }
.event-row.done .title { text-decoration: line-through; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal-overlay.open { display: flex; }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; width: 460px; max-width: 92vw; max-height: 88vh; overflow-y: auto; padding: 24px; position: relative; }
.modal h2 { font-size: 18px; margin-bottom: 18px; }
.modal .row2 { display: flex; gap: 10px; }
.modal .row2 > div { flex: 1; }
.notes-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; max-height: 160px; overflow-y: auto; }
.note-item { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.note-item .date { color: var(--muted); font-size: 10px; margin-top: 4px; }
.modal-footer { display: flex; justify-content: space-between; margin-top: 18px; gap: 10px; }
.close-x { position: absolute; top: 18px; right: 20px; background: none; border: none; color: var(--muted); font-size: 18px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; }
