.sm-console{margin:1.25rem 0 2rem;display:grid;gap:1.25rem}.sm-heading{display:flex;justify-content:space-between;gap:1.25rem;align-items:center;flex-wrap:wrap}.sm-heading h2{margin:0 0 .35rem;font-size:1.45rem}.sm-heading p{margin:.3rem 0;color:var(--muted,#64748b)}.sm-safe{border:1px solid #94a3b8;border-radius:999px;padding:.25rem .75rem;font-size:.78rem;white-space:nowrap}.sm-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem}.sm-kpi{border:1px solid #dce2eb;border-radius:12px;background:#fff;padding:1rem;display:flex;flex-direction:column;gap:.25rem}.sm-kpi strong{font-size:1.65rem;line-height:1.1;color:#0f172a}.sm-kpi span{font-size:.81rem;color:#475569}.sm-tabs{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.25rem}.sm-tabs a{border:1px solid #dce2eb;border-radius:8px;padding:.5rem .9rem;white-space:nowrap;text-decoration:none;color:inherit}.sm-tabs a:hover,.sm-tabs a:focus-visible{background:#e8f0ff}.sm-panel{scroll-margin-top:2rem;min-width:0}.sm-panel table{width:100%;border-collapse:collapse}.sm-panel th,.sm-panel td{text-align:left;padding:.65rem .75rem;vertical-align:top}.sm-panel td small,.sm-panel td code{display:block;font-size:.76rem;margin-top:.25rem;overflow-wrap:anywhere}.sm-panel td small{color:#64748b}.sm-panel progress{width:90px;max-width:100%;accent-color:#2864b4}.sm-state{display:inline-flex;border-radius:6px;border:1px solid #cbd5e1;padding:.16rem .45rem;font-size:.77rem;white-space:nowrap}.sm-state-ok{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.sm-state-bad{color:#991b1b;background:#fef2f2;border-color:#fecaca}.sm-state-neutral{color:#475569;background:#f8fafc}.sm-filters{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;margin:.5rem 0 1rem}.sm-filters label{display:flex;flex-direction:column;gap:.25rem;min-width:140px}.sm-filters select{max-width:250px}.sm-empty{text-align:center;color:#64748b;padding:1.25rem}.sm-legacy details{border:1px solid #dce2eb;border-radius:12px;padding:1rem}.sm-legacy summary{font-weight:600;cursor:pointer}@media(max-width:640px){.sm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-heading h2{font-size:1.2rem}.sm-panel th,.sm-panel td{padding:.5rem}.sm-console{gap:.8rem}}
/* Site Manager: dedicated routes, progressive disclosure, 25-record paging. */
.sm-pages-nav{position:relative;display:flex;gap:.5rem;overflow-x:auto;scrollbar-width:thin;max-width:100%}
.sm-pages-nav a{flex:0 0 auto;line-height:1.3}
.sm-pages-nav .sm-tab-active{background:#e9f2ff;border-color:#8bb1e4;color:#174a83;font-weight:700}
.sm-kpi-link{text-decoration:none;color:inherit;transition:border-color .15s,transform .15s}
.sm-kpi-link:hover,.sm-kpi-link:focus-visible{border-color:#2864b4;transform:translateY(-1px)}
.sm-filters{align-items:end}
.sm-filters input[type="text"],.sm-filters input[type="search"]{width:100%;max-width:280px}
.sm-pagination{display:flex;justify-content:space-between;gap:1rem;margin:1rem 0 .2rem}
.sm-pagination a{display:inline-flex;padding:.4rem .8rem;border:1px solid #dce2eb;border-radius:8px}
.sm-panel code{overflow-wrap:anywhere}
.sm-legacy{margin:0 0 1rem;padding:.8rem 1rem;border:1px solid #dce2eb;border-radius:10px}
.sm-legacy summary{font-weight:600;cursor:pointer}
@media(max-width:700px){.sm-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.sm-filters label{min-width:0}.sm-filters button{justify-self:start}.sm-pages-nav a{padding:.6rem .7rem}}
@media(max-width:420px){.sm-filters{grid-template-columns:1fr}.sm-pagination{flex-wrap:wrap}}


/* Scoped multi-CMS draft slug assistant: no global admin input side effects. */
.sm-project-slug-field{display:flex;flex-direction:column;gap:.4rem;min-width:0}
.sm-project-slug-field>input{width:100%;max-width:100%}
.sm-project-slug-field input[readonly]{background:var(--surface-muted,#f4f6f9);cursor:default}
.sm-project-slug-manual{display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem}
.sm-project-slug-manual input{margin:0;accent-color:#2864b4}
[data-sm-slug-feedback]{font-size:.825rem;color:var(--text-secondary,#576476);line-height:1.45}
[data-sm-slug-feedback][data-state="ok"]{color:#19664c}
[data-sm-slug-feedback][data-state="error"]{color:#ad352b}
.sm-slug-suggestions{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center;font-size:.825rem;padding:.3rem 0}
.sm-slug-suggestions[hidden]{display:none}
.sm-slug-option{font:inherit;color:inherit;cursor:pointer;background:transparent;border:1px solid #b7c8dd;border-radius:7px;padding:.35rem .55rem;overflow-wrap:anywhere}
.sm-slug-option:hover,.sm-slug-option:focus-visible{border-color:#2864b4;box-shadow:0 0 0 2px rgb(40 100 180 / 12%)}

/* Read-only WordPress lifecycle: compact on mobile and explicit about unverified phases. */
.sm-wp-workflow{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:.7rem;list-style:none;margin:.75rem 0 1rem;padding:0}
.sm-wp-workflow-step{min-width:0;padding:.75rem;border:1px solid #d6dfeb;border-radius:9px;background:var(--surface,#fff)}
.sm-wp-workflow-step>div{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}
.sm-wp-workflow-step strong{font-size:.88rem;line-height:1.4}
.sm-wp-workflow-step p{font-size:.8rem;line-height:1.5;margin:.45rem 0 0}
.sm-wp-step-state{display:inline-block;border:1px solid #cbd5e1;border-radius:999px;padding:.16rem .48rem;background:#f8fafc;color:#475569;font-size:.72rem;font-weight:600;white-space:nowrap}
.sm-wp-step-state[data-state="complete"]{border-color:#a8dac4;background:#eaf8f0;color:#175a43}
.sm-wp-step-state[data-state="progress"],.sm-wp-step-state[data-state="pending"]{border-color:#c0d2eb;background:#eff6ff;color:#255a93}
.sm-wp-step-state[data-state="attention"]{border-color:#ecc0c0;background:#fff1f1;color:#9a2828}
.sm-wp-step-state[data-state="blocked"],.sm-wp-step-state[data-state="not_connected"]{border-color:#d8dce4;background:#f5f6f8;color:#5b6577}


/* WordPress workspace V2 — scoped, responsive, sober SaaS layout. */
.sm-wp-panel{display:grid;gap:1.2rem}
.sm-wp-header{display:flex;align-items:start;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.sm-wp-header h3{margin:.2rem 0 .35rem;font-size:1.25rem;letter-spacing:-.025em;color:var(--text,#17253b)}
.sm-wp-kicker{font-size:.71rem;font-weight:800;letter-spacing:.12em;color:#386391}
.sm-wp-subtitle{margin:.15rem 0;color:var(--muted,#66758a);line-height:1.55;max-width:55ch;font-size:.89rem}
.sm-wp-overall{display:inline-flex;border-radius:999px;padding:.4rem .7rem;border:1px solid #d2dae5;background:#f4f6f9;color:#4f5e71;font-size:.78rem;font-weight:700}
.sm-wp-overall[data-ready="true"]{border-color:#addac4;background:#effaf3;color:#195b42}
.sm-wp-env-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.sm-wp-env{border:1px solid #dce3ed;background:var(--surface,#fff);border-radius:14px;padding:1.1rem;min-width:0;display:flex;flex-direction:column;gap:1rem;box-shadow:0 2px 10px rgb(21 43 73 / 3%)}
.sm-wp-env[data-environment="staging"]{border-top:3px solid #3977ae}
.sm-wp-env[data-environment="production"]{border-top:3px solid #78889f}
.sm-wp-env-head{display:flex;align-items:start;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.sm-wp-env-title{display:flex;gap:.7rem;align-items:start}
.sm-wp-env-number{font-size:.83rem;font-weight:800;border:1px solid #dce4f0;border-radius:8px;background:#f4f7fb;padding:.38rem .45rem;color:#456783}
.sm-wp-env h4{margin:0;font-size:1.02rem;color:#192d45}
.sm-wp-env-title p{margin:.12rem 0 0;font-size:.78rem;color:#68788d}
.sm-wp-pill{font-size:.72rem;font-weight:750;line-height:1.2;border-radius:999px;padding:.25rem .58rem;border:1px solid #d8dfe9;background:#f5f7fa;color:#56667d}
.sm-wp-pill[data-tone="ok"]{color:#196147;background:#effaf3;border-color:#abdac5}
.sm-wp-pill[data-tone="error"]{color:#9c292e;background:#fff0f1;border-color:#f1c1c2}
.sm-wp-pill[data-tone="working"]{color:#245b99;background:#eaf4ff;border-color:#b8d4ef}
.sm-wp-facts{display:grid;gap:.6rem;margin:0}
.sm-wp-facts>div{min-width:0}
.sm-wp-facts dt{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.055em;color:#6f7f92}
.sm-wp-facts dd{margin:.15rem 0 0;color:#253b55;font-size:.86rem;overflow-wrap:anywhere}
.sm-wp-facts dd code{font-size:.78rem;display:inline;white-space:normal;overflow-wrap:anywhere}
.sm-wp-env-actions{margin-top:auto;display:flex;gap:.5rem;align-items:start;flex-direction:column}
.sm-wp-env-actions form{margin:0}
.sm-wp-env-actions .button{max-width:100%;white-space:normal;text-align:center}
.sm-wp-help{margin:.15rem 0 0;color:#65768a;font-size:.83rem;line-height:1.55}
.sm-wp-error{color:#a2373e}
.sm-wp-create,.sm-wp-note{border:1px solid #d4deea;background:#f6f9fc;border-radius:11px;padding:1rem;color:#30425a}
.sm-wp-create h4{margin:0 0 .35rem}
.sm-wp-create>p{margin:.1rem 0 .8rem;font-size:.88rem;color:#57687c}
.sm-wp-create form{display:grid;gap:.7rem}
.sm-wp-create .button{justify-self:start}
.sm-wp-access,.sm-wp-timeline{border:1px solid #dce3eb;border-radius:11px;background:var(--surface,#fff);overflow:hidden}
.sm-wp-access summary,.sm-wp-timeline summary{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;cursor:pointer;padding:.9rem 1rem;font-weight:750;color:#263a54;list-style:revert}
.sm-wp-access summary:hover,.sm-wp-timeline summary:hover{background:#f6f8fb}
.sm-wp-access-content{border-top:1px solid #e4e9f0;padding:1rem;display:grid;gap:.8rem}
.sm-wp-access-hint,.sm-wp-count{font-size:.76rem;color:#66778a;font-weight:500}
.sm-wp-access-hint code{font-size:.77rem}
.sm-wp-reset-form{display:grid;gap:.65rem;border-top:1px solid #e4e9f0;padding:.85rem 0 0;max-width:650px}
.sm-wp-reset-form[hidden]{display:none}
.sm-wp-reset-form label{display:grid;gap:.3rem;font-size:.84rem;font-weight:650}
.sm-wp-reset-form input{width:100%;max-width:420px}
.sm-wp-reset-form .button{justify-self:start}
.sm-wp-reset-form small{font-size:.76rem;color:#68788a}
.sm-wp-reset-feedback{font-size:.82rem;margin:0;line-height:1.5}
.sm-wp-reset-feedback[data-state="ok"]{color:#166647}
.sm-wp-reset-feedback[data-state="error"]{color:#a42d33}
.sm-wp-timeline .sm-wp-workflow{border-top:1px solid #e4e9f0;margin:0;padding:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr))}
.sm-wp-timeline .sm-wp-workflow-step{box-shadow:none;border-radius:9px;background:#fafbfd;padding:.75rem .8rem}
.sm-wp-timeline .sm-wp-workflow-step[data-state="complete"]{border-color:#a6d9bc;background:#f6fcf8}
.sm-wp-timeline .sm-wp-workflow-step>div{gap:.5rem}
.sm-wp-timeline .sm-wp-workflow-step p{margin:.5rem 0 0;font-size:.79rem;line-height:1.45;color:#5d6c7d}
.sm-wp-footnote{padding:0 1rem 1rem;font-size:.8rem;color:#65758a;margin:0}
@media(max-width:800px){.sm-wp-env-grid{grid-template-columns:1fr}.sm-wp-env{padding:.9rem}.sm-wp-header h3{font-size:1.13rem}}
@media(max-width:480px){.sm-wp-header{display:grid}.sm-wp-env-head{display:grid}.sm-wp-overall{justify-self:start}.sm-wp-access summary,.sm-wp-timeline summary{align-items:start}.sm-wp-env-actions .button{width:100%}}

/* Keep generic build plans accessible but subordinate to the WP workspace. */
.sm-project-advanced{padding:.8rem 1rem;border:1px solid #d9e4ef;border-radius:11px;background:#f8fafc}
.sm-project-advanced>summary{cursor:pointer;font-weight:650;color:#385b7e}
.sm-project-advanced[open]>summary{margin-bottom:1rem}
.sm-project-advanced>.sm-panel{margin-top:.6rem}

/* Verified next action: sober, accessible and honest about pending host gates. */
.sm-wp-next-action{display:grid;gap:.35rem;border:1px solid #c8d8ea;border-left:3px solid #4777a8;background:var(--surface,#f8fafc);border-radius:10px;padding:.9rem 1rem;min-width:0}
.sm-wp-next-action>strong{font-size:.9rem;font-weight:750;color:#254969}
.sm-wp-next-action>p{margin:0;font-size:.84rem;line-height:1.55;color:#455b73}
.sm-wp-next-footnote{font-size:.77rem!important;color:#687b90!important}
@media(max-width:480px){.sm-wp-next-action{padding:.8rem}.sm-wp-next-action>strong{font-size:.87rem}}

/* Site Manager — task navigation first; keep operator tools reachable on demand. */
.sm-pages-nav{align-items:center;overflow:visible;flex-wrap:wrap;gap:.5rem}
.sm-pages-nav>a{min-height:40px;display:inline-flex;align-items:center}
.sm-nav-more{position:relative;min-width:0;max-width:100%}
.sm-nav-more>summary{min-height:40px;display:flex;align-items:center;gap:.5rem;padding:.5rem .9rem;cursor:pointer;border:1px solid #dce2eb;background:var(--surface,#fff);border-radius:8px;font-size:.86rem;list-style:none;white-space:nowrap}
.sm-nav-more>summary::-webkit-details-marker{display:none}
.sm-nav-more>summary::after{content:"⌄";font-size:1rem;line-height:1;color:#71819a}
.sm-nav-more[open]>summary,.sm-nav-more:has(.sm-tab-active)>summary{border-color:#9eb8dc;background:#edf5ff;color:#234c80}
.sm-nav-more-items{position:absolute;z-index:8;right:0;top:calc(100% + 5px);min-width:190px;max-width:min(90vw,300px);padding:6px;background:#fff;border:1px solid #dce2eb;border-radius:12px;box-shadow:0 14px 34px rgb(19 39 72 / 14%);display:grid;gap:3px}
.sm-nav-more-items>a{display:block;padding:.65rem .75rem;border-radius:7px;text-decoration:none;color:inherit;font-size:.84rem;white-space:normal}
.sm-nav-more-items>a:hover,.sm-nav-more-items>a:focus-visible{background:#eef4ff}
.sm-nav-more-items .sm-tab-active{background:#e9f2ff;color:#174a83;font-weight:750}
.sm-overview-action{margin-bottom:0}
.sm-overview-action p{line-height:1.55}
.sm-overview-action p:last-child{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:0}
.sm-overview-advanced{margin-top:.1rem}
.sm-overview-advanced>summary{padding:0;cursor:pointer;font-size:.88rem;font-weight:700;color:#435b78}
.sm-overview-advanced-content{margin-top:1rem;display:grid;gap:.75rem}
.sm-overview-advanced-content p{margin:0;color:#66758a;font-size:.82rem}
@media(max-width:600px){.sm-nav-more{width:100%}.sm-nav-more>summary{width:100%;justify-content:space-between}.sm-nav-more-items{position:static;min-width:0;max-width:none;box-shadow:none;margin-top:6px}.sm-pages-nav>a{flex:1;justify-content:center}}

/* Site detail — durable project identity, technical evidence behind disclosure. */
.sm-project-summary{display:grid;gap:.9rem;margin-bottom:0}
.sm-project-title{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap}
.sm-project-title h3{font-size:1.28rem;color:#1d304b;letter-spacing:-.03em;margin:.15rem 0 .3rem}
.sm-project-title .muted{margin:0;font-size:.82rem}
.sm-project-title .muted code{font-size:.8rem}
.sm-project-title .button{white-space:normal;max-width:100%}
.sm-project-metadata{border-top:1px solid #e7ebf2;padding-top:.6rem;min-width:0}
.sm-project-metadata>summary{cursor:pointer;font-size:.8rem;color:#607188;font-weight:640;line-height:1.55}
.sm-project-metadata>.table-scroll{margin-top:.85rem}
.sm-project-metadata table th,.sm-project-metadata table td{font-size:.77rem;padding:.65rem}
.sm-wp-operation-status{min-width:0}
.sm-wp-operation-status details{padding:.2rem 0}
@media(max-width:600px){.sm-project-title{align-items:flex-start;flex-direction:column}.sm-project-title .button{width:100%}}


/* Display real WordPress job states before historical planning metadata. */
.sm-project-status-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sm-project-status-card{border:1px solid #dce6f1;background:#fafcff;border-radius:14px;padding:16px;min-width:0}
.sm-project-status-card h4{font-size:.82rem;color:#4c617d;margin:0 0 10px}
.sm-project-status-card .sm-state{font-weight:700;white-space:normal;line-height:1.4}
.sm-project-status-card .muted{font-size:.78rem;margin:9px 0 0}
.sm-project-status-card code{font-size:.75rem;white-space:normal;overflow-wrap:anywhere}
.sm-project-status-caption{font-size:.77rem;color:#61758e;margin:0}
.sm-project-guide{padding:16px 18px;background:#f6f9ff;border:1px solid #dce7f5;border-radius:13px}
.sm-project-guide h3{font-size:.95rem;color:#263e5e;margin:0 0 7px}
.sm-project-guide p{font-size:.85rem;color:#566a83;margin:0;line-height:1.55}
@media(max-width:680px){.sm-project-status-overview{grid-template-columns:1fr}}

/* Resource plans are per logical site AND per environment, not a shared quota. */
.sm-resource-plans{display:grid;gap:1rem}
.sm-resource-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.sm-resource-heading h3,.sm-resource-card h4{margin:0 0 .35rem}
.sm-resource-heading p{max-width:74ch}
.sm-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.sm-resource-card{min-width:0;border:1px solid var(--border,#dce2eb);border-radius:12px;padding:1rem;background:var(--card-bg,#fff)}
.sm-resource-card-head{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}
.sm-resource-state{color:var(--muted,#64748b);font-size:.86rem;margin:.4rem 0 1rem}
.sm-resource-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin-bottom:1rem}
.sm-resource-field{display:grid;gap:.25rem;min-width:0}
.sm-resource-field label{font-size:.85rem;font-weight:600}
.sm-resource-field label small{font-weight:400;color:var(--muted,#64748b)}
.sm-resource-field input{min-width:0;width:100%;box-sizing:border-box}
.sm-resource-field strong{font-size:1.02rem;font-variant-numeric:tabular-nums}
.sm-resource-disclaimer{margin:0;font-size:.83rem}
@media(max-width:850px){.sm-resource-grid{grid-template-columns:1fr}}
@media(max-width:460px){.sm-resource-fields{grid-template-columns:1fr}}
