/* Open call tool. Brand values come from the Drummond brand kit; change the tokens to rebrand. */
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/jost-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #111111;
  --charcoal: #2E2E2E;
  --muted: #5F5F5F;
  --line: #DADADA;
  --stone: #E7E8E3;
  --paper: #FCFCFC;
  --white: #FFFFFF;
  --error: #B3261E;
  --success: #2E6B3F;
  --warn-bg: #FFF4E5;
  --font-display: "Cormorant", "Times New Roman", serif;
  --font-ui: "Jost", "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --tap: 48px;
  --maxw: 640px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 17px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: 0.005em; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 8vw, 44px); }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
p { margin: 0 0 14px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.kicker { font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 500; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 22px; border-radius: var(--radius); font: 500 15px/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink); -webkit-tap-highlight-color: transparent; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-danger { background: transparent; color: var(--error); border-color: var(--error); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.link-btn { background: none; border: 0; padding: 8px 4px; font: 500 15px var(--font-ui); text-decoration: underline; color: var(--ink); cursor: pointer; min-height: 40px; }
.btn:focus-visible, .link-btn:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Inputs */
input:not([type]), input[type=text], input[type=search], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; font-size: 16px; background: var(--white); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius); min-height: var(--tap); padding: 10px 12px; -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; accent-color: var(--ink); margin: 0; flex: none; }

