/* METRIQOm ESG Collection Portal — demonstration. Tokens from metriqom.com (SITE.md). */
@font-face { font-family: 'Inter'; src: url(../fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Sora'; src: url(../fonts/sora.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }
:root {
  color-scheme: light;
  --navy-900: #061426; --navy-800: #0a1f38; --navy-700: #0e2a49; --navy-600: #143a63; --navy-500: #1d4e82;
  --green: #16b085; --green-400: #22c39a; --green-700: #0d7457; --blue: #2f6df0;
  --ink: #0b2545; --slate: #4d6076; --slate-300: #8aa0b4; --paper: #f4f7f9; --paper-2: #eaf1f5; --line: #e3ebf1;
  --amber-bg: #fff4d6; --amber-ink: #8a5a00; --red-bg: #fdecea; --red-ink: #b03a2e;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif; --display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 1px 2px rgba(6,20,38,.06), 0 6px 20px rgba(6,20,38,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 var(--font); -webkit-text-size-adjust: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 18px; line-height: 1.25; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mq { text-transform: none !important; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* banner + header */
.demo-banner { background: var(--amber-bg); color: var(--amber-ink); font-size: 12.5px; font-weight: 600; text-align: center; padding: 5px 12px; letter-spacing: .01em; }
.hdr { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.hdr-in { max-width: 1280px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 26px; display: block; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--slate); border-left: 1px solid var(--line); padding-left: 10px; }
.nav { display: flex; gap: 0; flex-wrap: nowrap; flex: 1; min-width: 0; }
.nav a { color: var(--slate); font-weight: 600; font-size: 14px; padding: 7px 10px; white-space: nowrap; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; }
.nav a:hover { background: var(--paper); text-decoration: none; color: var(--ink); }
.nav a.on { background: var(--paper-2); color: var(--ink); }
.badge { background: var(--blue); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.hdr-right { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--slate); }
.clock-pill { background: var(--navy-800); color: #fff; border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.clock-pill b { color: var(--green-400); font-weight: 700; }
.clip { width: 14px; height: 14px; fill: none; stroke: var(--slate); stroke-width: 2; stroke-linecap: round; vertical-align: -2px; margin-right: 2px; }
.nowrap-row { flex-wrap: nowrap; }
table.t.fixed { table-layout: fixed; }
table.t.fixed td { overflow-wrap: anywhere; }
.linkbtn { background: none; border: 0; color: var(--blue); font: inherit; cursor: pointer; padding: 0; }

/* layout */
main { max-width: 1280px; margin: 0 auto; padding: 22px 20px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .sub { color: var(--slate); margin-top: 4px; }
.promise { font-family: var(--display); font-size: 15px; color: var(--green-700); font-weight: 600; margin-bottom: 6px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid2 > .card + .card { margin-top: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.foot { border-top: 1px solid var(--line); background: #fff; color: var(--slate-300); font-size: 12px; }
.foot-in { max-width: 1280px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font: 600 14px var(--font); padding: 9px 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--paper); text-decoration: none; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-700); border-color: var(--green-700); }
.btn.navy { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn.navy:hover { background: var(--navy-600); }
.btn.warn { background: #fff; border-color: #f0c869; color: var(--amber-ink); }
.btn.warn:hover { background: var(--amber-bg); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
form.inline { display: inline; margin: 0; }
label.f { display: block; font-weight: 600; font-size: 13.5px; margin: 14px 0 6px; }
label.f .req { color: var(--red-ink); }
label.f .opt { color: var(--slate); font-weight: 500; }
.in, select.in, textarea.in { width: 100%; font: 15px var(--font); color: var(--ink); border: 1px solid #cfdbe5; border-radius: 10px; padding: 10px 12px; background: #fff; }
.in:focus, textarea.in:focus, select.in:focus { outline: 2px solid rgba(22,176,133,.35); border-color: var(--green); }
textarea.in { min-height: 120px; resize: vertical; }
.unit-in { display: flex; align-items: stretch; }
.unit-in .in { border-radius: 10px 0 0 10px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.unit-in span { display: flex; align-items: center; padding: 0 14px; border: 1px solid #cfdbe5; border-left: 0; border-radius: 0 10px 10px 0; background: var(--paper); color: var(--slate); font-weight: 600; }
.hint { font-size: 13px; color: var(--slate); margin-top: 5px; }
.flash { border-radius: 10px; padding: 11px 14px; margin-bottom: 14px; font-size: 14px; border: 1px solid; }
.flash.ok { background: #effaf6; border-color: #b9e8d8; color: var(--green-700); }
.flash.error { background: var(--red-bg); border-color: #f2c1bb; color: var(--red-ink); }
.errors { background: var(--red-bg); border: 1px solid #f2c1bb; color: var(--red-ink); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.st-not_started { background: #eef2f5; color: var(--slate); }
.st-draft { background: #eef0fb; color: #4c55a8; }
.st-submitted { background: #eaf1fe; color: #1e4fb8; }
.st-returned { background: var(--amber-bg); color: var(--amber-ink); }
.st-approved { background: #e3f6f0; color: var(--green-700); }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 1px 7px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tag.late { background: var(--red-bg); color: var(--red-ink); }
.tag.missing { background: var(--amber-bg); color: var(--amber-ink); }
.tag.var { background: #f3eefe; color: #5b3fb6; }
.tag.ok { background: #e3f6f0; color: var(--green-700); }
.k-assignment { background: #eaf1fe; color: #1e4fb8; }
.k-reminder { background: #e3f6f0; color: var(--green-700); }
.k-overdue { background: var(--red-bg); color: var(--red-ink); }
.k-escalation { background: #fde7dd; color: #9a4310; }
.k-returned { background: var(--amber-bg); color: var(--amber-ink); }
.k-approved { background: #e9f7e9; color: #0b6b0b; }

/* dashboard */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tile .v { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile .l { color: var(--slate); font-size: 13px; font-weight: 600; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.tile .l i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.tile.alert { border-color: #f2c1bb; }
.tile.alert .v { color: var(--red-ink); }
.bars { display: grid; gap: 14px; }
.bar-row .bl { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.bar-row .bl span { color: var(--slate); font-weight: 500; font-size: 13px; }
.bar { display: flex; height: 26px; border-radius: 7px; overflow: hidden; gap: 2px; background: #fff; }
.bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; min-width: 4px; }
.seg-approved { background: var(--green); }
.seg-submitted { background: var(--blue); }
.seg-returned { background: #f2b33d; color: #4a3000 !important; }
.seg-draft { background: #8d95d6; }
.seg-not_started { background: #c8d3dd; color: var(--ink) !important; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--slate); margin-bottom: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.kpi2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi2 .k { background: var(--paper); border-radius: 12px; padding: 14px; }
.kpi2 .kv { font-family: var(--display); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi2 .kl { font-size: 13px; color: var(--slate); }
.meter { height: 8px; border-radius: 99px; background: #dde6ed; overflow: hidden; margin: 8px 0 6px; }
.meter i { display: block; height: 100%; background: var(--green); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); padding: 0 10px 8px; border-bottom: 1px solid var(--line); font-weight: 700; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #fafcfd; }
table.t .ttl { font-weight: 600; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed li { display: grid; grid-template-columns: 88px 1fr; gap: 10px; font-size: 13.5px; }
.feed time { color: var(--slate-300); font-size: 12.5px; white-space: nowrap; }
.feed b { font-weight: 600; }
.feed .engine { color: var(--green-700); }

/* outbox */
.ob { display: grid; grid-template-columns: 420px 1fr; gap: 16px; align-items: start; }
.ob-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-height: 76vh; overflow-y: auto; }
.ob-list a { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.ob-list a:hover { background: var(--paper); text-decoration: none; }
.ob-list a.on { background: #eef6fb; box-shadow: inset 3px 0 0 var(--blue); }
.ob-list .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--slate); margin-bottom: 3px; }
.ob-list .subj { font-weight: 600; font-size: 14px; line-height: 1.35; }
.ob-list .to { font-size: 12.5px; color: var(--slate); }
.ob-view iframe { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 10px 0 12px; }
.linkbox code { font-size: 12.5px; color: var(--navy-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filters a { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--slate); }
.filters a.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* review */
.rv { display: grid; gap: 14px; }
.rv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: grid; grid-template-columns: 1fr 330px; gap: 18px; }
.rv-card.flagged { border-left: 4px solid #f2b33d; }
.rv-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.dept { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--navy-600); border-radius: 99px; padding: 2px 9px; }
.vals { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 26px; margin: 10px 0; }
.vals .vl { font-size: 12px; color: var(--slate); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.vals .vv { font-family: var(--display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.answer { background: var(--paper); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; margin: 8px 0; }
.ev { font-size: 13.5px; display: grid; gap: 4px; margin-top: 6px; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.rv-act { border-left: 1px solid var(--line); padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.rv-act textarea { min-height: 84px; font-size: 14px; }

/* detail timeline */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl li { position: relative; padding: 0 0 14px 24px; font-size: 14px; }
.tl li::before { content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--slate-300); }
.tl li.e-ok::before { border-color: var(--green); background: var(--green); }
.tl li.e-ret::before { border-color: #f2b33d; background: #f2b33d; }
.tl li.e-eng::before { border-color: var(--green-700); }
.tl li.e-sub::before { border-color: var(--blue); background: var(--blue); }
.tl time { display: block; font-size: 12.5px; color: var(--slate-300); }
.tl .det { color: var(--slate); font-size: 13.5px; }

/* contributor */
.contrib main { max-width: 860px; }
.req-list { display: grid; gap: 10px; }
.req-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; color: var(--ink); box-shadow: var(--shadow); }
.req-item:hover { text-decoration: none; border-color: #c6d5e2; }
.req-item .rt { font-weight: 600; font-size: 15.5px; }
.req-item .rm { font-size: 13px; color: var(--slate); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.req-item .go { color: var(--blue); font-weight: 600; font-size: 14px; }
.guide { background: var(--paper); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--slate); margin: 10px 0 4px; }
.prev { display: flex; gap: 8px; align-items: baseline; font-size: 14px; margin-top: 8px; color: var(--slate); }
.prev b { color: var(--ink); font-variant-numeric: tabular-nums; }
.returned-box { background: var(--amber-bg); border: 1px solid #f0d58e; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.returned-box b { color: var(--amber-ink); }
.ev-box { border: 1px dashed #c6d5e2; border-radius: 12px; padding: 12px 14px; margin-top: 16px; }
.ev-box h3 { font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.files { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.files li { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--paper); border-radius: 8px; padding: 7px 10px; font-size: 14px; }
.drop { display: block; border: 2px dashed #c6d5e2; border-radius: 12px; padding: 16px; text-align: center; color: var(--slate); cursor: pointer; margin-top: 8px; background: #fff; }
.drop:hover { border-color: var(--green); color: var(--green-700); }
.drop input { display: block; margin: 8px auto 0; font-size: 13px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.done { background: #effaf6; border: 1px solid #b9e8d8; color: var(--green-700); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-weight: 600; }

/* login */
.login-wrap { min-height: calc(100vh - 130px); display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: linear-gradient(160deg, #0d2743 0%, #0a1f38 55%, #061426 100%); color: #fff; padding: 56px 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.login-art img { width: 210px; }
.login-art .lp { font-family: var(--display); font-size: 28px; line-height: 1.25; font-weight: 600; max-width: 520px; }
.login-art ul { margin: 0; padding-left: 18px; color: #c9d7e4; display: grid; gap: 6px; max-width: 520px; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-form .card { width: 100%; max-width: 400px; }

/* presenter */
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; }

@media (max-width: 1499px) {
  .hdr.staff .brand span { display: none; }
}
@media (max-width: 1100px) {
  .hdr-in { flex-wrap: wrap; }
  .nav { flex-wrap: wrap; order: 3; flex-basis: 100%; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .grid2, .ob { grid-template-columns: 1fr; }
  .rv-card { grid-template-columns: 1fr; }
  .rv-act { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .hdr-in { padding: 10px 14px; gap: 10px; }
  .brand span { display: none; }
  main { padding: 16px 14px 32px; }
  h1 { font-size: 22px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { padding: 30px 22px; }
  .login-art .lp { font-size: 21px; }
  table.t.stack thead { display: none; }
  table.t.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.t.stack td { display: block; border: 0; padding: 3px 4px; }
  .vals { grid-template-columns: repeat(2, auto); }
  .form-actions .btn { flex: 1; }
  .feed li { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- v2: lean workflow ---------- */
.in.sm, select.in.sm { padding: 6px 9px; font-size: 13.5px; border-radius: 8px; width: auto; }
.needs { border-left: 4px solid var(--green); margin-bottom: 16px; }
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acts li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.acts li:last-child { border-bottom: 0; }
.a-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--paper-2); color: var(--navy-600); }
.a-q .a-ic { background: #f3eefe; color: #5b3fb6; }
.a-r .a-ic { background: #eaf1fe; color: #1e4fb8; }
.a-n .a-ic { background: var(--amber-bg); color: var(--amber-ink); }
.a-o .a-ic { background: var(--red-bg); color: var(--red-ink); }
.a-c .a-ic, .a-none .a-ic { background: #e3f6f0; color: var(--green-700); }
.a-t b { font-size: 14.5px; }
.a-d { font-size: 13px; color: var(--slate); margin-top: 1px; }
.a-b { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.auto-note { margin: 10px 0 0; font-size: 12.5px; color: var(--green-700); background: #effaf6; border-radius: 8px; padding: 7px 10px; }

.gwrap { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; }
table.grid { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.grid th { background: var(--paper); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); padding: 8px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.grid td { padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tfoot td { background: var(--paper); font-weight: 700; border-top: 1px solid #d5e0e9; border-bottom: 0; }
table.grid .r { text-align: right; }
table.grid th.r { text-align: right; }
table.grid .b { font-weight: 700; }
table.grid.compact td, table.grid.compact th { padding: 4px 8px; font-size: 12.5px; }
table.grid.edit td { padding: 4px 6px; }
table.grid input.cell { width: 118px; text-align: right; font: 600 14px var(--font); font-variant-numeric: tabular-nums; color: var(--ink); border: 1px solid #cfdbe5; border-radius: 7px; padding: 6px 8px; background: #fff; }
table.grid input.cell:focus { outline: 2px solid rgba(22,176,133,.35); border-color: var(--green); }
table.grid input.cell.pasted { background: #effaf6; }
table.grid input.cell:disabled { background: var(--paper); color: var(--slate-300); }
.chg-hi { color: #5b3fb6 !important; font-weight: 800; background: #f3eefe; }
table.grid tr.pending td, table.t tr.pending td { color: var(--slate-300); }
table.t tr.pending .ttl, table.t tr.pending a { color: #6f8bb5; }

.thread { display: grid; gap: 8px; margin: 10px 0; }
.msg { border-radius: 12px; padding: 9px 12px; font-size: 14px; max-width: 92%; }
.msg.theirs { background: var(--paper-2); justify-self: start; }
.msg.mine { background: #eaf1fe; justify-self: end; }
.msg.k-return { background: var(--amber-bg); }
.msg-h { font-size: 12px; color: var(--slate); margin-bottom: 2px; }
.msg-b { white-space: pre-wrap; }
.th-d { margin-top: 8px; }
.th-d summary { cursor: pointer; color: var(--blue); }

.fu { display: grid; gap: 10px; margin-top: 10px; }
.fu-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--paper); border-radius: 10px; padding: 10px 12px; flex-wrap: wrap; }
.grid2 > div > .card + .card { margin-top: 16px; }

.formgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.formgrid.four { grid-template-columns: repeat(4, 1fr); }
.formgrid .span2 { grid-column: span 2; }
.pform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.pform .in { min-width: 150px; }
details.inline-edit summary { list-style: none; cursor: pointer; display: inline-flex; }
details.inline-edit summary::-webkit-details-marker { display: none; }
.tabs { margin-bottom: 14px; }
.tabs a { font-size: 13.5px; padding: 6px 14px; }

table.t.cons td.r, table.t.cons th.r { text-align: right; }
table.t.cons tr.subrow td { padding-top: 0; }
table.t.cons tr.subrow summary { cursor: pointer; color: var(--blue); margin: 2px 0 6px; }
.cons-sum { margin-bottom: 16px; }
.cs-k { margin-top: 8px; font-size: 14px; }

.xl-card { margin-top: 18px; background: #fbfdfe; }
.inline-upload input[type=file] { font-size: 13px; max-width: 260px; }
details.handover summary { cursor: pointer; }

@media (max-width: 1100px) {
  .formgrid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .acts li { grid-template-columns: 30px 1fr; }
  .a-b { grid-column: 1 / -1; justify-content: flex-start; }
  .formgrid, .formgrid.four { grid-template-columns: 1fr; }
  .formgrid .span2 { grid-column: auto; }
  table.grid input.cell { width: 96px; font-size: 13.5px; }
  .msg { max-width: 100%; }
}

.contrib main { max-width: 1000px; }
table.t.cons { table-layout: fixed; }
table.t.cons td { overflow-wrap: anywhere; }
