/* The colours and Figtree face come from Webskill's public identity. */
:root { --navy: #132d46; --blue: #075e98; --pale: #edf4f5; }
body { line-height: 1.5; }
h1, h2, h3, .wordmark { color: var(--navy); }
h1 { font-size: clamp(2rem, 3.3vw, 3.25rem); font-weight: 650; line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
h2, .panel-head h2, .section-head h2, .agenda .panel-head h2 { font-size: 1.24rem; font-weight: 650; line-height: 1.25; }
h3 { font-weight: 650; }
.wordmark { font-size: 35px; letter-spacing: -.07em; font-weight: 800; }
:is(a,button,summary,[tabindex="0"]):focus-visible { outline: 3px solid #0073b9; outline-offset: 3px; }
:is(input,select,textarea):focus-visible { outline: 3px solid #0073b9; outline-offset: 2px; }
.button { min-height: 42px; border-radius: 5px; font-size: .875rem; font-weight: 650; }
.button.secondary { color: var(--navy); border-color: #b6c6ce; }
.button.text, .text-link, .back-link, .demo-card button { color: var(--blue); font-weight: 600; }
.text-link, .back-link { font-size: .83rem; }
.text-link:hover, .button.text:hover, .back-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.button.primary { background: var(--navy); }
.button.primary:hover { background: var(--blue); }
.field>span, .modal .field>span, .login-card .field>span { color: var(--navy); font-weight: 650; font-size: .9rem; }
.field :is(input,select,textarea), .modal .field input, .login-card .field input, select {
  color: var(--ink); border-color: #97aab5; border-radius: 5px; font-size: 1rem;
}
.field input, .field select { min-height: 46px; }
.form-error, .mail-error, .mail-error-detail { color: #90372f; }
.warning { color: #704e17; }
.modal { border-radius: 10px; }
.modal-heading h2 { font-size: 1.6rem; font-weight: 650; }
.modal-overlay { backdrop-filter: none; background: rgb(17 39 57 / 47%); }

/* A printed W on one side; uninterrupted space for the task on the other. */
.access-layout {
  display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr);
  max-width: none; min-height: 100vh; min-height: 100svh; margin: 0; padding: 0;
}
.access-cover {
  color: white; background: var(--navy); padding: clamp(28px,4.5vw,76px);
  display: grid; grid-template-rows: auto 1fr auto; position: relative; overflow: hidden;
}
.access-cover .wordmark, .hub-mast .wordmark { color: white; margin: 0; }
.access-cover .wordmark>span, .hub-mast .wordmark>span, .sidebar .wordmark>span { color: var(--mint); }
.access-art { align-self: center; justify-self: center; display: block; width: min(117%,640px); max-width: none; height: auto; }
.access-caption { padding: 24px 0 0; border-top: 1px solid #426077; }
.access-caption p { color: white; font-size: clamp(35px,3.5vw,60px); line-height: 1.06; font-weight: 600; letter-spacing: -.045em; }
.access-caption span { display: block; color: #bfd2db; font-size: 1rem; margin-top: 10px; }
.access-form-side { display: grid; align-items: center; justify-items: center; padding: 56px clamp(30px,5vw,96px); background: #fbfcfb; }
.access-layout .login-card { max-width: 396px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.login-card h1 { font-size: clamp(38px,3.75vw,58px); font-weight: 650; letter-spacing: -.055em; }
.login-card>p { font-size: 1rem; margin: 14px 0 34px; line-height: 1.55; }
.login-card .field { margin-bottom: 20px; gap: 8px; }
.login-card .field input { width: 100%; min-height: 50px; padding: 11px 14px; }
.login-card form>.button { min-height: 50px; width: 100%; padding: 12px 17px; justify-content: space-between; margin-top: 5px; font-size: 1rem; }
.login-card .button .icon { width: 19px; height: 19px; }
.login-card .auth-help { min-height: 44px; margin: 17px 0 0; color: var(--blue); font-size: .91rem; text-decoration: underline; text-underline-offset: .24em; text-align: left; }
.activation-email { color: var(--navy); background: #e6eff3; }

/* A fixed navigation spine; the work itself stays on a light canvas. */
.sidebar { padding-top: 30px; background: var(--navy); border: 0; overflow-y: auto; color: #fff; }
.sidebar .wordmark { color: #fff; }
.sidebar .workspace { margin: 33px 10px 22px; padding-top: 21px; border-top: 1px solid #3a5266; }
.workspace-icon { background: transparent; border-color: #527083; color: #c3e5ea; border-radius: 5px; }
.workspace strong, .profile strong { font-weight: 650; font-size: .86rem; }
.workspace small, .profile small, .demo-card>div { font-size: .76rem; color: #b7cbd8; }
.workspace-dot { display: none; }
.nav-item { min-height: 44px; border-radius: 5px; color: #d4e0e8; font-size: .91rem; font-weight: 500; }
.nav-item:hover, .sidebar .icon-button:hover, .profile:hover { background: #24425b; color: white; }
.nav-item.selected { color: var(--navy); background: #d5f9ed; font-weight: 700; }
.nav-count, .selected .nav-count { color: inherit; background: rgb(125 170 178 / 17%); font-size: .71rem; }
.sidebar .profile, .demo-card { border-color: #40596b; }
.sidebar .profile, .sidebar .profile>.icon, .sidebar .icon-button, .sidebar .demo-card button { color: white; }
.sidebar :focus-visible, .access-cover :focus-visible, .hub-mast :focus-visible { outline-color: var(--mint); }
.profile-avatar { color: #c8f7e8; background: #2a4759; }
.top-avatar { color: var(--navy); background: #e5eeef; }
.topbar { height: 60px; border-bottom-color: var(--line); }
.breadcrumbs, .top-actions, .top-date { font-size: .8rem; }
.breadcrumbs strong { font-weight: 650; color: var(--navy); }
.demo-pill { font-size: .75rem; letter-spacing: 0; }
.page-heading { margin-bottom: 32px; }
.page-heading p { font-size: 1rem; max-width: 68ch; }
.page-heading>div, .main-wrap, .dashboard-grid>*, .detail-grid>* { min-width: 0; }
.main-wrap main { max-width: 1480px; }
.panel, .product-card, .subscription-card { border-color: var(--line); border-radius: 6px; }
.metrics { background: var(--pale); border: 0; border-radius: 6px; padding: 22px 24px; gap: 0; margin-bottom: 36px; }
.metric { border-color: #c3d2d8; padding: 0 clamp(12px,2vw,28px); }
.metric:last-child { padding-right: 0; }
.metric-top { font-weight: 650; color: var(--navy); font-size: .89rem; }
.metric-value { font-weight: 600; font-size: clamp(26px,2.8vw,44px); margin: 7px 0; letter-spacing: -.045em; overflow-wrap: anywhere; }
.metric-bottom { font-size: .77rem; line-height: 1.45; }
.mini-dot { display: none; }
.dashboard-grid>.agenda { background: #f2f6f7; border-radius: 6px; }
.dashboard-grid .panel-head, .dashboard-grid .agenda .panel-head { min-height: auto; padding: 0 0 18px; }
.dashboard-grid .request-row, .dashboard-grid .agenda-item { min-height: 78px; padding: 16px 0; }
.request-row, .agenda-item, td, th, .note, .subscription-meta { border-color: var(--line); }
.request-row:hover, .agenda-item:hover, tbody tr:hover { background: #f3f7f9; }
.row-main strong, .agenda-item>div>strong, .company-cell strong, .table-request strong { font-size: .9rem; font-weight: 650; }
.row-main small, .row-end>small, .agenda-item p, .company-cell small { font-size: .78rem; }
.badge, .row-end>.badge { font-weight: 650; font-size: .74rem; padding: 3px 8px; }
.badge.green { background: #e2f5ec; color: #25684e; }
.badge.blue { background: #e3eff9; color: #15567e; }
.badge.amber { background: #f8edd6; color: #755218; }
.badge.gray { background: #edf0f2; color: #455665; }
.avatar { border-radius: 5px; font-size: .76rem; font-weight: 700; }
.tone-0,.tone-2 { background: #eee9e4; color: #654b3b; }
.tone-1,.tone-3 { background: #e1edf4; color: #2e5571; }
.tone-4 { color: #315c52; background: #e2f0eb; }
.date-tile { border-color: #bfced4; border-radius: 4px; }
.date-tile strong { color: var(--navy); font-size: 1.1rem; }
.date-tile span { color: var(--muted); text-transform: none; font-size: .73rem; }
.service-icon, .contact-icon { border-radius: 6px; color: var(--blue); background: #e7f1f6; }
.usage-progress>span, .bar-chart span { background: #1979aa; }
.table-money { color: var(--navy); font-weight: 650; }
th { background: #edf3f5; font-weight: 650; color: var(--navy); font-size: .78rem; }
td, .note p { font-size: .88rem; }
.table-scroll { overscroll-behavior-inline: contain; }
.usage-panel .panel-head { min-height: auto; padding-block: 18px; }
.usage-panel .panel-head select { max-width: 100%; min-height: 40px; }
.usage-service { margin: 0 clamp(16px,3vw,28px); padding: 18px 0 22px; border-top: 1px solid var(--line); }
.usage-service h3 { margin: 0 0 14px; font-size: 1rem; color: var(--navy); }
.usage-service .usage-body, .usage-service .missing-data { padding: 0; }
.usage-no-data, .usage-load-error, .usage-provider, .usage-turns small, .builder-usage-stats :is(span,small) { color: var(--muted); }
.usage-load-error { padding: 0 22px 18px; }
.usage-no-data { margin: 0; font-size: .9rem; }
.usage-no-data+.builder-usage-stats { margin-top: 12px; }
.builder-usage-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(140px,100%),1fr)); row-gap: 12px; padding: 16px 0; background: var(--pale); border-radius: 6px; }
.builder-usage-stats>div { min-width: 0; padding: 0 clamp(12px,2vw,22px); }
.builder-usage-stats>div+div { border-left: 1px solid #c8d6da; }
.builder-usage-stats :is(span,strong,small) { display: block; }
.builder-usage-stats span { font-size: .84rem; }
.builder-usage-stats strong { margin: 4px 0; font-size: clamp(1.25rem,2.4vw,1.85rem); line-height: 1.15; font-weight: 650; color: var(--navy); overflow-wrap: anywhere; }
.builder-usage-stats small, .usage-turns small { font-size: .78rem; }
.usage-provider { display: flex; flex-wrap: wrap; gap: .35em; align-items: baseline; margin: 12px 0 0; font-size: .84rem; }
.usage-provider strong { color: var(--navy); }
.usage-turns { margin-top: 12px; }
.usage-turns summary { width: fit-content; cursor: pointer; color: var(--blue); font-weight: 650; padding: 6px 0; }
.usage-turns ul { list-style: none; margin: 5px 0 0; padding: 0; }
.usage-turns li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.usage-turns li>div small { display: block; }
.usage-turn-meta { grid-column: 1 / -1; }
.usage-charge { text-align: right; font-variant-numeric: tabular-nums; }
.quiet-note, .main-wrap footer, .mail-footnote, .field-hint { font-size: .78rem; }
.empty { text-align: left; padding: 26px 22px; }
.empty>.icon { display: none; }
.empty h3 { font-weight: 650; color: var(--navy); font-size: .93rem; }
.empty p { margin-top: 4px; font-size: .84rem; }
.dashboard-grid .empty { padding: 22px 0; border-top: 1px solid var(--line); }
.settings-tabs { flex-wrap: wrap; }
.subscription-grid, .product-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); }
.subscription-grid:has(>article:only-child), .product-grid:has(>article:only-child) { max-width: 38rem; }
.product-card>p, .subscription-card>p { min-height: 0; }
.subscription-price, .product-price { font-weight: 600; }

.hub-mast { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 20px max(5vw,20px); color: #fff; background: var(--navy); }
.hub-mast>a:last-child { text-decoration: underline; text-underline-offset: .25em; }
.hub-page { max-width: 56rem; padding: clamp(28px,5vw,64px) 24px; }
.hub-page h1 { margin-bottom: 20px; }
.hub-page h2 { margin: 34px 0 14px; }
.hub-page p { margin: 14px 0; max-width: 70ch; }
.hub-page label { display: block; margin: 12px 0; font-weight: 600; }
.hub-page :is(input,select):not([type=hidden]) { display: block; width: min(100%,36rem); border: 1px solid #97aab5; background: #fff; color: var(--ink); padding: 10px 12px; border-radius: 5px; margin-top: 5px; font-size: 1rem; }
.hub-page button { border: 0; color: white; background: var(--navy); padding: 12px 18px; border-radius: 5px; font-weight: 650; margin: 8px 0; }
.hub-page form:has(input[value="pause"]) button { background: white; color: var(--navy); border: 1px solid #a4b7c1; }
.hub-page th:last-child, .hub-page td:last-child { width: auto; padding: 12px 16px; }

@media(min-width:1100px) {
  .dashboard-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); align-items: start; }
}
@media(max-width:760px) {
  .access-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .access-cover { grid-template-columns: 1fr; grid-template-rows: auto auto; padding: 22px 24px 26px; gap: 26px; }
  .access-cover .wordmark { font-size: 28px; z-index: 1; }
  .access-caption { border: 0; padding: 0; max-width: 61%; z-index: 1; }
  .access-caption p { font-size: 30px; }
  .access-caption span { font-size: .82rem; line-height: 1.4; margin-top: 6px; }
  .access-art { position: absolute; right: -12px; top: 50%; transform: translateY(-50%); width: min(39%,210px); }
  .access-form-side { padding: 38px max(22px,6vw) 42px; align-items: start; }
  .login-card h1 { font-size: 37px; }
  .login-card>p { margin-bottom: 26px; }
  .sidebar:not(.mobile-open) { visibility: hidden; }
  .sidebar.mobile-open { box-shadow: 10px 0 0 rgb(19 45 70 / 9%); }
  .sidebar .icon-button, .mobile-menu, .icon-button { min-width: 40px; min-height: 40px; }
  .topbar { padding-inline: 13px 22px; }
  .page-heading { margin-bottom: 22px; }
  .page-heading h1 { font-size: clamp(30px,7vw,38px); }
  .page-heading p, .page-heading>.button, .section-head .button { font-size: .89rem; }
  .dashboard-grid>.agenda { padding: 20px; }
  .metrics { padding: 18px; }
  .panel-head .text-link, .section-head .text-link { font-size: .8rem; }
  .modal-overlay { padding: 12px; }
  .modal-actions .button { font-size: .86rem; }
  .section-head, .panel-head, .filters, .mail-heading-actions { flex-wrap: wrap; }
  .account-sections { min-width: 0; }
}
@media(max-width:540px) {
  .builder-usage-stats { display: block; padding: 2px 13px; }
  .builder-usage-stats>div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 2px 10px; padding: 10px 0; }
  .builder-usage-stats>div+div { border-left: 0; border-top: 1px solid #c8d6da; }
  .builder-usage-stats strong { margin: 0; }
  .builder-usage-stats small { grid-column: 1 / -1; }
  .metrics { display: block; padding: 4px 16px; }
  .metric, .metric:first-child { padding: 12px 0; border: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; }
  .metric+.metric { border-top: 1px solid #c8d6da; }
  .metric-top { min-height: 0; font-size: .88rem; }
  .metric-value { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; font-size: 1.55rem; }
  .metric-bottom { font-size: .75rem; }
  .row-main strong { font-size: .86rem; }
  .row-main small, .row-end>small { font-size: .72rem; }
  .detail-grid, .form-grid { grid-template-columns: minmax(0,1fr); }
  .usage-stats { grid-template-columns: 1fr; }
  .usage-stats>div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .usage-stats span { font-size: .82rem; }
  .usage-stats strong { margin: 0; font-size: 1.25rem; }
  .hub-mast .wordmark { font-size: 28px; }
}
