/* Local Bayflow visual language: the original restrained white frosted glass. */
:root {
  --ink:#132b52; --blue:#1768e7; --muted:#637c97;
  --glass:rgba(255,255,255,.66); --glass-soft:rgba(255,255,255,.58);
  --edge:rgba(255,255,255,.8);
  --shadow:0 18px 48px rgba(77,119,167,.10),inset 0 1px 0 rgba(255,255,255,.72);
  --sans:'Noto Sans SC','Microsoft YaHei',system-ui,sans-serif;
}
body {background:#eff4f9;font:15px/1.65 var(--sans);color:var(--ink)}
.ambient-photo {background:linear-gradient(110deg,rgba(244,250,255,.93),rgba(229,242,255,.86)),url('/assets/warm-minimal-living.png') center/cover no-repeat;filter:saturate(.94)}
.ambient-photo:after {background:transparent;backdrop-filter:blur(20px)}
.glass,.collection-page {background:var(--glass);box-shadow:var(--shadow);backdrop-filter:blur(25px) saturate(132%);-webkit-backdrop-filter:blur(25px) saturate(132%)}
.shell {width:min(1440px,calc(100% - 48px));margin:24px auto 48px}
.topbar {height:80px;padding:0 26px;gap:24px;border-radius:22px;background:rgba(255,255,255,.75);box-shadow:0 12px 38px rgba(77,119,167,.08)}
.brand {min-width:210px;font-size:22px;letter-spacing:-.04em}
.brand em {font-size:10px;letter-spacing:.07em}
.marketing-nav {gap:4px;align-items:center;justify-content:center}
.marketing-nav button {font-size:14px;min-height:44px;padding:10px 14px;border-radius:11px;font-weight:500;white-space:nowrap;color:#536c88}
.marketing-nav button.is-active {color:var(--blue);background:rgba(225,238,255,.78);font-weight:700}
.marketing-nav button:hover {box-shadow:none;background:rgba(232,242,255,.8)}
.account {gap:16px;margin-left:auto;flex:none}
.quiet-button {font-size:14px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}
.top-cta {min-height:44px;padding:11px 17px;font-size:14px;box-shadow:none;background:rgba(255,255,255,.74);white-space:nowrap}
.primary,.secondary-button {display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:12px 19px;border-radius:12px;font-size:14px;font-weight:600;text-decoration:none;line-height:1.5}
.primary {box-shadow:0 7px 20px rgba(23,104,231,.16)}
.secondary-button {background:rgba(255,255,255,.68);border:1px solid #cddce9;box-shadow:none;color:var(--ink)}
.text-button {font-size:14px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}
button:disabled {cursor:not-allowed;opacity:.58}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:3px solid #75a9ee;outline-offset:3px}
.hero {margin-top:14px;border:1px solid var(--edge);background:var(--glass);box-shadow:var(--shadow);padding:clamp(34px,5vw,68px);gap:36px}
.hero h1 {font-size:clamp(40px,4.6vw,68px);letter-spacing:-.055em;line-height:1.18}
.hero-summary {font-size:16px;line-height:1.95;max-width:480px}
.hero .eyebrow,.eyebrow {font-size:11px;letter-spacing:.13em;color:#6584a5}
.hero-actions {display:flex;gap:14px;margin-top:28px}
.hero-meta {font-size:12px;gap:12px;margin-top:30px;color:#607b98}
.hero-showcase {border:1px solid rgba(255,255,255,.95);box-shadow:0 14px 36px rgba(49,89,135,.11)}
.hero-showcase:before,.hero-showcase:after {display:none;animation:none}
.showcase-chip {font-size:11px;background:rgba(255,255,255,.78);color:#315474;border-color:#fff}
.showcase-float {background:rgba(255,255,255,.84);border-color:var(--edge);box-shadow:0 10px 24px rgba(40,75,110,.08)}
.showcase-float small {font-size:11px}
.section-heading {align-items:center;gap:24px}
.section-heading h2 {font-size:32px;letter-spacing:-.04em}
.section-heading>p {font-size:14px;max-width:420px;line-height:1.8}
.capability-grid {gap:20px}
.capability-card {text-align:left;color:var(--ink);min-width:0;padding:22px;border-radius:20px;transition:transform .2s,box-shadow .2s}
.capability-card:hover {transform:translateY(-3px);box-shadow:0 16px 34px rgba(54,96,142,.14)}
.capability-card h3 {font-size:18px;margin:16px 0 8px}
.capability-card p {font-size:14px;line-height:1.85;color:var(--muted)}
.capability-card>span {font-size:11px;color:#6a87a6}
.collection-page {padding:38px 40px;min-height:calc(100vh - 160px);margin-top:18px;border-radius:25px}
.collection-head {align-items:center;gap:24px;margin-bottom:28px}
.collection-head h1 {font-size:38px;line-height:1.25;letter-spacing:-.05em;margin:10px 0 14px}
.collection-head span {font-size:15px;color:var(--muted)}
.collection-tools {gap:20px;margin-bottom:26px;align-items:center}
.filter-pills button {font-size:13px;padding:9px 14px;min-height:40px}
.search-field {min-height:44px;width:290px;font-size:13px;background:rgba(255,255,255,.64)}
.case-toolbar {gap:20px;align-items:center}
#case-categories {display:flex;gap:8px;flex-wrap:wrap}
#case-categories button {font-size:13px;min-height:40px;padding:8px 14px}
#case-search {font:inherit;font-size:14px;min-height:44px}
.case-collection-tabs button {font-size:16px}
.case-result-count {font-size:13px;color:#607a96}
.real-case-card {box-shadow:none;background:rgba(255,255,255,.8);border-color:rgba(220,231,241,.65);border-radius:18px;text-align:left}
.real-case-info {padding:23px}
.real-case-info h2 {font-size:21px;line-height:1.5}
.real-case-info small,.real-case-info p,.case-view-link {font-size:13px}
.workspace-heading {display:flex;justify-content:space-between;align-items:center;gap:24px;margin:34px 12px 28px}
.workspace-heading h1 {font-size:34px;letter-spacing:-.045em;line-height:1.3;margin:8px 0 12px}
.workspace-heading p:not(.eyebrow) {font-size:15px;color:var(--muted);margin:0}
.workbench-tools {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.workbench-tools>button {display:grid;gap:6px;text-align:left;padding:19px 24px;min-height:94px;border:1px solid rgba(255,255,255,.92);border-radius:17px;background:rgba(255,255,255,.47);color:var(--ink);box-shadow:0 4px 18px rgba(70,113,160,.04)}
.workbench-tools>button strong {font-size:17px;font-weight:600}
.workbench-tools>button span {font-size:13px;color:var(--muted);line-height:1.6}
.workbench-tools>button[aria-selected=true] {border-color:#8fb9ed;background:rgba(239,247,255,.88);box-shadow:inset 0 0 0 1px rgba(143,185,237,.15)}
.workbench-tools>button[aria-selected=true] strong {color:var(--blue)}
.tool-panel {overflow:hidden;border:1px solid var(--edge);border-radius:23px}
.tool-context {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 26px;border-bottom:1px solid rgba(183,204,225,.35);background:rgba(255,255,255,.32)}
.tool-context>div {display:flex;align-items:center;gap:16px;min-width:0;flex-wrap:wrap}
.context-label {font-size:12px;color:var(--muted)}
#workspace-project-name {font-size:14px;max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tool-context .text-button {font-size:12px;min-height:30px;flex:none}
.tool-stage {position:relative;background:rgba(246,250,253,.45)}
.tool-welcome {display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:48px;align-items:center;padding:45px 48px;min-height:400px}
.tool-welcome>img {display:block;width:100%;height:290px;object-fit:contain;border-radius:18px;background:rgba(234,241,248,.42)}
.tool-welcome h2 {font-size:28px;line-height:1.5;letter-spacing:-.035em;margin:12px 0}
#tool-description {font-size:15px;line-height:1.9;color:var(--muted);margin-bottom:25px;max-width:480px}
.tool-caption {font-size:12px;color:#6e8199;line-height:1.9;margin:18px 0 0;max-width:510px}
.tool-storage-note {font-size:12px;line-height:1.8;margin:0;padding:16px 26px;border-top:1px solid rgba(183,204,225,.35);color:#607a96;background:rgba(255,255,255,.22)}
.tool-loading {position:absolute;z-index:1;left:0;right:0;top:0;padding:12px 24px;background:#edf5ff;color:#466b93;font-size:13px}
#tool-frame-container iframe {width:100%;height:760px;min-height:60vh;border:0;display:block;background:#f4f8fc}
#tool-frame-container iframe[hidden],[hidden] {display:none!important}
.workspace-project-list {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.design-project {background:rgba(255,255,255,.8);border:1px solid rgba(255,255,255,.9);border-radius:19px;overflow:hidden;min-width:0}
.design-project-image {position:relative;background:rgba(232,240,248,.8)}
.design-project-image img {width:100%;height:180px;object-fit:cover;display:block}
.design-project-image span {position:absolute;bottom:10px;left:12px;border-radius:7px;padding:4px 7px;background:rgba(255,255,255,.9);font-size:10px;color:#60748d}
.design-project-content {padding:24px}
.design-project-content h2 {font-size:21px;line-height:1.5;margin:8px 0;overflow-wrap:anywhere}
.design-project-content .eyebrow {font-size:11px;letter-spacing:.03em}
.project-notes {font-size:14px;color:var(--muted);line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;max-height:100px;overflow:auto}
.design-project-content>small {font-size:12px;color:#7890aa}
.design-project-actions {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}
.design-project-actions .primary,.design-project-actions .secondary-button {min-height:42px;font-size:13px;padding:10px 16px}
.workspace-empty {grid-column:1/-1;min-height:380px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:35px 20px;border:1px dashed rgba(151,177,204,.6);border-radius:19px;background:rgba(255,255,255,.24)}
.workspace-empty>img {width:100px;height:86px;object-fit:contain;opacity:.7;border-radius:10px;margin-bottom:15px}
.workspace-empty h2 {font-size:23px;margin:7px 0 12px}
.workspace-empty p {font-size:14px;line-height:1.9;max-width:480px;color:var(--muted);margin:0 0 22px}
.workspace-feedback {grid-column:1/-1;padding:32px;background:rgba(255,255,255,.6);border-radius:16px;color:var(--muted);font-size:15px}
.legacy-projects {margin-top:32px;border-top:1px solid rgba(151,177,204,.35);padding-top:20px;color:var(--muted);font-size:13px}
.legacy-projects summary {cursor:pointer;padding:8px 0}
.workspace-dialog {width:min(560px,calc(100% - 32px));max-height:90vh;padding:32px;border:1px solid #fff;border-radius:24px;background:rgba(248,252,255,.97);color:var(--ink);box-shadow:0 30px 90px rgba(21,50,86,.25);overflow:auto}
.workspace-dialog::backdrop {background:rgba(22,44,75,.28);backdrop-filter:blur(8px)}
.workspace-dialog form {display:grid;gap:19px}
.workspace-dialog-heading {display:flex;align-items:start;justify-content:space-between;gap:16px}
.workspace-dialog h2 {font-size:24px;line-height:1.4;margin:5px 0 0}
.workspace-dialog .detail-note {margin:0;font-size:13px;line-height:1.8}
.workspace-dialog label {display:grid;gap:8px;font-size:14px;font-weight:500}
.workspace-dialog input,.workspace-dialog textarea,.workspace-dialog select {width:100%;min-width:0;border:1px solid #cbdceb;border-radius:10px;background:rgba(255,255,255,.85);padding:12px;color:var(--ink);font:14px/1.7 var(--sans)}
.workspace-dialog .field-grid {display:grid;grid-template-columns:1fr 1fr;gap:16px}
.workspace-dialog .inline-error {padding:12px;font-size:13px}
@media(max-width:1250px) {
  .brand {min-width:170px}.brand em{display:none}.topbar{gap:14px;padding:0 20px}.marketing-nav{gap:1px}.marketing-nav button{padding:10px 11px;font-size:13px}.account{gap:12px}.top-cta{font-size:13px}
  .workspace-project-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:980px) {
  .topbar{height:auto;min-height:76px;flex-wrap:wrap;padding:16px 20px;gap:12px}
  .marketing-nav{order:3;width:100%;display:flex;margin:0;justify-content:flex-start;overflow-x:auto;padding-top:6px;border-top:1px solid rgba(177,198,219,.3)}
  .tool-welcome{gap:28px;padding:30px}.tool-welcome h2{font-size:25px}.tool-welcome>img{height:240px}
  .workbench-tools>button{padding:16px}.workbench-tools>button strong{font-size:15px}.workbench-tools>button span{font-size:12px}
  .capability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px) {
  .shell{width:calc(100% - 24px);margin:12px auto 30px}.topbar{position:relative;top:0;border-radius:18px;padding:14px}.brand{min-width:0;font-size:19px}.brand img{width:34px;height:34px}.account{gap:10px}.quiet-button{font-size:12px;max-width:65px}.top-cta{padding:9px 12px;font-size:12px;min-height:40px}
  .marketing-nav button{font-size:13px;padding:10px 13px}.hero{padding:28px 23px;grid-template-columns:1fr;gap:30px}.hero h1{font-size:38px}.hero-summary{font-size:15px}.hero-actions{gap:10px}.hero-actions button{font-size:13px;padding:12px 15px}.hero-meta{font-size:11px}.hero-showcase{min-height:230px}.showcase-float{right:8px}
  .section-heading{align-items:flex-start;flex-direction:column;gap:12px}.section-heading h2{font-size:28px}.capability-grid{gap:12px}.capability-card{padding:16px}.capability-card h3{font-size:16px}.capability-card p{font-size:12px}
  .workspace-heading{margin:24px 5px 20px;align-items:flex-start;gap:12px}.workspace-heading h1{font-size:27px}.workspace-heading p:not(.eyebrow){font-size:13px}.workspace-heading .secondary-button{font-size:12px;padding:10px 13px;flex:none}
  .workbench-tools{gap:7px;margin-bottom:12px}.workbench-tools>button{padding:13px 9px;min-height:76px;border-radius:12px}.workbench-tools>button strong{font-size:13px;line-height:1.65}.workbench-tools>button span{display:none}
  .tool-panel{border-radius:17px}.tool-context{padding:13px 15px;flex-wrap:wrap;gap:4px}.tool-context>div{gap:9px}.tool-context .text-button{font-size:11px}.context-label{font-size:11px}#workspace-project-name{max-width:200px;font-size:13px}.tool-welcome{grid-template-columns:1fr;padding:22px;gap:16px;min-height:0}.tool-welcome>img{height:200px}.tool-welcome h2{font-size:24px}#tool-description{font-size:14px;line-height:1.85}.tool-storage-note{font-size:11px;padding:14px 17px}#tool-frame-container iframe{height:800px}
  .collection-page{padding:24px 20px;min-height:600px}.collection-head{align-items:flex-start;gap:14px}.collection-head h1{font-size:31px}.collection-head span{font-size:13px}.collection-head .primary{font-size:12px;padding:11px 14px;min-height:42px;flex:none}.collection-tools{flex-direction:column;align-items:stretch;gap:16px}.search-field{width:100%}.workspace-project-list{grid-template-columns:1fr}.design-project-image img{height:190px}.workspace-empty{min-height:350px;padding:28px 15px}.workspace-empty h2{font-size:21px}
  .workspace-dialog{padding:23px}.workspace-dialog h2{font-size:21px}.workspace-dialog .field-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce) {*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Keep project actions readable when deletion adds another control. */
.design-project-actions{flex-wrap:wrap}
.design-project-actions [data-workspace-delete]{color:#a74b4b}

