/* Layout and components. Tokens live in /brand/brand.css. */
* { box-sizing: border-box; }
/* Elements styled with display (tiles, rows) must still hide when given the hidden attribute. */
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--ps-font-body);
  font-weight: var(--ps-weight-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ps-black);
  background: var(--ps-white);
}
a { color: var(--ps-wonder-blue); }
:focus-visible { outline: 2px solid var(--ps-wonder-blue); outline-offset: 2px; }

.headline {
  font-family: var(--ps-font-headline);
  font-weight: var(--ps-weight-headline);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.mono {
  font-family: var(--ps-font-mono);
  font-weight: var(--ps-weight-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
}

/* Primary action: the brand gradient with white text */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  background: var(--ps-gradient);
  color: var(--ps-white);
  font-family: var(--ps-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.btn.secondary { background: var(--ps-black); }

/* Staff header */
.bar {
  display: flex; align-items: center; gap: 32px;
  padding: 18px 32px;
  border-bottom: 1px solid #e6e6e6;
}
.bar nav { display: flex; gap: 20px; flex: 1; }
.bar nav a, .bar .who a { color: var(--ps-black); text-decoration: none; }
.bar nav a:hover, .bar .who a:hover { text-decoration: underline; }
.who { color: #555; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 48px 32px 96px; }
.wrap h1.headline { font-size: clamp(40px, 6vw, 72px); margin: 0 0 24px; }

.empty {
  background: #f2f2f2;
  border-radius: 20px;
  padding: 40px;
}
.empty p { margin: 0 0 24px; max-width: 46ch; }

/* Dark sign-in screens: texture, never flat black */
body.dark {
  min-height: 100vh;
  display: grid; place-items: center;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), #000 url("/brand/bolt-render.jpg") center / cover no-repeat;
  color: var(--ps-white);
}
.dark-card { max-width: 520px; padding: 40px 32px; }
.dark-card h1 { font-size: clamp(36px, 7vw, 64px); margin: 28px 0 16px; }
.dark-card p { font-size: 18px; margin: 0 0 28px; }
.logo-white { filter: invert(1); }

/* Sign-in page */
body.signin {
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(248,20,109,.5), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, rgba(81,114,255,.55), transparent 60%),
    linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)),
    #000 url("/brand/bolt-render.jpg") center / cover no-repeat;
}
.signin-card { max-width: 640px; padding: 48px 32px; }
.signin-card h1.headline { font-size: clamp(56px, 12vw, 120px); margin: 36px 0 8px; }
.signin-card .hub-sub { margin: 0 0 36px; }
.btn.ms { display: inline-flex; align-items: center; gap: 12px; background: var(--ps-white); color: var(--ps-black); padding: 16px 28px; }
.btn.ms:hover { box-shadow: 0 0 0 3px var(--ps-lightning-yellow); }
.signin-note { margin-top: 28px; color: rgba(255,255,255,.7); font-size: 11px; }


/* Hub */
.greet { color: #666; margin: 0 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; color: var(--ps-white); text-decoration: none;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), #000 url("/brand/bolt-render.jpg") center / cover no-repeat; min-height: 220px; }
.tile h2.headline { font-size: 32px; margin: 0; }
.tile p { margin: 0; flex: 1; }
.tile .mono { color: var(--ps-lightning-yellow); }
a.tile:hover { box-shadow: 0 0 0 3px var(--ps-wonder-blue); }
.tile.soon { background: #f2f2f2; color: #555; }
.bar nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Hub: brand hero, then compact tiles. Each section carries a brand colour:
   Do = Wonder Blue, Find = Shocking Pink, Request = the gradient, Know = black with Lightning Yellow. */
.hub-hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 40px 40px 36px; margin: -8px 0 8px; color: var(--ps-white);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(248,20,109,.55), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(81,114,255,.6), transparent 60%),
    linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)),
    #000 url("/brand/bolt-render.jpg") center / cover no-repeat;
}
.hub-hero .greet { color: var(--ps-lightning-yellow); margin: 0 0 10px; }
.hub-hero h1.headline { font-size: clamp(48px, 9vw, 104px); margin: 0; }
.hub-sub { font-size: clamp(18px, 2.2vw, 22px); margin: 10px 0 26px; max-width: 34ch; }
.hub-search { max-width: 560px; }
.hub-search input[type="search"] { border: 0; background: rgba(255,255,255,.96); }
.hub-search input[type="search"]:focus { outline: 3px solid var(--ps-lightning-yellow); outline-offset: 0; }

