:root {
  --navy: #172b4d;
  --navy-2: #243b53;
  --ink: #1f2933;
  --muted: #627d98;
  --line: #d9e2ec;
  --paper: #f4f7fa;
  --white: #fff;
  --teal: #087f8c;
  --teal-soft: #e6f6f7;
  --orange: #f59e0b;
  --red: #c2413a;
  --green: #2f855a;
  --shadow: 0 16px 40px rgba(23, 43, 77, .10);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, .button-link { cursor: pointer; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9fb3c8; }
.eyebrow.dark { color: var(--teal); }
.muted { color: var(--muted); line-height: 1.55; }
.welcome-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 46%) 1fr; }
.brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 9vw; background: var(--navy); color: white; }
.brand-panel::after { content: ""; position: absolute; width: 420px; height: 420px; border: 80px solid rgba(8, 127, 140, .25); border-radius: 50%; right: -230px; top: -160px; }
.brand-mark { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; font-weight: 900; letter-spacing: -.08em; background: rgba(255,255,255,.08); margin-bottom: 52px; }
.brand-mark.small { width: 42px; height: 42px; margin: 0; border-radius: 12px; flex: 0 0 auto; }
.brand-panel h1 { font-family: Georgia, serif; font-size: clamp(42px, 5vw, 72px); line-height: 1.03; letter-spacing: -.045em; margin: 0 0 24px; max-width: 620px; }
.brand-copy { max-width: 520px; color: #bcccdc; font-size: 18px; line-height: 1.65; }
.brand-foot { position: absolute; left: 9vw; bottom: 42px; color: #829ab1; font-size: 12px; }
.entry-panel { display: grid; place-items: center; padding: 40px; background: white; }
.entry-card { width: min(480px, 100%); }
.entry-card h2 { font-family: Georgia, serif; font-size: 36px; margin: 0 0 26px; letter-spacing: -.025em; }
.business-card { width: 100%; display: flex; align-items: center; gap: 18px; padding: 20px; margin: 14px 0; border: 1px solid var(--line); border-radius: 16px; background: white; text-align: left; transition: .2s; }
.business-card.active:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: var(--shadow); }
.business-card.disabled { opacity: .55; cursor: default; }
.business-monogram { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--teal-soft); color: var(--teal); font-size: 24px; font-weight: 900; }
.business-monogram.yamaha { background: #eef2ff; color: #3446a8; }
.business-card strong, .business-card small { display: block; }
.business-card strong { font-size: 18px; margin-bottom: 4px; }
.business-card small { color: var(--muted); }
.arrow { margin-left: auto; font-size: 24px; color: var(--teal); }
.tag { margin-left: auto; padding: 5px 10px; background: #eef2f6; border-radius: 999px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
label { display: grid; gap: 7px; margin: 16px 0; font-size: 13px; font-weight: 700; color: var(--navy-2); }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; color: var(--ink); background: white; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,140,.12); }
.primary, .secondary, .ghost, .button-link { display: inline-flex; justify-content: center; align-items: center; border-radius: 9px; padding: 11px 16px; font-weight: 800; text-decoration: none; border: 1px solid transparent; }
.primary { background: var(--teal); color: white; }
.primary:hover { background: #066d78; }
.secondary { background: white; color: var(--navy); border-color: var(--line); }
.secondary:hover { border-color: var(--teal); color: var(--teal); }
.ghost { border: 0; background: transparent; color: var(--muted); }
.wide { width: 100%; margin-top: 8px; }
.back-link { border: 0; background: none; color: var(--muted); padding: 0; margin-bottom: 36px; }
.portal { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--navy); color: white; padding: 24px 16px; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; padding: 0 8px 28px; }
.sidebar-brand small { display: block; color: #829ab1; font-weight: 500; margin-top: 3px; }
nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: 9px; padding: 12px; background: transparent; color: #bcccdc; text-align: left; font-weight: 700; }
.nav-item span { color: #829ab1; font-size: 11px; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.08); color: white; }
.nav-item.active span { color: #5eead4; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
.sidebar-bottom small { display: block; color: #829ab1; padding: 14px 12px 0; line-height: 1.5; }
.workspace { min-width: 0; }
.topbar { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 32px; background: white; border-bottom: 1px solid var(--line); }
.topbar h2 { margin: 0; font-size: 22px; }
.topbar-meta { display: flex; align-items: center; gap: 28px; }
.topbar-meta div { display: grid; gap: 3px; }
.topbar-meta small { color: var(--muted); font-size: 11px; }
.topbar-meta strong { font-size: 13px; }
.user-chip { width: 42px; height: 42px; display: grid !important; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: 13px; text-transform: uppercase; }
.content { padding: 28px 32px 60px; max-width: 1600px; margin: 0 auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.hero-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; border-radius: 16px; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: white; box-shadow: var(--shadow); }
.hero-strip h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 29px; }
.hero-strip p:last-child { margin: 0; color: #bcccdc; }
.progress-ring { width: 94px; height: 94px; flex: 0 0 auto; display: grid; place-content: center; text-align: center; border: 7px solid rgba(255,255,255,.18); border-top-color: #5eead4; border-radius: 50%; }
.progress-ring strong { font-size: 20px; }.progress-ring span { font-size: 10px; color: #bcccdc; text-transform: uppercase; letter-spacing: .08em; }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 22px 0; }
.step { position: relative; min-height: 98px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.step b { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #eef2f6; color: var(--muted); font-size: 12px; }
.step strong { display: block; margin-top: 11px; font-size: 12px; line-height: 1.35; }
.step.current { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(8,127,140,.1); }.step.current b { background: var(--teal); color: white; }
.step.done { background: var(--teal-soft); border-color: #b8e3e6; }.step.done b { background: var(--green); color: white; }
.step.locked { opacity: .48; }
.card { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 16px rgba(23,43,77,.04); }
.action-card { padding: 26px; min-height: 240px; }
.action-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 22px; }.action-head h3 { margin: 0 0 6px; font-size: 21px; }.action-head p { margin: 0; color: var(--muted); }
.upload-zone { display: grid; place-items: center; text-align: center; min-height: 190px; padding: 30px; border: 2px dashed #b8c7d6; border-radius: 12px; background: #fafcfe; }
.upload-zone input { max-width: 520px; margin: 14px auto; }
.upload-zone small { color: var(--muted); }
.error-panel { margin-top: 18px; border: 1px solid #f3b8b5; border-radius: 10px; overflow: hidden; }
.error-panel h4 { margin: 0; padding: 12px 15px; background: #fff0ef; color: var(--red); }
.error-row { display: grid; grid-template-columns: 130px 100px 150px 1fr; gap: 10px; padding: 10px 15px; border-top: 1px solid #f5d0cd; font-size: 12px; }
.route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.route-select { border: 1px solid var(--line); padding: 14px; border-radius: 10px; }.route-select label { margin: 0; }
.review-table input { min-width: 140px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.section-head h3 { margin: 0; font-family: Georgia, serif; font-size: 30px; }.compact { margin: 0; min-width: 170px; }
#month-opening { padding: 22px; margin-bottom: 18px; }.month-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }.month-actions label { margin: 0; min-width: 240px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metric { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 12px; }.metric small { color: var(--muted); }.metric strong { display: block; font-size: 24px; margin-top: 7px; color: var(--navy); }
.table-card { overflow: hidden; }
.table-tools { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }.table-tools input { max-width: 300px; margin-left: auto; }.table-tools select { max-width: 220px; }
.segmented { display: inline-flex; padding: 3px; background: #eef2f6; border-radius: 9px; }.segmented button { border: 0; background: transparent; padding: 8px 12px; color: var(--muted); border-radius: 7px; font-weight: 700; }.segmented button.active { background: white; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.table-wrap { width: 100%; overflow: auto; max-height: 62vh; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { position: sticky; top: 0; z-index: 2; padding: 11px 12px; background: var(--navy-2); color: white; text-align: left; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid #edf1f5; white-space: nowrap; } tbody tr:hover { background: #f7fafc; }
.money { text-align: right; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; }.status.done, .status.active { background: #e7f6ec; color: var(--green); }.status.inactive { background: #fff5dc; color: #946200; }.status.closed { background: #eef2f6; color: var(--muted); }.status.open { background: #fff0ef; color: var(--red); }
.link-button { border: 0; background: none; padding: 0; color: var(--teal); font-weight: 800; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px; }.pagination button { border: 1px solid var(--line); background: white; border-radius: 7px; padding: 7px 10px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }.plan-card { padding: 24px; }.plan-number { color: var(--teal); font-weight: 900; letter-spacing: .12em; }.plan-card h4 { font-size: 20px; margin: 18px 0 8px; }.plan-card p { color: var(--muted); min-height: 58px; line-height: 1.5; }
dialog { width: min(760px, calc(100% - 32px)); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 30px 80px rgba(0,0,0,.25); } dialog::backdrop { background: rgba(23,43,77,.68); backdrop-filter: blur(4px); }.dialog-card { padding: 24px; }.dialog-head { display: flex; justify-content: space-between; }.dialog-head h3 { margin: 0; font-size: 24px; }.icon-button { width: 36px; height: 36px; border: 0; border-radius: 50%; font-size: 23px; background: #eef2f6; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }.span-2 { grid-column: span 2; }.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.toast { position: fixed; z-index: 999; right: 24px; top: 24px; max-width: 440px; padding: 13px 17px; border-radius: 10px; background: var(--navy); color: white; box-shadow: var(--shadow); transform: translateY(-90px); opacity: 0; transition: .25s; }.toast.show { transform: translateY(0); opacity: 1; }.toast.error { background: var(--red); }
.empty { padding: 48px; text-align: center; color: var(--muted); }.success-block { padding: 26px; text-align: center; }.success-block .check { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: #e7f6ec; color: var(--green); font-size: 25px; }
@media (max-width: 1050px) { .portal { grid-template-columns: 78px 1fr; }.sidebar-brand span:not(.brand-mark), .nav-item:not(.active) { font-size: 0; }.nav-item { justify-content: center; }.nav-item span { font-size: 11px; }.sidebar-bottom small { display: none; }.stepper { grid-template-columns: 1fr; }.step { min-height: 60px; display: flex; align-items: center; gap: 10px; }.step strong { margin: 0; }.metric-grid { grid-template-columns: 1fr 1fr; }.plan-grid { grid-template-columns: 1fr; }.topbar-meta > div:not(.user-chip) { display: none; } }
@media (max-width: 720px) { .welcome-shell { grid-template-columns: 1fr; }.brand-panel { min-height: 38vh; padding: 36px 28px; }.brand-panel h1 { font-size: 40px; }.brand-mark { margin-bottom: 28px; }.brand-foot { display: none; }.entry-panel { padding: 34px 22px; }.portal { display: block; }.sidebar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; top: auto; height: 68px; flex-direction: row; padding: 8px; }.sidebar-brand, .sidebar-bottom { display: none; }.sidebar nav { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }.nav-item { font-size: 0; }.nav-item span { font-size: 12px; }.content { padding: 18px 14px 90px; }.topbar { padding: 16px; }.hero-strip { padding: 24px; }.progress-ring { width: 74px; height: 74px; }.metric-grid { grid-template-columns: 1fr; }.table-tools { align-items: stretch; flex-direction: column; }.table-tools input, .table-tools select { max-width: none; }.form-grid { grid-template-columns: 1fr; }.span-2 { grid-column: span 1; }.error-row { grid-template-columns: 1fr; } }
