/* PixelCatchers: light by default, calm neutrals, one warm accent. */
:root {
  --bg: #f6f6f4; --surface: #ffffff; --ink: #17181c; --ink-2: #4a4d55; --muted: #7a7d86;
  --line: #e6e5e1; --line-2: #d6d5d0; --accent: #e0531f; --accent-ink: #ffffff; --accent-soft: #fdf0ea;
  --ok: #1f8a4c; --warn: #b7791f; --bad: #c4331d;
  --r: 12px; --r-sm: 8px; --shadow: 0 1px 2px rgba(20, 20, 25, .04), 0 4px 16px rgba(20, 20, 25, .04);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2 { letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 28px; font-weight: 680; }
h2 { font-size: 16px; font-weight: 640; }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); } .small, small { font-size: 13px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 16px; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.logo rect { fill: var(--ink); } .logo circle { fill: none; stroke: #fff; stroke-width: 2.4; } .logo .dot { fill: var(--accent); stroke: none; }

/* forms */
label { display: grid; gap: 6px; font-size: 13px; font-weight: 560; color: var(--ink-2); }
input, select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 9px 11px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 24, 28, .08); }
input[readonly] { background: var(--bg); }
.hint { font-weight: 400; color: var(--muted); }
.stack { display: grid; gap: 14px; }
.btn { font: inherit; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; } .btn.primary:hover { background: #2b2d33; }
.btn.danger { color: var(--bad); border-color: #f0c9c1; } .btn.danger:hover { background: #fdf2f0; border-color: var(--bad); }
.btn.ghost { border-color: transparent; color: var(--ink-2); } .btn.ghost:hover { background: var(--bg); }
.btn.small { padding: 5px 10px; font-size: 13px; } .btn.wide { width: 100%; padding: 11px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { background: none; border: 0; color: var(--muted); padding: 8px; border-radius: var(--r-sm); cursor: pointer; display: grid; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-weight: 400; cursor: pointer; transition: border-color .15s, background .15s; }
.check:has(input:checked) { border-color: var(--ink); background: #fafaf8; }
.check input { width: auto; margin-top: 3px; accent-color: var(--ink); }
.check span { display: grid; } .check b { color: var(--ink); font-weight: 600; } .check small { color: var(--muted); }
.role-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 8px; }
.copy-row { display: flex; gap: 8px; }

/* flash */
.flash { padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 16px; border: 1px solid; animation: rise .25s ease-out; }
.flash-ok { background: #eff8f2; border-color: #cce7d6; color: #18603a; }
.flash-error { background: #fdf2f0; border-color: #f0c9c1; color: #9d2a18; }
@keyframes rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* auth pages */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 500px at 50% -10%, #ffffff 0%, var(--bg) 60%); }
.auth-wrap { width: min(420px, 100%); display: grid; gap: 22px; justify-items: center; }
.auth-brand { text-decoration: none; }
.auth-card { width: 100%; padding: 30px; }
.auth-card h1 { font-size: 22px; }
.auth-foot { color: var(--muted); font-size: 13px; text-align: center; margin: 0; }

/* app shell */
body.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; background: var(--surface); border-right: 1px solid var(--line); }
.side-brand { padding: 4px 10px 18px; text-decoration: none; }
.side nav { display: grid; gap: 2px; flex: 1; align-content: start; overflow: auto; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-weight: 520; font-size: 14px; transition: background .12s, color .12s; }
.side nav a:hover { background: var(--bg); color: var(--ink); }
.side nav a.on { background: var(--ink); color: #fff; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 16px 10px 6px; }
.side-foot { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.me { flex: 1; display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 8px; border-radius: var(--r-sm); min-width: 0; }
.me:hover, .me.on { background: var(--bg); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.me-text { display: grid; min-width: 0; } .me-text b { font-size: 14px; } .me-text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { padding: 36px clamp(16px, 4vw, 56px) 64px; max-width: 1180px; width: 100%; min-width: 0; }

/* page parts */
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 650; margin-bottom: 6px; }
.eyebrow a { text-decoration: none; } .eyebrow a:hover { text-decoration: underline; }
.lede { color: var(--ink-2); font-size: 15px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.highlight { border-color: var(--accent); background: linear-gradient(0deg, var(--surface), var(--accent-soft)); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.cols > .card { margin-bottom: 0; } .cols + .card, .cols + section { margin-top: 16px; }
.cols.tight { gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-bottom: 16px; }
.tile { display: flex; flex-direction: column; gap: 14px; text-decoration: none; margin: 0; transition: transform .15s, border-color .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 8px 28px rgba(20, 20, 25, .07); }
.tile-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--ink); flex: none; }
.tile-body { display: grid; gap: 4px; } .tile-body small { color: var(--muted); }
.tile .pill { align-self: flex-start; }
.row-card { display: flex; align-items: center; gap: 16px; } .row-card > div { flex: 1; } .row-card p { margin: 2px 0 0; }
.empty { text-align: center; padding: 48px 24px; }
.empty-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 16px; }
.empty-ic .ic { width: 26px; height: 26px; }
.checks { list-style: none; padding: 0; margin: 16px auto 0; display: inline-grid; gap: 8px; text-align: left; }
.checks li { padding-left: 26px; position: relative; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 3px; border: 1.6px solid var(--line-2); }

/* badges, pills, status dots */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); margin: 1px 2px 1px 0; }
.role-admin { background: #17181c; color: #fff; border-color: #17181c; }
.role-contributor { background: var(--accent-soft); color: #a83a10; border-color: #f6d3c3; }
.role-editor { background: #eef3ff; color: #2c4fb8; border-color: #d6e0fb; }
.role-keyworder { background: #f2f0fd; color: #5b3fc4; border-color: #e0dbfa; }
.role-getty_staff { background: #eef8f2; color: #1d7442; border-color: #cfe9d9; }
.pill { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); }
.dot { font-size: 13px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.dot.ok::before { background: var(--ok); } .dot.warn::before { background: var(--warn); } .dot.bad::before { background: var(--bad); }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table a { text-decoration: none; } .table a:hover b { text-decoration: underline; }


/* textarea, small helpers */
textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 11px; width: 100%; resize: vertical; }
textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 24, 28, .08); }
.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); }
.pill.live { color: var(--ok); background: #eff8f2; border-color: #cce7d6; }
.tile-ic.ok { background: #eff8f2; color: var(--ok); }
.warn-card { border-color: #f1d9a8; background: linear-gradient(0deg, var(--surface), #fdf7ea); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table.compact td { padding: 8px 6px; }

/* admin view-as */
.view-as { padding: 10px; margin: 8px 0; border: 1px dashed var(--line-2); border-radius: var(--r-sm); }
.view-as label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.view-as select { padding: 6px 8px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.viewing { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; margin-bottom: 16px;
  border-radius: var(--r-sm); background: #17181c; color: #fff; font-size: 14px; }
.viewing .btn { background: transparent; color: #fff; border-color: #55575e; }

/* connect steps */
.step { display: flex; gap: 16px; align-items: flex-start; }
.step > div { flex: 1; min-width: 0; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }

/* KPIs, chips, search */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 2px; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi b { font-size: 26px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi b.warn { color: var(--warn); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  text-decoration: none; font-size: 13px; font-weight: 560; color: var(--ink-2); transition: background .12s, border-color .12s; }
.chip span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; } .chip.on span { color: #c9cad0; }
.search input { width: min(260px, 100%); padding: 7px 12px; border-radius: 999px; }

/* brief cards */
.brief-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.brief-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.brief-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(20, 20, 25, .08); border-color: var(--line-2); }
.brief-img { position: relative; aspect-ratio: 16 / 9; background: var(--bg); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.brief-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.brief-card:hover .brief-img img { transform: scale(1.03); }
.brief-img .due { position: absolute; left: 10px; top: 10px; }
.due { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink-2); border: 1px solid var(--line); }
.due.warn { color: #8a5a10; background: #fdf3df; border-color: #f1d9a8; }
.due.bad { color: #fff; background: var(--bad); border-color: var(--bad); }
.brief-body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; flex: 1; }
.brief-body b { font-size: 15px; line-height: 1.3; }
.clamp { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.brief-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.track-interested, .track-planning { color: #2c4fb8; background: #eef3ff; border-color: #d6e0fb; }
.track-shooting, .track-editing { color: #a83a10; background: var(--accent-soft); border-color: #f6d3c3; }
.track-submitted { color: var(--ok); background: #eff8f2; border-color: #cce7d6; }

/* brief detail */
.brief-hero { border-radius: var(--r); overflow: hidden; margin-bottom: 16px; max-height: 340px; background: var(--bg); }
.brief-hero img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; display: block; }
.detail-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.prose { font-size: 15px; line-height: 1.65; }
.prose h2 { margin-top: 1.2em; } .prose ul { padding-left: 20px; margin: 0 0 1em; } .prose li { margin-bottom: 4px; }
.lede-p { font-size: 17px; color: var(--ink); font-weight: 500; }
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.examples figure { margin: 0; } .examples img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); display: block; background: var(--bg); }
.examples figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.facts { display: grid; gap: 10px; } .facts h2 { margin: 0; }
.fact { display: grid; gap: 1px; } .fact small { color: var(--muted); font-size: 12px; } .fact span { font-size: 14px; }
@media (max-width: 980px) { .detail-cols { grid-template-columns: minmax(0, 1fr); } }


/* portfolio */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 46%), 1fr)); gap: 10px; }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--bg); display: grid; place-items: center; color: var(--muted); text-decoration: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.photo:hover img { transform: scale(1.04); }
.photo-cap { position: absolute; inset: auto 0 0 0; padding: 18px 8px 6px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .15s; }
.photo:hover .photo-cap, .photo:focus .photo-cap { opacity: 1; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 18px; }
.media { padding: 10px; } .media img { width: 100%; border-radius: var(--r-sm); display: block; }
.kw { display: flex; flex-wrap: wrap; gap: 4px; }

@media (max-width: 820px) {
  body.app { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; } .copy-row { flex-wrap: wrap; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
  .side-brand { padding: 4px 6px; } .side nav { display: flex; flex-wrap: wrap; order: 3; flex: 1 1 100%; }
  .side nav a span { display: none; } .nav-label { display: none; } .side-foot { border: 0; padding: 0; margin-left: auto; }
  .me-text { display: none; } .main { padding-top: 20px; }
  .table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
