:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --ink: #1b2420;
  --ink-2: #4a5550;
  --ink-3: #7d8782;
  --line: #e6e3dc;
  --line-2: #d6d2c8;
  --brand: #16302b;
  --brand-2: #1f5f52;
  --brand-3: #e7f0ed;
  --accent: #e9b949;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --warn: #b54708;
  --warn-bg: #fef4e6;
  --ok: #217a4b;
  --ok-bg: #e6f4ec;
  --info: #1d5fa8;
  --info-bg: #e8f0fb;
  --s1: #b42318; --s2: #dc6803; --s3: #a67c00; --s4: #2e7d32; --s5: #1d5fa8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 48, 43, .06), 0 4px 16px rgba(22, 48, 43, .05);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "DejaVu Sans", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- layout */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--brand); color: #dfe9e5; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: rgba(233,185,73,.14); display: grid; place-items: center; }
.brand-title { font-weight: 700; color: #fff; font-size: 15px; line-height: 1.3; }
.brand-sub { font-size: 12px; color: #9fb5ad; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: #cfdcd7; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.nav a.active { background: rgba(233,185,73,.16); color: #fff; box-shadow: inset -3px 0 0 var(--accent); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav-sep { font-size: 11px; color: #7f9a91; padding: 14px 12px 4px; letter-spacing: .02em; }
.side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding: 14px 8px 0; font-size: 13px; }
.side-foot .who { color: #fff; font-weight: 600; }
.side-foot button { background: none; border: 0; color: #9fb5ad; padding: 0; cursor: pointer; margin-top: 6px; }
.side-foot button:hover { color: #fff; }
.shell > div { min-width: 0; }
.main { padding: 28px 32px 80px; min-width: 0; }
.topbar { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.page-head .sub { color: var(--ink-3); margin-top: 2px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- primitives */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card h2, .section-title { font-size: 16px; margin: 0 0 12px; font-weight: 700; }
.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 18px; }
.kpi { padding: 16px 18px; }
.kpi .label { color: var(--ink-3); font-size: 13px; }
.kpi .value { font-size: 28px; font-weight: 700; line-height: 1.2; margin-top: 4px; }
.kpi .hint { font-size: 12px; color: var(--ink-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); border-color: #c4bfb3; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-primary:hover { background: #184d42; border-color: #184d42; }
.btn-dark { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-dark:hover { background: #0e211d; }
.btn-danger { color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 7px; }
.btn svg { width: 16px; height: 16px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .help { font-size: 12px; color: var(--ink-3); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 8px 11px; outline: none; transition: border-color .12s, box-shadow .12s; }
textarea.input { resize: vertical; min-height: 64px; line-height: 1.55; }
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(31,95,82,.14); }
.input:disabled, .input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.input.ltr { direction: ltr; text-align: left; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eeece6; color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.b-new { background: #f0eee9; color: #6b7570; }
.b-draft { background: var(--warn-bg); color: var(--warn); }
.b-submitted { background: var(--info-bg); color: var(--info); }
.b-approved { background: var(--ok-bg); color: var(--ok); }
.b-danger { background: var(--danger-bg); color: var(--danger); }
.mode-chip { font-size: 12px; padding: 2px 9px; border-radius: 6px; background: var(--brand-3); color: var(--brand-2); font-weight: 600; white-space: nowrap; }

.lvl { font-weight: 700; }
.lvl-1 { color: var(--s1); } .lvl-2 { color: var(--s2); } .lvl-3 { color: var(--s3); } .lvl-4 { color: var(--s4); } .lvl-5 { color: var(--s5); }

/* ---------- tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: right; font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #fbfaf7; }
.t .c { text-align: center; }
.person { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-3); color: var(--brand-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.person .n { font-weight: 600; }
.person .r { font-size: 12px; color: var(--ink-3); }
.bar { height: 8px; background: #eeece6; border-radius: 99px; overflow: hidden; min-width: 70px; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--brand-2); }
.pct-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.pct-cell .num { min-width: 52px; font-weight: 700; }

/* ---------- period picker */
.period { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; }
.period select { border: 0; background: transparent; padding: 5px 6px; font-weight: 600; outline: none; cursor: pointer; }
.period .arrow { border: 0; background: transparent; width: 30px; height: 30px; border-radius: 7px; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.period .arrow:hover { background: var(--surface-2); }

/* ---------- evaluation page */
.eval-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; margin-bottom: 16px; }
.eval-person { display: flex; gap: 14px; align-items: center; }
.eval-person .avatar { width: 48px; height: 48px; font-size: 17px; }
.eval-person h1 { margin: 0; font-size: 22px; }
.eval-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; color: var(--ink-3); font-size: 13px; }
.result-strip { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); margin-bottom: 18px; overflow: hidden; }
.result-strip > div { padding: 14px 18px; border-inline-start: 1px solid var(--line); }
.result-strip > div:first-child { border-inline-start: 0; background: var(--brand); color: #fff; }
.result-strip .label { font-size: 12px; color: var(--ink-3); }
.result-strip > div:first-child .label { color: #a9c0b8; }
.result-strip .value { font-size: 22px; font-weight: 700; line-height: 1.3; }
.result-strip > div:first-child .value { font-size: 30px; color: var(--accent); }
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.notice.info { background: var(--info-bg); color: #164a85; }
.notice.warn { background: var(--warn-bg); color: #8a3a06; }
.notice.ok { background: var(--ok-bg); color: #175c38; }
.notice.danger { background: var(--danger-bg); color: #8f1c13; }
.notice strong { font-weight: 700; }

.crit { margin-bottom: 14px; }
.crit-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px 12px; }
.crit-code { font-size: 12px; font-weight: 700; color: var(--brand-2); background: var(--brand-3); padding: 2px 8px; border-radius: 6px; direction: ltr; white-space: nowrap; margin-top: 2px; }
.crit-title { flex: 1; min-width: 0; }
.crit-title h3 { margin: 0; font-size: 16px; font-weight: 700; }
.crit-title .what { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
.weight { font-size: 13px; font-weight: 700; color: var(--ink-2); background: #f1efe9; border-radius: 7px; padding: 3px 9px; white-space: nowrap; }
.crit-guide { margin: 0 20px 6px; }
.crit-guide summary { cursor: pointer; font-size: 13px; color: var(--brand-2); font-weight: 600; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.crit-guide summary::-webkit-details-marker { display: none; }
.crit-guide summary::before { content: "＋"; font-size: 12px; }
.crit-guide[open] summary::before { content: "－"; }
.guide-grid { display: grid; gap: 6px; margin-top: 10px; }
.guide-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.guide-row .s { font-weight: 700; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; }
.guide-extra { font-size: 13px; color: var(--ink-2); margin-top: 8px; display: grid; gap: 4px; }
.crit-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pane { padding: 14px 20px 16px; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pane:first-child { border-inline-start: 0; }
.pane-title { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.pane-title .tag { font-size: 11px; background: #f1efe9; padding: 1px 7px; border-radius: 5px; color: var(--ink-2); }
.pane.final { background: linear-gradient(180deg, #fbfdfc, #fff); }
.scores { display: flex; gap: 6px; }
.score-btn { flex: 1; min-width: 0; border: 1.5px solid var(--line-2); background: #fff; border-radius: 9px; padding: 6px 0 5px; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.2; transition: transform .08s, background .12s; }
.score-btn b { font-size: 17px; }
.score-btn span { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 3px; }
.score-btn:hover:not(:disabled) { transform: translateY(-1px); }
.score-btn:disabled { cursor: default; }
.score-btn.on { color: #fff; border-color: transparent; }
.score-btn.on span { color: rgba(255,255,255,.85); }
.score-btn[data-s="1"].on { background: var(--s1); } .score-btn[data-s="2"].on { background: var(--s2); }
.score-btn[data-s="3"].on { background: var(--s3); } .score-btn[data-s="4"].on { background: var(--s4); }
.score-btn[data-s="5"].on { background: var(--s5); }
.scores.readonly .score-btn:not(.on) { opacity: .45; }
.level-desc { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; border-inline-start: 3px solid var(--line-2); }
.level-desc:empty { display: none; }
.level-desc[data-s="1"] { border-color: var(--s1); } .level-desc[data-s="2"] { border-color: var(--s2); }
.level-desc[data-s="3"] { border-color: var(--s3); } .level-desc[data-s="4"] { border-color: var(--s4); } .level-desc[data-s="5"] { border-color: var(--s5); }
.ro-text { font-size: 14px; white-space: pre-wrap; color: var(--ink); }
.ro-text:empty::before { content: "—"; color: var(--ink-3); }
.mini-label { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-grid .full { grid-column: 1 / -1; }
.progress-input { display: flex; align-items: center; gap: 10px; }
.progress-input input[type=range] { flex: 1; accent-color: var(--brand-2); }
.gap-chip { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; }

.savebar { position: fixed; bottom: 0; inset-inline: 248px 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 12px 32px; display: flex; align-items: center; gap: 12px; z-index: 20; }
.savebar .state { color: var(--ink-3); font-size: 13px; margin-inline-end: auto; }
.savebar .state.dirty { color: var(--warn); font-weight: 600; }

/* ---------- employee home */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-bottom: 18px; }
.hero-main { background: var(--brand); color: #e3ece8; border-radius: var(--radius); padding: 22px 24px; position: relative; overflow: hidden; }
.hero-main h2 { color: #fff; margin: 0 0 4px; font-size: 20px; }
.hero-main .big { font-size: 44px; font-weight: 700; color: var(--accent); line-height: 1.1; margin-top: 14px; }
.hero-main .btn { margin-top: 16px; }
.months-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 150px; padding-top: 8px; }
.mcol { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.mcol .b { width: 100%; max-width: 30px; background: var(--brand-2); border-radius: 5px 5px 2px 2px; min-height: 3px; }
.mcol .b.nodata { background: #ece9e2; height: 3px; }
.mcol .v { font-size: 10.5px; color: var(--ink-2); font-weight: 600; }
.mcol .m { font-size: 10.5px; color: var(--ink-3); }

/* ---------- heat */
.heat { font-weight: 700; text-align: center; border-radius: 6px; padding: 4px 2px; font-size: 13px; }

/* ---------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; }
.tab.on { color: var(--ink); border-color: var(--brand-2); }
.tab .wsum { font-size: 11px; padding: 1px 6px; border-radius: 5px; }

/* ---------- login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: var(--brand); color: #d7e3df; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art h1 { color: #fff; font-size: 34px; line-height: 1.35; margin: 0 0 14px; font-weight: 700; max-width: 440px; }
.login-art p { max-width: 420px; color: #a9c0b8; margin: 0; }
.login-art .scale-demo { display: flex; gap: 8px; margin-top: 32px; }
.login-art .scale-demo div { flex: 1; max-width: 70px; border-radius: 10px; padding: 10px 0; text-align: center; color: #fff; font-weight: 700; font-size: 20px; }
.login-art .scale-demo small { display: block; font-size: 10px; font-weight: 500; opacity: .85; }
.login-art .foot { font-size: 12px; color: #7f9a91; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-box { width: 100%; max-width: 380px; }
.login-box h2 { font-size: 24px; margin: 0 0 6px; }
.login-box .sub { color: var(--ink-3); margin-bottom: 26px; }
.login-box .field { margin-bottom: 14px; }
.login-box .input { padding: 11px 13px; }
.login-box .btn { width: 100%; padding: 11px; margin-top: 8px; }
.form-error { color: var(--danger); background: var(--danger-bg); padding: 9px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }

/* ---------- modal & toast */
.modal-back { position: fixed; inset: 0; background: rgba(15, 25, 22, .42); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .12s; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 640px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal.wide { max-width: 860px; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-start; }
.x { border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--ink-3); line-height: 1; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; background: var(--surface-2); border: 1px dashed var(--line-2); padding: 10px 14px; border-radius: 8px; direction: ltr; text-align: center; letter-spacing: .04em; user-select: all; }
#toast-root { position: fixed; bottom: 22px; left: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--brand); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 14px; animation: rise .18s; max-width: 360px; }
.toast.err { background: var(--danger); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }

/* ---------- responsive */
@media (max-width: 980px) {
  html, body { overflow-x: hidden; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { visibility: hidden; }
  .shell.nav-open .sidebar { visibility: visible; box-shadow: -10px 0 40px rgba(0,0,0,.25); }
  .savebar { flex-wrap: wrap; gap: 8px; }
  .savebar .state { width: 100%; }
  .eval-head .head-actions { justify-content: flex-start; }
  .page-head h1 { font-size: 20px; }
  .sidebar { position: fixed; inset-block: 0; right: 0; width: 260px; z-index: 40; transform: translateX(100%); transition: transform .2s; }
  .shell.nav-open .sidebar { transform: none; }
  .topbar { display: flex; align-items: center; gap: 10px; background: var(--brand); color: #fff; padding: 10px 16px; position: sticky; top: 0; z-index: 30; }
  .topbar button { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
  .main { padding: 18px 14px 90px; }
  .savebar { inset-inline: 0; padding: 10px 14px; }
  .result-strip { grid-template-columns: 1fr 1fr; }
  .result-strip > div:first-child { grid-column: 1 / -1; }
  .eval-head, .hero, .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .form-grid, .action-grid { grid-template-columns: 1fr; }
}

/* ---------- print: clean one-employee card */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 12px; }
  .sidebar, .topbar, .savebar, .no-print, .crit-guide, #toast-root { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .result-strip > div:first-child { background: #fff !important; color: var(--ink) !important; border: 2px solid var(--brand); }
  .result-strip > div:first-child .value { color: var(--brand) !important; }
  .input { border: 0; padding: 0; background: none !important; resize: none; }
  .score-btn:not(.on) { display: none; }
  .scores { justify-content: flex-start; }
  .score-btn { flex: 0 0 auto; padding: 4px 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-only { display: block !important; }
  .result-strip { grid-template-columns: 1.3fr repeat(4, 1fr) !important; }
  .result-strip > div:first-child { grid-column: auto !important; }
  .crit-body { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; }
  .eval-head { grid-template-columns: 1fr !important; }
  .input::placeholder { color: transparent; }
  select.input { appearance: none; }
  input[type=range], input[type=date]:placeholder-shown { display: none; }
  .notice { display: none; }
}
.print-only { display: none; }

/* notes, hints, guide, pickers */
.note-chip{display:inline-flex;align-items:center;gap:2px;font-size:12px;font-weight:700;padding:1px 8px;border-radius:999px;margin-inline-end:4px;white-space:nowrap}
.note-chip.pos{background:var(--ok-bg);color:var(--ok)}.note-chip.neg{background:var(--danger-bg);color:var(--danger)}
.crit-head .note-chip{margin-top:3px}
.note-list{display:grid;gap:8px}
.note-item{border:1px solid var(--line);border-inline-start:4px solid var(--line-2);border-radius:9px;padding:9px 12px;background:var(--surface-2)}
.note-item.positive{border-inline-start-color:var(--ok)}.note-item.negative{border-inline-start-color:var(--danger)}
.note-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.note-text{margin-top:4px;white-space:pre-wrap;font-size:14px}
.note-type{padding:10px 12px;cursor:pointer;display:block}.note-type input{accent-color:var(--brand-2)}
.note-type.neg:has(input:checked){border-color:var(--danger);background:var(--danger-bg)}.note-type.pos:has(input:checked){border-color:var(--ok);background:var(--ok-bg)}
.score-hint{font-size:12.5px;color:var(--warn);font-weight:600;line-height:1.5}.score-hint:empty{display:none}
.hint-row{display:flex;align-items:flex-start;gap:8px;justify-content:space-between}.hint-row .score-hint{flex:1}
.note-btn{flex:none;font-size:12px;padding:4px 9px}.note-btn svg{width:14px;height:14px}
.guide-s{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:7px;color:#fff;font-weight:700}
.seg{display:flex;gap:6px;flex-wrap:wrap}.seg label{display:flex;align-items:center;gap:6px;border:1px solid var(--line-2);border-radius:9px;padding:7px 12px;cursor:pointer;font-weight:600;font-size:14px}
.seg label:has(input:checked){border-color:var(--brand-2);background:var(--brand-3);color:var(--brand-2)}.seg input{accent-color:var(--brand-2)}
.pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px;max-height:240px;overflow:auto;padding:2px}
.pick{display:flex;gap:8px;align-items:flex-start;border:1px solid var(--line);border-radius:8px;padding:7px 10px;cursor:pointer;line-height:1.35}
.pick:has(input:checked){border-color:var(--brand-2);background:var(--brand-3)}.pick input{margin-top:3px;accent-color:var(--brand-2)}

/* staging environment banner */
.env-bar{position:sticky;top:0;z-index:1000;background:#b45309;color:#fff;text-align:center;font-weight:600;font-size:13px;padding:6px 12px;letter-spacing:.2px}