/* Public layout */
.site-head { padding: 18px 16px 6px; text-align: center; }
.site-head .brand img { width: 170px; height: auto; }
.page { max-width: var(--maxw); margin: 0 auto; padding: 12px 16px 120px; }
.site-foot { text-align: center; color: var(--muted); font-size: 14px; padding: 0 16px 40px; }
.center-card { padding: 28px 0; text-align: center; }
.center-card .btn { margin-top: 8px; }
.notice { background: var(--stone); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 18px; font-size: 15.5px; }
.notice-preview { background: #111; color: #fff; }

/* Show page */
.show-cover { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin: 0 0 20px; background: var(--stone); }
.show-meta { color: var(--muted); margin: -2px 0 18px; }
.prose { margin: 0 0 20px; }
.rules { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0 6px; margin: 0 0 18px; }
.rules h2 { font-size: 22px; margin-bottom: 8px; }
.rules ul { margin: 0 0 10px; padding-left: 20px; }
.rules li { margin-bottom: 6px; }
.fee-note { font-size: 15.5px; }
.deadline { font-weight: 600; margin: 8px 0 14px; }
.apply-buttons { display: grid; gap: 10px; margin: 0 0 12px; }

/* Application form */
.apply-head { margin: 0 0 18px; }
.back-link { display: inline-block; font-size: 15px; color: var(--muted); text-decoration: none; margin: 0 0 14px; min-height: 32px; }
.progress { height: 4px; background: var(--stone); border-radius: 4px; overflow: hidden; margin: 0 0 14px; }
.progress span { display: block; height: 100%; width: 25%; background: var(--ink); transition: width .25s ease; }
.field { margin: 0 0 22px; }
.label { display: block; font-weight: 500; margin: 0 0 6px; }
.help { color: var(--muted); font-size: 15px; margin: -2px 0 8px; }
.help-inline { display: block; color: var(--muted); font-size: 15px; font-weight: 400; margin-top: 2px; }
.error { color: var(--error); font-size: 15px; margin: 6px 0 0; }
.warn { background: var(--warn-bg); border-radius: var(--radius); padding: 8px 10px; font-size: 14.5px; margin: 4px 0 10px; }
.has-error:not(.field-artworks) input, .has-error:not(.field-artworks) select, .has-error:not(.field-artworks) textarea { border-color: var(--error); }
.choices { display: grid; gap: 8px; }
.choices-row { grid-template-columns: 1fr 1fr; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; min-height: var(--tap); line-height: 1.35; }
.choice:has(input:checked) { border-color: var(--ink); }
.choice-block strong { font-weight: 500; }
.choice-inline { border: 0; padding: 6px 0; background: transparent; min-height: 40px; }
.form-error { background: #FBEAEA; color: var(--error); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 16px; font-size: 15.5px; }
.privacy { color: var(--muted); font-size: 14.5px; margin: 6px 0 12px; }
.save-note { text-align: center; margin-top: 10px; }

/* Fixed action bar at the bottom of the screen on phones */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(252, 252, 252, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(6px); }
.action-bar .btn { flex: 1; }
.action-bar #btn-back { flex: 0 0 auto; }
@media (min-width: 700px) {
  .action-bar { position: static; background: none; border: 0; padding: 8px 0 0; backdrop-filter: none; }
  .action-bar .btn { flex: 0 0 auto; }
  .action-bar #btn-next { margin-left: auto; min-width: 200px; }
}

/* Uploads */
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--stone); border: 1.5px solid var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-doc { display: flex; align-items: center; justify-content: center; height: 100%; padding: 8px; font-size: 13px; text-align: center; word-break: break-word; }
.tile-add { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; background: var(--white); border-style: dashed; font-size: 14px; gap: 2px; }
.tile-add .plus { font-size: 28px; line-height: 1; }
.tile-remove { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(17,17,17,.78); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.tile-progress { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 6px; background: rgba(255,255,255,.8); border-radius: 6px; overflow: hidden; }
.tile-progress span { display: block; height: 100%; background: var(--ink); width: 0; transition: width .2s; }
.tile-retry { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-height: 36px; padding: 0 12px; border-radius: var(--radius); border: 0; background: var(--error); color: #fff; font: 500 14px var(--font-ui); cursor: pointer; }
.tile-error { border-color: var(--error); }

/* Artwork entries */
.pieces { display: grid; gap: 14px; }
.piece { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--white); }
.piece-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; }
.piece-photo { position: relative; border-radius: var(--radius); background: var(--stone); min-height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0 0 12px; }
.piece-photo img { width: 100%; max-height: 320px; object-fit: contain; display: block; background: var(--stone); }
.piece-photo-btn { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 10px 16px; font: 500 14px var(--font-ui); cursor: pointer; white-space: nowrap; }
.piece-photo:not(:has(img)) .piece-photo-btn { position: static; transform: none; }
.mini-field { margin: 0 0 10px; }
.mini-field label { display: block; font-size: 14.5px; font-weight: 500; margin: 0 0 4px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Review summary */
.summary { margin: 0 0 20px; }
.summary-sec { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px; background: var(--white); }
.summary-head { display: flex; justify-content: space-between; align-items: center; }
.summary-head h2 { font-size: 21px; margin: 0; }
.summary-row { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--stone); }
.summary-label { font-size: 14px; color: var(--muted); }
.summary-val { white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- Admin ---------- */
body.admin { background: #F6F6F4; }
.admin-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-head .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.admin-head .brand img { width: 34px; height: 34px; }
.admin-head nav { display: flex; gap: 4px; align-items: center; }
.admin-head nav a { text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: var(--radius); }
.admin-head nav a:hover { background: var(--stone); }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 18px 16px 110px; }
.admin-main.narrow { max-width: 680px; }
.flash { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 12px 14px; margin: 0 0 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 0 0 14px; }
.card h2 { font-size: 24px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 6vw, 38px); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.b-new, .b-draft { background: var(--stone); color: var(--ink); }
.b-open, .b-accepted { background: var(--success); color: #fff; }
.b-closed, .b-archived { background: var(--ink); color: #fff; }
.b-not_selected { border: 1.5px solid var(--ink); color: var(--ink); padding: 2px 8px; }
.b-dup, .b-test { background: var(--warn-bg); color: #7A4B00; }
.b-set_aside { background: var(--stone); color: var(--muted); }

.show-list { display: grid; gap: 10px; }
.show-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; text-decoration: none; }
.show-row:hover { border-color: var(--ink); }
.show-row h3 { margin: 0 0 4px; font-size: 22px; }
.show-row .meta { font-size: 14px; color: var(--muted); }
.show-row .counts { font-size: 14px; text-align: right; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.stat b { display: block; font-size: 26px; font-family: var(--font-display); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding-bottom: 2px; }
.tabs a { flex: none; text-decoration: none; font-size: 14.5px; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white); white-space: nowrap; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.app-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; }
.app-card:hover { border-color: var(--ink); }
.app-card .thumb { aspect-ratio: 1; background: var(--stone); display: block; width: 100%; object-fit: cover; }
.app-card .body { padding: 10px 12px 12px; }
.app-card .name { font-weight: 500; line-height: 1.25; margin: 0 0 2px; overflow-wrap: anywhere; }
.app-card .sub.meta-line { margin-top: -4px; font-size: 13px; }
.app-card .sub { font-size: 13.5px; color: var(--muted); margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card .badges { display: flex; flex-wrap: wrap; gap: 4px; }

.detail-photos { display: grid; gap: 12px; margin: 0 0 16px; }
.detail-photo { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.detail-photo img { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: var(--stone); }
.detail-photo .cap { padding: 10px 12px; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.detail-photo .cap label { display: flex; gap: 8px; align-items: center; font-size: 14.5px; white-space: nowrap; }
.answers { display: grid; gap: 0; }
.answer { padding: 10px 0; border-top: 1px solid var(--stone); }
.answer .q { font-size: 14px; color: var(--muted); }
.answer .a { white-space: pre-line; overflow-wrap: anywhere; }
.file-links { display: flex; flex-wrap: wrap; gap: 8px; }
.file-links img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

.decision-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: 8px; align-items: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
.decision-bar .btn { flex: 1 1 0; min-width: 0; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.02em; font-size: 14px; }
.decision-bar .nav-btn { flex: 0 0 44px; padding: 0; }
@media (max-width: 360px) { .decision-bar { gap: 6px; padding-left: 8px; padding-right: 8px; } .decision-bar .btn { font-size: 13px; padding: 0 4px; letter-spacing: 0; } .decision-bar .nav-btn { flex-basis: 40px; } }
@media (min-width: 760px) { .decision-bar { padding-left: max(16px, calc(50% - 330px)); padding-right: max(16px, calc(50% - 330px)); } }
@media (min-width: 760px) { .detail-photos.pieces { grid-template-columns: repeat(2, 1fr); align-items: start; } .detail-photos.pieces.one { grid-template-columns: 1fr; max-width: 720px; } .detail-photos.pieces .detail-photo img { max-height: 60vh; } }
@media (min-width: 1000px) { .detail-photos.pieces.many { grid-template-columns: repeat(3, 1fr); } }

.q-list { display: grid; gap: 8px; }
.q-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.q-card.off { opacity: 0.55; }
.q-top { display: flex; gap: 10px; align-items: center; }
.q-top .q-label { flex: 1; font-weight: 500; line-height: 1.3; cursor: pointer; overflow-wrap: anywhere; }
.q-top .q-type { font-size: 12.5px; color: var(--muted); display: block; font-weight: 400; }
.q-moves { display: flex; gap: 4px; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; font-size: 16px; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.q-toggles { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.q-edit { margin-top: 10px; border-top: 1px solid var(--stone); padding-top: 10px; display: grid; gap: 10px; }
.q-edit label { font-size: 14px; font-weight: 500; display: block; margin-bottom: 4px; }
.step-title { font-family: var(--font-display); font-size: 22px; margin: 18px 0 8px; }

.form-grid { display: grid; gap: 14px; }
.form-grid label.lbl { display: block; font-weight: 500; margin: 0 0 5px; }
.form-grid .hint { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.two-col { display: grid; gap: 14px; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } }

.send-list { list-style: none; margin: 0 0 14px; padding: 0; }
.send-list li { padding: 10px 0; border-top: 1px solid var(--stone); }
.send-list .who { font-weight: 500; }
.send-list .em { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.send-list .pcs { font-size: 14px; }
.bar { height: 10px; background: var(--stone); border-radius: 10px; overflow: hidden; margin: 10px 0; }
.bar span { display: block; height: 100%; width: 0; background: var(--success); transition: width .3s; }
table.lineup { width: 100%; border-collapse: collapse; background: var(--white); }
table.lineup td, table.lineup th { text-align: left; padding: 10px 8px; border-top: 1px solid var(--stone); vertical-align: top; font-size: 15px; }
table.lineup img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.qr-box { text-align: center; }
.qr-box img { width: 220px; height: 220px; image-rendering: pixelated; }
.danger-zone { border-color: #E9C1BE; }

/* v1.2: home page, dashboard groups, email states */
.home { padding: 18px 0; }
.home h1 { margin-bottom: 18px; }
.home-group { font-size: 24px; margin: 22px 0 10px; }
.home-list { display: grid; gap: 10px; }
.home-item { display: grid; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; }
.home-item strong { font-size: 18px; }
.home-item span { color: var(--muted); font-size: 15px; }
.home-item .home-deadline { color: var(--ink); font-size: 14.5px; font-weight: 500; }
body.applying .site-foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { body.applying .site-foot { padding-bottom: 40px; } }
.summary-pieces { display: grid; gap: 8px; margin: 6px 0 10px; }
.summary-piece { display: flex; gap: 10px; align-items: center; }
.summary-piece img, .summary-nophoto { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; background: var(--stone); flex: none; }
.summary-piece strong { display: block; }
.summary-piece > div { min-width: 0; overflow-wrap: anywhere; }
.summary-label, .summary-head h2 { overflow-wrap: anywhere; min-width: 0; }
.tile-add:focus-within, .piece-photo:focus-within label { outline: 2px solid var(--ink); outline-offset: 2px; }
.tile-remove { min-width: 44px; min-height: 44px; }

.deadlines { padding: 14px 16px; }
.deadlines h2 { font-size: 22px; margin-bottom: 8px; }
.deadlines ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.event-group { margin: 0 0 22px; }
.group-head { font-size: 26px; margin: 18px 0 10px; }
.b-kind { background: var(--white); border: 1.5px solid var(--line); color: var(--ink); padding: 2px 8px; }
.b-deleted { background: var(--error); color: #fff; }
.b-email { background: var(--stone); color: var(--ink); }
.b-email-waiting, .b-email-changed { background: var(--warn-bg); color: #7A4B00; }
.b-email-not_connected { background: var(--stone); color: var(--muted); }
.badge-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.badge-stack .link-btn { min-height: 32px; text-align: right; }
@media (max-width: 520px) { .page-head .badge-stack { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; width: 100%; } .badge-stack .link-btn { text-align: left; } }
.notice-card { border-color: #E8C27A; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-head h2 { margin: 0; }
.warn-link { display: block; text-decoration: none; margin-bottom: 14px; }
.warn-text { color: #7A4B00; }
.log-ok { color: var(--success); }
.log-warn { color: #7A4B00; }
.log-muted { color: var(--muted); }
.log-list li { padding: 12px 16px; }
.nowrap-bits span { white-space: nowrap; }
.contact-lines a { display: inline-block; min-height: 30px; padding-top: 4px; overflow-wrap: anywhere; }
table.lineup td:last-child .btn { padding: 0 12px; }
.nowrap-bits span + span::before { content: "· "; }
.bar-note { flex: 1; text-align: center; align-self: center; }
label.include { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

.piece-error { margin: 0 0 10px; }
.bar span.bar-warn { background: #C7841E; }
.decision-bar .nav-btn[aria-disabled="true"] { opacity: 1 !important; color: var(--line); background: var(--paper); }

.tile-doc { padding: 44px 8px 8px; word-break: break-word; font-size: 13px; }
@media (max-width: 360px) { .tile-doc { font-size: 12px; } }

.search-box { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.search-box input { flex: 1 1 200px; min-height: 44px; }
.b-withdrawn { background: var(--stone); color: var(--muted); text-decoration: line-through; }
.countdown { font-weight: 400; color: var(--muted); white-space: nowrap; }
.resume-box { margin-top: 12px; }
.resume-box h2 { font-size: 22px; }
.tip { background: var(--white); border: 1.5px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--radius); padding: 8px 14px; margin: 0 0 16px; font-size: 15px; }
.tip summary { cursor: pointer; font-weight: 500; min-height: 32px; display: flex; align-items: center; list-style: none; }
.tip summary::-webkit-details-marker { display: none; }
.tip summary::before { content: "?"; display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; align-items: center; justify-content: center; margin-right: 8px; }
.tip:not([open]) { padding: 4px 14px; }
.tip ul { margin: 4px 0 6px; padding-left: 20px; }
.tip li { margin: 0 0 4px; line-height: 1.4; }

/* v1.4: file inputs in admin forms, message page buttons */
.admin-main input[type="file"] { display: block; width: 100%; max-width: 100%; padding: 10px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--white); font-size: 15px; }
.admin-main input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--white); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.center-card .btn-pair { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 280px; margin: 0 auto; }
.center-card .btn-pair .btn { margin: 0; width: 100%; }
.contact-lines { font-size: 13.5px; }
@media (max-width: 420px) { table.lineup td:first-child { width: 52px !important; padding-right: 4px; } table.lineup img { width: 44px; height: 44px; } }
.submit-hint { margin: 14px 0 6px; font-weight: 500; font-size: 15px; }
.more-sub > summary { list-style: none; cursor: pointer; padding-left: 0; text-align: left; }
.more-sub > summary::-webkit-details-marker { display: none; }
.more-menu .form-grid > a, .more-menu .form-grid .link-btn { min-height: 36px; display: inline-flex; align-items: center; }
.app-business { margin: 4px 0 0; font-size: 17px; font-weight: 500; }
.app-summary { margin: 4px 0 0; font-size: 15px; }
@media (max-width: 759px) { .detail-photo img { max-height: 52vh; } }
.admin-main ::placeholder { color: #A3A3A3; opacity: 1; font-style: italic; }
.deadline-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
h2.form-sec { font-size: 22px; margin: 0; }
.copy-past { padding: 12px 16px; }
.copy-sum { cursor: pointer; font-weight: 500; min-height: 40px; display: flex; align-items: center; }
.copy-list { list-style: none; margin: 0; padding: 0; }
.copy-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--stone); }
.or-line { margin: 4px 0 10px; font-weight: 500; }
.setup-steps h2 { font-size: 24px; margin: 0 0 6px; }
.setup-steps ol { list-style: none; margin: 0; padding: 0; }
.setup-steps li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--stone); }
.setup-steps li:first-child { border-top: 0; }
.setup-steps li strong { display: block; }
.setup-steps li .small { display: block; line-height: 1.35; margin-top: 2px; }
.setup-num { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.setup-num.done { background: var(--ink); color: #fff; }
@media (max-width: 420px) { .setup-steps li { grid-template-columns: 30px 1fr; } .setup-steps li > a, .setup-steps li > form { grid-column: 2; justify-self: start; } }