.hub-section { --accent: var(--ps-black); --accent-fill: var(--ps-black); margin-top: 8px; }
.hub-section.accent-do { --accent: var(--ps-wonder-blue); --accent-fill: var(--ps-wonder-blue); }
.hub-section.accent-find { --accent: var(--ps-shocking-pink); --accent-fill: var(--ps-shocking-pink); }
/* Lightning yellow is too light for white text, so Read tiles turn yellow with black text on hover. */
.hub-section.accent-read { --accent: var(--ps-lightning-yellow); --accent-fill: var(--ps-lightning-yellow); }
.hub-section.accent-request { --accent: var(--ps-wonder-blue); --accent-fill: var(--ps-gradient); }
.hub-section.accent-know { --accent: var(--ps-black); --accent-fill: var(--ps-black); }
.hub-section h2.headline.small { margin: 40px 0 14px; display: flex; align-items: center; gap: 12px; }
.hub-section h2.headline.small::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-fill); flex: none; }
.hub-section.accent-read h2.headline.small::before { box-shadow: 0 0 0 2px var(--ps-black); }
.hub-section.accent-read .tile-sm::before { border-right: 1px solid rgba(0,0,0,.12); }
.hub-section.accent-read a.tile-sm:hover, .hub-section.accent-read a.tile-sm:focus-visible { color: var(--ps-black); }
.hub-section.accent-read a.tile-sm:hover .n, .hub-section.accent-read a.tile-sm:focus-visible .n,
.hub-section.accent-read a.tile-sm:hover .ext, .hub-section.accent-read a.tile-sm:focus-visible .ext { color: rgba(0,0,0,.7); }

.tiles-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tile-sm { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 20px; border: 1px solid #dcdcdc; border-radius: 14px;
  color: var(--ps-black); text-decoration: none; min-height: 72px; background: var(--ps-white); overflow: hidden;
  transition: background .15s ease, color .15s ease, border-color .15s ease; }
