@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ol { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button { cursor: pointer; }
}

@layer base {
  :root {
    --ink: #15171b;
    --muted: #666b73;
    --faint: #9298a1;
    --line: rgba(26, 29, 35, .11);
    --paper: #f4f5f7;
    --surface: rgba(255,255,255,.72);
    --solid: #fff;
    --accent: #146ef5;
    --accent-soft: rgba(20,110,245,.11);
    --success: #147a50;
    --danger: #b42318;
    --radius: 22px;
    --shadow: 0 28px 90px rgba(60, 69, 82, .16);
    color-scheme: light;
  }
  html { background: var(--paper); }
  body {
    min-width: 320px;
    min-height: 100dvh;
    color: var(--ink);
    background: #f2f1ed;
    font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
    overflow-x: clip;
  }
  body.dialog-open { overflow: hidden; }
  a { color: inherit; text-decoration: none; }
  button, input, select, textarea { color: inherit; }
  :focus-visible { outline: 3px solid rgba(20,110,245,.34); outline-offset: 3px; }
  ::selection { color: white; background: var(--accent); }
}

@layer components {
  .skip-link { position: fixed; z-index: 999; left: 1rem; top: -5rem; padding: .8rem 1rem; color: white; background: var(--ink); border-radius: 12px; transition: top .2s; }
  .skip-link:focus { top: 1rem; }
  .ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .ambient span { position: absolute; width: 34rem; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); opacity: .11; animation: drift 14s ease-in-out infinite alternate; }
  .ambient span:nth-child(1) { background: #79a9ff; top: -17rem; right: -8rem; }
  .ambient span:nth-child(2) { background: #fff; top: 27%; left: -16rem; animation-delay: -6s; }
  .ambient span:nth-child(3) { background: #9bb1d2; bottom: -20rem; right: 20%; animation-delay: -10s; }

  .topbar { position: sticky; top: 0; z-index: 30; height: 72px; display: grid; grid-template-columns: 1fr minmax(280px, 420px) 1fr; align-items: center; gap: 24px; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(242,241,237,.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-size: 17px; font-weight: 680; letter-spacing: -.03em; }
  .brand-mark { position: relative; display: grid; grid-template-columns: repeat(3, 5px); align-items: end; gap: 2px; width: 19px; height: 20px; }
  .brand-mark i { display: block; width: 5px; background: var(--ink); border-radius: 2px 2px 0 0; }
  .brand-mark i:nth-child(1) { height: 10px; }.brand-mark i:nth-child(2) { height: 19px; }.brand-mark i:nth-child(3) { height: 14px; }
  .search-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.64); box-shadow: inset 0 1px rgba(255,255,255,.8); transition: background .18s, border .18s, transform .18s; }
  .search-trigger:hover { background: white; border-color: rgba(26,29,35,.18); }
  kbd { padding: 3px 7px; border: 1px solid var(--line); border-bottom-color: rgba(20,25,34,.2); border-radius: 6px; color: var(--faint); background: #f7f8fa; font: 11px "Cascadia Code", monospace; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
  .top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
  .top-link { display: inline-flex; align-items: center; min-height: 42px; padding: 0 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
  .top-link:hover { color: var(--ink); }
  .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 999px; white-space: nowrap; font-weight: 640; font-size: 14px; transition: transform .16s, box-shadow .2s, background .2s; }
  .button:hover { transform: translateY(-1px); }.button:active { transform: scale(.98); }
  .button-dark { color: white; background: var(--ink); box-shadow: 0 8px 22px rgba(21,23,27,.16); }
  .button-dark:hover { background: #2c3036; box-shadow: 0 12px 28px rgba(21,23,27,.21); }
  .button-quiet { border-color: var(--line); background: rgba(255,255,255,.48); }
  .button-danger { color: var(--danger); border-color: rgba(180,35,24,.18); background: rgba(180,35,24,.05); }
  .button-large { min-height: 50px; padding-inline: 23px; }
  .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: 11px; }

  .hero { display: grid; grid-template-columns: minmax(280px,.62fr) minmax(520px,1.38fr); align-items: end; gap: clamp(32px,5vw,76px); width: min(1500px,calc(100% - 48px)); min-height: calc(100dvh - 72px); margin: auto; padding: clamp(44px,7vh,88px) clamp(0px,2vw,24px) 72px; }
  .overline { margin-bottom: 18px; color: var(--muted); font-family: "Cascadia Code", "SFMono-Regular", monospace; font-size: 10px; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
  .hero-copy { padding-bottom: 34px; }
  .hero h1 { max-width: 570px; font-size: clamp(48px,5.2vw,84px); line-height: .96; letter-spacing: -.068em; font-weight: 590; }
  .word-reveal > span { display: inline-block; margin-bottom: -.15em; padding-bottom: .15em; overflow: hidden; vertical-align: bottom; }
  .word-reveal > span > i { display: inline-block; font-style: normal; animation: word-arrive .82s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(90ms + var(--word) * 80ms); }
  .hero-copy > p { max-width: 430px; margin: 28px 0 34px; color: var(--muted); font-size: clamp(16px,1.2vw,19px); line-height: 1.5; letter-spacing: -.01em; }
  .hero-actions { display: flex; align-items: center; gap: 20px; }
  .hero-actions > a { padding: 10px 0; border-bottom: 1px solid rgba(21,23,27,.3); color: var(--muted); font-size: 13px; font-weight: 620; }
  .hero-actions > a span { margin-left: 8px; transition: margin .2s; }
  .hero-actions > a:hover { color: var(--ink); }.hero-actions > a:hover span { margin-left: 12px; }
  .hero-gallery { position: relative; min-width: 0; }
  .hero-slides { position: relative; min-height: min(68vh,720px); overflow: hidden; background: #d3d0c7; }
  .hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: scale(1.025); transition: opacity .8s ease,transform 1.2s cubic-bezier(.2,.7,.2,1),visibility .8s; }
  .hero-slide.active { opacity: 1; visibility: visible; transform: scale(1); }
  .hero-slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(.96); }
  .hero-slide figcaption { position: absolute; left: 0; bottom: 0; display: flex; gap: 14px; padding: 13px 16px; color: #f7f4ed; background: rgba(20,20,18,.76); font-size: 12px; letter-spacing: .02em; }
  .hero-slide figcaption span { color: rgba(255,255,255,.56); font-family: "Cascadia Code",monospace; font-size: 10px; }
  .gallery-controls { display: grid; grid-template-columns: 1fr auto 42px 42px; align-items: center; gap: 8px; padding-top: 14px; }
  .gallery-progress { height: 1px; overflow: hidden; background: rgba(21,23,27,.14); }
  .gallery-progress i { display: block; width: 100%; height: 100%; background: var(--ink); transform-origin: left; }
  .gallery-count { margin: 0 12px; color: var(--faint); font: 10px "Cascadia Code",monospace; }.gallery-count b { color: var(--ink); font-weight: 500; }
  .gallery-controls button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; font-size: 18px; transition: color .18s,background .18s; }
  .gallery-controls button:hover { color: white; background: var(--ink); }

  .workspace { display: grid; grid-template-columns: 220px 1fr; gap: clamp(40px, 6vw, 92px); width: min(1500px, calc(100% - 48px)); margin: auto; padding: 110px clamp(0px, 2vw, 24px) 130px; border-top: 1px solid var(--line); }
  .category-rail { align-self: start; position: sticky; top: 105px; }
  .category-rail > p { margin-bottom: 14px; color: var(--faint); font-size: 11px; }
  .category-rail nav { display: flex; flex-direction: column; gap: 3px; }
  .category-rail button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; text-align: left; font-size: 14px; transition: color .18s, background .18s; }
  .category-rail button:hover, .category-rail button.active { color: var(--ink); background: rgba(255,255,255,.7); }
  .category-rail button > span:last-child { color: var(--faint); font: 10px "Cascadia Code", monospace; }
  .category-name { display: inline-flex; align-items: center; gap: 9px; color: inherit; font: inherit; }
  .category-name i { width: 7px; height: 7px; border: 1px solid var(--category); border-radius: 50%; background: transparent; transition: background .18s,transform .18s; }
  .category-rail button.active .category-name i, .category-rail button:hover .category-name i { background: var(--category); transform: scale(1.15); }
  .rail-note { margin-top: 40px; padding: 22px 4px 0; border-top: 1px solid var(--line); }
  .rail-note span { font-size: 38px; letter-spacing: -.06em; }.rail-note p { max-width: 150px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
  .library-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 36px; }
  .library-filter-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 650; }
  .library-filter-label::before { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); content: ""; }
  .library-head h2, .continuity h2 { font-size: clamp(34px, 4vw, 60px); line-height: 1; letter-spacing: -.055em; font-weight: 580; }
  .view-controls { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.42); }
  .view-controls button { padding: 7px 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; }.view-controls button.active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(30,40,55,.08); }
  .tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tool-card { position: relative; display: flex; flex-direction: column; min-height: 246px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--category); border-radius: 8px; color: var(--ink); background: rgba(255,255,255,.48); text-align: left; animation: tool-arrive .36s cubic-bezier(.2,.7,.2,1) both; transition: background .2s,border-color .2s,transform .22s; }
  .tool-card:hover { border-color: var(--category); background: rgba(255,255,255,.78); transform: translateY(-2px); }
  .tool-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #d9d5cc; }
  .tool-card-media::after { content: ''; position: absolute; inset: 0; border-top: 1px solid rgba(255,255,255,.72); background: linear-gradient(105deg,transparent 35%,rgba(255,255,255,.28) 49%,transparent 63%); transform: translateX(-115%); transition: transform .7s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
  .tool-card:hover .tool-card-media::after { transform: translateX(115%); }
  .tool-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(.96); transition: transform .5s cubic-bezier(.2,.7,.2,1),filter .3s; }
  .tool-card:hover .tool-card-media img { transform: scale(1.025); filter: saturate(.9) contrast(.98); }
  .tool-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
  .tool-code { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: auto; border: 1px solid color-mix(in srgb,var(--category, var(--ink)) 30%, transparent); border-radius: 11px; color: var(--category,var(--muted)); background: rgba(255,255,255,.58); }
  .tool-code svg { width: 21px; height: 21px; }
  .tool-card h3 { margin-top: 28px; font-size: 20px; font-weight: 620; letter-spacing: -.03em; }.tool-card p { max-width: 30ch; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
  .tool-card .open-label { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; color: var(--faint); font: 10px "Cascadia Code", monospace; text-transform: uppercase; letter-spacing: .08em; }.tool-card .open-label b { font-size: 18px; font-family: inherit; font-weight: 400; transition: transform .2s; }.tool-card:hover .open-label b { transform: translateX(4px); color: var(--accent); }
  .tool-grid.list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }.tool-grid.list .tool-card { display: block; min-height: 92px; border: 0; border-left: 3px solid transparent; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }.tool-grid.list .tool-card:hover { border-left-color: var(--category); background: rgba(255,255,255,.6); transform: none; }.tool-grid.list .tool-card-media { display: none; }.tool-grid.list .tool-card-body { display: grid; grid-template-columns: 48px minmax(180px,.7fr) 1fr 130px; align-items: center; min-height: 92px; padding: 17px 10px; transition: padding .2s; }.tool-grid.list .tool-card:hover .tool-card-body { padding-left: 16px; }.tool-grid.list .tool-code { margin: 0; }.tool-grid.list h3, .tool-grid.list p, .tool-grid.list .open-label { margin: 0; }.tool-grid.list .open-label { justify-content: flex-end; gap: 12px; }
  .empty-state { padding: 80px 20px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }.empty-state span { display: block; color: var(--faint); font-size: 54px; }.empty-state h3 { margin: 12px 0 8px; font-size: 22px; }.empty-state p { margin-bottom: 22px; color: var(--muted); }

  .resource-hub { width: min(1400px,calc(100% - 48px)); margin: 0 auto 108px; padding: 92px clamp(0px,2vw,24px) 0; border-top: 1px solid var(--line); }
  .resource-hub-head { display: grid; grid-template-columns: 1fr minmax(280px,430px); align-items: end; gap: 40px; margin-bottom: 42px; }
  .resource-hub-head h2 { font-size: clamp(42px,5vw,72px); line-height: .92; letter-spacing: -.055em; font-weight: 580; }
  .resource-hub-head > p { color: var(--muted); font-size: 15px; line-height: 1.6; }
  .resource-hub-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 14px; }
  .resource-hub-card { grid-column: span 4; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.5); animation: application-arrive .42s cubic-bezier(.2,.7,.2,1) both; transition: border-color .2s,transform .22s,background .2s; }
  .resource-hub-card:hover { border-color: rgba(21,23,27,.55); background: white; transform: translateY(-3px); }
  .resource-hub-card:first-child { grid-column: span 8; }
  .resource-hub-media { display: block; aspect-ratio: 16/8; overflow: hidden; background: #d7d9dd; }
  .resource-hub-media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(.97); transition: transform .5s cubic-bezier(.2,.7,.2,1),filter .3s; }
  .resource-hub-card:hover .resource-hub-media img { transform: scale(1.03); filter: saturate(.94) contrast(1); }
  .resource-hub-body { display: flex; flex: 1; flex-direction: column; padding: 17px 18px 16px; }
  .resource-hub-body small { color: var(--faint); font: 10px "Cascadia Code",monospace; letter-spacing: .08em; text-transform: uppercase; }
  .resource-hub-body strong { margin-top: 8px; font-size: 19px; letter-spacing: -.025em; }
  .resource-hub-body p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
  .resource-hub-body > span { display: flex; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
  .resource-hub-body b { font-size: 16px; font-weight: 400; transition: transform .2s; }.resource-hub-card:hover .resource-hub-body b { transform: translate(2px,-2px); }

  .applications { width: min(1400px,calc(100% - 48px)); margin: 0 auto 120px; padding: 105px clamp(0px,2vw,24px) 0; border-top: 1px solid var(--line); }
  .applications-head { display: grid; grid-template-columns: 1fr minmax(280px,430px); align-items: end; gap: 40px; }
  .applications-head .overline { margin-bottom: 10px; }
  .applications-head h2 { font-size: clamp(42px,5vw,72px); line-height: .92; letter-spacing: -.06em; font-weight: 580; }
  .applications-head > p { color: var(--muted); font-size: 15px; line-height: 1.6; }
  .application-filters { display: flex; gap: 4px; margin: 48px 0 18px; padding-bottom: 12px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .application-filters button { display: inline-flex; align-items: baseline; gap: 9px; padding: 9px 12px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; white-space: nowrap; font-size: 13px; }
  .application-filters button:hover, .application-filters button.active { color: var(--ink); border-bottom-color: var(--ink); }
  .application-filters button span { color: var(--faint); font: 9px "Cascadia Code",monospace; }
  .application-controls { display: grid; grid-template-columns: minmax(320px,1fr) auto; align-items: center; gap: 18px; margin-bottom: 38px; }
  .application-search { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; min-height: 54px; padding: 0 16px; border: 1px solid var(--line); background: rgba(255,255,255,.48); transition: border-color .2s,background .2s; }
  .application-search:focus-within { border-color: rgba(21,23,27,.62); background: rgba(255,255,255,.76); }
  .application-search svg { width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 1.5; }
  .application-search input { min-width: 0; padding: 12px 8px; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 14px; }
  .application-search input::placeholder { color: var(--faint); }
  .application-search > span { color: var(--faint); font: 9px "Cascadia Code",monospace; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
  .application-costs { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); background: rgba(255,255,255,.38); }
  .application-costs button { min-height: 44px; padding: 0 14px; border: 0; color: var(--muted); background: transparent; font-size: 12px; }
  .application-costs button:hover { color: var(--ink); }.application-costs button.active { color: var(--ink); background: white; box-shadow: 0 2px 10px rgba(25,30,38,.07); }
  .application-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 58px 24px; view-transition-name: application-catalog; }
  .application-card { grid-column: span 6; min-width: 0; border-top: 1px solid rgba(21,23,27,.42); animation: application-arrive .48s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--app-index) * 34ms); transition: transform .28s cubic-bezier(.2,.7,.2,1); }
  .application-card:hover { transform: translateY(-4px); }
  .application-preview { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; margin-top: 9px; background: #d7d5cf; }
  .application-preview > img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(.96); transition: transform .65s cubic-bezier(.2,.7,.2,1),filter .3s; }
  .application-card:hover .application-preview > img { transform: scale(1.025); filter: saturate(.94) contrast(1); }
  .application-stage { position: absolute; left: 12px; top: 12px; padding: 7px 9px; color: white; background: rgba(17,19,23,.78); backdrop-filter: blur(8px); font: 9px "Cascadia Code",monospace; letter-spacing: .08em; text-transform: uppercase; }
  .application-body { display: flex; flex-direction: column; min-height: 350px; padding: 20px 2px 0; }
  .application-title { display: flex; align-items: center; gap: 14px; }
  .application-logo { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 8px; overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.65); }
  .application-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .application-card[href*="twinmotion"] .application-logo img { filter: invert(1); }
  .application-title small { display: block; margin-bottom: 3px; color: var(--faint); font: 9px "Cascadia Code",monospace; letter-spacing: .1em; text-transform: uppercase; }
  .application-title strong { display: block; font-size: 22px; letter-spacing: -.035em; }
  .application-description { max-width: 55ch; margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
  .application-alternative { width: max-content; max-width: 100%; margin-top: 16px; padding: 7px 9px; border-left: 2px solid #48715f; color: #365a4b; background: rgba(72,113,95,.08); font-size: 11px; }
  .application-commerce { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: auto; padding-top: 30px; }
  .application-type { padding: 6px 8px; border: 1px solid var(--line); color: var(--faint); font: 9px "Cascadia Code",monospace; letter-spacing: .06em; text-transform: uppercase; }
  .application-price { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
  .application-price strong { font-size: 14px; font-weight: 650; letter-spacing: -.015em; }.application-price small { color: var(--faint); font-size: 10px; }
  .application-student-badge { display: inline-flex; align-items: center; margin-top: 5px; padding: 4px 6px; border: 1px solid rgba(53,97,79,.24); color: #35614f; background: rgba(53,97,79,.08); font: 9px "Cascadia Code",monospace; letter-spacing: .04em; text-transform: uppercase; }
  .application-price[data-tier="free"] strong { color: #35614f; }.application-price[data-tier="freemium"] strong { color: #765d20; }.application-price[data-tier="paid"] strong { color: var(--ink); }
  .application-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; padding: 15px 0 14px; color: var(--faint); font-size: 11px; }
  .application-link { display: flex; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); font: 10px "Cascadia Code",monospace; letter-spacing: .08em; text-transform: uppercase; }
  .application-link b { font-size: 16px; font-weight: 400; transition: transform .2s; }.application-card:hover .application-link b { transform: translate(2px,-2px); }
  .application-card.featured { grid-column: span 12; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(310px,.5fr); min-height: 500px; overflow: hidden; border-top: 0; color: white; background: var(--ink); }
  .application-card.featured .application-preview { min-height: 500px; margin: 0; }
  .application-card.featured .application-body { padding: 42px 34px 28px; }
  .application-card.featured .application-logo { background: white; }
  .application-card.featured .application-title small, .application-card.featured .application-description, .application-card.featured .application-meta, .application-card.featured .application-price small { color: #aeb3ba; }
  .application-card.featured .application-type { border-color: rgba(255,255,255,.18); color: #aeb3ba; }.application-card.featured .application-price strong { color: white; }
  .application-card.featured .application-link { border-top-color: rgba(255,255,255,.18); }
  .application-empty { margin-top: 8px; padding: 68px 24px; border-top: 1px solid var(--line); text-align: center; }.application-empty span { font-size: 24px; letter-spacing: -.04em; }.application-empty p { margin-top: 8px; color: var(--muted); font-size: 13px; }
  .application-source-note { max-width: 760px; margin-top: 52px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; line-height: 1.6; }

  .community-roadmap { width: min(1400px,calc(100% - 48px)); margin: 0 auto 120px; padding: 100px clamp(0px,2vw,24px) 0; border-top: 1px solid var(--line); }
  .community-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
  .community-columns > section { min-width: 0; }
  .community-columns .resource-directory { grid-template-columns: 1fr; }
  .community-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
  .community-subhead h3 { font-size: 23px; letter-spacing: -.04em; }
  .community-subhead span { color: var(--faint); font-size: 12px; }
  .planned-row { cursor: default; opacity: 1; border-style: solid; }
  .community-columns .planned-row { border-right: 0; }
  .planned-row:hover { background: rgba(255,255,255,.42); }
  .planned-row .resource-arrow { display: none; }
  .planned-status { align-self: start; padding: 4px 0; border: 0; color: var(--faint); font: 9px "Cascadia Code",monospace; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
  .legal { width: min(1400px,calc(100% - 48px)); margin: 0 auto 120px; padding: 100px clamp(0px,2vw,24px) 0; border-top: 1px solid var(--line); }
  .legal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-top: 48px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
  .legal-grid article { min-height: 260px; padding: 26px; background: rgba(255,255,255,.66); }
  .legal-grid h3 { font-size: 20px; letter-spacing: -.035em; }
  .legal-grid p { margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.6; }
  .legal-grid a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(21,23,27,.28); text-underline-offset: 3px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }
  .footer-links a { color: var(--muted); font-size: 11px; text-decoration: none; }
  .footer-links a:hover { color: var(--ink); }

  .extensions { width: min(1400px,calc(100% - 48px)); margin: 0 auto 120px; padding: 100px clamp(0px,2vw,24px) 0; border-top: 1px solid var(--line); }
  .extensions-head { display: grid; grid-template-columns: 1fr minmax(280px,430px); align-items: end; gap: 40px; }
  .extensions-head .overline { margin-bottom: 10px; }.extensions-head h2 { font-size: clamp(42px,5vw,72px); line-height: .92; letter-spacing: -.06em; font-weight: 580; }
  .extensions-head > p { color: var(--muted); font-size: 15px; line-height: 1.6; }
  .extension-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 52px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .extension-card { display: flex; min-width: 0; min-height: 330px; flex-direction: column; padding: 24px; border-left: 1px solid var(--line); animation: application-arrive .42s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--extension-index) * 55ms); }
  .extension-card:first-child { border-left: 0; }.extension-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .extension-top span { color: var(--faint); font: 11px "Cascadia Code",monospace; }.extension-top small { padding: 6px 8px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.55); font: 9px "Cascadia Code",monospace; letter-spacing: .05em; text-transform: uppercase; }
  .extension-card h3 { margin-top: 76px; font-size: 24px; letter-spacing: -.04em; }.extension-card > p { margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.55; }
  .extension-output { margin-top: auto; padding-top: 22px; color: var(--faint); font: 9px "Cascadia Code",monospace; letter-spacing: .06em; text-transform: uppercase; }
  .extension-note { max-width: 760px; margin-top: 20px; color: var(--faint); font-size: 11px; line-height: 1.6; }

  .continuity { width: min(1400px, calc(100% - 48px)); margin: 0 auto 100px; padding: 90px clamp(28px,5vw,76px); border-radius: 32px; color: white; background: var(--ink); }
  .continuity > div { max-width: 720px; }.continuity .overline { color: #9fa5ad; }.continuity ol { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 80px; padding: 0; list-style: none; }.continuity li { min-height: 160px; padding: 22px 32px; border-left: 1px solid rgba(255,255,255,.13); }.continuity li:first-child { padding-left: 0; border-left: 0; }.continuity li span { display: block; margin-bottom: 44px; color: #858b93; font: 10px "Cascadia Code", monospace; }.continuity li strong { font-size: 19px; }.continuity li p { max-width: 28ch; margin-top: 10px; color: #aeb3ba; font-size: 13px; line-height: 1.55; }
  footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; width: min(1500px, calc(100% - 48px)); margin: auto; padding: 34px 24px 60px; border-top: 1px solid var(--line); } footer p { max-width: 620px; color: var(--muted); font-size: 12px; text-align: right; }

  dialog { border: 0; padding: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
  dialog::backdrop { background: rgba(24,28,34,.34); backdrop-filter: blur(14px) saturate(80%); -webkit-backdrop-filter: blur(14px) saturate(80%); animation: fade-in .2s both; }
  .icon-button { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.7); font-size: 26px; font-weight: 300; line-height: 1; transition: transform .18s, background .18s; }.icon-button:hover { color: var(--ink); background: white; transform: rotate(4deg); }
  .search-dialog { top: 10vh; left: 50%; width: min(680px, calc(100% - 32px)); border-radius: 24px; background: rgba(250,251,252,.94); box-shadow: var(--shadow); transform: translateX(-50%); }.search-dialog[open] { animation: dialog-in .28s cubic-bezier(.2,.8,.2,1) both; }
  .search-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 18px; border-bottom: 1px solid var(--line); }.search-box label { grid-column: 1 / -1; color: var(--faint); font: 10px "Cascadia Code", monospace; text-transform: uppercase; letter-spacing: .12em; }.search-box input { min-width: 0; padding: 12px 4px; border: 0; outline: 0; background: transparent; font-size: 24px; letter-spacing: -.03em; }
  .search-results { max-height: 420px; overflow: auto; padding: 8px; }.search-result { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; width: 100%; padding: 11px; border: 0; border-radius: 12px; background: transparent; text-align: left; }.search-result:hover, .search-result.selected { background: white; }.search-result .tool-code { margin: 0; border-color: var(--category); }.search-result small { color: var(--faint); }.search-hint { padding: 12px 18px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; }.search-hint kbd { margin: 0 3px; }
  .tool-dialog { inset: 0; width: 100%; height: 100%; }.tool-dialog[open] .tool-sheet { animation: sheet-in .42s cubic-bezier(.2,.8,.2,1) both; }
  .tool-sheet { position: absolute; inset: clamp(10px,2vw,28px); display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid rgba(255,255,255,.72); border-radius: 30px; background: rgba(246,247,249,.94); box-shadow: 0 40px 120px rgba(25,30,40,.25); backdrop-filter: blur(30px) saturate(145%); }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; border-bottom: 1px solid var(--line); }.sheet-title { display: flex; align-items: center; gap: 14px; }.sheet-title > span { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid var(--line); border-radius: 13px; background: white; }.sheet-title > span svg { width: 24px; height: 24px; }.sheet-title p { margin-bottom: 3px; color: var(--faint); font-size: 11px; }.sheet-title h2, .projects-sheet h2, .project-form h2 { font-size: 24px; letter-spacing: -.035em; font-weight: 620; }
  .projects-head-actions { display: flex; align-items: center; gap: 9px; }
  .sheet-body { display: grid; grid-template-columns: minmax(330px, 440px) 1fr; min-height: 0; }
  .tool-form-panel { padding: 28px; overflow: auto; border-right: 1px solid var(--line); }.tool-description { margin-bottom: 28px; color: var(--muted); font-size: 14px; line-height: 1.55; }
  #toolForm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; } #toolForm .full { grid-column: 1 / -1; }
  #toolForm [hidden] { display: none !important; }
  .tool-scenario-area { grid-column: 1 / -1; margin-bottom: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .scenario-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }.scenario-heading span { display: block; color: var(--ink); font-size: 12px; font-weight: 680; }.scenario-heading p { margin-top: 3px; color: var(--faint); font-size: 10px; }
  .scenario-utilities { display: flex; gap: 5px; }.scenario-utilities button { padding: 5px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 10px; }.scenario-utilities button:hover { color: var(--ink); border-bottom-color: var(--ink); }
  .scenario-list { display: flex; gap: 6px; padding: 2px 1px 4px; overflow-x: auto; scrollbar-width: thin; }
  .scenario-chip { flex: 0 0 auto; min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.58); font-size: 10px; white-space: nowrap; transition: color .16s,border-color .16s,background .16s; }.scenario-chip:hover,.scenario-chip.active { color: white; border-color: var(--ink); background: var(--ink); }
  .personal-scenario { display: inline-flex; flex: 0 0 auto; align-items: stretch; }.personal-scenario .scenario-chip { border-radius: 999px 0 0 999px; }.scenario-delete { width: 29px; border: 1px solid var(--line); border-left: 0; border-radius: 0 999px 999px 0; color: var(--faint); background: rgba(255,255,255,.58); }.scenario-delete:hover { color: var(--danger); background: white; }
  label.field, .project-form label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
  input, select, textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.8); outline: none; transition: border .18s, box-shadow .18s; }
  textarea { resize: vertical; }.field input:focus, .field select:focus, .project-form input:focus, .project-form textarea:focus { border-color: rgba(20,110,245,.46); box-shadow: 0 0 0 4px rgba(20,110,245,.08); }
  .field small { color: var(--faint); font-weight: 400; }
  .form-submit { grid-column: 1 / -1; margin-top: 10px; }
  .result-panel { position: relative; min-width: 0; padding: clamp(30px,5vw,76px); overflow: auto; background: radial-gradient(circle at 75% 16%, rgba(20,110,245,.08), transparent 30%); }
  .result-idle { display: flex; align-items: center; justify-content: center; flex-direction: column; height: 100%; min-height: 400px; color: var(--faint); text-align: center; }.result-idle img { display: block; width: min(520px,100%); margin-bottom: 25px; border: 1px solid var(--line); background: #ebe9e2; box-shadow: 0 16px 45px rgba(32,38,48,.08); }.result-idle strong { color: var(--ink); font-size: 15px; }.result-idle p { max-width: 420px; margin-top: 7px; font-size: 13px; line-height: 1.5; }
  .result-orbit { position: relative; width: 150px; height: 150px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 28px rgba(30,40,55,.025), 0 0 0 56px rgba(30,40,55,.018); }.result-orbit::before, .result-orbit::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--line); transform: translate(-50%,-50%); }.result-orbit::before { width: 1px; height: 100%; }.result-orbit::after { height: 1px; width: 100%; }.result-orbit span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 15px var(--accent); animation: orbit 6s linear infinite; }
  .result-error { max-width: 520px; padding: 20px; border: 1px solid rgba(180,35,24,.16); border-radius: 16px; color: var(--danger); background: rgba(180,35,24,.05); }.result-error strong { display: block; margin-bottom: 6px; }
  .result-content { max-width: 980px; margin: auto; animation: result-in .35s ease-out both; }.result-kicker { color: var(--faint); font: 10px "Cascadia Code", monospace; letter-spacing: .14em; text-transform: uppercase; }.result-content h3 { max-width: 600px; margin: 10px 0 32px; font-size: clamp(32px,4vw,58px); line-height: 1; letter-spacing: -.055em; font-weight: 570; }
  .metric-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }.metric { min-height: 132px; padding: 22px; background: rgba(255,255,255,.78); }.metric span { display: block; margin-bottom: 25px; color: var(--muted); font-size: 11px; }.metric strong { font-size: clamp(28px,3vw,44px); line-height: 1; letter-spacing: -.05em; font-weight: 570; overflow-wrap: anywhere; }.metric small { margin-left: 6px; color: var(--faint); }
  .result-note { margin: 18px 0; padding-left: 15px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 13px; line-height: 1.55; }.result-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
  .visual-canvas { display: block; width: 100%; max-height: 430px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; }
  .palette { display: grid; grid-template-columns: repeat(5,1fr); height: 160px; overflow: hidden; border-radius: 18px; }.swatch { position: relative; display: flex; align-items: end; padding: 12px; color: white; text-shadow: 0 1px 3px rgba(0,0,0,.35); font: 10px "Cascadia Code", monospace; }.contrast-card { margin-top: 14px; padding: 24px; border-radius: 18px; font-size: 20px; }.program-table, .comparison-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.7); border-radius: 16px; overflow: hidden; }.program-table th, .program-table td, .comparison-table th, .comparison-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }.program-table th, .comparison-table th { color: var(--muted); font-weight: 600; }.program-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
  .program-editor { margin-bottom: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.62); }
  .program-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border-bottom: 1px solid var(--line); }
  .program-editor-head span { display: block; font-size: 13px; font-weight: 680; }.program-editor-head p { margin-top: 3px; color: var(--muted); font-size: 11px; }
  .program-editor-head .button { min-height: 36px; padding-inline: 13px; font-size: 12px; }
  .program-table-wrap { overflow-x: auto; }
  .program-sheet { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
  .program-sheet th { padding: 11px 10px; color: white; background: #7c2d32; text-align: left; font-size: 10px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
  .program-sheet th:nth-child(1) { width: 25%; }.program-sheet th:nth-child(2) { width: 10%; }.program-sheet th:nth-child(3) { width: 14%; }.program-sheet th:nth-child(4) { width: 14%; }.program-sheet th:nth-child(5) { width: 31%; }.program-sheet th:nth-child(6) { width: 6%; }
  .program-sheet td { padding: 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.72); }
  .program-sheet tr:last-child td { border-bottom: 0; }
  .program-sheet input { min-height: 46px; padding: 10px; border: 0; border-radius: 0; background: transparent; font-size: 12px; }
  .program-sheet input:focus { position: relative; z-index: 1; box-shadow: inset 0 0 0 2px #7c2d32; background: white; }
  .program-sheet output { display: block; padding: 10px; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .program-sheet td:not(:first-child):not(:nth-child(5)) input { font-variant-numeric: tabular-nums; }
  .program-sheet [data-program-delete] { display: grid; place-items: center; width: 100%; min-height: 46px; border: 0; color: var(--faint); background: transparent; font-size: 18px; }
  .program-sheet [data-program-delete]:hover { color: var(--danger); background: rgba(180,35,24,.06); }
  .strategy-list { display: grid; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); list-style: none; }.strategy-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--line); }.strategy-list li > span { color: var(--faint); font: 10px "Cascadia Code",monospace; }.strategy-list strong { font-size: 13px; }.strategy-list p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }

  .projects-dialog { inset: 0; width: 100%; height: 100%; }.projects-sheet { position: absolute; inset: clamp(10px,4vw,64px); display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 28px; background: rgba(246,247,249,.96); box-shadow: var(--shadow); }.projects-dialog[open] .projects-sheet { animation: dialog-in .32s ease-out both; }
  .project-status { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 9px; color: var(--muted); font-size: 12px; font-weight: 650; }
  .project-status::before { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px rgba(20,110,245,.1); content: ""; }
  .projects-layout { display: grid; grid-template-columns: minmax(250px,360px) 1fr; min-height: 0; }.project-list { padding: 12px; overflow: auto; border-right: 1px solid var(--line); }.project-item { width: 100%; padding: 15px; border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: left; }.project-item:hover, .project-item.active { border-color: var(--line); background: white; }.project-item strong { display: block; margin-bottom: 5px; }.project-item small { color: var(--faint); }.project-detail { padding: clamp(24px,5vw,64px); overflow: auto; }.project-empty { display: grid; place-items: center; align-content: center; height: 100%; min-height: 300px; color: var(--muted); text-align: center; }.project-empty h3 { margin-bottom: 8px; color: var(--ink); font-size: 24px; }.project-detail-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 40px; }.project-detail h3 { font-size: 38px; letter-spacing: -.05em; }.project-meta { margin-top: 9px; color: var(--muted); font-size: 13px; }.calculation-list { display: grid; gap: 8px; }.calculation-row { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.6); }.calculation-row small { color: var(--faint); }.calculation-row b { display: block; margin-bottom: 4px; }.empty-calculations { padding: 40px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
  .project-form-dialog { inset: 50% auto auto 50%; width: min(520px,calc(100% - 32px)); transform: translate(-50%,-50%); }.project-form { display: grid; gap: 18px; padding: 28px; border-radius: 26px; background: rgba(249,250,251,.98); box-shadow: var(--shadow); }.project-form-dialog[open] .project-form { animation: dialog-in .28s both; }.project-form header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 8px; }.project-form .overline { margin-bottom: 5px; }
  .toast { position: fixed; z-index: 100; left: 50%; bottom: 26px; max-width: calc(100% - 32px); padding: 12px 17px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: white; background: rgba(21,23,27,.92); box-shadow: 0 16px 50px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transform: translate(-50%,20px); transition: opacity .2s, transform .2s; font-size: 13px; }.toast.show { opacity: 1; transform: translate(-50%,0); }

  /* Product pass: denser catalogs, readable workbench and a stronger identity. */
  body { background: var(--paper); }
  .topbar { background: rgba(244,245,247,.9); }
  .brand { gap: 10px; font-size: 18px; font-weight: 720; }
  .brand-mark { display: block; width: 34px; height: 34px; padding: 5px; border-radius: 9px; fill: white; background: var(--ink); box-shadow: 0 7px 16px rgba(21,23,27,.17); transition: transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s; }
  .brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); box-shadow: 0 10px 22px rgba(21,23,27,.22); }

  .tool-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
  .tool-card { min-height: 0; border-top-width: 2px; border-radius: 10px; }
  .tool-card-media { aspect-ratio: 16/10; }
  .tool-card-media img { filter: saturate(.88) contrast(.98); }
  .tool-card-body { min-height: 194px; padding: 16px; }
  .tool-card .tool-code { width: 34px; height: 34px; margin: 0; border-radius: 9px; }
  .tool-card .tool-code svg { width: 19px; height: 19px; }
  .tool-card h3 { margin-top: 16px; font-size: 17px; line-height: 1.18; }
  .tool-card p { margin-top: 7px; font-size: 12.5px; line-height: 1.45; }
  .tool-card .open-label { margin-top: auto; padding-top: 16px; font: 600 11px/1.2 "Avenir Next","Segoe UI",sans-serif; letter-spacing: 0; text-transform: none; }
  .catalog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
  .catalog-footer[hidden] { display: none; }
  .catalog-footer > span { color: var(--muted); font-size: 13px; }
  .catalog-footer .button { min-width: 190px; background: rgba(255,255,255,.76); }

  .application-control-group { display: flex; align-items: center; gap: 9px; }
  .application-view-controls { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); background: rgba(255,255,255,.38); }
  .application-view-controls button { min-height: 44px; padding: 0 13px; border: 0; color: var(--muted); background: transparent; font-size: 12px; }
  .application-view-controls button.active { color: var(--ink); background: white; box-shadow: 0 2px 10px rgba(25,30,38,.07); }
  .application-grid.directory { display: block; }
  .application-directory-group { margin-top: 36px; border-top: 1px solid rgba(21,23,27,.42); }
  .application-directory-group:first-child { margin-top: 0; }
  .application-directory-group > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px 11px; }
  .application-directory-group > header h3 { font-size: 21px; letter-spacing: -.035em; }
  .application-directory-group > header span { color: var(--faint); font-size: 12px; }
  .application-directory-row { display: grid; grid-template-columns: 44px minmax(190px,.8fr) minmax(180px,1fr) minmax(170px,.65fr) 22px; align-items: center; gap: 16px; min-height: 76px; padding: 10px 5px; border-top: 1px solid var(--line); transition: padding .2s,background .2s; }
  .application-directory-row:hover { padding-inline: 12px; background: rgba(255,255,255,.66); }
  .application-directory-row .application-logo { width: 42px; height: 42px; flex-basis: 42px; padding: 7px; }
  .application-directory-main strong { display: block; font-size: 15px; }
  .application-directory-main small,.application-directory-platform,.application-directory-price small { display: block; margin-top: 3px; color: var(--faint); font-size: 11px; line-height: 1.35; }
  .application-directory-platform { margin: 0; color: var(--muted); }
  .application-directory-price { text-align: right; }
  .application-directory-price strong { font-size: 13px; }
  .application-directory-price .application-student-badge { display: block; width: max-content; margin: 5px 0 0 auto; }
  .application-directory-row > b { font-size: 17px; font-weight: 400; transition: transform .2s; }
  .application-directory-row:hover > b { transform: translate(2px,-2px); }

  .resource-catalog { width: min(1400px,calc(100% - 48px)); margin: 0 auto 120px; padding: 100px clamp(0px,2vw,24px) 0; border-top: 1px solid var(--line); }
  .resource-catalog-head { display: grid; grid-template-columns: 1fr minmax(280px,430px); align-items: end; gap: 40px; }
  .resource-catalog-head > div > p { margin-bottom: 11px; color: var(--muted); font-size: 13px; }
  .resource-catalog-head h2 { font-size: clamp(42px,5vw,72px); line-height: .92; letter-spacing: -.06em; font-weight: 580; }
  .resource-catalog-head > p { color: var(--muted); font-size: 15px; line-height: 1.6; }
  .resource-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 46px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .resource-toolbar > span { flex: 0 0 auto; color: var(--faint); font-size: 12px; }
  .resource-filters { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .resource-filters button { min-height: 38px; padding: 0 12px; border: 1px solid transparent; color: var(--muted); background: transparent; white-space: nowrap; font-size: 12px; }
  .resource-filters button:hover,.resource-filters button.active { border-color: var(--line); color: var(--ink); background: white; }
  .resource-directory { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(21,23,27,.38); }
  .resource-row { position: relative; display: grid; grid-template-columns: 48px 1fr auto 18px; align-items: start; gap: 16px; min-height: 154px; padding: 20px; border-bottom: 1px solid var(--line); animation: application-arrive .4s cubic-bezier(.2,.7,.2,1) both; transition: background .2s; }
  .resource-row:nth-child(odd) { border-right: 1px solid var(--line); }
  .resource-row:hover { background: rgba(255,255,255,.7); }
  .resource-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 11px; color: white; background: var(--resource-color); font-size: 13px; font-weight: 760; letter-spacing: -.02em; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
  .resource-row:hover .resource-mark { transform: translateY(-3px) rotate(-3deg); }
  .resource-main small { display: block; color: var(--faint); font-size: 11px; }
  .resource-main strong { display: block; margin-top: 5px; font-size: 18px; letter-spacing: -.025em; }
  .resource-main p { max-width: 53ch; margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
  .resource-meta { min-width: 120px; text-align: right; }
  .resource-meta strong { display: block; font-size: 12px; }
  .resource-meta small { display: block; max-width: 150px; margin-top: 4px; color: var(--faint); font-size: 10px; line-height: 1.35; }
  .resource-arrow { font-size: 17px; font-weight: 400; transition: transform .2s; }
  .resource-row:hover .resource-arrow { transform: translate(2px,-2px); }
  .resource-safety-note { max-width: 800px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
  .web-resource-controls { display: grid; gap: 18px; margin: 44px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .web-resource-controls .resource-filters { margin: 0; }
  .web-resource-search { max-width: 620px; }
  .web-catalog .resource-row { min-height: 148px; }
  .web-catalog-footer { margin-top: 0; }

  .tool-sheet { border-radius: 18px; }
  .sheet-body { grid-template-columns: minmax(470px,520px) 1fr; }
  .tool-form-panel { padding: 32px 34px; }
  .tool-description { margin-bottom: 30px; font-size: 15px; line-height: 1.6; }
  .tool-description > p { margin: 0; }
  .tool-guidance { margin-top: 18px; padding: 14px 15px; border: 1px solid rgba(20,110,245,.26); border-radius: 10px; background: rgba(20,110,245,.045); }
  .tool-guidance > strong { display: block; color: var(--ink); font-size: 12px; }
  .tool-guidance > p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
  .tool-guidance > div { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
  .tool-guidance a { color: var(--ink); font-size: 11px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
  #toolForm { gap: 18px 14px; }
  .scenario-heading { align-items: center; }
  .scenario-heading span { font-size: 13px; }
  .scenario-heading p { font-size: 12px; }
  .scenario-utilities button { min-height: 34px; padding: 0 9px; border: 0; border-radius: 7px; font-size: 11px; }
  .scenario-utilities .save-scenario { color: white; background: var(--ink); }
  .scenario-chip { min-height: 38px; padding-inline: 13px; font-size: 12px; }
  .scenario-save-form { margin-top: 12px; padding: 12px; border: 1px solid rgba(20,110,245,.24); border-radius: 10px; background: rgba(20,110,245,.045); }
  .scenario-save-form > label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 650; }
  .scenario-save-form > div { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; }
  .scenario-save-form input { min-height: 40px; padding: 8px 10px; font-size: 13px; }
  .scenario-save-form button { min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; font-size: 11px; }
  .scenario-save-form [data-confirm-save-scenario] { border-color: var(--ink); color: white; background: var(--ink); }
  label.field,.project-form label { gap: 8px; color: #4f5660; font-size: 13px; }
  input,select,textarea { min-height: 52px; padding: 12px 13px; border-radius: 10px; font-size: 15px; }
  .field.custom-dimension { padding: 10px; border: 1px solid rgba(20,110,245,.24); border-radius: 11px; background: rgba(20,110,245,.045); }
  .shape-picker { margin: 0; padding: 0; border: 0; }
  .shape-picker legend { margin-bottom: 9px; color: #4f5660; font-size: 13px; font-weight: 600; }
  .shape-picker > div { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
  .shape-picker label { position: relative; display: grid; place-items: center; min-height: 92px; padding: 10px 5px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.62); cursor: pointer; transition: border .18s,background .18s,transform .18s; }
  .shape-picker label:hover { transform: translateY(-2px); background: white; }
  .shape-picker input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
  .shape-picker label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: white; }
  .shape-picker strong { margin-top: 7px; font-size: 11px; font-weight: 650; }
  .shape-option-icon { display: block; width: 34px; height: 27px; border: 1.5px solid currentColor; color: #59616c; background: rgba(89,97,108,.06); }
  .shape-triangle { width: 0; height: 0; border-width: 0 18px 29px; border-style: solid; border-color: transparent transparent #59616c; background: none; clip-path: polygon(50% 8%,96% 92%,4% 92%); }
  .shape-circle { width: 31px; height: 31px; border-radius: 50%; }
  .shape-trapezoid { clip-path: polygon(22% 0,78% 0,100% 100%,0 100%); }
  .form-visual { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; min-height: 142px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.58); }
  .form-visual-canvas { height: 116px; overflow: hidden; border-radius: 8px; background: #edf0f3; }
  .form-visual svg { width: 100%; height: 100%; }
  .form-visual .shape-fill { fill: rgba(20,110,245,.12); stroke: #315b86; stroke-width: 2; }
  .form-visual .shape-grid { fill: none; stroke: rgba(49,91,134,.22); stroke-width: 1; }
  .form-visual span { display: block; color: var(--faint); font-size: 11px; }
  .form-visual strong { display: block; margin-top: 5px; font-size: 17px; }
  .form-visual small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; }
  .tile-form-sample { position: relative; height: 116px; overflow: hidden; border-radius: 8px; background: #d8d1c8; }
  .tile-form-sample::before { content: ''; position: absolute; inset: -15px; background-image: linear-gradient(90deg,rgba(255,255,255,.92) 2px,transparent 2px),linear-gradient(0deg,rgba(255,255,255,.92) 2px,transparent 2px); background-size: var(--tile-cell-width,44px) var(--tile-cell-height,44px); transform: rotate(-5deg) scale(1.1); }

  .result-idle img { aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
  .result-idle strong { font-size: 18px; }
  .result-idle p { font-size: 14px; }
  .calculation-visual { margin-bottom: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); }
  .area-result-visual { display: grid; place-items: center; min-height: 250px; padding: 18px; }
  .area-result-visual svg { width: min(420px,100%); max-height: 250px; fill: rgba(20,110,245,.12); stroke: #315b86; stroke-width: 2; }
  .area-result-visual .result-axis { fill: none; stroke: rgba(49,91,134,.2); stroke-width: 1; }
  .tile-result-visual { padding: 14px; }
  .tile-result-visual > div { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; overflow: hidden; min-height: 200px; padding: 12px; background: #d7d2cb; }
  .tile-result-visual i { display: block; min-height: 44px; aspect-ratio: var(--tile-ratio); border: 1px solid rgba(65,62,58,.15); background: linear-gradient(135deg,#e4e0da,#c8c1b8); }
  .tile-result-visual p { padding: 11px 3px 2px; color: var(--muted); font-size: 12px; }
  .input-summary { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.55); }
  .input-summary summary { padding: 14px 16px; font-size: 13px; font-weight: 650; cursor: pointer; }
  .input-summary dl { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; margin: 0; padding: 0 16px 14px; }
  .input-summary dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
  .input-summary dt { color: var(--muted); font-size: 12px; }
  .input-summary dd { margin: 0; font-size: 12px; font-weight: 650; text-align: right; }
}

@layer utilities {
  @keyframes drift { to { transform: translate3d(80px,40px,0) scale(1.15); } }
  @keyframes stage-in { from { opacity: 0; transform: perspective(1200px) rotateY(-7deg) rotateX(3deg) translateY(30px); } }
  @keyframes draw-room { from { opacity: 0; transform: scale(.97); } }
  @keyframes scan { 0%,100% { top: 28px; opacity: .2; } 50% { top: calc(100% - 28px); opacity: .85; } }
  @keyframes orbit { from { transform: translate(71px,71px) rotate(0) translateX(71px); } to { transform: translate(71px,71px) rotate(360deg) translateX(71px); } }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(4%) scale(.985); } }
  @keyframes result-in { from { opacity: 0; transform: translateY(8px); } }
  @keyframes gallery-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes word-arrive { from { opacity: 0; transform: translateY(108%); } to { opacity: 1; transform: translateY(0); } }
  @keyframes tool-arrive { from { opacity: 0; transform: translateY(10px); } }
  @keyframes application-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes catalog-out { to { opacity: 0; transform: translateY(-7px); } }
  @keyframes catalog-in { from { opacity: 0; transform: translateY(9px); } }
  @keyframes editorial-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
  ::view-transition-old(application-catalog) { animation: catalog-out .2s ease both; }
  ::view-transition-new(application-catalog) { animation: catalog-in .34s cubic-bezier(.2,.7,.2,1) both; }
  @supports (animation-timeline: view()) {
    .reveal-on-scroll { animation: editorial-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  }

  @media (max-width: 1100px) {
    .topbar { grid-template-columns: 1fr auto; }.search-trigger { display: none; }
    .hero { grid-template-columns: 1fr; padding-top: 80px; }.hero-copy { max-width: 820px; padding-bottom: 0; }.hero-slides { min-height: min(66vw,680px); }
    .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .application-card.featured { grid-template-columns: minmax(0,1.2fr) minmax(290px,.8fr); }
    .sheet-body { grid-template-columns: 430px 1fr; }
    .extension-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.extension-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }.extension-card:nth-child(4) { border-top: 1px solid var(--line); }
  }
  @media (max-width: 780px) {
    .topbar { height: 64px; padding-inline: 16px; }.top-actions #newProjectButton { display: none; }.top-actions .top-link { display: none; }.button { min-height: 40px; padding-inline: 14px; }
    .hero { width: calc(100% - 32px); min-height: auto; padding: 64px 0 80px; }.hero h1 { font-size: clamp(46px,13vw,70px); }.hero-actions { flex-wrap: wrap; }.hero-slides { min-height: 68vw; }.gallery-controls { grid-template-columns: 1fr auto 40px 40px; }
    .workspace { display: block; width: calc(100% - 32px); padding: 78px 0; }.category-rail { position: static; margin-bottom: 36px; }.category-rail > p, .rail-note { display: none; }.category-rail nav { flex-direction: row; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; }.category-rail button { width: auto; white-space: nowrap; border: 1px solid var(--line); background: rgba(255,255,255,.5); }.category-rail button > span:last-child { margin-left: 9px; }
    .library-head { align-items: start; }.view-controls { display: none; }.tool-grid { grid-template-columns: 1fr; }.tool-card { min-height: 205px; }
    .resource-hub { width: calc(100% - 32px); margin-bottom: 78px; padding: 78px 0 0; }.resource-hub-head { display: block; margin-bottom: 32px; }.resource-hub-head > p { max-width: 530px; margin-top: 22px; }.resource-hub-grid { grid-template-columns: 1fr 1fr; }.resource-hub-card,.resource-hub-card:first-child { grid-column: span 1; }.resource-hub-card:first-child { grid-column: span 2; }.resource-hub-body strong { font-size: 17px; }.resource-hub-body p { font-size: 12px; }
    .applications { width: calc(100% - 32px); margin-bottom: 78px; padding: 78px 0 0; }.applications-head { display: block; }.applications-head > p { max-width: 530px; margin-top: 22px; }.application-filters { margin: 38px -16px 18px; padding-inline: 16px; }.application-controls { grid-template-columns: 1fr; gap: 10px; margin-bottom: 30px; }.application-control-group { align-items: stretch; flex-direction: column; }.application-costs,.application-view-controls { overflow-x: auto; }.application-costs button,.application-view-controls button { flex: 1 0 auto; }.application-grid { gap: 52px 0; }.application-card { grid-column: span 12; }.application-card.featured { display: block; min-height: 0; }.application-card.featured .application-preview { min-height: 0; aspect-ratio: 16/10; }.application-card.featured .application-body { min-height: 340px; padding: 26px 20px 22px; }.application-directory-row { grid-template-columns: 42px minmax(0,1fr) minmax(120px,.55fr) 18px; gap: 11px; }.application-directory-platform { display: none; }.application-source-note { margin-top: 42px; }
    .resource-catalog { width: calc(100% - 32px); margin-bottom: 78px; padding: 78px 0 0; }.resource-catalog-head { display: block; }.resource-catalog-head > p { max-width: 530px; margin-top: 22px; }.resource-toolbar { align-items: flex-end; margin-top: 34px; }.resource-filters { margin-left: -16px; padding-left: 16px; }.web-resource-controls { margin-top: 34px; }.web-resource-search { max-width: none; }.resource-directory { grid-template-columns: 1fr; }.resource-row:nth-child(odd) { border-right: 0; }.resource-row { padding-inline: 4px; }
    .community-roadmap,.legal { width: calc(100% - 32px); margin-bottom: 78px; padding: 78px 0 0; }.community-columns,.legal-grid { grid-template-columns: 1fr; margin-top: 38px; }.community-subhead { margin-bottom: 12px; }.planned-row { grid-template-columns: 44px 1fr; }.planned-row .resource-meta,.planned-status { grid-column: 2; text-align: left; }.planned-status { width: max-content; }
    .extensions { width: calc(100% - 32px); margin-bottom: 78px; padding: 78px 0 0; }.extensions-head { display: block; }.extensions-head > p { max-width: 530px; margin-top: 22px; }.extension-grid { grid-template-columns: 1fr; margin-top: 38px; }.extension-card,.extension-card:first-child,.extension-card:nth-child(3),.extension-card:nth-child(4) { min-height: 260px; border-left: 0; border-top: 1px solid var(--line); }.extension-card:first-child { border-top: 0; }.extension-card h3 { margin-top: 44px; }
    .continuity { width: calc(100% - 32px); padding: 60px 26px; border-radius: 25px; }.continuity ol { grid-template-columns: 1fr; margin-top: 50px; }.continuity li, .continuity li:first-child { min-height: auto; padding: 24px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.13); }.continuity li span { margin-bottom: 20px; }
    footer { align-items: flex-start; flex-direction: column; width: calc(100% - 32px); padding-inline: 0; } footer p { text-align: left; }
    .tool-sheet { inset: 0; border: 0; border-radius: 0; }.sheet-head { padding: 14px 16px; }.sheet-body { display: block; overflow: auto; }.tool-form-panel { padding: 22px 16px 30px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }.result-panel { min-height: 500px; padding: 36px 16px 70px; overflow: visible; }.metric-grid { grid-template-columns: 1fr 1fr; }.metric { min-height: 115px; padding: 17px; }.program-editor-head { align-items: flex-start; flex-direction: column; }.program-editor-head .button { width: 100%; }.scenario-heading { align-items: flex-start; flex-direction: column; gap: 10px; }.scenario-utilities { width: 100%; }.scenario-utilities button { flex: 1; }.scenario-list { margin-right: -16px; padding-right: 16px; }
    .projects-sheet { inset: 0; border: 0; border-radius: 0; }.projects-layout { grid-template-columns: 1fr; overflow: auto; }.project-list { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); overflow: auto; }.project-detail { min-height: 450px; overflow: visible; }.project-detail-head { align-items: flex-start; flex-direction: column; }.projects-layout { display: block; }
  }
  @media (max-width: 470px) {
    .brand { font-size: 15px; }.top-actions .button { font-size: 12px; }.hero h1 { font-size: 46px; }.hero-slides { min-height: 86vw; }.gallery-count { display: none; }.gallery-controls { grid-template-columns: 1fr 40px 40px; }.projects-head-actions .button { min-height: 36px; padding-inline: 11px; font-size: 11px; }
    #toolForm { grid-template-columns: 1fr; } #toolForm .full, .form-submit { grid-column: 1; }.shape-picker > div { grid-template-columns: 1fr 1fr; }.form-visual { grid-template-columns: 1fr; }.form-visual-canvas,.tile-form-sample { height: 132px; }.metric-grid,.input-summary dl { grid-template-columns: 1fr; }.palette { height: 240px; grid-template-columns: 1fr; }.swatch { min-height: 48px; }.resource-hub-grid { grid-template-columns: 1fr; }.resource-hub-card,.resource-hub-card:first-child { grid-column: 1; }.scenario-save-form > div { grid-template-columns: 1fr 1fr; }.scenario-save-form input { grid-column: 1 / -1; }.application-directory-row { grid-template-columns: 38px minmax(0,1fr) 18px; }.application-directory-price { display: none; }.resource-row { grid-template-columns: 44px 1fr 18px; padding-block: 17px; }.resource-meta { display: none; }.resource-mark { width: 44px; height: 44px; }.catalog-footer { align-items: stretch; flex-direction: column; }.catalog-footer .button { width: 100%; }.calculation-row { grid-template-columns: 42px 1fr; }.calculation-row > small { grid-column: 2; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .word-reveal > span > i, .reveal-on-scroll { opacity: 1; transform: none; animation: none !important; }
  }
  @media (prefers-reduced-transparency: reduce) {
    .topbar, .tool-sheet, .projects-sheet { background: #f8f9fa; backdrop-filter: none; }
  }
  @media print {
    body * { visibility: hidden; }.result-panel, .result-panel * { visibility: visible; }.result-panel { position: fixed; inset: 0; background: white; }.result-actions { display: none; }
  }
}
