/* App layout on top of /styles.css (shared with the site). */
.app main { padding-bottom: 48px; }
.app-head { padding: 40px 0 16px; }
.app-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.privacy-pill { margin-left: 8px; font-size: .8rem; font-weight: 650; color: var(--ok); background: var(--ok-soft); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
/* Phones: the nav links are hidden, so the pill gets its own line under the logo. */
@media (max-width: 760px) {
  .app .site-header .wrap { flex-wrap: wrap; row-gap: 0; padding-bottom: 10px; min-height: 0; padding-top: 10px; }
  .app .nav { margin-left: 0; width: 100%; }
  .privacy-pill { margin-left: 0; font-size: .8rem; padding: 4px 12px; }
}
.step { margin: 20px 0; }
.step h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.step h2 .num { margin: 0; }
.drop { border: 2px dashed #cfc6ba; border-radius: var(--radius); padding: 32px 20px; text-align: center; background: var(--paper); transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop p { margin: 0 0 .4em; }
.pick { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
label.btn { position: relative; }
label.btn:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.mode { border: 0; padding: 0; margin: 24px 0 8px; }
.mode legend { font-weight: 700; margin-bottom: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input { margin-top: 5px; accent-color: var(--accent); }
.field { display: block; font-weight: 650; margin-top: 14px; }
.field input { display: block; width: 100%; max-width: 520px; margin-top: 6px; font: inherit; font-weight: 400; padding: 10px 12px; border: 1.5px solid #cfc6ba; border-radius: 10px; background: var(--white); }
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.hint.bad { color: var(--bad); }
.issues { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 8px; }
.issue { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--paper); }
.issue p { margin: 0; }
.issue .fix { color: var(--ink-2); font-size: .92rem; margin-top: 2px; }
.issue .tag { flex: none; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; height: fit-content; }
.issue.error { background: var(--bad-soft); } .issue.error .tag { background: var(--bad); color: #fff; }
.issue.warning { background: var(--warn-soft); } .issue.warning .tag { background: var(--warn); color: #fff; }
.issue.info .tag { background: var(--ink-2); color: #fff; }
.issue.ok { background: var(--ok-soft); } .issue.ok .tag { background: var(--ok); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.toolbar label { font-size: .88rem; font-weight: 600; }
.toolbar input[type=date] { font: inherit; font-size: .9rem; padding: 5px 8px; border: 1.5px solid #cfc6ba; border-radius: 8px; }
.pubtools { display: none; }
.is-published .pubtools { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.is-published p.pubtools { display: block; }
.pubcol { display: none; }
.is-published .pubcol { display: table-cell; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { background: var(--paper); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); position: sticky; top: 0; }
.photos td.thumb img, .nothumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: #ece6dd; }
.nothumb { display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: var(--muted); }
.photos td.file { min-width: 180px; }
.photos .orig { display: block; font-weight: 600; word-break: break-all; }
.photos .arrow { display: block; color: var(--ok); font-size: .82rem; word-break: break-all; }
.photos small { display: block; color: var(--muted); font-size: .76rem; }
.photos input.title { width: 100%; min-width: 160px; font: inherit; padding: 6px 8px; border: 1px solid #d8d0c5; border-radius: 6px; }
.photos input.pub { font: inherit; font-size: .88rem; padding: 5px 6px; border: 1px solid #d8d0c5; border-radius: 6px; }
.photos td.date { white-space: nowrap; }
.photos tr.excluded { opacity: .55; }
.st { display: block; font-size: .8rem; line-height: 1.35; }
.st.ok { color: var(--ok); font-weight: 650; }
.st.error { color: var(--bad); } .st.warning { color: var(--warn); }
.licbox { background: var(--paper); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.licform { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.licform .field { margin: 0; flex: 1 1 280px; }
.lic-ok { color: var(--ok); font-weight: 700; } .lic-free { font-weight: 600; }
.claim { margin: 16px 0; box-shadow: none; }
.claim h3 { font-size: 1.15rem; }
.claim .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.claim .meta span { font-size: .8rem; background: var(--paper); border-radius: 999px; padding: 3px 10px; }
.claim .meta span:first-child { background: var(--dark); color: var(--on-dark); font-weight: 700; }
.filename code { font-size: .85rem; background: var(--paper); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.guide { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.guide summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.guide ol { padding-left: 1.3em; }
.guide li { margin: 14px 0; }
.guide h4 { margin: 0 0 4px; font-size: 1rem; }
.guide p { margin: 0 0 4px; color: var(--ink-2); font-size: .94rem; }
.copy { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; margin: 8px 0; }
.copy span { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.copy textarea { font: .86rem ui-monospace, SFMono-Regular, Menlo, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); resize: vertical; width: 100%; }
.saved { list-style: none; padding: 0; color: var(--ok); }
.disclaimer { margin: 28px 0; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
[hidden] { display: none !important; }
