@layer mc-override, mc-base, mc-legacy;
@layer mc-base {
:root {
  color-scheme: dark;
  --bg: #050b10;
  --panel: rgba(8, 20, 28, .82);
  --panel-solid: #09151d;
  --line: rgba(126, 231, 214, .13);
  --line-strong: rgba(126, 231, 214, .28);
  --text: #edf8f5;
  --muted: #6f8c88;
  --muted-2: #48645f;
  --cyan: #63ead5;
  --blue: #65a8ff;
  --lime: #c8ff75;
  --amber: #ffc46c;
  --coral: #ff8b7e;
  --shadow: 0 30px 80px rgba(0, 0, 0, .28);
  --sans: "Sora", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--text); background: radial-gradient(circle at 82% 4%, rgba(40, 131, 124, .13), transparent 30rem), var(--bg); font: 14px/1.55 var(--sans); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
[hidden] { display: none !important; }

.tech-grid { position: fixed; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(84, 218, 200, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(84, 218, 200, .09) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.glow { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .18; }
.glow-a { width: 360px; height: 360px; right: 3%; top: 2%; background: #1ccab6; }
.glow-b { width: 300px; height: 300px; left: 12%; bottom: -10%; background: #2b6cff; opacity: .1; }
.eyebrow { margin: 0 0 8px; color: var(--cyan); font: 9px/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: .04em; }
.brand small { margin-top: 2px; color: var(--muted); font: 8px/1 var(--mono); letter-spacing: .18em; }
.brand-mark { position: relative; width: 36px; height: 36px; display: block; border: 1px solid var(--line-strong); border-radius: 50%; }
.brand-mark::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(99, 234, 213, .3); border-radius: 50%; }
.brand-mark i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.brand-mark i:nth-child(1) { left: 8px; top: 17px; }
.brand-mark i:nth-child(2) { left: 20px; top: 8px; }
.brand-mark i:nth-child(3) { left: 23px; bottom: 8px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; transform: scale(.75); } }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 520px) 1fr; }
.login-card { position: relative; z-index: 2; align-self: center; margin: 6vw; padding: 42px; border: 1px solid var(--line); border-radius: 20px; background: rgba(7, 17, 24, .86); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.login-copy { margin: 72px 0 36px; }
.login-copy h1 { margin: 0 0 20px; font-size: clamp(40px, 5vw, 62px); line-height: 1.08; letter-spacing: -.045em; }
.login-copy > p:last-child { max-width: 400px; color: var(--muted); font-size: 15px; }
.login-form { display: grid; gap: 16px; }
.login-form label { display: grid; gap: 7px; color: #9cb3af; font-size: 11px; }
.login-form input, .search, select, textarea { border: 1px solid var(--line); border-radius: 9px; background: rgba(4, 13, 19, .75); color: var(--text); outline: 0; }
.login-form input { height: 48px; padding: 0 14px; }
.login-form input:focus, .search:focus, select:focus, textarea:focus { border-color: rgba(99, 234, 213, .55); box-shadow: 0 0 0 3px rgba(99, 234, 213, .06); }
.primary, .secondary { min-height: 40px; padding: 0 18px; border-radius: 9px; border: 1px solid transparent; }
.primary { background: var(--cyan); color: #04100e; font-weight: 700; box-shadow: 0 10px 30px rgba(99, 234, 213, .13); }
.primary:hover { background: #85f4e3; }
.secondary { border-color: var(--line); background: transparent; color: var(--text); }
.small { min-height: 36px; padding: 0 14px; font-size: 12px; }
.form-error { min-height: 18px; margin: 0; color: var(--coral); font-size: 12px; }
.login-visual { position: relative; overflow: hidden; border-left: 1px solid rgba(99, 234, 213, .08); background: radial-gradient(circle at 50% 48%, rgba(38, 158, 149, .15), transparent 38%), linear-gradient(135deg, rgba(6, 17, 24, .4), rgba(4, 10, 15, .9)); }
.orbit { position: absolute; left: 50%; top: 45%; border: 1px solid rgba(99, 234, 213, .17); border-radius: 50%; transform: translate(-50%, -50%) rotate(-20deg); }
.orbit-a { width: min(56vw, 760px); aspect-ratio: 1.7; animation: orbit 18s linear infinite; }
.orbit-b { width: min(40vw, 540px); aspect-ratio: 1; animation: orbit 14s linear infinite reverse; }
.orbit-core { position: absolute; left: 50%; top: 45%; width: min(18vw, 190px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #baffee, #36b9ae 25%, #0d4244 58%, #061017 72%); box-shadow: 0 0 90px rgba(72, 230, 210, .24); }
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(340deg); } }
.visual-copy { position: absolute; left: 8%; bottom: 9%; max-width: 520px; }
.visual-copy p { margin: 14px 0 8px; color: var(--muted); font: 9px var(--mono); letter-spacing: .16em; }
.visual-copy strong { font-size: clamp(30px, 4vw, 54px); line-height: 1.12; letter-spacing: -.04em; }

.brand-page { overflow-x: hidden; }
.landing { position: relative; z-index: 2; min-height: 100vh; }
.landing-header { position: sticky; top: 0; z-index: 8; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: 78px; padding: 0 clamp(20px, 4.8vw, 76px); border-bottom: 1px solid rgba(126, 231, 214, .09); background: rgba(4, 11, 16, .75); backdrop-filter: blur(22px); }
.landing-brand { color: var(--text); text-decoration: none; justify-self: start; }
.landing-nav { display: flex; gap: 34px; }
.landing-nav a { color: var(--muted); font-size: 11px; text-decoration: none; transition: color .2s ease; }
.landing-nav a:hover { color: var(--text); }
.login-trigger { border: 0; background: transparent; color: #c5ddd8; }
.header-login { justify-self: end; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 8px; font: 10px var(--mono); letter-spacing: .05em; }
.header-login:hover { border-color: rgba(99, 234, 213, .55); background: rgba(99, 234, 213, .06); }
.header-login span { margin-left: 7px; color: var(--cyan); }
.landing-hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr); align-items: center; gap: clamp(34px, 7vw, 110px); padding: clamp(70px, 9vw, 132px) clamp(20px, 6vw, 96px) clamp(70px, 8vw, 116px); }
.landing-copy { max-width: 760px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: #93b7b1; font: 9px var(--mono); letter-spacing: .14em; }
.landing-copy h1 { margin: 0; font-size: clamp(54px, 7vw, 104px); line-height: .95; letter-spacing: -.07em; }
.landing-copy h1 em { color: var(--cyan); font-style: normal; }
.landing-copy > p { max-width: 620px; margin: 30px 0 0; color: #7f9c97; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.8; }
.landing-actions { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.hero-primary { min-height: 50px; padding: 0 25px; font-size: 12px; }
.hero-secondary { min-height: 48px; display: inline-flex; align-items: center; padding: 0 21px; color: #b7cfca; text-decoration: none; }
.hero-facts { display: flex; gap: clamp(24px, 4vw, 54px); margin-top: 64px; }
.hero-facts div { display: grid; gap: 4px; }
.hero-facts strong { color: #cee8e3; font: 13px var(--mono); letter-spacing: .03em; }
.hero-facts span { color: var(--muted); font-size: 9px; }
.landing-visual { min-height: 550px; display: grid; place-items: center; }
.visual-shell { position: relative; width: min(100%, 590px); aspect-ratio: .92; border: 1px solid rgba(99, 234, 213, .18); border-radius: 50% 50% 18px 18px; background: radial-gradient(circle at 50% 43%, rgba(44, 181, 169, .14), transparent 40%), linear-gradient(145deg, rgba(11, 33, 42, .78), rgba(4, 13, 19, .86)); box-shadow: 0 40px 110px rgba(0, 0, 0, .3); }
.visual-shell::before { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(99, 234, 213, .08); border-radius: 50%; }
.visual-shell-head { position: absolute; left: 28px; right: 28px; top: 24px; display: flex; justify-content: space-between; color: var(--muted); font: 8px var(--mono); letter-spacing: .12em; }
.core-node { position: absolute; left: 50%; top: 45%; width: 176px; aspect-ratio: 1; display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 38% 30%, #a8fff1, #36b6ac 20%, #0c373d 56%, #061017 74%); box-shadow: 0 0 80px rgba(66, 221, 204, .24); text-align: center; }
.core-node > div { position: relative; z-index: 2; display: grid; }
.core-node small { color: rgba(224, 255, 249, .65); font: 7px var(--mono); letter-spacing: .12em; }
.core-node strong { margin: 5px 0 2px; font-size: 21px; }
.core-node em { color: rgba(224, 255, 249, .55); font: 7px var(--mono); letter-spacing: .13em; }
.core-ring { position: absolute; inset: -30px; border: 1px solid rgba(99, 234, 213, .19); border-radius: 50%; animation: pulseRing 3s ease-in-out infinite; }
.core-ring.inner { inset: -68px; animation-delay: .6s; }
@keyframes pulseRing { 50% { transform: scale(1.04); opacity: .45; } }
.node { position: absolute; width: 154px; padding: 14px; border: 1px solid rgba(99, 234, 213, .16); border-radius: 10px; background: rgba(5, 17, 24, .76); backdrop-filter: blur(12px); }
.node b { display: block; margin-bottom: 12px; color: var(--cyan); font: 8px var(--mono); }
.node strong { display: block; font-size: 16px; }
.node small { color: var(--muted); font: 7px var(--mono); letter-spacing: .1em; }
.node-orders { left: 7%; top: 27%; }
.node-products { right: 5%; top: 25%; }
.node-inventory { left: 8%; bottom: 20%; }
.node-tasks { right: 7%; bottom: 18%; }
.visual-foot { position: absolute; left: 28px; right: 28px; bottom: 22px; display: flex; justify-content: space-between; color: var(--muted); font: 8px var(--mono); }
.visual-foot span { display: flex; align-items: center; gap: 6px; }
.visual-foot i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.landing-band { display: grid; grid-template-columns: 190px 1fr; gap: 30px; padding: 22px clamp(20px, 6vw, 96px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7, 21, 28, .58); }
.landing-band > span { color: var(--cyan); font: 8px var(--mono); letter-spacing: .13em; }
.landing-band > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #bed4cf; font-size: 11px; }
.landing-band i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(99, 234, 213, .22), transparent); }
.landing-section { padding: clamp(84px, 10vw, 140px) clamp(20px, 7vw, 112px); }
.landing-section-head { display: grid; grid-template-columns: .65fr 1.35fr; column-gap: 60px; align-items: start; margin-bottom: 54px; }
.landing-section-head .eyebrow { grid-column: 1; }
.landing-section-head h2 { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: clamp(38px, 5vw, 70px); line-height: 1.05; letter-spacing: -.05em; }
.landing-section-head > p:last-child { grid-column: 1; max-width: 330px; margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.landing-section-head.compact { grid-template-columns: 1fr 1fr; }
.landing-section-head.compact h2 { grid-column: 2; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-card { position: relative; min-height: 280px; padding: 29px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7, 19, 26, .4); }
.capability-card.featured { background: linear-gradient(145deg, rgba(22, 76, 74, .42), rgba(7, 19, 26, .42)); }
.capability-no { position: absolute; right: 22px; top: 20px; color: #385c58; font: 9px var(--mono); }
.capability-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(99, 234, 213, .23); border-radius: 50%; color: var(--cyan); font: 18px var(--mono); }
.capability-card h3 { margin: 45px 0 12px; font-size: 20px; }
.capability-card p { min-height: 76px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.capability-card small { display: block; margin-top: 26px; color: #496c67; font: 7px var(--mono); letter-spacing: .12em; }
.workflow-section { border-top: 1px solid rgba(126, 231, 214, .08); background: linear-gradient(180deg, rgba(12, 34, 42, .2), transparent); }
.workflow-track { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.workflow-track article { position: relative; min-height: 200px; padding: 27px 25px 20px 0; }
.workflow-track article::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
.workflow-track article > span { color: #466b66; font: 9px var(--mono); }
.workflow-track strong { display: block; margin-top: 36px; font-size: 18px; }
.workflow-track p { max-width: 220px; color: var(--muted); font-size: 11px; }
.security-section { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; padding: clamp(70px, 9vw, 120px) clamp(20px, 7vw, 112px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(4, 12, 18, .6); }
.security-section h2 { margin: 0; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.08; letter-spacing: -.045em; }
.security-list { display: grid; }
.security-list article { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.security-list article:first-child { border-top: 1px solid var(--line); }
.security-list article > span { color: var(--cyan); font: 9px var(--mono); }
.security-list strong { font-size: 14px; }
.security-list p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.landing-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: clamp(60px, 8vw, 110px) clamp(20px, 7vw, 112px); padding: clamp(32px, 5vw, 64px); border: 1px solid rgba(99, 234, 213, .2); border-radius: 18px; background: linear-gradient(130deg, rgba(18, 68, 68, .58), rgba(7, 19, 26, .75)); }
.landing-cta h2 { margin: 0; font-size: clamp(30px, 3.6vw, 50px); letter-spacing: -.04em; }
.landing-footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px; padding: 28px clamp(20px, 6vw, 96px); border-top: 1px solid var(--line); color: var(--muted); }
.landing-footer p { font-size: 10px; text-align: center; }
.landing-footer > button { border: 0; background: transparent; color: var(--cyan); font-size: 10px; }
.login-dialog { width: min(450px, calc(100vw - 28px)); padding: 34px; }
.login-dialog-close { position: absolute; right: 18px; top: 16px; border: 0; background: transparent; color: var(--muted); font-size: 24px; }
.login-dialog-brand { margin-bottom: 26px; }
.login-dialog-brand .brand-mark { margin-bottom: 30px; }
.login-dialog-brand h2 { margin: 0 0 10px; font-size: 34px; letter-spacing: -.04em; }
.login-dialog-brand > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.login-security { display: flex; align-items: center; gap: 9px; margin: 21px 0 0; color: var(--muted); font: 8px var(--mono); }

.erp-shell { position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 17px 18px; border-right: 1px solid var(--line); background: rgba(4, 11, 16, .88); backdrop-filter: blur(22px); }
.sidebar-brand { padding: 2px 9px 32px; }
.side-nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #78938f; text-align: left; }
.nav-item > span:first-child { width: 18px; color: var(--cyan); font: 15px var(--mono); text-align: center; }
.nav-item:hover { color: var(--text); background: rgba(99, 234, 213, .04); }
.nav-item.active { color: #bff8ed; border-color: rgba(99, 234, 213, .19); background: linear-gradient(90deg, rgba(99, 234, 213, .14), rgba(99, 234, 213, .02)); box-shadow: inset 2px 0 var(--cyan); }
.nav-badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 20px; background: rgba(255, 139, 126, .12); color: #ffaaa0; font: 8px var(--mono); text-align: center; }
.side-status { margin-top: auto; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(10, 26, 34, .55); }
.side-status > div { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.side-status small { display: block; margin: 9px 0 10px; color: var(--muted); font: 8px var(--mono); }
.side-status button { padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.main { min-width: 0; padding: 30px clamp(20px, 3.2vw, 52px) 70px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.topbar h1 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -.04em; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.select-wrap { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; }
select { min-width: 138px; max-width: 210px; height: 38px; padding: 0 28px 0 10px; font-size: 11px; }
.segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(6, 18, 25, .62); }
.segmented button { height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 9px; }
.segmented button.active { background: var(--cyan); color: #04100e; font-weight: 700; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: rgba(6, 18, 25, .62); color: #b2d8d2; font-size: 17px; }
.icon-button.loading { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { margin-bottom: 16px; padding: 11px 14px; border: 1px solid rgba(255, 196, 108, .18); border-radius: 9px; background: rgba(255, 196, 108, .055); color: #d8b379; font-size: 11px; }
.loading { display: grid; grid-template-columns: 1.8fr 1fr; gap: 12px; }
.loading > div { height: 150px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(100deg, rgba(20, 49, 55, .35) 20%, rgba(34, 75, 81, .3) 50%, rgba(20, 49, 55, .35) 80%); background-size: 220% 100%; animation: shimmer 1.4s infinite; }
.loading > div:first-child { grid-column: 1 / -1; height: 280px; }
@keyframes shimmer { to { background-position: -220% 0; } }
.view-panel { display: none; }
.view-panel.active { display: block; animation: reveal .24s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } }
.hero { position: relative; overflow: hidden; min-height: 278px; display: flex; align-items: center; padding: clamp(26px, 4vw, 46px); border: 1px solid rgba(99, 234, 213, .22); border-radius: 18px; background: linear-gradient(118deg, rgba(17, 64, 65, .74), rgba(6, 18, 25, .9) 56%, rgba(17, 35, 61, .8)); box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(99, 234, 213, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 234, 213, .04) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, #000, transparent 75%); }
.hero > div:first-child { position: relative; z-index: 1; }
.hero-value-row { display: flex; align-items: end; gap: 18px; }
.hero-value-row > strong { font-size: clamp(54px, 8vw, 100px); line-height: .95; letter-spacing: -.06em; }
.hero-value-row > span { margin-bottom: 11px; color: #91b3ae; font-size: 11px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 28px; margin-top: 32px; max-width: 720px; }
.hero-stats div { display: grid; gap: 3px; }
.hero-stats span { color: var(--muted); font-size: 10px; }
.hero-stats strong { font: 18px var(--mono); }
.hero-orbit { position: absolute; right: 5%; top: 50%; width: 300px; aspect-ratio: 1; transform: translateY(-50%); border: 1px solid rgba(99, 234, 213, .15); border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border: 1px solid rgba(101, 168, 255, .14); border-radius: 50%; }
.hero-orbit::before { inset: 38px; }
.hero-orbit::after { inset: 96px; background: radial-gradient(circle at 35% 30%, #8dfff1, #23978f 32%, #072329 65%); box-shadow: 0 0 55px rgba(64, 221, 204, .2); }
.hero-orbit i { position: absolute; left: 30px; top: 67px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px var(--lime); }
.hero-orbit b { position: absolute; right: 50px; bottom: 40px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.metric { min-height: 128px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.metric-label { color: var(--muted); font-size: 10px; }
.metric strong { margin-top: auto; font: 25px var(--mono); letter-spacing: -.04em; }
.metric small { margin-top: 5px; color: var(--muted-2); font-size: 9px; }
.content-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; margin: 14px 0; }
.panel { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 36px rgba(0, 0, 0, .12); }
.panel-head, .section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.panel-head h2, .section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.panel-note { color: var(--muted); font: 8px var(--mono); }
.link-button { border: 0; background: transparent; color: var(--cyan); font-size: 10px; }
.chart-panel { min-height: 330px; }
#trend-chart { width: 100%; height: 230px; margin-top: 18px; }
.task-list { display: grid; gap: 9px; margin-top: 18px; }
.task-row { display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid rgba(126, 231, 214, .08); border-radius: 9px; background: rgba(3, 12, 18, .42); }
.task-row::before { content: ""; align-self: stretch; border-radius: 3px; background: var(--cyan); }
.task-row.priority-urgent::before { background: var(--coral); }
.task-row.priority-high::before { background: var(--amber); }
.task-row strong { display: block; font-size: 11px; }
.task-row small { color: var(--muted); font-size: 9px; }
.task-state { color: var(--muted); font: 8px var(--mono); }
.empty { padding: 44px 20px; color: var(--muted); text-align: center; }
.table-wrap { width: 100%; overflow-x: auto; margin-top: 16px; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th { padding: 10px 9px; border-bottom: 1px solid var(--line); color: var(--muted); font: 8px var(--mono); letter-spacing: .1em; text-align: left; text-transform: uppercase; }
td { padding: 13px 9px; border-bottom: 1px solid rgba(126, 231, 214, .07); color: #c6dbd7; font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
td strong { display: block; max-width: 290px; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
td small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.money { font-family: var(--mono); white-space: nowrap; }
.status { display: inline-flex; padding: 4px 8px; border: 1px solid rgba(99, 234, 213, .18); border-radius: 20px; color: #9ce5da; font: 8px var(--mono); }
.status.warn { border-color: rgba(255, 196, 108, .25); color: var(--amber); }
.status.danger { border-color: rgba(255, 139, 126, .28); color: var(--coral); }
.row-action { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--cyan); font-size: 9px; }
.section-head { margin-bottom: 18px; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.section-head p:last-child { max-width: 690px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.search { width: min(280px, 42vw); height: 38px; padding: 0 12px; }
.task-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.task-card { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.task-card h3 { margin: 0 0 9px; font-size: 14px; }
.task-card p { min-height: 36px; margin: 0; color: var(--muted); font-size: 10px; }
.task-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.sync-log-panel { margin-top: 14px; }
.shop-card { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.shop-card h3 { margin: 18px 0 4px; font-size: 18px; }
.shop-card p { margin: 0; color: var(--muted); font: 9px var(--mono); }
.shop-meta { display: flex; gap: 8px; margin-top: 20px; }
.sync-detail { margin-top: 12px !important; color: var(--muted) !important; font: 9px/1.6 var(--mono) !important; }
.badge { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: #9db9b4; font: 8px var(--mono); }
.badge.live { border-color: rgba(200, 255, 117, .22); color: var(--lime); }
dialog { width: min(580px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: #08151d; color: var(--text); box-shadow: 0 30px 120px rgba(0, 0, 0, .6); }
dialog::backdrop { background: rgba(1, 7, 11, .72); backdrop-filter: blur(5px); }
.dialog-head { display: flex; justify-content: space-between; padding: 24px 24px 0; }
.dialog-head h2 { margin: 0; }
.dialog-close { border: 0; background: transparent; color: var(--muted); font-size: 24px; }
.dialog-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px 24px 8px; }
.dialog-body label { display: grid; gap: 6px; color: #9bb3af; font-size: 10px; }
.dialog-body label.full { grid-column: 1 / -1; }
.dialog-body input, .dialog-body select, .dialog-body textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(4, 13, 19, .75); color: var(--text); }
.dialog-body textarea { min-height: 84px; resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 24px 24px; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 30; transform: translate(-50%, 20px); padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: #0c2029; color: var(--text); font-size: 11px; opacity: 0; pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .landing-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 80px; }
  .landing-visual { min-height: 520px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .security-section { grid-template-columns: 1fr; gap: 45px; }
  .workflow-track { grid-template-columns: repeat(2, 1fr); }
  .erp-shell { grid-template-columns: 78px 1fr; }
  .sidebar { padding-inline: 12px; }
  .sidebar-brand > div, .nav-item:not(.active) { font-size: 0; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item > span:first-child { width: auto; font-size: 18px; }
  .nav-badge { position: absolute; margin: -27px 0 0 30px; font-size: 8px; }
  .side-status { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .landing-header { grid-template-columns: 1fr auto; min-height: 68px; padding-inline: 15px; }
  .landing-nav { display: none; }
  .landing-copy h1 { font-size: 52px; }
  .landing-copy > p { font-size: 14px; }
  .landing-hero { padding: 58px 15px 70px; gap: 35px; }
  .hero-facts { gap: 18px; margin-top: 42px; }
  .hero-facts strong { font-size: 10px; }
  .landing-visual { min-height: 460px; }
  .visual-shell { width: 100%; aspect-ratio: .82; }
  .node { width: 118px; padding: 10px; }
  .node strong { font-size: 13px; }
  .node-orders { left: 2%; top: 26%; }
  .node-products { right: 2%; top: 25%; }
  .node-inventory { left: 3%; bottom: 19%; }
  .node-tasks { right: 3%; bottom: 18%; }
  .core-node { width: 140px; }
  .visual-foot { display: none; }
  .landing-band { grid-template-columns: 1fr; gap: 12px; padding-inline: 15px; }
  .landing-band > div { flex-wrap: wrap; justify-content: flex-start; }
  .landing-band i { display: none; }
  .landing-section { padding: 75px 15px; }
  .landing-section-head, .landing-section-head.compact { grid-template-columns: 1fr; gap: 0; }
  .landing-section-head .eyebrow, .landing-section-head h2, .landing-section-head > p:last-child { grid-column: 1; grid-row: auto; }
  .landing-section-head h2 { margin-top: 8px; font-size: 42px; }
  .landing-section-head > p:last-child { margin-top: 18px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 240px; }
  .workflow-track { grid-template-columns: 1fr; }
  .workflow-track article { min-height: 150px; }
  .security-section { padding: 70px 15px; }
  .landing-cta { align-items: flex-start; flex-direction: column; margin: 60px 15px; }
  .landing-footer { grid-template-columns: 1fr; text-align: left; padding-inline: 15px; }
  .landing-footer p { text-align: left; }
  .login-shell { grid-template-columns: 1fr; }
  .login-card { margin: 16px; padding: 28px 22px; }
  .login-copy { margin: 44px 0 26px; }
  .login-copy h1 { font-size: 40px; }
  .login-visual { display: none; }
  .erp-shell { display: block; }
  .sidebar { position: sticky; z-index: 10; width: 100%; height: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-brand { display: none; }
  .side-nav { grid-template-columns: repeat(6, 1fr); gap: 3px; }
  .nav-item { min-height: 52px; flex-direction: column; gap: 2px; font-size: 8px !important; }
  .nav-item > span:first-child { font-size: 16px; }
  .nav-badge { top: 4px; right: 8px; margin: 0; }
  .main { padding: 23px 12px 50px; }
  .topbar { align-items: start; flex-direction: column; }
  .topbar h1 { font-size: 35px; }
  .topbar-actions { width: 100%; flex-wrap: wrap; }
  .select-wrap { flex: 1 1 100%; }
  .select-wrap select { flex: 1; max-width: none; }
  .hero { min-height: 320px; padding: 24px 20px; }
  .hero-value-row { align-items: start; flex-direction: column; gap: 5px; }
  .hero-value-row > strong { font-size: 58px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
  .hero-orbit { right: -100px; top: 90px; width: 230px; opacity: .35; }
  .metric-grid, .content-grid, .task-board, .shop-grid { grid-template-columns: 1fr; }
  .metric { min-height: 104px; }
  .section-head { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .dialog-body { grid-template-columns: 1fr; }
  .dialog-body label.full { grid-column: auto; }
  .loading { grid-template-columns: 1fr; }
  .loading > div:first-child { grid-column: auto; }
}

}
