:root {
  color-scheme:light;
  font-family:"DM Sans",Inter,Arial,sans-serif;
  --ink:#18263a; --muted:#526074; --line:#dbe3e9; --page:#f5f7fa;
  --nav:#162737; --teal:#126b5b; --teal-dark:#0d5448; --teal-light:#e4f4ed;
  --om-record-title:22px;
  color:var(--ink);
  background:var(--page);
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-width:300px; }
a { color:inherit; }
button,input,select,textarea { font:inherit; }
button,.button { cursor:pointer; }
button:disabled { cursor:default; opacity:.52; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #55bfa7; outline-offset:2px; }
.skip { position:absolute; left:1rem; top:.5rem; padding:.6rem; background:white; transform:translateY(-180%); z-index:2; }
.skip:focus { transform:none; }
.shell { display:grid; grid-template-columns:242px minmax(0,1fr); min-height:100svh; }
.sidebar { position:sticky; top:0; height:100svh; display:flex; flex-direction:column; background:var(--nav); color:#dfe8ee; padding:26px 16px 20px; overflow:auto; }
.brand { display:flex; gap:12px; align-items:center; padding:3px 10px 23px; text-decoration:none; color:#fff; }
.brand strong { letter-spacing:-.045em; font-size:24px; }
.brand small { display:block; margin-top:2px; color:#b9cdd3; font-size:12px; letter-spacing:.045em; }
.brand-symbol { width:36px; height:36px; display:flex; gap:3px; align-items:center; justify-content:center; border-radius:11px; background:#a9e6cd; transform:rotate(-8deg); }
.brand-symbol i { display:block; width:4px; height:13px; background:#145e50; border-radius:5px; }
.brand-symbol i:nth-child(2) { height:20px; }
.sidebar nav { display:grid; gap:4px; }
.sidebar nav p { margin:19px 10px 6px; text-transform:uppercase; color:#9fb5c0; letter-spacing:.105em; font-size:11px; font-weight:700; }
.sidebar nav a { display:flex; align-items:center; gap:10px; padding:10px; font-size:14px; font-weight:600; text-decoration:none; border-radius:7px; white-space:nowrap; }
.sidebar nav a span { text-align:center; width:18px; font-size:17px; color:#a9d9cc; }
.sidebar nav a:hover,.sidebar nav a[aria-current="page"] { background:#254354; color:#fff; }
.account { display:flex; align-items:center; gap:9px; margin-top:auto; padding:15px 4px 0; border-top:1px solid #35505e; font-size:13px; overflow-wrap:anywhere; }
.account strong,.account span { display:block; }
.account span { color:#b4cad3; margin-top:2px; }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:13px 32px; min-height:54px; background:#fff; border-bottom:1px solid var(--line); color:var(--muted); font-size:14px; font-weight:600; }
main { padding:38px 32px 60px; max-width:1470px; margin:auto; }
.view-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:22px; }
h1,h2,p { margin:0; }
h1,h2 { letter-spacing:-.025em; }
h1 { font-size:clamp(24px,3.5vw,34px); font-weight:730; line-height:1.17; }
h2 { font-size:var(--om-record-title); }
p { line-height:1.5; }
.view-head p,.subtle { color:var(--muted); margin-top:6px; }
.panel { background:white; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.toolbar { padding:15px 17px; display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; border-bottom:1px solid var(--line); }
.filters,.actions,.selection,.pager { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.filters input { min-width:210px; }
.selection { justify-content:space-between; padding:10px 17px; background:#ecf6f1; border-bottom:1px solid #c8e6db; font-size:14px; }
.button,button { min-height:38px; padding:7px 13px; border:1px solid #cbd6df; border-radius:7px; background:#fff; color:var(--ink); font-size:14px; font-weight:700; text-decoration:none; line-height:1.4; }
button:hover:not(:disabled),.button:hover { background:#f0f5f6; }
.primary { background:var(--teal); color:#fff; border-color:var(--teal); }
.primary:hover:not(:disabled) { background:var(--teal-dark); }
.text-button { min-height:0; background:transparent; color:var(--teal-dark); border:0; padding:3px 0; font-weight:700; text-align:left; }
.text-button:hover:not(:disabled) { text-decoration:underline; background:transparent; }
.danger { color:#923d31; }
input,select,textarea { border:1px solid #cbd6df; border-radius:7px; background:#fff; padding:8px 10px; min-height:38px; color:var(--ink); font-size:14px; }
input[type=checkbox],input[type=radio] { accent-color:var(--teal); min-height:0; width:16px; height:16px; margin:0; vertical-align:middle; }
textarea { min-height:110px; resize:vertical; }
.table-scroll { overflow:auto; }
table { border-collapse:collapse; width:100%; font-size:14px; text-align:left; }
th,td { padding:13px 16px; border-bottom:1px solid #e7edf1; vertical-align:middle; }
th { color:#43546a; background:#f8fafb; font-size:13px; font-weight:750; white-space:nowrap; }
td { overflow-wrap:anywhere; }
tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#f8fafb; }
td.check,th.check { width:40px; padding-right:4px; }
.cell-detail { display:block; color:var(--muted); font-size:12px; margin-top:3px; }
.tag { display:inline-flex; align-items:center; padding:4px 8px; border-radius:5px; color:#41526a; background:#edf1f5; font-weight:700; font-size:12px; line-height:1.2; white-space:nowrap; }
.tag.allowed,.tag.active,.tag.published,.tag.sandbox,.tag.submitted,.tag.completed { color:#115a47; background:#e2f3eb; }
.tag.blocked,.tag.unknown,.tag.failed { color:#8c3c2d; background:#fbede8; }
.tag.paused,.tag.unreviewed,.tag.skipped { color:#745308; background:#fbf1d9; }
.pager { padding:12px 17px; justify-content:space-between; border-top:1px solid var(--line); color:var(--muted); font-size:14px; }
.empty { padding:26px 17px; color:var(--muted); }
.notice { border:1px solid #b8ded2; background:#e9f6ef; border-radius:7px; padding:10px 13px; margin-bottom:16px; overflow-wrap:anywhere; }
.notice.error,.form-error { border-color:#eecac3; background:#fff2ee; color:#8b3529; }
.form-error { border:1px solid #eecac3; border-radius:6px; padding:10px 12px; overflow-wrap:anywhere; }
dialog { border:1px solid var(--line); border-radius:14px; color:var(--ink); width:min(690px,calc(100vw - 24px)); max-height:calc(100svh - 24px); padding:0; box-shadow:0 22px 70px #15273735; }
dialog::backdrop { background:#11223370; }
.dialog-head,.dialog-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:15px 20px; border-bottom:1px solid var(--line); }
.dialog-footer { justify-content:flex-end; border-bottom:0; border-top:1px solid var(--line); }
.dialog-content { display:grid; gap:15px; padding:18px 20px; }
.dialog-content label { display:grid; gap:5px; font-size:14px; font-weight:650; min-width:0; }
.dialog-content label :is(input,select,textarea) { width:100%; }
.dialog-content label :is(input[type=checkbox],input[type=radio]) { width:16px; }
.dialog-content .inline { display:flex; align-items:center; gap:8px; line-height:1.5; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
fieldset { margin:0; padding:10px 12px; border:1px solid var(--line); border-radius:7px; display:grid; gap:8px; }
legend { padding:0 6px; font-size:14px; font-weight:700; }
.close { min-height:32px; min-width:34px; font-size:18px; padding:0; }
.preview { padding:13px 14px; border:1px solid var(--line); border-radius:8px; background:#f7faf9; overflow-wrap:anywhere; }
.preview pre { white-space:pre-wrap; font:inherit; margin:7px 0 0; }
.preview select { width:100%; margin-bottom:10px; }
dialog details { font-size:14px; }
dialog summary { cursor:pointer; }
.delivery-note { display:flex; gap:8px; align-items:center; }
@media (max-width:900px) {
  .shell { grid-template-columns:195px minmax(0,1fr); }
  .sidebar { padding-inline:12px; }
  .topbar { padding-inline:20px; }
  main { padding-inline:20px; }
}
@media (max-width:630px) {
  :root { --om-record-title:18px; }
  .shell { display:block; }
  .sidebar { position:static; height:auto; padding:11px 12px 9px; }
  .brand { padding:2px 2px 8px; }
  .brand strong { font-size:20px; }
  .brand small,.sidebar nav p,.account { display:none !important; }
  .brand-symbol { width:29px; height:29px; }
  .sidebar nav { display:flex; gap:3px; overflow:auto; padding-bottom:2px; }
  .sidebar nav a { padding:6px 8px; }
  .sidebar nav a span { display:none; }
  .topbar { padding:7px 13px; min-height:40px; }
  main { padding:21px 13px 38px; }
  .view-head { flex-wrap:wrap; margin-bottom:16px; }
  .toolbar,.selection,.pager { padding-inline:11px; }
  .filters { width:100%; }
  .filters input { width:100%; }
  .filters select { max-width:100%; }
  th,td { padding:10px 11px; }
  .dialog-head,.dialog-footer,.dialog-content { padding:12px 14px; }
}

.topbar-actions { display:flex; align-items:center; gap:8px; }
.topbar-actions button { min-height:32px; padding:5px 10px; }
.signin-body {
  min-height:100vh;
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:clamp(16px,4vw,32px);
  background:#f5f7f3;
}
.signin-main { display:grid; gap:10px; width:min(100%,440px); }
.signin-box {
  background:#fff;
  border:1px solid #d9e2d8;
  border-radius:20px;
  box-shadow:0 18px 42px -26px #173d3540,0 2px 6px #173d350c;
}
.signin-brand-area {
  display:grid;
  justify-items:center;
  padding:clamp(22px,6vw,30px) 22px;
  background:#eaf1e6;
  border-bottom:1px solid #d9e2d8;
  border-radius:19px 19px 0 0;
}
.signin-brand { display:block; width:min(100%,clamp(176px,48vw,190px)); height:auto; }
.signin-content {
  display:grid;
  gap:22px;
  padding:clamp(22px,6vw,36px);
}
.signin-header { display:grid; justify-items:center; text-align:center; }
.signin-header h1 { color:#173a32; font-size:clamp(20px,4vw,22px); text-wrap:balance; }
.signin-header p { margin-top:8px; color:#4c5e58; font-size:15px; text-wrap:pretty; }
.signin-box .form-error { margin:0; font-size:14px; }
.signin-box small { display:block; margin-top:5px; font-size:12px; }
.signin-methods {
  display:grid;
  grid-template-columns:minmax(0,1fr) 19px minmax(0,max-content) minmax(0,1fr);
  row-gap:10px;
}
.signin-methods .button {
  display:grid;
  grid-column:1 / -1;
  grid-template-columns:subgrid;
  align-items:center;
  min-height:52px;
  color:#223a31;
  border-color:#7c9184;
  border-radius:10px;
  font-size:15px;
}
.signin-methods .button:hover { background:#f1f6f1; border-color:#4e6e5d; }
.signin-methods img { grid-column:2; display:block; object-fit:contain; }
.signin-methods .button span { grid-column:3; margin-inline-start:10px; }
.signin-sandbox {
  display:inline-flex;
  align-items:center;
  justify-self:center;
  min-height:44px;
  padding:0 10px;
  border-radius:5px;
  font-size:13px;
  color:#4c5e58;
  text-underline-offset:3px;
}
.signin-sandbox:hover { color:#173a32; }
.signin-main a:focus-visible { outline-color:#28654e; }
