/* Admin-only additions on top of the public site's styles.css */
[hidden] { display: none !important; }
.admin-links a.active { color: var(--text); font-weight: 600; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 32px 0 16px; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 42px); }
.back { display: inline-flex; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; margin-top: 24px; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.detail-grid { display: grid; gap: 16px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 1040px) { .detail-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.col { display: flex; flex-direction: column; gap: 16px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.about { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 8px 0 0; }

.job-req { border-top: 1px solid var(--line); padding: 14px 0; }
.job-req:first-of-type { border-top: 0; padding-top: 0; }
.job-req h3 { font-size: 16px; margin: 6px 0; }
.job-req ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }

.actions textarea { margin: 8px 0 12px; }
.actions .row-actions { margin-top: 0; }
.btn-danger { background: transparent; color: #d92d20; border-color: color-mix(in srgb, #d92d20 40%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, #d92d20 10%, transparent); }

.result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.score { font-family: var(--serif); font-size: 34px; line-height: 1; }
.q-review { border-top: 1px solid var(--line); padding: 14px 0; }
.q-review > b { display: block; margin-bottom: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: 8px; font-size: 14px; margin-top: 4px; border: 1px solid transparent; }
.opt .mark { flex: none; width: 18px; text-align: center; font-weight: 700; }
.opt.correct { background: var(--t1-bg); color: var(--t1); }
.opt.wrong { background: color-mix(in srgb, #d92d20 12%, transparent); color: #d92d20; }
.opt.picked { border-color: currentColor; }
.explain { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.timeline li { padding: 8px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.bank-q { border-top: 1px solid var(--line); padding: 16px 0; }
.wd-grid { display: grid; gap: 14px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 1040px) { .wd-grid { grid-template-columns: 1fr 1fr; } }
.wd-card code { font-size: 13px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.wd-card .copy { padding: 2px 8px; font-size: 12px; margin-left: 4px; }
.wd-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar select { max-width: 420px; }
