:root {
  --ink: #183b40;
  --muted: #5c7276;
  --deep: #103e42;
  --brand: #087f80;
  --brand-hover: #066668;
  --teal: #19b3a6;
  --soft: #e6f5f2;
  --orange: #f5933e;
  --line: #dce7e6;
  --paper: #fff;
  --bg: #f3f7f6;
  --good: #18704e;
  --good-bg: #e5f5ed;
  --warn: #94510d;
  --warn-bg: #fff2df;
  --bad: #b23a46;
  --bad-bg: #fcecee;
  font: 100%/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  color-scheme: light;
  scrollbar-gutter: stable;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 20rem; }
[hidden] { display: none !important; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button, input, select, a { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--teal); }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2 { letter-spacing: -.04em; line-height: 1.15; }
img { display: block; max-width: 100%; }
.skip { position: fixed; z-index: 20; top: 1rem; left: 1rem; background: white; padding: 1rem; transform: translateY(-200%); color: var(--brand); }
.skip:focus { transform: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25rem; height: 1.25rem; display: inline-block; flex: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; vertical-align: -.22em; }
.eyebrow { font-size: .875rem; letter-spacing: .1em; font-weight: 750; text-transform: uppercase; color: var(--brand); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand img { width: 2.65rem; height: 2.65rem; object-fit: contain; }
.brand strong { font-size: 1.35rem; letter-spacing: -.04em; display: block; line-height: 1.2; }
.brand small { display: block; font-size: .8125rem; color: var(--muted); margin-top: .15rem; letter-spacing: .02em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.875rem; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: .7rem; font-size: .9375rem; line-height: 1.3; font-weight: 650; text-decoration: none; transition: background .16s, box-shadow .16s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 3px 8px #087f8015; }
.btn-primary:not(:disabled):hover { background: var(--brand-hover); box-shadow: 0 5px 15px #087f8028; }
.btn-secondary { background: white; border-color: var(--line); }
.btn-secondary:not(:disabled):hover { background: var(--soft); border-color: #bdd8d3; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:not(:disabled):hover { background: var(--soft); color: var(--brand); }
.btn-danger { background: var(--bad); color: white; }
.btn-danger:not(:disabled):hover { background: #922c37; }
.btn-icon { width: 2.875rem; padding: 0; }
.field { display: grid; align-content: start; gap: .45rem; font-size: .9375rem; font-weight: 650; min-width: 0; }
.field small { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.control { min-height: 3rem; width: 100%; padding: .7rem .85rem; border: 1px solid #ccdbd9; background: white; border-radius: .65rem; font-size: 1rem; font-weight: 400; }
.control::placeholder { color: #73888b; }
.control:hover { border-color: #7daea7; }
.control:focus { border-color: var(--brand); }
.control[readonly] { background: var(--bg); color: var(--muted); }
select.control { appearance: none; background: white url('/assets/chevron.svg') no-repeat right .75rem center / 1.1rem; padding-right: 2.6rem; }
.inline-message { background: var(--bad-bg); border: 1px solid #f0c7cc; color: var(--bad); padding: .8rem 1rem; border-radius: .6rem; font-size: .9375rem; }
.spinner { display: inline-block; width: 1.25rem; height: 1.25rem; flex: none; border: 2px solid #9fc8c2; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.startup { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; }
.login { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; background: white; }
.login-story { position: relative; overflow: hidden; isolation: isolate; background: var(--deep); color: white; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 5vw, 5rem); }
.login-story::before { content: ''; position: absolute; width: 34rem; height: 34rem; border: 1px solid #ffffff10; border-radius: 50%; right: -15rem; top: 11rem; box-shadow: 0 0 0 5rem #ffffff04, 0 0 0 10rem #ffffff03; z-index: -1; }
.login-story .brand small { color: #b8d2ce; }
.login-intro { margin: 4.5rem 0 3rem; }
.login-intro .eyebrow { color: #75d9cd; margin-bottom: 1.25rem; }
.login-intro h2 { font-size: clamp(2.7rem, 4.5vw, 4.4rem); font-weight: 650; max-width: 36rem; text-wrap: balance; }
.login-intro h2 span { color: #ffad66; }
.login-intro > p:last-child { color: #c1d8d4; max-width: 28rem; font-size: 1.05rem; line-height: 1.75; margin-top: 1.5rem; }
.story-features { display: grid; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid #ffffff24; }
.story-features p { display: flex; gap: .8rem; align-items: center; color: #d4e6e2; font-size: .9375rem; }
.story-features .ic { color: #75d9cd; }
.story-foot { color: #a3c4bd; font-size: .8125rem; margin-top: 2rem; }
.login-side { display: flex; align-items: center; justify-content: center; padding: 3rem clamp(1.5rem, 5vw, 5rem); }
.login-card { width: min(100%, 25rem); }
.login-card .mobile-brand { display: none; margin-bottom: 3rem; }
.login-badge { width: 3.2rem; height: 3.2rem; border: 1px solid #cce6df; background: var(--soft); color: var(--brand); border-radius: 1rem; display: grid; place-items: center; margin-bottom: 1.5rem; }
.login-badge .ic { width: 1.45rem; height: 1.45rem; }
.login-card h1 { font-size: 2.2rem; font-weight: 680; }
.login-card .description { color: var(--muted); margin: .85rem 0 2rem; }
.login-card form { display: grid; gap: 1.25rem; }
.login-submit { width: 100%; margin-top: .4rem; min-height: 3.1rem; }
.password { position: relative; }
.password .control { padding-right: 3.2rem; }
.password .btn { position: absolute; top: .15rem; right: .15rem; min-height: 2.7rem; width: 2.7rem; }
.login-note { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.login-note .ic { width: 1.1rem; height: 1.1rem; margin-top: .15rem; }
.app { min-height: 100svh; display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100svh; padding: 2rem 1.25rem 1.5rem; display: flex; flex-direction: column; background: var(--deep); color: white; }
.sidebar .brand { padding: 0 .4rem 2.4rem; }
.sidebar .brand small { color: #a9c9c2; }
.sidebar-label { color: #a9c9c2; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin: .5rem .8rem .8rem; }
.nav-item { width: 100%; justify-content: flex-start; padding: .9rem 1rem; color: #e5f2ef; background: #ffffff0c; border: 1px solid #ffffff17; border-radius: .65rem; position: relative; }
.nav-item.active { background: #1d595b; border-color: #397878; }
.nav-item.active::before { content: ''; height: 1.25rem; width: 3px; background: var(--orange); position: absolute; left: -.1rem; border-radius: 2px; }
.sidebar-bottom { margin-top: auto; padding-top: 2rem; }
.sidebar-bottom .btn { color: #d2e6e0; justify-content: flex-start; width: 100%; }
.sidebar-bottom .btn:hover { background: #ffffff12; color: white; }
.sidebar-footer { border-top: 1px solid #ffffff1a; margin: 1.25rem .7rem 0; padding-top: 1.1rem; color: #9fbbb5; font-size: .8125rem; }
.workspace { min-width: 0; }
.topbar { min-height: 5rem; padding: .8rem 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: white; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .875rem; color: var(--muted); display: flex; align-items: center; gap: .75rem; }
.breadcrumb span { color: #adc0bb; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.account { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.avatar { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; background: var(--soft); color: var(--brand); border-radius: 50%; font-size: .875rem; font-weight: 700; flex: none; }
.account-name { max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 650; }
.mobile-top-brand, .mobile-logout { display: none; }
.content { padding: 2.4rem clamp(1rem, 3vw, 3.25rem) 2rem; max-width: 100rem; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.7rem; }
.page-heading h1 { font-size: 2rem; font-weight: 680; }
.page-heading p { color: var(--muted); margin-top: .5rem; }
.heading-actions { display: flex; gap: .6rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.8rem; }
.stat { background: white; border: 1px solid var(--line); border-radius: .85rem; padding: 1.2rem 1.3rem; position: relative; }
.stat-label { color: var(--muted); font-size: .875rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.stat-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem; background: var(--soft); color: var(--brand); }
.stat-icon.warn { background: var(--warn-bg); color: var(--warn); }
.stat-icon.bad { background: var(--bad-bg); color: var(--bad); }
.stat-number { font-size: 2rem; font-weight: 650; line-height: 1.3; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin-top: .4rem; }
.stat-note { color: var(--muted); font-size: .8125rem; margin-top: .25rem; }
.list-panel { background: white; border: 1px solid var(--line); border-radius: .9rem; overflow: hidden; box-shadow: 0 4px 16px #234b401f; }
.list-toolbar { padding: 1.3rem 1.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; max-width: 34rem; }
.search .control { padding-left: 2.75rem; padding-right: 2.8rem; background-color: #f8faf9; }
.search > .ic { position: absolute; top: .85rem; left: .9rem; color: var(--muted); }
.search-clear { position: absolute; right: .2rem; top: .15rem; min-height: 2.7rem; width: 2.7rem; }
.filter-field { min-width: 12.5rem; }
.filter-field .control { min-height: 3rem; }
.filter-label { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; display: block; }
.list-summary { padding: .85rem 1.5rem; color: var(--muted); font-size: .875rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.result-count { font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; }
.license-table { border-collapse: collapse; width: 100%; text-align: left; }
.license-table th { padding: .8rem 1rem; font-size: .8125rem; font-weight: 650; color: var(--muted); background: #f7faf9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.license-table th:first-child, .license-table td:first-child { padding-left: 1.5rem; }
.license-table th:last-child, .license-table td:last-child { padding-right: 1.5rem; }
.license-table td { padding: 1rem; vertical-align: middle; border-bottom: 1px solid #eaf0ee; font-size: .9375rem; }
.license-table tbody tr:last-child td { border-bottom: 0; }
.license-table tbody tr:hover { background: #f9fcfb; }
.client-name { font-size: .9375rem; font-weight: 650; color: var(--ink); word-break: break-word; }
.client-document { color: var(--muted); font-size: .8125rem; margin-top: .25rem; }
.code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .875rem; color: #386261; word-break: break-all; }
.code small { display: block; color: var(--muted); font-size: .8125rem; margin-top: .25rem; font-family: "Segoe UI", system-ui, sans-serif; }
.date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; padding: .28rem .65rem; font-size: .8125rem; font-weight: 650; border-radius: 2rem; background: var(--good-bg); color: var(--good); white-space: nowrap; }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.bad { color: var(--bad); background: var(--bad-bg); }
.badge.off { color: var(--muted); background: #eaf0ee; }
.status-note { display: block; font-size: .8125rem; color: var(--muted); margin-top: .3rem; white-space: nowrap; }
.row-actions { display: flex; gap: .25rem; justify-content: flex-end; }
.row-actions .btn { min-height: 2.75rem; width: 2.75rem; color: #53716f; }
.row-actions .invalidate:hover { background: var(--bad-bg); color: var(--bad); }
.empty { padding: 4rem 1.5rem; text-align: center; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 3.8rem; height: 3.8rem; color: var(--brand); background: var(--soft); border-radius: 1.2rem; margin: 0 auto 1.1rem; }
.empty-icon .ic { width: 1.8rem; height: 1.8rem; }
.empty h2 { color: var(--ink); font-size: 1.25rem; margin-bottom: .6rem; }
.empty p { max-width: 30rem; margin: auto; }
.empty .btn { margin-top: 1.2rem; }
.list-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fcfdfd; }
.page-footer { color: var(--muted); font-size: .8125rem; margin-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; }
.list-error { margin: 0 0 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modal { border: 1px solid var(--line); border-radius: 1rem; padding: 0; width: min(43rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); color: var(--ink); background: white; box-shadow: 0 30px 100px #0c39344d; }
.modal::backdrop { background: #0b2c3290; backdrop-filter: blur(3px); }
.modal-small { width: min(31rem, calc(100% - 2rem)); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.6rem 1.75rem 1.2rem; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 1.5rem; margin-top: .25rem; }
.modal-header > .btn { margin: -.35rem -.6rem 0 0; }
.modal-body { padding: 1.5rem 1.75rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.span-all { grid-column: 1 / -1; }
.modal-footer { display: flex; justify-content: flex-end; gap: .7rem; padding: 1.1rem 1.75rem; background: #f7faf9; border-top: 1px solid var(--line); }
.modal .inline-message { margin-bottom: 1.25rem; }
.modal-hint { margin-top: 1.3rem; color: var(--muted); font-size: .875rem; display: flex; align-items: flex-start; gap: .6rem; }
.confirm-icon { display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--warn-bg); color: var(--warn); border-radius: .8rem; margin-bottom: 1rem; }
.confirm-copy { color: var(--muted); }
.confirm-client { padding: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: .6rem; margin-top: 1.1rem; overflow-wrap: anywhere; }
.confirm-client .code { margin-top: .3rem; }
.help-content { display: grid; gap: 1.1rem; color: var(--muted); }
.help-content strong { color: var(--ink); }
.toast { z-index: 30; position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); border-radius: .8rem; padding: .95rem 1.3rem; background: var(--deep); color: white; box-shadow: 0 8px 30px #103e4233; font-size: .9375rem; }
.toast.error { background: #8e2a35; }
@media (min-width: 1600px) { .content { padding-top: 3rem; } .stats { gap: 1.25rem; } .stat { padding: 1.5rem; } }
@media (max-width: 1150px) { .app { grid-template-columns: 13.5rem minmax(0, 1fr); } .sidebar { padding-inline: .8rem; } .topbar { padding-inline: 1.5rem; } .stats { gap: .65rem; } .stat { padding: 1rem; } .stat-label { font-size: .8125rem; } .stat-icon { width: 1.7rem; height: 1.7rem; } .stat-note { max-width: 8rem; } }
@media (max-width: 900px) { .app { display: block; } .sidebar { display: none; } .mobile-top-brand { display: flex; } .mobile-top-brand .brand img { width: 2rem; height: 2rem; } .mobile-top-brand .brand strong { font-size: 1.15rem; } .mobile-top-brand .brand small { display: none; } .breadcrumb { display: none; } .mobile-logout { display: inline-flex; } .content { padding-top: 1.8rem; } .account-name { max-width: 10rem; } .topbar { min-height: 4.5rem; padding-inline: 1.25rem; } .page-heading h1 { font-size: 1.8rem; } }
@media (max-width: 720px) { .login { display: block; } .login-story { display: none; } .login-side { min-height: 100svh; padding: 2rem 1.5rem; background: linear-gradient(165deg, #f0f8f5, white 55%); } .login-card .mobile-brand { display: flex; } .login-card h1 { font-size: 2rem; } .login-badge { display: none; } .page-heading { align-items: flex-start; flex-wrap: wrap; } .page-heading p { font-size: .9375rem; } .heading-actions { width: 100%; } .heading-actions .btn-primary { flex: 1; } .stats { grid-template-columns: 1fr 1fr; margin-bottom: 1.2rem; } .stat-note { max-width: none; } .stat-number { font-size: 1.75rem; } .stat-label { font-size: .875rem; } .list-toolbar { padding: 1rem; flex-wrap: wrap; } .search { max-width: none; flex-basis: 100%; } .filter-field { width: 100%; } .filter-label { margin-bottom: .4rem; } .list-summary { padding: .85rem 1rem; } .list-summary .updated-label { display: none; } .license-table, .license-table tbody { display: block; width: 100%; } .license-table thead { display: none; } .license-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 1.1rem; border-top: 1px solid var(--line); column-gap: 1rem; row-gap: .7rem; } .license-table td, .license-table td:first-child, .license-table td:last-child { padding: 0; border: 0; } .license-table td:nth-child(1) { grid-column: 1 / -1; } .license-table td:nth-child(2) { grid-column: 1; } .license-table td:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; } .license-table td:nth-child(4) { grid-column: 1; } .license-table td:nth-child(5) { grid-column: 2; grid-row: 3; align-self: center; } .client-name { font-size: 1rem; } .client-document { font-size: .875rem; } .row-actions { margin-right: -.5rem; } .list-footer { padding: 1rem; } .list-footer > span:last-child { display: none; } .modal-header { padding: 1.3rem 1.25rem 1rem; } .modal-body { padding: 1.25rem; } .modal-footer { padding: 1rem 1.25rem; } .modal-footer .btn { flex: 1; } .page-footer { font-size: .8125rem; } .page-footer > span:last-child { display: none; } }
@media (max-width: 420px) { .account-name { display: none; } .content { padding-inline: .85rem; } .stat { padding: .9rem; } .stat-label { font-size: .8125rem; } .stat-note { font-size: .8125rem; } .form-grid { grid-template-columns: 1fr; } .span-all { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
