:root {
  --paper:#f6f5ef;
  --panel:#fffefa;
  --ink:#20382e;
  --forest:#204738;
  --green:#2e5b45;
  --muted:#596960;
  --line:#d8ded3;
  --mist:#e6eddf;
  --lime:#e7ecae;
  --red:#963f31;
  --s:clamp(20px,3.8vw,64px);
  --radius:14px;
  --sans:Rubik,"Segoe UI",Arial,"Leelawadee UI",sans-serif;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  font-size:16px;
  accent-color:var(--green);
  caret-color:var(--forest);
  scrollbar-color:#a8b5a6 var(--paper);
}

* {
  box-sizing:border-box
}

.picker-field {position:relative;min-width:0}
.onboarding-task {display:flex;align-items:center;gap:12px;padding:14px 18px;margin-block:16px;background:var(--mist);border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);text-decoration:none}
.onboarding-task div {flex:1}
.onboarding-task small,.paper-step small {display:block;color:var(--muted)}
.paper-step {padding:14px 0;line-height:1.5}
.paper-step + .paper-step {border-top:1px solid var(--line)}
.weekday-fields {border:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.weekday-fields label {padding:10px 8px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.weekday-fields legend {margin-bottom:8px}
.picker-field .field {display:block}
.picker-source {position:absolute!important;opacity:0!important;pointer-events:none;width:1px!important;height:1px!important;min-height:0!important;padding:0!important}
.date-trigger {width:100%;min-height:46px;display:flex;align-items:center;gap:.6em;border:1px solid var(--line);border-radius:9px;padding:8px 12px;background:var(--panel);color:var(--ink);text-align:start;font:inherit;cursor:pointer}
.date-trigger span {flex:1}
.date-trigger bdi {font-variant-numeric:tabular-nums;font-weight:600}
.calendar-sheet {margin:auto;width:min(380px,96vw);max-height:92dvh;overflow:auto;padding:22px;border-radius:20px;border:1px solid var(--line);background:var(--panel);color:var(--ink);box-shadow:0 12px 70px #172b2440}
.calendar-sheet::backdrop {background:#14281f70}
.calendar-sheet header,.calendar-nav,.calendar-tabs,.calendar-quick,.clock-inputs {display:flex;align-items:center;gap:8px}
.calendar-sheet header,.calendar-nav {justify-content:space-between}
.calendar-sheet h2 {margin:0;font-size:1.15rem}
.calendar-sheet button {cursor:pointer;color:var(--ink);font:inherit}
.calendar-sheet header button,.calendar-nav button,.calendar-grid button,.calendar-quick button,.calendar-tabs button {min-height:44px;border:0;border-radius:9px;background:transparent}
.calendar-sheet header button,.calendar-nav button {width:44px;display:grid;place-items:center}
.calendar-nav {margin-block:8px}
.calendar-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:1px}
.calendar-grid span {color:var(--muted);font-size:.8rem;padding:6px 0}
.calendar-grid.months {grid-template-columns:repeat(3,minmax(0,1fr))}
.calendar-grid button[aria-current=date] {box-shadow:inset 0 0 0 1px var(--green)}
.calendar-grid button[aria-pressed=true],.calendar-sheet button.picker-apply {background:var(--forest);color:#fff}
.calendar-quick {border-top:1px solid var(--line);margin-top:12px;padding-top:10px;flex-wrap:wrap}
.calendar-quick button,.calendar-tabs button {padding:0 12px;background:var(--mist)}
.calendar-tabs {margin-block:12px}
.calendar-tabs button {flex:1;display:flex;align-items:center;justify-content:center;gap:7px}
.calendar-tabs [aria-pressed=true],.clock-quick [aria-pressed=true] {box-shadow:inset 0 0 0 2px var(--forest)}
.clock-inputs {justify-content:center;gap:14px;padding:18px 0}
.clock-inputs label {display:grid;text-align:center;gap:6px;color:var(--muted)}
.clock-inputs select {font:600 1.8rem var(--sans);padding:8px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--paper);min-height:52px}
.clock-quick {justify-content:center}
.picker-apply {width:100%;margin-top:16px}
@media(max-width:560px) {
  .calendar-sheet {margin:auto auto 0;width:100%;max-width:none;max-height:94dvh;border-radius:22px 22px 0 0;padding:15px 16px max(16px,env(safe-area-inset-bottom))}
}
body {
  margin:0;
  min-height:100svh;
  font-variant-numeric:tabular-nums
}

button,input,select,textarea {
  font:inherit;
  color:inherit
}

button,a,input,select,textarea {
  touch-action:manipulation
}

button,a {
  -webkit-tap-highlight-color:transparent
}

button {
  cursor:pointer
}

button[disabled] {
  cursor:not-allowed
}

a {
  color:inherit;
  text-underline-offset:.25em
}

button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #5480a8;
  outline-offset:3px
}

::selection {
  background:var(--lime);
  color:var(--ink)
}

[hidden] {
  display:none!important
}

.icon {
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none;
  vertical-align:middle
}

.icon use {
  pointer-events:none
}

h1,h2,h3,p {
  margin:0
}

h1,h2,h3 {
  text-wrap:balance
}

button svg,a svg {
  flex:none
}

.skip {
  position:fixed;
  inset-inline-start:18px;
  top:-90px;
  z-index:100;
  background:var(--forest);
  color:white;
  padding:14px 24px
}

.skip:focus {
  top:12px
}

.public-top,.app-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:17px var(--s);
  border-bottom:1px solid var(--line);
  background:var(--paper)
}

.public-top {
  max-width:1600px;
  margin:auto
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:11px;
  white-space:nowrap
}

.brand img {
  width:44px;
  height:44px
}

.brand strong,.brand small {
  display:block
}

.brand strong {
  font-size:1.1rem;
  line-height:1.25;
  letter-spacing:-.035em
}

.brand small {
  font-size:.78rem;
  color:var(--muted);
  margin-top:2px
}

.language {
  display:inline-flex;
  gap:7px;
  align-items:center;
  color:var(--forest)
}

.language select {
  background:transparent;
  border:0;
  font-weight:600;
  font-size:.9rem;
  padding:9px 3px
}

.entry {
  display:grid;
  grid-template-columns:minmax(340px,.85fr) minmax(0,1.15fr);
  max-width:1600px;
  min-height:calc(100svh - 80px);
  margin:auto;
  padding:clamp(18px,3vw,43px) var(--s) var(--s);
  gap:clamp(30px,6vw,100px)
}

.entry-panel {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:35px 0
}

.entry-content {
  width:100%;
  max-width:430px
}

.portal-switch,.view-switch {
  display:inline-flex;
  flex-wrap:wrap;
  gap:3px;
  background:#e7eadf;
  border:1px solid var(--line);
  padding:4px;
  border-radius:9px
}

.portal-switch {
  display:flex
}

.portal-switch button,.view-switch button {
  border:0;
  background:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:6px 10px;
  font-size:.87rem;
  font-weight:600;
  border-radius:6px;
  color:#4f6153
}

.portal-switch button {
  flex:1
}

.portal-switch .selected,.view-switch button[aria-pressed=true] {
  color:var(--forest);
  background:var(--panel);
  box-shadow:0 1px 3px #152d1b24
}

.portal-switch button:hover,.view-switch button:hover {
  color:var(--ink)
}

.entry-title {
  margin:clamp(28px,5vh,58px) 0 0
}

.entry-title h1 {
  font-size:clamp(2.3rem,4vw,4.25rem);
  line-height:1.08;
  letter-spacing:-.04em;
  font-weight:700
}

.form-hint,.page-heading p,.form-card p {
  color:var(--muted);
  line-height:1.6
}

.form-hint {
  margin:10px 0 27px
}

.auth-form .field {
  margin:0 0 15px
}

.field {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:7px;
  min-width:0
}

.field>span {
  font-weight:650;
  font-size:.89rem;
  line-height:1.35
}

.field input,.field select,.field textarea {
  border:1px solid #aebcac;
  border-radius:8px;
  background:var(--panel);
  min-width:0;
  width:100%;
  min-height:45px;
  padding:10px 12px
}

.field input:focus,.field select:focus {
  border-color:var(--green)
}

.field input::placeholder {
  color:#69796c
}

.field input[type=file] {
  font-size:.86rem
}

.auth-form .field input {
  min-height:52px
}

.btn,.square {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid transparent;
  background:transparent;
  text-decoration:none;
  font-weight:650;
  border-radius:8px;
  line-height:1.25;
  transition:background-color .15s,color .15s
}

.btn {
  min-height:43px;
  padding:10px 17px
}

.btn.primary {
  background:var(--forest);
  color:white
}

.btn.primary:hover {
  background:#143427
}

.btn.secondary,.square {
  background:var(--panel);
  border-color:#b8c5b6;
  color:var(--forest)
}

.btn.secondary:hover,.square:hover {
  background:#eff2e9
}

.btn.danger {
  background:#f8e8e2;
  color:#823324
}

.btn:disabled,.square:disabled {
  opacity:.55
}

.square {
  width:42px;
  height:42px;
  padding:8px
}

.auth-form>.btn {
  width:100%;
  height:51px;
  margin-top:5px;
  justify-content:space-between;
  flex-direction:row-reverse;
  padding-inline:18px
}

.registration {
  margin-top:23px;
  color:var(--muted);
  font-size:.92rem
}

.registration button,.text-link {
  color:var(--forest);
  text-decoration:underline;
  text-underline-offset:4px;
  background:none;
  border:0;
  padding:3px;
  font-weight:650
}

.text-link {
  display:inline-flex;
  align-items:center;
  gap:5px
}

.inline-error,.problem,.dev-code {
  padding:12px 14px;
  border-radius:8px
}

.inline-error,.problem {
  color:#823324;
  background:#fbebe6
}

.inline-error,.dev-code {
  margin-top:12px
}

.dev-code {
  display:block;
  background:#e7eddf
}

.orchard {
  position:relative;
  min-height:480px;
  overflow:hidden;
  background:#254237;
  border-radius:22px;
  color:white;
  isolation:isolate
}

.orchard>img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
  z-index:-2
}

