@layer theme{:root,:host{--default-font-family:"Geist", "Geist Fallback", ui-sans-serif, system-ui, sans-serif;--default-mono-font-family:"Geist Mono", "Geist Mono Fallback", ui-monospace, monospace}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.fixed{position:fixed}.flex{display:flex}.hidden{display:none}.h-full{height:100%}.min-h-full{min-height:100%}.flex-col{flex-direction:column}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}:root{--background:#f5f2ec;--foreground:#1d211e;--panel:#fffdf7;--panel-strong:#16231d;--line:#d8d0c2;--muted:#6f716b;--accent:#0f7a5f;--accent-soft:#d8eee3;--warn:#ad5f13;--warn-soft:#f8e1bd}*{box-sizing:border-box}html{background:var(--background)}body{background:linear-gradient(90deg, #1d211e09 1px, transparent 1px), linear-gradient(#1d211e09 1px, transparent 1px), var(--background);min-width:320px;color:var(--foreground);background-size:32px 32px;font-family:Geist,Geist Fallback,ui-sans-serif,system-ui,sans-serif}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}.workspace{flex-direction:column;flex:1;gap:18px;width:min(1480px,100%);margin:0 auto;padding:28px;display:flex}.workspace-header,.panel-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.workspace-header{padding:10px 0 6px}.workspace-header h1,.setup-panel h1,.auth-panel h1{letter-spacing:0;max-width:760px;font-size:clamp(2.2rem,6vw,5.6rem);font-weight:780;line-height:.95}.eyebrow{color:var(--accent);font-family:var(--font-geist-mono), ui-monospace, monospace;letter-spacing:.12em;text-transform:uppercase;font-size:.72rem;font-weight:700}.notice,.setup-panel,.auth-panel,.panel,.table-panel,.metric-card{border:1px solid var(--line);background:#fffdf7eb;border-radius:8px;box-shadow:0 18px 48px #1d211e14}.notice{background:var(--warn-soft);color:#5f340b;border-color:#e7b65f;padding:14px 16px}.metric-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.metric-card{flex-direction:column;justify-content:space-between;min-height:116px;padding:16px;display:flex}.metric-card-link,.route-card,.linked-row>a,.table-link-row a{transition:background-color .15s,border-color .15s,color .15s,transform .15s}.metric-card-link:hover,.route-card:hover{border-color:var(--accent);transform:translateY(-1px)}.metric-card span{color:var(--muted);font-size:.86rem;font-weight:650}.metric-card strong{font-family:var(--font-geist-mono), ui-monospace, monospace;letter-spacing:0;font-size:clamp(1.35rem,2vw,2rem);font-weight:760}.metric-card-strong{background:var(--panel-strong);color:#f7f1e5}.metric-card-strong span{color:#a9b9af}.metric-card-warn{background:var(--warn-soft);border-color:#edc58d}.workspace-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;display:grid}.route-grid,.detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.route-card{border:1px solid var(--line);background:#fffdf7eb;border-radius:8px;flex-direction:column;justify-content:space-between;min-height:156px;padding:18px;display:flex;box-shadow:0 18px 48px #1d211e14}.route-card h2{font-size:1.45rem;font-weight:760}.route-card span{color:var(--muted);line-height:1.45}.route-card-strong{background:var(--panel-strong);color:#f7f1e5}.route-card-strong .eyebrow,.route-card-strong span{color:#a9b9af}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.narrow-panel{width:min(760px,100%)}.panel,.table-panel{padding:18px}.panel-heading{margin-bottom:16px}.panel-heading h2{margin-top:2px;font-size:1.35rem;font-weight:720}.panel-heading span{border:1px solid var(--line);color:var(--muted);font-family:var(--font-geist-mono), ui-monospace, monospace;border-radius:999px;padding:6px 10px;font-size:.8rem}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}label{min-width:0;color:var(--muted);flex-direction:column;gap:6px;font-size:.82rem;font-weight:680;display:flex}.span-2{grid-column:span 2}input,select,textarea{border:1px solid var(--line);width:100%;color:var(--foreground);background:#fffefa;border-radius:8px;outline:none;padding:10px 11px}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #0f7a5f24}.primary-button,.small-button,.ghost-button,.icon-button{border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;font-weight:720;transition:background-color .15s,border-color .15s,color .15s;display:inline-flex}.disabled-button{cursor:not-allowed;opacity:.5}.primary-button{background:var(--accent);color:#fffefa;min-height:44px}.primary-button:hover{background:#0a654e}.small-button{background:var(--foreground);color:#fffefa;min-height:38px;padding:0 12px}.small-button:disabled{cursor:not-allowed;opacity:.5}.ghost-button{border-color:var(--line);min-height:34px;color:var(--muted);background:0 0;padding:0 10px}.ghost-button:hover{color:var(--foreground);border-color:#bf9c69}.icon-button{border-color:var(--line);width:36px;height:36px;color:var(--foreground);font-family:var(--font-geist-mono), ui-monospace, monospace;background:#fffefa;flex:none}.icon-button:hover{border-color:var(--accent)}.panel>.small-button{margin-bottom:8px}.modal-backdrop{z-index:50;background:#1d211e6b;place-items:center;padding:24px;display:grid;position:fixed;inset:0;overflow-y:auto}.record-modal{background:linear-gradient(135deg, #fffdf7f5, #f5f2ecf5), var(--panel);border:1px solid #1d211e24;border-radius:8px;width:min(680px,100%);max-height:min(860px,100vh - 48px);padding:22px;overflow-y:auto;box-shadow:0 34px 90px #1d211e47}.target-modal{display:none}.target-modal:target{display:grid}.record-modal .form-grid{margin-top:18px}.modal-heading{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.modal-heading h2{letter-spacing:0;margin-top:4px;font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;line-height:.95}.compact-list,.top-customers{flex-direction:column;gap:8px;margin-top:16px;display:flex}.top-customers h3{font-size:.96rem;font-weight:740}.compact-row{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;min-height:54px;padding-top:8px;display:flex}.compact-row div,.linked-row>a{flex-direction:column;gap:2px;min-width:0;display:flex}.linked-row>a{flex:1}.linked-row>a:hover strong{color:var(--accent)}.compact-row strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.compact-row span,.empty-copy{color:var(--muted);font-size:.88rem}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:960px}th,td{border-top:1px solid var(--line);text-align:left;vertical-align:top;padding:12px 10px}th{color:var(--muted);text-transform:uppercase;font-size:.78rem;font-weight:740}td{font-size:.9rem}td span{max-width:260px;color:var(--muted);margin-top:4px;font-size:.82rem;display:block}.table-link-row a{min-height:34px;display:block}.table-link-row:hover td{background:#d8eee352}.table-link-row:hover a{color:#0b604b}.inline-form{gap:8px;display:flex}.inline-form select{min-width:124px}.setup-shell,.auth-shell{min-height:100vh}.setup-shell{place-items:center;padding:24px;display:grid}.auth-shell{background:linear-gradient(135deg,#0f7a5f24,#0000 34%),linear-gradient(315deg,#ad5f131f,#0000 38%),radial-gradient(circle at 50% 0,#fffdf7e6,#f5f2ecd6 42%,#e1e8dbb8 100%);justify-content:center;align-items:center;padding:clamp(18px,3vw,42px);display:flex;overflow:hidden}.auth-stage{background:linear-gradient(90deg,#fffdf7e6,#fffdf7b8),linear-gradient(90deg,#1d211e0b 1px,#0000 1px) 0 0/28px 28px,linear-gradient(#1d211e0b 1px,#0000 1px) 0 0/28px 28px;border:1px solid #1d211e24;border-radius:8px;grid-template-columns:minmax(0,1.04fr) minmax(360px,.96fr);width:min(1080px,100%);min-height:min(720px,100vh - 48px);display:grid;box-shadow:0 34px 80px #1d211e29,inset 0 1px #ffffffb8}.auth-story,.auth-form-panel{min-width:0}.auth-story{flex-direction:column;justify-content:space-between;gap:32px;padding:clamp(28px,5vw,58px);display:flex}.brand-lockup{width:fit-content;color:var(--foreground);font-family:var(--font-geist-mono), ui-monospace, monospace;letter-spacing:.08em;text-transform:uppercase;align-items:center;gap:10px;font-size:.82rem;font-weight:760;display:inline-flex}.brand-mark{background:var(--panel-strong);color:#f7f1e5;width:34px;height:34px;font-family:var(--font-geist-mono), ui-monospace, monospace;border:1px solid #0f7a5f47;border-radius:8px;place-items:center;font-weight:800;display:inline-grid}.auth-copy{max-width:520px}.auth-copy h1{letter-spacing:0;margin-top:14px;font-size:clamp(3rem,7vw,6.7rem);font-weight:820;line-height:.88}.auth-copy p:last-child{color:#52564f;max-width:440px;margin-top:22px;font-size:clamp(1rem,1.5vw,1.16rem);line-height:1.6}.ledger-preview{background:#fffdf7db;border:1px solid #1d211e21;border-radius:8px;gap:0;width:min(430px,100%);display:grid;overflow:hidden;box-shadow:0 18px 45px #1d211e1c}.ledger-preview-header,.ledger-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;display:grid}.ledger-preview-header{background:var(--panel-strong);color:#f7f1e5;min-height:84px;padding:18px}.ledger-preview-header span,.ledger-row span{color:inherit;font-family:var(--font-geist-mono), ui-monospace, monospace;opacity:.72;text-transform:uppercase;font-size:.78rem;font-weight:680}.ledger-preview-header strong{font-family:var(--font-geist-mono), ui-monospace, monospace;font-size:1.2rem}.ledger-row{border-top:1px solid #1d211e1a;min-height:54px;padding:0 18px}.ledger-row span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ledger-row strong{background:var(--accent-soft);color:#0b604b;border:1px solid #0f7a5f29;border-radius:999px;padding:5px 8px;font-size:.74rem}.auth-form-panel{background:linear-gradient(#fffdf7a3,#f5f2ecd1),#fffdf7b8;border-left:1px solid #1d211e1f;justify-content:center;align-items:center;padding:clamp(22px,4vw,52px);display:flex}.setup-panel,.auth-panel{flex-direction:column;gap:16px;width:min(680px,100%);padding:28px;display:flex}.setup-auth-panel{box-shadow:0 26px 70px #1d211e21}.auth-loading,.auth-error{border:1px solid var(--line);width:min(420px,100%);color:var(--muted);background:#fffdf7e6;border-radius:8px;padding:18px}.auth-error{background:var(--warn-soft);color:#5f340b;border-color:#edc58d}.auth-form-panel .clerk-card-box{width:min(430px,100%)}.auth-form-panel .clerk-card{background:#fffdf7f5;border:1px solid #1d211e1f;border-radius:8px;width:100%;box-shadow:0 22px 56px #1d211e24}.auth-form-panel .clerk-title{color:var(--foreground);letter-spacing:0;font-size:clamp(2rem,4vw,3.2rem);font-weight:820;line-height:.98}.auth-form-panel .clerk-subtitle{color:var(--muted);font-size:.96rem}.auth-form-panel .clerk-social-button,.auth-form-panel .clerk-primary-button{border-radius:8px;min-height:44px;font-weight:740}.auth-form-panel .clerk-social-button{color:var(--foreground);background:#fffefa;border-color:#1d211e24}.auth-form-panel .clerk-primary-button{background:var(--accent);color:#fffefa}.auth-form-panel .clerk-footer{background:linear-gradient(135deg,#0f7a5f14,#ad5f1314)}.auth-form-panel .clerk-footer-link{color:var(--accent);font-weight:760}.setup-panel p,.auth-panel p{color:var(--muted);font-size:1rem;line-height:1.6}.setup-list{gap:8px;padding:0;list-style:none;display:grid}.setup-list li,.command-row code{border:1px solid var(--line);color:var(--foreground);font-family:var(--font-geist-mono), ui-monospace, monospace;background:#fffefa;border-radius:8px;padding:10px 12px;font-size:.86rem}.command-row{display:flex}.text-link{color:var(--accent);font-weight:720}.back-link{width:fit-content}.detail-list{gap:12px;display:grid}.detail-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-item{border-top:1px solid var(--line);gap:4px;padding-top:12px;display:grid}.detail-item span{color:var(--muted);text-transform:uppercase;font-size:.78rem;font-weight:740}.detail-item strong{overflow-wrap:anywhere;font-size:.98rem;font-weight:680;line-height:1.4}.empty-state{justify-content:space-between;align-items:center;gap:16px;display:flex}@media (max-width:1120px){.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-grid,.route-grid,.detail-grid{grid-template-columns:1fr}.auth-stage{grid-template-columns:1fr;min-height:auto}.auth-form-panel{border-top:1px solid #1d211e1f;border-left:0}}@media (max-width:720px){.workspace{padding:18px}.workspace-header{align-items:flex-start}.metric-grid,.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.inline-form{flex-direction:column}.detail-list-grid{grid-template-columns:1fr}.empty-state{flex-direction:column;align-items:flex-start}.auth-shell{align-items:stretch;padding:0}.auth-stage{border:0;border-radius:0;width:100%;min-height:100vh}.auth-story{gap:26px;padding:26px 18px}.auth-copy h1{font-size:clamp(2.75rem,18vw,4.8rem)}.ledger-preview{display:none}.auth-form-panel{align-items:flex-start;padding:18px}}
