/* Fox colours: bark brown from the fox's dark legs and ears, rust and ember from its coat (ember is the logo),
   cream from its chest and tail tip, and pine green from the woods it lives in. */
:root {
  --night: #2b1f1a;      /* bark: the fox's dark socks and ear backs */
  --night-2: #3b2b23;
  --cream: #f4e6d4;      /* chest and tail tip */
  --kitsune: #e27012;    /* ember: the fox in the logo */
  --kitsune-deep: #b4480f; /* rust */
  --sumi: #2b211c;       /* text */
  --hai: #7a6a5f;        /* muted text */
  --ground: #f8f3ec;
  --surface: #fffdfa;
  --line: #e7dccf;
  --ok: #3d6b52;         /* pine */
  --bad: #a3302a; --warn: #a8661a;
  --display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", "Nunito Sans", system-ui, sans-serif;
  --text: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-family: var(--text); color: var(--sumi); background: var(--ground); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--kitsune-deep); text-underline-offset: 3px; }
a:hover { color: var(--kitsune); }
:focus-visible { outline: 3px solid var(--kitsune); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.015em; }
.muted { color: var(--hai); } .small { font-size: 13.5px; } .xs { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; } .grow { flex: 1; min-width: 0; } .wrap { flex-wrap: wrap; }
.boot { display: grid; place-items: center; min-height: 100vh; }
.boot img { width: 64px; opacity: .8; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
svg.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.tiny { width: 12px; height: 12px; }

/* ---------- sign-in */
.gate { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr); min-height: 100vh; }
.scene { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.scene svg.shrine { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.scene .sign, .scene .ver { z-index: 1; }
.scene .sign { position: absolute; left: 48px; top: 44px; display: flex; align-items: center; gap: 16px; }
.scene .sign img { width: 76px; height: 76px; }
.scene .sign b { font-family: var(--display); font-size: 27px; font-weight: 700; line-height: 1.2; display: block; }
.scene .sign span { color: #cdbba9; font-size: 13.5px; }
.scene .ver { position: absolute; left: 48px; bottom: 28px; font-size: 12px; color: #a08a79; }
.bi { animation: drift 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bi.b2 { animation-duration: 9s; animation-delay: -3s; } .bi.b3 { animation-duration: 6s; animation-delay: -1s; }
.bi.b4 { animation-duration: 10s; animation-delay: -5s; } .bi.b5 { animation-duration: 8s; animation-delay: -2s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); opacity: .9; } 35% { transform: translate(6px, -14px); opacity: .55; } 70% { transform: translate(-5px, -6px); opacity: 1; } }

.desk { display: grid; place-items: center; padding: 48px 28px;
  background-color: var(--ground); }
.slip { width: 100%; max-width: 400px; background: var(--surface); padding: 40px 36px 32px; border-radius: 6px;
  border-top: 5px solid var(--kitsune); box-shadow: 0 18px 50px rgba(43, 31, 26, .16); }
.slip h2 { font-size: 31px; }
.slip .sub { color: var(--hai); margin: 6px 0 28px; }
.sso { display: flex; align-items: center; gap: 14px; width: 100%; height: 52px; padding: 0 18px; border-radius: 4px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15.5px; color: #fff; text-decoration: none; transition: background .15s; }
.sso + .sso { margin-top: 12px; }
.sso .glyph { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.sso .glyph svg { width: 16px; height: 16px; }
.sso.roblox { background: var(--kitsune-deep); } .sso.roblox:hover { background: #933a0b; color: #fff; }
.sso.discord { background: var(--night); } .sso.discord:hover { background: #1d1511; color: #fff; }
.sso[aria-disabled=true] { background: #d9ccbf; cursor: not-allowed; }
.slip .note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--hai); }
.slip .note p { margin: 0 0 6px; }
.alert { border-radius: 4px; padding: 12px 14px; margin-bottom: 22px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; border-left: 4px solid; }
.alert.bad { background: #fdf0ee; color: #7d1d17; border-color: var(--bad); }
.alert.ok { background: #e9f1eb; color: #2c513d; border-color: var(--ok); }
.alert.info { background: #fff5ea; color: #6d3a0c; border-color: var(--kitsune); }
.pending { display: inline-flex; gap: 10px; align-items: center; }
.pending .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- signed in */
.top { background: var(--night); color: #fff; border-bottom: 3px solid var(--kitsune); }
.top .in { max-width: 1060px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 14px; }
.top .mark { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; text-decoration: none; }
.top .mark img { width: 38px; height: 38px; }
.me { display: flex; align-items: center; gap: 10px; }
.me .who { text-align: right; line-height: 1.3; } .me .who b { display: block; font-size: 14px; } .me .who span { font-size: 12px; color: #cdbba9; }
.av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--cream); color: var(--kitsune-deep); flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; font-family: var(--display); border: 2px solid rgba(255, 255, 255, .7); }
.av.lg { width: 84px; height: 84px; font-size: 32px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.page { max-width: 1060px; margin: 0 auto; padding: 36px 24px 72px; }
.welcome { display: flex; gap: 22px; align-items: center; margin-bottom: 34px; }
.welcome h1 { font-size: 34px; line-height: 1.2; }
.welcome p { margin: 4px 0 0; color: var(--hai); }
.cols { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.panel > h3, .side h3 { font-size: 18px; }
.panel > h3 { padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.side { display: grid; gap: 30px; }
.side section h3 { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 2px solid var(--sumi); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line); background: #fff; color: var(--sumi);
  font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--hai); color: var(--sumi); }
.btn.primary { background: var(--kitsune-deep); border-color: var(--kitsune-deep); color: #fff; } .btn.primary:hover { background: #933a0b; color: #fff; }
.btn.onnight { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; } .btn.onnight:hover { border-color: #fff; color: #fff; }
.btn.danger { color: var(--bad); } .btn.sm { height: 31px; padding: 0 11px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.verified { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; background: #f8e2cc; color: #8a3a0c; border-radius: 99px; font-size: 12px; font-weight: 700; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 3px; background: #f8e2cc; color: #8a3a0c; font-size: 12px; font-weight: 700; }
.tag.here { background: #e2ede5; color: #2c513d; }
.acct { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.acct:last-child { border-bottom: 0; }
.acct .tile { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.acct .tile.roblox { background: var(--kitsune-deep); } .acct .tile.discord { background: var(--night); }
.acct .tile.off { background: #ece2d6; color: var(--hai); }
.acct .meta { font-size: 13px; color: var(--hai); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.panel .list li { padding: 12px 22px; }
.list .when { font-size: 12.5px; color: var(--hai); }
.facts { margin: 6px 0 0; }
.facts dt { font-weight: 700; font-size: 14px; margin-top: 12px; }
.facts dd { margin: 2px 0 0; font-size: 13.5px; color: var(--hai); }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; }
#toast > div { background: var(--night); color: #fff; padding: 11px 16px; border-radius: 4px; border-left: 4px solid var(--kitsune); font-size: 14px; animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* ---------- setup */
.setup { max-width: 760px; margin: 0 auto; padding: 38px 24px 72px; }
.setup > h2 { font-size: 30px; }
.setup .intro { color: var(--hai); margin: 6px 0 26px; }
.setup .panel { margin-bottom: 22px; }
.setup .panel .bd { padding: 20px 22px; }
.setup .panel > .hd { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.setup .panel > .hd h3 { font-size: 19px; }
.steps { padding-left: 22px; margin: 0 0 6px; }
.steps > li { margin-bottom: 12px; padding-left: 4px; }
.steps > li::marker { font-weight: 700; color: var(--kitsune-deep); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 13.5px; }
.field input { height: 42px; border: 1px solid var(--line); border-radius: 4px; padding: 0 12px; font: inherit; background: #fff; color: var(--sumi); }
.field input:focus { outline: 3px solid #f8d2ae; border-color: var(--kitsune); }
.field .help { font-size: 13px; color: var(--hai); }
.copy { display: flex; gap: 8px; align-items: center; background: #f8f1e8; border: 1px dashed #d8c7b4; border-radius: 4px; padding: 8px 10px; margin-top: 6px; }
.copy code { flex: 1; overflow-x: auto; white-space: nowrap; font-size: 12.5px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.check input { accent-color: var(--kitsune-deep); width: 16px; height: 16px; }
.mt { margin-top: 20px; }

@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; }
  .scene { min-height: 300px; }
  .scene::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; pointer-events: none;
    background: linear-gradient(#21170f 0%, rgba(33, 23, 15, .8) 45%, rgba(33, 23, 15, 0) 100%); }
  .scene .sign { left: 24px; top: 24px; } .scene .sign img { width: 58px; height: 58px; } .scene .sign b { font-size: 22px; }
  .scene .ver { display: none; }
  .desk { padding: 0 16px 40px; background-image: none; }
  .slip { margin-top: -36px; position: relative; padding: 30px 22px 24px; }
  .cols { grid-template-columns: 1fr; }
  .me .who { display: none; }
  .welcome h1 { font-size: 26px; } .av.lg { width: 64px; height: 64px; }
  .acct { flex-wrap: wrap; } .acct .acts { width: 100%; display: flex; gap: 8px; padding-left: 60px; }
}
@media (prefers-reduced-motion: reduce) { .bi, .boot img { animation: none; } }

/* ---------- community */
.community { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: 13px; }
.tag.warn, .meta.warn { color: #8a3a0c; }
details.more { font-size: 13px; }
details.more summary { cursor: pointer; color: var(--kitsune-deep); font-weight: 700; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: " ▾"; }
details.more[open] summary::after { content: " ▴"; }
details.more[open] { flex-basis: 100%; }
ul.mini { list-style: none; margin: 8px 0 2px; padding: 0; border: 1px solid var(--line); border-radius: 4px; max-height: 240px; overflow: auto; }
ul.mini li { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--line); }
ul.mini li:last-child { border-bottom: 0; }
ul.mini li.bank { background: #fff5ea; font-weight: 700; }
ul.mini .rank { min-width: 32px; text-align: right; color: var(--hai); font-variant-numeric: tabular-nums; }
ul.mini img, ul.mini .gi { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
ul.mini .gi { background: var(--night); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--kitsune-deep); cursor: pointer; }
.linkish:hover { color: var(--kitsune); text-decoration: underline; }
.linkish:disabled { opacity: .5; }
.verify .vb { display: flex; gap: 14px; align-items: center; padding: 16px 22px; }
.verify .vb p { margin: 0; font-size: 14px; color: var(--hai); }
.vstate { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #ece2d6; color: var(--hai); flex-shrink: 0; }
.vstate.ok { background: #e2ede5; color: var(--ok); } .vstate.bad { background: #fdf0ee; color: var(--bad); }
.help-p { margin: 0 0 16px; color: var(--hai); font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
table.vars { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
table.vars td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.vars td:first-child { white-space: nowrap; color: var(--sumi); }
.check + .check { margin-top: 8px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* =================================================================== staff panel */
.staff { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--night); color: #f1e4d6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.rail .brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 18px; color: #fff; text-decoration: none; }
.rail .brand img { width: 40px; height: 40px; }
.rail .brand b { font-family: var(--display); font-size: 16px; line-height: 1.2; display: block; }
.rail .brand span { font-size: 12px; color: #cdbba9; }
.rail nav { display: grid; gap: 1px; padding: 6px 10px; overflow-y: auto; }
.rail nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 4px; color: #e2d2c1; text-decoration: none; font-size: 14px; font-weight: 600; }
.rail nav a:hover { background: var(--night-2); color: #fff; }
.rail nav a[aria-current=page] { background: #4a3328; color: #fff; box-shadow: inset 3px 0 0 var(--kitsune); }
.rail nav a .count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--kitsune-deep); color: #fff; font-size: 11.5px; text-align: center; line-height: 19px; }
.rail nav a .count.urgent { background: var(--bad); }
.rail nav .sep { height: 1px; background: #46342b; margin: 8px 10px; }
.rail .tail { margin-top: auto; position: relative; padding: 16px 18px 18px; }
.rail .tail svg.brush { position: absolute; right: -52px; bottom: -44px; width: 100px; height: 200px; pointer-events: none; opacity: .5; }
.rail .who { position: relative; display: flex; gap: 10px; align-items: center; }
.rail .who .av { border-color: #6b4c3c; }
.rail .who b { display: block; font-size: 13.5px; color: #fff; line-height: 1.3; }
.rail .who span { font-size: 12px; color: #cdbba9; }
.rail .who-acts { position: relative; display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.rail .btn.onnight { height: 29px; font-size: 12.5px; padding: 0 10px; }
.rail-toggle { display: none; }

.main { min-width: 0; }
.main .head { padding: 30px 36px 20px; display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: var(--surface); }
.main .head h1 { font-size: 28px; line-height: 1.15; }
.main .head p { margin: 4px 0 0; color: var(--hai); font-size: 14px; }
.main .body { padding: 26px 36px 72px; max-width: 1180px; }
.main .body > * + * { margin-top: 26px; }
h2.sec { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
h2.sec .grow { flex: 1; }

/* shift + print: the one bold thing on the desk */
.desk-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; background: var(--night); color: #fff; border-radius: 6px; overflow: hidden; position: relative; }
.desk-top::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 6px; background: var(--kitsune); }
.shift { padding: 24px 26px; display: grid; gap: 6px; }
.shift .lbl { color: #cdbba9; font-size: 13.5px; }
.shift .clock { font-family: var(--display); font-size: 46px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.shift .clock.off { color: #8f7a6b; }
.shift .sub { font-size: 13.5px; color: #e2d2c1; }
.shift .btn { margin-top: 8px; justify-self: start; }
.btn.big { height: 44px; padding: 0 20px; font-size: 15px; }
.btn.ember { background: var(--kitsune); border-color: var(--kitsune); color: #fff; } .btn.ember:hover { background: #c95f0c; color: #fff; }
.btn.cream { background: var(--cream); border-color: var(--cream); color: var(--night); } .btn.cream:hover { background: #fff; color: var(--night); }
.printbox { padding: 24px 26px; background: var(--night-2); display: grid; gap: 10px; align-content: start; }
.printbox label { font-weight: 700; font-size: 14px; }
.printbox .money-in { display: flex; align-items: center; background: #fff; border-radius: 4px; overflow: hidden; }
.printbox .money-in span { padding: 0 4px 0 14px; font-weight: 700; color: var(--hai); font-size: 18px; }
.printbox .money-in input { flex: 1; min-width: 0; border: 0; height: 46px; font: inherit; font-size: 20px; font-weight: 700; padding: 0 12px 0 2px; color: var(--sumi); font-variant-numeric: tabular-nums; }
.printbox .money-in input:focus { outline: none; }
.printbox .money-in:focus-within { outline: 3px solid var(--kitsune); }
.printbox .hint { font-size: 13px; color: #e2d2c1; min-height: 20px; }

.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.ledger > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.ledger > div:last-child { border-right: 0; }
.ledger dt { font-size: 13px; color: var(--hai); }
.ledger dd { margin: 2px 0 0; font-family: var(--display); font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ledger dd small { font-family: var(--text); font-size: 12.5px; font-weight: 600; color: var(--hai); letter-spacing: 0; }

.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.box > .hd { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.box > .hd h3 { font-size: 15.5px; flex: 1; }
.box > .bd { padding: 16px 18px; }
.box .empty { padding: 22px 18px; color: var(--hai); font-size: 14px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; gap: 12px; align-items: baseline; }
.feed li:last-child { border-bottom: 0; }
.feed .k { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transform: translateY(-1px); }
.feed .k.print, .feed .k.hired { background: var(--kitsune); } .feed .k.clock_in, .feed .k.clock_out { background: var(--night-2); }
.feed .k.infraction, .feed .k.fired, .feed .k.flag { background: var(--bad); } .feed .k.rank, .feed .k.raise, .feed .k.extra_commission { background: var(--ok); }
.feed .t { flex: 1; min-width: 0; } .feed .w { font-size: 12.5px; color: var(--hai); white-space: nowrap; }
.pay { margin: 0; }
.pay > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.pay > div:last-child { border-bottom: 0; font-weight: 700; }
.pay dd { margin: 0; font-variant-numeric: tabular-nums; }

/* tables */
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--hai); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbf6ef; white-space: nowrap; }
table.t td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #fdf5ec; }
table.t input, table.t select { height: 32px; border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; font: inherit; font-size: 13.5px; width: 92px; background: #fff; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .av { width: 30px; height: 30px; font-size: 13px; border: 0; }
.person b { display: block; font-size: 14px; } .person span { font-size: 12px; color: var(--hai); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cdbfb1; margin-right: 6px; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px #d7e6dc; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; background: #f1e7dc; color: #5c4a3e; white-space: nowrap; }
.chip.rust { background: #f8e2cc; color: #8a3a0c; } .chip.pine { background: #e2ede5; color: #2c513d; } .chip.berry { background: #f8e3e0; color: #7d1f19; }
.chip.amber { background: #f7ead3; color: #7a4a0f; }

/* filters / toolbars */
.bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bar select, .bar input, .fld select, .fld input, .fld textarea { height: 38px; border: 1px solid var(--line); border-radius: 4px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; color: var(--sumi); }
.fld textarea { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: 3px solid #f6d3b2; border-color: var(--kitsune); }

/* branch map */
.region { margin-bottom: 26px; }
.region > h3 { font-size: 19px; display: flex; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 2px solid var(--sumi); margin-bottom: 14px; }
.region > h3 .grow { flex: 1; }
.district { margin: 0 0 18px; }
.district > h4 { margin: 0 0 8px; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.district > h4 .who { font-weight: 400; color: var(--hai); font-size: 13.5px; }
.branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.branch { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--kitsune-deep); border-radius: 4px; padding: 14px 16px; display: grid; gap: 8px; }
.branch.short { border-left-color: var(--bad); }
.branch b.nm { font-size: 15.5px; }
.branch .ln { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--hai); }
.branch .ln span:last-child { color: var(--sumi); font-weight: 600; font-variant-numeric: tabular-nums; }
.seats { display: flex; gap: 3px; }
.seats i { flex: 1; height: 6px; border-radius: 2px; background: #eadfd2; }
.seats i.f { background: var(--kitsune-deep); }

progress.q { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: #eadfd2; overflow: hidden; display: block; }
progress.q::-webkit-progress-bar { background: #eadfd2; border-radius: 99px; }
progress.q::-webkit-progress-value { background: var(--kitsune-deep); border-radius: 99px; }
progress.q::-moz-progress-bar { background: var(--kitsune-deep); border-radius: 99px; }
progress.q.behind::-webkit-progress-value { background: var(--bad); } progress.q.behind::-moz-progress-bar { background: var(--bad); }
progress.q.met::-webkit-progress-value { background: var(--ok); } progress.q.met::-moz-progress-bar { background: var(--ok); }
.quota { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.quota:last-child { border-bottom: 0; }
.quota .row span:last-child { font-variant-numeric: tabular-nums; font-size: 13.5px; }

/* flags */
.flag { display: flex; gap: 14px; align-items: flex-start; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.flag:last-child { border-bottom: 0; }
.flag .sev { width: 4px; align-self: stretch; border-radius: 2px; background: #cdbfb1; flex-shrink: 0; }
.flag.urgent .sev { background: var(--bad); } .flag.warning .sev { background: var(--warn); } .flag.info .sev { background: #b9a898; }
.flag .t { flex: 1; min-width: 0; font-size: 14px; } .flag .t small { display: block; color: var(--hai); font-size: 12.5px; margin-top: 2px; }

/* person page */
.profile { display: flex; gap: 18px; align-items: center; }
.profile .av.lg { border-color: var(--surface); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.facts2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; }
.facts2 > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts2 dt { font-size: 12.5px; color: var(--hai); } .facts2 dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.back { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 700; text-decoration: none; margin-bottom: 10px; }

/* dialogs */
dialog.form { border: 0; padding: 0; border-radius: 8px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(43, 31, 26, .35); background: var(--surface); color: var(--sumi); }
dialog.form::backdrop { background: rgba(43, 31, 26, .55); }
dialog.form form { display: grid; }
dialog.form .dh { padding: 20px 22px 6px; border-top: 5px solid var(--kitsune); border-radius: 8px 8px 0 0; }
dialog.form .dh h3 { font-size: 20px; } dialog.form .dh p { margin: 4px 0 0; color: var(--hai); font-size: 14px; }
dialog.form .db { padding: 14px 22px 4px; display: grid; gap: 14px; max-height: 62vh; overflow-y: auto; }
dialog.form .df { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }
dialog.form .err { color: var(--bad); font-size: 13.5px; min-height: 0; }
.fld { display: grid; gap: 5px; }
.fld > span { font-weight: 700; font-size: 13.5px; }
.fld small { color: var(--hai); font-size: 12.5px; }
.fld.check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.fld.check input { width: 16px; height: 16px; accent-color: var(--kitsune-deep); }

/* panel gate */
.lockscreen { min-height: 100vh; display: grid; place-items: center; background: var(--night); padding: 24px; position: relative; overflow: hidden; }
.lockscreen svg.brush { position: absolute; right: 4vw; bottom: -60px; width: 300px; height: 560px; opacity: .7; pointer-events: none; }
.lockscreen .slip { position: relative; }
.lockscreen .slip img.logo { width: 54px; height: 54px; display: block; margin-bottom: 14px; }
.lockscreen .fld input { height: 44px; font-size: 16px; }
.lockscreen .fld input.idn { letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.lockscreen form { display: grid; gap: 14px; }
.lockscreen .btn.primary { height: 46px; justify-content: center; font-size: 15px; }

.nowrap { white-space: nowrap; }
.right { margin-left: auto; }
.mb0 { margin-bottom: 0; }

@media (max-width: 1000px) {
  .two, .desk-top { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .staff { grid-template-columns: 1fr; }
  .rail { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .rail.open { transform: none; box-shadow: 0 0 0 100vmax rgba(43, 31, 26, .5); }
  .rail-toggle { display: inline-flex; }
  .main .head { padding: 18px 18px 14px; } .main .head h1 { font-size: 23px; }
  .main .body { padding: 18px 16px 60px; }
  .shift .clock { font-size: 38px; }
  .ledger > div { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { .rail { transition: none; } }
.branch .warn-t { color: var(--bad); font-weight: 600; }
.linkish.small { font-size: 13px; }
.region > h3 .small { font-family: var(--text); font-weight: 600; }
