/* Diverse Autobody SOP hub. Look and tokens taken from the public website (diverse-website/client/src/index.css). */
@font-face { font-family: "DM Mono"; font-weight: 400; font-display: swap; src: url("/a/dm-mono-400.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-display: swap; src: url("/a/dm-mono-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400 700; font-display: swap; src: url("/a/manrope.woff2") format("woff2"); }
@font-face { font-family: "Oxanium"; font-weight: 400 700; font-display: swap; src: url("/a/oxanium.woff2") format("woff2"); }

:root {
  --ink: #121313; --ink-soft: #202121; --ink-muted: #5f6260;
  --paper: #e7e8e6; --paper-deep: #d4d6d3; --white: #f7f8f6;
  --orange: #ec5629; --orange-light: #fa6a3e; --green: #3d7a4a; --amber: #b77a12;
  --line: rgba(18,19,19,.17); --line-light: rgba(255,255,255,.18);
  --mono: "DM Mono", monospace; --body: "Manrope", system-ui, sans-serif; --display: "Oxanium", "Manrope", sans-serif;
  --ease: cubic-bezier(.23,1,.32,1);
  --wrap: min(100% - 48px, 1180px);
}
* { box-sizing: border-box; }
html { background: var(--ink); overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--body); overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: var(--wrap); margin: 0 auto; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header (same pattern as the website's announcement bar + nav) */
.announce { height: 31px; display: flex; align-items: center; justify-content: center; gap: 11px; background: #0a0a0a; border-bottom: 1px solid var(--line-light); font: 400 9px/1 var(--mono); letter-spacing: .11em; color: rgba(255,255,255,.85); text-transform: uppercase; }
.announce i { width: 3px; height: 3px; border-radius: 50%; background: var(--orange); }
.announce.preview { background: var(--orange); color: #fff; } .announce.preview i { background: #fff; }
.top { background: var(--ink); color: var(--white); }
.nav { width: var(--wrap); margin: 0 auto; height: 78px; display: flex; align-items: center; gap: 24px; }
.nav .logo img { width: 160px; height: auto; }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav .links a { position: relative; padding: 8px 0; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.84); }
.nav .links a::after { content: ""; position: absolute; bottom: 2px; left: 0; width: 0; height: 1px; background: var(--orange); transition: width 180ms var(--ease); }
.nav .links a:hover::after, .nav .links a[aria-current]::after { width: 100%; }
.nav .me { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.4); padding: 10px 13px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: none; cursor: pointer; transition: border-color 180ms var(--ease), background 180ms var(--ease); }
.nav .me:hover { border-color: var(--orange); background: var(--orange); }
.nav .me b { font-weight: 700; color: var(--orange-light); } .nav .me:hover b { color: #fff; }

/* Dark band (website hero) */
.band { position: relative; isolation: isolate; overflow: hidden; background: #0c0d0d; color: var(--white); padding: 70px 0 64px; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 78px 78px; mask-image: linear-gradient(90deg, #000, transparent 72%); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 88% 10%, rgba(236,86,41,.28), transparent 32%); }
.kicker { display: inline-flex; align-items: center; gap: 9px; font: 500 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.band .kicker { color: rgba(255,255,255,.82); }
.kicker > span.l { width: 22px; height: 1px; background: var(--orange); }
h1, h2, .display { font-family: var(--display); font-weight: 500; letter-spacing: -.05em; text-transform: uppercase; }
h1 { margin: 22px 0 18px; max-width: 860px; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; }
h1 i, h2 i { color: var(--orange); font-style: normal; font-weight: 600; }
.lede { max-width: 560px; margin: 0; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.75; }
.back { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.back:hover { color: #fff; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 53px; padding: 0 20px 0 22px; border: 1px solid transparent; font: 700 11px/1 var(--body); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: transform 160ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), opacity 180ms; }
.button:active { transform: scale(.97); }
.button.primary { background: var(--orange); color: #fff; } .button.primary:hover { background: var(--orange-light); }
.button.ghost { border-color: var(--line); background: transparent; color: var(--ink); } .button.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.button.light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; } .button.light:hover { background: #fff; color: var(--ink); }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.button.small { min-height: 40px; padding: 0 14px; font-size: 10px; gap: 10px; }

/* Search + areas (home) */
.search { position: relative; margin-top: 36px; max-width: 640px; }
.search input { width: 100%; height: 60px; padding: 0 20px 0 52px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; font-size: 16px; border-radius: 0; -webkit-appearance: none; }
.search input::placeholder { color: rgba(255,255,255,.55); }
.search input:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,.1); }
.search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); opacity: .7; }
.areas { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 5; }
.areas::-webkit-scrollbar { display: none; }
.areas .wrap { display: flex; }
.areas button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 58px; padding: 0 20px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink-muted); }
.areas button:first-child { padding-left: 0; }
.areas button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.areas button small { font: 500 10px/1 var(--mono); color: var(--ink-muted); }

.mine { display: none; margin: 0 0 8px; padding: 18px 20px; border-left: 2px solid var(--orange); background: var(--white); font-size: 14px; }
.mine.on { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mine b { font-family: var(--display); font-size: 20px; letter-spacing: -.03em; }

.list-section { padding: 46px 0 90px; }
.group { margin-bottom: 54px; }
.group-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.group-head h2 { margin: 10px 0 0; font-size: clamp(26px, 3vw, 38px); line-height: 1; }
.group-head .count { font: 500 11px/1 var(--mono); color: var(--ink-muted); }
.row { display: grid; grid-template-columns: 54px 1fr auto 28px; gap: 22px; align-items: center; min-height: 124px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background 180ms var(--ease), padding 180ms var(--ease); }
.row:hover { background: var(--white); padding-left: 14px; padding-right: 14px; }
.row .idx { font: 500 11px/1 var(--mono); color: var(--orange); }
.row h3 { margin: 0 0 6px; font: 500 clamp(21px, 2.1vw, 28px)/1.1 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.row p { margin: 0 0 10px; max-width: 640px; color: var(--ink-muted); font-size: 14px; line-height: 1.6; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.meta .new { color: var(--orange); }
.row .go { justify-self: end; transition: transform 180ms var(--ease); } .row:hover .go { transform: translateX(4px); }
.empty { padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; }
.none { display: none; padding: 40px 0; color: var(--ink-muted); }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border: 1px solid currentColor; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.signed { color: var(--green); } .pill.waiting { color: var(--ink-muted); } .pill.resign { color: var(--amber); } .pill.overdue { color: #fff; background: var(--orange); border-color: var(--orange); }
.pill.overdue::before { background: #fff; }
.pill:empty { display: none; }

/* SOP page */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; border-top: 1px solid var(--line-light); }
.facts div { padding: 18px 18px 0 0; border-right: 1px solid var(--line-light); margin-right: 18px; }
.facts div:last-child { border-right: 0; }
.facts dt { font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.facts dd { margin: 9px 0 0; font: 500 18px/1.2 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.facts dd.late { color: var(--orange-light); }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); padding: 56px 0 100px; }
.toc { position: sticky; top: 24px; align-self: start; }
.toc ol { list-style: none; margin: 16px 0 26px; padding: 0; border-top: 1px solid var(--line); }
.toc li a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.toc li a:hover { color: var(--ink); }
.body { max-width: 720px; }
.body h2 { margin: 54px 0 18px; padding-top: 18px; border-top: 1px solid var(--ink); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; scroll-margin-top: 20px; }
.body h2:first-child { margin-top: 0; }
.body h3 { margin: 30px 0 10px; font: 700 13px/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.body p { margin: 0 0 14px; }
.body ul { margin: 0 0 18px; padding: 0; list-style: none; }
.body ul li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); }
.body ul li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 12px; height: 1px; background: var(--orange); }
.steps { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps .n { font: 500 13px/1.6 var(--mono); color: var(--orange); }
.who { display: inline-block; margin-right: 9px; padding: 3px 7px; background: var(--ink); color: #fff; font: 500 9px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }
.warn { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 16px 18px; background: var(--ink); color: #fff; font-weight: 600; }
.warn span { display: grid; place-items: center; width: 24px; height: 24px; background: var(--orange); font: 700 13px/1 var(--display); }
.changed { margin: 0 0 40px; padding: 24px 24px 22px; background: var(--white); border-top: 2px solid var(--orange); }
.changed h2 { margin: 12px 0 8px !important; padding: 0 !important; border: 0 !important; font-size: 24px !important; }
.changed p { margin: 0; }
.you { display: none; margin: 0 0 30px; padding: 16px 18px; border: 1px solid var(--line); background: var(--white); font-size: 14px; align-items: center; gap: 12px; flex-wrap: wrap; }
.you.on { display: flex; }
.video { position: relative; aspect-ratio: 16/9; margin: 0 0 40px; background: #000; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.log { margin-top: 60px; }
.log ol { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.log li { display: grid; grid-template-columns: 70px 110px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.log li span { font: 500 11px/1.6 var(--mono); color: var(--ink-muted); }

/* Sign panel (website's dark fault card) */
.sign { position: relative; overflow: hidden; margin-top: 64px; padding: 42px clamp(22px, 5vw, 52px) 44px; background: var(--ink); color: #fff; scroll-margin-top: 16px; }
.sign::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background: radial-gradient(circle at 92% 0%, rgba(236,86,41,.35), transparent 35%); }
.sign > * { position: relative; }
.sign .kicker { color: rgba(255,255,255,.75); }
.sign h2 { margin: 16px 0 10px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; }
.sign p { color: rgba(255,255,255,.75); margin: 0 0 24px; font-size: 14px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 8px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.field select { width: 100%; height: 56px; padding: 0 16px; border: 1px solid rgba(255,255,255,.4); border-radius: 0; background: #1b1c1c; color: #fff; font-size: 16px; -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; margin: 6px 0 24px; padding: 16px; border: 1px solid rgba(255,255,255,.22); cursor: pointer; font-size: 15px; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); }
.msg { min-height: 22px; margin: 14px 0 0; font-size: 14px; color: var(--orange-light); }
.done { display: none; }
.sign.is-done form { display: none; } .sign.is-done .done { display: block; }
.done .tick { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; background: var(--orange); }
.sticky { display: none; }

/* Manager register */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; background: var(--line-light); border: 1px solid var(--line-light); }
.tiles div { padding: 20px 20px 18px; background: #0c0d0d; }
.tiles b { display: block; font: 500 44px/1 var(--display); letter-spacing: -.04em; }
.tiles span { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.tiles .hot b { color: var(--orange-light); }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); background: var(--white); }
.tabs button { height: 58px; padding: 0 22px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 13px; font-weight: 700; color: var(--ink-muted); cursor: pointer; }
.tabs button:first-child { padding-left: 0; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.reg { padding: 40px 0 90px; }
.card { margin-bottom: 26px; background: var(--white); border: 1px solid var(--line); }
.card-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; padding: 22px 22px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 6px 0 8px; font: 500 24px/1.1 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.bar { height: 4px; margin-top: 12px; background: var(--paper-deep); } .bar i { display: block; height: 100%; background: var(--orange); }
.people { width: 100%; border-collapse: collapse; font-size: 14px; }
.people td { padding: 12px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.people tr:last-child td { border-bottom: 0; }
.people .r { color: var(--ink-muted); font-size: 13px; }
.people .t { font: 500 11px/1.4 var(--mono); color: var(--ink-muted); text-align: right; }
.people td:last-child { text-align: right; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.copybox { display: none; margin: 0; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--paper); font: 400 13px/1.6 var(--mono); white-space: pre-wrap; }
.copybox.on { display: block; }
.how { margin-top: 50px; padding: 32px; background: var(--ink); color: #fff; }
.how h2 { margin: 14px 0 18px; font-size: 30px; }
.how ol { margin: 0 0 22px; padding-left: 20px; color: rgba(255,255,255,.82); font-size: 14px; }
.how li { margin-bottom: 8px; }
.how code { padding: 1px 5px; background: #2a2b2b; font: 400 12px/1.4 var(--mono); }
.how .kicker { color: rgba(255,255,255,.7); }

/* Picker dialog (who are you) */
dialog { width: min(100% - 32px, 460px); padding: 0; border: 0; background: var(--white); color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog .in { padding: 28px 24px 24px; }
dialog h2 { margin: 12px 0 18px; font-size: 28px; line-height: 1; }
dialog .names { display: grid; gap: 8px; max-height: 50vh; overflow: auto; margin-bottom: 18px; }
dialog .names button { min-height: 52px; padding: 0 16px; border: 1px solid var(--line); background: #fff; text-align: left; font-weight: 600; cursor: pointer; }
dialog .names button:hover, dialog .names button[aria-pressed="true"] { border-color: var(--orange); box-shadow: inset 3px 0 0 var(--orange); }

/* Footer */
.foot { padding: 46px 0 28px; background: #101111; color: rgba(255,255,255,.6); font-size: 13px; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot img { width: 150px; }
.foot a { color: rgba(255,255,255,.8); font-weight: 600; } .foot a:hover { color: #fff; }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; padding-top: 36px; }
  .toc { display: none; }
  .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(2) { border-right: 0; } .facts div:nth-child(n+3) { padding-top: 16px; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --wrap: min(100% - 36px, 1180px); }
  .nav { height: 66px; } .nav .logo img { width: 128px; } .nav .links { gap: 16px; } .nav .links a.hide-s { display: none; }
  .nav .me { padding: 9px 10px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .band { padding: 44px 0 40px; }
  h1 { font-size: clamp(34px, 10.5vw, 46px); margin: 18px 0 14px; }
  .lede { font-size: 15px; }
  .search { margin-top: 26px; } .search input { height: 56px; }
  .areas button { height: 52px; padding: 0 14px; }
  .row { grid-template-columns: 1fr 22px; gap: 12px; min-height: 0; padding: 20px 0; }
  .row:hover { padding-left: 0; padding-right: 0; background: none; }
  .row .idx { display: none; } .row .stat { grid-column: 1; grid-row: 2; } .row .go { grid-column: 2; grid-row: 1; }
  .facts { margin-top: 30px; } .facts dd { font-size: 16px; }
  .body { font-size: 16px; }
  .steps li { grid-template-columns: 34px 1fr; }
  .log li { grid-template-columns: 50px 1fr; } .log li span:nth-child(2) { grid-column: 2; } .log li div { grid-column: 1 / -1; }
  .sign { margin-left: -18px; margin-right: -18px; }
  .sticky { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: flex; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); background: rgba(18,19,19,.96); border-top: 1px solid var(--line-light); transition: transform 220ms var(--ease); }
  .sticky .button { width: 100%; }
  .sticky.hide { transform: translateY(110%); }
  body.has-sticky { padding-bottom: 76px; }
  .card-head { grid-template-columns: 1fr; } .actions { justify-content: flex-start; }
  .people td { padding: 12px 16px; } .people .r, .people .t.wide { display: none; }
  .tiles b { font-size: 36px; }
  .how { padding: 26px 20px; margin-left: -18px; margin-right: -18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top, .announce, .sign, .sticky, .foot, .toc, .areas { display: none !important; } body { background: #fff; } .band { color: #000; background: #fff; } .facts dd, .facts dt { color: #000; } }
.people td.lone { text-align: left; color: var(--ink-muted); }
