:root {
  color-scheme: light;
  --canvas: #f6f7f2;
  --paper: #fff;
  --ink: #18342b;
  --muted: #5e6d64;
  --line: #dce2d8;
  --green: #204d3c;
  --pale: #e7eddd;
  --lime: #ddf3a6;
  --orange: #f4a263;
  --radius: 18px;
  font-family:
    "Avenir Next",
    Avenir,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.52;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b76524;
  outline-offset: 3px;
}
a,
button {
  touch-action: manipulation;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  flex-shrink: 0;
}
h2 {
  font-size: 1.22rem;
  line-height: 1.25;
  font-weight: 690;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.02rem;
}
small {
  font-size: 0.85rem;
}
.shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
}
.sidebar {
  background: #fcfdf9;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 35px 18px 21px;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.sidebar > .brand {
  padding-left: 10px;
}
.brand img {
  display: block;
  border-radius: 13px;
}
.brand > div {
  display: grid;
  gap: 2px;
}
.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.92rem;
  letter-spacing: -0.085em;
  line-height: 1;
  font-weight: 700;
}
.brand strong span {
  color: #c67337;
}
.brand small {
  font-size: 0.75rem;
  font-weight: 630;
  letter-spacing: 0.048em;
  color: var(--muted);
}
.sidebar nav {
  margin-top: 57px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-title,
.section-label {
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-title {
  margin: 0 0 9px 13px;
  font-size: 0.73rem;
}
.nav-title.management {
  margin-top: 27px;
}
.nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 0.94rem;
  color: #485b4f;
  font-weight: 550;
}
.nav-link:hover {
  background: #f0f3ea;
}
.nav-link.selected {
  background: #e3ecd9;
  color: #204731;
  font-weight: 700;
}
.nav-link.selected svg {
  stroke-width: 2.2;
}
.userbox {
  margin-top: auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 18px 3px 0;
}
.userbox > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.userbox strong,
.person-name strong {
  overflow-wrap: anywhere;
}
.userbox strong {
  font-size: 0.89rem;
  line-height: 1.2;
}
.userbox small,
.person-name small {
  color: var(--muted);
  font-size: 0.8rem;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #e4ebd8;
  color: #345139;
  font-size: 0.78rem;
  font-weight: 750;
}
.logout {
  margin-left: auto;
  display: grid;
  place-items: center;
  color: var(--muted);
  height: 42px;
  min-width: 30px;
}
.guest-sign {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  padding: 5px 10px;
}
.mobile-bar,
.mobile-nav {
  display: none;
}
.main {
  min-width: 0;
}
.content {
  max-width: 1312px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 78px) clamp(24px, 4.4vw, 76px) 52px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-label {
  color: #61765d;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  margin-bottom: 10px;
}
.section-rule {
  height: 2px;
  width: 24px;
  background: #c27843;
}
.page-head h1 {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.058em;
  line-height: 1.04;
  font-size: clamp(2.65rem, 4.5vw, 4.1rem);
}
.header-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #506350;
  font-size: 0.9rem;
  font-weight: 560;
  white-space: nowrap;
}
.header-date svg {
  color: #798976;
}
.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.clock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(222px, 0.95fr);
  gap: 19px;
  align-items: stretch;
}
.clock-card {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(95px, 31%);
  gap: 6px;
  align-items: center;
  overflow: hidden;
  min-height: 290px;
  background: #173e34;
  border: 1px solid #173e34;
  border-radius: var(--radius);
  padding: 25px clamp(18px, 2.1vw, 34px);
  color: #f0f6e8;
}
.clock-card:before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, transparent 99%, #a7c7a91c 99%),
    linear-gradient(0deg, transparent 98%, #a7c7a91c 98%);
  background-size: 23px 23px;
  mask-image: linear-gradient(90deg, transparent 20%, black 100%);
}
.clock-card:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse at 100% 100%, #30564388, transparent 72%);
}
.clock-content {
  z-index: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  border-radius: 50px;
  padding: 7px 11px;
  background: #eff2ed;
  color: #56665b;
}
.status i {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #8a998c;
}
.status.work {
  color: #2a5736;
  background: #e6f2dd;
}
.status.work i {
  background: #6a9c41;
}
.status.pause {
  background: #fff0dc;
  color: #804f21;
}
.status.pause i {
  background: #df9748;
}
.clock-card .status {
  background: #ffffff0d;
  border: 1px solid #ffffff28;
  color: #e2eddf;
}
.clock-card .status.off i {
  background: #b9c9b7;
}
.clock-card .status.work i {
  background: #c6ec84;
}
.clock-card .status.pause i {
  background: var(--orange);
}
.elapsed-block {
  margin-top: 27px;
}
.timer-label {
  color: #d0dfcd;
  font-size: 0.92rem;
}
.elapsed {
  font-size: clamp(2.4rem, 9.9cqw, 4.8rem);
  font-weight: 520;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.065em;
  margin: 2px 0 4px;
  color: #f5f8ec;
  white-space: nowrap;
}
.running-site,
.location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cadac9;
  font-size: 0.88rem;
  min-height: 30px;
}
.running-site span {
  color: #a2b9a4;
}
.location select {
  padding: 4px 22px 4px 0;
  width: auto;
  max-width: 100%;
  color: #dfebdc;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='9' viewBox='0 0 13 9'%3E%3Cpath d='m2 2 4.5 4.5L11 2' fill='none' stroke='%23cedecc' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: right 2px center;
  font-size: 0.88rem;
}
.location option {
  color: #173e34;
  background: #fff;
}
.punch-actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 16px;
  font-size: 0.91rem;
  font-weight: 670;
  line-height: 1.22;
  white-space: nowrap;
  text-align: center;
}
.btn.punch {
  background: var(--lime);
  color: #1d3d2e;
  border: 1px solid var(--lime);
  box-shadow: 0 2px 5px #08282020;
}
.btn.punch:hover {
  background: #eefac4;
}
.btn.stop {
  border: 1px solid #779184;
  background: #183c31cc;
  color: #f0f4ed;
}
.btn.stop:hover {
  background: #2a5043;
}
.dialbox {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  align-self: center;
}
.dial {
  display: block;
  max-width: 100%;
  width: 180px;
  height: auto;
}
.dialbox > span {
  font-size: 0.7rem;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: #c4d3be;
  font-weight: 660;
  white-space: nowrap;
}
.dial-outline {
  fill: #20473b;
  stroke: #719078;
  stroke-width: 0.8;
}
.dial .major {
  stroke: #d9e9cf;
  stroke-width: 1.9;
}
.dial .minor {
  stroke: #7f9d84;
  stroke-width: 1;
}
.dial text {
  fill: #e8f0dc;
  font:
    600 12px Arial,
    sans-serif;
}
.hour-hand,
.min-hand,
.sec-hand {
  stroke-linecap: round;
}
.hour-hand {
  stroke: #e8f0dd;
  stroke-width: 4.8;
}
.min-hand {
  stroke: #e8f0dd;
  stroke-width: 3.3;
}
.sec-hand {
  stroke: var(--orange);
  stroke-width: 1.7;
}
.week {
  padding: 26px clamp(19px, 2vw, 29px) 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.panel-line,
.ledger-head,
.card-title,
.tool-row,
.button-row,
.form-actions,
.pause-head,
.detail-title {
  display: flex;
  align-items: center;
}
.panel-line,
.ledger-head,
.tool-row,
.pause-head,
.detail-title {
  justify-content: space-between;
  gap: 12px;
}
.panel-line > svg {
  color: #70846d;
}
.week-range {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}
.week-time {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.15rem, 3.35vw, 3.12rem);
  line-height: 1.12;
  letter-spacing: -0.062em;
  font-weight: 570;
  margin: 20px 0 16px;
}
.week-time small {
  font-size: 0.92rem;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 500;
}
.bars {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(4px, 0.8vw, 14px);
  min-height: 78px;
  flex: 1;
}
.bars:before {
  content: "";
  position: absolute;
  inset: 0 0 25px;
  z-index: -1;
  background: repeating-linear-gradient(
    to top,
    #e6e9e180 0 1px,
    transparent 1px 33.333%
  );
}
.bar-day {
  display: flex;
  flex-direction: column;
  min-height: 78px;
  align-items: center;
  min-width: 0;
}
.track {
  width: min(78%, 30px);
  flex: 1;
  display: flex;
  align-items: flex-end;
}
.bar {
  background: #97b58a;
  width: 100%;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
}
.bar-day.today .bar {
  background: #dc8b4b;
}
.bar-day > span {
  margin-top: 6px;
  color: #657467;
  font-size: 0.76rem;
  line-height: 20px;
  text-align: center;
  min-width: 22px;
  border-radius: 5px;
}
.bar-day.today > span {
  font-weight: 750;
  color: #784c28;
  background: #faeee1;
}
.ledger {
  overflow: hidden;
  margin-top: 22px;
}
.ledger-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  min-height: 68px;
}
.card-title {
  gap: 11px;
}
.panel-icon,
.empty-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.panel-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #edf2e6;
  color: #446347;
}
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #395c40;
  font-size: 0.88rem;
  font-weight: 670;
  min-height: 36px;
  padding: 3px 1px;
}
.text-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 32px 20px 36px;
  min-height: 150px;
}
.empty-icon {
  width: 46px;
  height: 46px;
  background: #f0f3ec;
  border: 1px solid #e5eadf;
  border-radius: 14px;
  color: #748a73;
}
.empty strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 620;
}
.empty p,
.report-note,
.field-note {
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--muted);
}
.empty p {
  margin-top: 4px;
}
.entry {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 23px;
  background: #fff;
  border-bottom: 1px solid #e8ede4;
}
.entry:last-child,
.member-row:last-child {
  border-bottom: 0;
}
.entry:hover,
.entry:focus-visible {
  background: #f6f8f1;
}
.date-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 47px;
  flex-shrink: 0;
  background: #f2f5ed;
  border-radius: 9px;
}
.date-tile strong {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.12;
}
.date-tile small {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 650;
}
.entry-main,
.person-name {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.entry-main {
  flex: 1;
}
.entry-main strong,
.person-name strong {
  font-size: 0.94rem;
  line-height: 1.2;
}
.entry-main small,
.entry-site,
.entry-pause,
.member-site {
  color: var(--muted);
  font-size: 0.84rem;
}
.entry-site,
.entry-pause,
.member-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.entry-site {
  flex: 0 1 155px;
}
.entry-pause {
  min-width: 65px;
}
.entry-hours {
  font-size: 0.97rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 65px;
  text-align: right;
}
.entry-hours small {
  font-size: 0.8rem;
  font-weight: 550;
}
.entry-icon {
  color: #869482;
}
.count,
.badge {
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--muted);
}
.badge {
  border-radius: 20px;
  background: #eff2eb;
  padding: 6px 10px;
}
.btn.primary {
  background: #254c3a;
  color: #fff;
  border: 1px solid #254c3a;
}
.btn.primary:hover:not(:disabled) {
  background: #193e2f;
}
.btn.plain,
.icon-button {
  border: 1px solid #cfd9cb;
  color: #37523e;
  background: #fff;
}
.btn.plain:hover,
.icon-button:hover {
  background: #edf3e7;
}
.tool-row {
  margin: 4px 0 19px;
  flex-wrap: wrap;
}
.button-row {
  gap: 8px;
  flex-wrap: wrap;
}
.month-switch {
  background: white;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #cfd9cb;
  border-radius: 10px;
  overflow: hidden;
}
.month-switch button {
  min-width: 36px;
  height: 42px;
  display: grid;
  place-items: center;
}
.month-switch button:hover {
  background: #edf2e8;
}
.month-switch label {
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  font-weight: 620;
  font-size: 0.9rem;
  padding: 0 6px;
  min-height: 42px;
  cursor: pointer;
}
.month-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.month-switch input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.month-switch label:focus-within {
  outline: 2px solid #a86532;
  outline-offset: -2px;
}
.filters {
  display: flex;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
  margin: 0 0 19px;
}
.filters > label {
  flex: 1;
  max-width: 300px;
  min-width: 170px;
}
.filters label,
.form-body label {
  display: grid;
  gap: 6px;
  font-size: 0.87rem;
  font-weight: 640;
}
.filters select,
.form-body select,
select,
input:not([type="month"]),
textarea {
  font-size: 1rem;
}
.filters input,
.filters select,
.form-body input,
.form-body select,
.form-body textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd8ca;
  border-radius: 8px;
  background-color: #fff;
  padding: 10px 11px;
  line-height: 1.3;
  font-weight: 430;
  min-height: 43px;
}
.form-body input:disabled,
.form-body select:disabled {
  background: #f1f3ef;
  color: #5d695c;
  opacity: 1;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1.5 1.5 4.5 4.5 4.5-4.5' fill='none' stroke='%23576e58' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.filters select,
.form-body select {
  padding-right: 34px;
}
.totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.totals > div {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  align-content: start;
  column-gap: 8px;
  row-gap: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px 19px;
}
.totals svg {
  color: #789276;
}
.totals span {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 570;
  line-height: 1.2;
}
.totals strong {
  grid-column: 1/-1;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.totals small {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 520;
}
.report-note {
  margin-top: 13px;
}
.team-stat {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--muted);
}
.team-stat strong {
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.search-field {
  position: relative;
}
.search-field svg {
  position: absolute;
  left: 12px;
  top: 13px;
  color: var(--muted);
}
.search-field input {
  padding-left: 37px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 22px;
  border-bottom: 1px solid #e7ebe3;
}
.person-name {
  flex: 1;
}
.person-name small {
  overflow-wrap: anywhere;
}
.member-site {
  width: 145px;
}
.member-status {
  min-width: 112px;
}
.gate,
.fetching {
  padding: 26px;
}
.gate p {
  margin: 9px 0 20px;
  color: var(--muted);
}
.fetching {
  display: flex;
  align-items: center;
  gap: 9px;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.modal {
  width: min(570px, calc(100% - 28px));
  max-height: 88svh;
  overflow: auto;
  border: 1px solid #c6d0c1;
  border-radius: 17px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 90px #11281b35;
  padding: 0;
}
.modal::backdrop {
  background: #14251db0;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.form-body {
  display: grid;
  gap: 16px;
  padding: 21px 22px;
}
.form-body textarea {
  resize: vertical;
}
.form-actions {
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.form-actions > .danger {
  margin-right: auto;
}
.text-btn.danger {
  color: #974c32;
}
.field-grid,
.pause-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.pause-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}
.stamp-field {
  min-width: 0;
}
.stamp-field .dst {
  margin-top: 7px;
}
.form-err,
.page-error {
  padding: 11px 13px;
  border-radius: 8px;
  background: #fff0e8;
  color: #823e25;
  font-size: 0.9rem;
  line-height: 1.4;
}
.page-error {
  margin-bottom: 14px;
}
.detail-title > div > strong {
  font-size: 1.12rem;
}
.detail-title p,
.break-list p {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 5px;
}
.detail-list {
  margin: 0;
  display: grid;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.detail-list dt {
  color: var(--muted);
  font-size: 0.91rem;
}
.detail-list dd {
  margin: 0;
  text-align: right;
  font-size: 0.93rem;
  font-weight: 630;
}
.audit {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.audit h3 {
  display: flex;
  align-items: center;
  gap: 7px;
}
.audit p,
.audit small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.audit p {
  margin-top: 6px;
}
.audit article {
  margin-top: 12px;
  border-left: 2px solid #b6c8a8;
  padding-left: 12px;
}
.audit article strong,
.audit small {
  display: block;
}
.audit small {
  margin-top: 3px;
}
.toast {
  position: fixed;
  z-index: 4;
  bottom: 22px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  background: #214936;
  color: white;
  border-radius: 12px;
  box-shadow: 0 3px 15px #1939262b;
  padding: 12px 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
  max-width: 90vw;
  width: max-content;
}
@media (min-width: 1500px) {
  .shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }
  .clock-grid {
    grid-template-columns: 1.85fr 1fr;
  }
  .clock-card {
    min-height: 305px;
  }
}
@media (max-width: 1190px) {
  .shell {
    grid-template-columns: 198px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .content {
    padding-left: 28px;
    padding-right: 28px;
  }
  .entry-site,
  .member-site {
    flex-basis: auto;
    width: auto;
  }
  .entry-site {
    margin-right: auto;
  }
  .member-status {
    min-width: 0;
  }
  .clock-grid {
    gap: 14px;
  }
  .clock-card {
    min-height: 272px;
  }
}
@media (max-width: 960px) and (min-width: 761px) {
  .shell {
    grid-template-columns: 172px minmax(0, 1fr);
  }
  .content {
    padding: 35px 20px;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .sidebar > .brand {
    padding-left: 4px;
  }
  .brand {
    gap: 7px;
  }
  .brand strong {
    font-size: 1.7rem;
  }
  .clock-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(190px, 0.9fr);
  }
  .clock-card {
    grid-template-columns: minmax(0, 1fr) 27%;
    padding: 19px 16px;
  }
  .week {
    padding: 22px 16px 18px;
  }
  .punch-actions {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
  }
  .entry-pause,
  .member-site {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 69px;
    padding: 12px 20px;
    background: #fcfdf9;
    border-bottom: 1px solid var(--line);
  }
  .mobile-bar .brand img {
    width: 37px;
    height: 37px;
    border-radius: 10px;
  }
  .mobile-bar .brand strong {
    font-size: 1.57rem;
  }
  .mobile-bar .brand small {
    font-size: 0.69rem;
  }
  .mobile-account {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #eef2e8;
    font-size: 0.8rem;
    font-weight: 690;
    min-height: 38px;
  }
  .mobile-bar .text-btn {
    font-size: 0.86rem;
  }
  .mobile-nav {
    z-index: 3;
    display: flex;
    justify-content: space-evenly;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fcfdf9f7;
    border-top: 1px solid #d8ded1;
    padding: 5px 5px calc(5px + env(safe-area-inset-bottom));
    backdrop-filter: blur(12px);
  }
  .mobile-link {
    display: flex;
    flex: 1;
    max-width: 150px;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 49px;
    color: #647161;
    font-size: 0.77rem;
    font-weight: 600;
    border-radius: 9px;
  }
  .mobile-link.selected {
    background: #e6eedc;
    color: #264b35;
  }
  .content {
    padding: 25px 17px calc(88px + env(safe-area-inset-bottom));
  }
  .page-head {
    margin-bottom: 19px;
    gap: 12px;
  }
  .page-head h1 {
    font-size: 2.7rem;
  }
  .section-label {
    font-size: 0.65rem;
    margin-bottom: 8px;
  }
  .header-date {
    font-size: 0.8rem;
    gap: 5px;
  }
  .header-date svg {
    width: 15px;
    height: 15px;
  }
  .clock-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(175px, 0.9fr);
    gap: 12px;
  }
  .clock-card {
    padding: 19px 17px;
    min-height: 255px;
  }
  .week {
    padding: 19px 15px 16px;
  }
  .ledger {
    margin-top: 15px;
  }
  .ledger-head {
    padding: 15px 17px;
    min-height: 59px;
  }
  .entry,
  .member-row {
    padding: 13px 16px;
    gap: 10px;
  }
  .entry-pause,
  .member-site {
    display: none;
  }
  .tool-row {
    margin-bottom: 15px;
  }
  .totals {
    gap: 8px;
  }
  .totals > div {
    padding: 13px 12px;
    gap: 6px;
  }
  .totals span {
    font-size: 0.79rem;
  }
  .totals strong {
    font-size: 1.45rem;
    margin-top: 4px;
  }
  .toast {
    left: 50%;
    bottom: calc(74px + env(safe-area-inset-bottom));
  }
  .member-status .status {
    font-size: 0.76rem;
    padding: 6px 8px;
  }
}
@media (max-width: 585px) {
  .clock-grid {
    grid-template-columns: 1fr;
  }
  .clock-card {
    min-height: 245px;
    grid-template-columns: minmax(0, 1fr) 29%;
    padding: 20px;
  }
  .elapsed {
    font-size: clamp(2.75rem, 12cqw, 4.2rem);
  }
  .elapsed-block {
    margin-top: 17px;
  }
  .punch-actions {
    padding-top: 14px;
  }
  .week {
    display: grid;
    grid-template-columns: auto minmax(115px, 1fr);
    column-gap: 20px;
    row-gap: 4px;
    padding: 16px 18px;
  }
  .week .panel-line {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
  }
  .week .panel-line > svg {
    display: none;
  }
  .week-range {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 0.8rem;
  }
  .week-time {
    grid-column: 1;
    grid-row: 3;
    font-size: 2.05rem;
    margin: 1px 0 0;
  }
  .bars {
    grid-column: 2;
    grid-row: 1/4;
    min-height: 66px;
    gap: 5px;
  }
  .bar-day {
    min-height: 66px;
  }
  .week h2,
  h2 {
    font-size: 1.09rem;
  }
  .week-time small {
    font-size: 0.8rem;
  }
  .header-date {
    font-size: 0.76rem;
    line-height: 1.35;
    white-space: normal;
    max-width: 137px;
  }
  .header-date svg {
    display: none;
  }
  .tool-row {
    align-items: flex-start;
    gap: 12px;
  }
  .tool-row .button-row {
    width: 100%;
    justify-content: flex-start;
  }
  .filters {
    gap: 9px;
  }
  .filters > label {
    min-width: 135px;
  }
  .btn {
    font-size: 0.88rem;
    padding: 10px 12px;
  }
  .entry-site {
    display: none;
  }
  .entry-hours {
    min-width: 0;
  }
  .entry-icon {
    width: 13px;
  }
  .member-row {
    display: grid;
    grid-template-columns: 33px minmax(0, 1fr) auto;
    column-gap: 8px;
    row-gap: 4px;
  }
  .member-row > .avatar {
    grid-row: 1/3;
  }
  .member-row > .person-name {
    grid-column: 2;
  }
  .member-row > .member-status {
    grid-column: 2;
  }
  .member-row > .text-btn {
    grid-column: 3;
    grid-row: 1/3;
    font-size: 0.8rem;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .pause-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .pause-row > .stamp-field:nth-child(2) {
    grid-column: 1;
  }
  .pause-row > .icon-button {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
  }
  .form-body {
    padding: 17px;
  }
  .modal-head {
    padding: 16px 17px;
  }
  .totals > div {
    grid-template-columns: 1fr;
    padding: 10px 9px;
    row-gap: 5px;
  }
  .totals svg {
    display: none;
  }
  .totals span {
    min-height: 2.3em;
  }
  .totals strong {
    font-size: 1.32rem;
  }
  .card-title {
    gap: 8px;
  }
  .report-note {
    font-size: 0.81rem;
  }
  .punch-actions .stop {
    min-height: 37px;
  }
  .empty {
    padding: 24px 16px;
    min-height: 142px;
  }
}
@media (max-width: 350px) {
  .content {
    padding-left: 11px;
    padding-right: 11px;
  }
  .header-date {
    max-width: 100px;
  }
  .clock-card {
    padding: 16px;
    grid-template-columns: minmax(0, 1fr) 25%;
  }
  .dialbox > span {
    font-size: 0.58rem;
  }
  .status {
    font-size: 0.75rem;
  }
  .form-actions {
    justify-content: flex-start;
  }
  .totals small {
    font-size: 0.72rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spin {
    animation: none;
  }
}
.planner {
  display: grid;
  gap: 18px;
}
.panel {
  padding: clamp(18px, 3vw, 30px);
}
.panel h2 {
  margin-bottom: 12px;
}
.panel p,
.panel small {
  color: var(--muted);
}
.plan-toolbar,
.grant,
.actions {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}
.plan-toolbar {
  justify-content: space-between;
  margin-bottom: 18px;
}
.planner label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
}
.planner input:not([type="checkbox"]),
.planner select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  min-height: 40px;
  max-width: 100%;
}
.planner .tick {
  display: flex;
  align-items: center;
  gap: 8px;
}
.planner input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
.grant {
  margin: 16px 0;
}
.grant input {
  width: 100px;
}
.leave-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.leave-stats div {
  display: grid;
  gap: 6px;
  background: #f3f5ed;
  border-radius: 10px;
  padding: 13px;
}
.leave-stats div:last-child {
  background: #e3efcc;
}
.leave-stats strong {
  font-size: 1.5rem;
}
.leave-stats span {
  font-size: 0.78rem;
}
.leave-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.leave-calendar > b {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 5px;
}
.cal-day {
  padding: 5px;
  min-height: 53px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.cal-day.today {
  border: 2px solid #507342;
}
.cal-day strong {
  font-size: 0.76rem;
}
.cal-day small {
  display: block;
  font-size: 0.68rem;
  border-radius: 3px;
  background: #e7efd4;
  margin: 2px 0;
}
.cal-day .cal-pending {
  background: #fff0df;
}
.week-line,
.leave-line,
.day-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.planner form > .actions,
.planner form > .btn {
  margin-top: 16px;
}
.planner details {
  margin: 12px 0;
  cursor: pointer;
}
.planner details p {
  margin: 8px 0;
}
.planner label.day-choice {
  display: flex;
}
.planner .actions {
  align-items: center;
}
.week-line small {
  font-size: 0.8rem;
}
.leave-line p {
  margin: 4px 0;
}
.mobile-link {
  min-width: 0;
}
@media (max-width: 760px) {
  .mobile-nav {
    grid-template-columns: none !important;
    display: flex;
    justify-content: space-around;
  }
  .mobile-link {
    flex: 1;
    font-size: 0.65rem;
    text-align: center;
  }
  .mobile-link span {
    overflow-wrap: anywhere;
  }
  .leave-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .leave-line {
    align-items: flex-start;
    flex-direction: column;
  }
  .week-line .actions {
    gap: 4px;
  }
  .week-line input[type="time"] {
    padding: 5px;
    font-size: 0.85rem;
  }
  .cal-day {
    padding: 3px;
  }
  .planner .plan-toolbar {
    align-items: start;
  }
}
.clock-core {
  color: #dae8d7;
  font-size: 0.82rem;
  margin-top: 6px;
}
.clock-core:empty {
  display: none;
}
.plan-sections {
  display: flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
}
.plan-sections button {
  border: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 11px 14px;
  font: inherit;
  font-size: 0.89rem;
  cursor: pointer;
}
.plan-sections button[aria-pressed="true"] {
  background: var(--green);
  color: white;
}
.plan-sections button:focus-visible {
  outline-offset: -3px;
}
.target-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
}
.target-source,
.target-form > p:first-child {
  margin: 12px 0;
  font-size: 0.88rem;
}
.target-form {
  max-width: 570px;
}
.target-row {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) repeat(2, minmax(50px, 78px));
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.target-row input {
  width: 100%;
}
.target-head {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 10px;
}
.target-row strong {
  font-size: 0.93rem;
}
.target-total {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  gap: 8px;
  background: var(--pale);
  border-radius: 8px;
}
.target-total strong,
.week-target strong {
  color: var(--ink);
}
.week-target {
  font-size: 0.84rem;
  margin: 4px 0 8px;
  color: var(--muted);
}
.form-body .check-label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.check-label input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}
