:root{--wine: #970015;--deep-wine: #6f0010;--orange: #f59b12;--cream: #fff8ef;--ink: #251416;--muted: #70595c;--line: #ead7c4;--white: #ffffff;--surface: #fffdf9;--surface-soft: #fff8ef;--success: #166534;--success-bg: #dcfce7;--warning: #78350f;--warning-bg: #fef3c7;--shadow-soft: none;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--radius-pill: 999px;--radius: var(--radius-md);accent-color:var(--wine);--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--text-xs: .75rem;--text-sm: .8rem;--text-md: .85rem;--text-lg: .95rem;--title: 1.35rem;--subtitle: .95rem;--control-height: 42px;--control-height-lg: 50px;--control-radius: var(--radius);--control-padding-x: 12px;--label-gap: 6px;--field-gap: 8px;--form-row-gap: 14px}*{box-sizing:border-box}[hidden]{display:none!important}html{min-height:100%;overflow-x:hidden}body{width:100%;max-width:100vw;margin:0;min-height:100vh;color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#fffdf8;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden}.admin-page{min-height:100vh;width:100%;max-width:100vw;overflow-x:clip;background:linear-gradient(135deg,#fffdf8,#fff2dc 48%,#ffe1a3)}.mobile-tabbar,.mobile-sheet{display:none}.admin-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:26px 0}.admin-header{position:sticky;top:0;z-index:900;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-radius:var(--radius);color:var(--white);background:var(--wine)}.admin-brand{flex:0 1 auto;min-width:0;display:grid;gap:10px}.admin-brand-row{display:flex;align-items:center;gap:12px}.admin-brand-logo{display:flex;flex-shrink:0;width:36px;height:36px;align-items:center;justify-content:center;overflow:hidden;padding:2px;border-radius:50%;background:var(--white)}.admin-brand-logo img{width:100%;height:100%;border-radius:50%;object-fit:cover}.admin-brand-title{min-width:0;flex:1 1 auto;margin:0;color:var(--white);font-size:1.25rem;font-weight:800;letter-spacing:0;line-height:1.1}.brand-logout{width:36px;min-width:36px;height:36px;min-height:36px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--line);border-radius:var(--radius);color:var(--wine);background:#fff;text-decoration:none}.logout-icon{display:inline-flex;width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.eyebrow{margin:0 0 6px;color:var(--muted);font-size:var(--text-xs);font-weight:700;letter-spacing:.04em;text-transform:uppercase}.admin-brand .eyebrow{color:#ffd58b}.admin-actions{flex:1 1 auto;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:10px;min-width:0;max-width:100%}.admin-nav,.admin-quick{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;min-width:0}.admin-nav{overflow-x:auto;padding:3px;border:1px solid rgb(255 213 139 / .18);border-radius:10px;background:#6f001040;scrollbar-width:none}.admin-nav::-webkit-scrollbar{display:none}.nav-link,.quote-action,.logout{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 11px;border-radius:var(--radius);font-size:var(--text-sm);font-weight:700;line-height:1;text-decoration:none;white-space:nowrap}.nav-link{color:#ffffffd1;background:transparent}.nav-link:hover{color:#fff;background:#ffffff1f}.nav-link.active{color:var(--wine);background:#fff}.quote-action{color:var(--wine);background:#ffd58b}main{margin-top:var(--space-5);min-width:0}h1,h2,p{margin-top:0}label,legend{color:var(--ink);font-size:var(--text-sm);font-weight:700}input,select,textarea{width:100%;min-height:var(--control-height);margin-top:var(--label-gap);border:1px solid var(--line);border-radius:var(--control-radius);padding:9px var(--control-padding-x);color:var(--ink);font:inherit;font-size:var(--text-md);background:var(--surface)}textarea{min-height:124px;resize:vertical;line-height:1.5}input:focus,select:focus,textarea:focus{outline:2px solid rgba(245,155,18,.35);border-color:var(--wine)}.admin-page .panel{gap:var(--space-4)!important;padding:var(--space-5)!important;border:1px solid var(--line)!important;border-radius:var(--radius)!important;background:var(--white)!important;box-shadow:none!important}.admin-page main h1{color:var(--deep-wine);font-size:var(--title)!important;line-height:1.12!important;letter-spacing:0!important}.admin-page main h2{color:var(--deep-wine);font-size:var(--subtitle)!important;line-height:1.18!important;letter-spacing:0!important}.admin-page p{font-size:var(--text-md);line-height:1.5}.admin-page button,.admin-page .primary,.admin-page .secondary,.admin-page .ghost,.admin-page .actions a,.admin-page .card-actions a,.admin-page .card-actions button,.admin-page .quotation-actions a,.admin-page .quotation-actions button{min-height:var(--control-height)!important;height:auto!important;padding:0 var(--control-padding-x)!important;border-radius:var(--control-radius)!important;font-size:var(--text-sm)!important;font-weight:700!important;line-height:1.1!important}.admin-page table{font-size:var(--text-md)}.admin-page th,.admin-page td{padding:12px 14px!important}.admin-page th{font-size:var(--text-xs)!important;letter-spacing:.02em!important}.admin-page td{font-size:var(--text-md)!important}@media(max-width:900px){body{background:#fff8ef;min-height:100dvh;padding-bottom:calc(82px + env(safe-area-inset-bottom))}.admin-page{min-height:100dvh;background:#fff8ef;overflow-x:hidden}.admin-shell{width:100%;max-width:100vw;overflow-x:clip;padding:0 0 20px}.admin-header{position:sticky;top:0;z-index:900;align-items:stretch;flex-direction:column;gap:10px;margin:12px 12px 0;padding:22px 18px;border-radius:10px}.admin-brand-row{gap:10px}.admin-brand-logo{width:38px;height:38px}.admin-header h1{font-size:1.32rem;line-height:1.05}.eyebrow{margin-bottom:0;font-size:.78rem}.brand-logout{width:40px;min-width:40px;height:40px;min-height:40px;margin-top:0;padding:0;border-radius:9px}.admin-brand{gap:14px}.admin-actions{display:none}.admin-nav{gap:6px;margin:0 -2px;padding:3px;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}.admin-quick{display:grid;grid-template-columns:1fr auto;gap:8px}.nav-link,.quote-action,.logout{min-height:34px;padding:0 12px;border-radius:999px;font-size:.72rem}.nav-link{scroll-snap-align:start}main{width:100%;max-width:100vw;overflow-x:clip;margin-top:10px;padding:0 10px}.admin-page .panel{gap:12px!important;padding:14px!important;border-radius:var(--radius-lg)!important;box-shadow:none!important}.admin-page main h1{font-size:1.32rem!important;line-height:1.15!important}.admin-page main h2{font-size:1rem!important}.mobile-tabbar{position:fixed!important;right:auto;bottom:0!important;left:0!important;z-index:2147483647;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100vw;max-width:100vw;min-height:calc(72px + env(safe-area-inset-bottom));gap:3px;padding:7px max(7px,env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-right));border-top:1px solid var(--line);background:#fff;box-shadow:0 -10px 28px #6f00101f;transform:translateZ(0);pointer-events:auto}.mobile-tab{min-width:0;min-height:58px;display:grid;place-items:center;align-content:center;gap:4px;border-radius:9px;color:var(--muted);font-size:.58rem;font-weight:900;line-height:1;text-align:center;text-decoration:none}.mobile-tab.active{color:#fff;background:var(--wine)}.mobile-icon{display:inline-flex;width:24px;height:22px;align-items:center;justify-content:center}.mobile-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.mobile-tab-more{appearance:none;border:0;padding:0;font-family:inherit;background:transparent;cursor:pointer}.mobile-sheet{position:fixed;inset:0;z-index:2147483647;display:block}.mobile-sheet-backdrop{position:absolute;inset:0;opacity:0;background:#25141673;transition:opacity .22s ease}.mobile-sheet.open .mobile-sheet-backdrop{opacity:1}.mobile-sheet-panel{position:absolute;right:0;bottom:0;left:0;display:flex;flex-direction:column;max-height:min(52dvh,460px);padding:10px 14px calc(14px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:#fff;box-shadow:0 -14px 40px #6f001038;transform:translateY(100%);transition:transform .24s cubic-bezier(.32,.72,0,1)}.mobile-sheet.open .mobile-sheet-panel{transform:translateY(0)}.mobile-sheet-handle{width:42px;height:4px;margin:2px auto 10px;border-radius:999px;background:var(--line)}.mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.mobile-sheet-head h2{margin:0;color:var(--deep-wine);font-size:.95rem!important;font-weight:800}.mobile-sheet-close{display:inline-flex;width:34px;min-width:34px;height:34px;min-height:34px!important;align-items:center;justify-content:center;padding:0!important;border:1px solid var(--line);border-radius:9px;color:var(--muted);background:#fff;cursor:pointer}.mobile-sheet-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}.mobile-sheet-body{display:grid;gap:8px;overflow-y:auto;-webkit-overflow-scrolling:touch}.mobile-sheet-link{display:flex;align-items:center;gap:12px;min-height:50px;padding:0 14px;border:1px solid var(--line);border-radius:var(--radius-lg);color:var(--ink);font-size:var(--text-md);font-weight:700;background:var(--surface-soft);text-decoration:none}.mobile-sheet-link.active{color:#fff;border-color:var(--wine);background:var(--wine)}.mobile-sheet-link.accent{color:var(--wine);border-color:#ffd58b;background:#ffd58b}.mobile-sheet-icon{display:inline-flex;width:22px;height:22px;flex:0 0 22px;align-items:center;justify-content:center}.mobile-sheet-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}body.sheet-open{overflow:hidden}input,select,textarea{min-height:var(--control-height);margin-top:var(--label-gap);padding:10px var(--control-padding-x);font-size:16px}}@media(prefers-reduced-motion:reduce){.mobile-sheet-backdrop,.mobile-sheet-panel{transition:none}}
