/* GF shared interface: neutral surfaces, clear type, quiet controls. */
:root {
  --ink: #202123;
  --muted: #66676a;
  --green: #202123;
  --line: #d8d8dc;
  --line-strong: #c7c7cc;
  --bg: #fff;
  --white: #fff;
  --surface: #f4f4f5;
  --sidebar-bg: #f3f3f4;
  --scroll-track: transparent;
  --scroll-thumb: #a4a4aa;
  --scroll-thumb-hover: #7f7f86;
  --red: #b42318;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #dce8f5; color: #202123; }
:focus-visible { outline: 2px solid #666; outline-offset: 4px; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { transition: background .16s, border-color .16s, box-shadow .16s; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
/* Management and account pages share the workspace's visual vocabulary. */
body:not([data-access]) { background: #fff; color: var(--ink); }
body:not([data-access]) .sidebar { width: 248px; background: var(--sidebar-bg); color: #454548; padding: 22px 12px; border-right: 1px solid var(--line); }
body:not([data-access]) .sidebar-nav { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-gutter: stable; }
body:not([data-access]) .sidebar-nav::-webkit-scrollbar { width: 8px; }
body:not([data-access]) .sidebar-nav::-webkit-scrollbar-track { background: var(--scroll-track); }
body:not([data-access]) .sidebar-nav::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 2px solid var(--sidebar-bg); border-radius: 999px; }
body:not([data-access]) .sidebar-nav::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
body:not([data-access]) .brand { color: #202123; padding: 0 12px 28px; letter-spacing: -.6px; }
body:not([data-access]) .brand small { color: #8c8c8c; letter-spacing: 1px; }
body:not([data-access]) .brandmark { filter: grayscale(1); }
body:not([data-access]) .nav-label { color: #929292; letter-spacing: .2px; font-size: 11px; }
body:not([data-access]) .nav-item { color: #4c4c4c; border-radius: 10px; padding: 11px 14px; font-size: 13px; }
body:not([data-access]) .nav-item:hover { color: #171717; background: #e8e8ea; }
body:not([data-access]) .nav-item.active { color: #171717; background: #dedee1; box-shadow: inset 0 0 0 1px #d1d1d5; }
body:not([data-access]) .sidebar-bottom { border-color: #d7d7db; }
body:not([data-access]) .workspace p { color: #303030; }
body:not([data-access]) .workspace .avatar, body:not([data-access]) .avatar { color: #555; background: #e8e8e8; }
body:not([data-access]) .shell { margin-left: 248px; }
body:not([data-access]) .topbar { height: 68px; background: #fff; border-color: #dcdce0; }
body:not([data-access]) .breadcrumb strong { color: #333; }
body:not([data-access]) .main { max-width: 1440px; padding-top: 22px; }
body:not([data-access]) h1 { font-size: 27px; letter-spacing: -.8px; font-weight: 600; }
body:not([data-access]) .page-heading p { color: #777; font-size: 13px; }
body:not([data-access]) .page-heading { justify-content: flex-end; min-height: 0; margin: 0 0 14px; }
body:not([data-access]) .page-heading:not(.has-actions) { height: 0; margin: 0; }
body:not([data-access]) .btn { border-radius: 9px; border-color: #cdced2; min-height: 36px; }
body:not([data-access]) .btn:hover { background: #f5f5f5; }
body:not([data-access]) .btn.primary { color: #fff; background: #202123; border-color: #202123; }
body:not([data-access]) .btn.primary:hover { background: #3a3a3a; }
body:not([data-access]) .btn.text { color: #444; }
body:not([data-access]) .card, body:not([data-access]) .stat, body:not([data-access]) .admin-task-card, body:not([data-access]) .admin-account-card { border-color: var(--line); border-radius: 14px; box-shadow: 0 1px 2px #00000008; }
body:not([data-access]) .card-head { border-color: #dedee1; }
body:not([data-access]) .stat.highlight { background: #f7f7f8; border-color: var(--line); }
body:not([data-access]) .stat.highlight .stat-value { color: #222; }
body:not([data-access]) .stat-label, body:not([data-access]) .stat-label svg, body:not([data-access]) .stat-note, body:not([data-access]) .subline { color: #818181; }
body:not([data-access]) th { background: #fafafa; color: #888; }
body:not([data-access]) td { border-color: #dedee1; }
body:not([data-access]) input, body:not([data-access]) textarea, body:not([data-access]) select { border-color: #c9c9ce; color: #2b2b2b; border-radius: 9px; }
body:not([data-access]) input:focus, body:not([data-access]) textarea:focus, body:not([data-access]) select:focus { border-color: #888; outline-color: #eee; }
body:not([data-access]) input::placeholder, body:not([data-access]) textarea::placeholder { color: #a1a1a1; }
body:not([data-access]) .admin-scope { color: #666; background: #f4f4f5; border-color: var(--line); border-radius: 7px; }
body:not([data-access]) .admin-entry, body:not([data-access]) .admin-filter-panel, body:not([data-access]) .admin-daily-list>div { border-color: var(--line); border-radius: 12px; }
body:not([data-access]) .admin-filter-tags span { color: #666; background: #f1f1f1; }
body:not([data-access]) .admin-account-link { color: #303030; }
body:not([data-access]) .admin-money-grid dd, body:not([data-access]) .admin-fleet-values b, body:not([data-access]) .admin-risk-grid strong { color: #333; }
body:not([data-access]) .admin-money-grid dt, body:not([data-access]) .admin-kind, body:not([data-access]) .admin-data-status, body:not([data-access]) .admin-pagination>span { color: #818181; }
body:not([data-access]) .callout, body:not([data-access]) .account-id, body:not([data-access]) .help-code { background: #f7f7f7; color: #666; }
body:not([data-access]) .admin-fixed-target, body:not([data-access]) .admin-operation-note { background: #f8f8f8; color: #444; border-color: #e4e4e4; }
body:not([data-access]) .admin-operation-note.unknown { background: #fffaed; color: #88691d; border-color: #f0e5c6; }
body:not([data-access]) .admin-operation-note.failed { background: #fff4f2; color: #ab4939; border-color: #f0d9d3; }
body:not([data-access]) .bottom-nav button, body:not([data-access]) .bottom-nav a { color: #7d7d7d; }
body:not([data-access]) .bottom-nav [aria-current=page] { color: #202123; background: #f0f0f0; }
body:not([data-access]) .bottom-nav { border-color: #d8d8dc; }
body:not([data-access]) .modal-head, body:not([data-access]) .modal-footer { border-color: #dcdce0; }
body:not([data-access]) dialog { border-radius: 18px; border-color: #cfcfd3; box-shadow: 0 20px 80px #0002; }
body:not([data-access]) dialog::backdrop { background: #0005; }
body:not([data-access]) #toast { background: #202123; color: white; }
body:not([data-access]) .login { display: flex; flex-direction: column; justify-content: center; align-items: center; background: #fff; padding: 40px 24px; }
body:not([data-access]) .login-art { display: block; background: #fff; padding: 0; color: #202123; }
body:not([data-access]) .login-art .brand { justify-content: center; padding: 0; margin-bottom: 36px; }
body:not([data-access]) .login-art .brandmark { width: 32px; height: 32px; }
body:not([data-access]) .login-copy, body:not([data-access]) .login-grid, body:not([data-access]) .login-footer { display: none; }
body:not([data-access]) .login-form-wrap { padding: 0; width: 360px; max-width: 100%; }
body:not([data-access]) .login-form { width: 100%; }
body:not([data-access]) .login-form h2 { font-size: 28px; font-weight: 600; text-align: center; margin-bottom: 12px; }
body:not([data-access]) .login-form>p { text-align: center; color: #888; }
body:not([data-access]) .login-form .field { font-size: 13px; color: #555; }
body:not([data-access]) .login-form .btn { border-radius: 24px; min-height: 48px; }
/* The compact product set lives in one top navigation. Documentation and
   account functions are grouped at its right edge. */
body:not([data-access]) .shell { margin-left: 0; padding-bottom: 0; }
body:not([data-access]) .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 22px;
  width: 100%;
  min-height: 70px;
  height: auto;
  padding: 0 28px;
  background: #fffffff2;
  backdrop-filter: blur(18px);
}
.topbar-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.top-brand { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: #202123; }
.top-brand:hover { color: #fff; background: #38383a; }
.top-brand .brand-monogram { font-size: 10px; font-weight: 700; letter-spacing: -.45px; line-height: 1; }
.account-menu { position: relative; flex: none; }
.account-menu>summary { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 5px 9px 5px 5px; border: 1px solid transparent; border-radius: 12px; list-style: none; cursor: pointer; user-select: none; }
.account-menu>summary::-webkit-details-marker { display: none; }
.account-menu>summary:hover, .account-menu[open]>summary { background: #f3f3f4; border-color: #dedee1; }
.account-menu .avatar { width: 34px; height: 34px; background: #e6e6e8; color: #444; }
.account-menu-name { display: grid; line-height: 1.25; min-width: 0; }
.account-menu-name strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.account-menu-name small { color: #888; font-size: 10px; }
.account-menu-caret { width: 0; height: 0; border: 4px solid transparent; border-top-color: #777; transform: translateY(2px); }
.account-menu[open] .account-menu-caret { transform: rotate(180deg) translateY(2px); }
.account-popover { position: absolute; top: calc(100% + 9px); right: 0; z-index: 60; width: 244px; padding: 8px; border: 1px solid #d8d8dc; border-radius: 14px; background: #fff; box-shadow: 0 18px 55px #0002; }
.account-popover-head { display: grid; gap: 2px; padding: 10px 11px 12px; border-bottom: 1px solid #e7e7e9; margin-bottom: 5px; }
.account-popover-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.account-popover-head small { color: #888; }
.account-menu-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 9px 11px; border-radius: 9px; color: #444; text-align: left; font-size: 12px; }
.account-menu-item:hover { color: #191919; background: #f2f2f3; }
.account-menu-item svg { width: 16px; height: 16px; color: #777; }
.account-menu-item.danger { color: #b42318; border-top: 1px solid #ececee; border-radius: 0 0 9px 9px; margin-top: 4px; }
.top-navigation { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
.top-navigation::-webkit-scrollbar { display: none; }
.top-nav-item { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 38px; padding: 8px 13px; border-radius: 10px; color: #66676a; font-size: 12px; white-space: nowrap; }
.top-nav-item:hover { color: #202123; background: #f3f3f4; }
.top-nav-item[aria-current=page] { color: #202123; background: #e9e9eb; box-shadow: inset 0 0 0 1px #d9d9dc; font-weight: 600; }
.top-nav-item svg { width: 15px; height: 15px; }
.top-docs { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 38px; padding: 8px 10px; border-radius: 10px; color: #5f6063; font-size: 12px; white-space: nowrap; }
.top-docs:hover { color: #202123; background: #f3f3f4; }
.top-docs svg { width: 15px; height: 15px; }
body:not([data-access]).ordinary-user .bottom-nav, body:not([data-access]).admin-user .bottom-nav { display: none !important; }
body:not([data-access]).ordinary-user #toast, body:not([data-access]).admin-user #toast { bottom: 25px; }
.library-periods { flex: 1 1 100%; display: grid; gap: 8px; }
.library-periods>span { color: #66676a; font-size: 12px; }
.library-periods>div { display: flex; flex-wrap: wrap; gap: 8px; }
.library-periods button { min-height: 36px; padding: 7px 14px; border: 1px solid #cdced2; border-radius: 18px; background: #fff; color: #5e5e62; font-size: 12px; }
.library-periods button:hover { background: #eeeeef; }
.library-periods button[aria-pressed=true] { color: #fff; background: #202123; border-color: #202123; }
.library-custom-date { flex: 1 1 100%; padding: 10px 12px; border: 1px solid #d8d8dc; border-radius: 9px; background: #f7f7f8; }
.library-custom-date summary { color: #616165; font-size: 12px; cursor: pointer; }
.library-custom-date label { margin-top: 10px; max-width: 260px; }
.ops-overview { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 22px 24px; border: 1px solid #d9d9dc; border-radius: 14px; background: #f7f7f8; }
.ops-overview.attention { border-color: #ebd0ca; background: #fff8f6; }
.ops-overview.working { border-color: #eadfbd; background: #fffbef; }
.ops-overview>div:first-child { display: grid; gap: 5px; min-width: 0; }
.ops-eyebrow { color: #77787b; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.ops-overview strong { color: #202123; font-size: 20px; font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ops-overview p { color: #6c6d70; font-size: 12px; }
.ops-stats { margin-bottom: 18px; }
.ops-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 18px; }
.ops-lifecycle { display: grid; gap: 0; padding-top: 8px; padding-bottom: 8px; }
.ops-lifecycle>div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 9px 0; border-bottom: 1px solid #ececef; }
.ops-lifecycle>div:last-child { border-bottom: 0; }
.ops-lifecycle>div>span { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ops-lifecycle>div>span small { color: #919195; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
.ops-lifecycle>div>strong { color: #29292b; font-size: 17px; font-variant-numeric: tabular-nums; }
.ops-guidance { display: grid; gap: 0; padding-top: 8px; padding-bottom: 8px; }
.ops-guide { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 11px; padding: 14px 0; border-bottom: 1px solid #ececef; }
.ops-guide:last-child { border-bottom: 0; }
.ops-guide>span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #68696c; background: #ededee; font-size: 11px; font-weight: 650; }
.ops-guide.urgent>span { color: #a63d30; background: #f8e5e1; }
.ops-guide strong { display: block; color: #303033; font-size: 12px; }
.ops-guide p { margin-top: 3px; color: #77787c; font-size: 11px; line-height: 1.65; }
@media(max-width:760px), (max-width:1100px) and (max-height:500px), (pointer:coarse) and (max-width:1100px) {
  body:not([data-access]) .shell { margin-left: 0; }
  body:not([data-access]) .main { padding: 16px 16px 36px; }
  body:not([data-access]) .admin-user .topbar, body:not([data-access]) .topbar { grid-template-columns: minmax(0,1fr) auto; gap: 7px 10px; padding: 9px 12px 0; }
  .topbar-identity { gap: 8px; }
  .account-menu-name { display: none; }
  .account-menu>summary { padding-right: 6px; }
  .top-navigation { grid-column: 1/-1; justify-content: flex-start; width: calc(100% + 24px); margin-left: -12px; padding: 0 12px 9px; }
  .top-nav-item { min-height: 40px; padding: 8px 12px; }
  .topbar-actions { grid-column: 2; grid-row: 1; gap: 3px; }
  .top-docs { padding: 8px; }
  .account-popover { position: fixed; top: 62px; right: 12px; width: min(270px,calc(100vw - 24px)); }
  .library-periods,.library-custom-date { grid-column: 1/-1; }
  .library-periods>div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .library-periods button { padding: 7px 8px; }
  .ops-overview { align-items: flex-start; flex-direction: column; padding: 18px; }
  .ops-overview .row { width: 100%; }
  .ops-overview .btn { flex: 1 1 auto; }
  .ops-grid { grid-template-columns: 1fr; }
}
