:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1c3439;
  background: #f4f7f6;
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid #087e70; background: #087e70; color: white; padding: 11px 16px; border-radius: 6px; font-weight: 600; }
button:disabled { opacity: .5; cursor: wait; }
button:hover { filter: brightness(.96); }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #61bea8; outline-offset: 2px; }
button.secondary { color: #284e48; background: white; border-color: #d7e2df; }
button.danger { background: #a73535; border-color: #a73535; }
button.link { padding: 5px 0; background: none; border: 0; color: #087e70; }
a.button { display: inline-block; text-decoration: none; border: 1px solid #d7e2df; padding: 11px 16px; border-radius: 6px; color: #284e48; background: white; font-weight: 600; text-align: center; }
a.button:focus-visible { outline: 3px solid #61bea8; outline-offset: 2px; }
.report-actions { display: grid; gap: 12px; margin-block: 18px; }
.report-period { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin-bottom: 24px; }
.report-period label { display: flex; align-items: center; gap: 12px; }
.report-weekly { margin-top: 24px; }
h1 { font-size: 30px; letter-spacing: -.8px; margin: 8px 0 12px; }
h2 { font-size: 19px; margin-top: 0; }
h3 { font-size: 14px; }
p { line-height: 1.65; overflow-wrap: anywhere; }
small, .muted, dt { color: #6c8180; font-size: 12px; }
td small, .account small { display: block; margin-top: 5px; }
.eyebrow { color: #6c8180; font-size: 10px; letter-spacing: 1.5px; }
.brand { font-size: 28px; font-weight: 700; letter-spacing: 2px; color: white; }
.brand span { display: block; font-size: 9px; letter-spacing: 3px; margin-top: 5px; }
.shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 235px; background: #102e32; padding: 30px 20px; display: flex; flex-direction: column; z-index: 5; }
.sidebar .eyebrow { color: #86a9a1; margin-top: 45px; }
nav { display: flex; flex-direction: column; gap: 6px; }
nav button { border: 0; padding: 13px; background: transparent; color: #b7ceca; text-align: left; font-size: 12px; }
nav button.active { background: #235049; color: #e0fff0; }
.account { color: #d8ebe3; margin-top: auto; padding-top: 24px; border-top: 1px solid #34514e; }
.account small { color: #9bbab0; }
.account button { margin-top: 15px; font-size: 11px; padding: 7px 12px; }
.main { margin-left: 235px; width: calc(100% - 235px); min-width: 0; }
.topbar { height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 35px; border-bottom: 1px solid #e1e8e5; background: white; font-size: 12px; }
.mobile { display: none; }
.page { padding: 32px 35px; max-width: 1500px; margin: auto; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.heading .muted { margin-bottom: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.panel { background: white; border: 1px solid #e0e8e4; border-radius: 9px; overflow: hidden; }
.padded { padding: 26px; }
.toolbar { padding: 20px 23px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.search { font-size: 12px; color: #6c8180; display: flex; align-items: center; gap: 10px; }
input, select, textarea { border: 1px solid #d4e0db; border-radius: 5px; padding: 10px 12px; background: white; color: #1c3439; }
.search input { width: 270px; font-size: 12px; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
th { padding: 14px 23px; text-transform: uppercase; font-size: 10px; color: #71847f; background: #fafcfb; border-block: 1px solid #e6ece8; white-space: nowrap; }
td { padding: 17px 23px; border-bottom: 1px solid #edf2ee; line-height: 1.5; }
tbody tr:last-child td { border-bottom: 0; }
td:last-child { white-space: nowrap; }
tr[hidden] { display: none; }
.badge { display: inline-flex; padding: 5px 8px; background: #e7f4ed; color: #267658; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.empty { padding: 55px 25px; color: #6c8180; text-align: center; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 25px; }
.metrics article { padding: 22px; border: 1px solid #e0e8e4; border-radius: 8px; background: white; }
.metrics strong { display: block; font-size: 29px; margin-top: 15px; }
.metrics .small-number { font-size: 17px; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; margin-bottom: 24px; }
.columns aside button { width: 100%; margin-top: 13px; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; margin: 28px 0; }
dt { font-size: 10px; text-transform: uppercase; margin-bottom: 7px; }
dd { margin: 0; overflow-wrap: anywhere; }
.entry { padding-top: 23px; margin-top: 25px; border-top: 1px solid #e0e8e4; }
.entry header { display: flex; justify-content: space-between; align-items: flex-start; }
.entry h3 { margin: 7px 0; }
.entry p { white-space: pre-wrap; }
.notice { padding: 13px 16px; border-left: 3px solid #c19b36; border-radius: 4px; background: #fff8e5; color: #69531e; }
.os-filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; padding: 22px; }
.os-filters > label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; min-width: 0; }
.os-filters input:not([type=checkbox]), .os-filters select { width: 100%; min-width: 0; }
.os-filters .os-mine { grid-column: span 2; flex-direction: row; align-items: center; font-weight: 400; }
.os-results { padding: 0 22px 12px; margin: 0; }
.os-pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; }
.os-checklist { list-style: none; padding: 0; font-size: 12px; }
.os-checklist li { display: flex; gap: 9px; padding: 7px 0; line-height: 1.5; color: #856a30; }
.os-checklist li span { flex: 0 0 15px; font-weight: 700; }
.os-checklist li.done { color: #267658; }
.os-problem { white-space: pre-wrap; }
.field-help { display: block; margin-top: 7px; line-height: 1.5; }
.columns aside button:disabled { cursor: default; }
dialog { width: min(700px, calc(100vw - 32px)); border: 1px solid #d8e5df; border-radius: 10px; padding: 27px; color: #1c3439; max-height: calc(100vh - 40px); }
dialog::backdrop { background: #102e3280; }
dialog header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
dialog header button { background: none; color: #6c8180; border: 0; font-size: 24px; padding: 0 5px; }
dialog footer { display: flex; justify-content: flex-end; gap: 12px; padding-top: 22px; margin-top: 22px; border-top: 1px solid #e0e8e4; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 25px; }
.wide { grid-column: 1 / -1; }
.field > label, .login-form label { display: block; font-size: 12px; font-weight: 600; }
.field-label { display: block; font-size: 12px; font-weight: 600; }
.field input:not([type=checkbox]), .field select, .field textarea, .login-form input { display: block; width: 100%; margin-top: 9px; }
.field textarea { resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 13px; padding: 15px 0 5px; }
.checks label { font-size: 12px; font-weight: 400; }
.error { color: #ab3030; font-size: 12px; }
pre { font-size: 11px; padding: 15px; max-height: 330px; overflow: auto; background: #f2f6f3; white-space: pre-wrap; overflow-wrap: anywhere; }
#toast { position: fixed; bottom: 24px; right: 24px; background: #102e32; color: white; padding: 15px 22px; border-radius: 7px; max-width: calc(100vw - 48px); opacity: 0; pointer-events: none; z-index: 20; }
#toast.visible { opacity: 1; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-brand { padding: 60px; background: #102e32; color: #d6eae1; }
.login-brand h1 { font-size: 55px; margin-top: 120px; line-height: 1.2; font-weight: 500; }
.login-brand p { color: #9dbfb1; }
.login-form { max-width: 440px; width: 100%; padding: 50px; align-self: center; justify-self: center; }
.login-form h2 { font-size: 28px; margin-top: 22px; }
.login-form label { margin: 23px 0; }
.login-form button { width: 100%; }
@media (max-width: 1050px) {
  .page { padding: 27px 22px; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .metrics strong { font-size: 24px; }
  th, td { padding: 15px; }
}
@media (max-width: 800px) {
  .os-filters { grid-template-columns: minmax(0, 1fr); }
  .os-filters .os-mine { grid-column: auto; }
  .sidebar { transform: translateX(-100%); box-shadow: 10px 0 40px #102e3230; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; width: 100%; }
  .mobile { display: block; }
  .topbar { padding: 0 20px; }
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 25px; }
  .login-brand h1 { font-size: 32px; margin-top: 30px; }
  .login-brand h1 br { display: none; }
  .login-brand p { display: none; }
  .login-form { padding: 35px 25px; }
}
@media (max-width: 520px) {
  .os-pagination { flex-wrap: wrap; }
  .heading, .toolbar { align-items: flex-start; flex-direction: column; }
  .metrics, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics article { display: flex; justify-content: space-between; align-items: center; }
  .metrics strong { margin: 0; }
  .search { width: 100%; }
  .search input { min-width: 0; width: 100%; }
  .page { padding: 25px 18px; }
  .padded { padding: 21px; }
  dialog { padding: 22px; }
}