.orchard:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(13,33,22,.02) 40%,rgba(12,30,18,.75) 100%);
  z-index:-1
}

.orchard-top {
  position:absolute;
  top:27px;
  inset-inline-end:28px;
  color:#fffbea
}

.orchard-time {
  position:absolute;
  bottom:clamp(26px,4vw,58px);
  inset-inline-start:clamp(26px,4vw,58px);
  text-shadow:0 2px 18px #18241944
}

.live-time {
  display:block;
  line-height:1.05;
  font-size:clamp(3.1rem,6vw,6.8rem);
  letter-spacing:-.04em;
  font-weight:450;
  white-space:nowrap;
  text-align:start
}

[dir=rtl] .orchard-time .live-time,[dir=rtl] .clock-face .live-time {
  text-align:right
}

.orchard-time p {
  font-size:clamp(1rem,1.6vw,1.5rem);
  margin:7px 0 15px
}

.orchard-time small,.clock-face small {
  display:inline-flex;
  align-items:center;
  gap:6px
}

.app-top {
  height:74px;
  grid-column:1/-1;
  gap:14px;
  position:sticky;
  top:0;
  z-index:12;
  padding-inline:clamp(18px,3vw,42px)
}

.top-tools,.profile-tag,.actions,.form-buttons {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap
}

