/* /admin: Laureates editor. Uses the site's type and colors. */
body.admin { background: #faf9f7; }
.ia-top { display: flex; align-items: center; gap: 18px; height: 64px; border-bottom: 1px solid var(--rule); }
.ia-top .mini-word { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -.03em; }
.ia-top .mini-word .dot { color: var(--purple); }
.ia-user { margin-left: auto; font-family: var(--sans); font-size: 14px; color: var(--ink-2); display: flex; gap: 14px; align-items: center; }
.admin main { padding: 32px 0 80px; font-family: var(--sans); }
.admin h1 { font-family: var(--serif); font-weight: 500; font-size: 34px; margin: 0 0 8px; letter-spacing: -.02em; }
.ia-card { max-width: 520px; margin: 60px auto; background: #fff; border: 1px solid var(--rule); padding: 32px; }
.ia-card p { color: var(--ink-2); }
.ia-row { display: flex; gap: 10px; }
.admin input, .admin select, .admin textarea { font: 15px/1.4 var(--sans); padding: 9px 11px; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
.admin input:focus, .admin select:focus, .admin textarea:focus { outline: 2px solid var(--purple); outline-offset: -1px; border-color: var(--purple); }
.ia-row input { flex: 1; }
.ia-note { font-size: 13.5px; color: var(--ink-3); margin: 10px 0; }
.ia-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ia-bar h1 { margin: 0 auto 0 0; }
.ia-bar input, .ia-bar select { width: auto; min-width: 180px; }
.ia-count { font-family: var(--mono); font-size: 14px; color: var(--ink-3); }
.ia-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rule); margin-top: 12px; }
.ia-table th { text-align: left; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.ia-table td { padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 15px; vertical-align: middle; }
.ia-table tbody tr { cursor: pointer; }
.ia-table tbody tr:hover td { background: #f6f4fb; }
.ia-edit-btn { border: 1px solid var(--purple); border-radius: 3px; padding: 6px 12px; }
.ia-thumb { width: 44px; height: 44px; object-fit: cover; display: block; background: #eee; }
.ia-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: var(--c); }
.ia-name { font-family: var(--serif); font-size: 18px; }
.ia-empty { text-align: center; color: var(--ink-3); padding: 40px; }
.admin input.ia-switch { position: relative; flex: none; width: 40px; min-width: 0; height: 22px; appearance: none; background: #ccc; border-radius: 999px; cursor: pointer; transition: background .2s; padding: 0; border: 0; }
.admin input.ia-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.admin input.ia-switch:checked { background: var(--purple); }
.admin input.ia-switch:checked::after { transform: translateX(18px); }
.ia-linkbtn { background: none; border: 0; color: var(--purple); font: 500 14px var(--sans); cursor: pointer; }
.ia-dialog { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 0; padding: 0; border-top: 6px solid var(--ink); }
.ia-dialog::backdrop { background: rgba(17,17,17,.5); }
.ia-dialog form { font-family: var(--sans); }
.ia-dhead { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--rule); }
.ia-dhead h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; }
.ia-x { background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--ink-2); }
.ia-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding: 22px 24px; }
.ia-photo canvas { width: 100%; aspect-ratio: 1 / 1; background: repeating-linear-gradient(135deg, #f2f2f2 0 10px, #fff 10px 20px); display: block; border: 1px solid var(--rule); }
.ia-upload { display: block; text-align: center; margin-top: 10px; cursor: pointer; }
#ia-crop label { display: block; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
#ia-crop input { padding: 0; }
.ia-fields label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.ia-fields label small { font-weight: 400; color: var(--ink-3); }
.ia-fields label > input, .ia-fields label > select, .ia-fields label > textarea { margin-top: 5px; font-weight: 400; }
.ia-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ia-check { display: flex !important; align-items: center; gap: 10px; font-size: 15px !important; }
.ia-check input { width: auto; }
.ia-dfoot { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--rule); background: #faf9f7; }
.ia-dfoot .ia-note { margin: 0 auto 0 0; }
.ia-del { background: none; border: 1px solid #c33; color: #c33; padding: 9px 14px; border-radius: 3px; font: 500 14px var(--sans); cursor: pointer; }
.ia-del.armed { background: #c33; color: #fff; }
@media (max-width: 760px) {
  .ia-grid { grid-template-columns: 1fr; }
  .ia-two { grid-template-columns: 1fr; }
  .ia-table th:nth-child(4), .ia-table td:nth-child(4) { display: none; }
}
.ia-x:focus { outline: none; }
.ia-x:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
