:root,[data-palette="mgm"]{--green:#24634b;--primary:#24634b;--sidebar:#18241f;--sidebar-active:#2b3b30;--accent-soft:#eaf0e6;--accent-line:#d6e1cf;--accent-ink:#365f40;--on-primary:#fff;--sidebar-text:#c5d2c8;--gold:#eac75b;--surface:#fff;--surface-soft:#f7f9f3}
[data-palette="ocean"]{--ink:#203d43;--green:#146574;--primary:#146574;--bg:#f2f8f8;--line:#dce8e8;--muted:#6c8588;--sidebar:#142f3b;--sidebar-active:#254a55;--accent-soft:#e4f2f1;--accent-line:#c9e3e1;--accent-ink:#2d6b68;--gold:#9bddd0;--surface-soft:#f3f9f8}
[data-palette="sapphire"]{--ink:#29394e;--green:#335ca1;--primary:#335ca1;--bg:#f4f7fc;--line:#dfe5f1;--muted:#76839a;--sidebar:#1d2940;--sidebar-active:#304564;--accent-soft:#e9effa;--accent-line:#d3dff3;--accent-ink:#3b5d91;--gold:#aec9f2;--surface-soft:#f5f7fc}
[data-palette="amethyst"]{--ink:#3c304c;--green:#70509a;--primary:#70509a;--bg:#f9f6fc;--line:#e7dfee;--muted:#8a7b98;--sidebar:#2d243b;--sidebar-active:#49365e;--accent-soft:#f0e9f7;--accent-line:#dfd0ed;--accent-ink:#72558d;--gold:#d8c2f0;--surface-soft:#faf7fc}
[data-palette="terracotta"]{--ink:#46352d;--green:#94533e;--primary:#94533e;--bg:#faf6f0;--line:#eaddd1;--muted:#927e70;--sidebar:#382a24;--sidebar-active:#584032;--accent-soft:#f3e8da;--accent-line:#e6d2ba;--accent-ink:#865b3d;--gold:#e9bc86;--surface-soft:#fcf8f2}
[data-palette="graphite"]{--ink:#303a44;--green:#4e5965;--primary:#4e5965;--bg:#f5f6f8;--line:#e0e5e9;--muted:#7b8691;--sidebar:#232a30;--sidebar-active:#3c4751;--accent-soft:#e9edf1;--accent-line:#d6dee5;--accent-ink:#4b5d6b;--gold:#c6d5df;--surface-soft:#f7f9fa}
[data-theme="dark"][data-palette]{--ink:#e0e8df;--line:#35413a;--muted:#a0afa3;--bg:#141c18;--surface:#202b24;--surface-soft:#1b251e;--accent-soft:#29382a;--accent-line:#3b5037;--accent-ink:#b3d2b7;--green:#85c6a6;--primary:#37795c;--sidebar:#101a14;--sidebar-active:#2e3e2d}
[data-theme="dark"][data-palette="ocean"]{--ink:#dbe9eb;--bg:#121f25;--line:#30454c;--muted:#9aafb5;--surface:#1b2d34;--surface-soft:#17272d;--green:#89cdd0;--primary:#226c7d;--accent-soft:#243c42;--accent-line:#36545c;--accent-ink:#aedbda;--sidebar:#0e1b22;--sidebar-active:#284953}
[data-theme="dark"][data-palette="sapphire"]{--ink:#e0e7f1;--bg:#151c29;--line:#334258;--muted:#a2aec3;--surface:#202b3d;--surface-soft:#1a2535;--green:#a1bff0;--primary:#3c64a3;--accent-soft:#2a3b55;--accent-line:#3c5276;--accent-ink:#b8cef1;--sidebar:#101827;--sidebar-active:#304665}
[data-theme="dark"][data-palette="amethyst"]{--ink:#ece3f2;--bg:#211a2a;--line:#473951;--muted:#b4a4c1;--surface:#2d2538;--surface-soft:#271f31;--green:#d1b6ee;--primary:#79549e;--accent-soft:#3e2f4e;--accent-line:#5c4471;--accent-ink:#dfc9f4;--sidebar:#191322;--sidebar-active:#4b365f}
[data-theme="dark"][data-palette="terracotta"]{--ink:#eee3d9;--bg:#251d19;--line:#4c3c31;--muted:#bcaa9a;--surface:#342a23;--surface-soft:#2d241e;--green:#e4b390;--primary:#9b6145;--accent-soft:#473529;--accent-line:#634936;--accent-ink:#edc5a5;--sidebar:#1c1512;--sidebar-active:#5b4030}
[data-theme="dark"][data-palette="graphite"]{--ink:#e1e7ed;--bg:#191d22;--line:#3a434d;--muted:#a8b2bd;--surface:#252c34;--surface-soft:#20262d;--green:#c0cedc;--primary:#5a6a7b;--accent-soft:#34404c;--accent-line:#495a6b;--accent-ink:#cfdae5;--sidebar:#14181d;--sidebar-active:#3c4a58}
[data-palette] button,[data-palette] input,[data-palette] select,[data-palette] textarea,[data-palette] dialog,[data-palette] dialog .actions,[data-palette] .topbar,[data-palette] .card,[data-palette] .stat,[data-palette] .calendar-day,[data-palette] .kanban-card{background:var(--surface);color:var(--ink)}[data-palette] .primary{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}[data-palette] .gold{background:var(--gold);border-color:var(--gold);color:#243127}[data-palette] .sidebar{background:var(--sidebar);color:var(--sidebar-text)}[data-palette] .nav{background:transparent;color:var(--sidebar-text)}[data-palette] .nav.active{background:var(--sidebar-active);color:var(--gold)}[data-palette] .welcome,[data-palette] .quote-summary,[data-palette] .profit-panel,[data-palette] .catalog-margin{background:var(--accent-soft);border-color:var(--accent-line)}[data-palette] .welcome p{color:var(--muted)}[data-palette] .eyebrow,[data-palette] .textbtn{color:var(--green)}[data-palette] .textbtn,[data-palette] .card-link,[data-palette] .theme-toggle{background:transparent}[data-palette] .stat-icon,[data-palette] .avatar,[data-palette] .demo,[data-palette] .segmented{background:var(--accent-soft);color:var(--accent-ink)}[data-palette] .item-editor,[data-palette] .quick button,[data-palette] .stage-select,[data-palette] .calendar-day.outside,[data-palette] .kanban-column,[data-palette] .weekday{background:var(--surface-soft)}[data-palette] .bar{background:var(--primary)}[data-palette] .bar.light{background:var(--accent-line)}[data-palette] .profit-metrics>div{background:var(--surface)}[data-palette] .profit-metrics .profit-highlight{background:var(--accent-soft);border-color:var(--accent-line)}[data-palette] .card[style*="background"]{background:var(--accent-soft)!important}[data-palette] .palette-toggle{border:0;background:transparent;color:var(--green);padding:7px;font-size:14px}[data-palette] .palette-toggle span{font-size:11px;margin-left:4px}
.appearance-modes{display:flex;gap:12px}.appearance-modes button{flex:1;text-align:center}.appearance-modes button[aria-pressed="true"]{border-color:var(--green);box-shadow:0 0 0 1px var(--green);color:var(--green)}.theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.theme-option{text-align:left;padding:15px!important;display:flex;flex-direction:column;gap:9px;border:1px solid var(--line)!important}.theme-option.chosen{border-color:var(--green)!important;box-shadow:0 0 0 1px var(--green)}.theme-swatch{display:flex;width:100%;height:32px;border-radius:5px;overflow:hidden}.theme-swatch i{flex:1}.theme-option b{font-size:13px}.theme-option small{color:var(--muted);font-size:10px;font-weight:400;line-height:1.5}.theme-selected{font-size:9px;color:var(--green);visibility:hidden}.chosen .theme-selected{visibility:visible}.quote-catalog-section{border:1px solid var(--line);border-radius:10px;margin:25px 0;overflow:hidden}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 20px;background:var(--surface-soft)}.section-heading h3{margin:0;font-size:16px}.section-heading button{font-size:12px}.catalog-picker{padding:17px 20px;display:flex;gap:10px;border-bottom:1px solid var(--line)}.catalog-picker select{min-width:0}.catalog-picker button{white-space:nowrap;font-size:12px}.negotiation-line{padding:20px;display:flex;gap:14px;border-bottom:1px solid var(--line)}.negotiation-image{width:68px;height:68px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:6px}.negotiation-info{flex:1;min-width:0}.negotiation-info>b{font-size:13px}.negotiation-info>small{display:block;font-size:10px;color:var(--muted);margin-top:6px}.negotiation-info>p{font-size:11px;line-height:1.7;white-space:pre-wrap;color:var(--muted);margin:8px 0}.negotiation-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-top:12px}.negotiation-controls label{font-size:10px;margin:0;max-width:110px}.negotiation-controls input{padding:8px;margin-top:6px;font-size:12px}.negotiation-controls .line-discount{max-width:180px}.line-discount .inline{gap:5px;flex-wrap:nowrap!important}.line-discount input{min-width:0}.line-discount select{width:68px;padding:8px;margin-top:6px;font-size:12px;min-width:60px!important;flex:none!important}.line-total{margin-left:auto;text-align:right;min-width:120px}.line-total strong{display:block;font-size:17px;margin:7px 0}.line-total small{display:block;color:var(--muted);font-size:10px;line-height:1.7}.negotiation-controls>button{padding:8px 0;font-size:10px}.group-subtotal{display:flex;justify-content:space-between;gap:20px;padding:18px 20px;background:var(--accent-soft);font-size:12px}.group-subtotal>span{font-weight:600}.group-subtotal small{display:block;font-size:9px;line-height:1.7;color:var(--muted);font-weight:400;margin-top:4px}.group-subtotal>div{text-align:right}.group-subtotal b{font-size:17px}.internal-analysis{margin:25px 0;border:1px solid var(--line);border-radius:9px;padding:17px}.internal-analysis summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--green)}.internal-analysis .profit-panel{margin-bottom:0}.quote-catalog-section .empty{padding:20px;margin:0}
@media(max-width:800px){.theme-grid{grid-template-columns:1fr 1fr}.palette-toggle span{display:none}.topbar .user{gap:6px}.palette-toggle{padding:5px!important}.catalog-picker{flex-wrap:wrap;padding:14px}.catalog-picker select{flex-basis:100%}.catalog-picker button{width:100%}.section-heading{padding:15px}.section-heading h3{font-size:14px}.section-heading .textbtn{font-size:10px}.negotiation-line{padding:15px;gap:10px}.negotiation-image{width:46px;height:46px}.negotiation-controls{gap:10px}.negotiation-controls label{max-width:100px}.negotiation-controls .line-discount{max-width:150px}.line-total{min-width:95px}.line-total strong{font-size:15px}.group-subtotal{padding:15px}.appearance-modes button{font-size:12px}.internal-analysis{padding:12px}.quote-form .catalog-picker select{min-width:0}}
