:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #66758a;
  --panel: #ffffff;
  --line: #cbd8e6;
  --accent: #0b7ee8;
  --accent-dark: #075fb4;
  --page: #f4f7fb;
  --navy: #0b1629;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(145deg, #f8fbff, #eaf0f6); color: var(--ink); line-height: 1.55; }
a { color: var(--accent-dark); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #72b5ff; outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 36px)); margin: auto; }
header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 178px; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
header nav a, .linklike { color: #42536b; text-decoration: none; font: inherit; }
header nav a:hover, .linklike:hover { color: var(--accent-dark); }
.inline { display: inline-flex; align-items: center; gap: 8px; }
.inline-check { display: flex; align-items: center; gap: 8px; }
.linklike { border: 0; background: none; cursor: pointer; }
.nav-cta { padding: 8px 13px; border: 1px solid var(--accent); border-radius: 6px; color: var(--accent-dark); }
main { min-height: 75vh; padding-bottom: 60px; }
.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 44px; min-height: 550px; padding: 72px 0; }
.eyebrow, .tag { color: var(--accent-dark); font-size: .74rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.hero h1, .page-head h1, .form-wrap h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.06em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.lead { max-width: 580px; color: var(--muted); font-size: 1.15rem; }
.actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.button, button.secondary { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 16px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.secondary { background: #fff !important; color: #294057 !important; border-color: #b8c8d8 !important; }
.secondary:hover { background: #f3f8fd !important; }
.visual { position: relative; display: grid; min-height: 300px; place-items: center; }
.machine { position: relative; width: min(100%, 390px); aspect-ratio: 1.18; overflow: hidden; border: 1px solid #1d4e83; border-radius: 12px; background: linear-gradient(145deg, #0b1629, #0d315d 66%, #0b7ee8 130%); box-shadow: 0 24px 60px #0b315d2b; }
.table { position: absolute; top: 27%; left: 24%; display: grid; width: 52%; height: 48%; place-items: center; border: 1px solid #cbd8e6; background: repeating-linear-gradient(0deg, #eaf0f6 0 12px, #dbe7f3 13px 14px); transform: perspective(500px) rotateX(5deg); }
.part { position: relative; width: 61%; aspect-ratio: 1.55; border: 2px solid #0b7ee8; background: #0b7ee81a; }
.part:before, .part:after { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border: 1px solid #0b7ee8; border-radius: 50%; content: ""; transform: translate(-50%, -50%); }
.part:after { left: 76%; }
.tool { position: absolute; top: 16%; left: 57%; width: 3px; height: 28%; background: #e8f1ff; box-shadow: 0 0 12px #72b5ff; }
.tool:after { position: absolute; bottom: -5px; left: -3px; width: 9px; height: 9px; border-radius: 50%; background: #72b5ff; content: ""; }
.visual-label { position: absolute; right: 0; bottom: 3%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #42536b; font: .76rem ui-monospace, monospace; }
.section, .cta { padding: 64px 0; border-top: 1px solid #dce5ef; }
.section-heading, .page-head { max-width: 700px; margin: 42px 0 30px; }
.section h2, .cta h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.15; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card, .panel { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 10px 30px #0b315d0a; }
.card h2, .card h3 { margin: .4em 0; }
.card p, .muted, .small { color: var(--muted); }
.small { font-size: .85rem; }
.panel { margin: 22px 0; }
.form-wrap { width: min(520px, 100%); margin: 70px auto; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 18px 48px #0b315d12; }
.form-wrap.wide { width: min(760px, 100%); }
form:not(.inline) { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: #42536b; font-size: .92rem; }
input, select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #b8c8d8; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.password-field { display: grid; gap: 6px; }
.password-input { position: relative; }
.password-input input { padding-right: 6.5rem; }
.password-toggle { position: absolute; top: 50%; right: 6px; min-height: 32px !important; padding: 4px 8px !important; transform: translateY(-50%); }
input[type=checkbox] { width: 18px; min-height: 18px; accent-color: var(--accent); }
.grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-form>button, .grid-form>fieldset { grid-column: 1/-1; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.checkrow { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.checkrow span { display: grid; }
.checkrow small { color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: 6px; }
legend { padding: 0 6px; color: #42536b; }
.price-row { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #e2eaf2; }
.price-row:last-child { border-bottom: 0; }
.price-row label { display: flex; align-items: center; }
.price-row input[type=number] { width: 110px; }
.notice { margin: 14px 0; padding: 12px 15px; border: 1px solid #b8d6f5; border-radius: 6px; background: #eaf4ff; color: #173d66; }
.notice.error { border-color: #e8a4a4; background: #fff1f1; color: #7b2323; }
.subnav { display: flex; gap: 20px; flex-wrap: wrap; margin: 26px 0; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
code { color: var(--accent-dark); }
footer { padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
hr { width: 100%; border: 0; border-top: 1px solid var(--line); }
@media(max-width:700px) {
  header { align-items: flex-start; padding: 18px 0; flex-direction: column; }
  .brand img { width: 162px; }
  header nav { gap: 13px; }
  .hero { grid-template-columns: 1fr; min-height: unset; padding: 55px 0; }
  .visual { min-height: 240px; }
  .cards, .checklist, .grid-form { grid-template-columns: 1fr; }
  .price-row { align-items: flex-start; flex-direction: column; }
  .shell { width: min(100% - 24px, 1120px); }
}

.dashboard-layout { display:grid; grid-template-columns:210px minmax(0,1fr); gap:22px; width:min(1500px,calc(100vw - 32px)); margin:24px 0 40px; }
.shell:has(.dashboard-layout) { width:min(1500px,calc(100% - 32px)); }
.shell:has(.dashboard-layout)>header nav, .dashboard-nav .dashboard-brand { display:none; }
.dashboard-nav { align-self:stretch; padding:18px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.dashboard-brand { display:block; padding:5px 4px 22px; border-bottom:1px solid #e2eaf2; }
.dashboard-brand img { display:block; width:150px; max-width:100%; }
.dashboard-nav nav { display:grid; gap:4px; padding:16px 0; }
.dashboard-nav nav a, .dashboard-nav form button { display:block; padding:10px 11px; border-radius:6px; color:#294057; text-decoration:none; }
.dashboard-nav nav a:hover, .dashboard-nav nav a[aria-current=page] { background:#eaf4ff; color:var(--accent-dark); }
.dashboard-nav form { border-top:1px solid #e2eaf2; padding-top:10px; }
.dashboard-nav form button { text-align:left; }
.dashboard-main { min-width:0; }
.dashboard-topbar { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:52px; margin-bottom:14px; }
.company-selector { display:flex; align-items:center; gap:9px; }
.dashboard-topbar form.company-selector { display:flex; align-items:center; gap:9px; }
.company-selector label { font-weight:700; }
.company-selector select { min-width:190px; }
.signed-in { display:grid; text-align:right; }
.signed-in span, .dashboard-note { color:var(--muted); font-size:.86rem; }
.company-summary { display:flex; align-items:center; justify-content:space-between; gap:22px; padding:22px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.company-summary h1 { margin:3px 0 8px; font-size:clamp(1.5rem,3vw,2.1rem); letter-spacing:-.035em; }
.company-summary p { margin:4px 0; color:var(--muted); }
.license-status { display:grid; gap:7px; min-width:200px; padding-left:20px; border-left:1px solid #e2eaf2; }
.license-status a, .panel-heading a, .quick-actions a { color:var(--accent-dark); text-decoration:none; font-weight:650; }
.status-pill { width:max-content; padding:5px 10px; border-radius:20px; background:#eaf4ff; color:#075fb4; font-weight:700; }
.status-active { background:#d9f6e8; color:#087548; }
.status-overdue, .status-suspended, .status-cancelled { background:#fff0ec; color:#a23520; }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:14px 0; }
.metric-card, .dashboard-panel, .quick-actions { min-width:0; padding:17px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.metric-card { display:grid; gap:7px; }
.metric-card>span { color:#42536b; font-size:.9rem; font-weight:650; }
.metric-card>strong { font-size:1.55rem; line-height:1.2; overflow-wrap:anywhere; }
.metric-card small { color:var(--muted); }
.dashboard-columns { display:grid; grid-template-columns:1.2fr 1fr; gap:12px; }
.dashboard-panel p { margin:10px 0; }
.dashboard-panel h2, .quick-actions h2 { margin:0; font-size:1.05rem; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-bottom:10px; border-bottom:1px solid #e2eaf2; }
.panel-heading a { font-size:.88rem; white-space:nowrap; }
.dashboard-list { list-style:none; margin:0; padding:0; }
.dashboard-list li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:10px 2px; border-bottom:1px solid #edf1f5; }
.dashboard-list li:last-child { border-bottom:0; }
.dashboard-list li strong { color:#087548; }
.dashboard-list .empty-row { display:block; color:var(--muted); }
.payment-list li { grid-template-columns:1fr 1fr auto; }
.sector-list li { grid-template-columns:minmax(90px,.8fr) minmax(50px,1fr) auto; }
.sector-meter { height:10px; overflow:hidden; border-radius:8px; background:#e4ebf2; }
.sector-meter i { display:block; height:100%; border-radius:inherit; background:var(--accent); }
.quick-actions { margin-top:12px; background:#f7fbff; }
.quick-actions>div { display:flex; flex-wrap:wrap; gap:18px; margin-top:12px; }
.dashboard-note { margin:12px 2px; }
.empty-state { max-width:900px; margin:42px auto; padding:28px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.empty-state h1 { margin:5px 0 12px; font-size:clamp(1.8rem,4vw,2.7rem); }
.company-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin-top:22px; }
.company-choice { padding:18px; border:1px solid var(--line); border-radius:9px; background:#fafdff; }
.company-choice h2 { margin:8px 0 4px; font-size:1.15rem; }
.company-choice p { color:var(--muted); }
.profile-card { max-width:620px; }
.profile-card>p { padding-bottom:10px; border-bottom:1px solid #e2eaf2; }
@media(max-width:1000px) {
  .dashboard-layout { grid-template-columns:170px minmax(0,1fr); gap:14px; }
  .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .dashboard-topbar form.company-selector { display:grid; }
  .dashboard-layout { grid-template-columns:1fr; width:100%; margin:10px 0 24px; }
  .dashboard-nav { padding:10px; }
  .dashboard-brand { padding:3px 4px 10px; }
  .dashboard-brand img { width:130px; }
  .dashboard-nav nav { display:flex; overflow-x:auto; gap:4px; padding:8px 0; }
  .dashboard-nav nav a { flex:0 0 auto; padding:8px 10px; }
  .dashboard-nav>form { padding-top:5px; }
  .dashboard-topbar, .company-summary { align-items:stretch; flex-direction:column; }
  .company-selector { display:grid; grid-template-columns:1fr auto; }
  .company-selector label { grid-column:1/-1; }
  .company-selector select { min-width:0; }
  .signed-in { text-align:left; }
  .license-status { min-width:0; padding:14px 0 0; border-left:0; border-top:1px solid #e2eaf2; }
  .metric-grid, .dashboard-columns { grid-template-columns:1fr; }
  .payment-list li { grid-template-columns:1fr auto; }
  .payment-list li strong { grid-column:2; }
  .quick-actions>div { display:grid; gap:10px; }
}
