/* dr.media — Client room (portal). Builds on site.css tokens + the design system bundle.
   Bone for the client's room, Ink for the screening room. Square everything; the dot is the only glow. */

.pt { min-height: 100%; font-family: var(--font-sans); color: var(--text); background: var(--surface); }
.pt-screen { display: flex; flex-direction: column; min-height: 100%; }
.pt-main { flex: 1; }

/* ---------- Shared bits ---------- */
.pt-hl { background: var(--grad-text, linear-gradient(100deg, #3b2eff 0%, #0891d1 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: 0.08em; }
[data-theme="ink"] .pt-hl { background: linear-gradient(100deg, #6f63ff 0%, #22d3ff 100%); -webkit-background-clip: text; background-clip: text; }
.pt-sq { flex: none; display: inline-block; width: 10px; height: 10px; background: linear-gradient(135deg, var(--signal-indigo), var(--signal-cyan)); box-shadow: var(--glow-dot); }
.pt-display { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--text); text-wrap: balance; }
.pt-lede { margin: 0; max-width: 46ch; font-size: 18px; line-height: 1.45; font-weight: 500; color: var(--text-muted); }
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 0; font-family: var(--font-sans); font-size: 15px; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pt-btn--signal { background: var(--grad-btn, linear-gradient(100deg, #6f63ff 0%, #22d3ff 100%)); color: var(--brand-ink); }
.pt-btn--signal:hover { filter: brightness(1.08); color: var(--brand-ink); }
.pt-btn--line { background: transparent; color: var(--text); border-color: var(--line-strong); }
.pt-btn--line:hover { border-color: var(--text); color: var(--text); }
.pt-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.pt-btn:focus-visible, .pt-link:focus-visible, .pt-card:focus-visible, .pt-ib:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pt-link { border: 0; background: transparent; padding: 0; font: inherit; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pt-link:hover { color: var(--text); }
.pt-chip { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-2); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.pt-chip i { width: 8px; height: 8px; display: inline-block; }
.pt-chip--needs i { background: #e8a30c; }
.pt-chip--prog i { background: var(--signal); }
.pt-chip--appr i { background: #1e9e5a; }
.pt-av { flex: none; width: 28px; height: 28px; display: inline-grid; place-items: center; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.04em; color: var(--brand-bone); background: #9a3412; }
.pt-av--dm { background: var(--brand-ink); border: 1px solid var(--line-strong); }
.pt-av--dm img { width: 70%; height: auto; display: block; }

/* ---------- Header on the client's pages ---------- */
.pt-head { display: flex; align-items: center; gap: 24px; padding: 16px 32px; border-bottom: 1px solid var(--text); background: var(--surface); }
.pt-head img { display: block; height: 24px; width: auto; }
.pt-head__room { display: flex; flex-direction: column; gap: 2px; padding-left: 24px; border-left: 1px solid var(--line-strong); min-width: 0; }
.pt-head__room b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-head__end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.pt-user { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- Sign in ---------- */
.pt-signin { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 96px; align-items: start; padding-top: 112px; padding-bottom: 128px; }
.pt-form { display: flex; flex-direction: column; gap: 24px; max-width: 480px; }
.pt-field { display: flex; flex-direction: column; gap: 8px; }
.pt-field label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.pt-input { height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-1); background: var(--surface-raised); font: inherit; font-size: 16px; color: var(--text); }
.pt-input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.pt-fine { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.pt-inside { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--line); padding-left: 56px; }
.pt-inside__row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pt-inside__row:first-of-type { padding-top: 20px; }
.pt-inside__row p { margin: 0; grid-column: 2; font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.pt-inside__row h3 { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 750; font-size: 28px; letter-spacing: -0.03em; line-height: 1.05; }

/* ---------- Client room ---------- */
.pt-room-hero { display: flex; flex-direction: column; gap: 28px; padding-top: 72px; padding-bottom: 24px; }
.pt-group { display: flex; flex-direction: column; gap: 24px; padding-top: 56px; }
.pt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.pt-card { display: flex; flex-direction: column; gap: 14px; padding: 0; border: 0; background: transparent; text-align: left; font: inherit; color: var(--text); cursor: pointer; text-decoration: none; }
.pt-card:hover .pt-card__title { color: var(--signal); }
.pt-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--brand-ink); border-radius: var(--radius-1); overflow: hidden; }
.pt-thumb__img { position: absolute; inset: 0; }
.pt-thumb .cm { border-color: rgba(245, 244, 239, 0.45); }
.pt-thumb__tl, .pt-thumb__br { position: absolute; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-bone); }
.pt-thumb__tl { top: 18px; left: 22px; }
.pt-thumb__br { bottom: 18px; right: 22px; }
.pt-thumb__new { position: absolute; bottom: 18px; left: 22px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-bone); }
.pt-card__title { margin: 0; font-family: var(--font-sans); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.pt-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-band { margin-top: 120px; padding: 72px 0; background: var(--brand-ink); color: var(--brand-bone); }
.pt-band__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.pt-foot { padding: 0 0 40px; background: var(--brand-ink); }

/* ---------- Screening room (review) ---------- */
.pt-rv { display: grid; grid-template-columns: minmax(0, 1fr) 400px; min-height: 920px; background: var(--surface); }
.pt-rvbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--surface-raised); flex-wrap: wrap; }
.pt-rvbar__title { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.pt-rvbar__title b { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-ib { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); background: transparent; color: var(--text); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; border-radius: 0; }
.pt-ib:hover { border-color: var(--line-strong); }
.pt-ib.on { border-color: var(--signal); color: var(--signal); }
.pt-ib svg { width: 16px; height: 16px; flex: none; }
.pt-center { display: flex; flex-direction: column; gap: 0; min-width: 0; border-right: 1px solid var(--line); }
.pt-stage { position: relative; margin: 24px 24px 0; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.pt-stage__shot { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 20%, #26324f 0%, #101521 55%, #07080b 100%); }
.pt-stage .cm { border-color: rgba(245, 244, 239, 0.5); }
.pt-stage__tl, .pt-stage__tr, .pt-stage__bl { position: absolute; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-bone); }
.pt-stage__tl { top: 22px; left: 26px; display: inline-flex; align-items: center; gap: 8px; }
.pt-stage__tr { top: 22px; right: 26px; }
.pt-stage__bl { bottom: 22px; left: 26px; font-size: 14px; letter-spacing: 0.02em; }
.pt-mark { position: absolute; border: 3px solid var(--signal-cyan); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 18px rgba(34, 211, 255, 0.35); }
.pt-tools { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--surface-raised); border: 1px solid var(--line-strong); }
.pt-sw { width: 20px; height: 20px; border: 2px solid transparent; padding: 0; cursor: pointer; }
.pt-sw.on { border-color: var(--brand-bone); }
.pt-tl { position: relative; height: 48px; margin: 18px 24px 0; }
.pt-tl__rail { position: absolute; left: 0; right: 0; top: 34px; height: 4px; background: var(--line); }
.pt-tl__fill { position: absolute; left: 0; top: 34px; height: 4px; background: var(--text-muted); }
.pt-tl__range { position: absolute; top: 34px; height: 4px; background: linear-gradient(90deg, var(--signal-indigo), var(--signal-cyan)); }
.pt-tl__head { position: absolute; top: 30px; width: 12px; height: 12px; margin-left: -6px; background: linear-gradient(135deg, var(--signal-indigo), var(--signal-cyan)); box-shadow: var(--glow-dot); }
.pt-tl__mk { position: absolute; top: 0; width: 22px; height: 22px; margin-left: -11px; display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; font-family: var(--font-mono); font-size: 9px; font-weight: 500; color: var(--brand-bone); background: #9a3412; }
.pt-tl__mk.dm { background: var(--brand-ink); outline: 1px solid var(--line-strong); }
.pt-tl__mk.sel { outline: 2px solid var(--signal-cyan); outline-offset: 1px; }
.pt-tl__mk.done { opacity: 0.4; }
.pt-transport { display: flex; align-items: center; gap: 6px; padding: 10px 24px 24px; flex-wrap: wrap; }
.pt-clock { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.02em; color: var(--text-muted); padding: 0 10px; white-space: nowrap; }
.pt-clock b { color: var(--text); font-weight: 500; }
.pt-spacer { flex: 1; }

.pt-panel { display: flex; flex-direction: column; min-height: 0; background: var(--surface-raised); }
.pt-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.pt-panel__head b { font-size: 16px; font-weight: 700; }
.pt-list { flex: 1; overflow: auto; }
.pt-cm { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pt-cm:hover { background: rgba(245, 244, 239, 0.03); }
.pt-cm.sel { background: rgba(34, 211, 255, 0.06); box-shadow: inset 2px 0 0 var(--signal-cyan); }
.pt-cm__h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-cm__who { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-cm__when { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.pt-cm__n { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-muted); }
.pt-cm__body { display: flex; flex-direction: column; gap: 8px; padding-left: 38px; }
.pt-tc { display: inline-flex; align-items: center; gap: 6px; width: max-content; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--signal-cyan); }
.pt-tc i { width: 7px; height: 7px; display: inline-block; background: linear-gradient(135deg, var(--signal-indigo), var(--signal-cyan)); }
.pt-cm__txt { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.pt-cm.done .pt-cm__txt { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.pt-cm__reply { display: flex; flex-direction: column; gap: 6px; margin-left: 38px; padding-left: 14px; border-left: 1px solid var(--line-strong); }
.pt-cm__reply .pt-cm__txt { font-size: 14px; }
.pt-cm__f { display: flex; align-items: center; gap: 16px; padding-left: 38px; }
.pt-mini { border: 0; background: transparent; padding: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pt-mini:hover { color: var(--text); }
.pt-mini.on { color: #3fcb7e; }
.pt-mini i { width: 12px; height: 12px; border: 1px solid currentColor; display: inline-grid; place-items: center; font-style: normal; font-size: 9px; }
.pt-composer { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.pt-ta { min-height: 76px; resize: vertical; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-1); background: var(--surface); font: inherit; font-size: 15px; color: var(--text); }
.pt-ta:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.pt-crow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pt-tcbtn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--signal-cyan); background: rgba(34, 211, 255, 0.08); color: var(--signal-cyan); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }

/* ---------- Approve: the lock ---------- */
.pt-lock { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; background: rgba(7, 7, 7, 0.86); }
.pt-lock__box { width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: 22px; padding: 44px; background: var(--brand-ink); border: 1px solid var(--line-strong); }
.pt-lock__row { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---------- Phone ---------- */
@media (max-width: 960px) {
  .pt-signin { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 64px; padding-bottom: 80px; }
  .pt-inside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .pt-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pt-rv { grid-template-columns: minmax(0, 1fr); }
  .pt-center { border-right: 0; }
}
@media (max-width: 720px) {
  .pt-head { padding: 12px 16px; gap: 14px; flex-wrap: wrap; }
  .pt-head__room { padding-left: 14px; }
  .pt-head .pt-user span { display: none; }
  .pt-room-hero { padding-top: 48px; }
  .pt-group { padding-top: 40px; }
  .pt-band { margin-top: 80px; padding: 56px 0; }
  .pt-stage { margin: 16px 16px 0; }
  .pt-tl { margin: 14px 16px 0; }
  .pt-transport { padding: 8px 16px 16px; }
  .pt-rvbar { padding: 10px 16px; }
  .pt-lock__box { padding: 28px; }
}

/* ---------- Room filters: month chips + project ---------- */
.pt-filters { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding: 16px 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); }
.pt-months { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-months > .mono { margin-right: 8px; }
.pt-fchip { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 0; background: transparent; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); cursor: pointer; }
.pt-fchip:hover { border-color: var(--text); }
.pt-fchip.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.pt-fchip__n { color: var(--text-muted); }
.pt-fchip.on .pt-fchip__n { color: var(--signal-cyan); }
.pt-fchip:focus-visible, .pt-select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pt-proj { display: flex; align-items: center; gap: 12px; }
.pt-select { height: 38px; padding: 0 36px 0 12px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface-raised); font: inherit; font-size: 14px; font-weight: 600; color: var(--text); }

/* ---------- dr.media admin (your view only) ---------- */
.ad { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 1300px; background: var(--surface); color: var(--text); }
.ad-side { display: flex; flex-direction: column; gap: 4px; padding: 20px 12px; border-right: 1px solid var(--line); background: var(--surface-raised); }
.ad-side img { display: block; height: 22px; width: auto; margin: 0 8px 24px; }
.ad-side .mono { padding: 14px 8px 6px; }
.ad-cl { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.ad-cl:hover { color: var(--text); background: rgba(245, 244, 239, 0.04); }
.ad-cl.on { color: var(--text); background: rgba(245, 244, 239, 0.07); box-shadow: inset 2px 0 0 var(--signal-cyan); }
.ad-cl b { flex: 1; font-weight: 600; }
.ad-cl span:last-child { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.ad-main { display: flex; flex-direction: column; gap: 32px; padding: 32px 40px 56px; min-width: 0; }
.ad-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ad-access { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.ad-access > div { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-right: 1px solid var(--line); min-width: 0; }
.ad-access > div:last-child { border-right: 0; }
.ad-val { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-row { display: grid; grid-template-columns: 112px minmax(0, 1.6fr) 140px 150px 110px 190px; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ad-row--head { padding: 8px 0; }
.ad-thumb { aspect-ratio: 16 / 9; background: #000; position: relative; overflow: hidden; }
.ad-thumb > span { position: absolute; inset: 0; }
.ad-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ad-title b { font-size: 16px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-link { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.ad-link:hover { border-color: var(--signal-cyan); color: var(--signal-cyan); }
.ad-link.ok { border-color: #3fcb7e; color: #3fcb7e; }
.ad-month { display: flex; flex-direction: column; gap: 0; }
