/* PRC Admin — LIT-UP mode stylesheet (recovered from backup-20261028-022224).
   Loaded only when the panel toggle is on (localStorage.prc_panel_theme = themed). */
/* lit-up mode: body margin fix (plain admin.css wins specificity otherwise) */
body { margin:0; }


/* PRC Admin — shared styles (hub + per-page editors). */
.admin-topbar { background:#14181d; color:#d7dade; padding:10px 0; border-bottom:2px solid var(--accent, #8f1d21); }
.admin-topbar .container { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.admin-topbar strong { font-family:var(--font-sans); font-size:14px; letter-spacing:.06em; }
.admin-topbar .admin-topbar__tag { background:var(--accent, #8f1d21); color:#fff; font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; padding:3px 9px; border-radius:4px; }
.admin-topbar a { color:#cfd3d8; font-size:13px; text-decoration:none; border-bottom:1px dotted #6b7178; }
.admin-topbar a:hover { color:#fff; border-color:#fff; }
.admin-topbar .spacer { flex:1; }

.admin-gate { max-width:420px; margin:70px auto 0; background:var(--surface-2, #f7f5f0); border:1px solid var(--line, #e3ded2); border-radius:10px; padding:30px 32px; text-align:center; }
.admin-gate h2 { font-family:var(--font-serif); font-size:24px; margin-bottom:8px; }
.admin-gate p { color:var(--muted, #7a7f85); font-size:14px; margin-bottom:18px; }
.admin-gate input[type=password] { width:100%; padding:12px 14px; font:inherit; font-size:16px; border:1px solid var(--line, #e3ded2); border-radius:6px; background:#fff; margin-bottom:14px; }
.admin-gate input[type=password]:focus { outline:none; border-color:var(--accent, #8f1d21); box-shadow:0 0 0 3px rgba(143,29,33,.12); }
.admin-gate button { width:100%; padding:12px; font:inherit; font-size:15px; font-weight:700; border:none; border-radius:6px; background:var(--accent, #8f1d21); color:#fff; cursor:pointer; }
.admin-gate .gate-err { color:#b3261e; font-size:13px; margin-top:10px; min-height:16px; }

.admin-main { padding:34px 0 60px; }
.admin-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:22px; }
.admin-head h1 { font-family:var(--font-serif); font-size:30px; margin:0 0 4px; }
.admin-head .admin-head__sub { color:var(--muted, #7a7f85); font-size:14px; margin:0; }
.admin-actions { display:flex; gap:10px; flex-wrap:wrap; }
.admin-btn { padding:10px 16px; font:inherit; font-size:13.5px; font-weight:700; border-radius:6px; border:1px solid var(--line, #e3ded2); background:#fff; color:var(--ink, #14181d); cursor:pointer; }
.admin-btn:hover { border-color:var(--accent, #8f1d21); color:var(--accent, #8f1d21); }
.admin-btn--primary { background:var(--accent, #8f1d21); border-color:var(--accent, #8f1d21); color:#fff; }
.admin-btn--primary:hover { opacity:.9; color:#fff; }
.admin-btn:disabled { opacity:.5; cursor:not-allowed; }
.admin-status { font-size:13px; color:var(--muted, #7a7f85); min-height:18px; margin-left:4px; }
.admin-status.ok { color:#2e7d43; }
.admin-status.err { color:#b3261e; }

.admin-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; margin-bottom:26px; }
.admin-stat { background:var(--surface-2, #f7f5f0); border:1px solid var(--line, #e3ded2); border-radius:8px; padding:16px 18px; }
.admin-stat__label { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted, #7a7f85); margin-bottom:6px; }
.admin-stat__value { font-size:20px; font-weight:700; font-family:var(--font-serif); }
.admin-stat__value .ok { color:#2e7d43; }
.admin-stat__value .bad { color:#b3261e; }
.admin-stat__foot { font-size:12.5px; color:var(--muted, #7a7f85); margin-top:4px; }

.admin-table-wrap { background:var(--surface-2, #f7f5f0); border:1px solid var(--line, #e3ded2); border-radius:8px; padding:8px; overflow-x:auto; }
table.admin-table { width:100%; border-collapse:collapse; font-size:14px; }
table.admin-table th { text-align:left; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted, #7a7f85); padding:10px 12px; border-bottom:1px solid var(--line, #e3ded2); }
table.admin-table td { padding:11px 12px; border-bottom:1px solid var(--line, #e3ded2); vertical-align:middle; }
table.admin-table tr:last-child td { border-bottom:none; }
table.admin-table a { color:var(--accent, #8f1d21); font-weight:600; text-decoration:none; border-bottom:1px dotted var(--accent, #8f1d21); }

.region-card { background:var(--surface-2, #f7f5f0); border:1px solid var(--line, #e3ded2); border-radius:10px; padding:18px 20px; margin-bottom:18px; }
.region-card__head { display:flex; align-items:baseline; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
.region-card__head h3 { font-family:var(--font-sans); font-size:15px; font-weight:700; margin:0; }
.region-card__head code { font-size:12px; color:var(--muted, #7a7f85); background:rgba(0,0,0,.05); padding:2px 7px; border-radius:4px; }
.region-card__note { font-size:13px; color:var(--muted, #7a7f85); width:100%; }
.region-split { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:900px){ .region-split { grid-template-columns:1fr; } }
.region-editor textarea { width:100%; min-height:220px; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:12.5px; line-height:1.5; border:1px solid var(--line, #e3ded2); border-radius:6px; background:#fff; padding:12px; resize:vertical; }
.region-editor textarea:focus { outline:none; border-color:var(--accent, #8f1d21); box-shadow:0 0 0 3px rgba(143,29,33,.12); }
.region-preview { border:1px dashed var(--line, #e3ded2); border-radius:6px; background:#fff; padding:14px; overflow:auto; }
.region-preview__label { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted, #7a7f85); margin-bottom:8px; }
.admin-hint { font-size:13px; color:var(--muted, #7a7f85); margin-bottom:18px; }
.admin-link-card { display:block; text-decoration:none; color:inherit; background:var(--surface-2, #f7f5f0); border:1px solid var(--line, #e3ded2); border-radius:8px; padding:16px 18px; }
.admin-link-card:hover { border-color:var(--accent, #8f1d21); }
.admin-link-card h3 { margin:0 0 4px; font-size:15px; }
.admin-link-card p { margin:0; font-size:13px; color:var(--muted, #7a7f85); }
.admin-grid-2 { display:grid; grid-template-columns:2fr 1fr; gap:16px; align-items:start; }
@media (max-width:900px){ .admin-grid-2 { grid-template-columns:1fr; } }
/* Slim admin top bar (replaces the double header on admin pages). */
.adm-slim { background:#14181d; border-bottom:2px solid var(--accent); }
.adm-slim__inner { display:flex; align-items:center; gap:14px; padding:12px 0; flex-wrap:wrap; }
.adm-slim__brand { font-family:var(--font-serif); font-weight:700; font-size:15px; color:#fff; white-space:nowrap; }
.adm-slim__pepper { margin-left:4px; }
.adm-slim__tag { background:var(--accent); color:#fff; font-size:10.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; padding:3px 9px; border-radius:4px; }
.adm-slim__nav { display:flex; gap:4px; flex-wrap:wrap; }
.adm-slim__nav a { color:#cfd3d8; text-decoration:none; font-size:14px; font-weight:600; padding:7px 13px; border-radius:6px; }
.adm-slim__nav a:hover { color:#fff; background:rgba(255,255,255,.08); }
.adm-slim__nav a.is-current { color:#fff; background:var(--accent); }
.adm-slim__spacer { flex:1; }
.adm-slim__back { color:#cfd3d8; text-decoration:none; font-size:13.5px; font-weight:600; border-bottom:1px dotted #6b7178; }
.adm-slim__back:hover { color:#fff; border-color:#fff; }

/* Simpler hub: big clickable section cards instead of a dense table. */
.hub-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:16px; margin-bottom:26px; }
.hub-card { display:flex; flex-direction:column; gap:6px; text-decoration:none; color:inherit; background:var(--surface-2); border:1px solid var(--line); border-radius:10px; padding:20px 22px; transition:border-color .15s, box-shadow .15s; }
.hub-card:hover { border-color:var(--accent); box-shadow:0 2px 10px rgba(143,29,33,.10); }
.hub-card__icon { font-size:24px; line-height:1; }
.hub-card h3 { font-family:var(--font-serif); font-size:19px; margin:4px 0 0; color:var(--ink); }
.hub-card p { margin:0; font-size:13.5px; color:var(--muted); flex:1; }
.hub-card__go { font-size:13px; font-weight:700; color:var(--accent); }
.hub-section { margin-bottom:26px; }
.hub-section > h2 { font-family:var(--font-sans); font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:0 0 12px; }


/* admin-theme.css — visual polish for the PRC admin (loads after admin.css). */

/* ---- slim top bar ---- */
.adm-slim__nav { background:rgba(255,255,255,.05); border-radius:999px; padding:4px; }
.adm-slim__nav a { border-radius:999px; padding:6px 14px; }
.adm-slim__nav a:hover { background:rgba(255,255,255,.10); }
.adm-slim__nav a.is-current { box-shadow:0 1px 4px rgba(0,0,0,.4); }

/* ---- gate ---- */
.admin-gate { box-shadow:0 14px 40px rgba(20,24,29,.14); padding:38px 40px; }
.admin-gate button { transition:filter .15s, transform .05s; }
.admin-gate button:hover { filter:brightness(1.08); }
.admin-gate button:active { transform:translateY(1px); }

/* ---- buttons ---- */
.admin-btn { transition:border-color .15s, color .15s, box-shadow .15s, transform .05s; }
.admin-btn:hover { box-shadow:0 2px 8px rgba(20,24,29,.10); }
.admin-btn:active { transform:translateY(1px); }
.admin-btn--primary { box-shadow:0 2px 10px rgba(143,29,33,.28); }
.admin-btn--primary:hover { opacity:.94; }

/* ---- hub cards ---- */
.hub-card { transition:border-color .15s, box-shadow .2s, transform .2s; box-shadow:0 1px 3px rgba(20,24,29,.06); }
.hub-card:hover { transform:translateY(-3px); box-shadow:0 10px 26px rgba(143,29,33,.14); }
.hub-card__icon { display:inline-flex; width:46px; height:46px; align-items:center; justify-content:center; background:#fff; border:1px solid var(--line); border-radius:10px; }
.hub-stat { box-shadow:0 1px 3px rgba(20,24,29,.06); }
.admin-cards { gap:16px; }

/* ---- tables (FMP admin) ---- */
table.admin-table tbody tr { transition:background .12s; }
table.admin-table tbody tr:hover { background:rgba(143,29,33,.045); }
table.admin-table input { width:100%; box-sizing:border-box; font:inherit; font-size:13.5px; padding:7px 9px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); }
table.admin-table input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(143,29,33,.12); }

/* ---- WYSIWYG editor ---- */
.admin-actions--sticky { position:sticky; top:0; z-index:20; background:rgba(247,245,240,.92); backdrop-filter:blur(6px); border:1px solid var(--line); border-radius:10px; padding:12px 14px; margin:0 0 18px; align-items:center; }
.region-card { background:#fff; box-shadow:0 1px 3px rgba(20,24,29,.06); }
.region-card__head h3 { font-size:16px; }
.region-card__tag { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); background:rgba(143,29,33,.08); padding:3px 9px; border-radius:999px; }
.region-card__spacer { flex:1; }
.region-btn { font:inherit; font-size:12px; font-weight:600; color:var(--muted); background:#fff; border:1px solid var(--line); border-radius:6px; padding:5px 10px; cursor:pointer; }
.region-btn:hover { color:var(--accent); border-color:var(--accent); }
.region-toolbar { display:flex; gap:6px; margin:10px 0 8px; flex-wrap:wrap; }
.region-toolbar button { font:inherit; font-size:13px; color:var(--ink); background:var(--surface-2); border:1px solid var(--line); border-radius:6px; padding:6px 11px; cursor:pointer; transition:border-color .12s, background .12s; }
.region-toolbar button:hover { border-color:var(--accent); background:#fff; }
.region-wysiwyg { border:1px solid var(--line); border-radius:8px; background:#fff; padding:26px 30px; min-height:130px; font-size:16px; line-height:1.65; color:var(--ink); cursor:text; transition:border-color .15s, box-shadow .15s; }
.region-wysiwyg:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(143,29,33,.13); }
.region-wysiwyg.is-empty::before { content:"Click here and start writing…"; color:#a7a294; font-style:italic; }
.region-wysiwyg ul { padding-left:24px; margin:10px 0; }
.region-wysiwyg li { margin-bottom:6px; }
.region-wysiwyg h2, .region-wysiwyg h3 { font-family:var(--font-serif); }
.region-wysiwyg.is-dark { background:#1d2228; color:#d7dade; border-color:#2f353d; }
.region-wysiwyg.is-dark:focus { box-shadow:0 0 0 3px rgba(224,122,112,.25); }
.region-codebox { margin-top:8px; }
.region-codebox textarea { width:100%; box-sizing:border-box; min-height:220px; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:12.5px; line-height:1.5; border:1px solid var(--line); border-radius:6px; background:var(--surface-2); padding:12px; resize:vertical; }
.region-codebox textarea:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(143,29,33,.12); }

/* keep the public page's own content classes tidy inside the panel */
.region-wysiwyg .container { max-width:none; padding:0; }
.region-wysiwyg .news-grid, .region-wysiwyg .ministry-cards, .region-wysiwyg .service-grid,
.region-wysiwyg .section-grid, .region-wysiwyg .tile-grid { gap:14px; }


/* ---- hub shell + forms (from the pre-plain admin.html head) ---- */
    /* ---- unified single-panel layout ---- */
    .adm-shell { display:grid; grid-template-columns:224px minmax(0,1fr); gap:26px; align-items:start; }
    @media (max-width:820px){ .adm-shell { grid-template-columns:1fr; } }
    .adm-side { position:sticky; top:18px; }
    @media (max-width:820px){ .adm-side { position:static; } }
    .adm-side h3 { font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:0 0 8px 6px; }
    .adm-side__list { list-style:none; margin:0 0 18px; padding:0; display:flex; flex-direction:column; gap:2px; }
    .adm-side__list a { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; text-decoration:none; color:var(--ink); font-size:14px; font-weight:600; }
    .adm-side__list a span { font-size:16px; width:20px; text-align:center; }
    .adm-side__list a:hover { background:var(--surface-2); color:var(--accent); }
    .adm-side__list a.is-current { background:var(--accent); color:#fff; box-shadow:0 2px 8px rgba(143,29,33,.22); }
    .adm-side__foot { font-size:12px; color:var(--muted); margin:0; padding:10px 12px 0; line-height:1.5; }
    .adm-tab { min-width:0; }

    /* ---- create forms (New statement / New news) ---- */
    .adm-form { background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 1px 3px rgba(20,24,29,.06); padding:20px 22px; margin-bottom:22px; }
    .adm-form h3 { font-family:var(--font-serif); font-size:20px; margin:0 0 4px; }
    .adm-form__sub { font-size:13px; color:var(--muted); margin:0 0 16px; }
    .adm-form__grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
    @media (max-width:700px){ .adm-form__grid { grid-template-columns:1fr; } }
    .adm-form__field label { display:block; font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:5px; }
    .adm-form__field input[type=text], .adm-form__field input[type=date], .adm-form__field select {
      width:100%; box-sizing:border-box; padding:10px 12px; font:inherit; font-size:14px;
      border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); }
    .adm-form__field input:focus, .adm-form__field select:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(143,29,33,.12); }
    .adm-form__actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:6px; }

    /* ---- item delete buttons (in editor panes) ---- */
    .region-wysiwyg .item-del { float:right; font:inherit; font-size:11.5px; font-weight:700; letter-spacing:.04em;
      color:var(--muted); background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:4px 12px; cursor:pointer; }
    .region-wysiwyg .item-del:hover { color:#b3261e; border-color:#b3261e; background:#fff; }
    .region-wysiwyg .item-tools { display:flex; gap:6px; margin:0 0 10px; float:right; }
    .region-wysiwyg .item-dup { color:var(--accent); border-color:var(--accent); }
    .region-wysiwyg .item-dup:hover { background:var(--accent); color:#fff; }

    /* link cards for the "Other pages" tab */
    .adm-linkgrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; }

    /* ---- embedded panels (Election controls / Poll) ---- */
    .adm-pane__embed { border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#fff; }
    .adm-pane__embed iframe { display:block; width:100%; height:74vh; min-height:560px; border:0; }
  

/* ---- election panel (from the pre-plain admin-election.html) ---- */
  .adm-card { background:#fff; border:1px solid #e3ded2; border-radius:8px; padding:24px 28px; max-width:820px; }
  .adm-gate h3 { font-family:var(--font-serif); font-size:18px; margin-bottom:10px; color:var(--ink); }
  .adm-gate label { display:block; font-family:var(--font-sans); font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
  .adm-gate input { width:100%; padding:11px 13px; font:inherit; font-size:15px; border:1px solid var(--line); border-radius:6px; background:var(--surface-2); letter-spacing:.15em; }
  .adm-gate input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-tint); }
  .adm-gate button { margin-top:14px; font:inherit; font-weight:700; font-size:14px; color:#fff; background:var(--accent); border:none; border-radius:6px; padding:11px 20px; cursor:pointer; }
  .adm-gate button:disabled { opacity:.6; cursor:default; }
  .adm-err { margin-top:14px; background:#fdf0ef; border:1px solid #e7b6b2; border-radius:8px; padding:12px 14px; color:#8f1d21; font-size:14px; display:none; }
  .adm-err.show { display:block; }
  .adm-dash { display:none; }
  .adm-dash.show { display:block; }
  .adm-status { display:flex; gap:18px; flex-wrap:wrap; margin:6px 0 18px; }
  .adm-stat { flex:1 1 150px; border:1px solid var(--line-soft); border-radius:8px; padding:14px 16px; background:var(--surface-2); }
  .adm-stat .k { font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
  .adm-stat .v { font-family:var(--font-serif); font-size:24px; font-weight:700; color:var(--ink); margin-top:4px; }
  /* the voting-window value can carry several sessions; small sans-serif wraps
     inside the card instead of clipping the 24px serif */
  #admWindow { font-family:var(--font-sans); font-size:13px; font-weight:600; line-height:1.55; }
  .adm-tally { margin-bottom:18px; }
  .adm-tally h4, .adm-voters h4 { font-family:var(--font-sans); font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); margin-bottom:10px; }
  .adm-voters table { width:100%; border-collapse:collapse; font-size:13.5px; }
  .adm-voters th { text-align:left; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); padding:6px 8px; border-bottom:1px solid var(--line); }
  .adm-voters td { padding:6px 8px; border-bottom:1px solid var(--line-soft); color:var(--ink-soft); vertical-align:top; }
  .adm-voters .mono { font-variant-numeric:tabular-nums; }
  .adm-voters .empty { color:var(--muted); font-style:italic; padding:10px 0; }
  .adm-actions { margin-top:20px; padding-top:16px; border-top:1px solid var(--line-soft); display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
  .adm-actions button { font:inherit; font-size:14px; font-weight:700; border-radius:6px; padding:10px 16px; cursor:pointer; border:1px solid var(--line); background:var(--surface-2); color:var(--ink); }
  .adm-actions button:hover { border-color:var(--accent); color:var(--accent); }
  .adm-actions button.primary { background:var(--accent); border-color:var(--accent); color:#fff; }
  .adm-actions button.primary:hover { background:var(--accent-ink); }
  .adm-actions button.danger:hover { border-color:#b3261e; color:#b3261e; }
  .adm-note { margin-top:16px; color:var(--muted); font-size:12.5px; font-style:italic; }
  .adm-lock { margin-top:18px; border:1px solid #e0c889; background:#fbf6e8; border-radius:8px; padding:14px 16px; color:#7a5f1e; font-size:14px; display:none; }
  .adm-lock.show { display:block; }
  .adm-lock strong { font-family:var(--font-serif); font-size:15px; }
  .adm-locked-actions button:disabled { opacity:.45; cursor:not-allowed; }
  .adm-locked-actions input:disabled { opacity:.5; cursor:not-allowed; }
  .adm-preview { margin-top:14px; border:1px solid var(--line-soft); background:var(--surface-2); border-radius:8px; padding:14px 16px; display:none; }
  .adm-preview.show { display:block; }
  .adm-preview h4 { margin:0 0 8px; font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
  .adm-preview .adm-preview__win { font-family:var(--font-serif); font-size:20px; font-weight:700; color:var(--accent); }
  .adm-preview .adm-preview__note { font-size:12.5px; color:var(--muted); margin-top:6px; }
  .adm-search { font:inherit; font-size:14px; padding:9px 12px; border:1px solid var(--line); border-radius:6px; background:var(--surface-2); color:var(--ink); width:260px; }
  .adm-ctl { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:14px; }
  .adm-ctl input { font:inherit; font-size:14px; padding:9px 10px; border:1px solid var(--line); border-radius:6px; background:var(--surface-2); color:var(--ink); width:90px; }
  .adm-bcast { margin-top:14px; border:1px solid var(--line-soft); border-radius:8px; padding:14px 16px; background:var(--surface-2); }
  .adm-bcast[hidden] { display:none; }
  .adm-result { margin-top:14px; border:1px solid var(--gold); background:#faf6ec; border-radius:8px; padding:14px 16px; display:none; font-size:15px; color:var(--ink); }
  .adm-result.show { display:block; }
  .ec-creator { margin-top:20px; border:1px solid var(--line); border-radius:8px; background:var(--surface-2); }
  .ec-creator > summary { cursor:pointer; padding:14px 18px; list-style:none; display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
  .ec-creator > summary::-webkit-details-marker { display:none; }
  .ec-creator__sum { font-family:var(--font-serif); font-size:17px; font-weight:700; color:var(--ink); }
  .ec-creator__hint { font-size:12.5px; color:var(--muted); font-style:italic; }
  .ec-creator__body { padding:6px 18px 18px; }
  .ec-h { font-family:var(--font-sans); font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); margin:18px 0 8px; }
  .ec-hint { font-weight:400; text-transform:none; letter-spacing:0; color:var(--muted); font-size:12px; }
  .ec-line { display:flex; align-items:flex-start; gap:10px; margin:8px 0; font-size:14px; color:var(--ink); flex-wrap:wrap; }
  /* Fixed label column so every input in a section starts at the same left
     edge (the labels vary from 69px to 400px wide, so auto-width staggered them).
     Long labels wrap inside the column instead of pushing their input. */
  .ec-line .ec-k { font-size:13px; font-weight:700; color:var(--muted); flex:0 0 240px; line-height:1.35; }
  .ec-line > input:not(.ec-k), .ec-line > .ec-in { margin-top:2px; }
  .ec-in { font:inherit; font-size:14px; padding:8px 10px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); max-width:340px; }
  .ec-in--wide { width:100%; max-width:420px; }
  .ec-in--dt { width:230px; }
  .ec-in--num { width:90px; }
  .ec-btn { font:inherit; font-size:13.5px; font-weight:700; border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:6px; padding:8px 14px; cursor:pointer; }
  .ec-btn:hover { border-color:var(--accent); color:var(--accent); }
  .ec-btn--primary { background:var(--accent); border-color:var(--accent); color:#fff; }
  .ec-btn--primary:hover { background:var(--accent-ink); }
  .ec-btn--tiny { padding:3px 8px; font-size:12px; }
  .ec-btn--tiny.danger:hover { border-color:#b3261e; color:#b3261e; }
  .ec-sess { border:1px solid var(--line-soft); border-radius:8px; padding:10px 12px; margin:8px 0; background:#fff; }
  .ec-sess__row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:6px 0; }
  .ec-sess__lab { flex:0 0 90px; font-size:12.5px; font-weight:700; color:var(--muted); }
  .ec-cand { border:1px solid var(--line-soft); border-radius:8px; padding:10px 12px; margin:8px 0; background:#fff; }
  .ec-cand__row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:6px 0; }
  /* the "Status line" / "Ballot note" inputs share the card with a label pair;
     let them flex to the remaining width instead of wrapping to a second row */
  .ec-cand__row .ec-in--wide { flex:1 1 220px; min-width:180px; max-width:none; }
  .ec-creator__foot { margin-top:18px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
  .cc-cust { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:8px; }
  .cc-cust .cc-cust-label { flex:1 1 200px; min-width:160px; }
  .cc-cust .cc-cust-utc { flex:0 1 220px; }
  .ec-msg { font-size:13px; color:var(--muted); }
  .ec-msg--ok { color:#2f5d3a; font-weight:700; }
  .ec-msg--err { color:#8f1d21; font-weight:700; }
  .ec-note { font-size:12.5px; color:var(--muted); font-style:italic; margin:8px 0; }
  

/* ---- poll panel (from the pre-plain admin-poll.html) ---- */
    .poll-admin { max-width: 780px; }
    .pa-field { margin-bottom: 14px; }
    .pa-field label { display:block; font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:5px; }
    .pa-field input[type=text] { width:100%; box-sizing:border-box; padding:10px 12px; font:inherit; font-size:14px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); }
    .pa-field input[type=text]:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(143,29,33,.12); }
    .pa-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:10px; }
    .pa-row .chk { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; }
    .pa-opts { border:1px solid var(--line); border-radius:8px; padding:14px 16px; background:#fff; margin-bottom:14px; }
    .pa-opt { display:grid; grid-template-columns:110px 1fr 1fr 36px; gap:8px; margin-bottom:8px; align-items:center; }
    .pa-opt input { padding:8px 10px; font:inherit; font-size:13.5px; border:1px solid var(--line); border-radius:6px; width:100%; box-sizing:border-box; }
    .pa-opt input:focus { outline:none; border-color:var(--accent); }
    .pa-del { font:inherit; font-size:12px; font-weight:700; color:var(--muted); background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:5px 0; cursor:pointer; }
    .pa-del:hover { color:#b3261e; border-color:#b3261e; background:#fff; }
    .pa-add { font:inherit; font-size:13px; font-weight:700; color:var(--accent); background:none; border:1px dashed var(--accent); border-radius:6px; padding:7px 12px; cursor:pointer; }
    .pa-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
    .pa-btn { font:inherit; font-size:13.5px; font-weight:700; color:#fff; background:var(--accent); border:none; border-radius:6px; padding:9px 16px; cursor:pointer; }
    .pa-btn--ghost { background:var(--surface-2); color:var(--ink); border:1px solid var(--line); }
    .pa-msg { font-size:13px; margin-left:4px; }
    .pa-msg.ok { color:#3f7d2e; } .pa-msg.err { color:#b3261e; }
    .pa-results { border:1px solid var(--line); border-radius:8px; padding:16px 18px; background:var(--surface-2); }
    .pa-results h3 { font-family:var(--font-serif); font-size:16px; margin:0 0 10px; }
    .pa-rrow { display:grid; grid-template-columns:180px 1fr 90px; gap:10px; align-items:center; margin-bottom:8px; font-size:13.5px; }
    .pa-rrow .bar { height:10px; background:#fff; border:1px solid var(--line); border-radius:999px; overflow:hidden; }
    .pa-rrow .fill { height:100%; background:var(--accent); }
    .pa-rtotal { font-size:13px; color:var(--muted); margin-top:8px; }
    @media (max-width:640px){ .pa-opt { grid-template-columns:1fr 1fr; } .pa-rrow { grid-template-columns:1fr 70px; } .pa-rrow .bar { grid-column:1 / -1; order:3; } }
  