/* App frame and responsive product header. */
.app-shell { display: flex; min-height: 100vh; }
.main-shell { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 100vh; }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; min-width: 0; padding: 5px 8px 5px 0; border-radius: 10px; transition: opacity .16s ease; }
.brand:hover { opacity: .88; }
.brand:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.brand-mark { position: relative; display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #4a465f; border-radius: 10px; background: linear-gradient(145deg, #272531, #17171d); }
.brand-mark span { position: absolute; width: 14px; height: 4px; border-radius: 5px; background: var(--accent); transform: skewX(-25deg); }
.brand-mark span:nth-child(1) { top: 8px; left: 8px; width: 16px; }
.brand-mark span:nth-child(2) { top: 14px; left: 8px; width: 12px; opacity: .78; }
.brand-mark span:nth-child(3) { top: 20px; left: 8px; width: 8px; opacity: .56; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.brand-kicker { color: #9b9eaa; font-size: 8px; font-weight: 760; letter-spacing: .19em; line-height: 1.4; }
.brand-name { color: #f1f1f4; font-size: 14px; font-weight: 680; letter-spacing: -.025em; white-space: nowrap; }
.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; height: var(--topbar-height); min-height: var(--topbar-height); padding: 0 clamp(16px, 2.2vw, 34px); border-bottom: 1px solid #292b34; background: rgba(16,17,20,.96); backdrop-filter: blur(16px); }
.workspace-nav { display: flex; align-items: center; justify-self: center; gap: 4px; padding: 4px; border: 1px solid #2e303a; border-radius: 12px; background: #14151a; }
.workspace-tab { display: inline-flex; min-width: 92px; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #9ba0ac; font-size: 12px; font-weight: 630; white-space: nowrap; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.workspace-tab .icon { width: 15px; height: 15px; color: #777e8b; }
.workspace-tab:hover { color: #e4e4ec; background: #1b1d25; }
.workspace-tab.is-active { border-color: #46405f; background: linear-gradient(180deg, #2a273d, #211f30); color: #e8e5ff; box-shadow: inset 0 1px rgba(255,255,255,.035), 0 2px 8px rgba(0,0,0,.15); }
.workspace-tab.is-active .icon { color: #b6afff; }
.topbar-actions { display: flex; align-items: center; justify-self: end; gap: 14px; min-width: 0; }
.local-indicator { display: inline-flex; align-items: center; gap: 8px; color: #9ba1ab; font-size: 11px; white-space: nowrap; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(137,203,179,.09); }
.status-dot-muted { background: #656b77; box-shadow: none; }
.main-content { width: 100%; max-width: none; min-height: calc(100vh - var(--topbar-height)); margin: 0 auto; padding: clamp(16px, 1.7vw, 26px) clamp(16px, 2.1vw, 36px) 30px; }
.view { display: none; min-width: 0; }
.view.is-visible { display: block; animation: view-appear .18s ease-out; }
@keyframes view-appear { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #aaa5e3; font-size: 9px; font-weight: 760; letter-spacing: .19em; }
.eyebrow-line { width: 19px; height: 1px; flex: 0 0 auto; background: var(--accent); }
.eyebrow-line-amber { background: var(--warm); }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.view-heading h1 { margin: 8px 0 6px; font-size: clamp(25px, 2.1vw, 30px); font-weight: 650; letter-spacing: -.045em; line-height: 1.16; }
.view-heading p { margin: 0; color: #9ba1ac; font-size: 12px; line-height: 1.6; }
.workspace-actions { display: flex; align-items: center; gap: 8px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding: 0 2px; color: #737986; font-size: 10px; letter-spacing: .035em; }
.page-footer > span:first-child { font-size: 8px; font-weight: 740; letter-spacing: .14em; }
.footer-dot { padding: 0 5px; color: #414550; }
.workspace-footer { margin-top: 16px; }
@media (max-width: 1180px) {
  .topbar { gap: 12px; }
  .local-indicator { font-size: 10px; }
  .topbar-actions { gap: 10px; }
  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 28px; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-content { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 900px) {
  .topbar { grid-template-columns: auto 1fr auto; }
  .brand { gap: 8px; }
  .local-indicator { display: none; }
  .home-hero { grid-template-columns: minmax(0, 1fr); padding-top: 10px; }
  .home-hero-copy { max-width: 720px; }
  .home-hero-art { max-width: 720px; width: 100%; margin: 0 auto; }
  .home-bottom-grid { grid-template-columns: minmax(0,1fr); }
  .workspace-frame { height: auto; min-height: 680px; }
  .resize-workspace { height: auto; min-height: 680px; }
}
@media (max-width: 680px) {
  :root { --topbar-height: 60px; }
  .topbar { grid-template-columns: auto auto auto; justify-content: space-between; gap: 6px; padding: 0 10px; }
  .brand { gap: 7px; }
  .brand-mark { width: 29px; height: 29px; border-radius: 8px; }
  .brand-mark span:nth-child(1) { top: 6px; left: 6px; width: 15px; }
  .brand-mark span:nth-child(2) { top: 12px; left: 6px; width: 11px; }
  .brand-mark span:nth-child(3) { top: 18px; left: 6px; width: 7px; }
  .brand-kicker { display: none; }
  .brand-name { font-size: 12px; letter-spacing: -.035em; }
  .workspace-nav { gap: 1px; padding: 3px; border-radius: 10px; }
  .workspace-tab { min-width: 0; min-height: 34px; gap: 5px; padding: 0 8px; border-radius: 7px; font-size: 11px; }
  .workspace-tab .icon { width: 14px; height: 14px; }
  .topbar-actions { gap: 0; }
  #global-open-button { min-width: 34px; min-height: 34px; gap: 0; padding: 0 9px; }
  .main-content { padding: 16px 12px 24px; }
  .view-home { padding-top: 8px; }
  .home-hero h1 { font-size: clamp(36px, 9vw, 46px); }
  .home-hero-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .tool-grid { grid-template-columns: minmax(0,1fr); gap: 12px; margin-top: 22px; }
  .home-hero-actions .button { width: 100%; }
  .hero-art-layout { grid-template-columns: 25px minmax(0,1fr) 74px; min-height: 205px; gap: 5px; }
  .hero-art-image { min-height: 160px; }
  .home-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .home-section-heading > p { text-align: left; }
  .capability-grid { grid-template-columns: minmax(0,1fr); }
  .capability-card { min-height: 150px; }
  .not-found-actions { display: grid; width: 100%; max-width: 320px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 16px; }
  .view-heading h1 { font-size: 25px; }
  .workspace-actions { display: flex; width: 100%; flex-wrap: wrap; }
  .workspace-actions .button { min-width: 0; }
  .workspace-actions .button-primary { margin-left: auto; }
  .workspace-frame { position: relative; min-height: unset; height: auto; flex-wrap: wrap; overflow: visible; }
  .tool-rail { width: 100%; min-width: 100%; flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 1px solid #2a2d35; padding: 7px; }
  .rail-tool { flex: 1; min-height: 54px; gap: 4px; }
  .canvas-column { min-width: 0; width: 100%; min-height: 405px; flex: auto; }
  .canvas-toolbar { min-height: 54px; padding: 0 11px; }
  .canvas-stage-wrap { min-height: 315px; --canvas-inset: 16px; }
  .file-summary-copy strong { max-width: 150px; }
  .inspector-panel { width: 100%; min-width: 0; border-top: 1px solid #2a2d35; border-left: 0; }
  .inspector-heading { min-height: 54px; }
  .inspector-content { max-height: 440px; }
  .inspector-empty { min-height: 180px; }
  .resize-workspace { grid-template-columns: minmax(0,1fr); gap: 12px; min-height: unset; }
  .resize-preview-stage { min-height: 315px; padding: 12px; }
  .panel-topline { min-height: 56px; padding: 0 13px; }
  .resize-preview-footer { flex-wrap: wrap; gap: 7px; font-size: 9px; }
  .resize-settings-panel { min-height: unset; }
  .settings-body { max-height: none; }
  .estimate-box { margin: 12px; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (max-width: 390px) {
  .brand-name { max-width: 76px; overflow: hidden; text-overflow: ellipsis; }
  #global-open-button span { display: none; }
  #global-open-button { width: 34px; padding: 0; justify-content: center; }
  .workspace-tab { padding: 0 6px; }
  .topbar { gap: 4px; padding: 0 8px; }
  .home-hero h1 { font-size: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Product homepage: editorial layout with a calm hierarchy and balanced rhythm. */
.view-home { max-width: 1400px; margin: 0 auto; padding: clamp(12px, 1.5vw, 22px) 0 0; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .94fr); align-items: center; gap: clamp(30px, 4.2vw, 64px); padding: clamp(18px, 2.4vw, 34px) 0 clamp(34px, 3.6vw, 50px); }
.home-hero-copy { max-width: 600px; min-width: 0; }
.home-hero h1 { margin: 20px 0 17px; color: #f1f1f5; font-size: clamp(40px, 4.3vw, 64px); font-weight: 620; letter-spacing: -.065em; line-height: 1.02; }
.home-hero h1 span { color: #aaa5bf; }
.home-hero .home-lede { max-width: 510px; font-size: 14px; line-height: 1.8; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.button-lg { min-height: 43px; padding: 0 16px; font-size: 11px; }
.home-trust-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 21px; color: #878d99; font-size: 9px; }
.home-trust-line .status-dot { width: 5px; height: 5px; }
.trust-separator { color: #4e535e; }
.home-hero-art { min-width: 0; padding: 11px; border: 1px solid #30313c; border-radius: 17px; background: linear-gradient(145deg, #1b1d25, #121318); box-shadow: 0 28px 80px rgba(0,0,0,.24); transform: none; }
.hero-art-topline, .hero-art-footer { display: flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 7px; }
.hero-art-dot { width: 5px; height: 5px; border-radius: 50%; background: #555965; }
.hero-art-dot:first-child { background: #b78c74; }
.hero-art-caption { margin-left: 10px; color: #747a88; font-size: 7px; font-weight: 760; letter-spacing: .15em; }
.hero-art-tag { margin-left: auto; padding: 3px 5px; border: 1px solid #344b48; border-radius: 4px; color: #87b9ab; font-size: 7px; font-weight: 750; letter-spacing: .1em; }
.hero-art-layout { display: grid; grid-template-columns: 29px minmax(0, 1fr) 94px; gap: 8px; min-height: 235px; padding: 8px 0; }
.hero-art-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; border: 1px solid #282b34; border-radius: 7px; background: #15171c; }
.rail-glyph { position: relative; display: block; width: 13px; height: 13px; border: 1px solid #79749c; border-radius: 3px; opacity: .88; }
.glyph-crop { border-right: 0; border-bottom: 0; border-radius: 0; }
.glyph-crop::after { position: absolute; right: -3px; bottom: -3px; width: 8px; height: 8px; border-right: 1px solid #aaa4ff; border-bottom: 1px solid #aaa4ff; content: ""; }
.glyph-adjust { border-radius: 50%; background: radial-gradient(circle at 70% 30%, #e4b990 0 2px, transparent 2.5px); }
.glyph-filter { background: linear-gradient(140deg, transparent 0 35%, #a7a1ed 37% 44%, transparent 46%); }
.glyph-export { border-color: #82ad9f; }
.hero-art-stage { display: flex; min-width: 0; flex-direction: column; gap: 7px; padding: 9px; border: 1px solid #2a2d37; border-radius: 7px; background: #111318; }
.hero-art-image { position: relative; flex: 1; min-height: 185px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); background: linear-gradient(#303747 0%, #8c8d94 43%, #c4a88c 44%, #5e6d68 67%, #2f4240 100%); }
.art-sun { position: absolute; top: 16%; right: 19%; width: 23px; height: 23px; border-radius: 50%; background: #dfbf91; box-shadow: 0 0 32px rgba(230,192,144,.2); }
.art-horizon { position: absolute; right: 0; bottom: 38%; left: 0; height: 1px; background: rgba(238,215,174,.7); }
.art-slope { position: absolute; right: -8%; bottom: -1px; left: -8%; height: 58%; clip-path: polygon(0 70%, 23% 42%, 43% 62%, 68% 15%, 100% 53%, 100% 100%, 0 100%); }
.art-slope-back { background: linear-gradient(130deg, #8b9589, #4d6460 60%, #314642); }
.art-slope-front { height: 36%; clip-path: polygon(0 65%, 22% 35%, 42% 58%, 70% 22%, 100% 45%, 100% 100%, 0 100%); background: linear-gradient(100deg, #2a4542, #1f3332); }
.art-crop-frame { position: absolute; top: 20%; left: 16%; width: 67%; height: 61%; border: 1px solid rgba(243,239,255,.9); box-shadow: 0 0 0 500px rgba(10,11,16,.12); }
.art-crop-frame::before, .art-crop-frame::after { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(243,239,255,.23); content: ""; }
.art-crop-frame::before { left: 33.33%; }.art-crop-frame::after { left: 66.66%; }
.art-crop-frame i { position: absolute; width: 6px; height: 6px; border: 1px solid #fff; background: #a49af8; }
.art-crop-frame i:nth-child(1) { top: -3px; left: -3px; }.art-crop-frame i:nth-child(2) { top: -3px; right: -3px; }.art-crop-frame i:nth-child(3) { right: -3px; bottom: -3px; }.art-crop-frame i:nth-child(4) { bottom: -3px; left: -3px; }
.hero-art-stage-foot { display: flex; justify-content: space-between; color: #6c7280; font-size: 6px; font-weight: 720; letter-spacing: .1em; }
.hero-art-inspector { display: flex; flex-direction: column; gap: 9px; padding: 10px 8px; border: 1px solid #2a2d37; border-radius: 7px; background: #17191f; }
.hero-inspector-title { width: 61%; height: 5px; border-radius: 4px; background: #a8a3c3; }
.hero-line { display: block; width: 58%; height: 3px; border-radius: 4px; background: #40434e; }.hero-line-long { width: 84%; }
.hero-slider { display: block; position: relative; height: 3px; margin-top: 4px; border-radius: 4px; background: #383b46; }.hero-slider i { position: absolute; top: -3px; left: 58%; width: 9px; height: 9px; border: 1px solid #cbc5ff; border-radius: 50%; background: #968ff0; }.hero-slider-short i { left: 31%; }
.hero-swatch-row { display: flex; gap: 4px; margin-top: 4px; }.hero-swatch-row i { width: 12px; height: 12px; border-radius: 3px; background: #655d86; }.hero-swatch-row i:nth-child(2) { background: #be987a; }.hero-swatch-row i:nth-child(3) { background: #536e68; }.hero-swatch-row i:nth-child(4) { background: #84929f; }
.hero-mini-button { height: 19px; margin-top: auto; border: 1px solid #746bb9; border-radius: 4px; background: #8178cc; }
.hero-art-footer { gap: 8px; color: #686f7a; font-size: 6px; font-weight: 760; letter-spacing: .13em; }.hero-art-footer-line { height: 1px; flex: 1; background: #2b2e37; }
.home-section { margin-top: clamp(28px, 4vw, 49px); }
.home-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 17px; }
.section-kicker { display: block; color: #8d88b7; font-size: 8px; font-weight: 770; letter-spacing: .17em; }
.home-section-heading h2, .workflow-card h2, .privacy-card h2 { margin: 8px 0 0; color: #e8e8ee; font-size: clamp(19px, 2vw, 25px); font-weight: 600; letter-spacing: -.04em; line-height: 1.2; }
.home-section-heading > p { max-width: 300px; margin: 0 0 2px; color: #858b97; font-size: 12px; line-height: 1.6; text-align: right; }
.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.capability-card { display: flex; min-height: 190px; min-width: 0; flex-direction: column; padding: 17px; border: 1px solid #2d3039; border-radius: 11px; background: linear-gradient(145deg, #191b21, #14161b); }
.capability-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #433f5e; border-radius: 9px; background: #242231; color: #b1aaff; }.capability-icon-warm { border-color: #514239; background: #28211d; color: #e5b184; }.capability-icon-blue { border-color: #354956; background: #1d252d; color: #9fc8df; }.capability-icon-green { border-color: #354842; background: #1c2624; color: #98c8b7; }
.capability-card h3 { margin: 16px 0 6px; color: #dcdee5; font-size: 13px; font-weight: 640; letter-spacing: -.015em; }
.capability-card p { margin: 0; color: #9197a3; font-size: 11px; line-height: 1.65; }
.capability-foot { margin-top: auto; padding-top: 15px; color: #626977; font-size: 7px; font-weight: 770; letter-spacing: .13em; }
.home-bottom-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; margin-top: clamp(30px, 4vw, 48px); }
.workflow-card, .privacy-card { min-width: 0; padding: clamp(18px, 2.2vw, 28px); border: 1px solid #2c2f38; border-radius: 12px; background: #17191f; }
.workflow-steps { display: grid; gap: 17px; margin-top: 23px; }
.workflow-step { display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 12px; align-items: start; }
.workflow-step > span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #39364d; border-radius: 7px; color: #a8a2ec; font-size: 8px; font-weight: 770; }
.workflow-step strong { color: #dbdde4; font-size: 11px; font-weight: 650; }.workflow-step p { margin: 4px 0 0; color: #9197a3; font-size: 11px; line-height: 1.6; }
.privacy-card { background: linear-gradient(145deg, rgba(52,64,60,.2), #17191f 70%); }.privacy-card-icon { display: grid; width: 39px; height: 39px; place-items: center; margin-bottom: 15px; border: 1px solid #344a44; border-radius: 10px; background: #1d2925; color: #9dceb9; }.privacy-card h2 { margin-top: 8px; }.privacy-card > p { max-width: 430px; margin: 12px 0 19px; color: #a0a6b0; font-size: 12px; line-height: 1.7; }.privacy-card-points { display: grid; gap: 8px; color: #b8c5bf; font-size: 10px; }.privacy-card-points span { display: flex; align-items: center; gap: 8px; }.privacy-card-points .icon { width: 13px; height: 13px; color: #91c3ad; }
.home-footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid #292c34; }
.view-not-found { display: flex; max-width: 650px; min-height: min(68vh, 700px); flex-direction: column; align-items: center; justify-content: center; margin: 0 auto; padding: 35px 16px; text-align: center; }
.not-found-visual { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 28px; color: #444252; font-size: clamp(65px, 9vw, 105px); font-weight: 720; letter-spacing: -.08em; line-height: 1; }
.not-found-center { display: grid; width: clamp(58px, 7vw, 78px); height: clamp(58px, 7vw, 78px); place-items: center; border: 1px solid #48425f; border-radius: 17px; background: radial-gradient(circle at 30% 20%, #302d42, #171820 80%); color: #aaa4f1; box-shadow: 0 20px 60px rgba(0,0,0,.23); }
.view-not-found h1 { max-width: 520px; margin: 16px 0 10px; color: #f0f0f4; font-size: clamp(28px, 3.4vw, 40px); font-weight: 620; letter-spacing: -.055em; line-height: 1.1; }
.view-not-found > p { max-width: 440px; margin: 0; color: #9096a2; font-size: 12px; line-height: 1.8; }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 23px; }
.not-found-code { display: inline-flex; align-items: center; gap: 9px; margin-top: 31px; color: #626875; font-size: 8px; font-weight: 760; letter-spacing: .15em; }.not-found-code i { width: 4px; height: 4px; border-radius: 50%; background: #77718f; }
@media (max-width: 1100px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 25px; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .home-hero { grid-template-columns: minmax(0,1fr); padding-top: 12px; }
  .home-hero-copy { max-width: 720px; }
  .home-hero-art { max-width: 680px; width: 100%; margin: 0 auto; }
  .home-bottom-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 620px) {
  .home-hero h1 { font-size: clamp(35px, 10vw, 46px); }
  .home-hero-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .tool-grid { grid-template-columns: minmax(0,1fr); gap: 12px; margin-top: 22px; }
  .home-hero-actions .button { width: 100%; }
  .hero-art-layout { grid-template-columns: 25px minmax(0,1fr) 74px; min-height: 205px; gap: 5px; }
  .hero-art-image { min-height: 160px; }
  .home-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .home-section-heading > p { text-align: left; }
  .capability-grid { grid-template-columns: minmax(0,1fr); }
  .capability-card { min-height: 160px; }
  .not-found-actions { display: grid; width: 100%; max-width: 320px; }
}
.view.view-not-found.is-visible { display: flex; }
