:root { --ink:#0d0d0d; --paper:#fff; --subtle:#f4f4f4; --muted:#626262; --rule:#dcdcdc; --laser:#c93420; --sans:'Inter Tight',system-ui,sans-serif; --mono:'IBM Plex Mono',monospace; --edge:clamp(22px,5vw,72px); }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { color-scheme:light; scrollbar-gutter:stable; -webkit-font-smoothing:antialiased; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.5 var(--sans); }
::selection { background:var(--ink); color:var(--paper); }
:focus-visible { outline:2px solid var(--laser); outline-offset:5px; }
a { color:inherit; text-underline-offset:4px; }
button,input,select,textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
button:disabled { opacity:.55; cursor:wait; }
input,select,textarea { width:100%; padding:13px 14px; min-height:48px; border:1px solid #b7b7b7; border-radius:0; background:var(--paper); caret-color:var(--laser); }
input::placeholder,textarea::placeholder { color:#737373; }
input:focus,select:focus,textarea:focus { outline:2px solid var(--ink); outline-offset:2px; }
textarea { resize:vertical; }
label { display:block; margin:20px 0 8px; font-size:14px; font-weight:500; }
form > label:first-of-type { margin-top:0; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { line-height:1.08; font-weight:500; text-wrap:balance; }
h1 { font-size:clamp(42px,5.5vw,78px); letter-spacing:-.035em; }
h2 { font-size:clamp(28px,3vw,40px); letter-spacing:-.025em; }
h3 { font-size:25px; letter-spacing:-.02em; }
p { text-wrap:pretty; }
.portal-header { min-height:104px; padding:24px var(--edge); display:flex; justify-content:space-between; align-items:center; gap:24px; border-bottom:1px solid var(--rule); }
.brand { text-decoration:none; font-size:clamp(24px,1.5vw,28px); letter-spacing:-.025em; font-weight:500; white-space:nowrap; }
.text-button:hover { text-decoration:underline; }
.account { display:flex; align-items:center; gap:28px; font-size:14px; }
.account > span { overflow-wrap:anywhere; }
.text-button { padding:8px 0; background:none; border:0; font-size:14px; text-underline-offset:4px; white-space:nowrap; }
.portal-navigation { position:relative; z-index:50; display:flex; align-items:center; gap:10px; }
.portal-navigation .talk { display:flex; align-items:center; gap:10px; height:clamp(44px,2.8vw,54px); padding:0 clamp(16px,.95vw,19px) 0 clamp(22px,1.25vw,25px); border-radius:999px; background:#ebebeb; color:var(--ink); font:500 clamp(14px,.875vw,17px) var(--mono); text-transform:uppercase; text-decoration:none; white-space:nowrap; transition:background .18s; }
.portal-navigation .talk i { width:5px; height:5px; border-radius:50%; background:currentColor; }
.portal-navigation .talk:hover { background:#dedede; }
.portal-navigation .menu-btn { display:flex; align-items:center; gap:12px; height:clamp(44px,2.8vw,54px); padding:0 clamp(16px,.95vw,19px) 0 clamp(22px,1.25vw,25px); border:0; border-radius:999px; background:var(--ink); color:var(--paper); font:500 clamp(14px,.875vw,17px) var(--mono); text-transform:uppercase; }
.portal-navigation .menu-btn:hover { background:#292929; }
.portal-navigation .menu-btn:focus-visible { outline:2px solid var(--ink); outline-offset:5px; }
.portal-navigation .dots { display:flex; gap:4px; }
.portal-navigation .dots i { width:7px; height:7px; border-radius:50%; background:currentColor; }
.portal-navigation .menu { position:absolute; top:calc(100% + 12px); right:0; width:min(300px,calc(100vw - 44px)); padding:22px 28px 26px; display:flex; flex-direction:column; gap:4px; background:var(--paper); color:var(--ink); border-radius:14px; box-shadow:0 24px 64px rgb(0 0 0 / .28); transform-origin:top right; }
.portal-navigation .menu a { padding-block:4px; font-size:30px; font-weight:600; letter-spacing:-.025em; line-height:1.15; text-decoration:none; }
.portal-navigation .menu a:hover { color:var(--muted); }
.portal-navigation .menu a:focus-visible { outline:2px solid var(--ink); outline-offset:4px; }
/* On the sign-in pages the header is the public site's (no rule, the same pills) and sits over the page, and there is
   no footer bar: the colour runs end to end, filling its half of the screen from top to bottom. */
.is-auth .portal-header { position:absolute; inset:0 0 auto; z-index:20; min-height:0; padding:16px var(--edge); border-bottom:0; }
.is-auth .portal-footer { display:none; }
.auth-layout { position:relative; display:grid; grid-template-columns:1.1fr 1fr; min-height:100svh; }
/* the colour side and its grainy seam with the sign-in side are drawn on one canvas behind both (portal.js) */
.auth-colour { position:absolute; left:0; top:0; z-index:0; display:block; pointer-events:none; }
.auth-intro { position:relative; z-index:1; isolation:isolate; overflow:hidden; background:transparent; color:var(--ink); padding:clamp(120px,12vw,180px) var(--edge) clamp(56px,7vw,112px); display:flex; flex-direction:column; justify-content:center; align-items:flex-start; }
.auth-intro::after { content:""; position:absolute; z-index:-1; inset:0; pointer-events:none;
 background:radial-gradient(ellipse 70% 46% at 26% 50%, rgb(255 255 255 / .36), rgb(255 255 255 / .12) 55%, transparent 82%); }
.auth-intro h1 { max-width:9ch; font-size:clamp(48px,6vw,88px); }
.auth-label { font:500 12px/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; margin-bottom:clamp(20px,2.4vw,32px); }
.auth-intro p:not(.auth-label) { margin-top:28px; color:inherit; max-width:30ch; font-size:19px; }
.auth-form-wrap { position:relative; z-index:1; padding:clamp(96px,13svh,120px) clamp(28px,6vw,96px) 64px; align-self:center; width:100%; max-width:650px; margin:auto; }
.auth-form-wrap h2 { font-size:34px; }
.form-intro { color:var(--muted); margin:16px 0 36px; max-width:44ch; }
.password-label { display:flex; align-items:center; justify-content:space-between; margin-top:20px; }
.password-label label { margin:0 0 8px; }
.password-label button { margin-top:-8px; }
.primary,.outline-button { display:inline-flex; align-items:center; justify-content:space-between; gap:28px; min-height:48px; padding:13px 20px; border:1px solid var(--ink); background:var(--ink); color:var(--paper); text-decoration:none; font-size:15px; transition:background .18s,color .18s; }
.primary:hover { background:#363636; }
.outline-button { background:var(--paper); color:var(--ink); }
.outline-button:hover { background:var(--subtle); }
.auth-form-wrap .primary { width:100%; margin-top:28px; }
.form-help { display:block; font-size:13px; color:var(--muted); margin-top:22px; max-width:48ch; }
.form-help + .form-help { margin-top:12px; }
.field-hint { color:var(--muted); font-size:13px; margin:8px 0 0; max-width:60ch; }
.message { padding:16px 20px; background:var(--subtle); font-size:14px; margin-top:24px; overflow-wrap:anywhere; }
.message.error { color:#9c2617; background:#fff1ee; }
.workspace { max-width:1600px; padding:0 var(--edge) 96px; margin:auto; min-height:calc(100svh - 192px); }
.workspace-nav { display:flex; gap:30px; padding-top:25px; }
.workspace-nav a { text-decoration:none; padding:8px 0 16px; font-size:14px; color:var(--muted); border-bottom:2px solid transparent; }
.workspace-nav a[aria-current='page'] { color:var(--ink); border-color:var(--ink); }
.workspace-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; margin:68px 0 64px; }
.workspace-heading p { color:var(--muted); font-size:18px; margin-top:20px; }
.search-label { margin:0; width:280px; font-size:13px; flex-shrink:0; }
.search-label input { margin-top:8px; font-size:15px; font-weight:400; }
.project-section { margin-top:48px; }
.section-heading { display:flex; align-items:baseline; gap:18px; padding-bottom:22px; border-bottom:1px solid var(--ink); }
.section-heading h2 { font-size:34px; }
.section-heading p { color:var(--muted); font-size:14px; }
.section-count { color:var(--muted); font:14px var(--mono); font-variant-numeric:tabular-nums; }
.project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:44px 24px; padding-top:28px; }
.project-card { min-width:0; display:flex; flex-direction:column; }
.project-media { aspect-ratio:400/260; border-radius:14px; overflow:hidden; background:var(--subtle); }
.project-media img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.project-card:hover .project-media img,.project-card:focus-within .project-media img { transform:scale(1.035); }
.project-card-body { padding-top:20px; display:flex; flex-direction:column; flex:1; }
.project-name { font-size:26px; line-height:1.15; letter-spacing:-.02em; overflow-wrap:anywhere; }
.project-meta { font:11px/1.5 var(--mono); color:var(--muted); margin-bottom:8px; min-height:16.5px; }
.project-summary { color:var(--muted); max-width:42ch; font-size:15px; overflow-wrap:anywhere; margin-top:12px; }
.project-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding-top:20px; margin-top:auto; min-height:68px; }
.project-actions a { font-size:14px; }
.unavailable { font-size:13px; color:var(--muted); }
.empty { padding:34px 0; color:var(--muted); border-bottom:1px solid var(--rule); }
.empty p { max-width:55ch; margin-top:6px; font-size:14px; }
.empty h3 { font-size:22px; color:var(--ink); }
.management-tabs { display:flex; gap:8px; border-bottom:1px solid var(--rule); margin-top:-18px; }
.management-tabs button { background:none; border:0; padding:12px 22px; border-bottom:2px solid transparent; color:var(--muted); }
.management-tabs button[aria-pressed='true'] { border-bottom-color:var(--ink); color:var(--ink); }
.manage-split { display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,8vw,128px); padding:48px 0; }
.manage-copy p { max-width:37ch; color:var(--muted); margin-top:16px; }
.inline-form { width:100%; max-width:560px; }
.inline-form .primary { margin-top:24px; }
.invite-result { padding:28px; background:var(--subtle); margin:0 0 48px; }
.invite-result > p { margin-top:12px; color:var(--muted); }
.copy-row { display:flex; gap:12px; }
.copy-row input { min-width:0; background:var(--paper); font-size:14px; }
.copy-row button { flex-shrink:0; }
.client-item { border-bottom:1px solid var(--rule); }
.client-item > summary { display:flex; justify-content:space-between; gap:28px; padding:26px 0; cursor:pointer; list-style:none; }
.client-item > summary::-webkit-details-marker { display:none; }
.client-title { font-size:24px; font-weight:500; }
.client-email { display:block; font-size:14px; color:var(--muted); margin-top:3px; overflow-wrap:anywhere; }
.client-state { color:var(--muted); font-size:13px; display:flex; align-items:center; gap:20px; }
.client-item > summary:hover .client-title { text-decoration:underline; text-underline-offset:5px; }
.client-item[open] > summary { padding-bottom:16px; }
.action-icon { display:inline-block; width:18px; height:18px; flex-shrink:0; vertical-align:middle; }
.client-item[open] > summary .action-icon { transform:rotate(180deg); }
.client-settings { padding:8px 0 32px; max-width:760px; }
.client-settings fieldset { padding:18px 0 12px; border:0; margin:0; }
.client-settings legend { font-weight:500; font-size:18px; }
.check-line { display:flex; gap:12px; align-items:center; margin:12px 0; font-size:16px; font-weight:400; cursor:pointer; }
.check-line input { width:18px; height:18px; min-height:0; accent-color:var(--ink); flex-shrink:0; }
.client-controls { display:flex; flex-wrap:wrap; gap:20px; align-items:center; margin-top:20px; }
.danger { color:#9c2617; }
.optional { color:var(--muted); font-weight:400; }
.release-details { margin-top:24px; padding:16px 0; border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); }
.release-details summary { cursor:pointer; }
.release-details label { margin-top:18px !important; }
.form-actions { display:flex; align-items:center; gap:24px; }
.form-actions > button { margin-top:24px; }
.catalog-row { display:flex; gap:24px; justify-content:space-between; align-items:center; padding:26px 0; border-bottom:1px solid var(--rule); }
.catalog-row h3 { font-size:25px; }
.catalog-row p { font-size:13px; color:var(--muted); margin-top:8px; }
.portal-footer { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:28px var(--edge); border-top:1px solid var(--rule); color:var(--muted); font-size:13px; }
.portal-footer a { text-decoration:none; }
.portal-footer a:hover { text-decoration:underline; }
.loading { padding:80px var(--edge); min-height:calc(100svh - 192px); color:var(--muted); }
@media(max-width:900px) {
 .auth-layout { grid-template-columns:1fr 1fr; }
 .auth-intro h1 { font-size:58px; }
 .auth-form-wrap { padding:48px 28px; }
 .workspace-heading { align-items:flex-start; flex-direction:column; margin:48px 0; }
 .search-label { width:100%; max-width:420px; }
 .project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .manage-split { gap:40px; }
}
@media(max-width:560px) { .portal-navigation .talk { display:none; } }
@media(max-width:600px) {
 .portal-header { min-height:82px; padding:19px var(--edge); gap:16px; }
 .brand { font-size:24px; }
 .account { gap:16px; }
 .account > span { max-width:95px; line-height:1.2; font-size:12px; }
 .auth-layout { display:block; min-height:0; }
 .auth-intro { min-height:440px; padding:120px var(--edge) 48px; }
 .auth-intro h1 { font-size:52px; max-width:none; }
 .auth-intro h1 br { display:none; }
 .auth-intro p:not(.auth-label) { margin-top:18px; font-size:17px; }
 .auth-form-wrap { padding:84px var(--edge) 52px; }
 .auth-form-wrap h2 { font-size:30px; }
 .form-intro { margin-bottom:28px; }
 .portal-footer { align-items:flex-start; font-size:12px; padding-block:24px; }
 .portal-footer a { max-width:155px; text-align:right; }
 .workspace { padding-bottom:64px; }
 .workspace-nav { gap:24px; padding-top:15px; }
 .workspace-heading h1 { font-size:48px; }
 .workspace-heading p { font-size:16px; margin-top:16px; }
 .project-grid { grid-template-columns:1fr; gap:36px; padding-top:24px; }
 .project-card-body { padding-top:18px; }
 .project-name { font-size:25px; }
 .section-heading { flex-wrap:wrap; gap:12px; }
 .section-heading h2 { font-size:30px; }
 .section-heading p { flex-basis:100%; }
 .manage-split { grid-template-columns:1fr; gap:28px; padding-block:36px; }
 .manage-copy h2 { font-size:30px; }
 .copy-row { flex-direction:column; align-items:flex-start; }
 .invite-result { padding:22px; }
 .client-item > summary { gap:16px; }
 .client-title { font-size:22px; }
 .client-state { gap:10px; font-size:12px; }
 .catalog-row h3 { font-size:23px; }
}
@media(prefers-reduced-motion:reduce) { * { transition:none !important; scroll-behavior:auto !important; } }
