/* _blanco casting – owner page. The _blanco ui look (blanco-ui.css): mono labels, lime as a line, chips. */
[hidden] { display: none !important; }
body { background: var(--b-bg); color: var(--b-ink); }
.c-back { margin: 18px 0 0; }
.c-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.c-acts .b-chip { width: auto; }
.c-acts [data-act="link"] { min-width: 186px; }
.c-empty { padding: 60px 0; display: grid; gap: 10px; justify-items: start; }

/* the castings */
.c-casts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.c-cast { display: grid; gap: 10px; text-align: left; padding: 18px; border: 1px solid var(--b-line); border-radius: var(--b-r-panel); background: var(--b-surface); color: var(--b-ink); cursor: pointer; transition: border-color var(--b-fast), transform .12s; }
.c-cast:hover { border-color: var(--b-line-2); }
.c-cast:active { transform: scale(.99); }
.c-cast-t { font: 500 22px/1.15 var(--b-sans); letter-spacing: -.01em; overflow-wrap: anywhere; }
.c-cast-f { font: 500 12px/1.4 var(--b-mono); color: var(--b-ink-2); }
.c-cast-n { font: 500 11px/1.4 var(--b-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--b-mute); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-cast-n b { color: var(--b-ink); font-weight: 500; }
.c-cast-n b.lime { color: var(--b-lime); }
.c-cast-n i { width: 3px; height: 3px; border-radius: 50%; background: var(--b-line-2); }

/* filters */
.c-filters { margin: 0 0 18px; }
.c-filters .b-count { margin-left: 3px; color: var(--b-mute); }
.c-filters button[aria-selected="true"] .b-count { color: var(--b-lime); }

/* the people: photo cards */
.c-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px 12px; content-visibility: auto; }
.c-card { display: grid; gap: 9px; padding: 0; border: 0; background: none; color: var(--b-ink); text-align: left; cursor: pointer; min-width: 0; }
.c-ph { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--b-surface); box-shadow: inset 0 0 0 1px var(--b-line); }
.c-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s var(--b-ease); }
@media (hover: hover) { .c-card:hover .c-ph img { transform: scale(1.025); } }
.c-card.st-out .c-ph img { opacity: .38; filter: grayscale(1); }
.c-card.st-in .c-ph { box-shadow: inset 0 0 0 1.5px var(--b-lime); }
.c-card.st-in .c-ph img { border-radius: 10px; }
.c-ph-n { position: absolute; left: 8px; top: 8px; padding: 3px 6px; border-radius: 5px; background: rgba(10,10,10,.72); font: 500 10px var(--b-mono); color: var(--b-ink); }
.c-vote { position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,10,10,.8); font: 700 12px var(--b-mono); }
.c-vote.v-yes { color: var(--b-lime); box-shadow: inset 0 0 0 1px var(--b-lime); }
.c-vote.v-no { color: var(--b-warn); box-shadow: inset 0 0 0 1px var(--b-warn); }
.c-meta { display: grid; gap: 2px; min-width: 0; }
.c-name { font: 500 14px/1.3 var(--b-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-sub { font: 500 11.5px/1.4 var(--b-mono); color: var(--b-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-tag { font: 500 10px/1.4 var(--b-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--b-mute); }
.c-card.st-in .c-tag { color: var(--b-lime); }
/* choosing: a ring top right of each photo, like Review */
.c-sel { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); background: rgba(0,0,0,.25); opacity: 0; transform: scale(.8); transition: opacity var(--b-fast), transform var(--b-fast); }
.c-people.is-picking .c-sel { opacity: 1; transform: none; }
.c-card.is-picked .c-sel { background: var(--b-lime); border-color: var(--b-lime); }
.c-card.is-picked .c-sel::after { content: ""; position: absolute; left: 6.5px; top: 3px; width: 5px; height: 10px; border: solid var(--b-on-lime); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.c-card.is-picked .c-ph { box-shadow: inset 0 0 0 2px var(--b-lime); }

/* desktop: the bar while choosing */
.c-selbar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50; display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--b-raise); border: 1px solid var(--b-line-2); box-shadow: 0 18px 50px rgba(0,0,0,.5); max-width: calc(100vw - 32px); flex-wrap: wrap; }
.c-selbar .b-data { min-width: 96px; color: var(--b-mute); }
.c-pop { position: absolute; z-index: 60; }

/* windows */
.c-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--b-line-2); border-radius: 14px; background: var(--b-surface); color: var(--b-ink); overflow: auto; overscroll-behavior: contain; }
.c-dlg::backdrop { background: rgba(0,0,0,.66); }
.c-dlg-in { position: relative; display: grid; gap: 16px; padding: 22px; }
.c-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.c-two .b-input { min-width: 0; }
.c-check { display: flex; align-items: center; gap: 10px; font: 500 11px var(--b-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--b-ink-2); cursor: pointer; }
.c-check input { width: 18px; height: 18px; accent-color: #d6fb00; margin: 0; }
.c-dlg-acts { display: flex; gap: 10px; justify-content: flex-end; }
.c-dlg-acts .b-chip { min-width: 108px; }
.c-err { margin: 0; color: var(--b-warn); font: 500 12px/1.5 var(--b-mono); }
.c-facts { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--b-line); border-radius: 10px; }
.c-facts:empty { display: none; }
.c-facts div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; font: 400 14px var(--b-sans); }
.c-facts .b-link { justify-self: start; margin-top: 4px; }
.c-x { position: absolute; right: 12px; top: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--b-line-2); background: rgba(10,10,10,.7); color: var(--b-ink); font: 400 20px/1 var(--b-sans); cursor: pointer; }