.profile-tag {
  font-size:.9rem;
  max-width:250px;
  overflow-wrap:anywhere
}

.initial,.circle-icon {
  display:inline-grid;
  place-items:center;
  border-radius:50%;
  color:var(--forest);
  background:var(--mist);
  flex:none
}

.initial {
  width:33px;
  height:33px;
  font-weight:700
}

.app-shell {
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  grid-template-rows:74px 1fr;
  min-height:100svh
}

.sidebar {
  padding:25px 13px;
  display:flex;
  flex-direction:column;
  align-self:start;
  position:sticky;
  top:74px;
  max-height:calc(100svh - 74px);
  height:calc(100svh - 74px);
  overflow:auto;
  border-inline-end:1px solid var(--line)
}

.sidebar nav {
  display:grid;
  gap:3px
}

.nav-link,.logout {
  display:flex;
  align-items:center;
  gap:11px;
  text-align:start;
  min-height:45px;
  padding:10px 13px;
  border-radius:8px;
  text-decoration:none;
  color:var(--muted);
  font-size:.93rem;
  font-weight:550
}

.nav-link.active {
  background:var(--forest);
  color:#fff
}

.nav-link:hover:not(.active),.logout:hover {
  background:var(--mist);
  color:var(--forest)
}

.logout {
  background:none;
  border:0;
  margin-top:auto;
  width:100%
}