.tile-sm::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent-fill); }
a.tile-sm:hover, a.tile-sm:focus-visible { background: var(--accent-fill); border-color: transparent; color: var(--ps-white); }
a.tile-sm:hover .n, a.tile-sm:focus-visible .n, a.tile-sm:hover .ext, a.tile-sm:focus-visible .ext { color: rgba(255,255,255,.85); }
.tile-sm .t { font-weight: 400; line-height: 1.25; }
.tile-sm .n { color: #777; font-size: 11px; }
.tile-sm .ext { color: #999; font-size: 13px; }
.tile-sm.soon { background: #f6f6f6; border-style: dashed; color: #777; }
.tile-sm.soon::before { opacity: .35; }
.tile-sm.info { background: var(--ps-black); color: var(--ps-white); border-color: var(--ps-black); }
.tile-sm.info::before { background: var(--ps-lightning-yellow); }
.tile-sm.info .secret { font-size: 15px; letter-spacing: .03em; text-transform: none; word-break: break-all; }
.tile-sm.info .info-actions { display: flex; gap: 14px; margin-top: 2px; }
.tile-sm.info .link-button { color: var(--ps-lightning-yellow); font-size: 11px; }
.admin-link { margin-top: 12px; }
.admin-link a { color: #555; }
.hub-empty { margin-top: 32px; color: #666; }

/* Page furniture */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.page-head h1.headline { margin: 0; }
.back { display: inline-block; margin-bottom: 20px; color: #555; text-decoration: none; }
.back:hover { color: var(--ps-black); }
.lede { font-size: 20px; max-width: 52ch; margin: 0 0 32px; }
.headline.small { font-size: 28px; margin: 48px 0 16px; }
.sub { color: #666; font-size: 14px; }
.nowrap { white-space: nowrap; }
.banner { background: #f2f2f2; border-left: 4px solid var(--ps-wonder-blue); padding: 16px 20px; margin: 0 0 24px; border-radius: 4px; }
.error-banner { border-left-color: var(--ps-shocking-pink); }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; color: var(--ps-shocking-pink); cursor: pointer; text-decoration: underline; }

/* Status pills */
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-family: var(--ps-font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; background: #ececec; color: var(--ps-black); vertical-align: middle; }
.pill-sent, .pill-opened, .pill-details_completed { background: var(--ps-wonder-blue); color: var(--ps-white); }
.pill-signed { background: var(--ps-black); color: var(--ps-white); box-shadow: inset 0 -3px 0 var(--ps-lightning-yellow); }
.pill-expired { background: var(--ps-shocking-pink); color: var(--ps-white); }
.pill-on_hold { background: var(--ps-white); color: var(--ps-shocking-pink); border: 1px solid var(--ps-shocking-pink); }

/* List */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 999px; color: var(--ps-black); text-decoration: none; }
.tabs a:hover { background: #f2f2f2; }
.tabs a[aria-current="page"] { background: var(--ps-black); color: var(--ps-white); }
.toolbar input[type="search"] { min-width: 260px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-weight: var(--ps-weight-mono); color: #666; padding: 10px 12px; border-bottom: 1px solid var(--ps-black); }
table.list td { padding: 14px 12px; border-bottom: 1px solid #e6e6e6; vertical-align: top; }
table.list td a { color: var(--ps-black); font-weight: 400; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="search"], input:not([type]), textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid #bdbdbd; border-radius: 10px; background: var(--ps-white); color: var(--ps-black);
}
input:focus, textarea:focus { outline: 2px solid var(--ps-wonder-blue); outline-offset: 0; border-color: var(--ps-wonder-blue); }
[aria-invalid="true"] { border-color: var(--ps-shocking-pink); }
textarea { resize: vertical; }
.flow { max-width: 760px; }
fieldset.q { border: 0; border-top: 1px solid #e6e6e6; margin: 0; padding: 28px 0 32px; }
fieldset.q legend { display: flex; gap: 16px; align-items: baseline; font-size: 22px; font-weight: 400; padding: 28px 0 0; float: left; width: 100%; margin-bottom: 16px; }
fieldset.q legend + * { clear: both; }
fieldset.q .num { color: var(--ps-shocking-pink); font-size: 13px; flex: none; }
.field { margin: 0 0 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 400; }
.optional { color: #777; font-family: var(--ps-font-mono); font-size: 11px; text-transform: uppercase; margin-left: 6px; }
.hint { color: #666; font-size: 15px; margin: 0 0 8px; }
.error { color: var(--ps-shocking-pink); font-size: 15px; margin: 0 0 8px; }
.choices, .options { display: grid; gap: 10px; }
.choices { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.options.inline { grid-template-columns: repeat(2, minmax(0, 200px)); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid #d6d6d6; border-radius: 12px; cursor: pointer; }
.choice:hover { border-color: var(--ps-black); }
.choice:has(input:checked) { border-color: var(--ps-wonder-blue); box-shadow: 0 0 0 1px var(--ps-wonder-blue); }
.choice input { accent-color: var(--ps-wonder-blue); margin-top: 4px; width: 18px; height: 18px; flex: none; }
.choice small { display: block; color: #666; font-size: 14px; }
.reveal { margin-top: 20px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.actions { display: flex; gap: 24px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.actions a.mono { color: var(--ps-black); }

/* Stop screen */
.stop { background: var(--ps-black); color: var(--ps-white); border-radius: 20px; padding: 36px; max-width: 760px;
  background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url("/brand/bolt-render.jpg"); background-size: cover; background-position: center; }
.stop .big { font-size: 24px; margin-top: 0; }

/* Detail */
dl.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 32px; margin: 0; max-width: 960px; }
dl.facts dt { color: #666; margin-bottom: 4px; }
dl.facts dd { margin: 0; white-space: pre-line; }
ol.activity { list-style: none; padding: 0; margin: 0; }
ol.activity li { padding: 10px 0; border-bottom: 1px solid #eee; }
ol.activity .mono { color: #666; margin-right: 12px; }

/* Partner pages */
body.partner { min-height: 100vh; display: flex; flex-direction: column; }
body.partner main { flex: 1; width: 100%; }
.wrap.narrow { max-width: 820px; }
.steps { list-style: none; display: flex; gap: 8px; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; }
.steps li { padding: 6px 12px; border-radius: 999px; color: #777; }
.steps li.done { color: var(--ps-black); }
.steps li.done::before { content: "✓ "; }
.steps li[aria-current="step"] { background: var(--ps-black); color: var(--ps-white); }
.foot { padding: 20px 32px; border-top: 1px solid #e6e6e6; color: #666; font-size: 12px; }
.foot a { color: inherit; }
.kicker { color: #666; margin: 0 0 12px; }
.code-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.code-form label { width: 100%; }
.code-form input { width: 12ch; font-family: var(--ps-font-mono); font-size: 28px; letter-spacing: .2em; padding: 10px 14px; }
.lookup { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.lookup .field { flex: 1; min-width: 220px; margin-bottom: 18px; }
.lookup .btn { margin-bottom: 18px; }
.found { background: #f2f2f2; border-radius: 12px; padding: 16px 20px; margin: 0 0 20px; border-left: 4px solid var(--ps-wonder-blue); }
.found p { margin: 0 0 6px; }
.found .mono { color: #666; }
ul.ins { margin: 0 0 16px; padding-left: 20px; }
ul.ins li { margin-bottom: 6px; }
.doc-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 0 0 20px; }
.doc-links a.mono { color: var(--ps-black); }
.doc-links a.quiet { color: #777; font-size: 11px; }
iframe.pdf { width: 100%; height: 70vh; border: 1px solid #d6d6d6; border-radius: 12px; background: #f2f2f2; }
.sig-tabs { display: flex; gap: 4px; margin: 8px 0 10px; }
.sig-tabs button { font: inherit; border: 0; background: none; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.sig-tabs button[aria-selected="true"] { background: var(--ps-black); color: var(--ps-white); }
.sig-pad { position: relative; }
.sig-pad canvas { display: block; width: 100%; height: 180px; border: 1px dashed #9a9a9a; border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; }
.sig-pad canvas.typed { cursor: default; }
.sig-pad #clear { position: absolute; right: 12px; top: 10px; }
.warn { color: var(--ps-shocking-pink); font-weight: 400; }
.actions.top { margin: 0 0 8px; }
.actions form { margin: 0; }

.head-actions { display: flex; gap: 24px; align-items: center; }
.head-actions a.mono { color: #555; }
.quiet-link { font-size: 11px; color: #777; }

a.mono.danger { color: var(--ps-shocking-pink); }
.btn.danger-btn { background: var(--ps-shocking-pink); }

/* Job numbers */
.job-form { max-width: 620px; }
.job-form select, .toolbar select { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid #bdbdbd; border-radius: 10px; background: var(--ps-white); width: 100%; }
.toolbar select { width: auto; font-size: 15px; padding: 9px 12px; }
.job-result { border-radius: 20px; padding: 28px 32px; margin: 0 0 32px; max-width: 620px; color: var(--ps-white);
  background: radial-gradient(100% 140% at 100% 0%, rgba(248,20,109,.6), transparent 60%), radial-gradient(90% 120% at 0% 100%, rgba(81,114,255,.65), transparent 60%), #000; }
.job-result .mono { color: var(--ps-lightning-yellow); margin: 0; }
.job-result .job-code { font-family: var(--ps-font-mono); font-size: clamp(40px, 8vw, 64px); letter-spacing: .04em; margin: 6px 0 8px; }
.job-result .btn.secondary { background: var(--ps-white); color: var(--ps-black); }
.code-copy { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ps-black); text-decoration: underline dotted; }
.inline-rename { display: flex; gap: 10px; align-items: center; }
.inline-rename input { padding: 6px 10px; font-size: 15px; max-width: 280px; }

/* Push-back */
.pb-list { display: grid; gap: 8px; }
.choice.pb small { margin-top: 4px; }
.ob { display: inline-block; font-family: var(--ps-font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: #ececec; color: #444; }
.ob-fallback { background: var(--ps-wonder-blue); color: var(--ps-white); }
.ob-included { background: #e3f6e3; color: #1d6b2a; }
.ob-hold_firm { background: var(--ps-black); color: var(--ps-white); }
.ob-legal_review, .ob-escalate { background: var(--ps-shocking-pink); color: var(--ps-white); }
.ai-helper { margin: 8px 0 0; }
.ai-helper .link-button { color: #777; font-size: 11px; }
.banner.ai { border-left-color: var(--ps-lightning-yellow); background: #fafafa; }
.banner.ai ul { margin: 6px 0 10px; padding-left: 20px; }
.pb-section { margin-bottom: 12px; }
.pb-item { border: 1px solid #e0e0e0; border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.pb-item h3 { margin: 0 0 8px; font-weight: 400; font-size: 18px; }
.draft-label { color: #777; font-size: 11px; margin: 12px 0 6px; }
blockquote.draft { margin: 0 0 10px; padding: 10px 14px; border-left: 3px solid var(--ps-wonder-blue); background: #f6f7ff; font-size: 16px; }
.pb-item details p { color: #555; font-size: 15px; }
ul.done-list li { margin-bottom: 8px; font-size: 18px; }

/* Partner profile form */
dl.facts.compact { margin-bottom: 12px; }
.rate-field { position: relative; max-width: 220px; }
.rate-field .prefix { position: absolute; left: 14px; bottom: 13px; color: #555; }
.rate-field input { padding-left: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--ps-black); color: var(--ps-white); font-size: 15px; }
.chip button { border: 0; background: rgba(255,255,255,.18); color: var(--ps-white); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; line-height: 1; }
.profile-prompt { margin-top: 32px; }

/* Partner directory */
.muted { color: #777; }
.lede.tight { margin: 8px 0 12px; }
.dir-filters { margin: 0 0 20px; }
.dir-filters input[type="search"] { max-width: 640px; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.filter { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1; max-width: 220px; }
.filter .mono { color: #666; font-size: 11px; }
.filter select { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid #bdbdbd; border-radius: 10px; background: var(--ps-white); }
.count { color: #666; margin: 14px 0 0; }
.count a { color: inherit; }
.dir-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ps-black); }
.dir-list li a { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 16px; align-items: center; padding: 12px 8px;
  border-bottom: 1px solid #e6e6e6; color: var(--ps-black); text-decoration: none; }
.dir-list li a:hover { background: #f6f6f6; }
.dir-list .who { display: flex; flex-direction: column; min-width: 0; }
.dir-list .name { font-weight: 400; }
.dir-list .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-list .rate small { color: #777; margin-left: 2px; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; background: var(--ps-gradient); color: var(--ps-white);
  font-family: var(--ps-font-mono); font-size: 14px; flex: none; }
.avatar.sm { width: 48px; height: 48px; }
.avatar.lg { width: 112px; height: 112px; font-size: 32px; }
.state { display: inline-block; padding: 4px 10px; border-radius: 999px; font-family: var(--ps-font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; white-space: nowrap; background: #ececec; color: #444; }
.state-new_signed { background: var(--ps-black); color: var(--ps-white); box-shadow: inset 0 -3px 0 var(--ps-lightning-yellow); }
.state-new_in_progress { background: var(--ps-wonder-blue); color: var(--ps-white); }
.state-old_signed { background: var(--ps-white); color: var(--ps-wonder-blue); border: 1px solid var(--ps-wonder-blue); }
.profile-head { display: flex; gap: 28px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.profile-head h1.headline { margin: 0; font-size: clamp(36px, 6vw, 64px); }
.tags { display: grid; gap: 16px; }
.tag-group p { margin: 0 0 6px; }
.tag-group .mono { color: #666; }
.tag { display: inline-block; margin: 0 6px 6px 0; padding: 5px 12px; border-radius: 999px; border: 1px solid #d0d0d0; color: var(--ps-black); text-decoration: none; font-size: 15px; }
.tag:hover { border-color: var(--ps-shocking-pink); color: var(--ps-shocking-pink); }
ul.links, ul.agreement-list { padding-left: 20px; margin: 0; }
ul.links li, ul.agreement-list li { margin-bottom: 8px; }
details.history, details.admin-edit { margin-top: 20px; }
details summary { cursor: pointer; color: #555; }
details.admin-edit form { margin-top: 16px; }

@media (max-width: 640px) {
  .steps { margin-left: 0; width: 100%; }
  .foot { padding: 16px; }
  iframe.pdf { display: none; }
}

@media (max-width: 640px) {
  .bar { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .wrap { padding: 32px 16px 64px; }
  .pair { grid-template-columns: 1fr; }
  .tiles-sm { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dir-list li a { grid-template-columns: 40px 1fr auto; gap: 10px; }
  .dir-list .state { grid-column: 2 / 4; justify-self: start; }
  .avatar.sm { width: 40px; height: 40px; }
  .filter { max-width: none; min-width: 45%; }
  .hub-hero { padding: 28px 20px 24px; border-radius: 18px; margin-top: -12px; }
  .tile-sm { padding: 12px; min-height: 64px; }
  .tile-sm .t { font-size: 15px; }
  .hub-section h2.headline.small { font-size: 22px; margin: 28px 0 10px; }
  .toolbar input[type="search"] { min-width: 0; width: 100%; }
  table.list thead { display: none; }
  table.list tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid #e6e6e6; }
  table.list td { border: 0; padding: 2px 0; }
}

/* Job numbers: billing sheet sync panel */
.panel { border: 1px solid #e2e2e2; border-radius: 8px; padding: 20px 24px; margin: 0 0 32px; max-width: 760px; }
.panel.flow h2.headline.small { margin-top: 0; }
.error-text { color: var(--ps-shocking-pink); }
.panel form + form { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e2e2e2; }
.share-email { font-family: "JetBrains Mono", monospace; font-size: 0.95em; text-transform: none; letter-spacing: 0; color: #000; word-break: break-all; user-select: all; }
.danger-link { color: var(--ps-shocking-pink); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

/* Job numbers: recurring jobs */
.head-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.recur-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #eef1ff; color: var(--ps-wonder-blue); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; vertical-align: 1px; }

/* Link to the BI app, shown to the management group only. */
.who a.bi-link { color: var(--ps-shocking-pink); }
