/* Authenticated layout; colours inherit the shared Petrol brand tokens.
   Canonical documents keep their own styles. */
body.workspace {
  background:var(--bg); color:var(--text); min-height:100vh; font-size:14px;
}
.workspace .button {border-radius:5px; box-shadow:none; font-size:13px; min-height:42px; padding:10px 16px}
.workspace .button:hover {transform:none; box-shadow:none}
.workspace .button.secondary {background:var(--surface); color:var(--text); border-color:var(--border)}
.workspace .button.secondary:hover {background:var(--surface-2); border-color:var(--border-strong)}
.workspace .main-content {margin:0 0 0 224px; max-width:none; padding:0 40px 60px; min-width:0}
.workspace .main-content > :where(:not(.workspace-topbar):not(.demo-banner):not(.toast)) {max-width:1240px; margin-left:auto; margin-right:auto}
.workspace .workspace-sidebar {position:fixed; inset:0 auto 0 0; width:224px; height:100dvh; padding:26px 15px 16px; display:flex; flex-direction:column; gap:0; background:var(--surface); border:0; border-right:1px solid var(--border); z-index:60; overflow-y:auto}
.sidebar-brand {display:flex; align-items:center; padding:0 10px}
.workspace-sidebar .wordmark {font-size:28px; gap:0; letter-spacing:-1.1px}
.workspace-sidebar .brand-mark {width:30px; height:30px; margin-right:9px}
.sidebar-agency {display:flex; align-items:center; gap:10px; margin:25px 4px 20px; padding:20px 6px; border-top:1px solid var(--border); border-bottom:1px solid var(--border)}
.sidebar-agency>div {min-width:0}
.sidebar-agency strong {display:block; font-size:12px; font-weight:500; overflow-wrap:anywhere}
.sidebar-agency small {display:block; color:var(--text-3); font-size:10px; margin-top:5px}
.workspace-sidebar .avatar {width:31px; height:31px; border-radius:6px; background:var(--bg-2); color:var(--text-2); flex:none; display:grid; place-items:center; font-size:12px}
.workspace .workspace-sidebar nav {display:block; margin:0}
.workspace .workspace-sidebar .nav-link {display:flex; align-items:center; gap:11px; padding:12px 13px; border-radius:6px; font-size:13px; color:var(--text-2); line-height:1.35; margin:2px 0; min-height:43px}
.workspace-sidebar .nav-link .icon {width:16px; height:16px}
.workspace .workspace-sidebar .nav-link:hover {background:var(--surface-2); color:var(--accent)}
.workspace .workspace-sidebar .nav-link.selected {background:var(--wash); color:var(--accent); font-weight:500; box-shadow:none}
.nav-return {margin-left:auto; color:var(--text-3)}
.workspace .workspace-sidebar .client-navigation {margin:0 -4px}
.workspace .workspace-sidebar .sidebar-bottom {display:block; position:static; margin-top:auto; padding-top:40px}
.workspace-account {border-top:1px solid var(--border); margin:16px 4px 0; padding-top:14px; position:relative}
.workspace-account>summary {display:flex; align-items:center; gap:11px; cursor:pointer; list-style:none; padding:4px 7px; font-size:12px; color:var(--text-2)}
.workspace-account>summary::-webkit-details-marker {display:none}
.workspace-account>summary>span:last-child {margin-left:auto}
.workspace-account-content {display:grid; gap:14px; padding:16px 10px 6px}
.workspace-account-content small {font-size:11px; overflow-wrap:anywhere; color:var(--text-3)}
.workspace-account .theme-toggle,.workspace-account .text-button {font-size:12px}
.workspace-topbar {height:65px; display:flex; align-items:center; gap:14px; border-bottom:1px solid var(--border); margin:0 -40px 34px; padding:0 40px; background:var(--bg)}
.client-breadcrumbs {display:flex; align-items:center; gap:11px; color:var(--text-3); font-size:11px; line-height:1.4; min-width:0}
.client-breadcrumbs a:hover {color:var(--text); text-decoration:underline; text-underline-offset:4px}
.breadcrumb-client {min-width:0; max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-2)}
.breadcrumb-back {display:inline-flex; align-items:center; gap:7px; color:var(--text-2)}
.topbar-action {display:flex; align-items:center; gap:6px; margin-left:auto; font-size:11px; white-space:nowrap}
.topbar-action .icon {width:14px; height:14px}
.workspace-menu,.workspace-menu-close,.workspace-backdrop {display:none}
.section-heading {display:flex; align-items:center; justify-content:space-between; gap:24px; margin:0 0 30px}
.section-heading>div {min-width:0}
.section-heading h1,.workspace .page-heading h1 {font-size:32px; line-height:1.2; letter-spacing:-1px; font-weight:500; overflow-wrap:anywhere}
.section-heading p:not(.eyebrow),.workspace .page-heading p:not(.eyebrow) {font-size:13px; line-height:1.7; margin-top:10px}
.section-heading .eyebrow {font-size:9px; margin-bottom:12px}
.section-heading.compact {margin:0 0 18px}
.section-heading h2 {font-size:18px; letter-spacing:-.35px}
.subtle-count {display:inline-block; font-size:11px; letter-spacing:0; line-height:1; vertical-align:middle; margin-left:7px; padding:5px 6px; border-radius:4px; font-weight:400; color:var(--text-2); background:var(--bg-2)}
.directory-toolbar {display:flex; align-items:center; justify-content:space-between; gap:20px; margin:34px 0 17px}
.directory-toolbar>span {color:var(--text-3); font-size:11px}
.directory-search {display:flex; align-items:center; gap:10px; width:100%; max-width:330px; min-width:0; padding:11px 13px; border:1px solid var(--border); border-radius:5px; background:var(--surface); color:var(--text-3); margin:0}
.directory-search input {min-width:0; width:100%; padding:0; border:0; outline:none; box-shadow:none; font-size:13px; color:var(--text); background:transparent}
.directory-search:focus-within {outline:2px solid var(--focus); outline-offset:3px}
.directory-search .icon {width:16px; height:16px}
.client-directory {border:1px solid var(--border); border-radius:7px; overflow:hidden; background:var(--surface)}
.directory-labels,.directory-row {display:grid; grid-template-columns:minmax(230px,1.2fr) minmax(150px,1fr) 20px; gap:24px; align-items:center; padding:14px 23px}
.directory-labels {font-size:9px; text-transform:uppercase; letter-spacing:1.2px; color:var(--text-3); background:var(--surface-2)}
.directory-row {border-top:1px solid var(--border); min-height:74px}
.directory-row:hover,.review-history-row:hover {background:var(--surface-2)}
.directory-row:focus-visible,.review-history-row:focus-visible {outline-offset:-3px}
.directory-row[hidden] {display:none!important}
.directory-identity {display:flex; align-items:center; gap:15px; min-width:0}
.directory-identity strong {font-size:14px; font-weight:500; line-height:1.4; overflow-wrap:anywhere}
.client-initial {width:34px; height:34px; display:grid; place-items:center; flex:none; background:var(--surface-2); border:1px solid var(--border); border-radius:6px; font-size:13px; color:var(--text-2)}
.directory-domain {font-size:12px; color:var(--text-3); overflow-wrap:anywhere}
.directory-arrow {display:flex; color:var(--text-3)}
.directory-arrow .icon {width:16px; height:16px}
.client-overview-heading {margin-bottom:27px}
.latest-review-card {display:grid; grid-template-columns:minmax(0,1fr) 215px; gap:36px; border:1px solid var(--border); border-radius:7px; padding:29px 30px; background:var(--surface-2)}
.latest-review-content>.eyebrow {font-size:9px; margin:0 0 16px; color:var(--text-3)}
.latest-review-card h2 {font-size:24px; letter-spacing:-.7px}
.review-date {font-size:11px; margin-top:9px; line-height:1.6; color:var(--text-3)}
.review-date>span {margin:0 5px}
.latest-review-card .latest-takeaway {font-size:15px; line-height:1.75; color:var(--text); max-width:730px; margin:19px 0}
.quiet-link {display:inline-flex; align-items:center; gap:9px; font-size:12px; font-weight:500; line-height:1.5}
.quiet-link:hover {text-decoration:underline; text-underline-offset:4px}
.quiet-link .icon {width:16px; height:16px}
.client-context-note {border-left:1px solid var(--border); padding-left:26px; align-self:center}
.client-context-note strong {display:block; font-weight:500; font-size:14px; line-height:1.5; margin:11px 0 8px}
.client-context-note p {font-size:11px; line-height:1.65}
.client-context-note>a {display:inline-block; margin-top:20px; font-size:12px}
.client-notice {display:flex; justify-content:space-between; align-items:center; gap:22px; padding:15px 19px; border:1px solid var(--border); border-radius:5px; margin-bottom:18px; background:var(--surface); font-size:12px}
.client-notice p {font-size:11px; line-height:1.6; margin-top:5px}
.client-notice>span {font-size:11px; color:var(--text-3)}
.client-notice .ws-attempt {display:flex; flex-wrap:wrap; flex-direction:row; align-items:center; gap:10px}
.client-notice .ws-attempt-label {font-size:12px}
.client-notice>a {white-space:nowrap; font-weight:500}
.status-dot {display:inline-block; width:5px; height:5px; vertical-align:middle; border-radius:50%; margin-right:7px; background:var(--border-strong); box-shadow:none}
.status-dot.ready {background:var(--text-2)}
.status-dot.running,.status-dot.queued {background:var(--warn)}
.status-dot.failed {background:var(--bad)}
.recent-reviews {margin-top:31px}
.review-history-list {border:1px solid var(--border); border-radius:6px; overflow:hidden}
.review-history-row {display:grid; grid-template-columns:minmax(190px,1fr) minmax(200px,1.25fr) 100px 16px; gap:18px; align-items:center; background:var(--surface); padding:18px 21px; font-size:12px; min-height:81px; border-bottom:1px solid var(--border)}
.review-history-row:last-child {border-bottom:0}
.history-kind {display:flex; align-items:center; gap:14px; min-width:0}
.history-kind>.icon {width:18px; color:var(--text-3)}
.history-kind strong {font-size:13px; font-weight:500}
.history-kind small,.history-date small {display:block; font-size:11px; color:var(--text-3); margin-top:5px; overflow-wrap:anywhere; line-height:1.4}
.history-date {min-width:0}
.history-date time {font-size:12px}
.history-status {font-size:11px; color:var(--text-2)}
.history-filter {display:flex; align-items:center; gap:10px; margin:0 0 20px}
.history-filter label {margin:0}
.history-filter select {min-height:42px; padding:9px 30px 9px 12px; font-size:12px; margin:0}
.history-pagination {display:flex; align-items:center; justify-content:space-between; gap:14px; font-size:11px; color:var(--text-3); margin-top:20px}
.history-pagination>div {display:flex; gap:9px}
.history-pagination .button {font-size:12px}
.empty-history,.progress-footnote {font-size:12px; line-height:1.7; padding:18px 0; color:var(--text-3)}
.client-content .trends-panel {margin-top:22px; box-shadow:none; border-color:var(--border)}
.workspace .form-panel,.workspace .review-shell {border-radius:7px; box-shadow:none}
.workspace .audit-setup {max-width:1120px}
.workspace .review-benefits,.workspace .site-review-controls {background:var(--surface-2); color:var(--text)}
.workspace .review-benefits h2,.workspace .review-benefits h3 {color:var(--text)}
.workspace .review-benefit p {color:var(--text-2)}
.workspace .review-shell-top {background:var(--surface)}
.workspace .review-workspace {max-width:none; margin-top:0}
.workspace .review-workspace>.back-link,.workspace .main-content>.back-link {display:none}
.workspace .demo-banner {font-size:10px; padding:8px 12px; margin:0 0 22px; color:var(--text-3); background:var(--surface-2); border-color:var(--border)}
.workspace .review-page-inventory dd,.workspace .review-business-brief dd {overflow-wrap:anywhere}
@media(min-width:1700px){.workspace .main-content{padding-left:64px;padding-right:64px}.workspace-topbar{margin-left:-64px;margin-right:-64px;padding-left:64px;padding-right:64px}}
@media(max-width:1100px){
  .workspace .main-content{padding-left:26px;padding-right:26px}.workspace-topbar{margin-left:-26px;margin-right:-26px;padding-left:26px;padding-right:26px}
  .latest-review-card{grid-template-columns:1fr;gap:22px}.client-context-note{border-left:0;border-top:1px solid var(--border);padding:18px 0 0;display:grid;grid-template-columns:1fr auto;column-gap:20px}.client-context-note strong{margin:6px 0}.client-context-note>a{grid-column:2;grid-row:1/4;align-self:center;margin:0}.client-context-note p{grid-column:1}
  .directory-labels,.directory-row{grid-template-columns:minmax(180px,1.2fr) minmax(130px,1fr) 16px;gap:16px;padding-left:18px;padding-right:18px}
  .review-history-row{grid-template-columns:1fr 1.1fr 80px 12px;gap:12px;padding:18px 16px}
  .section-heading h1{font-size:29px}
}
@media(max-width:800px){
  .workspace .main-content{margin:0;padding:0 22px 40px}.workspace-topbar{position:sticky;top:0;z-index:30;height:62px;margin:0 -22px 26px;padding:0 17px;gap:11px}
  .workspace .workspace-sidebar{width:264px;transform:translateX(-100%);visibility:hidden;transition:transform .18s ease;box-shadow:var(--shadow-lg)}
  .workspace-menu-open .workspace-sidebar{transform:translateX(0);visibility:visible}.workspace-menu-open{overflow:hidden}
  .workspace-menu,.workspace-menu-close{display:grid;place-items:center;flex:none;width:36px;height:36px;border:0;background:transparent;color:var(--text);border-radius:4px}
  .workspace-menu-close{font-size:26px;margin-left:auto}.workspace-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:color-mix(in srgb, var(--bg-2) 80%, transparent);z-index:55;border:0}
  .workspace-sidebar .workspace-label,.workspace-sidebar .sidebar-bottom{display:block}.workspace-sidebar .brand-mark{width:30px;height:30px}.workspace .workspace-sidebar .nav-link{font-size:13px}
  .client-breadcrumbs{font-size:12px;gap:8px}.topbar-action{display:flex;font-size:11px;margin-left:auto;flex:none}
  .section-heading{gap:18px;margin-bottom:25px}.section-heading h1,.workspace .page-heading h1{font-size:29px}.section-heading p:not(.eyebrow){font-size:12px;line-height:1.65}
  .directory-toolbar{margin-top:26px}.directory-row{min-height:77px}.latest-review-card{padding:24px}
}
@media(max-width:540px){
  .workspace .main-content{padding:0 18px 36px}.workspace-topbar{margin:0 -18px 26px;padding:0 12px}.client-breadcrumbs{flex:1}.breadcrumb-client{max-width:none}
  .section-heading{align-items:flex-start;gap:16px;flex-wrap:wrap}.section-heading h1{font-size:30px}.section-heading>.button{font-size:12px;padding:10px 13px}.clients-page>.section-heading{flex-wrap:nowrap;align-items:center}.clients-page .section-heading p{max-width:180px}.clients-page .section-heading h1{font-size:31px}
  .client-overview-heading h1{font-size:29px;max-width:340px}.client-overview-heading>.button{margin-top:0}
  .directory-toolbar{display:block;margin:23px 0 14px}.directory-toolbar>span{display:none}.directory-search{max-width:none}
  .directory-labels{display:none}.directory-row{grid-template-columns:1fr 16px;gap:0 10px;padding:16px;min-height:83px}.directory-row:first-child{border-top:0}.directory-identity{gap:12px}.directory-identity strong{font-size:13px}.directory-domain{grid-column:1;grid-row:2;margin:2px 0 0 46px;font-size:11px}.directory-arrow{grid-column:2;grid-row:1/3}.client-initial{width:34px;height:34px;grid-row:1/3}
  .latest-review-card{padding:22px 21px;gap:23px}.latest-review-card h2{font-size:23px}.latest-review-card .latest-takeaway{font-size:14px;line-height:1.75;margin:17px 0}.review-date{font-size:10px;line-height:1.7}.review-date>span{margin:0 3px}.client-context-note{column-gap:14px}.client-context-note strong{font-size:13px}.client-context-note>a{font-size:11px}.client-context-note p{font-size:10px}
  .client-notice{align-items:flex-start;flex-wrap:wrap;gap:10px;padding:15px}.client-notice p{font-size:11px}.client-notice .ws-attempt{align-items:flex-start;gap:7px}.recent-reviews{margin-top:27px}.recent-reviews .section-heading{align-items:center;gap:10px;flex-wrap:nowrap}.section-heading h2{font-size:17px}.recent-reviews .quiet-link{font-size:11px;gap:4px}.subtle-count{margin-left:3px;font-size:10px}
  .review-history-row{grid-template-columns:1fr auto;gap:8px;padding:16px}.history-kind{gap:11px}.history-kind strong{font-size:12px}.history-kind small{font-size:10px}.history-date{grid-row:2;grid-column:1/-1;margin-left:29px}.history-date time,.history-date small{font-size:10px}.history-status{grid-row:1;grid-column:2;font-size:10px}.review-history-row>span:last-child{display:none}
  .history-filter{flex-wrap:wrap;gap:10px}.history-filter .directory-search{flex-basis:100%}.history-filter>label:nth-child(2){flex:1}.history-filter select{width:100%;font-size:12px}.history-pagination{font-size:10px}.history-pagination .button{font-size:11px;padding:8px 10px}
  .workspace .page-heading{gap:16px}.workspace .review-page-inventory dl{grid-template-columns:80px minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.workspace .workspace-sidebar{transition:none}}

/* The agency's own logo in place of its initial. */
.workspace-sidebar .avatar.avatar-logo {background:#fff; border:1px solid var(--border); overflow:hidden; padding:0}
.workspace-sidebar .avatar.avatar-logo img {width:100%; height:100%; object-fit:cover; display:block}
.workspace-legal{display:block;margin-top:8px;font-size:11px;color:var(--text-3)}.workspace-legal a{color:inherit}