.mobile-menu,.scrim {
  display:none
}

.workspace {
  min-width:0;
  width:min(100%,1550px);
  margin:0 auto;
  padding:clamp(24px,3.5vw,54px) var(--s) 64px
}

.employee-work {
  max-width:940px
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:15px;
  margin-bottom:27px
}

.page-heading h1 {
  font-size:clamp(1.9rem,3.5vw,3.2rem);
  letter-spacing:-.035em;
  line-height:1.14
}

.page-heading p {
  margin-top:6px
}

.panel {
  min-width:0;
  margin:0 0 24px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden
}

.panel-title {
  display:flex;
  min-height:60px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:15px 20px;
  border-bottom:1px solid var(--line)
}

.panel-title h2,.section-title {
  font-size:1.18rem;
  line-height:1.3;
  letter-spacing:-.023em
}

.panel-title a {
  font-size:.85rem
}

.table-scroll {
  max-width:100%;
  overflow:auto
}

table {
  border-collapse:collapse;
  width:100%;
  text-align:start;
  white-space:nowrap;
  font-size:.9rem
}

th,td {
  text-align:start;
  padding:12px 16px;
  border-bottom:1px solid #e7e9e2
}

th {
  font-size:.78rem;
  color:var(--muted);
  background:#f4f5ef;
  font-weight:650
}

tbody tr:last-child td {
  border:0
}

tbody tr:hover {
  background:#f7f8f1
}

table .btn {
  min-height:32px;
  padding:6px 10px;
  font-size:.8rem
}

.empty,.problem,.loading {
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  justify-content:center;
  gap:10px;
  padding:34px 16px;
  color:var(--muted)
}

.empty strong {
  color:var(--ink);
  font-size:1rem
}

.empty p {
  max-width:45ch;
  font-size:.93rem;
  line-height:1.5
}

.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 8px;
  border-radius:6px;
  color:#644f2f;
  background:#f4ead1;
  white-space:nowrap;
  font-size:.77rem;
  font-weight:650
}

.badge.good {
  background:#e0eddb;
  color:#285438
}

.badge.bad {
  background:#fae4de;
  color:#843c2f
}

.clock-face {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--panel);
  padding:clamp(20px,3.7vw,40px)
}

.clock-top,.last-record,.loc-row,.spread {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px
}

.clock-top>span:first-child,.last-record>div {
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted);
  font-weight:600
}

.clock-face .live-time {
  margin:18px 0 12px;
  color:var(--forest)
}

.clock-face p,.clock-face small,.loc-row small,.muted {
  color:var(--muted)
}

.clock-face small {
  font-size:.82rem
}

.punches {
  display:flex;
  gap:14px;
  margin:28px 0 15px
}

.punch {
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:94px;
  border-radius:12px;
  border:1px solid transparent;
  font-size:clamp(1.05rem,2.2vw,1.5rem)
}

.punch.in {
  background:#285b42;
  color:white
}

.punch.out {
  background:#98432f;
  color:white
}

.punch.in:disabled {
  background:#e4ece0;
  border-color:#c4d3c1;
  color:#52694f
}

.punch.out:disabled {
  background:#f4e7e1;
  border-color:#dbc7bb;
  color:#805c50
}

.last-record,.loc-row {
  padding:17px 19px
}

.last-record {
  border-block:1px solid var(--line);
  margin:22px 0
}

.last-record small {
  font-weight:400;
  color:var(--muted)
}

.shortcuts {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}

.shortcut {
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:10px;
  color:var(--forest);
  background:var(--panel);
  text-decoration:none
}

.shortcut svg:last-child {
  margin-inline-start:auto
}

.shortcut:hover {
  background:var(--mist)
}

.loc-row {
  border-bottom:1px solid var(--line);
  justify-content:flex-start;
  flex-wrap:wrap
}

.loc-row .text-link,.loc-row>.muted {
  margin-inline-start:auto
}

.loc-row small {
  display:block;
  font-size:.78rem;
  margin-top:3px
}