/* one person */
.c-person { width: min(860px, calc(100vw - 24px)); }
.c-person .c-dlg-in { padding: 0; gap: 0; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.c-shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #000; aspect-ratio: 4 / 5; border-radius: 14px 0 0 14px; overscroll-behavior-x: contain; }
.c-shots::-webkit-scrollbar { display: none; }
.c-shot { flex: 0 0 100%; scroll-snap-align: center; padding: 0; border: 0; background: none; cursor: zoom-in; }
.c-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-dots { position: absolute; left: 0; width: 52.4%; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.c-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background var(--b-fast); }
.c-dots i.on { background: var(--b-lime); }
.c-p-body { display: flex; flex-direction: column; gap: 16px; padding: 26px 24px 22px; min-width: 0; }
.c-p-body .b-rows a { color: var(--b-ink); text-decoration: none; border-bottom: 1px solid var(--b-line-2); }
.c-p-body .b-rows a:hover { border-color: var(--b-lime); }
.c-note { white-space: pre-wrap; }
.c-p-acts { margin-top: auto; display: flex; gap: 10px; }
.c-p-acts .b-chip:not(.b-icon) { flex: 1; }
.c-p-acts .b-icon { width: 40px; height: 40px; }
.c-viewer { padding: 0; border: 0; background: #000; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
.c-viewer::backdrop { background: #000; }
.c-viewer img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------------------------------------------------------------- phone (mobile first) */
/* the top row exactly like Frames: the logo stays at the top, no band – a fade over 60 px plus the notch, content under it */
html.mf body { padding-top: calc(60px + env(safe-area-inset-top)) !important; }
html.mf #app > .topbar { position: fixed !important; top: 0; left: 0; right: 0; z-index: 30; height: calc(60px + env(safe-area-inset-top)); min-height: 0;
  box-sizing: border-box; margin: 0 !important; padding: env(safe-area-inset-top) 16px 0 24.5px !important; display: flex; align-items: center;
  background: linear-gradient(rgba(6,6,6,.9), rgba(6,6,6,0)) !important; border: 0 !important; box-shadow: none !important; pointer-events: none; }
html.mf #app > .topbar > * { pointer-events: auto; }
html.mf #app > .topbar .top-right { display: none !important; }
html.mf .c-desk { display: none !important; }
html.mf .wrap { padding-left: 16px !important; padding-right: 16px !important; }
html.mf .c-back { margin-top: 4px; min-height: 32px; }
html.mf .c-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
html.mf .c-filters { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 5; margin: 0 -16px 14px; padding: 4px 16px 6px; gap: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; background: linear-gradient(rgba(10,10,10,.96) 70%, rgba(10,10,10,0)); }
html.mf .c-filters::-webkit-scrollbar { display: none; }
html.mf .c-filters button { min-height: 36px; flex: none; }
html.mf .c-card .c-sel { min-height: 0; }
/* the person: a full-screen page, photos on top, swipe through them */
html.mf .c-person { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; margin: 0; }
html.mf .c-person .c-dlg-in { grid-template-columns: 1fr; padding-bottom: calc(var(--mf-bar-h) + env(safe-area-inset-bottom) + 12px); }
html.mf .c-shots { border-radius: 0; }
html.mf .c-dots { width: 100%; top: calc(100vw * 1.25 - 22px); bottom: auto; }
html.mf .c-p-acts { display: none; }
html.mf .c-person .c-x { top: calc(10px + env(safe-area-inset-top)); width: 44px; height: 44px; min-height: 44px; }
html.mf .c-person { padding: 0; }
html.mf .c-dlg:not(.c-person) { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; border-bottom: 0; max-height: calc(100dvh - 40px - env(safe-area-inset-top)); }
html.mf .c-dlg:not(.c-person) .c-dlg-in { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
html.mf .c-dlg-acts .b-chip { flex: 1; height: 48px; }
html.mf .c-cast { padding: 16px; }
@media (prefers-reduced-motion: reduce) { .c-ph img, .c-sel, .c-cast { transition: none; } }

/* ---------------------------------------------------------------- round 2 (screenshot check) */
/* titles in windows: Inter, never the mono caps the shared sheet gives h2; no ring when a window focuses its title */
dialog.c-person h2#pName:not(.p-title) { font: 500 26px/1.15 var(--b-sans) !important; letter-spacing: -.01em !important; text-transform: none !important; color: var(--b-ink) !important; }
.c-dlg [tabindex="-1"]:focus, .c-x:focus:not(:focus-visible), .c-card:focus:not(:focus-visible), .c-cast:focus:not(:focus-visible) { outline: none; }
.c-x:focus-visible { outline: 2px solid var(--b-lime); outline-offset: 2px; }
.c-p-body .b-typeline { padding-right: 44px; }
.c-acts .b-chip.b-icon { width: 34px; height: 32px; padding: 0; }
.c-acts .b-icon svg { fill: currentColor; stroke: none; }
/* the photo is a button on the artist page: no button frame */
.c-ph { border: 0; padding: 0; width: 100%; font: inherit; color: inherit; }
/* phone: only the logo stays at the top; the filters scroll with the page, their line right under the word */
html.mf .c-filters { position: static; background: none; margin: 0 0 14px; padding: 0; }
html.mf .c-filters button { min-height: 40px !important; padding: 8px 0 6px; }
html.mf #app > .topbar .blanco-workspace-brand, .a-top .blanco-workspace-brand { text-decoration: none !important; }
html.mf dialog.c-person h2#pName:not(.p-title) { font-size: 24px !important; }
.topbar .blanco-workspace-brand { text-decoration: none !important; }
.c-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.c-quick .b-chip { height: 30px; padding: 0 10px; }
html.mf .c-quick .b-chip { min-height: 36px; height: 36px; }
.c-calltime { margin-top: 4px; }
.c-calltime .b-input { font-size: 16px; }

/* photos of a person: the dots are buttons (a 28 px tap area each), arrows on the sides */
.c-shotbox { position: relative; min-width: 0; }
.c-shotbox .c-dots { position: absolute; left: 0; right: 0; width: auto; top: auto; bottom: 8px; gap: 0; pointer-events: none; }
.c-dots button { pointer-events: auto; width: 28px; height: 28px; min-height: 0 !important; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.c-dots button i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); box-shadow: 0 0 4px rgba(0,0,0,.4); transition: background var(--b-fast), transform var(--b-fast); }
.c-dots button:hover i { background: rgba(255,255,255,.8); }
.c-dots button.on i { background: var(--b-lime); transform: scale(1.15); }
.c-dots button:focus:not(:focus-visible) { outline: none; }
.c-nav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(10,10,10,.55); color: var(--b-ink); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity var(--b-fast); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.c-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-prev { left: 12px; } .c-next { right: 12px; }
.c-shotbox:hover .c-nav, .c-nav:focus-visible { opacity: 1; }
.c-nav:hover { border-color: var(--b-lime); color: var(--b-lime); }
.c-nav[hidden] { display: none !important; }
html.mf .c-shotbox .c-dots { top: auto; bottom: 8px; }
html.mf .c-nav { display: none !important; }
html.mf .c-dots button { min-height: 0 !important; width: 32px; height: 32px; }
