:root {
    --bg: #070a0f; --surface: rgba(18, 24, 34, .72); --surface-strong: #131a25;
    --line: rgba(255,255,255,.09); --text: #f5f7fb; --muted: #8d98aa;
    --accent: #69f3d2; --accent-blue: #71a7ff; --danger: #ff6680;
    --radius: 24px; --shadow: 0 24px 80px rgba(0,0,0,.32);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 50% -20%, #16243a 0, var(--bg) 42%); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }
.ambient { position: fixed; z-index: -1; width: 32rem; height: 32rem; border-radius: 50%; filter: blur(110px); opacity: .12; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.ambient-one { top: 10%; left: -15rem; background: var(--accent); }
.ambient-two { right: -15rem; bottom: 0; background: var(--accent-blue); animation-delay: -5s; }
@keyframes drift { to { transform: translate3d(3rem, -2rem, 0) scale(1.12); } }
.app-layout { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 264px; padding: 28px 20px 20px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(13,18,27,.96), rgba(7,10,15,.94)); box-shadow: 20px 0 70px rgba(0,0,0,.18); backdrop-filter: blur(28px); }
.sidebar::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(105,243,210,.55), transparent); opacity: .65; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; }
.brand, .auth-logo { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 750; letter-spacing: -.5px; }
.brand-mark { display: inline-grid; place-items: center; min-width: 38px; height: 32px; padding: 0 7px; border: 1px solid rgba(105,243,210,.45); border-radius: 10px; color: var(--accent); background: rgba(105,243,210,.08); box-shadow: inset 0 0 18px rgba(105,243,210,.06), 0 0 18px rgba(105,243,210,.08); }
.sidebar-close { display: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.03); cursor: pointer; font-size: 22px; line-height: 1; }
.sidebar-caption, .sidebar-nav-label { color: #657184; font-size: 10px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.sidebar-caption { margin: 30px 0 8px; }
.workspace-switcher { margin: 0 0 32px; }
.workspace-switcher .custom-select-shell { min-width: 0; }
.workspace-switcher select { height: 42px; padding: 0 42px 0 13px; border-color: rgba(105,243,210,.18); color: var(--accent); background: rgba(105,243,210,.055); font-size: 12px; font-weight: 700; }
.workspace-switcher .custom-select-arrow { right: 15px; width: 7px; height: 7px; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav-label { margin: 0 12px 6px; }
.sidebar-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 13px; border: 1px solid transparent; border-radius: 13px; color: #98a4b5; font-size: 13px; font-weight: 650; transition: color .18s, border-color .18s, background .18s, transform .18s; }
.sidebar-link svg, .logout-button svg { width: 19px; height: 19px; fill: currentColor; }
.sidebar-group-toggle { width: 100%; cursor: pointer; appearance: none; background: transparent; font: inherit; text-align: left; }
.sidebar-group-toggle > span:nth-child(2) { flex: 1; }
.sidebar-chevron { width: 7px; height: 7px; margin: -3px 3px 0 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.sidebar-group.is-open .sidebar-chevron { margin-top: 3px; transform: rotate(225deg); }
.sidebar-subnav { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .2s, opacity .2s; }
.sidebar-group.is-open .sidebar-subnav { max-height: 12rem; opacity: 1; }
.sidebar-sublink { position: relative; overflow: hidden; min-height: 0; margin-left: 23px; padding: 0 12px 0 25px; color: var(--muted); font-size: 12px; line-height: 36px; }
.sidebar-sublink::before { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: var(--line); }
.sidebar-sublink:hover, .sidebar-sublink.is-active { color: var(--accent); }
.sidebar-sublink.is-active::after { content: ""; position: absolute; top: 15px; left: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(105,243,210,.7); }
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,.035); transform: translateX(2px); }
.sidebar-link.is-active { color: var(--accent); border-color: rgba(105,243,210,.14); background: linear-gradient(90deg, rgba(105,243,210,.1), rgba(105,243,210,.025)); box-shadow: inset 3px 0 0 rgba(105,243,210,.8); }
.sidebar-create { gap: 8px; width: 100%; margin-top: 22px; }
.sidebar-create > span { font-size: 17px; font-weight: 500; line-height: 1; }
.sidebar-user { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.user-profile { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 5px; border-radius: 12px; transition: background .18s; }
.user-profile:hover { background: rgba(255,255,255,.035); }
.user-avatar { display: grid; flex: 0 0 34px; place-items: center; height: 34px; border: 1px solid rgba(113,167,255,.2); border-radius: 11px; color: #b8d2ff; background: rgba(113,167,255,.08); font-size: 11px; font-weight: 800; }
.user-copy { display: grid; min-width: 0; }
.user-copy strong, .user-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: 12px; }
.user-copy small { font-size: 10px; }
.sidebar-user form { margin: 0; }
.logout-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; transition: color .18s, background .18s; }
.logout-button:hover { color: var(--danger); background: rgba(255,102,128,.08); }
.app-content { min-width: 0; margin-left: 264px; }
.mobile-header, .sidebar-backdrop { display: none; }
.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; }
.page-shell { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 58px 0 80px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.glass-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(24,31,43,.8), rgba(13,18,27,.72)); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(38px, 5vw, 66px); line-height: 1; letter-spacing: -.055em; }
h2 { margin-bottom: 6px; font-size: 23px; letter-spacing: -.03em; }
h3 { margin-bottom: 4px; font-size: 17px; }
.muted, small { color: var(--muted); }
.hero, .page-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.hero { min-height: 200px; }
.page-heading h1 { font-size: clamp(38px, 4vw, 54px); }
.button { position: relative; display: inline-flex; justify-content: center; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(255,255,255,.05); cursor: pointer; font-size: 12px; font-weight: 650; transition: transform .18s, border-color .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.2); }
.button-primary { color: #06100e; font-weight: 750; border-color: var(--accent); background: var(--accent); box-shadow: 0 8px 30px rgba(105,243,210,.18); }
.button-primary:hover { box-shadow: 0 10px 36px rgba(105,243,210,.32); }
.button-secondary { margin-top: 10px; }
.button-danger { color: #ffc0cb; border-color: rgba(255,102,128,.25); background: rgba(255,102,128,.07); }
.button-small { min-height: 30px; padding: 0 10px; border-radius: 9px; font-size: 11px; }
.button-large { min-width: 170px; min-height: 38px; }
.button-wide { width: 100%; }
.text-button { padding: 0; border: 0; color: var(--muted); background: none; cursor: pointer; }
.text-button:hover, .danger { color: var(--danger); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { position: relative; overflow: hidden; padding: 24px; }
.stat-card span { color: var(--muted); }
.stat-card strong { display: block; margin-top: 16px; font-size: 29px; letter-spacing: -.04em; }
.accent-card::after { content: ""; position: absolute; width: 100px; height: 100px; right: -30px; bottom: -45px; border-radius: 50%; background: var(--accent); filter: blur(38px); opacity: .25; }
.section-block { margin-top: 58px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.section-heading > a { color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.compact-grid { grid-template-columns: repeat(2, 1fr); }
.project-card { display: flex; gap: 16px; align-items: center; padding: 16px; transition: transform .2s, border-color .2s; }
.project-card:hover, .project-tile:hover { transform: translateY(-3px); border-color: rgba(105,243,210,.25); }
.project-card p, .project-tile p { margin: 0; color: var(--muted); }
.project-thumb, .project-image, .detail-preview { display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #1f2d3f, #0c121b); color: rgba(255,255,255,.3); font-weight: 800; }
.mini-thumb { flex: 0 0 58px; height: 58px; border-radius: 16px; }
.project-tile { position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.tile-link { position: absolute; inset: 0; z-index: 1; }
.project-image { height: 220px; font-size: 50px; }
.project-image img, .detail-preview img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 22px; }
.tile-body h2 { margin: 12px 0 4px; }
.tile-metrics { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); }
.tile-metrics strong { color: var(--text); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { padding: 3px 9px; border: 1px solid rgba(113,167,255,.18); border-radius: 100px; color: #a8c9ff; background: rgba(113,167,255,.07); font-size: 11px; }
.empty-state { padding: 70px 30px; text-align: center; }
.empty-state p { color: var(--muted); }
.empty-orbit { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border: 1px solid rgba(105,243,210,.3); border-radius: 50%; color: var(--accent); font-size: 28px; box-shadow: 0 0 40px rgba(105,243,210,.12); }
.auth-card { width: min(450px, 100%); padding: 42px; }
.auth-card h1 { margin-top: 35px; font-size: 42px; }
.auth-logo { margin-bottom: 38px; }
.stack-form { display: grid; gap: 17px; margin-top: 28px; }
label, fieldset { display: grid; gap: 7px; color: #c3cbd7; font-size: 13px; font-weight: 650; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--text); background: rgba(3,6,10,.52); transition: border-color .18s, box-shadow .18s; }
input, select { height: 46px; padding: 0 13px; }
input[type="color"] { padding: 6px; }
textarea { padding: 12px 13px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(105,243,210,.55); box-shadow: 0 0 0 3px rgba(105,243,210,.08); }
.custom-select-shell { position: relative; width: 100%; }
.custom-select-shell select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.custom-select-arrow { position: absolute; top: 50%; right: 17px; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid #91a0b4; border-bottom: 2px solid #91a0b4; transform: rotate(45deg); pointer-events: none; transition: border-color .18s, transform .18s; }
.custom-select-shell:focus-within .custom-select-arrow { margin-top: -3px; border-color: var(--accent); transform: rotate(225deg); }
.custom-file-picker { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; min-height: 58px; padding: 8px; border: 1px dashed rgba(255,255,255,.16); border-radius: 14px; background: rgba(3,6,10,.38); overflow: hidden; transition: border-color .18s, background .18s, box-shadow .18s; }
.custom-file-picker:hover, .custom-file-picker:focus-within { border-color: rgba(105,243,210,.5); background: rgba(105,243,210,.035); box-shadow: 0 0 0 3px rgba(105,243,210,.06); }
.custom-file-picker input[type="file"] { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }
.file-picker-action { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 13px; border: 1px solid rgba(105,243,210,.2); border-radius: 10px; color: var(--accent); background: rgba(105,243,210,.07); white-space: nowrap; }
.file-picker-icon { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(105,243,210,.25); border-radius: 6px; font-size: 14px; font-weight: 800; }
.file-picker-selection { overflow: hidden; color: var(--muted); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.custom-file-picker.has-selection .file-picker-selection { color: #d8e0eb; }
.check-row { display: flex; align-items: center; gap: 9px; }
.check-row input { width: 17px; height: 17px; accent-color: var(--accent); }
.field-error { color: #ff8ca0; font-size: 12px; }
.flash-stack { position: fixed; z-index: 50; top: 88px; right: 24px; display: grid; gap: 8px; width: min(380px, calc(100% - 48px)); }
.flash { padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: #17202b; box-shadow: var(--shadow); }
.flash-success { border-color: rgba(105,243,210,.25); }
.flash-error { border-color: rgba(255,102,128,.35); color: #ffc0cb; }
.project-form { display: grid; gap: 20px; }
.form-card, .content-card { padding: 30px; }
.narrow-card { max-width: 620px; }
.card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.card-heading h2, .card-heading p { margin: 0; }
.card-heading p { color: var(--muted); }
.step { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(105,243,210,.2); border-radius: 13px; color: var(--accent); background: rgba(105,243,210,.05); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.span-two { grid-column: 1 / -1; }
fieldset { margin: 0 0 25px; padding: 0; border: 0; }
legend { margin-bottom: 10px; }
.time-grid { display: grid; grid-template-columns: repeat(2, minmax(100px, 180px)); gap: 15px; }
.printer-time-grid { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(100px, .35fr) minmax(100px, .35fr); gap: 15px; align-items: start; }
.inline-link { color: var(--accent); }
.filament-row { margin-bottom: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(0,0,0,.13); }
.cost-fieldset { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.cost-input-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.cost-input-grid > label { grid-template-rows: 38px 46px minmax(32px, auto); align-content: start; }
.cost-input-grid > label > input { align-self: stretch; }
.cost-license-field { grid-column: span 2; }
.subsection-heading { display: flex; justify-content: space-between; align-items: end; margin: 32px 0 14px; padding-top: 25px; border-top: 1px solid var(--line); }
.subsection-heading h3, .subsection-heading p { margin: 0; }
.subsection-heading p { color: var(--muted); font-size: 12px; }
.custom-cost-row { padding: 12px 0; border-top: 1px solid var(--line); }
.custom-cost-row:first-child { border-top: 0; }
.custom-cost-grid { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(150px, .8fr) minmax(160px, .7fr) auto; gap: 12px; align-items: end; }
.custom-cost-grid > label { grid-template-rows: 24px 46px; align-content: end; }
.custom-cost-grid .text-button { min-height: 46px; }
.calculation-note { margin: 20px 0 0; padding: 13px 15px; border: 1px solid rgba(113,167,255,.12); border-radius: 12px; color: var(--muted); background: rgba(113,167,255,.035); font-size: 12px; }
.row-top { display: flex; justify-content: space-between; margin-bottom: 16px; }
.filament-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .25fr); gap: 16px; align-items: start; }
.filament-grid > label { grid-template-rows: 24px 46px minmax(20px, auto); }
.form-actions { display: flex; justify-content: flex-end; padding-top: 10px; }
.detail-hero { display: grid; grid-template-columns: 340px 1fr; gap: 46px; align-items: center; margin-bottom: 34px; }
.detail-preview { height: 280px; border: 1px solid var(--line); border-radius: 30px; font-size: 68px; box-shadow: var(--shadow); }
.detail-title h1 { margin-top: 16px; }
.detail-title > p:not(.eyebrow) { max-width: 670px; color: var(--muted); }
.action-row { display: flex; gap: 10px; margin-top: 24px; }
.action-row form { margin: 0; }
.detail-stats { margin-bottom: 22px; }
.finance-strip { display: flex; gap: 40px; margin: -6px 0 22px; padding: 18px 24px; color: var(--muted); }
.finance-strip strong { margin-left: 8px; color: var(--text); }
.finance-strip .positive-text { color: var(--accent); }
.finance-strip .negative-text { color: var(--danger); }
.cost-breakdown { display: grid; }
.cost-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--line); }
.cost-line:first-child { border-top: 0; }
.cost-line > span { color: #c8d1dc; }
.cost-line > span small { display: block; margin-top: 2px; font-size: 10px; }
.cost-line-sub { min-height: 38px; padding-left: 18px; font-size: 12px; }
.cost-line-total { margin-top: 5px; border-top-color: rgba(105,243,210,.18); font-weight: 700; }
.cost-line-grand { margin-top: 8px; padding: 15px 14px; border: 1px solid rgba(105,243,210,.22); border-radius: 12px; color: var(--accent); background: rgba(105,243,210,.05); font-size: 15px; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .85fr); gap: 22px; }
.detail-main, .detail-side { display: grid; align-content: start; gap: 22px; }
.material-list, .file-list, .movement-list { display: grid; }
.material-row, .file-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.material-row:first-child, .file-row:first-child { border-top: 0; }
.material-row p, .file-row p, .movement-row p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.color-dot { width: 17px; height: 17px; border: 3px solid rgba(255,255,255,.2); border-radius: 50%; background: var(--accent-blue); box-shadow: 0 0 13px rgba(113,167,255,.5); }
.material-values { text-align: right; }
.material-values span { display: block; color: var(--muted); font-size: 12px; }
.file-type { display: grid; place-items: center; width: 46px; height: 42px; border-radius: 10px; color: var(--accent); background: rgba(105,243,210,.07); font-size: 11px; font-weight: 750; }
.movement-row { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); }
.movement-row:first-child { border-top: 0; }
.movement-delta { font-weight: 800; }
.movement-delta.positive { color: var(--accent); }
.movement-delta.negative { color: var(--danger); }
.preserve-lines { white-space: pre-wrap; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, .7fr); gap: 22px; align-items: start; }
.settings-page-heading { align-items: center; }
.heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.settings-overview { width: 100%; }
body.settings-drawer-open { overflow: hidden; }
.settings-drawer-backdrop { position: fixed; z-index: 65; inset: 0; border: 0; padding: 0; background: rgba(3,7,16,.62); opacity: 0; pointer-events: none; backdrop-filter: blur(3px); transition: opacity .18s ease; }
.settings-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.settings-drawer { position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(580px, 100%); display: flex; flex-direction: column; color: var(--text); background: radial-gradient(circle at 80% 0%, rgba(83,224,255,.1), transparent 34%), rgba(8,14,27,.98); border-left: 1px solid rgba(148,163,184,.2); box-shadow: -24px 0 70px rgba(0,0,0,.44); transform: translateX(104%); visibility: hidden; transition: transform .23s cubic-bezier(.22,1,.36,1), visibility .23s; }
.settings-drawer.is-open { transform: translateX(0); visibility: visible; }
.settings-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 26px 20px; border-bottom: 1px solid rgba(148,163,184,.14); }
.settings-drawer-head h2, .settings-drawer-head p { margin: 0; }
.settings-drawer-head p { margin-top: 6px; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.drawer-close { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(148,163,184,.2); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 1.25rem; line-height: 1; text-decoration: none; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.drawer-close:hover, .drawer-close:focus-visible { color: var(--text); border-color: rgba(83,224,255,.42); background: rgba(83,224,255,.08); }
.settings-drawer-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 24px 26px 32px; }
.settings-drawer-body .stack-form { margin-top: 0; }
.workspace-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 22px 28px; }
.workspace-summary h2 { margin: 0; }
.workspace-summary-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.settings-form-card { position: sticky; top: 94px; }
.printer-list { display: grid; }
.license-list { display: grid; }
.filament-catalog-list { display: grid; }
.printer-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.license-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(150px, auto) auto; align-items: center; gap: 14px 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.filament-catalog-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(120px, auto) auto; align-items: center; gap: 14px 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.printer-row:first-child { border-top: 0; }
.license-row:first-child { border-top: 0; }
.filament-catalog-row:first-child { border-top: 0; }
.printer-icon { display: grid; grid-row: 1 / span 2; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(105,243,210,.22); border-radius: 15px; color: var(--accent); background: rgba(105,243,210,.06); font-size: 13px; font-weight: 800; }
.license-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(113,167,255,.23); border-radius: 15px; color: #a8c9ff; background: rgba(113,167,255,.07); font-size: 14px; font-weight: 800; }
.filament-swatch { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(105,243,210,.22); border-radius: 50%; color: var(--accent); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.13), rgba(105,243,210,.04)); box-shadow: inset 0 0 0 6px rgba(0,0,0,.14); }
.filament-swatch span { font-size: 9px; font-weight: 800; }
.printer-info h3 { margin: 5px 0 0; }
.printer-info p { margin: 0; color: var(--muted); }
.license-info h3 { margin: 7px 0 1px; }
.license-info p { margin: 0; color: var(--muted); }
.license-info > small { display: block; margin-top: 5px; font-size: 10px; }
.filament-catalog-info h3 { margin: 7px 0 1px; }
.filament-catalog-info p { margin: 0; color: var(--muted); }
.filament-catalog-info > small { display: block; margin-top: 5px; font-size: 10px; }
.printer-cost { text-align: right; }
.printer-cost { grid-column: 2; min-width: 0; text-align: left; }
.printer-cost strong, .printer-cost span, .printer-cost small { display: block; }
.printer-cost span { color: var(--muted); font-size: 12px; }
.printer-cost small { margin-top: 4px; font-size: 10px; }
.license-cost { min-width: 150px; text-align: right; }
.license-cost strong, .license-cost span, .license-cost small { display: block; }
.license-cost span { color: var(--muted); font-size: 11px; }
.license-cost small { margin-top: 5px; font-size: 10px; }
.filament-catalog-price { min-width: 120px; text-align: right; }
.filament-catalog-price strong, .filament-catalog-price span, .filament-catalog-price small { display: block; }
.filament-catalog-price span { color: var(--muted); font-size: 11px; }
.filament-catalog-price small { margin-top: 5px; font-size: 10px; }
.printer-actions { display: flex; grid-column: 3; grid-row: 1 / span 2; align-items: center; gap: 12px; }
.printer-actions form { margin: 0; }
.license-row .printer-actions { grid-column: 4; grid-row: auto; }
.filament-catalog-row .printer-actions { grid-column: 4; grid-row: auto; }
.printer-actions .button-secondary { margin-top: 0; }
.positive-pill { color: #8cf7dd; border-color: rgba(105,243,210,.2); background: rgba(105,243,210,.06); }
.warning-pill { color: #ffd58a; border-color: rgba(255,190,91,.2); background: rgba(255,190,91,.06); }
.printer-cost-fields { display: grid; gap: 14px; margin: 5px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.1); }
.printer-cost-fields legend { padding: 0 7px; color: var(--accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.mini-empty { padding: 35px 15px 20px; text-align: center; }
.compact-form-grid { gap: 12px; }
.document-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(113,167,255,.035); }
.document-row strong, .document-row small { display: block; }
.document-row small { margin-top: 3px; }
.document-row .button { flex: 0 0 auto; margin: 0; }
.document-delete { margin-top: 18px; text-align: right; }
.assistant-catalog-card { margin-bottom: 22px; }
.assistant-heading { align-items: center; }
.assistant-selection-count { padding: 5px 10px; border: 1px solid rgba(105,243,210,.17); border-radius: 100px; color: var(--accent); background: rgba(105,243,210,.05); font-size: 11px; font-weight: 750; white-space: nowrap; }
.assistant-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.assistant-search { width: min(460px, 100%); }
.assistant-search input { height: 40px; }
.assistant-table-scroll { overflow-x: auto; }
.assistant-table { width: 100%; border-collapse: collapse; }
.assistant-table th { padding: 10px 14px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.assistant-table th:nth-last-child(-n+2), .assistant-table td:nth-last-child(-n+2) { text-align: right; }
.assistant-table td { padding: 15px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.assistant-table tbody tr { transition: background .16s ease; }
.assistant-table tbody tr:hover, .assistant-table tbody tr.is-selected { background: rgba(105,243,210,.025); }
.assistant-table .button:disabled { color: var(--accent); border-color: rgba(105,243,210,.18); background: rgba(105,243,210,.05); box-shadow: none; cursor: default; opacity: .75; transform: none; }
.assistant-model-name { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.assistant-model-name strong, .assistant-model-name small { display: block; }
.assistant-model-name small { margin-top: 3px; font-size: 10px; }
.assistant-model-mark { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border: 1px solid rgba(113,167,255,.2); border-radius: 11px; color: #a8c9ff; background: rgba(113,167,255,.06); font-size: 10px; font-weight: 800; }
.assistant-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 11px; }
.assistant-pagination .button:disabled { opacity: .35; cursor: default; transform: none; }
.assistant-no-results { padding-bottom: 5px; }
.assistant-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.assistant-result-card { min-height: 340px; }
.assistant-result-list { display: grid; }
.assistant-selected-row, .assistant-filament-row { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 13px 0; border-top: 1px solid var(--line); }
.assistant-selected-row:first-child, .assistant-filament-row:first-child { border-top: 0; }
.assistant-selected-row > div { flex: 1; min-width: 0; }
.assistant-selected-row strong, .assistant-selected-row small, .assistant-filament-row strong, .assistant-filament-row small { display: block; }
.assistant-selected-row small, .assistant-filament-row small { margin-top: 3px; font-size: 10px; }
.assistant-filament-swatch { flex: 0 0 34px; width: 34px; height: 34px; padding: 3px; border: 2px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.04); box-shadow: 0 0 16px rgba(113,167,255,.18); opacity: 1; }
.assistant-filament-row > div { min-width: 0; }
.assistant-filament-models { overflow: hidden; color: #8794a7; text-overflow: ellipsis; white-space: nowrap; }
.assistant-empty { padding-top: 30px; }
@media (max-width: 980px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .filament-grid { grid-template-columns: minmax(0, 1fr) minmax(140px, .35fr); }
    .cost-input-grid { grid-template-columns: repeat(2, 1fr); }
    .custom-cost-grid { grid-template-columns: repeat(3, 1fr); }
    .custom-cost-grid .text-button { grid-column: 1 / -1; justify-self: end; min-height: 28px; }
    .detail-columns { grid-template-columns: 1fr; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-form-card { position: static; }
    .license-row { grid-template-columns: auto minmax(0, 1fr) auto; }
    .license-cost { grid-column: 2; text-align: left; }
    .license-row .printer-actions { grid-column: 3; grid-row: 1 / span 2; }
    .filament-catalog-row { grid-template-columns: auto minmax(0, 1fr) auto; }
    .filament-catalog-price { grid-column: 2; text-align: left; }
    .filament-catalog-row .printer-actions { grid-column: 3; grid-row: 1 / span 2; }
    .assistant-results-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    body.sidebar-open { overflow: hidden; }
    .sidebar { transform: translateX(-105%); transition: transform .25s ease; }
    .sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-close { display: grid; place-items: center; }
    .sidebar-backdrop { position: fixed; z-index: 35; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(2,5,9,.68); opacity: 0; pointer-events: none; backdrop-filter: blur(5px); transition: opacity .25s ease; }
    .sidebar-open .sidebar-backdrop { display: block; opacity: 1; pointer-events: auto; }
    .app-content { margin-left: 0; }
    .mobile-header { position: sticky; z-index: 30; top: 0; display: flex; height: 64px; padding: 0 20px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(7,10,15,.82); backdrop-filter: blur(24px); }
    .menu-button { display: grid; width: 36px; height: 34px; padding: 8px; align-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); cursor: pointer; }
    .menu-button span:not(.sr-only) { display: block; height: 1px; border-radius: 2px; background: #cbd4df; }
    .page-shell { width: min(100% - 40px, 1240px); padding-top: 42px; }
}
@media (max-width: 720px) {
    .page-shell { width: min(100% - 28px, 1240px); padding-top: 35px; }
    .hero, .page-heading { align-items: flex-start; flex-direction: column; }
    .settings-page-heading { gap: 18px; }
    .settings-page-heading .heading-actions { width: 100%; justify-content: space-between; }
    .settings-drawer { width: 100%; border-left: 0; }
    .settings-drawer-head { padding: 20px 18px 17px; }
    .settings-drawer-body { padding: 20px 18px 28px; }
    .assistant-toolbar { align-items: stretch; flex-direction: column; gap: 9px; }
    .assistant-search { width: 100%; }
    .assistant-table { min-width: 720px; }
    .assistant-result-card { min-height: 0; }
    .stats-grid, .project-grid, .compact-grid, .form-grid { grid-template-columns: 1fr; }
    .span-two { grid-column: auto; }
    .filament-grid { grid-template-columns: 1fr; }
    .cost-input-grid, .custom-cost-grid { grid-template-columns: 1fr; }
    .cost-license-field { grid-column: auto; }
    .custom-cost-grid .text-button { grid-column: auto; }
    .printer-time-grid { grid-template-columns: repeat(2, 1fr); }
    .printer-time-grid > label:first-child { grid-column: 1 / -1; }
    .printer-row { grid-template-columns: auto 1fr; }
    .printer-icon { grid-row: 1 / span 2; }
    .printer-cost { text-align: left; }
    .printer-actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-end; }
    .license-row { grid-template-columns: auto 1fr; }
    .license-cost { grid-column: 2; }
    .license-row .printer-actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-end; }
    .filament-catalog-row { grid-template-columns: auto 1fr; }
    .filament-catalog-price { grid-column: 2; }
    .filament-catalog-row .printer-actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-end; }
    .custom-file-picker { grid-template-columns: 1fr; gap: 7px; }
    .detail-hero { grid-template-columns: 1fr; gap: 25px; }
    .detail-preview { height: 230px; }
    .auth-card, .form-card, .content-card { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
