/* Fonts are served from this site (no third party sees the visitor). */
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-vietnamese-wght-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces-vietnamese-wght-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces-latin-wght-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces-latin-ext-wght-italic.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces-vietnamese-wght-italic.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --paper: #f7f3ec; --paper-2: #eee7da; --surface: #fffdf9; --ink: #1a1b2e; --muted: #5d5f74; --line: #e3dccf;
  --primary: #3a3fb5; --primary-ink: #ffffff; --accent: #ff9f5a; --danger: #b3261e;
  --glow: rgba(255, 159, 90, .34); --glow-2: rgba(58, 63, 181, .14);
  --c-open: #0f6b62; --c-open-bg: #d3f1ec; --c-soon: #8f5200; --c-soon-bg: #ffe6bd;
  --c-up: #3a3fb5; --c-up-bg: #e2e3fa; --c-closed: #575b6b; --c-closed-bg: #e7e4de;
  --c-rolling: #0a6593; --c-rolling-bg: #d6ebf7; --c-check: #a8204f; --c-check-bg: #fbdce8;
  --shadow: 0 1px 2px rgba(26, 27, 46, .06), 0 14px 34px -14px rgba(26, 27, 46, .25);
  --radius: 20px; --serif: Fraunces, 'Iowan Old Style', Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10111d; --paper-2: #1a1c2e; --surface: #181a2b; --ink: #eceaf5; --muted: #a6a8c0; --line: #2a2d45;
    --primary: #6c70e6; --primary-ink: #0d0e1a; --accent: #ffb27a; --danger: #ff8a80;
    --glow: rgba(255, 178, 122, .16); --glow-2: rgba(108, 112, 230, .2);
    --c-open: #5eead4; --c-open-bg: #11332f; --c-soon: #ffc46b; --c-soon-bg: #3b2a0c;
    --c-up: #a9acff; --c-up-bg: #25285a; --c-closed: #b3b6c4; --c-closed-bg: #2a2d3d;
    --c-rolling: #7cc8f2; --c-rolling-bg: #0f2f43; --c-check: #ff9bc0; --c-check-bg: #43182c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -14px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--paper); color: var(--ink);
  min-height: 100dvh; display: flex; flex-direction: column; -webkit-text-size-adjust: 100%; position: relative; overflow-x: hidden; }
