/* The Tender site (tender.mira.microvac.co.id): its palette on Core's tokens, and its own pieces (t-*). Cool paper and
   navy ink like a bid binder; saffron for time, because deadlines are what this team missed; ok / wait / mute for
   go / consider / skip. Mocks: docs/web/design/tender.html. */
body[data-site="lpse"] {
  --bg: #f2f4f7; --bg-2: #e9edf2; --surface: #ffffff; --surface-2: #f7f9fb; --line: #e0e5ec; --line-2: #cdd5df;
  --ink: #0f1d33; --ink-2: #46546b; --ink-3: #5f6b7f;
  --brand: #13233d; --brand-2: #0d1a2f; --brand-3: #1d3151; --brand-ink: #e8edf5; --brand-ink-2: #9daac0;
  --accent: #c2410c; --accent-2: #a8380a; --accent-ink: #ffffff; --accent-soft: #fdece1; --accent-line: #f6c3a3;
  --focus: #2563eb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-site="lpse"] {
    --bg: #0e1218; --bg-2: #131922; --surface: #171e28; --surface-2: #1b2330; --line: #263040; --line-2: #34404f;
    --ink: #e7ebf1; --ink-2: #aab4c3; --ink-3: #8c98aa;
    --brand: #0b1322; --brand-2: #080f1b; --brand-3: #15213a; --brand-ink: #e3e9f3; --brand-ink-2: #8d9ab0;
    --accent: #fb923c; --accent-2: #fdab68; --accent-ink: #1c0d03; --accent-soft: #3a2314; --accent-line: #6b3a18;
    --focus: #7aa2ff;
  }
}
:root[data-theme="dark"] body[data-site="lpse"] {
  --bg: #0e1218; --bg-2: #131922; --surface: #171e28; --surface-2: #1b2330; --line: #263040; --line-2: #34404f;
  --ink: #e7ebf1; --ink-2: #aab4c3; --ink-3: #8c98aa;
  --brand: #0b1322; --brand-2: #080f1b; --brand-3: #15213a; --brand-ink: #e3e9f3; --brand-ink-2: #8d9ab0;
  --accent: #fb923c; --accent-2: #fdab68; --accent-ink: #1c0d03; --accent-soft: #3a2314; --accent-line: #6b3a18;
  --focus: #7aa2ff;
}

/* score tile */
.t-score { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font: 800 15px var(--f-ui); font-variant-numeric: tabular-nums; flex: none; background: var(--mute-soft); color: var(--mute); }
.t-score.v-go { background: var(--ok-soft); color: var(--ok); }
.t-score.v-consider { background: var(--wait-soft); color: var(--wait); }
.t-score.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 26px; }
.t-score.none { font-size: 12px; font-weight: 600; }

