/* Defend Tomorrow — cybersecurity services. Black & white + electric-blue accent. */
:root {
  --black: #0a0a0b;
  --ink: #111214;          /* near-black panels */
  --white: #ffffff;
  --paper: #f7f7f8;        /* off-white section */
  --line: #e4e5e8;         /* hairlines on light */
  --line-dk: #26272b;      /* hairlines on dark */
  --text: #14151a;
  --muted: #5b616b;
  --muted-dk: #9aa0aa;     /* muted on dark */
  --faint: #8a909a;
  --accent: #2b5bff;       /* electric blue — used sparingly */
  --accent-2: #1c46e0;     /* hover */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  font-family: var(--sans); color: var(--text); background: var(--white);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02","cv03","cv04","ss01";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; font-weight: 800; }
p { text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.eyebrow.on-dark { color: #7f9bff; }
.eyebrow.on-dark::before { background: #7f9bff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: 3px; cursor: pointer; border: 1.5px solid transparent;
  transition: background .16s, color .16s, border-color .16s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .16s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--text); border-color: #c9ccd2; }
.btn-ghost:hover { border-color: var(--black); }
.btn-ghost.on-dark { color: #fff; border-color: #3a3c42; }
.btn-ghost.on-dark:hover { border-color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; font-weight: 800;
  letter-spacing: -0.02em; font-size: 18px; }
.brand .mark { width: 18px; height: 18px; background: var(--accent); border-radius: 2px; position: relative; flex: none; }
.brand .mark::after { content: ""; position: absolute; inset: 5px; background: var(--white); border-radius: 1px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--muted);
  padding: 6px 0; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.nav .btn { padding: 10px 18px; font-size: 14px; }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .nav-links, .nav .btn.nav-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line);
    border-radius: 3px; padding: 8px 12px; font-family: var(--mono); font-size: 12px; cursor: pointer; }
  .mobile-menu { display: none; border-bottom: 1px solid var(--line); padding: 8px var(--pad) 18px; }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; font-family: var(--mono); font-size: 15px; padding: 12px 0; border-top: 1px solid var(--line); }
  .mobile-menu .btn { width: 100%; justify-content: center; margin-top: 14px; }
}
@media (min-width: 821px) { .mobile-menu { display: none; } }

/* ---------- hero ---------- */
.hero { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.hero::before {   /* faint technical grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, #000, transparent 75%);
}
.hero::after {   /* accent glow */
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(43,91,255,.28), transparent 62%); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 132px); max-width: 860px; }
.hero h1 { font-size: clamp(40px, 8vw, 78px); letter-spacing: -0.04em; margin: 22px 0 22px; }
.hero h1 .hl { color: var(--accent); }
.hero p.lede { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted-dk); max-width: 60ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* page (sub) hero for interior pages */
.page-hero { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse 80% 90% at 80% 30%, #000, transparent 78%); }
.page-hero-inner { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 92px); max-width: 760px; }
.page-hero h1 { font-size: clamp(34px, 6vw, 58px); margin: 18px 0 16px; }
.page-hero p { color: var(--muted-dk); font-size: clamp(16px, 2vw, 19px); max-width: 56ch; }

/* ---------- generic sections ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section.paper { background: var(--paper); border-block: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #fff; }
.section-head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 54px); }
.section-head h2 { font-size: clamp(28px, 4.4vw, 44px); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section.dark .section-head p { color: var(--muted-dk); }

/* ---------- service cards grid ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.card { background: var(--white); padding: 30px 28px 34px; position: relative; transition: background .16s; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 46px; background: var(--black); transition: width .2s, background .2s; }
.card:hover { background: var(--paper); }
.card:hover::before { width: 100%; background: var(--accent); }
.card .idx { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .1em; }
.card h3 { font-size: 21px; margin: 16px 0 10px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.step { border-top: 2px solid var(--black); padding-top: 18px; }
.section.dark .step { border-color: var(--accent); }
.step .n { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--accent); }
.step h3 { font-size: 20px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }
.section.dark .step p { color: var(--muted-dk); }

/* ---------- feature list (why us) ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.feature-list { display: grid; gap: 2px; background: var(--line); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.feature { background: var(--white); padding: 20px 22px; display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.feature .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); position: relative; margin-top: 3px; }
.feature .tick::after { content: ""; position: absolute; left: 6px; top: 9px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.feature h4 { font-size: 16.5px; letter-spacing: -0.01em; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; }
.stat .num { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.04em; }
.stat .num .u { color: var(--accent); }
.stat .lbl { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--muted-dk); text-transform: uppercase; margin-top: 6px; }

/* ---------- detailed service blocks ---------- */
.svc-block { display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 5vw, 56px);
  padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.svc-block:first-child { border-top: none; }