.circle-icon {
  width:37px;
  height:37px
}

.disclosures {
  display:grid;
  gap:10px;
  margin-bottom:22px
}

details {
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:10px
}

summary {
  list-style:none;
  display:flex;
  gap:12px;
  align-items:center;
  cursor:pointer;
  font-weight:650;
  padding:15px 18px
}

summary::-webkit-details-marker {
  display:none
}

summary .icon:last-child {
  margin-inline-start:auto
}

details[open]>summary .icon:last-child {
  transform:rotate(180deg)
}

.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  padding:20px
}

.form-grid h3,.form-buttons,.full-width {
  grid-column:1/-1
}

.filter-bar {
  display:flex;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 20px
}

.filter-bar .field {
  flex:1;
  min-width:125px;
  max-width:230px
}

.view-switch {
  margin-bottom:15px
}

.form-card {
  display:grid;
  justify-items:start;
  gap:16px;
  padding:22px
}

.facts {
  margin:0;
  padding:8px 20px
}

.facts div {
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
  border-bottom:1px solid var(--line)
}

.facts div:last-child {
  border:0
}

.facts dt {
  color:var(--muted)
}

.facts dd {
  margin:0;
  font-weight:650
}

.stats {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  margin-bottom:24px;
  background:var(--forest);
  color:#fff;
  border-radius:var(--radius);
  padding:17px 9px
}

.stat {
  display:grid;
  gap:6px;
  padding:8px 16px;
  border-inline-end:1px solid #58735e;
  text-decoration:none
}

.stat:last-child {
  border:0
}

.stat strong {
  font-size:2rem;
  line-height:1;
  letter-spacing:-.025em
}

.stat small {
  color:#e4ecd9;
  font-size:.87rem
}

.notice,.import-preview {
  padding:14px 18px;
  line-height:1.6;
  background:#edf0df;
  border-radius:9px;
  margin-bottom:16px;
  color:var(--forest)
}

.notice a {
  font-weight:650
}

.person {
  display:flex;
  gap:9px;
  align-items:center;
  font-weight:650
}

.operation-row {
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px 20px;
  border-bottom:1px solid var(--line);
  overflow-wrap:anywhere
}

.operation-row:last-child {
  border:0
}

.operation-row>div:first-of-type {
  flex:1;
  min-width:0
}

.operation-row small {
  display:block;
  color:var(--muted);
  line-height:1.55
}

.operation-row .actions {
  gap:6px
}

.operation-row .btn {
  min-height:36px;
  padding:6px 10px;
  font-size:.85rem
}

.editor {
  margin-bottom:20px
}

.sheet {
  display:grid;
  gap:16px
}

.check-field {
  display:flex;
  align-items:center;
  gap:8px
}

.preview-json {
  direction:ltr;
  text-align:left;
  unicode-bidi:plaintext;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:320px;
  overflow:auto;
  background:#f3f4ed;
  padding:14px;
  border-radius:8px;
  font-size:.83rem
}

#toast {
  position:fixed;
  z-index:40;
  inset-inline-start:50%;
  bottom:24px;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100vw - 32px);
  padding:12px 20px;
  border-radius:9px;
  background:#193e2f;
  color:#fff;
  box-shadow:0 5px 22px #122c1d33;
  opacity:0;
  pointer-events:none
}

[dir=rtl] #toast {
  transform:translateX(50%)
}

#toast.visible {
  opacity:1
}

#toast.error {
  background:#86392b
}

@media(max-width:850px) {
  .app-shell {
    grid-template-columns:180px minmax(0,1fr)
  }
  .workspace {
    padding-inline:20px
  }
  .entry {
    gap:22px;
    grid-template-columns:minmax(300px,1fr) minmax(0,.92fr)
  }
  .profile-tag>span:last-child {
    display:none
  }
  .sidebar {
    padding-inline:8px
  }
  .nav-link {
    padding-inline:10px;
    font-size:.88rem
  }
}