/* a tender in a list */
.t-list { display: grid; }
.t-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); color: inherit; }
.t-row:first-child { border-top: 0; }
.t-row:hover { text-decoration: none; background: var(--surface-2); }
.t-row .tt { font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.t-row .ag { font-size: var(--t-s); color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-row .mt { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.t-hps { font-weight: 700; font-size: var(--t-s); font-variant-numeric: tabular-nums; color: var(--ink); }

/* time chips */
.chip.t-time { background: var(--accent-soft); color: var(--accent-2); border-color: transparent; }
.chip.t-late { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.t-stage { background: var(--ink); color: var(--bg); border-color: transparent; }

/* deadline rows */
.t-dl { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); color: inherit; }
.t-dl:first-child { border-top: 0; }
.t-dl:hover { text-decoration: none; background: var(--surface-2); }
.t-day { text-align: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); padding: 5px 0; line-height: 1.1; }
.t-day b { display: block; font-size: 18px; }
.t-day small { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.t-day.late { background: var(--bad-soft); color: var(--bad); }
.t-day.calm { background: var(--bg-2); color: var(--ink-2); }
.t-dl .w { font-weight: 650; font-size: var(--t-s); color: var(--ink); }
.t-dl .s { font-size: var(--t-xs); color: var(--ink-3); }
.t-dl .cd { font-weight: 700; font-size: var(--t-s); color: var(--accent-2); text-align: right; white-space: nowrap; }
.t-dl .cd.late { color: var(--bad); } .t-dl .cd.calm { color: var(--ink-2); }

/* countdown banner */
.t-count { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 16px; border-radius: var(--r); background: var(--accent-soft); }
.t-count .big { font-weight: 800; font-size: 26px; color: var(--accent-2); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-count .big small { font-size: 14px; font-weight: 700; }
.t-count .w { font-size: var(--t-s); color: var(--ink-2); }
.t-count .w b { display: block; color: var(--ink); font-size: var(--t-m); }
.t-count.late { background: var(--bad-soft); } .t-count.late .big { color: var(--bad); }
.t-count.calm { background: var(--bg-2); } .t-count.calm .big { color: var(--ink); }
.t-count.past { background: var(--bg-2); } .t-count.past .big { color: var(--ink-3); font-size: 18px; }

/* blocker */
.t-block { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border: 1px dashed var(--bad); border-radius: var(--r); background: var(--bad-soft); font-size: var(--t-s); color: var(--ink-2); }
.t-block b { color: var(--bad); }
.t-block .ico { color: var(--bad); }

/* tender header */
.t-head { display: grid; gap: 8px; }
.t-head .lp { font: 600 12px var(--f-mono); color: var(--ink-3); }
.t-head .lp a { font-family: var(--f-ui); font-weight: 500; color: var(--accent); text-decoration: none; white-space: nowrap; }
.t-head h1 { font-size: var(--t-xl); line-height: 1.25; letter-spacing: -.01em; }
.t-head .ag { color: var(--ink-2); font-size: var(--t-s); }
.t-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.t-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.t-acts form { display: contents; }

/* facts */
.t-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; }
.t-facts > div { background: var(--surface); padding: 9px 12px; min-width: 0; }
.t-facts dt { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.t-facts dd { text-align: left; font-weight: 650; font-size: var(--t-s); margin-top: 1px; overflow-wrap: anywhere; }

/* score parts */
.t-parts { display: grid; gap: 10px; }
.t-part { display: grid; grid-template-columns: 112px minmax(0, 1fr) 46px; gap: 4px 10px; align-items: center; font-size: var(--t-s); }
.t-part .bar { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.t-part .bar i { display: block; height: 100%; border-radius: 4px; background: var(--ink-3); }
.t-part .bar i.lo { background: var(--bad); } .t-part .bar i.mid { background: var(--wait); } .t-part .bar i.hi { background: var(--ok); }
.t-part .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.t-part .v small { color: var(--ink-3); font-weight: 500; }
.t-part .why { grid-column: 2 / 4; font-size: var(--t-xs); color: var(--ink-3); }

/* schedule */
.t-tl { display: grid; padding: 4px 0; }
.t-st { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; position: relative; padding-bottom: 14px; }
.t-st::before { content: ''; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.t-st:last-child::before { display: none; }
.t-st .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; z-index: 1; }
.t-st.done .dot { background: var(--ink-3); border-color: var(--ink-3); }
.t-st.done .dot::after { content: ''; width: 8px; height: 5px; border: 2px solid var(--surface); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.t-st.now .dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.t-st.now .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.t-st .n { font-size: var(--t-s); font-weight: 600; }
.t-st.key .n { font-weight: 800; }
.t-st.done .n { color: var(--ink-3); font-weight: 500; }
.t-st .d { font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.t-st .d b { color: var(--accent-2); }
.t-st .chg { font-size: var(--t-xs); color: var(--bad); font-weight: 600; }
.t-now { display: flex; align-items: center; gap: 8px; margin: -4px 0 10px 32px; font: 700 11px var(--f-mono); color: var(--accent-2); text-transform: uppercase; letter-spacing: .05em; }
.t-now::after { content: ''; flex: 1; height: 1px; background: var(--accent); opacity: .5; }

/* requirements */
.t-req { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--t-s); }
.t-req:first-child { border-top: 0; }
.t-req .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.t-req .ic.met { background: var(--ok-soft); color: var(--ok); }
.t-req .ic.assumed { background: var(--wait-soft); color: var(--wait); }
.t-req .ic.missing, .t-req .ic.expired { background: var(--bad-soft); color: var(--bad); }
.t-req .ic.check { background: var(--mute-soft); color: var(--mute); }
.t-req small { display: block; color: var(--ink-3); font-size: var(--t-xs); }

/* timeline of events */
.t-ev { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--t-s); }
.t-ev:first-child { border-top: 0; }
.t-ev time { color: var(--ink-3); font-size: var(--t-xs); }
.t-src { font: 700 10.5px var(--f-mono); text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 4px; margin-right: 6px; white-space: nowrap; }
.t-src.team { background: var(--ink); color: var(--bg); }
.t-src.public { background: var(--info-soft); color: var(--info); }
.t-src.account { background: var(--wait-soft); color: var(--wait); }

/* pipeline */
.t-pipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.t-col { background: var(--bg-2); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 420px; }
.t-col h3 { display: flex; justify-content: space-between; font-size: var(--t-s); padding: 2px 4px 4px; }
.t-col h3 span { color: var(--ink-3); font: 600 12px var(--f-mono); }
.t-col .none { color: var(--ink-3); font-size: var(--t-xs); padding: 4px; }
.t-pc { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 6px; box-shadow: var(--shadow-1); color: inherit; }
.t-pc:hover { text-decoration: none; border-color: var(--line-2); }
.t-pc .tt { font-weight: 650; font-size: var(--t-s); line-height: 1.3; color: var(--ink); }
.t-pc .ag { font-size: var(--t-xs); color: var(--ink-3); }
.t-pc .mt { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: var(--t-xs); color: var(--ink-3); }
@media (max-width: 1099px) { .t-pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* account */
.t-acct { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.t-acct:first-child { border-top: 0; }
.t-acct .n { font-weight: 700; }
.t-acct .s { font-size: var(--t-xs); color: var(--ink-3); grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.t-meter { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.t-meter i { display: block; height: 100%; background: var(--ink-2); }

/* bid workspace */
.t-prog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.t-prog > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.t-prog small { font-size: 11px; color: var(--ink-3); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.t-prog b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.t-prog .bar { height: 4px; border-radius: 2px; background: var(--bg-2); margin-top: 6px; overflow: hidden; }
.t-prog .bar i { display: block; height: 100%; background: var(--ok); }
.t-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 14px; border-top: 1px solid var(--line); font-size: var(--t-s); }
.t-item:first-child { border-top: 0; }
.t-item .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-2); margin-top: 1px; background: none; padding: 0; cursor: pointer; }
.t-item.done .box { background: var(--ok); border-color: var(--ok); }
.t-item.done .w { color: var(--ink-3); text-decoration: line-through; }
.t-item.doing .box { border-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft) 50%, transparent 50%); }
.t-item.na .w { color: var(--ink-3); }
.t-item .o { font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }

/* desk layouts */
.t-grid { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.t-cols { display: grid; gap: 16px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
@media (min-width: 1100px) { .t-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.t-table td .tt { font-weight: 650; color: var(--ink); }
.t-table td .ag { font-size: var(--t-xs); color: var(--ink-3); }
.t-more { justify-self: center; }
.t-status { font-size: var(--t-xs); color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 759px) {
  .t-acts { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .t-acts .btn { height: 36px; padding: 0 13px; font-size: var(--t-s); flex: none; }
  .t-count .big { font-size: 22px; }
}
@media (max-width: 520px) { .t-prog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t-item .edit { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.t-item .edit:hover { background: var(--bg-2); }
.t-file { position: relative; overflow: hidden; }
.t-file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.t-row.sel { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.t-undo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
