:root {
  --paper: #f5efe5;
  --paper-2: #fffaf2;
  --ink: #241d1a;
  --muted: #71665d;
  --line: rgba(36, 29, 26, 0.15);
  --amber: #e8955a;
  --amber-dark: #9b4f24;
  --mint: #6dbfaf;
  --coral: #ed9a91;
  --blue: #547b8d;
  --black: #171714;
  --white: #fffdf8;
  --error: #bd443b;
  --shadow: 0 24px 70px rgba(57, 38, 27, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
}
body.workspace-open { overflow: hidden; }
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.site-header.scrolled { color: var(--ink); background: rgba(245,239,229,.9); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: 18px; }
.brand-copy small { font-size: 8px; font-weight: 800; letter-spacing: .18em; opacity: .7; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 700; }
.site-nav a { position: relative; padding: 28px 0 24px; opacity: .78; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 16px; height: 2px; background: currentColor; transition: right .2s ease; }
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { right: 0; }
.header-actions { justify-self: end; display: flex; gap: 8px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(232,149,90,.42); outline-offset: 3px; }
.button-large { min-height: 54px; padding: 0 22px; }
.button-primary { color: #28180f; background: var(--amber); box-shadow: 0 15px 36px rgba(232,149,90,.25); }
.button-primary:hover { background: #f0a36a; box-shadow: 0 18px 40px rgba(232,149,90,.32); }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: #3b302a; }
.button-quiet { color: inherit; border-color: currentColor; background: transparent; opacity: .85; }
.button-glass { color: white; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.1); backdrop-filter: blur(14px); }

.hero { position: relative; min-height: min(880px, calc(100vh - 42px)); overflow: hidden; color: white; background: #2b2520; }
#bead-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,15,13,.92) 0%, rgba(18,15,13,.64) 42%, rgba(18,15,13,.04) 76%), linear-gradient(0deg, rgba(18,15,13,.46), transparent 45%); }
.hero-content { position: relative; z-index: 2; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: clamp(150px, 20vh, 220px) 0 120px; }
.overline { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.overline span { width: 34px; height: 2px; background: var(--amber); }
.overline.dark { color: var(--amber-dark); }
.overline.light { color: #ffd4ae; }
.hero h1 { max-width: 800px; margin: 20px 0 24px; font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: clamp(58px, 8vw, 116px); line-height: .98; font-weight: 800; }
.hero h1 em { color: #ffd9b9; font-style: normal; }
.hero-lead { max-width: 650px; margin: 0; color: rgba(255,255,255,.77); font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 0; margin-top: 54px; }
.hero-proof div { min-width: 155px; padding: 0 30px; border-left: 1px solid rgba(255,255,255,.24); }
.hero-proof div:first-child { padding-left: 0; border-left: 0; }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { font-family: "Songti SC", serif; font-size: 22px; }
.hero-proof span { margin-top: 5px; color: rgba(255,255,255,.56); font-size: 11px; }
.hero-release { position: absolute; z-index: 3; right: max(24px, calc((100vw - 1240px) / 2)); bottom: 46px; display: flex; align-items: center; gap: 12px; min-width: 300px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; background: rgba(24,20,17,.58); backdrop-filter: blur(18px); }
.release-led { width: 8px; height: 8px; border-radius: 50%; background: #8ed0af; box-shadow: 0 0 0 5px rgba(142,208,175,.13); }
.hero-release div { display: grid; flex: 1; }
.hero-release small { color: rgba(255,255,255,.55); font-size: 9px; }
.hero-release strong { margin-top: 2px; font-size: 12px; }
.hero-release a { font-size: 11px; color: #ffd4ae; }
.hero-scroll { position: absolute; z-index: 2; left: 50%; bottom: 26px; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); color: rgba(255,255,255,.5); font-size: 9px; letter-spacing: .14em; }
.hero-scroll span { width: 1px; height: 36px; background: rgba(255,255,255,.42); animation: scroll-line 1.8s ease-in-out infinite; }

.intro-band { display: grid; grid-template-columns: .35fr 1.15fr .75fr; gap: 50px; align-items: end; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0 72px; }
.section-index { align-self: start; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.intro-copy h2, .web-copy h2, .download-copy h2 { margin: 16px 0 0; font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: clamp(38px, 5vw, 68px); line-height: 1.08; }
.intro-note, .web-copy > p, .download-copy > p { margin: 0; color: var(--muted); line-height: 1.9; }

.process-band { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 680px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-visual { position: relative; overflow: hidden; min-height: 620px; background: #c7d9d2; }
.process-grid { position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(36,29,26,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(36,29,26,.16) 1px, transparent 1px); background-size: 31px 31px; }
.process-image { position: absolute; z-index: 2; display: grid; place-items: center; width: 260px; height: 260px; border: 1px solid rgba(36,29,26,.18); border-radius: 8px; background: rgba(255,253,248,.62); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.process-image img { width: 74%; filter: drop-shadow(0 20px 24px rgba(36,29,26,.16)); }
.image-import { left: 12%; top: 12%; transform: rotate(-3deg); }
.image-editor { right: 11%; bottom: 13%; transform: rotate(4deg); }
.process-caption { position: absolute; z-index: 3; left: 42px; bottom: 34px; display: grid; padding: 13px 16px; border-left: 3px solid var(--amber-dark); background: rgba(245,239,229,.82); backdrop-filter: blur(12px); }
.process-caption b { font-family: "Songti SC", serif; font-size: 20px; }
.process-caption span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.process-list { display: grid; align-content: center; margin: 0; padding: 60px clamp(28px, 7vw, 100px); list-style: none; background: var(--paper-2); }
.process-list li { display: grid; grid-template-columns: 46px 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.process-list li:last-child { border-bottom: 0; }
.process-list > li > span { color: var(--amber-dark); font-family: "Songti SC", serif; font-size: 14px; }
.process-list h3 { margin: 0; font-family: "Songti SC", serif; font-size: 26px; }
.process-list p { margin: 10px 0 0; color: var(--muted); line-height: 1.8; }

.feature-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.feature-strip article { display: grid; grid-template-columns: 160px 1fr; gap: 34px; align-items: center; min-height: 310px; padding: 50px max(30px, calc((100vw - 1240px) / 4)); background: var(--paper); }
.feature-strip article:nth-child(2) { background: #eee1d5; }
.feature-strip img { width: 150px; height: 150px; object-fit: contain; }
.feature-strip small, .section-label { color: var(--amber-dark); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.feature-strip h3 { margin: 12px 0 10px; font-family: "Songti SC", serif; font-size: 28px; }
.feature-strip p { margin: 0; color: var(--muted); line-height: 1.75; }

.web-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(50px, 8vw, 120px); align-items: center; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }
.web-copy h2 { margin-bottom: 24px; }
.web-copy .button { margin-top: 30px; }
.safe-list { display: grid; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.safe-list li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--mint); }
.dashboard-preview { display: grid; grid-template-columns: 68px 1fr; min-height: 520px; overflow: hidden; border: 1px solid rgba(36,29,26,.16); border-radius: 8px; background: var(--white); box-shadow: 0 36px 90px rgba(57,38,27,.17); transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.preview-rail { display: grid; justify-items: center; align-content: start; gap: 28px; padding: 18px 0; background: var(--ink); }
.preview-rail img { width: 36px; height: 36px; border-radius: 7px; }
.preview-rail i { width: 20px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.24); }
.preview-rail i.active { height: 20px; background: var(--amber); }
.preview-body { padding: 30px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; }
.preview-head span { font-family: "Songti SC", serif; font-size: 23px; font-weight: 800; }
.preview-head b { padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; }
.preview-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 24px 0; }
.preview-metrics span { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 9px; }
.preview-metrics b { color: var(--ink); font-family: "Songti SC", serif; font-size: 20px; }
.preview-stock { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }
.preview-stock i { aspect-ratio: 1; border: 1px solid rgba(36,29,26,.14); border-radius: 5px; box-shadow: inset 0 0 0 5px rgba(255,255,255,.48); }
.preview-patterns { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 24px; }
.preview-patterns i { aspect-ratio: 1; border-radius: 5px; background-image: linear-gradient(90deg, rgba(36,29,26,.12) 1px, transparent 1px), linear-gradient(rgba(36,29,26,.12) 1px, transparent 1px); background-size: 7px 7px; }
.preview-patterns i:nth-child(1) { background-color: #f0b2ac; }.preview-patterns i:nth-child(2) { background-color: #9fcfc4; }.preview-patterns i:nth-child(3) { background-color: #f2c174; }.preview-patterns i:nth-child(4) { background-color: #8fa9b4; }

.download-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; padding: 42px max(24px, calc((100vw - 1240px) / 2)) 80px; color: white; background: var(--black); }
.download-topline { grid-column: 1/-1; display: flex; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.5); font-size: 10px; letter-spacing: .12em; }
.download-topline a { color: #ffd4ae; }
.download-copy h2 { margin-bottom: 24px; }.download-copy > p { color: rgba(255,255,255,.62); }
.download-options { display: grid; align-content: center; gap: 10px; }
.download-option { display: grid; grid-template-columns: 88px 1fr 32px; gap: 18px; align-items: center; min-height: 112px; padding: 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; transition: background .2s ease, border-color .2s ease; }
.download-option:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.42); }
.download-option[aria-disabled="true"] { cursor: wait; opacity: .55; }
.platform-mark { display: grid; place-items: center; height: 54px; border-radius: 5px; color: var(--ink); background: var(--paper); font-size: 10px; font-weight: 900; }
.download-option div { display: grid; gap: 6px; }.download-option strong { font-family: "Songti SC", serif; font-size: 23px; }.download-option small { color: rgba(255,255,255,.52); }.download-option > b { color: #ffd4ae; font-size: 26px; }
.release-note { grid-column: 2; color: rgba(255,255,255,.48); font-size: 11px; line-height: 1.7; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 36px max(24px, calc((100vw - 1240px) / 2)); background: #0e0e0c; color: rgba(255,255,255,.55); font-size: 11px; }
.footer-brand { color: white; }.site-footer > p { font-family: "Songti SC", serif; font-size: 15px; }.site-footer > div:last-child { justify-self: end; display: flex; flex-wrap: wrap; gap: 18px; }

dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(18,15,13,.72); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; z-index: 4; top: 12px; right: 12px; width: 36px; height: 36px; border: 1px solid rgba(36,29,26,.18); border-radius: 50%; color: inherit; background: rgba(255,255,255,.72); cursor: pointer; font-size: 24px; line-height: 1; }
.auth-dialog { width: min(880px, calc(100% - 28px)); overflow: hidden; border-radius: 8px; background: var(--paper-2); box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.auth-dialog[open] { display: grid; grid-template-columns: .9fr 1.1fr; }
.auth-visual { position: relative; overflow: hidden; min-height: 560px; padding: 42px; color: white; background: #30584f; }
.auth-visual::after { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 24px 24px; }
.auth-visual > * { position: relative; z-index: 2; }.auth-visual > img { width: 64px; height: 64px; margin-bottom: 58px; border-radius: 8px; }
.auth-visual h2 { margin: 16px 0; font-family: "Songti SC", serif; font-size: 44px; line-height: 1.12; }.auth-visual > p:not(.overline) { color: rgba(255,255,255,.68); line-height: 1.8; }
.auth-beads { position: absolute; z-index: 3; left: 42px; bottom: 40px; display: flex; gap: 9px; }.auth-beads i { width: 20px; height: 20px; border-radius: 50%; border: 4px solid rgba(255,255,255,.35); background: var(--amber); }.auth-beads i:nth-child(2){background:var(--mint)}.auth-beads i:nth-child(3){background:var(--coral)}.auth-beads i:nth-child(4){background:#f6d77f}.auth-beads i:nth-child(5){background:#dde4dc}.auth-beads i:nth-child(6){background:#27231f}
.auth-form { display: grid; align-content: center; gap: 18px; padding: 48px; }
.auth-form > div small { color: var(--amber-dark); font-size: 9px; font-weight: 900; letter-spacing: .14em; }.auth-form h2 { margin: 8px 0 5px; font-family: "Songti SC", serif; font-size: 34px; }.auth-form > div p { margin: 0; color: var(--muted); }
.auth-form > label:not(.agreement) { display: grid; gap: 7px; font-size: 12px; font-weight: 800; }.auth-form input[type="text"], .auth-form input[type="password"], .auth-form input:not([type]) { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: white; }
.agreement { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.6; }.agreement input { margin-top: 2px; accent-color: var(--amber-dark); }.agreement a { color: var(--amber-dark); text-decoration: underline; }
.form-error { min-height: 18px; margin: -4px 0; color: var(--error); font-size: 12px; }.auth-hint { color: var(--muted); text-align: center; }

.workspace { position: fixed; z-index: 50; inset: 0; display: grid; grid-template-columns: 238px 1fr; background: #ece6dd; }
.workspace-sidebar { display: flex; flex-direction: column; min-height: 100vh; padding: 24px 17px; color: white; background: #191815; }
.workspace-brand { padding: 0 7px 24px; border-bottom: 1px solid rgba(255,255,255,.13); }.workspace-sidebar nav { display: grid; gap: 5px; margin-top: 30px; }.workspace-sidebar nav button { display: grid; grid-template-columns: 30px 1fr; align-items: center; width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 5px; color: rgba(255,255,255,.58); background: transparent; cursor: pointer; text-align: left; }.workspace-sidebar nav button span { font-size: 9px; }.workspace-sidebar nav button.active { color: #241d1a; background: var(--amber); }.workspace-sidebar nav button:hover:not(.active) { background: rgba(255,255,255,.07); }
.readonly-seal { margin-top: auto; padding: 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; }.readonly-seal span { color: #9dd6ca; font-size: 9px; font-weight: 900; letter-spacing: .15em; }.readonly-seal p { margin: 7px 0 0; color: rgba(255,255,255,.58); font-family: "Songti SC", serif; line-height: 1.5; }
.sidebar-download { min-height: 42px; margin-top: 10px; border: 0; border-radius: 5px; color: #25190f; background: #ffd4ae; cursor: pointer; font-weight: 800; }
.workspace-main { min-width: 0; height: 100vh; overflow: auto; }.workspace-header { position: sticky; z-index: 5; top: 0; display: flex; justify-content: space-between; align-items: center; min-height: 82px; padding: 14px 30px; border-bottom: 1px solid var(--line); background: rgba(236,230,221,.9); backdrop-filter: blur(16px); }.workspace-header small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .15em; }.workspace-header h1 { margin: 2px 0 0; font-family: "Songti SC", serif; font-size: 27px; }
.account-menu { display: flex; align-items: center; gap: 10px; }.account-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mint); font-weight: 900; }.account-menu > div { display: grid; }.account-menu strong { font-size: 12px; }.account-menu small { margin-top: 2px; }.account-menu button { margin-left: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; cursor: pointer; font-size: 11px; }
.workspace-content { padding: 28px 30px 50px; }.workspace-panel { display: none; }.workspace-panel.active { display: block; animation: panel-in .3s ease both; }
.welcome-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }.welcome-line p { margin: 0; font-family: "Songti SC", serif; font-size: 28px; }.welcome-line span { color: var(--muted); font-size: 11px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }.stat-grid article { display: grid; min-height: 145px; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,253,248,.75); }.stat-grid article:nth-child(1) { background: #f3d0b4; }.stat-grid article:nth-child(2) { background: #cbe3dd; }.stat-grid small { color: var(--muted); }.stat-grid strong { align-self: end; font-family: "Songti SC", serif; font-size: clamp(30px,4vw,48px); }.stat-grid span { font-size: 10px; color: var(--muted); }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }.data-section { min-height: 340px; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,253,248,.78); }.data-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }.data-heading small { color: var(--amber-dark); font-size: 8px; letter-spacing: .14em; }.data-heading h2 { margin: 3px 0 0; font-family: "Songti SC", serif; font-size: 21px; }.data-heading button { border: 0; color: var(--amber-dark); background: transparent; cursor: pointer; font-size: 11px; }
.mini-stock-list, .mini-pattern-list { display: grid; gap: 7px; }.mini-stock-item, .mini-pattern-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; min-height: 50px; padding: 7px; border-bottom: 1px solid rgba(36,29,26,.09); }.color-dot { width: 30px; height: 30px; border-radius: 50%; border: 5px solid rgba(255,255,255,.62); box-shadow: 0 2px 6px rgba(36,29,26,.16); }.mini-stock-item strong, .mini-pattern-item strong { font-size: 12px; }.mini-stock-item small, .mini-pattern-item small { display: block; margin-top: 2px; color: var(--muted); }.mini-stock-item > b { color: var(--error); font-size: 11px; }.pattern-thumb { width: 36px; height: 36px; overflow: hidden; border-radius: 4px; background: #ddd; }.pattern-thumb img { width: 100%; height: 100%; object-fit: cover; }.pattern-thumb canvas { width: 100%; height: 100%; }
.toolbar-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }.toolbar-row h2 { margin: 4px 0 0; font-family: "Songti SC", serif; font-size: 28px; }.warehouse-tabs, .series-filter { display: flex; flex-wrap: wrap; gap: 6px; }.warehouse-tabs button, .series-filter button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,253,248,.6); cursor: pointer; font-size: 11px; }.warehouse-tabs button.active, .series-filter button.active { color: white; border-color: var(--ink); background: var(--ink); }
.search-field { display: grid; gap: 4px; width: min(310px,100%); color: var(--muted); font-size: 9px; }.search-field input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: rgba(255,253,248,.82); }
.warehouse-summary { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--line); }.warehouse-summary div { display: grid; gap: 5px; padding: 14px; background: rgba(255,253,248,.8); }.warehouse-summary small { color: var(--muted); }.warehouse-summary strong { font-family: "Songti SC", serif; font-size: 19px; }.series-filter { margin-bottom: 14px; }
.stock-grid { display: grid; grid-template-columns: repeat(6,minmax(120px,1fr)); gap: 8px; }.stock-card { min-width: 0; min-height: 122px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,253,248,.82); }.stock-card-top { display: flex; justify-content: space-between; gap: 8px; }.stock-card .color-dot { width: 34px; height: 34px; }.stock-card code { font-family: inherit; font-size: 15px; font-weight: 900; }.stock-card p { margin: 16px 0 0; font-family: "Songti SC", serif; font-size: 22px; }.stock-card small { color: var(--muted); }.stock-card.warning { border-color: rgba(189,68,59,.34); }.stock-card.warning p { color: var(--error); }
.pattern-grid { display: grid; grid-template-columns: repeat(4,minmax(180px,1fr)); gap: 10px; }.pattern-card { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,253,248,.82); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }.pattern-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(57,38,27,.11); }.pattern-card-cover { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #ded8ce; }.pattern-card-cover img { width: 100%; height: 100%; object-fit: cover; }.pattern-card-cover canvas { width: 100%; height: 100%; }.pattern-card-badge { position: absolute; left: 8px; top: 8px; padding: 4px 7px; border-radius: 3px; background: rgba(23,23,20,.75); color: white; font-size: 8px; backdrop-filter: blur(8px); }.pattern-card-copy { padding: 12px; }.pattern-card-copy h3 { margin: 0; font-family: "Songti SC", serif; font-size: 17px; }.pattern-card-copy p { display: flex; justify-content: space-between; margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.empty-state { grid-column: 1/-1; display: grid; place-items: center; min-height: 260px; padding: 30px; border: 1px dashed var(--line); border-radius: 7px; color: var(--muted); text-align: center; }
.workspace-loading { position: fixed; z-index: 10; inset: 0 0 0 238px; display: grid; place-content: center; justify-items: center; background: rgba(236,230,221,.84); backdrop-filter: blur(10px); }.workspace-loading span { width: 34px; height: 34px; border: 3px solid rgba(36,29,26,.14); border-top-color: var(--amber-dark); border-radius: 50%; animation: spin .8s linear infinite; }.workspace-loading p { color: var(--muted); }
.pattern-dialog { width: min(790px,calc(100% - 28px)); overflow: hidden; border-radius: 8px; background: var(--paper-2); }.pattern-dialog[open] { display: grid; grid-template-columns: 1fr 1fr; }.pattern-detail-cover { min-height: 480px; background: #ded8ce; }.pattern-detail-cover img { width: 100%; height: 100%; object-fit: contain; }.pattern-detail-cover canvas { width: 100%; height: 100%; }.pattern-detail-copy { align-self: center; padding: 42px; }.pattern-detail-copy > small { color: var(--amber-dark); font-weight: 900; }.pattern-detail-copy h2 { margin: 10px 0 18px; font-family: "Songti SC", serif; font-size: 34px; }.pattern-detail-copy > p { color: var(--muted); line-height: 1.8; }.pattern-detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.pattern-detail-stats span { padding: 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; }.pattern-detail-copy .button { margin-top: 20px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; max-width: calc(100% - 28px); padding: 11px 16px; border-radius: 5px; color: white; background: rgba(23,23,20,.92); box-shadow: var(--shadow); opacity: 0; transform: translate(-50%,18px); pointer-events: none; transition: .2s ease; }.toast.show { opacity: 1; transform: translate(-50%,0); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }.reveal.visible { opacity: 1; transform: none; }
@keyframes scroll-line { 0%,100%{transform:scaleY(.35);transform-origin:top} 50%{transform:scaleY(1)} }
@keyframes panel-in { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
@keyframes spin { to{transform:rotate(360deg)} }

@media (max-width: 1050px) {
  .intro-band { grid-template-columns: 1fr 1.5fr; }.intro-note { grid-column: 2; }.process-band, .web-section { grid-template-columns: 1fr; }.process-visual { min-height: 560px; }.feature-strip article { grid-template-columns: 120px 1fr; padding: 38px 28px; }.feature-strip img { width: 120px; height: 120px; }.dashboard-preview { transform: none; }.stat-grid { grid-template-columns: 1fr 1fr; }.stock-grid { grid-template-columns: repeat(4,minmax(110px,1fr)); }.pattern-grid { grid-template-columns: repeat(3,minmax(170px,1fr)); }
}
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; height: 66px; padding: 0 14px; }.site-nav, .header-actions .button-quiet, .brand-copy small { display: none; }.brand img { width: 36px; height: 36px; }.hero { min-height: 760px; }.hero-content { width: calc(100% - 28px); padding-top: 135px; }.hero h1 { font-size: 56px; }.hero-shade { background: linear-gradient(0deg,rgba(18,15,13,.94) 0%,rgba(18,15,13,.45) 72%,rgba(18,15,13,.15)); }.hero-proof div { min-width: 50%; margin-bottom: 18px; }.hero-release { left: 14px; right: 14px; bottom: 30px; min-width: 0; }.hero-scroll { display: none; }
  .intro-band { grid-template-columns: 1fr; width: calc(100% - 28px); padding: 76px 0 50px; }.intro-note { grid-column: auto; }.process-visual { min-height: 460px; }.process-image { width: 190px; height: 190px; }.image-import { left: 7%; }.image-editor { right: 5%; }.process-list { padding: 28px 22px; }.feature-strip { grid-template-columns: 1fr; }.feature-strip article { grid-template-columns: 90px 1fr; min-height: 230px; padding: 28px 18px; }.feature-strip img { width: 90px; height: 90px; }.web-section { width: calc(100% - 28px); padding: 76px 0; }.dashboard-preview { grid-template-columns: 48px 1fr; min-height: 420px; }.preview-body { padding: 18px 12px; }.preview-stock { grid-template-columns: repeat(4,1fr); }.preview-metrics { grid-template-columns: 1fr; }.preview-metrics span:nth-child(n+2) { display: none; }
  .download-section { grid-template-columns: 1fr; gap: 30px; padding: 34px 18px 56px; }.release-note { grid-column: 1; }.site-footer { grid-template-columns: 1fr; text-align: center; }.site-footer > *, .site-footer > div:last-child { justify-self: center; }
  .auth-dialog[open], .pattern-dialog[open] { grid-template-columns: 1fr; }.auth-visual { display: none; }.auth-form { padding: 42px 22px 26px; }.pattern-detail-cover { min-height: 300px; }.pattern-detail-copy { padding: 28px 22px; }
  .workspace { grid-template-columns: 1fr; grid-template-rows: 60px 1fr; }.workspace-sidebar { position: relative; z-index: 8; flex-direction: row; align-items: center; min-height: 60px; padding: 8px 12px; }.workspace-brand .brand-copy, .readonly-seal, .sidebar-download { display: none; }.workspace-brand { padding: 0; border: 0; }.workspace-brand img { width: 38px; height: 38px; }.workspace-sidebar nav { display: flex; flex: 1; justify-content: flex-end; gap: 3px; margin: 0; }.workspace-sidebar nav button { grid-template-columns: 1fr; width: auto; min-height: 40px; padding: 0 9px; text-align: center; font-size: 11px; }.workspace-sidebar nav button span { display: none; }.workspace-main { height: calc(100vh - 60px); }.workspace-header { min-height: 68px; padding: 10px 14px; }.workspace-header > div:first-child small, .account-menu > div { display: none; }.workspace-content { padding: 18px 14px 40px; }.stat-grid { grid-template-columns: 1fr 1fr; }.stat-grid article { min-height: 120px; }.overview-grid { grid-template-columns: 1fr; }.toolbar-row { align-items: stretch; flex-direction: column; }.search-field { width: 100%; }.warehouse-summary { grid-template-columns: 1fr 1fr; }.warehouse-summary div:first-child { grid-column: 1/-1; }.stock-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.pattern-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.workspace-loading { inset: 60px 0 0; }
}
@media (max-width: 420px) { .hero h1 { font-size: 48px; }.hero-lead { font-size: 15px; }.button-large { width: 100%; }.process-image { width: 160px; height: 160px; }.feature-strip article { grid-template-columns: 70px 1fr; }.feature-strip img { width: 70px; height: 70px; }.pattern-grid { grid-template-columns: 1fr 1fr; }.pattern-card-copy p { display: grid; gap: 3px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