@media(max-width:680px) {
  .public-top,.app-top {
    padding:13px 18px
  }
  .brand img {
    width:37px;
    height:37px
  }
  .brand strong {
    font-size:1rem
  }
  .entry {
    padding:14px 16px 32px;
    display:flex;
    flex-direction:column;
    min-height:0;
    gap:19px
  }
  .entry-panel {
    padding:6px 3px;
    order:2
  }
  .entry-content {
    max-width:100%
  }
  .orchard {
    min-height:140px;
    border-radius:12px;
    order:1
  }
  .orchard-time {
    bottom:17px;
    inset-inline-start:19px
  }
  .orchard-time .live-time {
    font-size:2.45rem
  }
  .orchard-time p {
    font-size:.88rem;
    margin:3px 0 0
  }
  .orchard-time small {
    display:none
  }
  .orchard-top {
    inset-inline-end:17px;
    top:15px
  }
  .entry-title {
    margin:23px 0 0
  }
  .entry-title h1 {
    font-size:2.15rem
  }
  .form-hint {
    margin-bottom:18px
  }
  .app-shell {
    display:block
  }
  .app-top {
    height:65px;
    gap:9px
  }
  .app-top .brand {
    margin-inline-end:auto
  }
  .mobile-menu {
    display:inline-flex
  }
  .top-tools,.profile-tag {
    gap:6px
  }
  .top-tools .initial {
    display:none
  }
  .sidebar {
    display:none;
    position:fixed;
    top:65px;
    bottom:0;
    inset-inline-start:0;
    width:min(280px,82vw);
    height:calc(100dvh - 65px);
    max-height:none;
    background:var(--panel);
    z-index:15;
    padding:14px
  }
  .sidebar.open {
    display:flex
  }
  .scrim {
    display:block;
    position:fixed;
    inset:65px 0 0;
    border:0;
    background:#1c2c2366;
    z-index:14
  }
  .workspace {
    padding:24px 15px 40px
  }
  .page-heading {
    align-items:start;
    flex-direction:column;
    margin-bottom:20px
  }
  .page-heading h1 {
    font-size:2rem
  }
  .clock-face {
    padding:18px
  }
  .clock-face .live-time {
    font-size:3.6rem
  }
  .punches {
    gap:9px;
    margin:22px 0 12px
  }
  .punch {
    min-height:90px;
    flex-direction:column;
    gap:8px
  }
  .shortcuts {
    gap:8px
  }
  .shortcut {
    padding:14px 9px;
    gap:6px;
    font-size:.88rem
  }
  .shortcut>.icon:first-child {
    width:19px
  }
  .last-record {
    padding-inline:0;
    font-size:.91rem
  }
  .panel-title {
    padding:13px 15px;
    min-height:50px
  }
  .stats {
    grid-template-columns:repeat(2,1fr);
    gap:10px 0
  }
  .stat:nth-child(2n) {
    border:0
  }
  .filter-bar .field {
    min-width:42%;
    max-width:none
  }
  .form-grid {
    padding:15px;
    gap:12px
  }
  .operation-row {
    flex-wrap:wrap;
    padding:13px
  }
  .table-scroll {
    border-radius:0
  }
  .actions {
    gap:6px
  }
  .btn {
    font-size:.93rem
  }
  .view-switch button {
    min-height:36px
  }
  .loc-row {
    padding-inline:13px
  }
}

@media(max-width:380px) {
  .form-grid {
    grid-template-columns:1fr
  }
  .portal-switch button {
    gap:4px;
    padding-inline:4px
  }
  .profile-tag {
    display:none
  }
  .language {
    gap:2px
  }
  .shortcut svg:last-child {
    display:none
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important
  }
}

.drawer-user {
  display:none
}

@media(max-width:680px) {
  .drawer-user {
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 12px 16px;
    margin-bottom:8px;
    border-bottom:1px solid var(--line)
  }
}

.edit-section {
  padding:0 15px 15px
}

.month-controls {
  margin-top:18px
}

