:root {
  --bg: #07130f;
  --bg-deep: #050d0a;
  --surface: #0d2018;
  --surface-2: #122a20;
  --surface-glass: rgba(13, 32, 24, .74);
  --ink: #f4f6ee;
  --muted: #9cad9f;
  --muted-2: #75887c;
  --line: rgba(221, 255, 226, .12);
  --line-strong: rgba(221, 255, 226, .23);
  --lime: #d8ff72;
  --lime-ink: #14200f;
  --emerald: #37e39d;
  --emerald-deep: #0f9f68;
  --danger: #ff7969;
  --nav: #071711;
  --nav-ink: #f5f7ef;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --soft-shadow: 0 12px 34px rgba(0, 0, 0, .16);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #edf2eb;
  --bg-deep: #e3ebe2;
  --surface: #f8faf5;
  --surface-2: #e6eee4;
  --surface-glass: rgba(248, 250, 245, .82);
  --ink: #102019;
  --muted: #5f7066;
  --muted-2: #7b8b81;
  --line: rgba(16, 45, 31, .12);
  --line-strong: rgba(16, 45, 31, .23);
  --lime: #bde84e;
  --lime-ink: #14200f;
  --emerald: #10a86d;
  --emerald-deep: #08764b;
  --danger: #b5362c;
  --shadow: 0 24px 70px rgba(23, 50, 34, .12);
  --soft-shadow: 0 12px 34px rgba(23, 50, 34, .09);
  color-scheme: light;
}

html[data-theme="contrast"] {
  --bg: #000;
  --bg-deep: #000;
  --surface: #000;
  --surface-2: #090909;
  --surface-glass: #000;
  --ink: #fff;
  --muted: #fff;
  --muted-2: #fff;
  --line: #fff;
  --line-strong: #fff;
  --lime: #ffed00;
  --lime-ink: #000;
  --emerald: #ffed00;
  --emerald-deep: #ffed00;
  --danger: #fff;
  --nav: #000;
  --nav-ink: #fff;
  --shadow: none;
  --soft-shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size:80%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
  font-size: .875rem;
  font-weight: 450;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 999; top: 10px; left: 10px; padding: 11px 15px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); transform: translateY(-140%); transition: transform .18s ease; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.future-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100svh;
  overflow: clip;
  background:
    radial-gradient(900px 600px at var(--spot-x, 62%) var(--spot-y, 18%), color-mix(in srgb, var(--emerald) 8%, transparent), transparent 67%),
    var(--bg);
}
.ambient { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(10px); opacity: .5; }
.ambient-one { width: 32rem; height: 32rem; right: -12rem; top: -14rem; background: radial-gradient(circle, color-mix(in srgb, var(--emerald) 18%, transparent), transparent 69%); animation: ambient-drift 12s ease-in-out infinite alternate; }
.ambient-two { width: 25rem; height: 25rem; left: 36%; bottom: -16rem; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 10%, transparent), transparent 70%); animation: ambient-drift 16s ease-in-out -4s infinite alternate-reverse; }

.nav-panel {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100svh;
  padding: 27px 22px 21px;
  overflow: hidden;
  color: var(--nav-ink);
  background:
    radial-gradient(320px 260px at 25% -5%, rgba(44, 224, 151, .16), transparent 72%),
    linear-gradient(165deg, #061b14 0%, var(--nav) 55%, #06110d 100%);
  border-right: 1px solid rgba(231, 255, 237, .08);
}
.nav-panel::after { content: ""; position: absolute; inset: auto -65px -80px auto; width: 210px; height: 210px; border: 1px solid rgba(216, 255, 114, .08); border-radius: 50%; box-shadow: 0 0 0 38px rgba(216, 255, 114, .025), 0 0 0 76px rgba(216, 255, 114, .018); pointer-events: none; }
.future-brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; width: max-content; color: var(--ink); font-size: 1.28rem; font-weight: 760; letter-spacing: -.055em; }
.future-brand small { display: block; margin-top: -1px; color: var(--muted-2); font-size:.875rem; font-weight: 700; letter-spacing: .19em; }
.future-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(223, 255, 232, .13); border-radius: 13px; background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.025)); color: var(--emerald); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.future-mark svg { width: 21px; height: 21px; }
.nav-panel .future-brand { color: var(--nav-ink); }
.nav-panel .future-brand small { color: #668376; }
.nav-context { margin: 41px 2px 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(223, 255, 232, .09); }
.nav-context span, .nav-progress span { display: block; color: #5f796d; font-size:.875rem; font-weight: 750; letter-spacing: .18em; }
.nav-context strong { display: block; margin-top: 5px; overflow: hidden; color: #c9d4cd; font-size:.875rem; font-weight: 570; text-overflow: ellipsis; white-space: nowrap; }
.future-nav { display: grid; gap: 6px; }
.future-nav > * { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 22px; align-items: center; min-height: 46px; padding: 0 11px; border-radius: 14px; color: #718b7f; font-size:.875rem; font-weight: 610; transition: color .2s ease, background .2s ease, transform .2s ease; }
.future-nav > * svg { width: 17px; height: 17px; }
.future-nav > * small { color: #3f5d50; font-size:.875rem; font-weight: 680; letter-spacing: .08em; text-align: right; }
.future-nav > a:hover { color: #eaf2ed; background: rgba(255,255,255,.045); transform: translateX(2px); }
.future-nav > .active { color: #f6fbf7; background: linear-gradient(90deg, rgba(57, 227, 157, .16), rgba(255,255,255,.035)); box-shadow: inset 0 0 0 1px rgba(109, 239, 184, .08); }
.future-nav > .active::before { content: ""; position: absolute; left: -22px; width: 3px; height: 24px; border-radius: 0 4px 4px 0; background: var(--lime); box-shadow: 0 0 18px rgba(216, 255, 114, .75); }
.future-nav > .active svg, .future-nav > .active small { color: var(--lime); }
.nav-progress { position: relative; z-index: 2; margin-top: auto; padding: 20px 2px 18px; border-top: 1px solid rgba(223, 255, 232, .09); }
.nav-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nav-progress strong { color: #c7d5cc; font-size:.875rem; font-weight: 650; }
.progress-track { height: 3px; margin: 13px 0 12px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.075); }
.progress-track i { display: block; width: 20%; height: 100%; background: linear-gradient(90deg, var(--emerald), var(--lime)); box-shadow: 0 0 12px rgba(216, 255, 114, .45); }
.nav-progress p { margin: 0; color: #668074; font-size:.875rem; line-height: 1.6; }
.nav-license { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; min-height: 51px; padding: 10px 11px; border: 1px solid rgba(223, 255, 232, .09); border-radius: 15px; background: rgba(255,255,255,.025); }
.pulse-dot, .live-dot, .live i { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 5px rgba(55, 227, 157, .08), 0 0 16px rgba(55, 227, 157, .4); animation: signal 2.8s ease-in-out infinite; }
.nav-license strong { display: block; color: #dce6df; font-size:.875rem; font-weight: 620; }
.nav-license small { display: block; margin-top: 2px; color: #5f796d; font-size:.875rem; }
.nav-backdrop { display: none; }
body.menu-open { overflow: hidden; }

.future-stage { min-width: 0; }
.commandbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; padding: 12px clamp(20px, 3vw, 46px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(20px) saturate(130%); }
.command-title { min-width: 0; }
.command-title > span { display: block; color: var(--emerald); font-size:.875rem; font-weight: 760; letter-spacing: .19em; }
.command-title > strong { display: block; margin-top: 2px; overflow: hidden; color: var(--ink); font-size:.875rem; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.command-actions { display: flex; align-items: center; gap: 12px; }
.preferences { display: flex; align-items: center; gap: 7px; }
.preferences label { display: block; }
.preferences select { min-height: 35px; max-width: 132px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background-color: color-mix(in srgb, var(--surface) 80%, transparent); font-size:.875rem; font-weight: 600; outline: none; }
.preferences select:hover { border-color: var(--line-strong); color: var(--ink); }
.user-chip { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 5px 11px 5px 5px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface) 78%, transparent); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; color: #092116; background: linear-gradient(135deg, var(--lime), var(--emerald)); font-size:.875rem; font-weight: 780; }
.user-chip > span:last-child { max-width: 150px; overflow: hidden; color: var(--ink); font-size:.875rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { display: block; color: var(--muted-2); font-size:.875rem; font-weight: 500; }
.command-actions form { display: flex; }
.logout, .mobile-nav { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: color-mix(in srgb, var(--surface) 70%, transparent); transition: color .18s ease, border-color .18s ease, background .18s ease; }
.logout:hover, .mobile-nav:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.logout svg, .mobile-nav svg { width: 17px; height: 17px; }
.mobile-nav { display: none; }

.future-content { width: min(1540px, 100%); margin: 0 auto; padding: clamp(18px, 2.5vw, 38px) clamp(18px, 3vw, 46px) 0; }
.day-space { display: grid; grid-template-columns: minmax(0, 1.66fr) minmax(285px, .64fr); gap: 16px; align-items: stretch; }
.day-canvas { --tilt-x: 0px; --tilt-y: 0px; position: relative; isolation: isolate; min-height: 610px; overflow: hidden; border-radius: 5px 90px 22px 54px; background: #081813; box-shadow: var(--shadow); }
.day-canvas::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(5,15,11,.98) 0%, rgba(5,17,12,.90) 35%, rgba(5,17,12,.37) 67%, rgba(5,17,12,.13) 100%), linear-gradient(0deg, rgba(3,11,8,.68), transparent 50%); }
.day-canvas::after { content: ""; position: absolute; z-index: 2; width: 420px; height: 420px; right: -150px; top: -160px; border: 1px solid rgba(216, 255, 114, .12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(216,255,114,.025), 0 0 0 110px rgba(216,255,114,.018); }
.day-canvas > img { position: absolute; z-index: 0; inset: -3%; width: 106%; height: 106%; object-fit: cover; object-position: 58% center; filter: saturate(.92) contrast(1.04); transform: translate3d(var(--tilt-x), var(--tilt-y), 0) scale(1.06); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hero-mesh { position: absolute; z-index: 2; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(90deg, #000, transparent 69%); }
.day-copy { position: relative; z-index: 4; display: flex; flex-direction: column; justify-content: center; min-height: 610px; width: min(64%, 660px); padding: 64px clamp(32px, 5vw, 75px); color: #f4f7ef; }
.future-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); font-size:.875rem; font-weight: 760; letter-spacing: .2em; }
.future-kicker > i { width: 20px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.day-copy h1 { margin: 24px 0 20px; color: #f5f7ef; font-size: clamp(3.5rem, 5.25vw, 6.6rem); font-weight: 650; letter-spacing: -.075em; line-height: .86; }
.day-copy h1 > span { color: var(--lime); }
.day-copy h1 em { color: #b9c9be; font-family: Georgia, "Times New Roman", serif; font-size: .62em; font-weight: 400; letter-spacing: -.055em; line-height: 1.1; }
.day-copy p { max-width: 430px; margin: 0 0 31px; color: #9eafa4; font-size:.875rem; line-height: 1.75; }
.future-cta { display: inline-flex; align-items: center; gap: 14px; width: max-content; color: #f0f6f2; font-size:.875rem; font-weight: 680; letter-spacing: .02em; }
.future-cta > span { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; color: var(--lime-ink); background: var(--lime); box-shadow: 0 0 24px rgba(216,255,114,.22); transition: transform .2s ease, box-shadow .2s ease; }
.future-cta:hover > span { transform: translateX(4px); box-shadow: 0 0 34px rgba(216,255,114,.38); }
.future-cta svg { width: 15px; height: 15px; }
.orbit-label { position: absolute; z-index: 4; display: flex; align-items: center; gap: 7px; color: rgba(236, 244, 239, .74); font-size:.875rem; letter-spacing: .07em; }
.orbit-label::before { content: ""; position: absolute; top: 50%; right: calc(100% + 8px); width: 32px; height: 1px; background: rgba(216,255,114,.35); }
.orbit-label span { color: var(--lime); font-size:.875rem; }
.orbit-label strong { font-weight: 560; }
.orbit-a { top: 23%; right: 7%; }
.orbit-b { top: 48%; right: 3.5%; }
.orbit-c { right: 10%; bottom: 17%; }
.hero-signature, .login-stamp { position: absolute; z-index: 4; right: 5%; bottom: 5%; display: flex; align-items: center; gap: 9px; color: rgba(240, 246, 242, .5); font-size:.875rem; font-weight: 600; letter-spacing: .06em; line-height: 1.4; }
.hero-signature svg, .login-stamp svg { width: 22px; height: 22px; color: var(--lime); }

.today-panel { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 610px; padding: 29px 29px 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 58px 7px 38px 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-2) 75%, transparent)); box-shadow: var(--soft-shadow); }
.today-panel::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 75% 32%, color-mix(in srgb, var(--emerald) 13%, transparent), transparent 34%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: auto, 40px 40px, 40px 40px; mask-image: linear-gradient(#000 0 70%, transparent); }
.signal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted-2); font-size:.875rem; font-weight: 760; letter-spacing: .16em; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--emerald); letter-spacing: .08em; }
.live i { width: 5px; height: 5px; }
.hello { margin-top: 34px; }
.hello > span { color: var(--muted); font-size:.875rem; }
.hello h2 { margin: 2px 0 0; color: var(--ink); font-size: clamp(1.75rem, 2.5vw, 2.55rem); font-weight: 620; letter-spacing: -.055em; line-height: 1.02; overflow-wrap: anywhere; }
.hello h2 b { color: var(--lime); }
.focus-orbit { position: relative; display: grid; place-items: center; width: 205px; height: 205px; margin: 30px auto 24px; }
.ring { position: absolute; border: 1px solid color-mix(in srgb, var(--emerald) 22%, transparent); border-radius: 50%; }
.ring-one { inset: 14px; animation: orbit-spin 18s linear infinite; }
.ring-two { inset: 40px; border-style: dashed; opacity: .7; animation: orbit-spin 14s linear infinite reverse; }
.core { display: grid; place-items: center; width: 73px; height: 73px; border: 1px solid color-mix(in srgb, var(--emerald) 34%, transparent); border-radius: 28px; color: var(--lime); background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 32%), color-mix(in srgb, var(--surface-2) 88%, var(--emerald)); box-shadow: 0 0 40px color-mix(in srgb, var(--emerald) 18%, transparent), inset 0 1px 0 rgba(255,255,255,.14); transform: rotate(8deg); }
.core svg { width: 30px; height: 30px; transform: rotate(-8deg); }
.satellite { position: absolute; width: 7px; height: 7px; border: 2px solid var(--surface); border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(216,255,114,.6); }
.sat-one { top: 18px; right: 53px; }
.sat-two { left: 29px; bottom: 53px; background: var(--emerald); }
.signal-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.signal-list li { display: grid; grid-template-columns: 14px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 37px; border-top: 1px solid var(--line); color: var(--muted); font-size:.875rem; }
.signal-list i { width: 6px; height: 6px; border: 1px solid var(--muted-2); border-radius: 50%; }
.signal-list i.done { border: 0; background: var(--emerald); box-shadow: 0 0 10px color-mix(in srgb, var(--emerald) 60%, transparent); }
.signal-list strong { color: var(--ink); font-size:.875rem; font-weight: 600; }
.signal-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 21px; color: var(--muted-2); font-size:.875rem; font-weight: 690; letter-spacing: .13em; }

.day-flow { position: relative; display: grid; grid-template-columns: .7fr repeat(4, minmax(125px,1fr)) .45fr; align-items: center; gap: 18px; min-height: 97px; margin: 14px 0 clamp(58px, 7vw, 105px); padding: 19px 4px; border-bottom: 1px solid var(--line); }
.day-flow::before { content: ""; position: absolute; top: 50%; left: 13%; right: 8%; height: 1px; background: var(--line); }
.flow-title, .flow-end { position: relative; z-index: 1; color: var(--muted-2); font-size:.875rem; font-weight: 730; letter-spacing: .18em; background: var(--bg); }
.flow-end { text-align: right; }
.day-flow > div { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; padding: 0 8px; background: var(--bg); }
.day-flow > div > i { width: 8px; height: 8px; border: 1px solid var(--muted-2); border-radius: 50%; background: var(--bg); }
.day-flow > div > i.active { border: 0; background: var(--lime); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lime) 8%, transparent), 0 0 14px color-mix(in srgb, var(--lime) 55%, transparent); }
.day-flow > div > span { color: var(--ink); font-size:.875rem; font-weight: 610; }
.day-flow > div strong { display: block; margin-top: 1px; color: var(--muted-2); font-size:.875rem; font-weight: 540; }

.system-map { display: grid; grid-template-columns: minmax(220px,.78fr) minmax(245px,.85fr) minmax(390px,1.45fr); gap: clamp(24px, 3vw, 52px); align-items: stretch; scroll-margin-top: 95px; }
.map-intro { padding-top: 16px; }
.map-intro h2 { margin: 22px 0 17px; color: var(--ink); font-size: clamp(2.35rem, 4vw, 4.9rem); font-weight: 620; letter-spacing: -.07em; line-height: .94; }
.map-intro h2 em { color: var(--emerald); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.map-intro p { max-width: 330px; margin: 0; color: var(--muted); font-size:.875rem; line-height: 1.75; }
.module-switcher { display: grid; align-content: start; }
.module-tab { position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr); grid-template-rows: auto auto; gap: 0 10px; min-height: 80px; padding: 15px 8px; border: 0; border-bottom: 1px solid var(--line); color: var(--muted-2); background: transparent; text-align: left; transition: color .2s ease, padding .25s ease; }
.module-tab::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--lime); box-shadow: 0 0 10px color-mix(in srgb, var(--lime) 60%, transparent); transition: width .25s ease; }
.module-tab > span { grid-row: 1 / span 2; align-self: center; font-size:.875rem; font-weight: 680; }
.module-tab strong { color: inherit; font-size: 1.1rem; font-weight: 590; letter-spacing: -.035em; }
.module-tab small { color: var(--muted-2); font-size:.875rem; }
.module-tab:hover { color: var(--ink); padding-left: 14px; }
.module-tab.active { padding-left: 31px; color: var(--ink); }
.module-tab.active::before { width: 21px; }
.module-tab.active > span, .module-tab.active small { color: var(--emerald); }

.module-lens { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(210px,.86fr) minmax(210px,1fr); min-height: 495px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px 66px 22px 42px; background: linear-gradient(145deg, var(--surface), var(--surface-2)); box-shadow: var(--soft-shadow); }
.module-lens::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 76% 42%, color-mix(in srgb, var(--emerald) 15%, transparent), transparent 37%); transition: background .3s ease; }
.module-lens[data-active-module="food"]::after { background: radial-gradient(circle at 76% 42%, rgba(216,255,114,.15), transparent 37%); }
.module-lens[data-active-module="intendent"]::after { background: radial-gradient(circle at 76% 42%, rgba(116,185,255,.15), transparent 37%); }
.module-lens[data-active-module="reports"]::after { background: radial-gradient(circle at 76% 42%, rgba(202,142,255,.15), transparent 37%); }
.module-lens[data-active-module="admin"]::after { background: radial-gradient(circle at 76% 42%, rgba(255,180,111,.14), transparent 37%); }
.lens-copy { display: flex; flex-direction: column; padding: 39px 17px 33px 36px; }
.lens-number { color: var(--emerald); font-size:.875rem; font-weight: 760; letter-spacing: .18em; }
.future-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-top: 40px; border: 1px solid var(--line-strong); border-radius: 15px; color: var(--lime); background: rgba(255,255,255,.035); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.future-icon svg { width: 21px; height: 21px; }
.lens-copy h3 { margin: 18px 0 12px; color: var(--ink); font-size: clamp(2rem, 3vw, 3.25rem); font-weight: 620; letter-spacing: -.065em; line-height: .94; }
.lens-copy p { margin: 0; color: var(--muted); font-size:.875rem; line-height: 1.72; }
.lens-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0; }
.lens-tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size:.875rem; }
.lens-status { margin-top: auto; color: var(--emerald); font-size:.875rem; font-weight: 650; }
.lens-visual { position: relative; min-height: 100%; overflow: hidden; }
.lens-grid { position: absolute; inset: 0; opacity: .26; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle at 50% 52%, #000 0 35%, transparent 76%); }
.lens-orbit { position: absolute; left: 50%; top: 50%; width: 245px; height: 245px; border: 1px solid color-mix(in srgb, var(--emerald) 24%, transparent); border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); animation: orbit-spin-center 20s linear infinite; }
.lens-orbit::before, .lens-orbit::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.lens-orbit::before { inset: 30px; }
.lens-orbit::after { inset: 73px; border-style: dashed; }
.lens-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px color-mix(in srgb, var(--lime) 60%, transparent); }
.lens-orbit i:nth-child(1) { top: 14px; left: 51px; }
.lens-orbit i:nth-child(2) { right: -2px; top: 119px; background: var(--emerald); }
.lens-orbit i:nth-child(3) { left: 43px; bottom: 9px; background: var(--muted-2); }
.cube { position: absolute; z-index: 2; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--emerald) 28%, transparent); color: var(--lime); background: linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 88%, var(--emerald)), var(--surface)); box-shadow: 18px 24px 45px rgba(0,0,0,.25), inset 1px 1px 0 rgba(255,255,255,.12); }
.cube-a { left: calc(50% - 52px); top: calc(50% - 58px); width: 105px; height: 105px; border-radius: 32px; transform: rotate(12deg); }
.cube-a svg { width: 45px; height: 45px; transform: rotate(-12deg); stroke-width: 1.1; }
.cube-b { left: calc(50% + 40px); top: calc(50% + 49px); width: 58px; height: 58px; border-radius: 20px; transform: rotate(-12deg); }
.cube-b svg { width: 24px; height: 24px; transform: rotate(12deg); }
.lens-caption { position: absolute; right: 23px; bottom: 22px; color: var(--muted-2); font-size:.875rem; font-weight: 700; letter-spacing: .16em; }

