html { color-scheme: light; background: #fbfaf7; }
body { margin: 0; }

#mr-check-workspace {
  color-scheme: light;
  --paper: #fbfaf7;
  --panel: #fff;
  --ink: #222822;
  --muted: #596259;
  --line: #e6e8e1;
  --brand: #245744;
  --brand-deep: #173e30;
  --selection: #eef4ef;
  --row-hover: #f8f9f5;
  --red: #9b3826;
  --red-bg: #fcf1eb;
  --amber: #76530e;
  --amber-bg: #fcf4df;
  --green: #286448;
  --green-bg: #eaf4ed;
  --gray: #555e70;
  --gray-bg: #eef0f5;
  --row-pad: 12px;
  color: var(--ink);
  text-align: left;
  font: 14px/1.45 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  width: 100%;
}
#mr-check-workspace *, #mr-check-workspace *::before, #mr-check-workspace *::after { box-sizing: border-box; }
#mr-check-workspace :is(h1, h2, h3, p, dl, dd) { margin: 0; }
#mr-check-workspace :is(button, input, select) { font-family: inherit; color: inherit; }
#mr-check-workspace :is(button, summary, select, a) { cursor: pointer; }
#mr-check-workspace :is(a, button, input, select, summary):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.mr-shell { background: var(--paper); container-type: inline-size; }
.mr-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 30px; min-height: 62px; border-bottom: 1px solid var(--line);
}
.mr-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.mr-mark {
  display: grid; place-items: center; width: 31px; height: 31px; flex: none;
  background: var(--brand); color: var(--panel); border-radius: 9px;
}
.mr-main { padding: clamp(24px, 4vw, 40px) 30px 30px; }
.mr-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.mr-heading h1 { font-size: clamp(27px, 5cqw, 40px); font-weight: 710; line-height: 1.12; letter-spacing: -.055em; color: var(--ink); }
#mr-check-workspace .mr-heading p { margin-top: 7px; color: var(--muted); }
.mr-period {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 12px;
  border: 1px solid #dce1d8; background: var(--panel); border-radius: 8px; color: var(--muted);
}
.mr-period strong { color: var(--ink); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mr-calendar-icon {
  width: 14px; height: 14px; flex: none; margin-left: 2px;
  border: 1.5px solid var(--brand); border-radius: 3px;
  background: linear-gradient(var(--brand), var(--brand)) 0 3px / 100% 1px no-repeat;
}
.mr-calendar {
  width: min(calc(100% - 24px), 360px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; overflow: auto; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 55px rgb(22 37 30 / 22%);
}
.mr-calendar::backdrop { background: rgb(19 32 26 / 40%); }
.mr-calendar-panel { padding: 12px 14px 14px; }
.mr-calendar-head, .mr-calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mr-calendar-head { padding-left: 4px; border-bottom: 1px solid var(--line); }
.mr-calendar-head h2 { font-size: 16px; }
.mr-calendar-nav { margin: 4px 0; }
.mr-calendar-nav h3 { font-size: 15px; }
.mr-calendar-nav h3::first-letter { text-transform: uppercase; }
.mr-calendar-control, .mr-calendar-day, .mr-calendar-today { border: 0; background: transparent; border-radius: 8px; }
.mr-calendar-control { width: 42px; height: 42px; flex: none; font-size: 23px; line-height: 1; }
.mr-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.mr-calendar-week { color: var(--muted); font-size: 11px; line-height: 25px; }
.mr-calendar-day { min-height: 43px; padding: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
#mr-check-workspace .mr-calendar-day[aria-current="date"] { color: var(--brand); font-weight: 750; }
#mr-check-workspace .mr-calendar-day[aria-pressed="true"] { background: var(--brand); color: var(--panel); font-weight: 700; }
#mr-check-workspace .mr-calendar :is(.mr-calendar-control, .mr-calendar-day):disabled { color: #a7aaa6; cursor: default; }
.mr-calendar :is(.mr-calendar-control, .mr-calendar-day:not([aria-pressed="true"])):hover:not(:disabled) { background: var(--selection); }
.mr-calendar-today { display: block; min-height: 43px; width: 100%; margin-top: 6px; font-size: 13px; font-weight: 680; }
#mr-check-workspace .mr-calendar-today { color: var(--brand-deep); background: var(--selection); }
#mr-check-workspace .mr-heading .mr-refresh-time { margin-top: 3px; font-size: 12px; font-variant-numeric: tabular-nums; }
.mr-loading { display: flex; gap: 10px; align-items: center; justify-content: center; min-height: 124px; }
.mr-spinner {
  display: inline-block; width: 19px; height: 19px; flex: none; border-radius: 50%;
  border: 2px solid #d5e2d9; border-top-color: var(--brand); animation: mr-spin .75s linear infinite;
}
@keyframes mr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mr-spinner { animation: none; } }
.mr-workspace { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(288px, 1fr); gap: 18px; align-items: start; }
:is(.mr-list-panel, .mr-detail) { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.mr-day-summary { padding: 17px 16px 3px; }
.mr-day-summary-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mr-day-summary h2 { font-size: 13px; font-weight: 620; color: var(--muted); }
.mr-day-result { font-size: 15px; font-weight: 680; }
.mr-day-percent { font-size: 30px; line-height: 1; font-weight: 720; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.mr-day-summary[data-complete="true"] .mr-day-percent { color: var(--green); }
.mr-day-bar { display: flex; gap: 2px; height: 9px; margin-top: 12px; border-radius: 6px; overflow: hidden; }
.mr-day-bar span { flex-basis: 0; min-width: 0; background: var(--state-fill); }
.mr-filters { display: flex; flex-wrap: wrap; column-gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.mr-filter {
  display: inline-flex; align-items: center; gap: 5px; min-height: 46px; padding: 0 2px;
  background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted);
  font-size: 12px; white-space: nowrap; font-weight: 620;
}
.mr-filter:hover { color: var(--brand); }
.mr-filter[aria-pressed="true"] { color: var(--brand-deep); border-bottom-color: var(--brand); }
.mr-filter span { color: inherit; font-weight: 500; font-variant-numeric: tabular-nums; }
.mr-filter[data-tone]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--state-fill); }
.mr-search {
  display: flex; align-items: center; gap: 9px; min-height: 39px; flex: 1 1 175px;
  padding: 0 10px; border: 1px solid #e1e4dc; border-radius: 8px; color: var(--muted); background: #fcfcfa;
}
.mr-search input { width: 100%; min-width: 0; border: 0; padding: 8px 0; background: transparent; color: var(--ink); font-size: 13px; }
.mr-search input::placeholder { color: var(--muted); }
.mr-table { table-layout: fixed; width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.mr-table th { color: var(--muted); font-weight: 540; padding: 9px 6px; font-size: 11px; border-block: 1px solid var(--line); background: #f8f9f6; }
.mr-table th:nth-child(1) { width: 26%; padding-left: 16px; }
.mr-table th:nth-child(2) { width: 23%; }
.mr-table th:nth-child(3) { width: 51%; padding-right: 16px; }
.mr-table td { padding: var(--row-pad) 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mr-table td:first-child { padding-left: 16px; }
.mr-table td:last-child { padding-right: 16px; }
.mr-table tr[data-active="true"] { background: var(--selection); }
.mr-table tr[data-active="true"] td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.mr-table tr[data-order]:hover:not([data-active="true"]) { background: var(--row-hover); }
.mr-order-link { display: inline-block; padding: 0; border: 0; background: transparent; font-weight: 730; color: var(--brand-deep); text-align: left; overflow-wrap: anywhere; }
.mr-order-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mr-row-date { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.mr-stage { color: #485348; overflow-wrap: anywhere; }
.mr-row-result { display: flex; align-items: flex-start; gap: 7px; font-weight: 590; line-height: 1.32; }
[data-tone="issue"] { --state-ink: var(--red); --state-bg: var(--red-bg); --state-fill: #cb6b59; }
[data-tone="wait"] { --state-ink: var(--amber); --state-bg: var(--amber-bg); --state-fill: #d9a648; }
[data-tone="ok"] { --state-ink: var(--green); --state-bg: var(--green-bg); --state-fill: #398566; }
[data-tone="unknown"] { --state-ink: var(--gray); --state-bg: var(--gray-bg); --state-fill: #a0a9b7; }
.mr-row-result { color: var(--state-ink); }
.mr-list-foot { padding: 10px 16px; font-size: 12px; color: var(--muted); }
.mr-empty { color: var(--muted); padding: 24px 16px !important; }
.mr-detail { padding: 19px; scroll-margin-top: 12px; }
.mr-detail-head { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: baseline; }
.mr-detail-head h2 { font-size: 23px; font-weight: 720; line-height: 1.2; letter-spacing: -.045em; }
.mr-sum { white-space: nowrap; font-size: 17px; font-weight: 680; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.mr-meta { color: var(--muted); font-size: 12px; margin-top: 6px; }
.mr-find {
  background: var(--state-bg); color: var(--state-ink);
  border-radius: 9px; margin-top: 16px; padding: 13px; overflow-wrap: anywhere;
}
.mr-find-label { display: flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 700; }
#mr-check-workspace .mr-find h3 { font-size: 17px; line-height: 1.24; margin: 6px 0 4px; font-weight: 720; color: var(--ink); letter-spacing: -.02em; }
.mr-find p { font-size: 12px; color: var(--ink); }
#mr-check-workspace .mr-compare { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; gap: 8px; }
.mr-compare div { padding: 10px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; }
.mr-compare dt { color: var(--muted); font-size: 11px; }
#mr-check-workspace .mr-compare dd { margin-top: 3px; font-size: 12px; line-height: 1.35; font-weight: 680; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.mr-next { padding: 14px 0; border-bottom: 1px solid var(--line); }
#mr-check-workspace .mr-next h3 { font-size: 13px; font-weight: 720; margin-bottom: 3px; }
.mr-next p { color: var(--muted); font-size: 12px; }
.mr-links { display: flex; flex-wrap: wrap; gap: 7px 11px; margin-top: 9px; }
.mr-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--brand-deep); font-weight: 660; text-decoration: underline; text-underline-offset: 3px; }
.mr-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (max-width: 770px) {
  :is(.mr-top, .mr-main) { padding-left: 18px; padding-right: 18px; }
  .mr-workspace { grid-template-columns: minmax(0, 1.23fr) minmax(252px, 1fr); gap: 12px; }
  .mr-filters { column-gap: 8px; }
  .mr-detail { padding: 14px; }
}
@container (max-width: 640px) {
  .mr-workspace { grid-template-columns: minmax(0, 1fr); }
  .mr-top { min-height: 52px; }
  .mr-main { padding-top: 20px; }
  .mr-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
  .mr-filters { column-gap: 11px; }
}
@container (max-width: 370px) {
  :is(.mr-top, .mr-main) { padding-left: 12px; padding-right: 12px; }
  .mr-table :is(td, th):first-child { padding-left: 10px; }
  .mr-table :is(td, th):last-child { padding-right: 10px; }
  .mr-filter { min-height: 44px; }
}
@media (pointer: coarse) {
  .mr-order-link { min-height: 44px; }
  .mr-search input { font-size: 16px; }
}

body.oc-auth-page { display:grid; place-items:center; min-height:100svh; padding:16px; color:#142625; font:15px/1.45 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.oc-auth { background:#fff; width:min(100%,420px); padding:clamp(18px,5vw,32px); border:1px solid #dce6e2; border-radius:16px; box-sizing:border-box; }
.oc-auth header { display:flex; align-items:center; gap:10px; margin-bottom:22px; }
.oc-auth-logo { background:#115a4c; color:white; width:36px; height:36px; border-radius:10px; display:grid; place-items:center; font-size:12px; font-weight:700; }
.oc-auth h1 { margin:0; font-size:25px; line-height:1.18; letter-spacing:-.035em; }
.oc-auth p { margin:8px 0 16px; color:#516360; }
.oc-auth p.oc-auth-error { background:#fceeed; color:#a22e31; border-radius:8px; padding:8px 10px; }
.oc-auth form, .oc-auth label { display:grid; gap:7px; }
.oc-auth form { gap:14px; }
.oc-auth [hidden] { display:none; }
.oc-auth input:not([type="hidden"]), .oc-auth button { box-sizing:border-box; min-width:0; width:100%; border:1px solid #dce6e2; border-radius:8px; padding:10px 12px; font:inherit; }
.oc-auth button { border-color:#115a4c; background:#115a4c; color:#fff; font-weight:650; cursor:pointer; }
.oc-auth button:disabled { opacity:.5; cursor:default; }

.mr-shell { max-width: 1520px; margin: 0 auto; min-height: 100vh; }
.mr-mark { font-size: 11px; letter-spacing: .02em; }
.mr-logout, .mr-pager {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-height: 34px; padding: 0 11px;
}
.mr-pager { min-width: 34px; font-weight: 700; }
.mr-pager:disabled { opacity: .4; cursor: default; }
.mr-period { font-size: 12px; white-space: nowrap; }
.mr-sync { overflow-wrap: anywhere; }
#mr-check-workspace .mr-sync:is([data-state="stale"], [data-state="error"]) { color: var(--red); }
.mr-sync a { color: var(--brand-deep); text-underline-offset: 3px; }
.mr-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 16px; }
.mr-tools select {
  border: 1px solid #e1e4dc; border-radius: 8px; background: #fcfcfa; min-height: 39px;
  min-width: 0; max-width: 100%; padding: 0 8px; font-size: 13px;
}
.mr-search:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.mr-search input:focus-visible { outline: none; }
.mr-search-icon {
  position: relative; display: inline-block; width: 12px; height: 12px; flex: none;
  border: 1.5px solid currentColor; border-radius: 50%; margin: 0 2px;
}
.mr-search-icon::after {
  content: ""; position: absolute; width: 5px; height: 1.5px; background: currentColor;
  right: -4px; bottom: -2px; transform: rotate(45deg);
}
.mr-table tr[data-order] { cursor: pointer; }
.mr-table .mr-row-result { overflow-wrap: anywhere; }
.mr-state-icon {
  --icon-size: 18px;
  --icon-stroke: 1.5px;
  position: relative; display: inline-block; flex: none; width: var(--icon-size); height: var(--icon-size);
  border: var(--icon-stroke) solid currentColor; border-radius: 50%; background: var(--state-bg);
}
.mr-find-label .mr-state-icon { --icon-size: 20px; }
.mr-state-icon::before, .mr-state-icon::after { position: absolute; }
[data-tone="ok"] .mr-state-icon::before {
  content: ""; width: 58%; height: 34%; top: 45%; left: 50%;
  border-left: var(--icon-stroke) solid currentColor; border-bottom: var(--icon-stroke) solid currentColor;
  transform: translate(-50%, -50%) rotate(-45deg);
}
[data-tone="wait"] .mr-state-icon::before {
  content: ""; width: 28%; height: 36%; left: 46%; top: 20%;
  border-left: var(--icon-stroke) solid currentColor; border-bottom: var(--icon-stroke) solid currentColor;
  border-radius: 0 0 0 1px;
}
[data-tone="issue"] .mr-state-icon::before, [data-tone="issue"] .mr-state-icon::after {
  content: ""; left: 50%; width: var(--icon-stroke); border-radius: 2px;
  transform: translateX(-50%); background: currentColor;
}
[data-tone="issue"] .mr-state-icon::before { top: 21%; height: 38%; }
[data-tone="issue"] .mr-state-icon::after { top: 69%; height: var(--icon-stroke); }
[data-tone="unknown"] .mr-state-icon { border-style: dashed; }
[data-tone="unknown"] .mr-state-icon::before {
  content: ""; width: 38%; height: var(--icon-stroke); left: 50%; top: 50%;
  border-radius: 2px; transform: translate(-50%, -50%); background: currentColor;
}
.mr-list-foot, .mr-pages { display: flex; align-items: center; gap: 6px; }
.mr-list-foot { justify-content: space-between; min-height: 42px; }
.mr-pages[hidden] { display: none; }
#mr-check-workspace .mr-check-head { margin-top: 15px; font-size: 13px; }
.mr-checks { list-style: none; padding: 0; margin: 6px 0 0; }
.mr-checks li { border-top: 1px solid var(--line); }
.mr-checks summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 9px; min-height: 34px;
  padding: 7px 0; font-size: 13px; list-style: none; cursor: pointer;
}
.mr-checks summary::-webkit-details-marker { display: none; }
.mr-checks summary::after { content: "+"; font-weight: 600; margin-left: 1px; color: var(--muted); }
.mr-checks details[open] > summary::after { content: "−"; }
.mr-checks summary strong { flex: 1; font-weight: 600; }
.mr-check-status { color: var(--state-ink); text-align: right; font-size: 11px; font-weight: 600; }
.mr-check-body { padding: 0 0 10px; color: var(--muted); font-size: 12px; }
#mr-check-workspace .mr-check-body .mr-compare { margin-top: 7px; }
.mr-positions { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; margin-top: 10px; }
.mr-positions :is(th, td) { padding: 5px 3px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.mr-positions th { font-weight: 550; color: var(--muted); }
.mr-positions :is(th, td):not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; width: 24%; }
#mr-check-workspace .mr-positions-note { margin-top: 5px; color: var(--muted); font-size: 11px; }
.mr-links a:hover { color: var(--brand); }
@media (pointer: coarse) {
  .mr-tools select, .mr-pager, .mr-logout, .mr-checks summary { min-height: 44px; }
  .mr-period { min-height: 44px; }
  .mr-tools select { font-size: 16px; }
}