.google-entry {
  margin-block:20px 12px;
  min-height:44px;
  max-width:100%;
  color:var(--muted);
}
.google-unavailable,.access-note {color:var(--muted)}
.other-login {margin-block:22px}
.department-periods {display:flex; flex-wrap:wrap; max-width:100%}
.department-total {display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 16px; margin:0 0 18px}
.department-total bdi {font-size:clamp(2.4rem,6vw,4.25rem); line-height:1.05; font-weight:650; letter-spacing:-.04em}
.department-summary {padding:0; margin:0; list-style:none}
.department-summary li {display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 16px; border-top:1px solid var(--line); padding:16px 0}
.department-summary li span,.department-summary small,.department-total small {display:block; color:var(--muted); font-size:.875rem}
.department-time {text-align:end; font-variant-numeric:tabular-nums}
.department-time bdi {font-size:1.375rem; font-weight:600}
.department-summary progress {grid-column:1 / -1; width:100%; height:6px; border:none; border-radius:5px; overflow:hidden; appearance:none; background:var(--mist); color:var(--green)}
.department-summary progress::-webkit-progress-bar {background:var(--mist)}
.department-summary progress::-webkit-progress-value {background:var(--green)}
.department-summary progress::-moz-progress-bar {background:var(--green)}
.other-login summary {cursor:pointer;color:var(--forest);font-weight:550;padding-block:10px}
.workspace-picker {display:flex;align-items:center;gap:8px;font-size:.86rem}
.workspace-picker span {color:var(--muted)}
.workspace-picker select,.grant-assign select {
  border:1px solid var(--line);
  color:var(--ink);
  background:var(--panel);
  border-radius:8px;
  padding:7px 10px;
  min-height:42px;
  max-width:100%;
}
.access-tabs {max-width:100%;flex-wrap:wrap}
.access-editor,.grant-base {padding:clamp(16px,3vw,28px)}
.access-editor {display:grid;gap:18px}
.access-editor .field {max-width:34rem}
.access-editor fieldset {margin:0;min-width:0;border:0;padding:0}
.access-editor legend {padding:0;margin-bottom:10px;font-weight:650}
.grant-list,.grant-base {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:0 22px}
.grant-list label {display:flex;gap:10px;align-items:center;min-height:44px;cursor:pointer}
.grant-list input {flex:none;width:18px;height:18px}
.grant-base {margin:0;list-style:none}
.grant-base li {padding-block:9px;border-bottom:1px solid var(--line)}
.grant-row {
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  padding:14px clamp(16px,3vw,28px);
}
.grant-row + .grant-row {border-top:1px solid var(--line)}
.grant-row p {margin:4px 0 0;line-height:1.55;font-size:.9rem;color:var(--muted);overflow-wrap:anywhere}
.grant-assign {display:flex;align-items:center;gap:8px;flex:none}
.grant-assign select {width:11rem}
.access-note {padding:6px clamp(16px,3vw,28px) 16px}
.origin-value {display:block;justify-self:start;max-width:100%;overflow-wrap:anywhere}
@media(max-width:680px) {
  .workspace-picker {gap:3px}
  .workspace-picker span {display:none}
  .workspace-picker select {max-width:8rem;padding-inline:4px}
  .app-top:has(.workspace-picker) .profile-tag {display:none}
  .app-top:has(.workspace-picker) .brand small {display:none}
  .grant-row {align-items:flex-start;flex-wrap:wrap}
  .grant-assign {max-width:100%;flex-wrap:wrap}
  .access-tabs button {min-height:44px}
}
@media(max-width:450px) {
  .app-top:has(.workspace-picker):has(#language) .brand strong {display:none}
}
@media print {
  .month-controls {
    display:none!important
  }
  @page {
    size:landscape;
    margin:8mm
  }
  body,:root {
    background:white;
    color:black
  }
  .app-top,.sidebar,.filter-bar,.view-switch,.actions,.skip,#toast,.scrim,.mobile-menu {
    display:none!important
  }
  .app-shell,.workspace,.table-scroll {
    display:block!important;
    width:100%;
    max-width:none;
    overflow:visible;
    padding:0
  }
  .workspace {
    margin:0
  }
  .page-heading {
    margin:0 0 10px
  }
  .page-heading h1 {
    font-size:18pt
  }
  .panel {
    border:0;
    border-radius:0;
    overflow:visible
  }
  .panel-title {
    min-height:0;
    padding:5px 0
  }
  .panel-title h2 {
    font-size:12pt
  }
  table {
    font-size:8pt;
    white-space:normal
  }
  th,td {
    padding:3px;
    border-bottom:1px solid #ccc
  }
  thead {
    display:table-header-group
  }
  tr {
    break-inside:avoid
  }
  .badge {
    background:none;
    color:black
  }
}