@media (max-width: 760px) { .svc-block { grid-template-columns: 1fr; gap: 18px; } }
.svc-block .svc-idx { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--accent); }
.svc-block h3 { font-size: clamp(24px, 3vw, 32px); margin: 12px 0 0; letter-spacing: -0.03em; }
.svc-block .body p { color: var(--muted); margin-bottom: 18px; font-size: 16.5px; }
.svc-block .incl { list-style: none; display: grid; gap: 9px; }
.svc-block .incl li { position: relative; padding-left: 26px; font-size: 15.5px; }
.svc-block .incl li::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 11px; background: var(--accent); border-radius: 2px; }

/* prose (about) */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 20px; font-size: 18px; color: #2b2f36; }
.prose p.big { font-size: clamp(21px, 3vw, 27px); color: var(--text); font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin-top: 8px; }
.value h4 { font-size: 18px; margin-bottom: 6px; }
.value p { color: var(--muted); font-size: 15px; }
.value .k { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--black); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: 40%; transform: translate(-50%,-30%);
  background: radial-gradient(circle, rgba(43,91,255,.22), transparent 60%); pointer-events: none; }
.cta-band .inner { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 96px); }
.cta-band h2 { font-size: clamp(30px, 5vw, 52px); max-width: 18ch; margin: 16px auto 26px; }
.cta-band .cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(30px, 6vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 3px; padding: 13px 14px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: #fff; outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-content: center; }
/* honeypot: kept in the layout for bots, hidden from real visitors + AT */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent-ok { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 5px;
  padding: 26px 28px; background: var(--paper); }
.sent-ok h3 { font-size: 22px; letter-spacing: -.01em; margin-bottom: 8px; }
.sent-ok p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.contact-aside { border: 1px solid var(--line); border-radius: 5px; padding: 26px 24px; background: var(--paper); }
.contact-aside .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.contact-aside .v { font-size: 17px; font-weight: 600; margin: 4px 0 20px; word-break: break-word; }
.contact-aside a.v { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: #fff; padding-block: 56px 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dk); }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; gap: 26px; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .tag { color: var(--muted-dk); font-size: 14.5px; max-width: 34ch; }
.footer-col h5 { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted-dk); font-size: 15px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; color: var(--faint); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.footer-bottom .dot { color: var(--accent); }

/* ---------- staff login + portal ---------- */
.login-hero { min-height: 62vh; display: flex; align-items: center; }
.login-hero > .wrap { position: relative; z-index: 1; }
.login-panel { max-width: 420px; }
.login-panel h1 { font-size: clamp(32px, 5vw, 46px); margin: 14px 0 10px; }
.login-note { color: var(--muted-dk); font-size: 15.5px; margin-bottom: 26px; }
.login-note a { color: var(--accent); }
.login-panel .field input { background: #1a1b1e; border-color: #33353b; color: #fff; }
.login-panel .field input:focus { background: #1a1b1e; border-color: var(--accent); }
.login-panel .field label { color: var(--muted-dk); }
.login-err { font-family: var(--mono); font-size: 13px; color: #ff5c5c; letter-spacing: .03em; }
.doc-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.doc-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--white); padding: 16px 20px; transition: background .16s; }
.doc-row:hover { background: var(--paper); }
.doc-row .doc-name { font-weight: 600; font-size: 15.5px; word-break: break-word; }
.doc-row .doc-meta { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .04em; }
.doc-empty { background: var(--white); padding: 20px; color: var(--muted); font-size: 15px; }
.lead-msg { white-space: pre-wrap; font-size: 15px; line-height: 1.55; color: var(--text); }

/* ---------- user management ---------- */
.user-row .doc-name { display: flex; align-items: center; gap: 10px; }
.user-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  padding: 3px 8px; border: 1px solid var(--accent); color: var(--accent); }
.user-badge.you { border-color: #c9ccd2; color: var(--muted); }
.btn-mini { padding: 7px 12px; font-size: 12px; }
.btn-mini.danger:hover { border-color: #d92d2d; color: #d92d2d; }
.role-select { font-family: var(--mono); font-size: 12px; padding: 7px 10px;
  border: 1px solid #c9ccd2; background: var(--white); color: var(--text); border-radius: 3px; }
.role-select:focus { border-color: var(--accent); outline: none; }
.client-head { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 10px;
  display: flex; align-items: baseline; }

/* ---------- client accounts + invoices ---------- */
.client-acct { border: 1px solid var(--line); background: var(--white); margin-bottom: 10px; }
.client-acct summary { display: flex; justify-content: space-between; align-items: center; gap: 14px;
  flex-wrap: wrap; padding: 16px 20px; cursor: pointer; list-style: none; }
.client-acct summary::-webkit-details-marker { display: none; }
.client-acct summary::before { content: "+"; font-family: var(--mono); color: var(--accent);
  font-size: 16px; margin-right: 2px; }
.client-acct[open] summary::before { content: "–"; }
.client-acct summary:hover { background: var(--paper); }
.client-acct[open] summary { border-bottom: 1px solid var(--line); }
.client-body { padding: 18px 20px 22px; }
.client-sub { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 10px; }
.client-sub:first-child { margin-top: 0; }
.inv-badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; padding: 3px 8px;
  border: 1px solid; margin-left: 8px; }
.inv-badge.due { border-color: var(--accent); color: var(--accent); }
.inv-badge.paid { border-color: #2e9e44; color: #2e9e44; }
.inv-badge.overdue { border-color: #d92d2d; color: #d92d2d; }
.inv-add { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.inv-in { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid #c9ccd2;
  border-radius: 3px; background: var(--white); color: var(--text); flex: 1 1 220px; }
.inv-in.amt { flex: 0 1 130px; }
.inv-in:focus { border-color: var(--accent); outline: none; }
/* ---------- portal sidebar nav ---------- */
.portal-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); align-items: start; }
.side-nav { position: sticky; top: 68px; align-self: start; max-height: calc(100vh - 68px);
  overflow-y: auto; display: flex; flex-direction: column; gap: 1px;
  padding: 20px 14px 28px; border-right: 1px solid var(--line); }
.snav-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase;
  color: var(--muted); background: none; border: none; border-radius: 4px; cursor: pointer;
  padding: 9px 12px; line-height: 1.2; }
.snav-item:hover { color: var(--text); background: var(--paper); }
.snav-item.active { color: var(--accent); background: rgba(43,91,255,.09);
  box-shadow: inset 2px 0 0 var(--accent); }
.snav-group { display: flex; flex-direction: column; margin-top: 6px; }
.snav-head { display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); background: none; border: none; cursor: pointer; padding: 10px 12px 6px; }
.snav-head:hover { color: var(--muted); }
.snav-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s;
  margin-bottom: 2px; flex: none; }
.snav-group:not(.open) .snav-caret { transform: rotate(-45deg); }
.snav-sub { display: flex; flex-direction: column; gap: 1px; padding-left: 8px; }
.snav-group:not(.open) .snav-sub { display: none; }
.snav-sub .snav-item { font-size: 12px; }
/* panels live in the right column — tighter than full-bleed public sections */
.portal-main { min-width: 0; }
.portal-main .wrap { max-width: none; }  /* content fills the column, not capped to --wrap */
.portal-main .section { padding-block: clamp(30px, 4vw, 52px); }
.portal-main .section.paper { border-block: none; }
@media (max-width: 860px) {
  .portal-shell { grid-template-columns: 1fr; }
  .side-nav { position: static; max-height: none; border-right: none;
    border-bottom: 1px solid var(--line); }
}
.tab-badge { display: inline-block; min-width: 17px; margin-left: 7px; padding: 1px 5px;
  font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 15px; letter-spacing: 0;
  text-align: center; color: var(--white); background: var(--accent); border-radius: 9px; }
.tab-badge[hidden] { display: none; }  /* explicit display above would otherwise beat [hidden] */

/* ---------- portal calendar ---------- */
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 14px; }
.cal-head h3 { font-size: 22px; letter-spacing: -.01em; }
.cal-nav { display: flex; gap: 6px; }
.cal-dows { display: grid; grid-template-columns: repeat(7, 1fr); font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .08em; color: var(--faint); padding-bottom: 6px; }
.cal-dows span { padding-left: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-bottom: 8px; }
.cal-cell { background: var(--white); min-height: 96px; padding: 6px;
  display: flex; flex-direction: column; gap: 3px; }
.cal-cell.pad { background: var(--paper); }
.cal-day { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-cell.today .cal-day { color: var(--accent); font-weight: 700; }
.cal-chip { font-family: var(--mono); font-size: 10.5px; line-height: 1.35; text-align: left;
  padding: 3px 5px; border: none; border-radius: 2px; display: block; width: 100%;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-chip.own { background: var(--accent); color: #fff; cursor: pointer; }
.cal-chip.own:hover { background: var(--accent-2); }
.cal-chip.ext { background: #e8e9ec; color: var(--muted); }
.week-day { margin-bottom: 16px; }
.week-day-head { display: flex; align-items: center; gap: 10px; font-family: var(--mono);
  font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.week-day.today .week-day-head { color: var(--accent); font-weight: 700; }
.week-free { padding: 12px 16px; font-size: 14px; }
.ext-name { color: var(--muted); font-weight: 400 !important; }

.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(10, 11, 14, .62);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-back[hidden] { display: none; }
.modal { background: var(--white); width: 100%; max-width: 540px; padding: 28px 30px;
  border-radius: 3px; box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
  max-height: 92vh; overflow: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-head h3 { font-size: 21px; letter-spacing: -.01em; }
.modal-x { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer;
  color: var(--muted); padding: 2px 6px; }
.modal-x:hover { color: var(--accent); }
.modal .form .row { grid-template-columns: 1fr 1fr 1fr; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { justify-content: center; }
@media (max-width: 560px) { .modal .form .row { grid-template-columns: 1fr; } }

/* ---------- traffic dashboard ---------- */
.tr-range.active { border-color: var(--accent); color: var(--accent); }
.tr-chart { display: flex; align-items: flex-end; gap: 2px; height: 150px;
  background: var(--white); border: 1px solid var(--line); padding: 10px 10px 0; }
.tr-bar { flex: 1 1 0; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; }
.tr-bar:hover { background: var(--accent-2); }
.tr-bar.zero { background: var(--line); }
.tr-axis { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .05em; color: var(--faint); padding: 6px 2px 0; }
.tr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px 30px; margin-top: 10px; }
.tr-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline;
  padding: 7px 0 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tr-label { word-break: break-word; }
.tr-num { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.tr-num em { font-style: normal; color: var(--faint); }
.tr-bar-track { grid-column: 1 / -1; height: 3px; }
.tr-bar-fill { display: block; height: 3px; background: var(--accent); border-radius: 2px; opacity: .8; }

.sync-ok { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--faint);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.sync-warn { border: 1px solid #d92d2d; color: #d92d2d; background: var(--white);
  padding: 12px 16px; font-size: 14.5px; line-height: 1.5; margin-bottom: 10px; }
.cal-sync-body { background: var(--white); padding: 20px 22px; font-size: 15px; }
.cal-sync-body p { margin-bottom: 10px; }
.cal-feed code { font-family: var(--mono); font-size: 12px; word-break: break-all;
  background: var(--paper); padding: 4px 7px; }
@media (max-width: 720px) {
  .cal-cell { min-height: 60px; padding: 4px; }
  .cal-chip { font-size: 9px; padding: 2px 3px; }
}

.file-up { align-items: center; }
.file-up input[type="file"] { padding: 7px 12px; flex: 1 1 260px; max-width: 420px; }
.file-up input[type="file"]::file-selector-button { font: inherit; font-family: var(--mono);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-right: 12px;
  padding: 5px 10px; border: 1px solid var(--ink); border-radius: 3px;
  background: var(--white); color: var(--ink); cursor: pointer; }
.file-up input[type="file"]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- stripe money dashboard ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-bottom: 6px; }
.kpi { background: var(--white); padding: 18px 20px 20px; }
.kpi .lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kpi .num { font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.inv-badge.muted { border-color: #c9ccd2; color: var(--muted); }
.stripe-connect { border: 1px solid var(--line); background: var(--white); padding: 20px; }
.stripe-connect p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.stripe-foot { display: flex; gap: 10px; margin-top: 12px; }