.aura { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60vmax 40vmax at 100% -10%, var(--glow), transparent 60%), radial-gradient(50vmax 40vmax at -10% 110%, var(--glow-2), transparent 60%); }
[hidden] { display: none !important; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(1.9rem, 5.6vw, 3rem); line-height: 1.08; margin-bottom: 10px; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.8rem); line-height: 1.2; }
h3 { font-size: 1.12rem; line-height: 1.3; }
h4 { font: 700 .74rem Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 18px; max-width: 64ch; }
.fine { font-size: .82rem; color: var(--muted); margin: 6px 0; }
.err { color: var(--danger); font-weight: 600; }
.empty { color: var(--muted); padding: 28px 0; text-align: center; }
.meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; margin: 2px 0; }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.top { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 12px 32px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; font: 600 1.1rem var(--serif); color: var(--ink); text-decoration: none; margin-right: auto; }
.brand .ico { color: var(--primary); }
nav.tabs { display: flex; gap: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
nav.tabs a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; padding: 0 14px; border-radius: 99px; min-height: 40px; display: inline-flex; align-items: center; }
nav.tabs a[aria-current="page"] { background: var(--primary); color: var(--primary-ink); }
.seg { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--paper-2); border: 1px solid var(--line); }
.seg button { font: inherit; font-size: .8rem; font-weight: 700; min-height: 40px; min-width: 46px; padding: 0 12px; border-radius: 99px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 4px 32px 56px; }
.screen { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.btn { font: inherit; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 99px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; background: var(--primary); color: var(--primary-ink); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px var(--primary); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.link { background: none; border: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.link.small { font-size: .8rem; padding: 2px 0; }

input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=date], select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { resize: vertical; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.narrow { max-width: 460px; margin: 6vh auto 0; }
.login { display: grid; gap: 14px; }
.login label, .form label { display: grid; gap: 4px; font-weight: 600; font-size: .88rem; }
.form { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

.toolbar { display: grid; gap: 12px; margin: 18px 0 8px; }
.search { position: relative; }
.search .ico { position: absolute; left: 14px; top: 13px; color: var(--muted); }
.search input { padding-left: 42px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.fld { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); min-width: 150px; flex: 1 1 150px; max-width: 240px; }
.chk { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: .92rem; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--primary); }

.region { margin-top: 34px; }
.region > h2 { display: flex; align-items: center; gap: 12px; }
.region > h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.country { font: 700 .78rem Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 18px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.uni-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.uni-card:hover { transform: translateY(-3px); }
.uni-card.stale { box-shadow: inset 0 0 0 2px var(--c-soon-bg), var(--shadow); }
.pic { aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; position: relative; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile { width: 100%; height: 100%; display: grid; place-items: center; font: 600 2.6rem var(--serif); color: #fff; }
.hue-0 { background: linear-gradient(135deg, #3a3fb5, #7a7fe0); } .hue-1 { background: linear-gradient(135deg, #d9622b, #ffb27a); }
.hue-2 { background: linear-gradient(135deg, #8a5a00, #e0a84a); } .hue-3 { background: linear-gradient(135deg, #a8204f, #e8749c); }
.hue-4 { background: linear-gradient(135deg, #6b4bb8, #b49cf0); } .hue-5 { background: linear-gradient(135deg, #2b6fa8, #7cc0ec); }
.card-body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.tags, .chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: 99px; white-space: nowrap; }
.st-open { color: var(--c-open); background: var(--c-open-bg); } .st-closing_soon { color: var(--c-soon); background: var(--c-soon-bg); }
.st-upcoming { color: var(--c-up); background: var(--c-up-bg); } .st-closed { color: var(--c-closed); background: var(--c-closed-bg); }
.st-rolling { color: var(--c-rolling); background: var(--c-rolling-bg); } .st-check { color: var(--c-check); background: var(--c-check-bg); }
.approx { font-weight: 800; }
.tag { font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); color: var(--muted); }
.tag-check { font-size: .76rem; font-weight: 700; padding: 2px 9px; border-radius: 8px; color: var(--c-soon); background: var(--c-soon-bg); }
.stale-note { display: flex; align-items: center; gap: 5px; color: var(--c-soon); }

.back { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; margin: 8px 0 14px; }
.back .ico { transform: rotate(180deg); }
.detail-hero { display: grid; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 760px) { .detail-hero { grid-template-columns: 1fr 1.1fr; } .detail-hero .pic { aspect-ratio: auto; min-height: 240px; } }
.detail-hero .body { padding: 20px; display: grid; gap: 8px; align-content: center; }
.credit { position: absolute; left: 0; right: 0; bottom: 0; font-size: .7rem; color: #fff; background: rgba(0, 0, 0, .55); padding: 3px 8px; }
.credit a { color: #fff; }
.sect { margin: 30px 0 4px; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; box-shadow: var(--shadow); }
.block.sch { border-left: 6px solid var(--primary); }
.block .sum { margin: 10px 0 12px; }
.sch-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.sch-status { display: grid; gap: 2px; justify-items: end; }
.sub { margin-top: 18px; }
.kv { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .88rem; font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 10px; } .sch-status { justify-items: start; } }
.stack { display: grid; gap: 4px; }
.deadlines, .plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ico { color: var(--primary); margin-top: 4px; }
.callout { background: var(--c-soon-bg); color: var(--c-soon); border-radius: 12px; padding: 10px 14px; font-weight: 600; margin: 0 0 10px; }
.steps { margin: 10px 0 0; white-space: pre-line; }
.sources { font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 10px; }
.sources ul { margin: 4px 0; padding-left: 18px; }
.ext { display: inline-flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.covtable { border-collapse: collapse; width: 100%; max-width: 520px; }
.covtable th, .covtable td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }

.sheet-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin: 16px 0 8px; }
.save-state { background: none; border: 0; font: inherit; font-size: .85rem; color: var(--muted); padding: 6px 8px; }
.save-state[data-state="error"] { color: var(--danger); font-weight: 700; cursor: pointer; text-decoration: underline; }
.sheet-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.sheet { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1200px; font-size: .92rem; }
.sheet th, .sheet td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; background: var(--surface); }
.sheet thead th { position: sticky; top: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--paper-2); z-index: 2; white-space: nowrap; }
.sheet tbody th.name, .sheet thead th:first-child { position: sticky; left: 0; z-index: 1; min-width: 210px; max-width: 280px; box-shadow: 1px 0 0 var(--line); font-weight: 600; }
.sheet thead th:first-child { z-index: 3; }
.sheet input[type=text], .sheet select, .sheet textarea { min-height: 38px; padding: 6px 8px; border-radius: 8px; min-width: 150px; }
.sheet td.upd { white-space: nowrap; color: var(--muted); font-size: .82rem; }
.my-accepted { border-color: var(--c-open) !important; } .my-submitted, .my-waiting, .my-interview { border-color: var(--primary) !important; }
.my-rejected, .my-skipped { color: var(--muted); }
tr.focus th, tr.focus td { animation: flash 2.4s ease-out 1; }
@keyframes flash { from { background: var(--glow); } to { background: var(--surface); } }

dialog.dlg { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 22px; width: min(92vw, 460px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10, 10, 25, .5); }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; opacity: 0; transition: .25s; pointer-events: none; z-index: 50; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 600px) { main { padding-left: 20px; padding-right: 20px; } .top { padding-left: 20px; padding-right: 20px; } }

/* Dropdown: native select stays hidden as the value holder; the list opens over the button. */
.dd { position: relative; display: block; }
.dd-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 100%; height: 100%; }
.dd-btn { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-height: 44px; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px 10px 14px; text-align: left; cursor: pointer; }
.dd-btn:disabled { opacity: .6; cursor: not-allowed; }
.dd-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-arrow { flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.dd-btn[aria-expanded="true"] { border-color: var(--primary); }
.dd-list { position: fixed; z-index: 100; margin: 0; padding: 6px; list-style: none; overflow-y: auto; background: var(--surface); color: var(--ink); display: flex; flex-direction: column;
  border: 1px solid var(--primary); border-radius: 12px; box-shadow: 0 12px 32px rgba(10, 10, 40, .22); outline: none; }
.dd-item { padding: 10px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.dd-item.active { background: var(--glow-2); }
.dd-item[aria-selected="true"] { font-weight: 700; color: var(--primary); }
.sheet .dd-btn { min-height: 38px; padding: 6px 12px; border-radius: 8px; min-width: 150px; }
.sheet-bar .dd { min-width: 160px; }
.dd-btn.my-accepted { border-color: var(--c-open) !important; } .dd-btn.my-submitted, .dd-btn.my-waiting, .dd-btn.my-interview { border-color: var(--primary) !important; }
.dd-btn.my-rejected, .dd-btn.my-skipped { color: var(--muted); }
dialog.dlg .dd-list { z-index: 101; }
.dd-opts { list-style: none; margin: 0; padding: 0; }
.dd-item[hidden], .dd-empty[hidden] { display: none; }
.dd-search { position: sticky; top: 0; margin-bottom: 6px; min-height: 40px; }
.dd-empty { margin: 0; padding: 10px 14px; color: var(--muted); }

/* Checklist: a small pill in the table, the full list in a popover */
.ck-pill { font: inherit; font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.ck-pill:hover { border-color: var(--primary); }
.ck-pill.full { color: var(--c-open); border-color: var(--c-open); }
.ck-bar { width: 34px; height: 5px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.ck-bar span { display: block; height: 100%; background: var(--primary); }
.ck-pill.full .ck-bar span { background: var(--c-open); }
.ck-pop { position: fixed; z-index: 100; max-height: calc(100vh - 16px); overflow-y: auto; padding: 14px 16px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--primary); border-radius: 16px; box-shadow: 0 12px 32px rgba(10, 10, 40, .22); display: grid; gap: 8px; }
.ck-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ck-body { display: grid; gap: 2px; }
.ck-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 4px; border-radius: 8px; cursor: pointer; }
.ck-item:hover { background: var(--glow-2); }
.ck-item input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--primary); }
.ck-text { flex: 1; font-size: .92rem; line-height: 1.35; }
.ck-text small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.ck-item.done .ck-text { color: var(--muted); text-decoration: line-through; }
.ck-item.done .ck-text small { text-decoration: none; }
.ck-del { border: 0; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 6px; }
.ck-del:hover { color: var(--danger); }
.ck-add { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.ck-add input { min-height: 38px; padding: 6px 10px; }

/* Add several: searchable checkbox list */
.many-list { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.many-list li[hidden] { display: none; }
.many-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; }
.many-item:hover { background: var(--glow-2); }
.many-item input { flex: none; width: 18px; height: 18px; margin: 0; }

/* My documents */
.docs-list h2 { margin: 28px 0 10px; font-size: 1.05rem; }
.docs-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 16px; margin-bottom: 10px; }
.docs-card.ready { border-color: var(--c-open); }
.docs-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.docs-lab { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1 1 220px; }
.docs-top input { flex: none; width: 20px; height: 20px; margin: 0; }
.docs-name { font-weight: 600; }
.docs-count { color: var(--muted); font-size: .9rem; }
.docs-card.ready .docs-name { color: var(--c-open); }
.docs-card details { margin: 8px 0 0 32px; font-size: .9rem; }
.docs-card summary { cursor: pointer; color: var(--primary); }
.docs-card ul { margin: 6px 0 0; padding-left: 18px; }
.docs-all { display: block; margin: 6px 0 0 32px; color: var(--muted); }
.ck-auto { color: var(--c-open); }
.ck-info { margin: 0; padding: 6px 4px; color: var(--muted); font-size: .88rem; }

.docs-info { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--primary); font: inherit; font-size: .8rem; font-weight: 700; cursor: help; padding: 0; }
.docs-info:hover, .docs-info:focus-visible { border-color: var(--primary); }
.docs-tip, .docs-each { display: block; margin: 8px 0 0 32px; color: var(--muted); line-height: 1.45; }
.docs-tip[hidden] { display: none; }
.docs-each { color: var(--primary); }
.docs-card li small { color: var(--muted); }

/* Two deadlines per row */
.dls { display: grid; gap: 3px; white-space: nowrap; }
.dl { color: var(--muted); }
.dl-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; margin-right: 2px; }
.dl.first { color: var(--ink); font-weight: 700; }
.dl.first .dl-k { color: var(--primary); }
.dl.past { text-decoration: line-through; }
.dl-none { font-style: italic; }
.dl-by { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
