@font-face { font-family: "Anton"; src: url("../assets/fonts/anton-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("../assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Manrope"; font-weight: 200 800; src: url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #0a0908; --panel: #131110; --panel-2: #1b1816; --panel-3: #24201d; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --text: #f4efe8; --muted: #9b9289; --faint: #6d655d;
  --accent: #ff6b2c; --accent-2: #ff9a5c; --accent-ink: #160902; --accent-soft: rgba(255, 107, 44, .12);
  --ok: #5fd39a; --warn: #f5c04e; --bad: #ff7a6b; --info: #8ab8ff;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -30px rgba(0, 0, 0, .8);
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif; --serif: "Instrument Serif", Georgia, serif;
  --ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 14.5px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
h3 { font-size: 1rem; }
a { color: var(--accent); text-decoration: none; } a:hover { color: var(--accent-2); }
p { margin: 0 0 10px; } small, .muted { color: var(--muted); } small { display: block; margin-top: 5px; font-size: .78rem; }
.right { text-align: right; } .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; }
.wordmark { font-family: var(--display); font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.role { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100dvh; }
.topbar { display: none; }
#nav { position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: linear-gradient(180deg, #110f0e, #0c0b0a); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; color: var(--text); }
.brand:hover { color: var(--text); }
.mark { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-size: 1.15rem; letter-spacing: .02em; box-shadow: 0 10px 30px -10px rgba(255, 107, 44, .7); }
#nav > a:not(.brand) { position: relative; display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 9px 12px; border-radius: 10px; font-weight: 600; transition: background .2s, color .2s; }
#nav > a:not(.brand):hover { color: var(--text); background: rgba(255, 255, 255, .04); }
#nav > a.on { color: var(--text); background: linear-gradient(90deg, var(--accent-soft), rgba(255, 107, 44, .02)); }
#nav > a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
#nav > a.on .ico { stroke: var(--accent); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.nav-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 12px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); min-width: 0; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); font-weight: 800; color: var(--accent); }
.who { display: grid; min-width: 0; font-size: .8rem; line-height: 1.3; } .who span { color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot-links { display: flex; justify-content: space-between; font-size: .78rem; padding: 0 4px; } .foot-links a { color: var(--muted); } .foot-links a:hover { color: var(--text); }
#view { padding: 34px clamp(16px, 3.4vw, 48px) 80px; min-width: 0; width: 100%; max-width: 1240px; animation: in .45s var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.tools, .actions, .row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions { justify-content: flex-end; margin-top: 8px; grid-column: 1 / -1; }
.lead { max-width: 70ch; }

/* ---------- controls ---------- */
.btn { font: inherit; font-weight: 700; font-size: .84rem; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, border-color .2s, transform .15s, filter .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #ff7a3f, var(--accent)); color: var(--accent-ink); box-shadow: 0 8px 24px -12px rgba(255, 107, 44, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover { filter: brightness(1.07); color: var(--accent-ink); }
.btn.ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--line-2); } .btn.ghost:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.btn.danger { background: var(--bad); color: #210805; } .btn.wa { background: #25d366; color: #05240f; }
.btn.block { width: 100%; } .btn.disabled { opacity: .4; pointer-events: none; }
.link { font: inherit; font-weight: 700; font-size: .84rem; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; } .link:hover { color: var(--accent-2); } .link.danger { color: var(--bad); }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; transition: border-color .2s, box-shadow .2s; color-scheme: dark; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled { opacity: .55; } textarea { resize: vertical; } select.mini { width: auto; padding: 6px 10px; font-size: .84rem; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; } .field { grid-column: 1 / -1; min-width: 0; } .field.half { grid-column: auto; }
label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; color: var(--text); font-size: .92rem; font-weight: 600; letter-spacing: 0; } .check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- surfaces ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card.unread { border-color: rgba(255, 107, 44, .5); background: linear-gradient(180deg, rgba(255, 107, 44, .06), var(--panel) 60%); }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 14px; } .card-head h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.01em; text-transform: none; color: var(--text); }
.empty { color: var(--muted); padding: 34px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(255, 255, 255, .015); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tile { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.tile::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 44, .14), transparent 70%); }
.tile:first-child { background: linear-gradient(140deg, #2a1608, var(--panel) 70%); border-color: rgba(255, 107, 44, .25); }
.tile span { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tile strong { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; } .tile strong.small { font-size: 1rem; font-family: var(--ui); font-weight: 700; }
.warn { color: var(--warn); }
.alerts { display: grid; gap: 8px; margin-bottom: 20px; }
.alerts a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(255, 107, 44, .28); color: var(--text); font-weight: 600; transition: background .2s; }
.alerts a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 107, 44, .2); flex: none; }
.alerts a:hover { background: rgba(255, 107, 44, .18); color: var(--text); }
.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; } .cols .card { margin: 0; } .cols .span { grid-column: 1 / -1; }
.list { list-style: none; margin: 0; padding: 0; } .list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); } .list li:first-child { border: 0; padding-top: 0; } .list li div:first-child { display: grid; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.card .table-wrap { border: 0; background: none; box-shadow: none; margin: -6px -8px; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 800; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255, 255, 255, .015); }
td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; } tbody tr:first-child td { border-top: 0; }
tbody tr { transition: background .15s; } tbody tr:hover { background: rgba(255, 255, 255, .025); }
th.num { text-align: right; }
.row-btns { justify-content: flex-end; gap: 14px; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .05); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-paid, .b-confirmed, .b-accepted, .b-active, .b-delivered, .b-submitted, .b-completed, .b-public, .b-converted, .b-handled { color: var(--ok); background: rgba(95, 211, 154, .1); }
.b-overdue, .b-rejected, .b-declined, .b-cancelled, .b-expired { color: var(--bad); background: rgba(255, 122, 107, .1); }
.b-partial, .b-pending, .b-requested, .b-awaiting-confirmation, .b-lead, .b-new { color: var(--warn); background: rgba(245, 192, 78, .1); }
.b-sent, .b-service, .b-shoot, .b-editing, .b-review, .b-booked, .b-pre-production, .b-client-only { color: var(--info); background: rgba(138, 184, 255, .1); }
.stars { color: var(--accent); letter-spacing: 2px; } .stars i { color: var(--panel-3); font-style: normal; }

