/* Junior Content Network platform UI. Builds on the tokens in style.css (light and dark). */
.plat .page { padding-block: 28px 64px; }
.plat h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.plat h2 { font-size: 1.35rem; margin: 0 0 10px; }
.plat h3 { font-size: 1.1rem; margin: 0 0 6px; }
.plat .lede { color: var(--muted); max-width: 62ch; margin: 0 0 22px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.panel.narrow { max-width: 520px; margin-inline: auto; }
.panel.wide { max-width: 760px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.plat label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 14px; }
.plat label .hint, .hint { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.plat input[type=text], .plat input[type=email], .plat input[type=password], .plat input[type=url], .plat input[type=search], .plat input[type=number],
.plat select, .plat textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px;
}
.plat textarea { min-height: 120px; resize: vertical; }
.plat input:focus, .plat select:focus, .plat textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.plat .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.plat .btn.small { padding: 6px 12px; font-size: .86rem; }
.plat .btn.danger { background: #B3261E; color: #fff; }
.plat button.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--accent-soft); }
.flash.ok { background: var(--ok-soft); } .flash.error { background: #FDE7E7; color: #6B1310; } .flash.info { background: var(--accent-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flash.error { background: #3A1614; color: #FFD6D3; } }
.form-msg { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 6px 0 14px; }
.chk { font-weight: 500 !important; margin: 0 !important; display: inline-flex !important; gap: 6px; align-items: center; }
.plat .acct-wrap { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.acct { position: relative; } .acct summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; background: var(--surface); }
.acct summary::-webkit-details-marker { display: none; }
.acct > div { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; z-index: 20; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.acct a, .acct button { display: block; padding: 8px 10px; border-radius: 8px; text-align: left; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; text-decoration: none; width: 100%; }
.acct a:hover, .acct button:hover { background: var(--accent-soft); }
.plat .top .wrap { flex-wrap: wrap; gap: 10px 16px; }
.plat .nav { flex-wrap: wrap; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.item h3 a { color: inherit; text-decoration: none; } .item h3 a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: .86rem; }
.person { display: flex; gap: 12px; align-items: center; }
.av { border-radius: 50%; object-fit: cover; flex: none; } .av.ph { display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-weight: 700; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid var(--line); margin: 0 6px 6px 0; background: var(--bg); }
.t-film { border-color: var(--c-film); } .t-anim { border-color: var(--c-anim); } .t-book { border-color: var(--c-book); } .t-game { border-color: var(--c-game); } .t-audio { border-color: var(--c-audio); } .t-ip { border-color: var(--c-ip); }
.filters { display: grid; gap: 10px; grid-template-columns: 2fr repeat(auto-fit, minmax(150px, 1fr)) auto; align-items: end; margin-bottom: 18px; }
.filters label { margin: 0; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 22px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: inherit; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; } .stat span { color: var(--muted); font-size: .86rem; }
.two { display: grid; gap: 18px; grid-template-columns: 2fr 1fr; align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } .filters { grid-template-columns: 1fr 1fr; } }
.rights-grid { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.rights-grid th, .rights-grid td { border: 1px solid var(--line); padding: 7px 8px; text-align: center; } .rights-grid th:first-child, .rights-grid td:first-child { text-align: left; font-weight: 600; }
.rights-grid select { margin: 0; padding: 4px; font-size: .84rem; }
.st-open { background: var(--ok-soft); color: var(--ok); font-weight: 600; } .st-held { background: var(--held-soft); color: var(--muted); } .st-licensed { background: var(--accent-soft); color: var(--accent); font-weight: 600; } .st-na { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.thread { display: grid; gap: 10px; margin: 14px 0; max-height: 60vh; overflow: auto; padding: 4px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { margin-left: auto; background: var(--accent-soft); } .msg small { display: block; color: var(--muted); margin-top: 4px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.list li.unread { border-color: var(--accent); }
.inline { display: inline; } .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; } .crumbs a { color: inherit; }
.note-box { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 10px 14px; border-radius: 6px; margin: 12px 0; font-size: .92rem; }
.badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; text-align: center; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; } .kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .msg { max-width: 92%; } }

/* Reset the public-site form card so platform forms sit inside panels without a double border. */
.plat form { background: none; border: 0; padding: 0; border-radius: 0; display: block; }
.plat .acct form { display: block; }
.plat .two > * { min-width: 0; }
.plat .top .menu { order: 3; margin-left: auto; }
.plat .acct-wrap { order: 2; }
@media (max-width: 860px) { .plat .acct-wrap { margin-left: 0; } .plat .top .menu { margin-left: 0; } }

fieldset.roles, fieldset.elig { border: 1px solid var(--line, #ddd); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
fieldset legend { font-weight: 600; padding: 0 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; margin-top: 6px; }
.elig .checks { grid-template-columns: repeat(3, auto); justify-content: start; }
[hidden] { display: none !important; }

.chk { align-items: flex-start !important; }
.chk input { margin-top: .3em; flex: none; }
fieldset legend { font-size: 1rem; line-height: 1.3; }

.plat .appbar { border-top: 1px solid var(--line); background: var(--surface); }
.plat .appbar nav { display: flex; gap: 4px 18px; flex-wrap: wrap; padding: 8px 0; }
.plat .appbar a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: 4px 2px; color: var(--muted); border-bottom: 2px solid transparent; }
.plat .appbar a[aria-current="page"], .plat .appbar a:hover { color: var(--ink); border-bottom-color: var(--accent, #2f5bff); }
@media (max-width: 860px) { .plat .appbar { display: none; } }

.geo-sel { display: grid; gap: 8px; margin-top: 4px; } .geo-sel[hidden], .geo-sel [hidden], .geo-cur [hidden] { display: none !important; }
.geo-cur { margin: 4px 0; } .btn.small { padding: 4px 12px; font-size: .85rem; }
.urlf { display: flex; gap: 6px; margin-top: 4px; } .urlf select { flex: none; width: auto; } .urlf input { flex: 1; min-width: 0; }
.plat input[type="checkbox"], .plat input[type="radio"] { width: auto !important; min-width: 0; padding: 0; flex: none; margin: .25em 0 0; }
.plat .chk { display: flex !important; gap: 8px; align-items: flex-start; line-height: 1.35; }
.plat .elig .checks { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.plat fieldset.roles .checks { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
fieldset > .hint { display: block; margin: 0 0 8px; } fieldset.roles .checks, fieldset.elig .checks { margin-top: 0; }

/* Register page: wide, sectioned, columnised */
.panel.wide { max-width: 860px; margin-inline: auto; }
.regform h1 { margin-bottom: 4px; } .regform .lede { max-width: 60ch; }
.regform .fs { border-top: 1px solid var(--line); padding: 20px 0 6px; margin-top: 18px; }
.regform .fs h2 { font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; font-family: var(--mono, inherit); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; align-items: start; } .fgrid .span2, .fgrid .loc { grid-column: 1 / -1; }
.role-grid { columns: 3 15rem; column-gap: 28px; margin-top: 6px; } .role-grid .chk { break-inside: avoid; padding: 5px 0; }
.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 14px; }
.card-opt { display: flex !important; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); cursor: pointer; font-weight: 400 !important; }
.card-opt strong { display: block; font-size: 1.02rem; } .card-opt small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; line-height: 1.35; }
.card-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.regform .chk.agree { margin: 18px 0 6px !important; } .regform .actions { margin: 12px 0; } .regform .signin-line { margin-top: 18px; }
.geo-sel { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
form.resend { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 720px) { .fgrid, .choice-cards { grid-template-columns: 1fr; } .role-grid { columns: 1; } }

/* ---- Announcements, email, audience (update 5) ---- */
.ann-panel { padding: 16px 18px; }
.ann { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 12px; background: var(--surface); overflow: hidden; margin: 0 0 14px; }
.ann.ann-celebrate { border-left-color: #D98A00; background: linear-gradient(90deg, #FFF6DC, var(--surface) 40%); }
.ann.ann-urgent { border-left-color: #B3261E; }
.ann.ann-event { border-left-color: #6A4BC4; }
.ann.pinned { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.ann-img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.ann-body { padding: 14px 44px 12px 16px; }
.ann-body h3 { margin: 0 0 6px; }
.ann-text p { margin: 0 0 8px; } .ann-text ul { margin: 0 0 8px 1.2em; padding: 0; }
.ann-x { position: absolute; top: 8px; right: 8px; margin: 0; }
.ann-x button { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: 30px; height: 30px; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; }
.ann-x button:hover { color: var(--ink); }
.ann-dim { opacity: .6; }
.ann-thumb { max-width: 240px; max-height: 120px; border-radius: 8px; border: 1px solid var(--line); }
.admtable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admtable th, .admtable td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admtable th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.admtable td.acts { white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface); }
.st-ok { background: var(--ok-soft); } .st-live { background: var(--accent-soft); } .st-sched { background: #FFF3D6; color: #5E4300; } .st-draft { color: var(--muted); }
.note-box { background: var(--accent-soft); }
.note-box code { background: var(--surface); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.admform .two { align-items: start; }
.admform .actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.aud { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0 0 12px; min-width: 0; }
.aud legend { font-weight: 700; padding: 0 6px; }
.aud-count { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-weight: 600; margin: 0 0 12px; }
.aud-g { border-top: 1px solid var(--line); padding: 8px 0; }
.aud-g summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.aud-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 12px; max-height: 220px; overflow: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 12px; font-size: .88rem; }
.chip-x button { border: 0; background: var(--surface); border-radius: 999px; width: 22px; height: 22px; cursor: pointer; line-height: 1; color: var(--muted); }
.geo .btn { margin-top: 8px; }
.tpl-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 6px 0 16px; }
.tpl-card { position: relative; display: block !important; border: 2px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; margin: 0 !important; background: var(--surface); }
.tpl-card input { position: absolute; opacity: 0; }
.tpl-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tpl-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tpl-card strong { display: block; font-size: .95rem; } .tpl-card small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.tpl-sw { display: block; height: 64px; border-radius: 8px; margin-bottom: 8px; padding: 8px; background: #F3F1EA; }
.tpl-sw i { display: block; height: 8px; border-radius: 4px; background: #CFC9B8; margin-bottom: 6px; } .tpl-sw i:first-child { height: 14px; background: #2F6F5E; width: 60%; }
.tpl-spotlight { background: #2F6F5E; } .tpl-spotlight i { background: rgba(255,255,255,.55); } .tpl-spotlight i:first-child { background: #fff; }
.tpl-letter { background: #fff; border: 1px solid var(--line); } .tpl-festive { background: #FFE9A8; } .tpl-festive i:first-child { background: #D9480F; }
.tpl-night { background: #1B2233; } .tpl-night i { background: #3A4560; } .tpl-night i:first-child { background: #F4B942; }
.mail-prev { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.nw-meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 10px 0; }
.nw-meter i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
@media (max-width: 640px) { .mail-prev { height: 420px; } .admtable th:nth-child(2), .admtable td:nth-child(2) { display: none; } }
.plat .nw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.plat .nw-head > a.btn { margin-top: 6px; }
.fgrid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Admin navigation: big section names, A to Z pages under each */
.admnav { margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.admnav .adm-home { display: inline-block; font-weight: 700; margin-bottom: 12px; text-decoration: none; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); }
.admnav .adm-home.on, .admnav li a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.adm-cols { display: grid; gap: 18px 28px; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.admnav h2, .admsec h2 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.admnav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.admnav li a { display: inline-block; padding: 3px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.admnav li a:hover { background: var(--accent-soft); }
.admsec { margin: 28px 0; }
.admsec h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); border-bottom: 3px solid var(--accent); padding-bottom: 6px; margin-bottom: 14px; }
.admcards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.admcard { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); }
.admcard strong { display: block; font-size: 1.15rem; margin-bottom: 4px; } .admcard span { color: var(--muted); font-size: .92rem; }
.admcard:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Working as a member (admin) and plan pickers */
.actas { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 10px 16px; background: #FFE9A8; color: #3A2A00; border-bottom: 2px solid #D98A00; font-size: .92rem; }
.actas form { margin: 0; }
.planpick { display: inline-flex; gap: 6px; align-items: center; }
.planpick select { width: auto !important; margin: 0 !important; padding: 5px 8px !important; }

/* Featured items, banners, credits, admin levels */
.tag.feat { background: #FFE9A8; color: #5B3A00; border-color: #E5B53C; font-weight: 700; }
.adslot { position: relative; margin: 14px 0; padding: 10px 14px 10px; border: 1px dashed #B9C0DA; border-radius: 12px; background: #FBFBFE; }
.adslot a { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.adslot img { max-width: 220px; max-height: 90px; border-radius: 8px; object-fit: cover; }
.adlabel { position: absolute; top: -9px; left: 12px; padding: 0 6px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; background: #fff; color: #5A6385; }
.tbl { width: 100%; border-collapse: collapse; } .tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #E3E6F2; vertical-align: top; }
fieldset { border: 1px solid #E3E6F2; border-radius: 10px; margin: 12px 0; padding: 8px 14px; } fieldset legend { font-weight: 700; padding: 0 6px; } fieldset .chk { display: inline-flex; margin-right: 18px; }
@media (max-width: 640px) { .adslot a { flex-direction: column; align-items: flex-start; } .adslot img { max-width: 100%; } .tbl { font-size: .9rem; } }

/* ===== Events v2 (modules 34-36) ===== */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
ul.plain { list-style: none; margin: 6px 0 0; padding: 0; }
.ev-wide { max-width: 1080px; margin-inline: auto; }
.ev-two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.ev-aside { position: sticky; top: 90px; display: grid; gap: 14px; }
.ev-main > * { max-width: 100%; }
.ev-cover { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 14px; margin-bottom: 16px; display: block; }
.ev-cover-thumb { max-width: 220px; border-radius: 10px; display: block; margin: 6px 0; }
.ev-card { display: grid; grid-template-columns: 150px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-decoration: none; color: inherit; }
.ev-card-img { width: 150px; height: 100px; object-fit: cover; border-radius: 10px; background: var(--accent-soft); }
.ev-reg { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.ev-state { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 600; background: var(--accent-soft); margin: 0 0 10px; }
.ev-state.ok { background: #DDF3E4; color: #14532D; } .ev-state.wait { background: #FFF1CC; color: #6B4A00; } .ev-state.bad { background: #FBE0DE; color: #7A1D17; }
.ev-alert { border-left-color: #C0392B !important; }
.ev-cta, .ev-share, .ev-cal { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.ev-sharelinks, .ev-cal .links { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-session { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ev-time { font-weight: 600; color: var(--muted); } .ev-day { margin: 18px 0 6px; font-size: 1.05rem; }
.ev-faq details { border-bottom: 1px solid var(--line); padding: 8px 0; } .ev-faq summary { cursor: pointer; font-weight: 600; }
.ev-sponsors, .ev-hosts, .ev-going { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ev-sponsors img { max-height: 48px; max-width: 140px; }
.ev-updates, .ev-qa { display: grid; gap: 10px; } .ev-ans { margin-left: 14px; padding-left: 12px; border-left: 3px solid var(--accent); }
.ev-form { display: grid; gap: 18px; } .ev-fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ev-rep { display: grid; gap: 10px; } .ev-row { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ev-perms { display: flex; flex-wrap: wrap; gap: 6px 14px; } .ev-del { font-weight: 500; }
.ev-ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; max-width: 460px; }
.ev-qrbox { text-align: center; } .ev-qr, .ev-qrbox svg { width: 200px; height: 200px; max-width: 100%; background: #fff; padding: 8px; border-radius: 8px; }
.ev-code { font-family: var(--font-mono, monospace); font-size: 1.4rem; letter-spacing: .08em; font-weight: 600; }
.ev-tk { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; display: block; }
.ev-stars { display: flex; gap: 10px; flex-wrap: wrap; }
.ev-tabs { margin-bottom: 18px; overflow-x: auto; white-space: nowrap; }
.ev-spark { color: var(--accent); max-width: 100%; height: auto; }
.ev-bulk { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 12px 0; }
.ev-bulk label { margin: 0; flex: 1 1 200px; }
.ev-ci { display: flex !important; justify-content: space-between; gap: 12px; align-items: center; } .ev-ci.done { opacity: .8; }
.ev-pre { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; }
.ev-embedprev { width: 100%; max-width: 640px; border: 1px solid var(--line); border-radius: 12px; }
.ev-adm { display: grid !important; gap: 8px; } .ev-rej form { margin-top: 8px; }
.ev-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ev-badge { border: 2px solid #000; border-radius: 10px; padding: 20px 14px; text-align: center; break-inside: avoid; background: #fff; color: #000; }
.ev-badge .bn { font-size: 1.7rem; font-weight: 800; line-height: 1.1; } .ev-badge .bc { margin-top: 6px; } .ev-badge .bt { margin-top: 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.ev-mobilebar { display: none; }
@media (max-width: 820px) {
  .ev-two { grid-template-columns: 1fr; } .ev-aside { position: static; }
  .ev-card { grid-template-columns: 96px 1fr; } .ev-card-img { width: 96px; height: 80px; }
  .ev-session { grid-template-columns: 1fr; gap: 2px; }
  .ev-mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  body.plat:has(.ev-mobilebar) footer { padding-bottom: 80px; }
  .ev-ci { flex-direction: column; align-items: stretch !important; }
}
@media print {
  .top, .appbar, footer, .skip, .ev-noprint, .ev-tabs, .crumbs, .head-row, .flash, .acct-wrap { display: none !important; }
  body.plat { background: #fff !important; color: #000 !important; }
  .ev-badges { grid-template-columns: repeat(2, 1fr); gap: 8mm; } .ev-print { border: 0; padding: 0; }
}

/* ---- Jobs v2 (modules 31, 37, 38, 39) ---- */
.co-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; display: inline-block; }
.co-logo.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-family: var(--font-display); border-radius: 10px; }
.jc-head { display: flex; gap: 12px; align-items: center; min-width: 0; } .jc-head > div { min-width: 0; overflow-wrap: anywhere; }
.jobcard .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.jobcard h3 { font-size: 1.12rem; line-height: 1.2; overflow-wrap: anywhere; }
.tag.new { background: var(--ok-soft); color: var(--ok); border-color: transparent; font-weight: 700; }
.tag.applied { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 700; }
.tag.warn { background: #FFE3E0; color: #8A1C14; border-color: #E5948D; font-weight: 700; }
.stars { color: #C98A00; letter-spacing: .08em; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.warn { background: #3A1614; color: #FFD6D3; border-color: #7A2E29; } :root:not([data-theme="light"]) .stars { color: #F5B043; } :root:not([data-theme="light"]) .co-logo { background: #fff; } }
:root[data-theme="dark"] .tag.warn { background: #3A1614; color: #FFD6D3; border-color: #7A2E29; } :root[data-theme="dark"] .stars { color: #F5B043; }
.pill.s-review, .pill.s-scheduled, .pill.s-approved { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill.s-offer, .pill.s-filled { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.s-paused, .pill.s-draft, .pill.s-closed, .pill.s-withdrawn, .pill.s-removed { background: var(--held-soft); color: var(--muted); }
.pill.s-removed { border-color: #B3261E; color: #B3261E; }
.sharebox { display: grid; gap: 4px; margin-top: 10px; font-size: .85rem; color: var(--muted); } .sharebox input { width: 100%; }
.morefilters { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--surface); }
.morefilters > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.morefilters > div { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding: 10px 0 4px; }
.resopts { display: grid; gap: 8px; margin: 8px 0; } .resopts label { display: flex; gap: 8px; align-items: flex-start; }
.qrow { display: grid; gap: 10px; }
.bulkbox, .bulkform { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 10px 0; }
.applist { display: grid; gap: 10px; }
.joblist { display: grid; gap: 14px; }
.jobfilters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.inlinef { display: inline-block; } .inlinef > summary { list-style: none; cursor: pointer; } .inlinef[open] { display: block; flex-basis: 100%; }
.jobadm > div:first-child { min-width: 0; flex: 1 1 280px; overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
form.inline .sr { position: static; width: auto; height: auto; clip: auto; display: inline; }
/* pipeline: columns scroll sideways inside their own box, never the page */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78vw); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; max-width: 100%; }
@media (min-width: 900px) { .kanban { grid-auto-columns: minmax(230px, 1fr); } }
.kcol { background: var(--held-soft); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; min-width: 0; align-self: start; }
.kcol h2 { font-size: .95rem; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.kcol.stage-hired { border-color: var(--ok); } .kcol.stage-rejected { opacity: .85; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.kname { font-weight: 700; color: var(--ink); text-decoration: none; } .kname:hover { text-decoration: underline; }
.kcard .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
/* resume print page helper classes used in-app */
.paper { background: #fff; color: #111; }
@media (max-width: 480px) { .jc-head .co-logo { width: 36px; height: 36px; } .kanban { grid-auto-columns: minmax(240px, 84vw); } }
.tabs.jobnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; max-width: 100%; }
.tabs.jobnav a { white-space: nowrap; padding: 9px 12px; }
.jobsave { margin-top: 18px; display: grid; gap: 8px; }
form.jobsave { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }

/* Update 13 phone and a11y fixes
   Rules here are intentionally low specificity (:where) so module CSS can still override them.
   Touch sizes apply up to 768px wide. */
.tbl-wrap { overflow-x: auto; max-width: 100%; }
.plat { overflow-wrap: break-word; }
.plat :is(h1, h2, h3) { overflow-wrap: anywhere; }
.plat :is(td, th) .btn { white-space: nowrap; }
/* tables that sit straight inside a panel scroll inside it on phones, never the page */
@media (max-width: 640px) {
  .panel > table.tbl, .panel > form > table.tbl { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .panel > table.tbl th { white-space: nowrap; }
  .panel > table.tbl td { min-width: 4.5rem; }
}
/* anchors and focused fields never hide under the sticky header */
html { scroll-padding-top: 84px; }
:where([id]) { scroll-margin-top: 84px; }
/* header: brand, account and menu stay on one row on phones */
@media (max-width: 480px) {
  .plat .top .wrap { gap: 8px; flex-wrap: nowrap; }
  .plat .top .brand { font-size: .86rem; gap: 6px; min-width: 0; flex: 1 1 auto; letter-spacing: -.03em; }
  .plat .acct summary, .plat .menu summary { font-size: .84rem; padding: 8px; }
  .plat .top .wrap { padding-block: 8px; }
  .plat .top .brand span, .plat .top .brand b { overflow: hidden; text-overflow: ellipsis; }
  .plat .acct-wrap { flex: none; margin-left: 0; }
  .plat .acct summary { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .plat .top .menu { flex: none; margin-left: 0; order: 3; }
  .acct > div { max-width: calc(100vw - 32px); }
}
@media (max-width: 768px) {
  body .btn, body.plat .btn, body.plat .btn.small, body.plat button.btn, body.plat a.btn { min-height: 44px; justify-content: center; }
  :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]), select, textarea) { min-height: 44px; }
  :where(select) { padding-block: 8px; }
  :where(.acct summary, .menu summary, .top .brand, .morefilters > summary, .report summary, .ev-faq summary, .inlinef > summary, details.ev-cal > summary, details > summary) { min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
  :where(.menu nav a, .acct a, .acct button) { min-height: 44px; display: flex; align-items: center; }
  :where(.chk, .resopts label, .ev-perms label, .ev-del) { min-height: 44px; align-items: center !important; }
  :where(input[type=checkbox], input[type=radio]) { min-width: 22px; min-height: 22px; height: 22px; }
  :where(.tabs a, .admnav .adm-home, .admnav li a, .pager a, .kname, a.meta, .ev-sharelinks a, .ev-cal .links a, .socials a, .sharebox a) { min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
  :where(.crumbs a) { min-height: 32px; display: inline-flex; align-items: center; }
  :where(table .chk, td label, th label) { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
  footer .socials { gap: 0 8px; }
  body.plat .btn.small { padding-inline: 14px; }
}
/* contrast in the existing palette */
.adslot { background: var(--surface); border-color: var(--line); color: var(--ink); }
.adlabel { background: var(--surface); color: var(--muted); }
.tbl th, .tbl td { border-bottom-color: var(--line); }
.stars { color: #8F5F00; }
.plat .list li > * { min-width: 0; }
.plat .planpick select { max-width: 100%; min-width: 0; }
@media (max-width: 640px) {
  .plat .planpick { display: flex; flex-wrap: wrap; width: 100%; }
  .plat .planpick select { flex: 1 1 200px; width: 100% !important; }
}
@media (max-width: 768px) {
  .ev-cal > div { display: grid; }
  .ev-cal > div a { display: flex; align-items: center; min-height: 44px; }
  :where(td, th) > input[type=checkbox] { min-width: 28px; min-height: 28px; height: 28px; width: 28px !important; }
  .plat p > a:only-child:not(.btn), .plat .meta > a:only-child { display: inline-block; padding-block: 8px; }
}
@media (max-width: 380px) { .plat .top .brand { font-size: .8rem; } }
@media (max-width: 340px) { .plat .top .wrap { flex-wrap: wrap; } .plat .top .brand { flex-basis: 100%; font-size: .95rem; } .plat .top .menu { margin-left: auto; } }
.plat .top .brand { overflow: hidden; }
@media (max-width: 480px) {
  /* signed-out header has Sign in + Join + Menu: show the short mark so nothing overlaps (the link keeps its full aria-label) */
  .plat .top .wrap:has(.acct-wrap > a.btn) .brand { font-size: 0; flex: 0 0 auto; }
  .plat .top .wrap:has(.acct-wrap > a.btn) .brand::after { content: "JCN"; font-size: 1.05rem; letter-spacing: -.01em; }
  .plat .top .wrap:has(.acct-wrap > a.btn) .acct-wrap { margin-left: auto; gap: 6px; }
  .plat .acct-wrap > a.btn { padding: 8px 12px; font-size: .84rem; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-logo.ph { background: var(--accent-soft); color: var(--accent); } }
:root[data-theme="dark"] .co-logo.ph { background: var(--accent-soft); color: var(--accent); }
/* Admin navigation on phones: show only the section you are in (Admin home lists every section) instead of a 900px wall of links */
@media (max-width: 640px) {
  .admnav { padding: 12px 14px; margin-bottom: 16px; }
  .admnav .adm-home { margin-bottom: 6px; }
  .adm-cols { gap: 8px; }
  .adm-cols > section:not(:has(a.on)) { display: none; }
  .admnav h2 { font-size: 1rem; }
  .admnav ul { display: flex; flex-wrap: wrap; gap: 6px; }
}
.tbl td { overflow-wrap: anywhere; }
.ev-gtbl td:nth-child(2) { min-width: 11rem; }

/* Admin finder and list tools */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admfind { position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.admfind input[type=search] { flex: 1 1 320px; min-width: 0; padding: 11px 14px; font-size: 1rem; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; }
.admfind input[type=search]:focus { border-color: var(--accent); outline: none; }
.admfind-list { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin-top: 4px; max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.admfind-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); }
.admfind-list a small { opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.admfind-list a:hover, .admfind-list a.on { background: var(--accent); color: var(--accent-ink); }
.admfind-h { padding: 8px 14px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.admfind-all { justify-content: center !important; font-weight: 700; }
.azbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.azbar a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 700; }
.admtool { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin: 0 0 14px; }
.admtool label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
th[aria-sort] a { text-decoration: none; color: inherit; white-space: nowrap; }

/* Verified label */
.vtick{display:inline-flex;vertical-align:-2px;margin-left:3px;color:#1d7bf0}
.vtick svg{width:1em;height:1em}