.future-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; margin-top: clamp(70px, 8vw, 120px); padding: 28px 0 32px; border-top: 1px solid var(--line); color: var(--muted-2); font-size:.875rem; }
.future-footer > span:nth-child(2) { text-align: center; }
.future-brand.small { gap: 8px; font-size: .88rem; }
.future-brand.small .future-mark { width: 28px; height: 28px; border-radius: 9px; }
.future-brand.small .future-mark svg { width: 15px; height: 15px; }
.future-brand.small small { font-size:.875rem; }
.mobile-dock { display: none; }

/* Login */
.future-login { --spot-x: 70%; --spot-y: 30%; position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(390px, .7fr); grid-template-rows: auto 1fr auto; min-height: 100svh; overflow: hidden; color: #f4f7ef; background: #06130e; }
.future-login::before { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: radial-gradient(520px 420px at var(--spot-x) var(--spot-y), rgba(216,255,114,.07), transparent 65%); }
.login-canvas { position: absolute; z-index: -3; inset: -3%; width: 106%; height: 106%; object-fit: cover; object-position: 56% 50%; filter: saturate(.88) contrast(1.06); }
.login-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(3,13,9,.97) 0%, rgba(4,17,12,.82) 39%, rgba(4,15,11,.38) 64%, rgba(3,11,8,.70) 100%), linear-gradient(0deg, rgba(3,12,8,.76), transparent 56%); }
.login-grid { position: absolute; z-index: -1; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, #000, transparent 72%); }
.login-head { position: relative; z-index: 5; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(23px, 3vw, 46px) clamp(25px, 4vw, 68px); }
.future-brand.light { color: #f4f7ef; }
.future-brand.light small { color: #7f978b; }
.login-head-tools { display: flex; align-items: center; gap: 16px; }
.login-head-tools > span { color: #91a399; font-size:.875rem; font-weight: 700; letter-spacing: .15em; }
.future-login .preferences select { color: #b8c5bd; background-color: rgba(7,23,17,.68); border-color: rgba(230,255,238,.13); }
.login-manifesto { position: relative; z-index: 3; align-self: center; max-width: 820px; padding: 50px clamp(28px, 6vw, 105px) 86px; }
.login-manifesto h1 { margin: 29px 0 23px; color: #f5f7ef; font-size: clamp(4.4rem, 7vw, 8.8rem); font-weight: 640; letter-spacing: -.082em; line-height: .82; }
.login-manifesto h1 em { color: var(--lime); font-family: Georgia, "Times New Roman", serif; font-size: .68em; font-weight: 400; letter-spacing: -.06em; }
.login-manifesto > p { max-width: 455px; margin: 0; color: #9bada1; font-size:.875rem; line-height: 1.8; }
.manifesto-flow { display: flex; flex-wrap: wrap; gap: 9px 24px; margin-top: 37px; color: #b8c6bd; font-size:.875rem; font-weight: 570; }
.manifesto-flow span { display: inline-flex; align-items: center; gap: 7px; }
.manifesto-flow i { color: var(--lime); font-style: normal; font-size:.875rem; }
.access-capsule { position: relative; z-index: 5; align-self: center; width: min(440px, calc(100% - 48px)); margin: 24px auto 70px; padding: 26px 31px 28px; overflow: hidden; border: 1px solid rgba(230,255,238,.16); border-radius: 52px 9px 38px 24px; background: rgba(7,24,17,.82); box-shadow: 0 35px 100px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(26px) saturate(120%); }
.access-capsule::before { content: ""; position: absolute; right: -90px; top: -100px; width: 230px; height: 230px; border: 1px solid rgba(216,255,114,.08); border-radius: 50%; box-shadow: 0 0 0 37px rgba(216,255,114,.018), 0 0 0 74px rgba(216,255,114,.012); pointer-events: none; }
.capsule-head { position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 11px; padding-bottom: 22px; border-bottom: 1px solid rgba(230,255,238,.11); }
.access-symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; color: var(--lime); background: rgba(216,255,114,.08); }
.access-symbol svg { width: 18px; height: 18px; }
.capsule-head div > span { display: block; color: #71897d; font-size:.875rem; font-weight: 760; letter-spacing: .16em; }
.capsule-head div > strong { display: block; max-width: 270px; margin-top: 3px; overflow: hidden; color: #d9e2dc; font-size:.875rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.capsule-copy { padding: 29px 0 22px; }
.capsule-copy h2 { margin: 0; color: #f5f7ef; font-size: 2.35rem; font-weight: 630; letter-spacing: -.065em; }
.capsule-copy h2 span { color: var(--lime); }
.capsule-copy p { margin: 6px 0 0; color: #82978b; font-size:.875rem; }
.error { margin: 0 0 15px; padding: 11px 13px; border: 1px solid rgba(255,121,105,.35); border-radius: 12px; color: #ffd2cc; background: rgba(152,42,31,.18); font-size:.875rem; }
.future-form { display: grid; gap: 15px; }
.future-form > label > span { display: block; margin-bottom: 7px; color: #aab9b0; font-size:.875rem; font-weight: 610; }
.future-form input { width: 100%; height: 49px; padding: 0 14px; border: 1px solid rgba(230,255,238,.14); border-radius: 14px; color: #f5f7ef; background: rgba(255,255,255,.035); outline: none; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.future-form input::placeholder { color: #5e766a; }
.future-form input:focus { border-color: rgba(216,255,114,.65); background: rgba(255,255,255,.055); box-shadow: 0 0 0 4px rgba(216,255,114,.07); }
.future-password { position: relative; }
.future-password input { padding-right: 67px; }
.password-toggle { position: absolute; top: 50%; right: 8px; min-width: 53px; height: 33px; padding: 0 8px; border: 0; border-radius: 10px; color: #9caf9f; background: rgba(255,255,255,.05); font-size:.875rem; font-weight: 630; transform: translateY(-50%); }
.password-toggle:hover { color: #f4f7ef; background: rgba(255,255,255,.09); }
.future-submit { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 61px; margin-top: 5px; padding: 7px 8px 7px 17px; border: 0; border-radius: 17px; color: var(--lime-ink); background: linear-gradient(105deg, var(--lime), #aeea52 58%, var(--emerald)); box-shadow: 0 12px 30px rgba(134,207,73,.16); font-weight: 690; text-align: left; transition: transform .18s ease, box-shadow .18s ease; }
.future-submit:hover { transform: translateY(-2px); box-shadow: 0 17px 40px rgba(134,207,73,.25); }
.future-submit > span { font-size:.875rem; }
.future-submit small { display: block; margin-top: 1px; opacity: .6; font-size:.875rem; font-weight: 580; }
.future-submit > i { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; color: #ddff8b; background: #102b1d; }
.future-submit svg { width: 17px; height: 17px; }
.capsule-foot { display: flex; align-items: center; gap: 9px; margin-top: 21px; color: #71877b; font-size:.875rem; line-height: 1.5; }
.capsule-foot svg { width: 15px; height: 15px; color: #8da397; }
.login-stamp { right: auto; left: clamp(28px, 6vw, 105px); bottom: 38px; }
.login-meta { position: relative; z-index: 5; grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 25px; padding: 0 clamp(25px, 4vw, 68px) 27px; color: #64796e; font-size:.875rem; font-weight: 650; letter-spacing: .12em; }

html[data-theme="light"] .day-canvas,
html[data-theme="light"] .future-login { --ink: #f4f7ef; --muted: #a8b7ae; }
html[data-theme="light"] .today-panel { background: linear-gradient(160deg, rgba(255,255,252,.92), rgba(229,239,229,.86)); }
html[data-theme="light"] .module-lens { background: linear-gradient(145deg, #f9fbf6, #e0ebe1); }
html[data-theme="light"] .cube { background: linear-gradient(145deg, #fafff6, #bfdcc7); box-shadow: 18px 24px 45px rgba(46,77,58,.18), inset 1px 1px 0 #fff; }

html[data-theme="contrast"] .ambient,
html[data-theme="contrast"] .day-canvas > img,
html[data-theme="contrast"] .hero-mesh,
html[data-theme="contrast"] .focus-orbit,
html[data-theme="contrast"] .lens-visual,
html[data-theme="contrast"] .login-canvas,
html[data-theme="contrast"] .login-grid,
html[data-theme="contrast"] .login-shade,
html[data-theme="contrast"] .access-capsule::before,
html[data-theme="contrast"] .day-canvas::after,
html[data-theme="contrast"] .nav-panel::after { display: none; }
html[data-theme="contrast"] .day-canvas,
html[data-theme="contrast"] .today-panel,
html[data-theme="contrast"] .module-lens,
html[data-theme="contrast"] .access-capsule { border: 2px solid #fff; background: #000; }
html[data-theme="contrast"] .day-canvas::before { background: #000; }
html[data-theme="contrast"] .future-login { background: #000; }
html[data-theme="contrast"] .future-form input,
html[data-theme="contrast"] .preferences select { border: 2px solid #fff; color: #fff; background: #000; }
html[data-theme="contrast"] .error { border: 2px solid #fff; color: #fff; background: #000; }

@keyframes signal { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .62; transform: scale(.82); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-center { from { transform: translate(-50%, -50%) rotate(-18deg); } to { transform: translate(-50%, -50%) rotate(342deg); } }
@keyframes ambient-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-28px,18px,0) scale(1.08); } }

@media (min-width: 1720px) {
  .day-canvas, .today-panel, .day-copy { min-height: 675px; }
  .day-copy { width: min(63%, 720px); }
  .module-lens { min-height: 540px; }
}

@media (max-width: 1280px) {
  .future-shell { grid-template-columns: 224px minmax(0,1fr); }
  .nav-panel { padding-inline: 16px; }
  .future-nav > .active::before { left: -16px; }
  .day-space { grid-template-columns: minmax(0,1.5fr) minmax(268px,.65fr); }
  .day-canvas, .day-copy, .today-panel { min-height: 560px; }
  .day-copy { width: 69%; padding-inline: 43px; }
  .orbit-label { display: none; }
  .system-map { grid-template-columns: minmax(200px,.7fr) minmax(210px,.78fr) minmax(360px,1.4fr); gap: 25px; }
  .module-lens { grid-template-columns: 1fr 1fr; }
  .lens-copy { padding-left: 29px; }
}

@media (max-width: 1080px) {
  .future-shell { grid-template-columns: 82px minmax(0,1fr); }
  .nav-panel { align-items: center; padding: 25px 12px 18px; }
  .nav-panel .future-brand > span:last-child,
  .nav-context,
  .future-nav > * > span,
  .future-nav > * > small,
  .nav-progress,
  .nav-license div { display: none; }
  .future-nav { width: 100%; margin-top: 43px; }
  .future-nav > * { grid-template-columns: 1fr; place-items: center; padding: 0; }
  .future-nav > .active::before { left: -12px; }
  .nav-license { width: 46px; justify-content: center; margin-top: auto; padding: 0; }
  .day-space { grid-template-columns: minmax(0,1fr); }
  .day-canvas, .day-copy { min-height: 590px; }
  .today-panel { display: grid; grid-template-columns: 1fr auto 1fr; min-height: auto; padding: 25px; border-radius: 38px 7px 30px 16px; }
  .signal-head { grid-column: 1 / -1; }
  .hello { align-self: center; margin: 20px 0; }
  .focus-orbit { width: 150px; height: 150px; margin: 12px 25px; }
  .ring-one { inset: 8px; }
  .ring-two { inset: 30px; }
  .signal-list { align-self: center; min-width: 220px; }
  .signal-foot { grid-column: 1 / -1; }
  .day-flow { grid-template-columns: auto repeat(4,1fr) auto; gap: 9px; }
  .system-map { grid-template-columns: minmax(220px,.65fr) minmax(0,1.35fr); }
  .map-intro { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; align-items: end; gap: 24px; }
  .map-intro .future-kicker { grid-column: 1 / -1; }
  .map-intro h2 { margin-bottom: 0; }
  .map-intro p { padding-bottom: 4px; }
}

@media (max-width: 820px) {
  .future-shell { display: block; overflow: visible; }
  .nav-panel { position: fixed; z-index: 60; top: 0; left: 0; align-items: stretch; width: min(290px, 86vw); height: 100svh; padding: 27px 22px 21px; transform: translateX(-105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 25px 0 80px rgba(0,0,0,.42); }
  .nav-open .nav-panel { transform: none; }
  .nav-panel .future-brand > span:last-child,
  .nav-context,
  .future-nav > * > span,
  .future-nav > * > small,
  .nav-progress,
  .nav-license div { display: block; }
  .nav-context { display: block; }
  .future-nav { margin-top: 0; }
  .future-nav > * { grid-template-columns: 30px minmax(0,1fr) 22px; place-items: initial; padding: 0 11px; }
  .future-nav > .active::before { left: -22px; }
  .nav-progress { display: block; }
  .nav-license { width: auto; justify-content: flex-start; padding: 10px 11px; }
  .nav-backdrop { position: fixed; z-index: 55; inset: 0; display: block; padding: 0; border: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .commandbar { padding-inline: 18px; }
  .mobile-nav { display: grid; }
  .command-title { margin-right: auto; }
  .command-actions .user-chip { display: none; }
  .command-actions > form { display: none; }
  .preferences select { max-width: 105px; }
  .future-content { padding-inline: 16px; padding-bottom: 92px; }
  .day-flow { grid-template-columns: 1fr 1fr; gap: 0; padding: 12px 0; }
  .day-flow::before { display: none; }
  .flow-title, .flow-end { display: none; }
  .day-flow > div { width: 100%; min-height: 59px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .system-map { grid-template-columns: 1fr; }
  .map-intro { display: block; grid-column: auto; }
  .map-intro h2 { margin-bottom: 17px; }
  .module-switcher { grid-template-columns: repeat(5, minmax(0,1fr)); overflow-x: auto; scrollbar-width: none; }
  .module-switcher::-webkit-scrollbar { display: none; }
  .module-tab { display: flex; align-items: center; justify-content: center; min-width: 116px; min-height: 62px; padding: 10px; text-align: center; }
  .module-tab > span, .module-tab small { display: none; }
  .module-tab strong { font-size:.875rem; }
  .module-tab.active, .module-tab:hover { padding-left: 10px; }
  .module-tab::before { left: 50%; top: auto; bottom: -1px; transform: translateX(-50%); }
  .module-tab.active::before { width: 55%; }
  .future-footer { grid-template-columns: 1fr auto; }
  .future-footer > span:nth-child(2) { display: none; }
  .mobile-dock { position: fixed; z-index: 40; left: 50%; bottom: 12px; display: grid; grid-template-columns: repeat(4,1fr); width: min(430px, calc(100% - 24px)); padding: 6px; border: 1px solid var(--line-strong); border-radius: 20px; background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: 0 16px 50px rgba(0,0,0,.3); backdrop-filter: blur(22px); transform: translateX(-50%); }
  .mobile-dock a, .mobile-dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 49px; padding: 4px; border: 0; border-radius: 14px; color: var(--muted); background: transparent; font-size:.875rem; }
  .mobile-dock svg { width: 17px; height: 17px; }
  .mobile-dock .active { color: var(--lime-ink); background: var(--lime); }
  .mobile-dock form, .mobile-dock form button { width: 100%; }
  .future-login { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; overflow: visible; }
  .login-head { padding: 23px 22px; }
  .login-manifesto { align-self: start; padding: 45px 24px 35px; }
  .login-manifesto h1 { font-size: clamp(3.7rem, 12vw, 6rem); }
  .access-capsule { grid-row: 3; width: min(520px, calc(100% - 32px)); margin: 15px auto 92px; }
  .login-stamp { display: none; }
  .login-meta { grid-row: 4; justify-content: center; flex-wrap: wrap; padding-bottom: 25px; }
}

@media (max-width: 560px) {
  .commandbar { min-height: 66px; gap: 9px; }
  .command-title > strong { max-width: 130px; }
  .command-title > span { font-size:.875rem; }
  .command-actions { gap: 6px; }
  .preferences label:first-child select { width: 83px; }
  .preferences label:last-child { display: none; }
  .day-canvas, .day-copy { min-height: 620px; }
  .day-canvas { border-radius: 4px 52px 18px 34px; }
  .day-canvas::before { background: linear-gradient(0deg, rgba(3,13,9,.98) 0%, rgba(4,16,11,.79) 58%, rgba(4,16,11,.28) 100%); }
  .day-canvas > img { object-position: 67% 14%; height: 62%; }
  .hero-mesh { mask-image: linear-gradient(#000, transparent 64%); }
  .day-copy { justify-content: flex-end; width: 100%; padding: 30px 25px 42px; }
  .day-copy h1 { margin: 18px 0 17px; font-size: clamp(3rem, 14vw, 4.35rem); line-height: .91; }
  .day-copy p { font-size:.875rem; }
  .hero-signature { display: none; }
  .today-panel { display: flex; min-height: 510px; padding: 25px 22px; }
  .hello { margin-top: 29px; }
  .focus-orbit { width: 165px; height: 165px; margin: 23px auto 18px; }
  .signal-list { width: 100%; min-width: 0; }
  .system-map { gap: 18px; }
  .map-intro h2 { font-size: 2.75rem; }
  .module-lens { grid-template-columns: 1fr; min-height: 620px; border-radius: 7px 45px 20px 31px; }
  .lens-copy { position: relative; z-index: 2; min-height: 360px; padding: 29px 27px; }
  .future-icon { margin-top: 25px; }
  .lens-visual { min-height: 260px; }
  .future-footer { margin-top: 65px; }
  .future-brand.small > span:last-child { display: none; }
  .login-head .future-brand > span:last-child { display: none; }
  .login-head-tools { gap: 8px; }
  .login-head-tools > span { display: none; }
  .future-login .preferences label:last-child { display: none; }
  .login-manifesto { padding-top: 55px; }
  .login-manifesto h1 { margin-top: 21px; font-size: clamp(3.25rem, 15vw, 4.8rem); line-height: .88; }
  .login-manifesto > p { font-size:.875rem; }
  .manifesto-flow { gap: 8px 16px; }
  .access-capsule { padding: 23px 21px 25px; border-radius: 40px 8px 30px 19px; }
  .capsule-copy h2 { font-size: 2.05rem; }
  .future-form input { font-size: 1rem; }
  .login-meta span:nth-child(2) { display: none; }
}

@media (max-width: 375px) {
  .command-title { display: none; }
  .command-actions { margin-left: auto; }
  .day-copy { padding-inline: 21px; }
  .day-copy h1 { font-size: 2.85rem; }
  .module-switcher { grid-template-columns: repeat(5, 108px); }
  .future-footer { gap: 12px; }
  .login-head { padding-inline: 16px; }
  .login-manifesto { padding-inline: 19px; }
  .access-capsule { width: calc(100% - 20px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .day-canvas > img { transform: scale(1.06) !important; }
}

/* ================================================================
   Nutriva Orbit · Modular workspace architecture
   Launcher -> dedicated module shell -> module section
   ================================================================ */
.module-launcher {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: clip;
  background:
    radial-gradient(920px 620px at var(--spot-x, 78%) var(--spot-y, 8%), color-mix(in srgb, var(--emerald) 10%, transparent), transparent 65%),
    linear-gradient(145deg, var(--bg-deep), var(--bg) 42%, color-mix(in srgb, var(--surface) 55%, var(--bg)));
}
.launcher-bar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(180px,1fr) auto;
  align-items: center;
  gap: 30px;
  min-height: 86px;
  padding: 17px clamp(22px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(24px) saturate(125%);
}
.launcher-context { justify-self: start; padding-left: 28px; border-left: 1px solid var(--line); }
.launcher-context span { display:block; color: var(--emerald); font-size:.875rem; font-weight:780; letter-spacing:.18em; }
.launcher-context strong { display:block; margin-top:3px; color:var(--muted); font-size:.875rem; font-weight:580; }
.launcher-actions { display:flex; align-items:center; gap:11px; }
.launcher-main { width:min(1540px, calc(100% - clamp(32px, 7vw, 116px))); margin:0 auto; padding:clamp(52px,6vw,86px) 0 30px; }
.launcher-intro { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr); gap:clamp(36px,6vw,92px); align-items:end; }
.launcher-heading { max-width:900px; }
.launcher-heading h1 { margin:24px 0 23px; color:var(--ink); font-size:clamp(3.5rem,6vw,7.2rem); font-weight:625; letter-spacing:-.078em; line-height:.9; }
.launcher-heading h1 em { color:var(--lime); font-family:Georgia,"Times New Roman",serif; font-size:.67em; font-weight:400; letter-spacing:-.055em; }
.launcher-heading p { max-width:620px; margin:0; color:var(--muted); font-size:.875rem; line-height:1.82; }
.launcher-system-card { position:relative; min-height:235px; padding:25px 26px; overflow:hidden; border:1px solid var(--line-strong); border-radius:44px 8px 34px 18px; background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 90%,transparent),color-mix(in srgb,var(--surface-2) 75%,transparent)); box-shadow:var(--soft-shadow), inset 0 1px 0 rgba(255,255,255,.05); }
.system-orbit { position:absolute; right:-24px; top:-28px; width:174px; height:174px; border:1px solid color-mix(in srgb,var(--emerald) 28%,transparent); border-radius:50%; animation:orbit-spin 22s linear infinite; }
.system-orbit::before,.system-orbit::after { content:""; position:absolute; border:1px solid var(--line); border-radius:50%; }
.system-orbit::before { inset:24px; }.system-orbit::after{inset:55px;border-style:dashed;}
.system-orbit i { position:absolute; width:6px; height:6px; border-radius:50%; background:var(--lime); box-shadow:0 0 13px color-mix(in srgb,var(--lime) 70%,transparent); }
.system-orbit i:nth-child(1){left:28px;top:18px}.system-orbit i:nth-child(2){right:-3px;top:78px;background:var(--emerald)}.system-orbit i:nth-child(3){left:58px;bottom:-2px;background:var(--muted)}
.system-orbit span { position:absolute; inset:61px; display:grid; place-items:center; border-radius:50%; color:var(--emerald); background:var(--surface); transform:rotate(-1turn); animation:orbit-spin 22s linear reverse infinite; }
.system-meta { position:absolute; left:25px; bottom:65px; z-index:2; }
.system-meta > span { display:block; color:var(--emerald); font-size:.875rem; font-weight:790; letter-spacing:.18em; }
.system-meta strong { display:block; margin-top:6px; color:var(--ink); font-size:1.05rem; letter-spacing:-.03em; }
.system-meta small { display:block; margin-top:3px; color:var(--muted-2); font-size:.875rem; }
.license-state { position:absolute; left:25px; bottom:24px; display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.875rem; font-weight:650; }
.license-state i { width:7px; height:7px; border-radius:50%; background:var(--danger); box-shadow:0 0 0 5px color-mix(in srgb,var(--danger) 10%,transparent); }
.license-state.is-active i { background:var(--emerald); box-shadow:0 0 0 5px color-mix(in srgb,var(--emerald) 10%,transparent),0 0 14px color-mix(in srgb,var(--emerald) 35%,transparent); }
.module-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); grid-auto-rows:minmax(260px,auto); gap:15px; margin-top:clamp(48px,6vw,78px); }
.module-card { position:relative; isolation:isolate; display:flex; flex-direction:column; min-height:310px; padding:26px 27px 24px; overflow:hidden; border:1px solid var(--line); border-radius:33px 7px 27px 16px; background:linear-gradient(150deg,color-mix(in srgb,var(--surface) 91%,transparent),color-mix(in srgb,var(--surface-2) 73%,transparent)); box-shadow:inset 0 1px 0 rgba(255,255,255,.035); transition:transform .3s cubic-bezier(.2,.8,.2,1),border-color .3s ease,box-shadow .3s ease; }
.module-card:hover { transform:translateY(-7px); border-color:color-mix(in srgb,var(--lime) 35%,var(--line)); box-shadow:0 28px 65px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.07); }
.module-card-magazyny { grid-column:span 5; min-height:370px; }.module-card-zywienie{grid-column:span 7;min-height:370px}.module-card-intendent{grid-column:span 4}.module-card-raporty{grid-column:span 4}.module-card-administracja{grid-column:span 4}
.module-card::after { content:""; position:absolute; z-index:-1; width:280px; height:280px; right:-130px; bottom:-145px; border-radius:50%; background:radial-gradient(circle,color-mix(in srgb,var(--emerald) 17%,transparent),transparent 67%); transition:transform .4s ease; }
.module-card:hover::after { transform:scale(1.3); }
.module-card-no { color:var(--muted-2); font-size:.875rem; font-weight:780; letter-spacing:.18em; }
.module-card-icon { display:grid; place-items:center; width:51px; height:51px; margin:33px 0 20px; border:1px solid var(--line-strong); border-radius:17px; color:var(--lime); background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.015)); box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }
.module-card-icon svg { width:24px; height:24px; }
.module-card-copy { position:relative; z-index:2; max-width:510px; }
.module-card-copy > span { color:var(--emerald); font-size:.875rem; font-weight:780; letter-spacing:.17em; }
.module-card-copy h2 { margin:7px 0 9px; color:var(--ink); font-size:clamp(2rem,3vw,3.25rem); font-weight:620; letter-spacing:-.065em; line-height:.94; }
.module-card-copy p { margin:0; color:var(--muted); font-size:.875rem; line-height:1.7; }
.module-card-foot { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:auto; padding-top:24px; color:var(--muted-2); font-size:.875rem; font-weight:760; letter-spacing:.14em; }
.module-card-foot i { display:grid; place-items:center; width:34px; height:34px; border-radius:12px; color:var(--lime-ink); background:var(--lime); transition:transform .25s ease; }
.module-card:hover .module-card-foot i { transform:translateX(4px); }
.module-card-foot svg { width:15px; height:15px; }
.module-card-art { position:absolute; right:24px; top:26px; width:106px; height:106px; opacity:.55; }
.module-card-art span { position:absolute; border:1px solid var(--line); border-radius:50%; }
.module-card-art span:nth-child(1){inset:0}.module-card-art span:nth-child(2){inset:20px}.module-card-art span:nth-child(3){inset:42px;border-color:color-mix(in srgb,var(--lime) 45%,transparent);background:color-mix(in srgb,var(--lime) 8%,transparent)}
.launcher-footer { display:flex; justify-content:space-between; gap:24px; margin-top:58px; padding:25px 0 5px; border-top:1px solid var(--line); color:var(--muted-2); font-size:.875rem; letter-spacing:.04em; }

/* Dedicated module shell */
.module-shell { position:relative; isolation:isolate; display:grid; grid-template-columns:280px minmax(0,1fr); min-height:100svh; overflow:clip; background:radial-gradient(850px 560px at var(--spot-x,68%) var(--spot-y,12%),color-mix(in srgb,var(--emerald) 7%,transparent),transparent 65%),var(--bg); }
.module-nav { position:sticky; z-index:30; top:0; display:flex; flex-direction:column; height:100svh; padding:27px 20px 21px; overflow:hidden; color:var(--nav-ink); background:radial-gradient(340px 260px at 20% -5%,rgba(55,227,157,.16),transparent 72%),linear-gradient(165deg,#061b14 0%,var(--nav) 56%,#06110d 100%); border-right:1px solid rgba(231,255,237,.08); }
.module-nav::after { content:""; position:absolute; pointer-events:none; width:220px; height:220px; right:-120px; bottom:-90px; border:1px solid rgba(216,255,114,.07); border-radius:50%; box-shadow:0 0 0 40px rgba(216,255,114,.018),0 0 0 80px rgba(216,255,114,.012); }
.module-back { display:grid; grid-template-columns:24px 1fr auto; align-items:center; gap:8px; min-height:39px; margin:31px 1px 19px; padding:0 10px; border:1px solid rgba(223,255,232,.08); border-radius:12px; color:#8ea499; background:rgba(255,255,255,.018); font-size:.875rem; font-weight:620; transition:color .2s ease,background .2s ease; }
.module-back:hover { color:#eff6f1; background:rgba(255,255,255,.045); }.module-back svg{width:15px;height:15px}.module-back small{color:#476154;font-size:.875rem;letter-spacing:.12em}
.module-identity { padding:17px 3px 20px; border-bottom:1px solid rgba(223,255,232,.09); }
.module-identity > span { color:#5f796d; font-size:.875rem; font-weight:780; letter-spacing:.17em; }
.module-identity > div { display:flex; align-items:center; gap:11px; margin-top:10px; }
.module-identity i { display:grid; place-items:center; width:38px; height:38px; border-radius:13px; color:var(--lime); background:rgba(216,255,114,.07); border:1px solid rgba(216,255,114,.1); }.module-identity i svg{width:18px;height:18px}
.module-identity strong { color:#edf5ef; font-size:1rem; font-weight:650; letter-spacing:-.035em; }
.module-menu { display:grid; gap:3px; margin-top:18px; overflow:auto; scrollbar-width:none; }.module-menu::-webkit-scrollbar{display:none}
.module-menu a { position:relative; display:grid; grid-template-columns:8px minmax(0,1fr) 24px; align-items:center; gap:8px; min-height:42px; padding:0 9px; border-radius:12px; color:#718b7f; font-size:.875rem; font-weight:600; transition:color .18s ease,background .18s ease,transform .18s ease; }
.module-menu a:hover { color:#eaf2ed; background:rgba(255,255,255,.038); transform:translateX(2px); }.module-menu a small{color:#3f5d50;font-size:.875rem;text-align:right}
.module-menu-mark { width:4px; height:4px; border-radius:50%; background:#3b584b; box-shadow:0 0 0 3px rgba(255,255,255,.01); }
.module-menu a.active { color:#f6fbf7; background:linear-gradient(90deg,rgba(55,227,157,.14),rgba(255,255,255,.025)); }.module-menu a.active .module-menu-mark{background:var(--lime);box-shadow:0 0 10px rgba(216,255,114,.55)}.module-menu a.active small{color:var(--lime)}
.module-nav-foot { position:relative; z-index:2; margin-top:auto; padding-top:17px; border-top:1px solid rgba(223,255,232,.09); }
.module-context-chip { display:flex; align-items:center; gap:10px; min-height:53px; padding:9px 10px; border:1px solid rgba(223,255,232,.08); border-radius:14px; background:rgba(255,255,255,.02); }.module-context-chip strong{display:block;max-width:175px;overflow:hidden;color:#dce6df;font-size:.875rem;text-overflow:ellipsis;white-space:nowrap}.module-context-chip small{display:block;margin-top:2px;color:#5f796d;font-size:.875rem}
.module-stage { min-width:0; }.module-commandbar{min-height:76px}.module-breadcrumb { display:flex; align-items:center; gap:8px; min-width:0; color:var(--muted-2); font-size:.875rem; }.module-breadcrumb a:hover{color:var(--ink)}.module-breadcrumb i{opacity:.45;font-style:normal}.module-breadcrumb span{color:var(--muted)}.module-breadcrumb strong{overflow:hidden;color:var(--ink);font-weight:620;text-overflow:ellipsis;white-space:nowrap}
.module-content { width:min(1460px,calc(100% - clamp(36px,6vw,92px))); margin:0 auto; padding:clamp(40px,5vw,72px) 0 90px; }
.module-hero { position:relative; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr); min-height:480px; overflow:hidden; border:1px solid var(--line); border-radius:8px 62px 24px 42px; background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 94%,transparent),color-mix(in srgb,var(--surface-2) 68%,transparent)); box-shadow:var(--soft-shadow); }
.module-hero::before { content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(500px 320px at 74% 40%,color-mix(in srgb,var(--emerald) 13%,transparent),transparent 70%),linear-gradient(90deg,transparent 49.9%,var(--line) 50%,transparent 50.1%); }
.module-hero-copy { position:relative; z-index:2; align-self:center; padding:clamp(42px,6vw,78px); }.module-hero-copy h1{margin:21px 0 18px;color:var(--ink);font-size:clamp(4rem,7vw,7.7rem);font-weight:625;letter-spacing:-.08em;line-height:.84}.module-hero-copy h1 span,.workspace-head h1 span{color:var(--lime)}.module-hero-copy p{max-width:610px;margin:0;color:var(--muted);font-size:.875rem;line-height:1.82}
.module-hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:11px; margin-top:30px; }.module-ghost-action{display:inline-flex;align-items:center;gap:8px;min-height:45px;padding:0 15px;border:1px solid var(--line);border-radius:14px;color:var(--muted);font-size:.875rem;font-weight:650}.module-ghost-action:hover{border-color:var(--line-strong);color:var(--ink)}.module-ghost-action svg{width:16px;height:16px}
.module-hero-visual { position:relative; min-height:480px; overflow:hidden; }.module-hero-visual::before{content:"";position:absolute;inset:0;opacity:.2;background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:42px 42px;mask-image:radial-gradient(circle at 50% 50%,#000 0 35%,transparent 75%)}
.module-core { position:absolute; z-index:3; left:50%; top:50%; display:grid; place-items:center; width:116px; height:116px; border:1px solid color-mix(in srgb,var(--emerald) 28%,transparent); border-radius:35px; color:var(--lime); background:linear-gradient(145deg,color-mix(in srgb,var(--surface-2) 90%,var(--emerald)),var(--surface)); box-shadow:24px 32px 70px rgba(0,0,0,.25),inset 1px 1px 0 rgba(255,255,255,.12); transform:translate(-50%,-50%) rotate(9deg); }.module-core svg{width:47px;height:47px;transform:rotate(-9deg);stroke-width:1.1}
.module-ring { position:absolute; left:50%; top:50%; border:1px solid var(--line); border-radius:50%; transform:translate(-50%,-50%); }.ring-a{width:230px;height:230px;animation:orbit-spin-center 25s linear infinite}.ring-b{width:320px;height:320px;border-style:dashed;opacity:.72;animation:orbit-spin-center 35s linear reverse infinite}.ring-c{width:410px;height:410px;opacity:.45}
.module-node { position:absolute; z-index:4; width:8px; height:8px; border-radius:50%; background:var(--lime); box-shadow:0 0 16px color-mix(in srgb,var(--lime) 65%,transparent); }.node-a{left:calc(50% - 99px);top:calc(50% - 65px)}.node-b{left:calc(50% + 144px);top:calc(50% + 22px);background:var(--emerald)}.node-c{left:calc(50% - 50px);top:calc(50% + 153px);background:var(--muted-2)}
.module-hero-visual > strong { position:absolute; right:28px; bottom:18px; color:color-mix(in srgb,var(--ink) 12%,transparent); font-size:7rem; font-weight:760; letter-spacing:-.08em; line-height:1; }
.module-overview { display:grid; grid-template-columns:minmax(250px,.65fr) minmax(0,1.35fr); gap:clamp(28px,4vw,58px); margin-top:clamp(46px,6vw,78px); }.overview-title > span{color:var(--emerald);font-size:.875rem;font-weight:780;letter-spacing:.18em}.overview-title h2{margin:12px 0 13px;color:var(--ink);font-size:clamp(2.3rem,4vw,4.3rem);font-weight:620;letter-spacing:-.07em;line-height:.94}.overview-title p{max-width:430px;margin:0;color:var(--muted);font-size:.875rem;line-height:1.75}.overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.overview-card{display:grid;grid-template-columns:33px minmax(0,1fr) 34px;align-items:center;gap:11px;min-height:78px;padding:13px 15px;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--surface) 68%,transparent);transition:transform .2s ease,border-color .2s ease,background .2s ease}.overview-card:hover{transform:translateY(-2px);border-color:var(--line-strong);background:var(--surface)}.overview-card>span{color:var(--muted-2);font-size:.875rem;font-weight:760;letter-spacing:.12em}.overview-card strong{font-size:.875rem;font-weight:620}.overview-card i{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;color:var(--muted);background:rgba(255,255,255,.035)}.overview-card:hover i{color:var(--lime)}.overview-card svg{width:14px;height:14px}
.workspace-head { display:flex; align-items:flex-end; justify-content:space-between; gap:35px; padding:10px 0 35px; border-bottom:1px solid var(--line); }.workspace-head h1{margin:17px 0 12px;color:var(--ink);font-size:clamp(3.2rem,6vw,6.3rem);font-weight:625;letter-spacing:-.078em;line-height:.9}.workspace-head p{max-width:700px;margin:0;color:var(--muted);font-size:.875rem;line-height:1.8}.workspace-state{flex:0 0 220px;padding:16px 18px;border:1px solid var(--line);border-radius:19px;background:color-mix(in srgb,var(--surface) 73%,transparent)}.workspace-state span{display:block;color:var(--emerald);font-size:.875rem;font-weight:780;letter-spacing:.16em}.workspace-state strong{display:block;margin-top:8px;font-size:.875rem}.workspace-state small{display:block;margin-top:3px;color:var(--muted-2);font-size:.875rem}
.workspace-placeholder { display:grid; grid-template-columns:90px minmax(0,1fr); align-items:center; gap:28px; min-height:250px; margin-top:35px; padding:32px; border:1px dashed var(--line-strong); border-radius:28px 8px 24px 15px; background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 62%,transparent),transparent); }.placeholder-mark{display:grid;place-items:center;width:82px;height:82px;border:1px solid var(--line-strong);border-radius:25px;color:var(--lime);background:rgba(255,255,255,.025)}.placeholder-mark svg{width:34px;height:34px}.workspace-placeholder>div:last-child>span{color:var(--emerald);font-size:.875rem;font-weight:780;letter-spacing:.17em}.workspace-placeholder h2{margin:8px 0 8px;font-size:1.7rem;letter-spacing:-.04em}.workspace-placeholder p{max-width:670px;margin:0;color:var(--muted);font-size:.875rem;line-height:1.7}
.module-mobile-dock { display:none; }

html[data-theme="light"] .launcher-system-card,
html[data-theme="light"] .module-card,
html[data-theme="light"] .module-hero { background:linear-gradient(145deg,#f9fbf6,#e1ebe1); }
html[data-theme="contrast"] .module-card-art,
html[data-theme="contrast"] .system-orbit,
html[data-theme="contrast"] .module-hero-visual,
html[data-theme="contrast"] .ambient { display:none; }
html[data-theme="contrast"] .launcher-system-card,
html[data-theme="contrast"] .module-card,
html[data-theme="contrast"] .module-hero,
html[data-theme="contrast"] .overview-card,
html[data-theme="contrast"] .workspace-placeholder { border:2px solid #fff; background:#000; }

@media (max-width:1180px) {
  .module-card-magazyny,.module-card-zywienie{grid-column:span 6}.module-card-intendent,.module-card-raporty{grid-column:span 6}.module-card-administracja{grid-column:span 12;min-height:280px}
  .module-shell{grid-template-columns:230px minmax(0,1fr)}.module-nav{padding-inline:16px}.module-hero{grid-template-columns:minmax(0,1.2fr) minmax(290px,.8fr)}
}
@media (max-width:900px) {
  .launcher-bar{grid-template-columns:auto 1fr;gap:16px}.launcher-context{display:none}.launcher-actions{justify-self:end}.launcher-actions .user-chip{display:none}
  .launcher-intro{grid-template-columns:1fr}.launcher-system-card{min-height:205px}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto}.module-card-magazyny,.module-card-zywienie,.module-card-intendent,.module-card-raporty,.module-card-administracja{grid-column:auto;min-height:315px}
  .module-shell{display:block;overflow:visible}.module-nav{position:fixed;z-index:60;left:0;top:0;width:min(300px,86vw);height:100svh;transform:translateX(-105%);transition:transform .28s cubic-bezier(.2,.8,.2,1);box-shadow:25px 0 80px rgba(0,0,0,.42)}.module-shell.nav-open .module-nav{transform:none}.module-shell.nav-open .nav-backdrop{opacity:1;pointer-events:auto}.module-shell .nav-backdrop{position:fixed;z-index:55;inset:0;display:block;padding:0;border:0;background:rgba(0,0,0,.5);backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .22s ease}
  .module-commandbar{padding-inline:18px}.module-breadcrumb{margin-right:auto}.module-commandbar .command-actions .user-chip,.module-commandbar .command-actions>form{display:none}.module-content{width:calc(100% - 32px);padding-bottom:100px}.module-hero{grid-template-columns:1fr}.module-hero::before{background:radial-gradient(500px 320px at 62% 78%,color-mix(in srgb,var(--emerald) 13%,transparent),transparent 70%)}.module-hero-visual{min-height:320px}.module-overview{grid-template-columns:1fr}.module-mobile-dock{display:grid}
}
@media (max-width:640px) {
  .launcher-bar{min-height:72px;padding:13px 16px}.launcher-bar .future-brand>span:last-child{display:none}.launcher-actions{gap:6px}.launcher-actions .preferences label:last-child{display:none}.launcher-main{width:calc(100% - 28px);padding-top:42px}.launcher-heading h1{font-size:clamp(3.1rem,15vw,4.9rem);line-height:.88}.launcher-heading p{font-size:.875rem}.launcher-system-card{min-height:190px;border-radius:35px 7px 28px 16px}.system-orbit{width:145px;height:145px}.module-grid{grid-template-columns:1fr;margin-top:38px}.module-card-magazyny,.module-card-zywienie,.module-card-intendent,.module-card-raporty,.module-card-administracja{min-height:285px}.module-card{border-radius:28px 7px 23px 14px}.module-card-icon{margin-top:25px}.module-card-copy h2{font-size:2.5rem}.launcher-footer{display:grid;grid-template-columns:1fr auto}.launcher-footer span:nth-child(2){display:none}
  .module-breadcrumb a,.module-breadcrumb i,.module-breadcrumb span{display:none}.module-content{padding-top:30px}.module-hero{border-radius:6px 46px 18px 30px}.module-hero-copy{padding:38px 26px}.module-hero-copy h1{font-size:clamp(3.6rem,17vw,5.2rem)}.module-hero-actions{align-items:stretch;flex-direction:column}.module-hero-actions .future-cta,.module-ghost-action{width:100%;justify-content:space-between}.module-hero-visual{min-height:280px}.ring-c{width:340px;height:340px}.overview-grid{grid-template-columns:1fr}.workspace-head{display:block}.workspace-state{margin-top:24px}.workspace-placeholder{grid-template-columns:1fr;padding:26px}.placeholder-mark{width:70px;height:70px}
}

/* ================================================================
   Nutriva Orbit · Readability pass 0.2.1
   Larger operational typography + top-bar module return.
   ================================================================ */
.launcher-context span { font-size:.875rem; }
.launcher-context strong { font-size:.875rem; }
.launcher-heading p { max-width: 700px; font-size: .94rem; line-height: 1.72; }
.system-meta > span { font-size:.875rem; }
.system-meta small { font-size:.875rem; }
.license-state { font-size:.875rem; }
.module-card-no { font-size:.875rem; }
.module-card-copy > span { font-size:.875rem; }
.module-card-copy p { font-size:.875rem; line-height: 1.65; }
.module-card-foot { font-size:.875rem; }
.launcher-footer { font-size:.875rem; }

.preferences select { min-height: 39px; font-size:.875rem; }
.user-chip > span:last-child { font-size:.875rem; }
.user-chip small { font-size:.875rem; }

.module-identity > span { font-size:.875rem; }
.module-menu a { min-height: 46px; font-size:.875rem; }
.module-menu a small { font-size:.875rem; }
.module-context-chip strong { font-size:.875rem; }
.module-context-chip small { font-size:.875rem; }
.module-breadcrumb { font-size:.875rem; }
.module-hero-copy p { font-size: .92rem; line-height: 1.72; }
.module-ghost-action { font-size:.875rem; }
.overview-title > span { font-size:.875rem; }
.overview-title p { font-size:.875rem; line-height: 1.68; }
.overview-card > span { font-size:.875rem; }
.overview-card strong { font-size:.875rem; }
.workspace-head p { font-size: .88rem; line-height: 1.7; }
.workspace-state span { font-size:.875rem; }
.workspace-state strong { font-size:.875rem; }
.workspace-state small { font-size:.875rem; }
.workspace-placeholder > div:last-child > span { font-size:.875rem; }
.workspace-placeholder p { font-size:.875rem; line-height: 1.66; }
.future-kicker { font-size:.875rem; }

.modules-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  font-size:.875rem;
  font-weight: 680;
  letter-spacing: -.01em;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.modules-return svg { width: 16px; height: 16px; color: var(--lime); }
.modules-return:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--lime) 32%, var(--line));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  transform: translateY(-1px);
}

/* Sidebar starts directly with the current module identity now. */
.module-identity { margin-top: 31px; }

@media (max-width: 900px) {
  .module-commandbar .modules-return span { display:none; }
  .module-commandbar .modules-return { width:40px; padding:0; }
  .module-commandbar .command-actions .modules-return { display:inline-flex; }
}
@media (max-width: 640px) {
  .launcher-heading p { font-size:.875rem; }
  .module-card-copy p { font-size:.875rem; }
  .module-menu a { font-size:.875rem; }
  .module-hero-copy p, .workspace-head p { font-size:.875rem; }
}

/* ================================================================
   Nutriva Orbit · Polish pass 0.2.2
   Custom Orbit popovers + higher-contrast light theme.
   ================================================================ */
.preferences {
  display:flex;
  align-items:center;
  gap:8px;
}
.orbit-select {
  position:relative;
  min-width:138px;
}
.orbit-select-scale { min-width:126px; }
.orbit-select-trigger {
  display:grid;
  grid-template-columns:minmax(0,1fr) 14px;
  grid-template-areas:"label arrow" "value arrow";
  align-items:center;
  column-gap:10px;
  width:100%;
  min-height:44px;
  padding:7px 12px 7px 13px;
  border:1px solid var(--line-strong);
  border-radius:14px;
  color:var(--ink);
  background:
    linear-gradient(145deg,color-mix(in srgb,var(--surface) 88%,transparent),color-mix(in srgb,var(--surface-2) 70%,transparent));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
  cursor:pointer;
  text-align:left;
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;
}
.orbit-select-trigger:hover,
.orbit-select.is-open .orbit-select-trigger {
  border-color:color-mix(in srgb,var(--lime) 35%,var(--line-strong));
  background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 96%,transparent),color-mix(in srgb,var(--surface-2) 82%,transparent));
  box-shadow:0 8px 26px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.06);
}
.orbit-select.is-open .orbit-select-trigger { transform:translateY(-1px); }
.orbit-select-label {
  grid-area:label;
  color:var(--muted-2);
  font-size:.875rem;
  font-weight:740;
  letter-spacing:.11em;
  line-height:1.05;
  text-transform:uppercase;
}
.orbit-select-value {
  grid-area:value;
  margin-top:3px;
  overflow:hidden;
  color:var(--ink);
  font-size:.875rem;
  font-weight:670;
  line-height:1.05;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.orbit-select-chevron {
  grid-area:arrow;
  justify-self:end;
  width:8px;
  height:8px;
  border-right:1.6px solid var(--muted);
  border-bottom:1.6px solid var(--muted);
  transform:rotate(45deg) translateY(-2px);
  transform-origin:center;
  transition:transform .18s ease,border-color .18s ease;
}
.orbit-select.is-open .orbit-select-chevron {
  border-color:var(--lime);
  transform:rotate(225deg) translate(-1px,-1px);
}
.orbit-select-menu[hidden] { display:none; }
.orbit-select-menu {
  position:absolute;
  z-index:120;
  left:0;
  right:0;
  top:calc(100% + 8px);
  display:grid;
  gap:4px;
  padding:7px;
  border:1px solid color-mix(in srgb,var(--line-strong) 92%,transparent);
  border-radius:16px;
  color:var(--ink);
  background:
    radial-gradient(180px 100px at 10% 0%,color-mix(in srgb,var(--emerald) 11%,transparent),transparent 70%),
    color-mix(in srgb,var(--surface) 98%,var(--bg));
  box-shadow:0 22px 55px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter:blur(24px) saturate(130%);
}
.orbit-select-menu button {
  display:grid;
  grid-template-columns:minmax(0,1fr) 18px;
  align-items:center;
  gap:9px;
  width:100%;
  min-height:38px;
  padding:0 10px 0 11px;
  border:0;
  border-radius:10px;
  color:var(--muted);
  background:transparent;
  cursor:pointer;
  text-align:left;
  font-size:.875rem;
  font-weight:610;
  transition:color .16s ease,background .16s ease,transform .16s ease;
}
.orbit-select-menu button:hover,
.orbit-select-menu button:focus-visible {
  color:var(--ink);
  background:color-mix(in srgb,var(--lime) 8%,var(--surface-2));
}
.orbit-select-menu button[aria-selected="true"] {
  color:var(--ink);
  background:linear-gradient(90deg,color-mix(in srgb,var(--emerald) 15%,transparent),color-mix(in srgb,var(--lime) 5%,transparent));
}
.orbit-select-menu button i {
  justify-self:center;
  width:7px;
  height:7px;
  border-radius:50%;
  background:transparent;
  box-shadow:none;
}
.orbit-select-menu button[aria-selected="true"] i {
  background:var(--lime);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--lime) 9%,transparent),0 0 12px color-mix(in srgb,var(--lime) 42%,transparent);
}

/* Light mode: light canvas, dark Orbit anchors for depth and stronger hierarchy. */
html[data-theme="light"] {
  --bg:#f1f5ef;
  --bg-deep:#e6eee5;
  --surface:#fff;
  --surface-2:#e5eee4;
  --surface-glass:rgba(255,255,255,.86);
  --ink:#0c1e16;
  --muted:#50665a;
  --muted-2:#6d8276;
  --line:rgba(10,44,29,.14);
  --line-strong:rgba(10,44,29,.25);
  --lime:#b8e84a;
  --emerald:#0d9f67;
  --emerald-deep:#08764b;
  --shadow:0 24px 70px rgba(19,48,31,.14);
  --soft-shadow:0 12px 36px rgba(19,48,31,.105);
}
html[data-theme="light"] .module-launcher,
html[data-theme="light"] .module-shell {
  background:
    radial-gradient(860px 520px at var(--spot-x,75%) var(--spot-y,8%),rgba(13,159,103,.11),transparent 65%),
    linear-gradient(145deg,#e8efe6,#f7f9f5 45%,#eaf2e8);
}
html[data-theme="light"] .launcher-bar,
html[data-theme="light"] .module-commandbar {
  --ink:#f5f8f3;
  --muted:#b3c3b9;
  --muted-2:#88a093;
  --line:rgba(228,255,237,.13);
  --line-strong:rgba(228,255,237,.25);
  color:#f5f8f3;
  border-bottom-color:rgba(228,255,237,.12);
  background:
    radial-gradient(420px 170px at 12% -20%,rgba(55,227,157,.16),transparent 72%),
    rgba(7,29,21,.96);
  box-shadow:0 10px 34px rgba(6,27,19,.12);
}
html[data-theme="light"] .launcher-bar .future-brand,
html[data-theme="light"] .launcher-bar .future-brand small,
html[data-theme="light"] .module-commandbar .module-breadcrumb strong,
html[data-theme="light"] .module-commandbar .module-breadcrumb span,
html[data-theme="light"] .module-commandbar .module-breadcrumb a { color:inherit; }
html[data-theme="light"] .launcher-bar .future-brand small { color:#7f998c; }
html[data-theme="light"] .launcher-context strong { color:#c4d1c9; }
html[data-theme="light"] .launcher-context span { color:#6ce2ae; }
html[data-theme="light"] .launcher-bar .user-chip,
html[data-theme="light"] .module-commandbar .user-chip,
html[data-theme="light"] .launcher-bar .logout,
html[data-theme="light"] .module-commandbar .logout,
html[data-theme="light"] .module-commandbar .mobile-nav,
html[data-theme="light"] .module-commandbar .modules-return {
  border-color:rgba(231,255,239,.17);
  color:#eef6f1;
  background:rgba(255,255,255,.045);
}
html[data-theme="light"] .launcher-bar .user-chip > span:last-child,
html[data-theme="light"] .module-commandbar .user-chip > span:last-child,
html[data-theme="light"] .module-commandbar .modules-return { color:#f4f8f5; }
html[data-theme="light"] .launcher-bar .user-chip small,
html[data-theme="light"] .module-commandbar .user-chip small { color:#8fa79b; }
html[data-theme="light"] .launcher-bar .orbit-select-trigger,
html[data-theme="light"] .module-commandbar .orbit-select-trigger {
  --ink:#f5f8f3;
  --muted:#adbbb3;
  --muted-2:#769085;
  --line-strong:rgba(231,255,239,.2);
  color:#f5f8f3;
  border-color:rgba(231,255,239,.18);
  background:linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.025));
}
html[data-theme="light"] .launcher-bar .orbit-select-menu,
html[data-theme="light"] .module-commandbar .orbit-select-menu {
  --ink:#f5f8f3;
  --muted:#b4c2ba;
  --line-strong:rgba(231,255,239,.2);
  color:#f5f8f3;
  border-color:rgba(231,255,239,.16);
  background:radial-gradient(200px 120px at 10% 0%,rgba(55,227,157,.15),transparent 72%),#0a1f17;
}
html[data-theme="light"] .launcher-bar .orbit-select-menu button:hover,
html[data-theme="light"] .module-commandbar .orbit-select-menu button:hover,
html[data-theme="light"] .launcher-bar .orbit-select-menu button:focus-visible,
html[data-theme="light"] .module-commandbar .orbit-select-menu button:focus-visible {
  background:rgba(255,255,255,.07);
}
html[data-theme="light"] .launcher-system-card {
  --ink:#f4f8f4;
  --muted:#a9bbb0;
  --muted-2:#7f998b;
  --line:rgba(230,255,237,.12);
  --line-strong:rgba(230,255,237,.22);
  color:#f4f8f4;
  border-color:rgba(224,255,235,.13);
  background:
    radial-gradient(280px 210px at 92% 12%,rgba(55,227,157,.17),transparent 67%),
    linear-gradient(145deg,#0a241a,#071b14 72%);
  box-shadow:0 24px 55px rgba(8,35,24,.18),inset 0 1px 0 rgba(255,255,255,.05);
}
html[data-theme="light"] .launcher-system-card .system-orbit span { background:#0b251a; }
html[data-theme="light"] .launcher-system-card .system-meta strong { color:#f4f8f4; }
html[data-theme="light"] .module-card {
  border-color:rgba(11,50,31,.15);
  background:linear-gradient(150deg,#ffffff,#e4eee3);
  box-shadow:0 10px 30px rgba(28,63,39,.07),inset 0 1px 0 #fff;
}
html[data-theme="light"] .module-card:hover {
  border-color:rgba(13,159,103,.32);
  box-shadow:0 28px 60px rgba(19,55,34,.13),inset 0 1px 0 #fff;
}
html[data-theme="light"] .module-card-icon {
  color:#d8ff72;
  border-color:rgba(221,255,230,.14);
  background:linear-gradient(145deg,#0c281d,#082017);
  box-shadow:0 10px 24px rgba(8,40,27,.15),inset 0 1px 0 rgba(255,255,255,.05);
}
html[data-theme="light"] .module-hero {
  background:linear-gradient(145deg,#fff,#e1ebe0);
}
html[data-theme="light"] .module-hero-visual {
  --ink:#f3f8f4;
  --line:rgba(227,255,236,.12);
  background:
    radial-gradient(380px 300px at 52% 48%,rgba(55,227,157,.16),transparent 69%),
    linear-gradient(145deg,#0b261b,#071b14);
  border-left:1px solid rgba(226,255,235,.08);
}
html[data-theme="light"] .workspace-state {
  --ink:#f4f8f4;
  --muted-2:#90a79b;
  color:#f4f8f4;
  border-color:rgba(225,255,235,.12);
  background:linear-gradient(145deg,#0d291e,#082017);
  box-shadow:0 12px 28px rgba(8,40,27,.11);
}
html[data-theme="light"] .overview-card {
  border-color:rgba(10,45,29,.14);
  background:rgba(255,255,255,.72);
  box-shadow:0 8px 24px rgba(26,57,38,.055);
}
html[data-theme="light"] .overview-card:hover {
  background:#fff;
  border-color:rgba(13,159,103,.25);
}

html[data-theme="contrast"] .orbit-select-trigger,
html[data-theme="contrast"] .orbit-select-menu {
  border:2px solid #fff;
  color:#fff;
  background:#000;
  box-shadow:none;
}
html[data-theme="contrast"] .orbit-select-menu button { color:#fff; }
html[data-theme="contrast"] .orbit-select-menu button[aria-selected="true"],
html[data-theme="contrast"] .orbit-select-menu button:hover,
html[data-theme="contrast"] .orbit-select-menu button:focus-visible { color:#000; background:#ffed00; }
html[data-theme="contrast"] .orbit-select-menu button[aria-selected="true"] i { background:#000; box-shadow:none; }

@media (max-width:900px) {
  .orbit-select { min-width:118px; }
  .orbit-select-scale { min-width:108px; }
  .orbit-select-trigger { min-height:40px; padding-inline:10px; }
  .orbit-select-label { display:none; }
  .orbit-select-value { margin-top:0; font-size:.875rem; }
}
@media (max-width:640px) {
  .launcher-actions .orbit-select-scale { display:none; }
  .launcher-actions .orbit-select { min-width:94px; }
  .module-commandbar .orbit-select-scale { display:none; }
  .module-commandbar .orbit-select { min-width:92px; }
}

/* ================================================================
   Nutriva Orbit · Hybrid light hero fix 0.2.3
   Shared fix for every module dashboard.
   ================================================================ */
html[data-theme="light"] .module-hero {
  /* Keep the light canvas calm and continuous. The dark visual is the
     only intentional hard contrast inside the hero. */
  background: #ffffff;
}

html[data-theme="light"] .module-hero::before {
  /* 0.2.2 inherited a decorative divider fixed at 50% of the card.
     The actual grid split is different, which created the false middle
     panel and the grey vertical seam visible in the hybrid theme. */
  background:
    radial-gradient(560px 360px at 72% 44%, rgba(13,159,103,.075), transparent 72%);
}

html[data-theme="light"] .module-hero-visual {
  /* The right-hand Orbit artwork should be one deliberate dark panel,
     not a second bordered card attached to the hero. */
  border-left: 0;
  background:
    radial-gradient(390px 310px at 52% 48%, rgba(55,227,157,.17), transparent 68%),
    linear-gradient(145deg,#0b261b,#071b14);
}

html[data-theme="light"] .module-hero-copy {
  /* Prevent any visual artefact from showing through the content side. */
  background: transparent;
}

html[data-theme="light"] .module-hero .future-cta {
  /* .future-cta is intentionally light in the dark theme. On the light
     hybrid hero it needs its own foreground instead of inheriting white. */
  color: #173226;
  font-weight: 730;
}

html[data-theme="light"] .module-hero .future-cta:hover,
html[data-theme="light"] .module-hero .future-cta:focus-visible {
  color: #071b14;
}

html[data-theme="light"] .module-hero .future-cta > span {
  color: #102116;
  background: var(--lime);
  box-shadow: 0 8px 22px rgba(112,151,35,.22), 0 0 0 1px rgba(87,122,20,.08);
}

html[data-theme="light"] .module-hero .future-kicker {
  color: #79a60f;
}

/* Keep the same clean split when a module collapses to one column. */
@media (max-width: 900px) {
  html[data-theme="light"] .module-hero::before {
    background:
      radial-gradient(520px 300px at 50% 78%, rgba(13,159,103,.07), transparent 72%);
  }
}

/* ================================================================
   Nutriva Orbit · Light hero blend polish 0.2.4
   Final shared polish for light-mode module hero cards.
   Dark and high-contrast themes are intentionally untouched.
   ================================================================ */
html[data-theme="light"] .module-hero {
  /* One continuous Orbit surface: clean white around copy, then a calm
     green bridge underneath the fading dark visual panel. */
  background:
    radial-gradient(520px 320px at 58% 48%, rgba(13,159,103,.075), transparent 72%),
    linear-gradient(90deg,
      #ffffff 0%,
      #ffffff 42%,
      #fbfdf9 49%,
      #f3f8f3 55%,
      #e6f0e8 60%,
      #d1e2d7 65%,
      #b5d0bf 70%,
      #91b29d 76%,
      #628a72 84%,
      #315944 92%,
      #173c2c 100%);
}

html[data-theme="light"] .module-hero::before {
  /* Ambient depth only — never a divider. */
  background:
    radial-gradient(640px 390px at 67% 44%, rgba(55,227,157,.10), transparent 70%),
    radial-gradient(420px 260px at 54% 74%, rgba(13,159,103,.055), transparent 74%);
}

html[data-theme="light"] .module-hero-visual {
  /* Let the parent gradient show through at the left edge of the visual.
     The dark Orbit panel then appears gradually instead of beginning at a
     hard rectangular cut. Parent overflow still clips the whole card. */
  overflow: visible;
  border-left: 0;
  background:
    radial-gradient(390px 310px at 52% 48%, rgba(55,227,157,.18), transparent 68%),
    linear-gradient(145deg,#103524 0%,#0b2a1e 44%,#071b14 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 5%, #000 20%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 5%, #000 20%, #000 100%);
}

/* Keep text side crisp over the transition. */
html[data-theme="light"] .module-hero-copy {
  background: transparent;
}

@media (max-width: 900px) {
  html[data-theme="light"] .module-hero {
    background:
      radial-gradient(520px 300px at 50% 72%, rgba(13,159,103,.075), transparent 74%),
      linear-gradient(180deg,#ffffff 0%,#ffffff 54%,#eef5ef 64%,#d6e6da 72%,#8eaf9a 84%,#244c38 100%);
  }

  html[data-theme="light"] .module-hero-visual {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.22) 7%, #000 22%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.22) 7%, #000 22%, #000 100%);
  }
}

/* ================================================================
   Nutriva Orbit · Foundation 0.3.0
   Final light hero + administration foundation.
   ================================================================ */

/* Final light-mode module hero: one light card, crisp vertical split.
   No hybrid fade. Dark and contrast themes remain untouched. */
html[data-theme="light"] .module-hero {
  background: #ffffff;
}
html[data-theme="light"] .module-hero::before {
  background:
    radial-gradient(500px 320px at 74% 40%, rgba(13,159,103,.055), transparent 70%),
    linear-gradient(90deg, transparent 49.9%, rgba(16,45,31,.13) 50%, transparent 50.1%);
}
html[data-theme="light"] .module-hero-copy {
  background: transparent;
}
html[data-theme="light"] .module-hero-visual {
  overflow: hidden;
  border-left: 0;
  background:
    radial-gradient(390px 300px at 52% 48%, rgba(13,159,103,.07), transparent 69%);
  -webkit-mask-image: none;
  mask-image: none;
}
html[data-theme="light"] .module-hero-visual::before {
  opacity: .34;
}
html[data-theme="light"] .module-core {
  border-color: rgba(13,159,103,.28);
  color: #83b90f;
  background: linear-gradient(145deg, #ffffff, #dce9de);
  box-shadow: 18px 24px 55px rgba(31,73,47,.13), inset 1px 1px 0 #fff;
}
html[data-theme="light"] .module-ring { border-color: rgba(16,45,31,.13); }
html[data-theme="light"] .module-hero-visual > strong { color: rgba(16,45,31,.10); }
html[data-theme="light"] .module-hero .future-cta { color:#173226; }
html[data-theme="light"] .module-hero .future-cta:hover,
html[data-theme="light"] .module-hero .future-cta:focus-visible { color:#071b14; }

@media (max-width:900px) {
  html[data-theme="light"] .module-hero { background:#fff; }
  html[data-theme="light"] .module-hero::before {
    background:linear-gradient(180deg, transparent 49.9%, rgba(16,45,31,.13) 50%, transparent 50.1%);
  }
  html[data-theme="light"] .module-hero-visual {
    border-left:0;
    border-top:0;
    -webkit-mask-image:none;
    mask-image:none;
  }
}

/* Administration workspace */
.admin-workspace-head { align-items:center; }
.admin-state-card { min-width:240px; }
.admin-notice { display:flex; align-items:center; gap:10px; margin:24px 0 0; padding:14px 17px; border:1px solid var(--line); border-radius:16px; background:color-mix(in srgb,var(--surface) 78%,transparent); font-size:.875rem; }
.admin-notice strong { font-weight:720; }
.admin-notice span { color:var(--muted); }
.admin-notice.is-success { border-color:color-mix(in srgb,var(--emerald) 35%,var(--line)); }
.admin-notice.is-success::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--emerald); box-shadow:0 0 12px color-mix(in srgb,var(--emerald) 55%,transparent); }
.admin-notice.is-error { border-color:color-mix(in srgb,var(--danger) 40%,var(--line)); color:var(--danger); }
.admin-grid { display:grid; gap:18px; margin-top:34px; }
.admin-grid-2 { grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); }
.admin-grid-users { grid-template-columns:minmax(0,1.2fr) minmax(390px,.8fr); }
.admin-card { padding:26px; border:1px solid var(--line); border-radius:28px 8px 24px 16px; background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 94%,transparent),color-mix(in srgb,var(--surface-2) 70%,transparent)); box-shadow:var(--soft-shadow); }
.admin-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:24px; }
.admin-card-head span, .admin-subhead span { display:block; color:var(--emerald); font-size:.875rem; font-weight:780; letter-spacing:.17em; }
.admin-card-head h2 { margin:6px 0 0; color:var(--ink); font-size:1.45rem; font-weight:640; letter-spacing:-.045em; }
.admin-icon { display:grid; place-items:center; width:46px; height:46px; border:1px solid var(--line); border-radius:15px; color:var(--lime); background:color-mix(in srgb,var(--surface-2) 85%,transparent); }
.admin-icon svg { width:21px; height:21px; }
.admin-form { display:block; }
.admin-field { display:grid; gap:7px; margin-bottom:17px; }
.admin-field > span, .admin-field-title { color:var(--muted); font-size:.875rem; font-weight:650; }
.admin-field small { color:var(--muted-2); font-size:.875rem; line-height:1.55; }
.admin-field input, .admin-field select, .meal-row input, .user-admin-role select { width:100%; min-height:44px; padding:0 13px; border:1px solid var(--line); border-radius:13px; outline:0; color:var(--ink); background:color-mix(in srgb,var(--surface) 82%,transparent); transition:border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.admin-field input:focus, .admin-field select:focus, .meal-row input:focus, .user-admin-role select:focus { border-color:color-mix(in srgb,var(--emerald) 52%,var(--line)); box-shadow:0 0 0 3px color-mix(in srgb,var(--emerald) 10%,transparent); background:var(--surface); }
.admin-divider { height:1px; margin:24px 0; background:var(--line); }
.admin-field-group { display:grid; gap:10px; }
.admin-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.admin-choice { position:relative; cursor:pointer; }
.admin-choice input { position:absolute; opacity:0; pointer-events:none; }
.admin-choice > span { display:block; min-height:94px; padding:15px 16px; border:1px solid var(--line); border-radius:17px; background:color-mix(in srgb,var(--surface) 64%,transparent); transition:border-color .18s ease, background .18s ease, transform .18s ease; }
.admin-choice.compact > span { min-height:78px; }
.admin-choice strong { display:block; color:var(--ink); font-size:.875rem; }
.admin-choice small { display:block; margin-top:5px; color:var(--muted-2); font-size:.875rem; line-height:1.5; }
.admin-choice input:checked + span { border-color:color-mix(in srgb,var(--lime) 55%,var(--line)); background:color-mix(in srgb,var(--lime) 7%,var(--surface)); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--lime) 18%,transparent); }
.admin-choice:hover > span { transform:translateY(-1px); border-color:var(--line-strong); }
.admin-toggle-row { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:68px; margin-top:18px; padding:13px 15px; border:1px solid var(--line); border-radius:16px; background:color-mix(in srgb,var(--surface) 62%,transparent); }
.admin-toggle-row.compact { min-height:58px; }
.admin-toggle-row strong { display:block; color:var(--ink); font-size:.875rem; }
.admin-toggle-row small { display:block; margin-top:3px; color:var(--muted-2); font-size:.875rem; }
.admin-toggle-row input, .mini-check input, .switch-control input, .module-permissions input { accent-color:var(--emerald); }
.admin-toggle-row input { width:19px; height:19px; }
.admin-actions { display:flex; justify-content:flex-end; margin-top:24px; }
.admin-primary, .admin-secondary { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:43px; padding:0 16px; border:1px solid transparent; border-radius:13px; cursor:pointer; font-size:.875rem; font-weight:720; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.admin-primary { color:var(--lime-ink); background:var(--lime); box-shadow:0 8px 22px color-mix(in srgb,var(--lime) 16%,transparent); }
.admin-primary:hover { transform:translateY(-1px); }
.admin-primary svg { width:15px; height:15px; }
.admin-secondary { color:var(--ink); border-color:var(--line); background:color-mix(in srgb,var(--surface) 72%,transparent); }
.admin-secondary:hover { border-color:var(--line-strong); }
.admin-secondary.small { min-height:36px; padding-inline:12px; }
.admin-summary-card { align-self:start; }
.admin-summary-list { display:grid; }
.admin-summary-list > div { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:48px; border-top:1px solid var(--line); }
.admin-summary-list span { color:var(--muted-2); font-size:.875rem; }
.admin-summary-list strong { color:var(--ink); font-size:.875rem; text-align:right; }
.text-ok { color:var(--emerald)!important; }
.text-danger { color:var(--danger)!important; }
.admin-info-box { margin-top:24px; padding:16px; border:1px solid var(--line); border-radius:17px; background:color-mix(in srgb,var(--emerald) 5%,var(--surface)); }
.admin-info-box span { color:var(--emerald); font-size:.875rem; font-weight:780; letter-spacing:.15em; }
.admin-info-box p { margin:8px 0 0; color:var(--muted); font-size:.875rem; line-height:1.65; }
.admin-subhead { margin-bottom:16px; }
.admin-subhead strong { display:block; margin-top:5px; font-size:.9rem; }
.form-grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }

.meal-table { display:grid; }
.meal-table-head, .meal-row { display:grid; grid-template-columns:120px minmax(0,1fr) 90px; align-items:center; gap:12px; }
.meal-table-head { min-height:34px; padding:0 10px; color:var(--muted-2); font-size:.875rem; font-weight:760; letter-spacing:.1em; }
.meal-row { min-height:66px; padding:10px; border-top:1px solid var(--line); }
.meal-row input { min-height:42px; }
.meal-order input { text-align:center; }
.switch-control { display:flex; justify-content:center; }
.switch-control input { width:18px; height:18px; }
.admin-inline-add > div { display:flex; gap:10px; }
.admin-inline-add input { flex:1; }
.admin-empty { padding:26px; color:var(--muted); text-align:center; }

.user-admin-list { display:grid; }
.user-admin-row { display:grid; grid-template-columns:minmax(190px,1.1fr) minmax(130px,.7fr) auto auto 38px; align-items:center; gap:10px; min-height:70px; padding:10px 0; border-top:1px solid var(--line); }
.user-admin-person { display:flex; align-items:center; gap:10px; min-width:0; }
.user-admin-person .avatar { flex:0 0 auto; }
.user-admin-person strong { display:block; overflow:hidden; color:var(--ink); font-size:.875rem; text-overflow:ellipsis; white-space:nowrap; }
.user-admin-person small { display:block; overflow:hidden; margin-top:2px; color:var(--muted-2); font-size:.875rem; text-overflow:ellipsis; white-space:nowrap; }
.user-admin-role select { min-height:38px; }
.mini-check { display:flex; align-items:center; gap:5px; color:var(--muted); font-size:.875rem; white-space:nowrap; }
.icon-save { display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--line); border-radius:11px; cursor:pointer; color:var(--lime); background:transparent; }
.icon-save:hover { border-color:var(--line-strong); background:color-mix(in srgb,var(--surface) 70%,transparent); }
.icon-save svg { width:14px; height:14px; }
.admin-create-user { margin-top:2px; }
.roles-list { display:grid; gap:12px; }
.role-card { padding:16px; border:1px solid var(--line); border-radius:18px; background:color-mix(in srgb,var(--surface) 65%,transparent); }
.role-card-top { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; }
.role-card .admin-field { margin-bottom:10px; }
.module-permissions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:13px; }
.module-permissions label { cursor:pointer; }
.module-permissions input { position:absolute; opacity:0; pointer-events:none; }
.module-permissions span { display:flex; align-items:center; gap:7px; min-height:37px; padding:0 10px; border:1px solid var(--line); border-radius:11px; color:var(--muted); font-size:.875rem; background:transparent; transition:border-color .18s ease, background .18s ease, color .18s ease; }
.module-permissions svg { width:14px; height:14px; }
.module-permissions input:checked + span { color:var(--ink); border-color:color-mix(in srgb,var(--emerald) 40%,var(--line)); background:color-mix(in srgb,var(--emerald) 7%,var(--surface)); }

html[data-theme="light"] .admin-card { background:#fff; border-color:rgba(16,45,31,.13); box-shadow:0 12px 34px rgba(23,50,34,.07); }
html[data-theme="light"] .admin-field input,
html[data-theme="light"] .admin-field select,
html[data-theme="light"] .meal-row input,
html[data-theme="light"] .user-admin-role select { background:#f7faf5; border-color:rgba(16,45,31,.13); }
html[data-theme="light"] .admin-choice > span,
html[data-theme="light"] .admin-toggle-row,
html[data-theme="light"] .role-card,
html[data-theme="light"] .overview-card { background:#f8faf6; }
html[data-theme="light"] .admin-icon { color:#87b913; background:#0d2b1f; border-color:#0d2b1f; }
html[data-theme="light"] .admin-primary { background:#bde84e; }

@media(max-width:1180px) {
  .admin-grid-2, .admin-grid-users { grid-template-columns:1fr; }
}
@media(max-width:760px) {
  .admin-card { padding:20px; }
  .admin-choice-grid, .form-grid-2, .module-permissions { grid-template-columns:1fr; }
  .meal-table-head { display:none; }
  .meal-row { grid-template-columns:82px minmax(0,1fr) 54px; gap:8px; padding-inline:0; }
  .user-admin-row { grid-template-columns:minmax(0,1fr) 38px; gap:9px; padding:14px 0; }
  .user-admin-role, .mini-check { grid-column:1; }
  .icon-save { grid-column:2; grid-row:1; }
  .admin-inline-add > div { flex-direction:column; }
}

/* ================================================================
   Nutriva 0.4.10 · Products + create-form ergonomics
   Full catalogue UI inside the Magazyny module.
   ================================================================ */
html[data-theme="light"] .module-hero {
  background:#fff;
  border-color:rgba(16,45,31,.14);
}
html[data-theme="light"] .module-hero::before {
  background:linear-gradient(90deg,transparent 62.42%,rgba(16,45,31,.14) 62.48%,rgba(16,45,31,.14) 62.54%,transparent 62.6%);
}
html[data-theme="light"] .module-hero-visual { background:#f7faf5; }
html[data-theme="light"] .module-core { background:#fff; box-shadow:18px 26px 60px rgba(23,50,34,.11),inset 1px 1px 0 rgba(255,255,255,.9); }

.product-head,.product-detail-head{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;padding:8px 0 30px;border-bottom:1px solid var(--line)}
.product-head h1,.product-detail-head h1{margin:15px 0 11px;color:var(--ink);font-size:clamp(3.6rem,6vw,6.7rem);font-weight:625;letter-spacing:-.078em;line-height:.9}.product-head h1 span,.product-detail-head h1 span{color:var(--lime)}
.product-head p,.product-detail-head p{max-width:760px;margin:0;color:var(--muted);font-size:.88rem;line-height:1.72}.product-head-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px;padding-bottom:5px}.product-head-actions form{margin:0}
.product-primary,.product-secondary,.product-danger{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 16px;border:1px solid transparent;border-radius:14px;cursor:pointer;font-size:.875rem;font-weight:720;transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease}.product-primary{color:var(--lime-ink);background:var(--lime);box-shadow:0 10px 26px color-mix(in srgb,var(--lime) 16%,transparent)}.product-primary:hover{transform:translateY(-1px)}.product-secondary{color:var(--ink);border-color:var(--line);background:color-mix(in srgb,var(--surface) 76%,transparent)}.product-secondary:hover{border-color:var(--line-strong);background:var(--surface)}.product-danger{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 30%,var(--line));background:color-mix(in srgb,var(--danger) 6%,var(--surface))}.product-primary svg,.product-secondary svg,.product-danger svg{width:16px;height:16px}
.product-notice{margin-top:22px}
.product-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:30px}.product-stat{position:relative;min-height:128px;padding:20px;border:1px solid var(--line);border-radius:23px 7px 20px 14px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 92%,transparent),color-mix(in srgb,var(--surface-2) 60%,transparent));transition:transform .18s ease,border-color .18s ease,background .18s ease}.product-stat:hover,.product-stat.active{transform:translateY(-2px);border-color:color-mix(in srgb,var(--emerald) 34%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,var(--emerald) 7%,var(--surface)),var(--surface))}.product-stat>span{display:block;color:var(--emerald);font-size:.875rem;font-weight:780;letter-spacing:.15em}.product-stat strong{display:block;margin-top:12px;color:var(--ink);font-size:2rem;font-weight:650;letter-spacing:-.055em}.product-stat small{display:block;margin-top:3px;color:var(--muted-2);font-size:.875rem}
.product-panel{margin-top:16px;border:1px solid var(--line);border-radius:27px 9px 23px 16px;overflow:hidden;background:color-mix(in srgb,var(--surface) 77%,transparent);box-shadow:var(--soft-shadow)}.product-filter{padding:16px;border-bottom:1px solid var(--line)}.product-search{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:48px;padding:0 8px 0 14px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--surface) 88%,transparent)}.product-search svg{width:17px;height:17px;color:var(--muted-2)}.product-search input{width:100%;border:0;outline:0;color:var(--ink);background:transparent;font-size:.875rem}.product-search input::placeholder{color:var(--muted-2)}.product-search button{min-height:34px;padding:0 12px;border:0;border-radius:10px;color:var(--lime-ink);background:var(--lime);cursor:pointer;font-size:.875rem;font-weight:720}
.product-filter-row,.product-filter-more{display:flex;align-items:end;flex-wrap:wrap;gap:9px;margin-top:11px}.product-filter-row label,.product-filter-more label{display:grid;gap:5px;min-width:150px}.product-filter-row label>span,.product-filter-more label>span{color:var(--muted-2);font-size:.875rem;font-weight:720;letter-spacing:.04em}.product-filter select{min-height:39px;padding:0 31px 0 10px;border:1px solid var(--line);border-radius:11px;outline:0;color:var(--ink);background:color-mix(in srgb,var(--surface) 88%,transparent);font-size:.875rem}.product-filter select:focus{border-color:color-mix(in srgb,var(--emerald) 50%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--emerald) 9%,transparent)}.product-filter-toggle,.product-clear{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:0 12px;border:1px solid var(--line);border-radius:11px;color:var(--muted);background:transparent;font-size:.875rem;font-weight:670}.product-filter-toggle{cursor:pointer}.product-filter-toggle:hover,.product-clear:hover{color:var(--ink);border-color:var(--line-strong)}.product-filter-toggle svg{width:15px;height:15px}
.product-table-wrap{overflow:auto}.product-table{width:100%;min-width:1120px;border-collapse:collapse}.product-table th{height:44px;padding:0 13px;border-bottom:1px solid var(--line);color:var(--muted-2);background:color-mix(in srgb,var(--surface-2) 40%,transparent);font-size:.875rem;font-weight:760;letter-spacing:.07em;text-align:left;white-space:nowrap}.product-table th a:hover{color:var(--ink)}.product-table td{height:70px;padding:8px 13px;border-bottom:1px solid var(--line);color:var(--muted);font-size:.875rem;vertical-align:middle}.product-table tbody tr{transition:background .15s ease}.product-table tbody tr:hover{background:color-mix(in srgb,var(--emerald) 4%,var(--surface))}.product-table tr.is-archived{opacity:.68}.product-name-cell{display:flex;align-items:center;gap:11px;min-width:245px;color:inherit}.product-name-cell strong{display:block;max-width:260px;overflow:hidden;color:var(--ink);font-size:.875rem;font-weight:680;text-overflow:ellipsis;white-space:nowrap}.product-name-cell small{display:block;margin-top:3px;max-width:270px;overflow:hidden;color:var(--muted-2);font-size:.875rem;text-overflow:ellipsis;white-space:nowrap}.product-thumb,.product-detail-thumb{display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;overflow:hidden;border:1px solid var(--line);border-radius:13px;color:var(--emerald);background:color-mix(in srgb,var(--surface-2) 65%,transparent)}.product-thumb img,.product-detail-thumb img{width:100%;height:100%;object-fit:cover}.product-thumb svg{width:19px;height:19px}.product-mono{font-variant-numeric:tabular-nums;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.875rem}.product-tags,.product-allergen-tags{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.product-tags span,.product-allergen-tags span{display:inline-flex;align-items:center;min-height:23px;padding:0 7px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:color-mix(in srgb,var(--surface-2) 65%,transparent);font-size:.875rem;font-weight:760}.product-allergen-tags span{color:var(--lime);border-color:color-mix(in srgb,var(--lime) 18%,var(--line))}.product-tags i,.product-allergen-tags i{color:var(--muted-2);font-style:normal}.product-status{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:0 8px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:.875rem;font-weight:680;white-space:nowrap}.product-status i{width:6px;height:6px;border-radius:50%;background:var(--muted-2)}.product-status.is-ok{color:var(--emerald)}.product-status.is-ok i{background:var(--emerald);box-shadow:0 0 10px color-mix(in srgb,var(--emerald) 50%,transparent)}.product-status.is-info{color:#72d7ff}.product-status.is-info i{background:#72d7ff}.product-status.is-warn{color:#ffd778}.product-status.is-warn i{background:#ffd778}.product-row-action{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:10px;color:var(--lime)}.product-row-action:hover{border-color:var(--line-strong);background:color-mix(in srgb,var(--surface-2) 70%,transparent)}.product-row-action svg{width:14px;height:14px}
.product-empty{display:grid;place-items:center;min-height:270px;padding:30px;text-align:center}.product-empty>span{display:grid;place-items:center;width:62px;height:62px;margin-bottom:16px;border:1px solid var(--line);border-radius:20px;color:var(--lime);background:color-mix(in srgb,var(--surface-2) 60%,transparent)}.product-empty svg{width:27px;height:27px}.product-empty strong{color:var(--ink);font-size:1rem}.product-empty p{max-width:430px;margin:6px 0 0;color:var(--muted);font-size:.875rem}.product-empty.small{min-height:200px}.product-pagination{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:62px;padding:10px 15px;color:var(--muted-2);font-size:.875rem}.product-pagination nav{display:flex}.product-pagination nav>div:first-child{display:none}.product-pagination nav>div:last-child{display:flex;align-items:center;gap:5px}.product-pagination a,.product-pagination span[aria-current]{display:grid;place-items:center;min-width:32px;height:32px;padding:0 8px;border:1px solid var(--line);border-radius:9px}.product-pagination span[aria-current]{color:var(--lime-ink);background:var(--lime);border-color:var(--lime)}
.product-back{display:inline-flex;align-items:center;gap:7px;margin-bottom:18px;color:var(--muted);font-size:.875rem;font-weight:650}.product-back:hover{color:var(--ink)}.product-back svg{width:15px;height:15px}.product-form{display:grid;gap:14px;margin-top:28px}.product-form-card,.product-info-card,.product-history-card,.product-import-box{padding:25px;border:1px solid var(--line);border-radius:27px 8px 23px 15px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 93%,transparent),color-mix(in srgb,var(--surface-2) 66%,transparent));box-shadow:var(--soft-shadow)}.product-section-head,.product-info-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:23px}.product-section-head>div>span,.product-info-head>span{color:var(--emerald);font-size:.875rem;font-weight:780;letter-spacing:.17em}.product-section-head h2,.product-info-head h2{margin:5px 0 0;color:var(--ink);font-size:1.35rem;font-weight:640;letter-spacing:-.04em}.product-section-head p,.product-info-head p{max-width:650px;margin:5px 0 0;color:var(--muted);font-size:.875rem;line-height:1.6}.product-section-head>i{display:grid;place-items:center;width:43px;height:43px;border:1px solid var(--line);border-radius:14px;color:var(--lime);background:color-mix(in srgb,var(--surface-2) 70%,transparent)}.product-section-head>i svg{width:19px;height:19px}.product-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.product-field{display:grid;gap:7px}.product-field.span-2{grid-column:1/-1}.product-field>span{color:var(--muted);font-size:.875rem;font-weight:650}.product-field>span small{color:var(--muted-2);font-size:.875rem;font-weight:550}.product-field>small{color:var(--muted-2);font-size:.875rem;line-height:1.55}.product-field input,.product-field select{width:100%;min-height:45px;padding:0 13px;border:1px solid var(--line);border-radius:13px;outline:0;color:var(--ink);background:color-mix(in srgb,var(--surface) 84%,transparent)}.product-field input:focus,.product-field select:focus{border-color:color-mix(in srgb,var(--emerald) 48%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--emerald) 9%,transparent)}.product-field input:disabled,.product-field input[readonly]{color:var(--muted-2);background:color-mix(in srgb,var(--surface-2) 55%,transparent)}.field-with-action{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.field-with-action button{padding:0 12px;border:1px solid var(--line);border-radius:12px;color:var(--lime);background:transparent;cursor:pointer;font-size:.875rem;font-weight:700}.product-choice-row{display:flex;gap:8px;margin-bottom:16px}.product-choice-row input,.diet-profile-row input,.allergen-grid input,.product-verify-box input{position:absolute;opacity:0;pointer-events:none}.product-choice-row span{display:grid;place-items:center;min-width:82px;height:46px;border:1px solid var(--line);border-radius:13px;color:var(--muted);cursor:pointer;font-weight:720}.product-choice-row input:checked+span{color:var(--lime-ink);border-color:var(--lime);background:var(--lime)}.product-waste{max-width:360px;margin-top:15px}.nutrition-basis{max-width:350px;margin-bottom:15px}.nutrition-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.nutrition-field{display:grid;gap:6px}.nutrition-field>span{color:var(--muted);font-size:.875rem;font-weight:650}.nutrition-field>div{display:flex;align-items:center;min-height:45px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 84%,transparent);overflow:hidden}.nutrition-field input{width:100%;min-width:0;height:43px;padding:0 10px;border:0;outline:0;color:var(--ink);background:transparent}.nutrition-field b{padding:0 10px;color:var(--muted-2);font-size:.875rem}.diet-profile-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.diet-profile-row span{display:block;min-height:68px;padding:12px 14px;border:1px solid var(--line);border-radius:15px;color:var(--muted);cursor:pointer;font-size:.875rem}.diet-profile-row strong{display:block;margin-bottom:3px;color:var(--ink);font-size:.875rem}.diet-profile-row input:checked+span{border-color:color-mix(in srgb,var(--lime) 45%,var(--line));background:color-mix(in srgb,var(--lime) 7%,var(--surface))}.allergen-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:16px}.allergen-grid span{display:flex;align-items:center;gap:8px;min-height:46px;padding:7px 10px;border:1px solid var(--line);border-radius:12px;cursor:pointer}.allergen-grid b{display:grid;place-items:center;min-width:34px;height:27px;border-radius:8px;color:var(--lime);background:color-mix(in srgb,var(--lime) 7%,transparent);font-size:.875rem}.allergen-grid small{color:var(--muted);font-size:.875rem;line-height:1.2}.allergen-grid input:checked+span{border-color:color-mix(in srgb,var(--emerald) 45%,var(--line));background:color-mix(in srgb,var(--emerald) 6%,var(--surface))}.allergen-state{margin-top:15px}.product-verify-box{display:flex;align-items:center;margin-top:15px}.product-verify-box>span{display:block;width:100%;padding:13px 15px;border:1px solid var(--line);border-radius:15px;cursor:pointer}.product-verify-box strong{display:block;font-size:.875rem}.product-verify-box small{display:block;margin-top:3px;color:var(--muted);font-size:.875rem}.product-verify-box input:checked+span{border-color:color-mix(in srgb,var(--lime) 45%,var(--line));background:color-mix(in srgb,var(--lime) 6%,var(--surface))}.product-form-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}.product-warning{display:flex;align-items:flex-start;gap:10px;margin-top:20px;padding:14px 16px;border:1px solid color-mix(in srgb,#ffd778 35%,var(--line));border-radius:15px;background:color-mix(in srgb,#ffd778 6%,var(--surface));color:#ffd778}.product-warning strong{font-size:.875rem}.product-warning span{color:var(--muted);font-size:.875rem}.product-warning.compact{display:grid;margin-top:18px}
.product-title-line{display:flex;align-items:center;gap:17px}.product-detail-thumb{width:62px;height:62px;border-radius:18px}.product-detail-thumb svg{width:26px;height:26px}.product-card-head h1{font-size:clamp(2.9rem,5vw,5.2rem)}.product-summary-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin-top:26px;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:var(--line)}.product-summary-strip>div{min-height:105px;padding:17px;background:var(--surface)}.product-summary-strip span{display:block;color:var(--muted-2);font-size:.875rem;font-weight:760;letter-spacing:.13em}.product-summary-strip strong{display:block;margin-top:10px;color:var(--ink);font-size:.875rem}.product-summary-strip small{display:block;margin-top:3px;color:var(--muted-2);font-size:.875rem}.product-detail-grid,.product-import-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:13px}.product-dl{margin:0}.product-dl>div{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(0,1.3fr);gap:20px;min-height:43px;padding:10px 0;border-top:1px solid var(--line)}.product-dl dt{color:var(--muted-2);font-size:.875rem}.product-dl dd{margin:0;color:var(--ink);font-size:.875rem;font-weight:620;text-align:right;word-break:break-word}.product-dl a{color:var(--emerald)}.nutrition-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.nutrition-summary>div{position:relative;isolation:isolate;overflow:hidden;min-height:94px;padding:14px 14px 13px;border:1px solid color-mix(in srgb,var(--emerald) 18%,var(--line));border-radius:16px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface-2) 72%,transparent),color-mix(in srgb,var(--surface) 92%,transparent));box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 14px 26px rgba(4,18,12,.12)}.nutrition-summary>div::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at top left,color-mix(in srgb,var(--lime) 12%,transparent),transparent 56%);pointer-events:none;z-index:-1}.nutrition-summary>div::after{content:'';position:absolute;left:14px;right:14px;bottom:0;height:2px;border-radius:999px;background:linear-gradient(90deg,color-mix(in srgb,var(--emerald) 0%,transparent),color-mix(in srgb,var(--emerald) 68%,transparent),color-mix(in srgb,var(--lime) 80%,transparent));opacity:.55}.nutrition-summary span{display:block;color:var(--muted-2);font-size:.875rem;font-weight:660}.nutrition-summary strong{display:block;margin-top:10px;color:var(--ink);font-size:1.32rem;font-weight:760;letter-spacing:-.04em}.nutrition-summary small{display:block;margin-top:2px;color:var(--muted);font-size:.875rem}.product-profile-large{display:flex;flex-wrap:wrap;gap:7px}.product-profile-large span{display:grid;place-items:center;min-width:53px;height:38px;border:1px solid color-mix(in srgb,var(--lime) 25%,var(--line));border-radius:11px;color:var(--lime);font-size:.875rem;font-weight:780}.product-profile-large i{color:var(--muted);font-size:.875rem;font-style:normal}.product-allergen-list{display:grid;margin-top:15px}.product-allergen-list>div:not(.is-empty){display:grid;grid-template-columns:50px minmax(0,1fr);align-items:center;gap:10px;min-height:42px;border-top:1px solid var(--line)}.product-allergen-list b{color:var(--lime);font-size:.875rem}.product-allergen-list span{color:var(--muted);font-size:.875rem}.product-allergen-list .is-empty{padding:16px 0;color:var(--muted);font-size:.875rem;line-height:1.6}.product-source-meta{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line);font-size:.875rem}.product-source-meta span{color:var(--muted-2)}.product-source-meta strong{font-size:.875rem}.product-history-card{margin-top:13px}.product-history-list{display:grid}.product-history-list>div{position:relative;display:grid;grid-template-columns:60px minmax(110px,.6fr) minmax(0,1fr) auto;align-items:center;gap:12px;min-height:54px;border-top:1px solid var(--line);color:var(--muted);font-size:.875rem}.product-history-list>div.current{color:var(--ink)}.product-history-list>div>span{color:var(--lime);font-weight:760}.product-history-list>div>strong{font-size:.875rem}.product-history-list>div>small{color:var(--muted-2)}.product-history-list>div>i{padding:3px 7px;border:1px solid color-mix(in srgb,var(--emerald) 25%,var(--line));border-radius:999px;color:var(--emerald);font-size:.875rem;font-style:normal;font-weight:760}
.product-import-box{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:26px;max-width:950px;margin:34px auto 0}.product-import-icon{display:grid;place-items:center;width:82px;height:82px;border:1px solid var(--line);border-radius:25px;color:var(--lime);background:color-mix(in srgb,var(--surface-2) 65%,transparent)}.product-import-icon svg{width:34px;height:34px}.product-import-box>div:last-child>span{color:var(--emerald);font-size:.875rem;font-weight:780;letter-spacing:.16em}.product-import-box h2{margin:7px 0 5px;color:var(--ink);font-size:1.5rem}.product-import-box p{max-width:650px;margin:0 0 18px;color:var(--muted);font-size:.875rem;line-height:1.65}.import-ean{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.import-ean input{min-height:46px;padding:0 13px;border:1px solid var(--line);border-radius:13px;outline:0;color:var(--ink);background:var(--surface);font-size:.875rem}.product-import-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:28px}.product-import-summary>div{padding:15px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--surface) 75%,transparent)}.product-import-summary span{display:block;color:var(--muted-2);font-size:.875rem}.product-import-summary strong{display:block;margin-top:5px;color:var(--ink);font-size:.875rem}.product-allergen-tags.large{margin-top:15px}
.permission-group{margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}.permission-group>strong{display:block;margin-bottom:8px;color:var(--muted);font-size:.875rem;font-weight:720}.permission-list{display:grid;gap:5px}.permission-list label{cursor:pointer}.permission-list input{position:absolute;opacity:0;pointer-events:none}.permission-list span{display:flex;align-items:center;gap:8px;min-height:34px;padding:0 8px;border:1px solid transparent;border-radius:9px;color:var(--muted-2)}.permission-list span i{width:7px;height:7px;border:1px solid var(--line-strong);border-radius:50%}.permission-list b{font-size:.875rem;font-weight:600}.permission-list input:checked+span{color:var(--ink);border-color:var(--line);background:color-mix(in srgb,var(--emerald) 5%,transparent)}.permission-list input:checked+span i{border-color:var(--emerald);background:var(--emerald);box-shadow:0 0 9px color-mix(in srgb,var(--emerald) 40%,transparent)}
html[data-theme="light"] .product-stat,html[data-theme="light"] .product-panel,html[data-theme="light"] .product-form-card,html[data-theme="light"] .product-info-card,html[data-theme="light"] .product-history-card,html[data-theme="light"] .product-import-box{background:#fff;border-color:rgba(16,45,31,.13);box-shadow:0 12px 34px rgba(23,50,34,.06)}html[data-theme="light"] .product-search,html[data-theme="light"] .product-filter select,html[data-theme="light"] .product-field input,html[data-theme="light"] .product-field select,html[data-theme="light"] .nutrition-field>div,html[data-theme="light"] .import-ean input{background:#f7faf5;border-color:rgba(16,45,31,.13)}html[data-theme="light"] .product-summary-strip>div{background:#fff}html[data-theme="light"] .product-thumb,html[data-theme="light"] .product-detail-thumb{background:#f0f6ed}html[data-theme="light"] .product-primary{background:#bde84e}html[data-theme="light"] .nutrition-summary>div{border-color:rgba(16,45,31,.12);background:linear-gradient(145deg,#fff,#f3faf2);box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 14px 28px rgba(23,50,34,.07)}html[data-theme="light"] .nutrition-summary>div::before{background:radial-gradient(circle at top left,rgba(189,232,78,.24),transparent 58%)}html[data-theme="light"] .nutrition-summary small{color:#5c6d61}
@media(max-width:1180px){.product-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nutrition-grid,.allergen-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-detail-grid{grid-template-columns:1fr}.product-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.product-head,.product-detail-head{display:block}.product-head-actions{justify-content:flex-start;margin-top:20px}.product-stat-grid{grid-template-columns:1fr 1fr}.product-stat{min-height:108px}.product-form-grid,.diet-profile-row,.product-import-grid{grid-template-columns:1fr}.product-field.span-2{grid-column:auto}.nutrition-grid,.allergen-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-form-card,.product-info-card,.product-history-card{padding:19px}.product-summary-strip,.product-import-summary{grid-template-columns:1fr 1fr}.product-import-box{grid-template-columns:1fr}.import-ean{grid-template-columns:1fr}.product-history-list>div{grid-template-columns:45px minmax(90px,.6fr) minmax(0,1fr)}.product-history-list>div>i{display:none}}
@media(max-width:520px){.product-stat-grid,.product-summary-strip,.product-import-summary,.nutrition-grid,.allergen-grid{grid-template-columns:1fr}.product-filter-row label,.product-filter-more label{width:100%;min-width:0}.product-filter-toggle,.product-clear{flex:1}.product-title-line{align-items:flex-start}.product-detail-thumb{width:50px;height:50px}.product-card-head h1{font-size:2.7rem}.field-with-action{grid-template-columns:1fr}.product-form-actions{flex-direction:column-reverse}.product-form-actions>*{width:100%}}
.product-import-confirm{margin-top:13px}.import-confirm-card{box-shadow:none}.product-import-reject{display:flex;justify-content:flex-end;margin-top:8px}


/* ================================================================
   Nutriva 0.4.10 · Readability baseline + inline Open Food Facts + product create ergonomics
   100% = 80% poprzedniej typografii; 115% = 92%; 130% = 104%.
   ================================================================ */
body{font-size:1rem;line-height:1.6}
button,input,select,textarea{font-size:1rem}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea{min-height:46px}
.future-nav>* , .module-menu a{font-size:1rem;min-height:48px}
.command-title>strong,.module-breadcrumb,.module-context-chip strong,.user-chip>span:last-child{font-size:1rem}
.orbit-select-trigger,.orbit-select-option,.module-top-action,.product-primary,.product-secondary,.product-danger,.product-filter-toggle,.product-clear{font-size:1rem;min-height:46px}
.launcher-heading p,.module-hero-copy p,.workspace-head p,.product-head p,.product-detail-head p{font-size:1rem;line-height:1.72}
.module-card-copy p,.product-empty p,.admin-notice,.product-warning span{font-size:.9375rem}
.product-search input,.product-search button,.product-filter select,.product-filter-row label>span,.product-filter-more label>span{font-size:1rem}
.product-filter select,.product-filter-toggle,.product-clear{min-height:46px}
.product-table th{height:52px;font-size:.9375rem}.product-table td{height:78px;font-size:1rem}.product-name-cell strong{font-size:1rem}.product-name-cell small,.product-mono{font-size:.875rem}
.product-tags span,.product-allergen-tags span,.product-status{font-size:.875rem;min-height:30px}
.product-field>span,.nutrition-field>span,.product-section-head p,.product-verify-box small,.product-dl dt,.product-dl dd{font-size:.9375rem}
.product-field input,.product-field select,.nutrition-field input{font-size:1rem;min-height:48px}
.product-section-head h2{font-size:1.45rem}.product-section-head>div>span{font-size:.875rem}
.diet-profile-row span,.allergen-grid small,.product-verify-box strong{font-size:.9375rem}.diet-profile-row strong{font-size:1.05rem}
.allergen-grid span{min-height:54px}.allergen-grid b{font-size:.875rem}
.product-stat>span,.product-stat small,.product-summary-strip span,.product-summary-strip small,.product-source-meta,.product-history-list>div{font-size:.875rem}
.product-stat strong{font-size:2.1rem}
.permission-list b,.permission-group>strong{font-size:.875rem}.permission-list span{min-height:42px}

.product-off-card{display:grid;grid-template-columns:76px minmax(0,1fr);gap:22px;margin-top:28px;padding:22px;border:1px solid color-mix(in srgb,var(--emerald) 28%,var(--line));border-radius:26px 8px 22px 15px;background:linear-gradient(145deg,color-mix(in srgb,var(--emerald) 5%,var(--surface)),color-mix(in srgb,var(--surface-2) 68%,var(--surface)));box-shadow:var(--soft-shadow)}
.product-off-icon{display:grid;place-items:center;width:68px;height:68px;border:1px solid color-mix(in srgb,var(--lime) 22%,var(--line));border-radius:21px;color:var(--lime);background:color-mix(in srgb,var(--lime) 6%,var(--surface))}.product-off-icon svg{width:29px;height:29px}
.product-off-kicker{display:block;color:var(--emerald);font-size:.875rem;font-weight:780;letter-spacing:.08em}.product-off-copy h2{margin:5px 0 7px;color:var(--ink);font-size:1.45rem;letter-spacing:-.03em}.product-off-copy>p{max-width:850px;margin:0;color:var(--muted);font-size:1rem;line-height:1.65}
.product-off-actions{display:grid;grid-template-columns:minmax(260px,430px) auto;align-items:end;gap:10px;margin-top:17px}.product-off-ean{display:grid;gap:6px}.product-off-ean>span{color:var(--muted);font-size:.9375rem;font-weight:680}.product-off-ean input{width:100%;min-height:48px;padding:0 13px;border:1px solid var(--line);border-radius:13px;outline:0;color:var(--ink);background:color-mix(in srgb,var(--surface) 86%,transparent);font-size:1rem}.product-off-ean input:focus{border-color:color-mix(in srgb,var(--emerald) 52%,var(--line));box-shadow:0 0 0 4px color-mix(in srgb,var(--emerald) 9%,transparent)}
.product-off-button{min-height:48px}.product-off-button.is-loading{opacity:.72;cursor:wait}
.product-off-status{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:13px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;font-size:.9375rem;line-height:1.45}.product-off-status.is-success{color:var(--emerald);border-color:color-mix(in srgb,var(--emerald) 30%,var(--line));background:color-mix(in srgb,var(--emerald) 5%,transparent)}.product-off-status.is-error{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 30%,var(--line));background:color-mix(in srgb,var(--danger) 5%,transparent)}.product-off-status.is-warn{color:#d49a24;border-color:color-mix(in srgb,#ffd778 35%,var(--line));background:color-mix(in srgb,#ffd778 6%,transparent)}.product-off-status.is-loading{color:var(--muted)}.product-off-status a{color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.product-off-source{display:flex;align-items:center;flex-wrap:wrap;gap:9px 22px;margin-top:11px;color:var(--muted);font-size:.875rem}.product-off-source b{color:var(--muted-2);font-weight:700}.product-off-source i{font-style:normal}.product-off-source a{margin-left:auto;color:var(--emerald);font-weight:650}
html[data-theme="light"] .product-off-card{background:#fff;border-color:rgba(16,45,31,.14);box-shadow:0 12px 34px rgba(23,50,34,.06)}html[data-theme="light"] .product-off-ean input{background:#f7faf5;border-color:rgba(16,45,31,.14)}
@media(max-width:760px){.product-off-card{grid-template-columns:1fr}.product-off-icon{width:58px;height:58px}.product-off-actions{grid-template-columns:1fr}.product-off-source{display:grid}.product-off-source a{margin-left:0}}


.product-image-preview.span-2{grid-column:1/-1}.product-image-preview{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:16px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 90%,transparent),color-mix(in srgb,var(--surface-2) 62%,transparent))}.product-image-preview[hidden],.product-image-preview-empty[hidden],.product-image-preview-media img[hidden]{display:none!important}.product-image-preview-media{display:grid;place-items:center;min-height:180px;padding:14px;border:1px dashed color-mix(in srgb,var(--emerald) 26%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--surface-2) 64%,transparent);overflow:hidden}.product-image-preview-media img{display:block;width:auto;max-width:100%;height:auto;max-height:190px;object-fit:contain;border-radius:10px;background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 88%,transparent),color-mix(in srgb,var(--surface-2) 78%,transparent))}.product-image-preview-empty{display:grid;justify-items:center;gap:10px;padding:18px;color:var(--muted);text-align:center;font-size:.9375rem;line-height:1.5}.product-image-preview-empty svg{width:34px;height:34px;color:var(--lime)}.product-image-preview-copy{display:grid;gap:6px}.product-image-preview-kicker{color:var(--emerald);font-size:.875rem;font-weight:780;letter-spacing:.1em}.product-image-preview-copy strong{font-size:1rem;letter-spacing:-.02em}.product-image-preview-copy small{color:var(--muted);font-size:.9375rem;line-height:1.6}
.product-modal{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px}.product-modal-backdrop{position:absolute;inset:0;background:rgba(3,10,6,.62);backdrop-filter:blur(7px)}.product-modal-card{position:relative;z-index:1;max-width:620px;width:min(100%,620px);padding:24px;border:1px solid color-mix(in srgb,var(--emerald) 26%,var(--line));border-radius:24px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 92%,transparent),color-mix(in srgb,var(--surface-2) 78%,transparent));box-shadow:0 28px 60px rgba(0,0,0,.35)}.product-modal-kicker{display:block;color:var(--emerald);font-size:.875rem;font-weight:780;letter-spacing:.12em}.product-modal-card h2{margin:8px 0 10px;font-size:1.7rem;letter-spacing:-.04em}.product-modal-card p{margin:0;color:var(--muted);font-size:1rem;line-height:1.65}.product-modal-card p strong{color:var(--ink)}.product-modal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:20px}.product-ghost{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 16px;border:1px dashed var(--line);border-radius:14px;background:transparent;color:var(--muted);font-size:.9375rem;font-weight:700;cursor:pointer}
html[data-theme="light"] .product-image-preview{background:#fff;border-color:rgba(16,45,31,.13);box-shadow:0 12px 30px rgba(23,50,34,.05)}html[data-theme="light"] .product-image-preview-media{background:#f7faf5;border-color:rgba(16,45,31,.16)}html[data-theme="light"] .product-modal-card{background:#fff;border-color:rgba(16,45,31,.13);box-shadow:0 24px 56px rgba(23,50,34,.16)}
.product-modal[hidden]{display:none!important}body.modal-open{overflow:hidden}
@media(max-width:760px){.product-image-preview{grid-template-columns:1fr}.product-modal-actions{flex-direction:column}.product-modal-actions>*{width:100%}}

/* Nutriva 0.4.10 · Product card eyebrow alignment */
.product-card-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  min-height: 28px;
  margin-bottom: 18px;
}
.product-card-eyebrow .product-back,
.product-card-eyebrow .future-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0;
  line-height: 1;
  vertical-align: middle;
}
.product-card-eyebrow .product-back {
  gap: 7px;
}
.product-card-eyebrow .product-back svg {
  flex: 0 0 auto;
}
.product-card-eyebrow .future-kicker {
  gap: 10px;
}
.product-card-eyebrow .product-back > span,
.product-card-eyebrow .future-kicker > span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
@media (max-width: 520px) {
  .product-card-eyebrow {
    gap: 8px 10px;
    margin-bottom: 14px;
  }
}

/* Nutriva 0.5.0 · Warehouse states, lots and PZ */
.warehouse-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}.warehouse-stat-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.warehouse-stat{min-height:120px;padding:18px 20px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 92%,transparent),color-mix(in srgb,var(--surface-2) 72%,transparent));text-decoration:none;color:var(--ink);box-shadow:var(--soft-shadow);position:relative;overflow:hidden}.warehouse-stat::after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:2px;background:linear-gradient(90deg,var(--emerald),transparent);opacity:.45}.warehouse-stat>span{display:block;color:var(--muted);font-size:.72rem;font-weight:780;letter-spacing:.1em}.warehouse-stat>strong{display:block;margin-top:9px;font-size:1.55rem;letter-spacing:-.045em}.warehouse-stat>small{display:block;margin-top:6px;color:var(--muted);font-size:.78rem}.warehouse-stat.is-alert::after{background:linear-gradient(90deg,var(--danger),transparent);opacity:.8}.warehouse-stat.is-warn::after{background:linear-gradient(90deg,#e0a23d,transparent);opacity:.8}
.warehouse-table .warehouse-qty{font-variant-numeric:tabular-nums}.warehouse-expiry{font-weight:720}.warehouse-expiry.is-soon{color:#e0a23d}.warehouse-expiry.is-expired{color:var(--danger)}.warehouse-doc-link{color:var(--ink);font-weight:720;text-decoration:none}.warehouse-doc-link:hover{color:var(--emerald)}
.warehouse-detail-grid{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);gap:12px;margin-top:12px}.warehouse-settings-form{display:grid;gap:14px}.warehouse-settings-form label,.warehouse-item-row label{display:grid;gap:6px}.warehouse-settings-form label>span,.warehouse-item-row label>span{color:var(--muted);font-size:.75rem;font-weight:720}.warehouse-settings-form input,.warehouse-item-row input,.warehouse-item-row select,.warehouse-pz-form input,.warehouse-pz-form select,.warehouse-pz-form textarea{width:100%;min-height:42px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 88%,transparent);color:var(--ink);font:inherit;outline:0}.warehouse-pz-form textarea{padding:11px 12px;resize:vertical}.warehouse-settings-form input:focus,.warehouse-pz-form input:focus,.warehouse-pz-form select:focus,.warehouse-pz-form textarea:focus{border-color:color-mix(in srgb,var(--emerald) 55%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--emerald) 9%,transparent)}
.warehouse-input-unit{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 88%,transparent);overflow:hidden}.warehouse-input-unit input{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.warehouse-input-unit b{padding:0 12px;color:var(--muted);font-size:.78rem;border-left:1px solid var(--line)}
.warehouse-lot-list{display:grid;gap:8px}.warehouse-lot-row{display:grid;grid-template-columns:minmax(170px,1fr) minmax(120px,.55fr) minmax(140px,.7fr);gap:14px;align-items:center;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface-2) 48%,transparent)}.warehouse-lot-row>div{display:grid;gap:3px}.warehouse-lot-row>div:nth-child(n+2){text-align:right}.warehouse-lot-row strong,.warehouse-lot-row span{font-weight:720}.warehouse-lot-row small{color:var(--muted);font-size:.74rem}.product-empty.compact{padding:26px 18px}.warehouse-summary small a{color:var(--emerald);text-decoration:none;font-weight:650}
.warehouse-pz-form{display:grid;gap:12px}.warehouse-items-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.warehouse-items{display:grid;gap:10px;margin-top:16px}.warehouse-item-row{display:grid;grid-template-columns:minmax(240px,1.6fr) minmax(120px,.7fr) minmax(130px,.75fr) minmax(150px,.85fr) minmax(120px,.65fr) minmax(145px,.8fr) 34px;gap:8px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--surface-2) 45%,transparent)}.warehouse-row-remove{width:34px;height:42px;border:1px solid color-mix(in srgb,var(--danger) 34%,var(--line));border-radius:10px;background:transparent;color:var(--danger);font-size:1.25rem;cursor:pointer}.warehouse-row-remove:hover{background:color-mix(in srgb,var(--danger) 8%,transparent)}.warehouse-note{margin-top:12px}.warehouse-note>p{margin:0;color:var(--muted);line-height:1.65}.warehouse-document-card{margin-top:12px}
html[data-theme="light"] .warehouse-stat,html[data-theme="light"] .warehouse-item-row,html[data-theme="light"] .warehouse-lot-row{background:#fff;border-color:rgba(16,45,31,.13);box-shadow:0 10px 28px rgba(23,50,34,.05)}html[data-theme="light"] .warehouse-settings-form input,html[data-theme="light"] .warehouse-pz-form input,html[data-theme="light"] .warehouse-pz-form select,html[data-theme="light"] .warehouse-pz-form textarea,html[data-theme="light"] .warehouse-input-unit{background:#f8fbf7;border-color:rgba(16,45,31,.15)}
@media(max-width:1180px){.warehouse-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-item-row{grid-template-columns:repeat(3,minmax(0,1fr))}.warehouse-item-product{grid-column:span 2}.warehouse-row-remove{align-self:end}}
@media(max-width:820px){.warehouse-detail-grid{grid-template-columns:1fr}.warehouse-lot-row{grid-template-columns:1fr}.warehouse-lot-row>div:nth-child(n+2){text-align:left}.warehouse-item-row{grid-template-columns:1fr}.warehouse-item-product{grid-column:auto}.warehouse-items-head{display:grid}.warehouse-stat-grid,.warehouse-stat-grid-3{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.warehouse-stat-grid,.warehouse-stat-grid-3{grid-template-columns:1fr}}

/* Nutriva 0.5.2 · Suppliers, CEIDG and PZ supplier picker */
.supplier-toolbar-panel{margin-top:22px;padding:16px}.supplier-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 190px auto auto;gap:10px;align-items:end}.supplier-full-name{display:block;margin-top:4px;color:var(--muted-2);font-size:.78rem}.supplier-nip{font-variant-numeric:tabular-nums;white-space:nowrap}.supplier-nip-row,.supplier-inline-nip{display:grid;grid-template-columns:minmax(240px,1fr) auto;align-items:end;gap:10px;margin-bottom:16px}.supplier-nip-row>label,.supplier-inline-nip>label,.supplier-select-field{display:grid;gap:7px}.supplier-nip-row>label>span,.supplier-inline-nip>label>span,.supplier-select-field>span{color:var(--muted);font-size:.8rem;font-weight:720}.supplier-nip-row input,.supplier-inline-nip input,.supplier-select-field select{width:100%;min-height:44px;padding:0 13px;border:1px solid var(--line);border-radius:13px;color:var(--ink);background:color-mix(in srgb,var(--surface) 84%,transparent);font:inherit}.supplier-ceidg-status{margin:0 0 18px}.supplier-source-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}.supplier-source-strip>div,.supplier-document-grid>div{padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface) 70%,transparent)}.supplier-source-strip span,.supplier-document-grid span{display:block;color:var(--muted-2);font-size:.74rem;font-weight:760;letter-spacing:.08em}.supplier-source-strip strong,.supplier-document-grid strong{display:block;margin-top:5px;color:var(--ink);font-size:.88rem}.supplier-archive-zone{display:flex;justify-content:flex-end;margin-top:16px}.supplier-select-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.supplier-select-field>small{color:var(--muted-2);font-size:.75rem;line-height:1.5}.supplier-inline-open{white-space:nowrap}.supplier-modal-card{max-width:780px;max-height:min(88vh,780px);overflow:auto}.supplier-inline-grid{margin-top:12px}.supplier-inline-errors{margin-top:12px;padding:11px 13px;border:1px solid color-mix(in srgb,var(--danger) 35%,var(--line));border-radius:12px;color:var(--danger);background:color-mix(in srgb,var(--danger) 7%,var(--surface));font-size:.82rem}.supplier-document-card{margin-top:18px}.supplier-document-grid{display:grid;grid-template-columns:180px minmax(0,1fr) 180px;gap:10px}.product-status.is-neutral{color:var(--muted);border-color:var(--line);background:color-mix(in srgb,var(--surface) 72%,transparent)}
html[data-theme="light"] .supplier-nip-row input,html[data-theme="light"] .supplier-inline-nip input,html[data-theme="light"] .supplier-select-field select,html[data-theme="light"] .supplier-source-strip>div,html[data-theme="light"] .supplier-document-grid>div{background:#f7faf5;border-color:rgba(16,45,31,.13)}
@media(max-width:900px){.supplier-toolbar{grid-template-columns:1fr 1fr}.supplier-document-grid{grid-template-columns:1fr}.supplier-source-strip{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.supplier-toolbar,.supplier-nip-row,.supplier-inline-nip,.supplier-select-row,.supplier-source-strip{grid-template-columns:1fr}.supplier-inline-open{width:100%}}

/* Nutriva 0.5.2 · Supplier notes + stable supplier filters */
.supplier-toolbar-panel{padding:18px 20px}
.supplier-toolbar{display:grid;grid-template-columns:minmax(320px,1fr) 190px auto auto;gap:12px;align-items:end}
.supplier-toolbar>.product-search{align-self:end;margin:0}
.supplier-filter-field{display:grid;grid-template-columns:1fr;gap:7px;min-width:0;margin:0;padding:0;border:0;align-self:end}
.supplier-filter-field>span{display:block;margin:0;color:var(--muted);font-size:.8rem;font-weight:720;line-height:1.25}
.supplier-filter-field select{width:100%;min-height:46px;padding:0 38px 0 13px;border:1px solid var(--line);border-radius:13px;outline:0;color:var(--ink);background:color-mix(in srgb,var(--surface) 84%,transparent);font:inherit}
.supplier-filter-field select:focus{border-color:color-mix(in srgb,var(--emerald) 55%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--emerald) 9%,transparent)}
.supplier-toolbar>.product-secondary{align-self:end;min-height:46px;margin:0}
.supplier-note-badge{display:inline-flex;align-items:center;min-height:22px;margin-top:6px;padding:2px 8px;border:1px solid color-mix(in srgb,var(--lime) 28%,var(--line));border-radius:999px;color:var(--lime);background:color-mix(in srgb,var(--lime) 7%,transparent);font-size:.7rem;font-weight:760;letter-spacing:.035em}
.supplier-notes-card{overflow:visible}
.supplier-notes-field{display:grid;gap:8px}
.supplier-notes-field>span{color:var(--muted);font-size:.8rem;font-weight:720}
.supplier-notes-field textarea{width:100%;min-height:150px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;outline:0;color:var(--ink);background:color-mix(in srgb,var(--surface) 84%,transparent);font:inherit;line-height:1.55;resize:vertical}
.supplier-notes-field textarea:focus{border-color:color-mix(in srgb,var(--emerald) 55%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--emerald) 9%,transparent)}
.supplier-notes-field>small{color:var(--muted-2);font-size:.75rem;line-height:1.5}
.supplier-note-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted-2);font-size:.75rem}
.supplier-note-meta strong{color:var(--ink);font-weight:720}
html[data-theme="light"] .supplier-filter-field select,html[data-theme="light"] .supplier-notes-field textarea{background:#f8fbf7;border-color:rgba(16,45,31,.15)}
@media(max-width:900px){.supplier-toolbar{grid-template-columns:minmax(0,1fr) minmax(160px,.45fr) auto}.supplier-toolbar>a.product-secondary{grid-column:auto}}
@media(max-width:700px){.supplier-toolbar{grid-template-columns:1fr}.supplier-toolbar>.product-search,.supplier-filter-field,.supplier-toolbar>.product-secondary{width:100%}}

/* Nutriva 0.5.7 · RW + FEFO/FIFO */
.rw-filter-panel{margin-top:18px;padding:16px 18px}.rw-filterbar{display:grid;grid-template-columns:190px 170px 170px auto auto;align-items:end;gap:10px}.rw-filterbar label{display:grid;gap:7px;margin:0}.rw-filterbar label>span{color:var(--muted);font-size:.8rem;font-weight:720}.rw-filterbar input,.rw-filterbar select{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:12px;outline:0;color:var(--ink);background:color-mix(in srgb,var(--surface) 84%,transparent);font:inherit}.rw-filterbar .product-secondary{min-height:44px;margin:0}.rw-rule-badge{display:inline-flex;align-items:center;justify-content:center;min-width:52px;min-height:24px;padding:2px 9px;border:1px solid color-mix(in srgb,var(--lime) 30%,var(--line));border-radius:999px;color:var(--lime);background:color-mix(in srgb,var(--lime) 7%,transparent);font-size:.72rem;font-weight:780;letter-spacing:.05em}
.rw-rule-card{align-self:stretch;display:grid;align-content:center;gap:4px;min-height:86px;padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,color-mix(in srgb,var(--emerald) 6%,var(--surface)),color-mix(in srgb,var(--surface) 86%,transparent))}.rw-rule-card>span{color:var(--emerald);font-size:.7rem;font-weight:800;letter-spacing:.12em}.rw-rule-card>strong{color:var(--ink);font-size:1.05rem}.rw-rule-card>small{color:var(--muted-2);font-size:.74rem;line-height:1.45}.rw-item-row{grid-template-columns:minmax(320px,1.8fr) minmax(150px,.7fr) 34px}.rw-item-row .warehouse-item-product small{display:block;margin-top:6px;color:var(--muted-2);font-size:.74rem;line-height:1.4}.rw-lots-card{margin-top:12px}.rw-allocation-list{display:grid;gap:12px}.rw-allocation-group{padding:14px;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--surface-2) 46%,transparent)}.rw-allocation-title{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:10px;border-bottom:1px solid var(--line)}.rw-allocation-title strong{color:var(--ink)}.rw-allocation-title span{color:var(--lime);font-weight:760}.rw-allocation-row{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:12px;padding:11px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 75%,transparent)}.rw-allocation-row:last-child{border-bottom:0}.rw-allocation-row>div{display:grid;gap:3px}.rw-allocation-row>div:last-child{text-align:right}.rw-allocation-row span{color:var(--muted-2);font-size:.7rem;font-weight:720;text-transform:uppercase;letter-spacing:.07em}.rw-allocation-row strong{color:var(--ink);font-size:.82rem}.rw-allocation-empty{padding:14px 0;color:var(--muted-2);font-size:.8rem}
html[data-theme="light"] .rw-filterbar input,html[data-theme="light"] .rw-filterbar select,html[data-theme="light"] .rw-rule-card,html[data-theme="light"] .rw-allocation-group{background:#f8fbf7;border-color:rgba(16,45,31,.14)}
@media(max-width:980px){.rw-filterbar{grid-template-columns:1fr 1fr 1fr}.rw-item-row{grid-template-columns:minmax(0,1fr) 170px 34px}.rw-allocation-row{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.rw-filterbar,.rw-item-row,.rw-allocation-row{grid-template-columns:1fr}.rw-item-row .warehouse-row-remove{width:100%}.rw-allocation-row>div:last-child{text-align:left}.rw-allocation-title{align-items:flex-start;flex-direction:column}}


/* Nutriva 0.5.8 · RW row alignment */
.rw-item-row{
  align-items:start;
}
.rw-item-row>label,
.rw-remove-cell{
  display:grid;
  grid-template-rows:auto 42px minmax(1.15rem,auto);
  gap:6px;
  align-content:start;
  min-width:0;
  margin:0;
}
.rw-item-row>label>span,
.rw-remove-cell>.rw-action-label{
  display:flex;
  align-items:center;
  min-height:1rem;
  margin:0;
  line-height:1.2;
}
.rw-item-row>label>select,
.rw-item-row .warehouse-input-unit,
.rw-remove-cell .warehouse-row-remove{
  height:42px;
  min-height:42px;
  margin:0;
}
.rw-item-row .warehouse-item-product small{
  align-self:start;
  min-height:1.15rem;
  margin:0;
}
.rw-remove-cell>.rw-action-label{
  visibility:hidden;
  color:var(--muted);
  font-size:.75rem;
  font-weight:720;
}
.rw-remove-cell .warehouse-row-remove{
  width:100%;
  align-self:start;
}
@media(max-width:680px){
  .rw-remove-cell{
    grid-template-rows:42px;
  }
  .rw-remove-cell>.rw-action-label{
    display:none;
  }
}

/* Nutriva 0.5.9 · Warehouse corrections */
.correction-filterbar{grid-template-columns:180px 180px 160px 160px auto auto}
.correction-value{font-weight:780;font-variant-numeric:tabular-nums}.correction-value.is-negative,.correction-delta.is-negative{color:var(--danger)}.correction-value.is-positive,.correction-delta.is-positive{color:var(--lime)}
.correction-source-picker,.correction-source-summary{margin-top:18px}.correction-source-form{display:grid;grid-template-columns:minmax(280px,1fr) auto;gap:12px;align-items:end;margin-top:18px}.correction-source-form label,.correction-meta-grid label{display:grid;gap:7px}.correction-source-form label>span,.correction-meta-grid label>span{color:var(--muted);font-size:.8rem;font-weight:720}.correction-source-form select,.correction-meta-grid input,.correction-meta-grid textarea,.correction-delta-input input{width:100%;min-height:44px;padding:0 13px;border:1px solid var(--line);border-radius:13px;outline:0;color:var(--ink);background:color-mix(in srgb,var(--surface) 84%,transparent);font:inherit}.correction-meta-grid textarea{min-height:96px;padding:12px 13px;resize:vertical;line-height:1.5}.correction-source-form select:focus,.correction-meta-grid input:focus,.correction-meta-grid textarea:focus,.correction-delta-input input:focus{border-color:color-mix(in srgb,var(--emerald) 55%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--emerald) 9%,transparent)}
.correction-source-summary{display:flex;align-items:center;justify-content:space-between;gap:18px}.correction-source-summary .product-info-head{margin:0}.correction-meta-card,.correction-lines-card{margin-top:12px}.correction-meta-grid{display:grid;grid-template-columns:210px minmax(0,1fr);gap:14px}.correction-reason-field small{color:var(--muted-2);font-size:.75rem}
.correction-lines-table th:last-child,.correction-lines-table td:last-child{min-width:190px}.correction-line-meta{display:block;margin-top:5px;color:var(--muted-2);font-size:.72rem}.correction-delta{font-weight:780;font-variant-numeric:tabular-nums}.correction-delta-input{display:grid;grid-template-columns:minmax(110px,1fr) auto;align-items:center;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 84%,transparent);overflow:hidden}.correction-delta-input input{border:0;border-radius:0;background:transparent;box-shadow:none!important;min-height:42px}.correction-delta-input span{padding:0 12px;color:var(--muted);font-size:.78rem;font-weight:700;border-left:1px solid var(--line)}
.correction-safety-note{display:flex;gap:12px;align-items:flex-start;margin-top:16px;padding:14px 16px;border:1px solid color-mix(in srgb,var(--emerald) 24%,var(--line));border-radius:15px;background:linear-gradient(135deg,color-mix(in srgb,var(--emerald) 7%,var(--surface)),color-mix(in srgb,var(--surface-2) 52%,transparent))}.correction-safety-note svg{width:20px;height:20px;flex:0 0 auto;color:var(--lime)}.correction-safety-note>div{display:grid;gap:4px}.correction-safety-note strong{color:var(--ink)}.correction-safety-note span{color:var(--muted);font-size:.8rem;line-height:1.55}.correction-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.correction-source-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:end}.correction-source-details>div{padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--surface-2) 45%,transparent)}.correction-source-details span{display:block;color:var(--muted-2);font-size:.7rem;font-weight:760;letter-spacing:.06em}.correction-source-details strong{display:block;margin-top:4px;color:var(--ink)}.correction-reason-card,.correction-movements-card,.correction-history-card{margin-top:12px}.correction-history-list{display:grid;gap:8px}.correction-history-list>a{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;color:var(--ink);text-decoration:none;background:color-mix(in srgb,var(--surface-2) 44%,transparent)}.correction-history-list>a:hover{border-color:color-mix(in srgb,var(--emerald) 42%,var(--line));background:color-mix(in srgb,var(--emerald) 5%,var(--surface-2))}.correction-history-list>a>div{display:grid;gap:4px}.correction-history-list>a>div:last-child{justify-items:end}.correction-history-list strong{font-weight:780}.correction-history-list a>div>span:not(.product-status){color:var(--muted);font-size:.76rem}
.correction-config-head{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}.correction-config-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.correction-config-option{display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--surface-2) 42%,transparent);cursor:pointer}.correction-config-option input{margin-top:3px;accent-color:var(--lime)}.correction-config-option span{display:grid;gap:4px}.correction-config-option strong{color:var(--ink)}.correction-config-option small{color:var(--muted);line-height:1.45}.correction-scope-note{margin-top:14px}
.text-danger{color:var(--danger)!important}
html[data-theme="light"] .correction-source-form select,html[data-theme="light"] .correction-meta-grid input,html[data-theme="light"] .correction-meta-grid textarea,html[data-theme="light"] .correction-delta-input,html[data-theme="light"] .correction-source-details>div,html[data-theme="light"] .correction-history-list>a,html[data-theme="light"] .correction-config-option{background:#f8fbf7;border-color:rgba(16,45,31,.14)}
@media(max-width:1050px){.correction-filterbar{grid-template-columns:1fr 1fr 1fr}.correction-source-details{grid-template-columns:1fr 1fr}.correction-source-details>.product-secondary{justify-self:start}}
@media(max-width:760px){.correction-source-form,.correction-meta-grid,.correction-source-details,.correction-config-grid{grid-template-columns:1fr}.correction-source-summary{display:grid}.correction-history-list>a{align-items:flex-start;flex-direction:column}.correction-history-list>a>div:last-child{justify-items:start}.correction-form-actions{display:grid;grid-template-columns:1fr}.correction-form-actions>*{width:100%}}
@media(max-width:680px){.correction-filterbar{grid-template-columns:1fr}}