/* ---------- chart ---------- */
.legend { font-size: .78rem; color: var(--muted); margin-bottom: 14px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 6px 0 12px; vertical-align: -1px; } .legend i:first-child { margin-left: 0; }
.k1 { background: linear-gradient(180deg, var(--accent-2), var(--accent)); } .k2 { background: #4a443e; }
.bars { display: flex; gap: 12px; align-items: flex-end; height: 190px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; font-size: .72rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.bar-pair { flex: 1; width: 100%; display: flex; gap: 4px; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.bar { width: 36%; max-width: 24px; min-height: 3px; border-radius: 6px 6px 2px 2px; transition: height .8s var(--ease); }

/* ---------- project progress ---------- */
.steps { list-style: none; display: flex; padding: 0; margin: 8px 0 20px; }
.steps li { flex: 1; text-align: center; font-size: .7rem; font-weight: 700; color: var(--faint); position: relative; }
.steps li::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--panel-3); } .steps li:first-child::before { display: none; }
.steps i { position: relative; z-index: 1; display: block; width: 18px; height: 18px; margin: 0 auto 8px; border-radius: 50%; background: var(--panel); border: 2px solid var(--panel-3); }
.steps .done i, .steps .now i { background: var(--accent); border-color: var(--accent); } .steps .done::before, .steps .now::before { background: var(--accent); }
.steps .now { color: var(--text); } .steps .now i { box-shadow: 0 0 0 6px var(--accent-soft); }
.timeline { list-style: none; padding: 0 0 0 18px; margin: 16px 0 0; border-left: 2px solid var(--panel-3); } .timeline li { margin-bottom: 12px; } .timeline time { display: block; font-size: .72rem; font-weight: 700; color: var(--faint); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.gallery figure:hover { transform: translateY(-2px); border-color: var(--line-2); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; font-size: .76rem; } .gallery figcaption span:last-child { display: flex; gap: 10px; }

/* ---------- modal ---------- */
dialog.modal { width: min(580px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); color: var(--text); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); }
dialog.modal[open] { animation: pop .3s var(--ease); } @keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
dialog.modal.wide { width: min(860px, calc(100vw - 24px)); } dialog::backdrop { background: rgba(5, 4, 3, .72); backdrop-filter: blur(6px); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.modal header h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.01em; text-transform: none; color: var(--text); } .modal-body { padding: 22px; }
.x { background: none; border: 0; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 2px 8px; border-radius: 8px; } .x:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.line { display: grid; grid-template-columns: 1fr 74px 120px 32px; gap: 6px; margin-bottom: 6px; }
.line-tools { display: flex; gap: 8px; flex-wrap: wrap; } .line-tools select { flex: 1; min-width: 200px; }
.sum { grid-column: 1 / -1; text-align: right; font-variant-numeric: tabular-nums; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
#toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 99; }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); padding: 12px 16px 12px 40px; border-radius: 12px; max-width: 360px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); position: relative; font-weight: 600; animation: pop .3s var(--ease); }
.toast::before { content: "✓"; position: absolute; left: 14px; top: 11px; color: var(--ok); font-weight: 800; } .toast.bad::before { content: "!"; color: var(--bad); left: 18px; }

/* ---------- quotation / invoice paper ---------- */
.paper { background: #fcfbf9; color: #1c1917; border-radius: var(--radius); padding: clamp(20px, 4.5vw, 52px); margin-bottom: 18px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.paper h1 { font-size: 2rem; color: #1c1917; } .paper .wordmark { font-size: 1.5rem; color: #1c1917; } .paper p { color: #57534e; font-size: .88rem; }
.paper-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid #1c1917; }
.paper-to, .paper-notes { margin: 22px 0; } .paper-to span, .paper-notes span { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #78716c; }
.paper .lines th { color: #78716c; border-color: #d6d3d1; background: none; } .paper .lines td { border-color: #e7e5e4; } .paper tbody tr:hover { background: none; } .paper .muted { color: #78716c; }
.totals { margin: 18px 0 0 auto; width: min(340px, 100%); } .totals div { display: flex; justify-content: space-between; padding: 5px 14px; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 800; border-top: 1px solid #1c1917; margin-top: 4px; padding-top: 9px; } .totals .due { background: #1c1917; color: #fbfaf8; border-radius: 8px; padding: 11px 14px; border: 0; }
.paper .bank { margin-top: 28px; padding: 18px 20px; border: 1px solid #e2ddd6; border-left: 4px solid var(--accent); border-radius: 10px; background: #f6f2ec; } .paper .bank h3 { margin-bottom: 12px; }
.bank dl { display: grid; grid-template-columns: max-content 1fr; gap: 5px 20px; margin: 0 0 10px; } .bank dt { color: var(--muted); } .paper .bank dt { color: #78716c; } .bank dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.bank .ref { font-size: 1.05rem; letter-spacing: .04em; color: #c2410c; }
.paper .badge { background: #f1ede7; color: #44403c; }

/* ---------- sign-in ---------- */
.auth { display: grid; grid-template-columns: 1.25fr minmax(360px, 500px); min-height: 100dvh; }
.showcase { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 4px; overflow: hidden; background: #000; }
.showcase img { width: 100%; height: 100%; object-fit: cover; opacity: .6; animation: fade 1.2s var(--ease) both; } @keyframes fade { from { opacity: 0; } }
.showcase-text { position: absolute; inset: auto 0 0 0; padding: clamp(28px, 4vw, 56px); background: linear-gradient(transparent, rgba(10, 9, 8, .95) 60%); }
.showcase-text .wordmark.big { font-size: clamp(2.6rem, 5vw, 4.4rem); } .showcase-text p { color: #d8d1c8; max-width: 40ch; } .showcase-text blockquote { margin: 16px 0 0; max-width: 46ch; color: #e8e1d8; font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.35; }
.auth-box { padding: clamp(28px, 6vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 12px; background: var(--panel); border-left: 1px solid var(--line); }
.auth-box > .wordmark { color: var(--accent); } .auth-box h1 { font-size: 2.4rem; } .auth-box form { grid-template-columns: 1fr; margin-top: 12px; } .auth-box .btn { padding: 14px; }
.switch { margin-top: 10px; color: var(--muted); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: rgba(10, 9, 8, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .topbar .role { margin: 0 0 0 auto; } .burger { background: none; border: 0; color: var(--text); font-size: 1.4rem; cursor: pointer; }
  #nav { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 30; transform: translateX(-100%); transition: transform .3s var(--ease); } .nav-open #nav { transform: none; box-shadow: 0 0 0 100vw rgba(0, 0, 0, .6); }
  .cols, .auth { grid-template-columns: 1fr; } .showcase { display: none; }
  .grid { grid-template-columns: 1fr; } .field.half { grid-column: 1 / -1; }
  .line { grid-template-columns: 1fr 1fr 32px; } .line input:first-child { grid-column: 1 / -1; }
  .steps span { display: none; } .steps .now span { display: block; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; } .steps { margin-bottom: 36px; }
  #view { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  body { background: #fff; } #nav, .topbar, .page-head, .no-print, #toasts { display: none !important; }
  .shell { display: block; } #view { padding: 0; max-width: none; animation: none; } .paper { border-radius: 0; padding: 0; margin: 0; box-shadow: none; }
  @page { margin: 16mm; }
}

/* Logo (Settings → Logo) */
.mark-img { flex: none; width: 40px; height: 40px; border-radius: 12px; object-fit: contain; background: rgba(255,255,255,.04); }
.auth-logo { display: block; max-height: 64px; max-width: 220px; object-fit: contain; margin-bottom: 18px; }
.paper-logo { display: block; max-height: 60px; max-width: 200px; object-fit: contain; margin-bottom: 10px; }
.logo-row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.logo-row .btn { margin: 6px 8px 0 0; cursor: pointer; }
.logo-preview { width: 160px; height: 110px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.18); display: grid; place-items: center; padding: 12px; text-align: center; font-size: .85rem;
  background: repeating-conic-gradient(rgba(255,255,255,.05) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media print { .paper-logo { max-height: 50px; } }

/* Notes in dialogs */
.note { padding: 12px 14px; border-radius: 12px; font-size: .9rem; margin: 0 0 14px; background: rgba(255,255,255,.05); }
.note.warn { background: rgba(255, 107, 44, .12); border: 1px solid rgba(255, 107, 44, .35); }
.note a { color: var(--accent); }

/* ---------- artists ---------- */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.artist-card { display: flex; gap: 16px; align-items: flex-start; margin: 0; }
.artist-photo { flex: none; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--panel-3); display: grid; place-items: center; font-family: var(--display); font-size: 2rem; color: var(--accent); }
.artist-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.artist-info { min-width: 0; } .artist-info h2 { font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--text); margin: 0 0 2px; }
.artist-info .row-btns { flex-wrap: wrap; justify-content: flex-start; white-space: normal; }
.form-sub { grid-column: 1 / -1; margin: 10px 0 0; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.rel-list { margin: 14px 0 18px; } .rel-list li { align-items: center; }
.rel-list li div.rel-row { display: flex; gap: 12px; align-items: center; } .rel-row > div { display: grid; }
.rel-row img, .rel-ph { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--panel-3); display: grid; place-items: center; color: var(--muted); flex: none; }
#relf { margin-top: 8px; }
@media (max-width: 560px) { .artist-card { flex-direction: column; } .artist-photo { width: 100%; height: 200px; } }
