  :root {
    color-scheme: light;
    --ink: #192e26;
    --muted: #505e56;
    --paper: #f5f4ee;
    --white: #fffef9;
    --line: #dce1d7;
    --forest: #172b24;
    --green: #315e46;
    --mint: #e6ede3;
    --bronze: #e7c990;
    --issue: #805119;
    --issue-bg: #fff0d5;
    font: 16px/1.5 'Segoe UI', system-ui, sans-serif;
  }
  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  body { margin: 0; background: var(--paper); color: var(--ink); }
  h1, h2, h3, p { margin: 0; }
  button, input, textarea { font: inherit; }
  button { cursor: pointer; }
  button:disabled { cursor: default; }
  :focus-visible { outline: 3px solid #a66c29; outline-offset: 3px; }
  .wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
  .topbar { background: var(--forest); color: var(--white); }
  .topbar .wrap { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
  .brand { display: flex; align-items: center; gap: 14px; }
  .mark { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid #d7b77c; border-radius: 10px; color: var(--bronze); font: 700 18px Georgia, serif; }
  .brand-name { font: 600 21px Georgia, serif; }
  .brand-detail { margin-top: 1px; color: #c4d0c4; font-size: .75rem; }
  .nav { display: flex; gap: 5px; }
  .nav button { border: 0; border-radius: 7px; padding: 8px 13px; min-height: 42px; background: transparent; color: #dce7dc; font-size: .86rem; font-weight: 650; }
  .nav button:hover { background: #3f584c; }
  main.wrap { padding-block: 30px 46px; }
  .hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 17px; color: var(--white); background: linear-gradient(112deg, #1b3328 32%, #234535 100%); padding: 32px 37px 35px; display: grid; grid-template-columns: 1fr 245px; gap: 28px; align-items: center; }
  .hero::before, .hero::after { content: ''; position: absolute; z-index: -1; border: 1px solid #e0ce9f29; border-radius: 50%; width: 330px; height: 330px; right: -78px; top: -174px; }
  .hero::after { width: 410px; height: 410px; right: -118px; top: -214px; }
  .hero-label { color: var(--bronze); text-transform: uppercase; letter-spacing: .15em; font-weight: 700; font-size: .72rem; margin-bottom: 7px; }
  h1 { font: 500 clamp(2.3rem, 5vw, 3.75rem)/1.05 Georgia, serif; letter-spacing: -.045em; }
  .hero p:last-child { margin-top: 11px; color: #dee8df; font-size: .93rem; }
  .hero-meter { padding: 14px 17px; border: 1px solid #c9e0c846; border-radius: 11px; background: #132a2173; }
  .meter-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .8rem; }
  .meter-top strong { color: var(--bronze); font-size: 1.04rem; font-variant-numeric: tabular-nums; }
  progress { width: 100%; height: 8px; display: block; appearance: none; border: 0; border-radius: 99px; overflow: hidden; margin: 9px 0 5px; background: #536a5c; color: #e7c990; }
  progress::-webkit-progress-bar { background: #536a5c; }
  progress::-webkit-progress-value { border-radius: 99px; background: var(--bronze); }
  progress::-moz-progress-bar { border-radius: 99px; background: var(--bronze); }
  .hero-meter small { color: #e2e9de; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, 335px); align-items: start; gap: 23px; margin-top: 25px; }
  .section-head { margin: 0 0 13px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
  h2 { font: 600 1.65rem/1.15 Georgia, serif; letter-spacing: -.025em; }
  .pill { display: inline-flex; align-items: center; border-radius: 30px; padding: 4px 10px; background: var(--mint); color: #2b553d; font-size: .76rem; font-weight: 700; white-space: nowrap; }
  .pill.issue { background: var(--issue-bg); color: var(--issue); }
  .date-row { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 12px; margin-bottom: 12px; }
  .date-row .field { margin: 0; }
  .card, .group { border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
  .card { padding: 19px; }
  .group { margin-bottom: 10px; }
  summary { cursor: pointer; list-style: none; min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 11px 15px; border-radius: 12px; }
  summary::-webkit-details-marker { display: none; }
  summary:hover { background: #f4f6ee; }
  .group-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 9px; background: var(--mint); color: #2b553d; font: 700 .79rem Georgia, serif; letter-spacing: .03em; }
  .group-name { flex: 1; font-weight: 700; }
  .group-count { font-size: .78rem; color: var(--muted); white-space: nowrap; }
  .caret { height: 7px; width: 7px; margin: 0 2px 4px 2px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
  details[open] > summary .caret { margin-bottom: -3px; transform: rotate(225deg); }
  .task-detail { display: block; color: var(--muted); font-size: .81rem; line-height: 1.44; margin-top: 3px; }
  .side { display: grid; gap: 13px; }
  .side .card h2 { font-size: 1.36rem; }
  .field { display: grid; gap: 5px; margin-top: 12px; font-size: .86rem; font-weight: 650; }
  input:not([type='checkbox'], [type='radio']), textarea { width: 100%; min-width: 0; min-height: 43px; border: 1px solid #adb9ad; border-radius: 7px; background: #fff; color: var(--ink); padding: 8px 10px; }
  textarea { resize: vertical; }
  .subtle { color: var(--muted); font-size: .8rem; font-weight: 400; line-height: 1.44; }
  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 7px; min-height: 43px; padding: 8px 12px; font-weight: 650; font-size: .83rem; color: var(--ink); background: transparent; text-decoration: none; }
  .btn.outline { border-color: #a9b8aa; }
  .btn.outline:hover { background: var(--mint); }
  .btn.primary { background: #254a36; color: white; }
  .btn.primary:hover { background: #1c392b; }
  .shift-action { width: 100%; margin-top: 13px; }
  .notice { display: flex; align-items: flex-start; gap: 8px; padding: 11px 14px; background: var(--issue-bg); border: 1px solid #e4c79e; border-radius: 8px; color: #614017; font-size: .82rem; margin-bottom: 12px; }
  .footer-note { margin-top: 10px; }
  .screen-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .history-area { margin-top: 25px; }
  .history-item { margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px 16px; }
  .history-item h3 { font-size: 1rem; }
  .history-item p { margin-top: 3px; overflow-wrap: anywhere; }
  .record-detail { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .86rem; }
  .nav { align-items: center; }
  .nav a { display: flex; align-items: center; min-height: 42px; padding: 8px 13px; border-radius: 7px; color: #dce7dc; text-decoration: none; font-size: .86rem; font-weight: 650; }
  .nav a:hover, .nav a[aria-current='page'] { background: #345044; color: white; }
  .hero:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
  .toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 9px 16px; margin: 20px 0 8px; }
  .toolbar .date-row { margin: 0; align-items: end; }
  .date-help { margin: 0 0 12px; }
  .feedback { margin-top: 15px; }
  .success { background: var(--mint); border-color: #a9b8aa; color: var(--green); }
  .narrow { max-width: 420px; margin: 20px auto; }
  .narrow .field:first-of-type { margin-top: 0; }
  .task-layout { margin-top: 15px; }
  .shared-task { min-width: 0; margin: 0; padding: 12px 16px 13px; border: 0; border-top: 1px solid var(--line); }
  .shared-task legend { float: left; width: 100%; padding: 0; font-weight: 650; overflow-wrap: anywhere; }
  .shared-task legend + * { clear: both; }
  .choices { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
  .choices label { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; font-size: .82rem; cursor: pointer; }
  .choices label:has(:checked) { border-color: #7e997f; background: var(--mint); }
  .choices label:has(input[value='issue']:checked) { border-color: #d9b077; background: var(--issue-bg); color: var(--issue); }
  .choices input { accent-color: var(--green); margin: 0; }
  .record-status, .staff-name { margin-top: 7px; overflow-wrap: anywhere; }
  .staff-name { font-weight: 650; }
  .record-card { margin-top: 18px; }
  .record-card .actions { margin-top: 14px; }
  .area-boxes { margin: 12px 0; padding: 5px 10px 9px; border: 1px solid var(--line); border-radius: 8px; }
  .area-boxes legend { font-weight: 650; }
  .area-boxes label { display: inline-flex; align-items: center; min-height: 40px; margin-right: 15px; gap: 3px; font-size: .88rem; }
  .confirm-label { display: flex; align-items: center; gap: 6px; margin-top: 13px; min-height: 44px; }
  .staff-tools { border-top: 1px solid var(--line); padding: 0 15px 14px; }
  .staff-group small { display: block; color: var(--muted); font-weight: 400; }
  .account-actions { margin-top: 10px; }
  .recent-list { margin: 8px 0 0; padding-left: 20px; }
  .recent-list a { display: inline-flex; align-items: center; min-height: 42px; color: var(--green); }
  .credentials a { display: inline-block; color: inherit; margin-top: 5px; }
  .credentials code { font-size: 1rem; }
  @media (max-width: 760px) {
    .wrap { width: calc(100% - 36px); }
    main.wrap { padding-top: 18px; }
    .layout { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
    .hero { padding: 23px; grid-template-columns: 1fr; gap: 17px; }
    .hero-meter { padding: 10px 12px; }
    .group-name { line-height: 1.25; }
  }
  @media (max-width: 430px) {
    .wrap { width: calc(100% - 24px); }
    .topbar .wrap { min-height: 66px; gap: 9px; }
    .brand { gap: 8px; }
    .brand-name { font-size: 1rem; }
    .brand-detail { display: none; }
    .mark { width: 33px; height: 33px; font-size: .88rem; }
    .nav { gap: 1px; }
    .nav button { padding-inline: 7px; font-size: .76rem; }
    .nav a { padding-inline: 7px; font-size: .76rem; }
    .topbar .wrap { flex-wrap: wrap; column-gap: 5px; }
    .nav { flex-wrap: wrap; }
    .shared-task { padding-inline: 10px; }
    .hero { padding: 18px; }
  }
