/* desktop-navigation.css */
/* The same MonkeyStash controls are moved into this shell only after sign-in. */
#desktopSidebar[hidden],#desktopHomePanel[hidden],#desktopCustomersPanel[hidden]{display:none!important}
.desktop-control-label{display:none}
#kayaApp .tool-access-badge{display:inline-block;padding:4px 7px;border-radius:6px;background:var(--color-surface-soft);color:var(--color-muted);font-size:10px;font-weight:650;line-height:1.4;letter-spacing:.03em;white-space:nowrap}
#kayaApp .tool-access-badge[hidden]{display:none!important}
#kayaApp #desktopHomePanel .desktop-shortcut[data-tool-unassigned]{opacity:1;cursor:not-allowed;border-color:var(--color-border);background:var(--color-surface)}
#kayaApp #desktopHomePanel .desktop-shortcut[data-tool-unassigned] b{color:var(--color-muted)}
#kayaApp #desktopHomePanel .desktop-shortcut .tool-access-badge{order:-1;font-size:10px}
#kayaApp .install-app-icon{display:none}
@media screen and (min-width:1024px){
 #kayaApp body.has-desktop-navigation{--desktop-sidebar-width:224px}
 #kayaApp body.has-desktop-navigation>.app-shell{box-sizing:border-box;margin:0 0 0 var(--desktop-sidebar-width);width:calc(100% - var(--desktop-sidebar-width));max-width:none;padding:24px 24px 0;min-width:0}
 #kayaApp body.has-desktop-navigation>.app-shell>.topbar,
 #kayaApp body.has-desktop-navigation #adminWorkspace #mainToolTabs:has(>#retailAdminToolTab),
 #kayaApp body.has-desktop-navigation #adminBar,
 #kayaApp body.has-desktop-navigation #updateAppButton,
 #kayaApp body.has-desktop-navigation #retailAdminTabs{display:none!important}
 #kayaApp body.has-desktop-navigation #desktopSidebar{position:fixed;inset:0 auto 0 0;z-index:35;box-sizing:border-box;width:var(--desktop-sidebar-width);height:100dvh;display:flex;flex-direction:column;gap:24px;padding:26px 14px 14px;background:var(--color-surface);border-right:1px solid var(--color-border)}
 #kayaApp #desktopBrand{padding:0 8px;flex:none}
 #kayaApp #desktopBrand .brand-logo{display:block;width:176px;max-width:100%;margin:0}
 #kayaApp #desktopNav{display:flex;flex-direction:column;gap:5px;overflow-y:auto;min-height:0;padding:2px;flex:1}
 #kayaApp #desktopNav>.button,#kayaApp #desktopUtilities>:is(.button,details)>summary,#kayaApp #desktopUtilities>.button{width:100%!important;min-width:0;max-width:none;min-height:42px!important;height:auto;justify-content:flex-start;text-align:left;padding:10px 12px!important;border:1px solid transparent!important;border-radius:9px!important;font-size:13px;line-height:1.4;gap:10px;white-space:normal;box-shadow:none;color:var(--color-text)!important;background:transparent!important}
 #kayaApp #desktopNav>.button:hover,#kayaApp #desktopUtilities>:is(.button,details)>summary:hover,#kayaApp #desktopUtilities>.button:hover{background:var(--color-surface-hover)!important}
 #kayaApp #desktopNav>.button[aria-current=page]{background:var(--color-accent-soft)!important;color:var(--color-accent)!important;border-color:var(--color-border)!important;font-weight:650}
 #kayaApp #desktopNav>.button[hidden],#kayaApp #desktopUtilities [hidden]{display:none!important}
 #kayaApp #desktopUtilities{display:flex;flex-direction:column;flex:none;gap:4px;padding:12px 2px 0;border-top:1px solid var(--color-border)}
 #kayaApp #desktopUtilities .desktop-control-label{display:inline}
 #kayaApp #desktopUtilities #accountMenu{margin:0;padding:0;border:0;width:100%;position:relative}
 #kayaApp #desktopUtilities #accountMenu>summary{display:flex;width:100%!important;justify-content:flex-start;min-height:42px!important;min-width:0!important;max-width:none!important;height:auto!important;gap:10px;padding:10px 12px!important;border:1px solid transparent;border-radius:9px;font-size:13px}
 #kayaApp #desktopUtilities #accountMenu>summary:after{display:none}
 #kayaApp #desktopUtilities #accountMenu>.account-menu-items{position:fixed;inset:auto auto var(--desktop-menu-bottom,170px) var(--desktop-menu-left,16px);top:auto;right:auto;bottom:var(--desktop-menu-bottom,170px);left:var(--desktop-menu-left,16px);box-sizing:border-box;width:280px;min-width:0;max-width:calc(100vw - 32px);max-height:min(var(--desktop-menu-height,calc(100dvh - 186px)),calc(100dvh - 32px));overflow:auto;overscroll-behavior:contain;background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;box-shadow:var(--shadow-float)}
 #kayaApp #desktopUtilities #settingsRecordsAnchor{position:static;inset:auto;width:0;height:0}
 #kayaApp #desktopUtilities #settingsRecordsAnchor :is(#historyDialog,#savedSupplierLists){position:fixed;inset:24px auto auto calc(var(--desktop-sidebar-width) + 16px);top:24px;right:auto;bottom:auto;left:calc(var(--desktop-sidebar-width) + 16px);width:min(480px,calc(100vw - var(--desktop-sidebar-width) - 32px))!important;max-width:calc(100vw - var(--desktop-sidebar-width) - 32px)!important;max-height:calc(100dvh - 48px)!important;overflow:auto;margin:0;z-index:150}
 #kayaApp #desktopUtilities #themeToggle{display:flex!important;gap:10px;width:100%!important}
 #kayaApp #desktopUtilities #themeToggle svg{width:20px;flex:none}
 #kayaApp #desktopUtilities>#installAppButton{display:flex;align-items:center;justify-content:flex-start;gap:10px;background:#2563eb!important;color:#fff!important;font-weight:600}
 #kayaApp #desktopUtilities>#installAppButton:hover{background:#1d4ed8!important}
 #kayaApp #desktopUtilities>#installAppButton .install-app-icon{display:block;width:20px;height:20px;flex:none}
 #kayaApp #desktopNav>.button[data-tool-unassigned]{display:flex;flex-direction:column;align-items:flex-start;gap:4px;opacity:1;color:var(--color-muted)!important;cursor:not-allowed}
 #kayaApp #desktopNav>.button[data-tool-unassigned]:hover{background:transparent!important}
 #kayaApp body.has-desktop-navigation #adminWorkspace{margin:0;min-width:0}
 #kayaApp body.has-desktop-navigation :is(#tradeToolPanel,#purchasingToolPanel)>.page-heading{padding-top:0}
 #kayaApp body.has-desktop-navigation #tradeStepsCard{margin-top:0}
 #kayaApp body.has-desktop-navigation #retailAdminPanel>.retail-heading{margin-top:0}
 #kayaApp .desktop-home{max-width:1080px;margin:0 auto}
 #kayaApp .desktop-home-heading{padding:28px 0 30px}
 #kayaApp .desktop-home-heading .eyebrow{font-size:11px;letter-spacing:.1em;color:var(--color-muted);margin:0 0 14px}
 #kayaApp .desktop-home-heading h1{font-size:clamp(26px,3vw,40px);letter-spacing:-.04em;line-height:1.2;margin:0 0 12px;font-weight:650}
 #kayaApp .desktop-home-heading p{font-size:14px;line-height:1.7;color:var(--color-muted);max-width:560px;margin:0}
 #kayaApp .desktop-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 #kayaApp #desktopHomePanel .desktop-shortcut{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;width:100%;min-width:0;min-height:150px;padding:22px;text-align:left;background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border);border-radius:16px;font-family:inherit;white-space:normal}
 #kayaApp #desktopHomePanel .desktop-shortcut:hover{border-color:var(--color-accent);background:var(--color-surface-hover)}
 #kayaApp .desktop-shortcut strong{font-size:18px;font-weight:600}
 #kayaApp .desktop-shortcut span{font-size:13px;line-height:1.6;color:var(--color-muted)}
 #kayaApp .desktop-shortcut b{font-size:12px;color:var(--color-accent);margin-top:auto}
 #kayaApp #desktopHomePanel [hidden]{display:none!important}
 #kayaApp .desktop-home-note{padding:18px 0;font-size:12px;line-height:1.7;color:var(--color-muted)}
 #kayaApp .desktop-coming-soon{padding:24px;max-width:760px;border:1px solid var(--color-border);border-radius:16px;background:var(--color-surface)}
 #kayaApp .desktop-coming-soon h1{margin:0 0 12px;font-size:28px}
 #kayaApp .desktop-coming-soon p{color:var(--color-muted);line-height:1.7;font-size:14px;max-width:580px}
 #kayaApp .desktop-coming-soon .desktop-status{display:inline-block;padding:5px 9px;background:var(--color-surface-soft);border-radius:6px;font-size:12px;color:var(--color-text)}
 #kayaApp body.has-desktop-navigation #appUpdateNotice{left:calc(var(--desktop-sidebar-width) + 16px);max-width:calc(100vw - var(--desktop-sidebar-width) - 32px)}
 /* At a 1024px laptop width the content is a single comfortable track. */
 @media(max-width:1279px){
  #kayaApp body.has-desktop-navigation>.app-shell{padding:20px 16px 0}
  #kayaApp body.has-desktop-navigation .workspace{grid-template-columns:minmax(0,1fr)}
  #kayaApp body.has-desktop-navigation .quote-sticky{position:static}
  #kayaApp body.has-desktop-navigation .retail-pos-layout{grid-template-columns:minmax(0,1fr)}
  #kayaApp body.has-desktop-navigation .desktop-home-grid{gap:12px}
 }
}
@media print{#desktopSidebar{display:none!important}}

/* Upcoming tools stay in the sidebar. A granted route uses its real button and hides the matching row. */
#kayaApp .upcoming-tools{display:flex;flex-direction:column;gap:5px;order:10;border-top:1px solid var(--color-border);margin-top:8px;padding-top:8px}
#kayaApp .upcoming-tool{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 8px;color:var(--color-muted);font-size:12px}
#kayaApp .upcoming-tool .tool-access-badge{font-size:9px;padding:3px 5px}
#kayaApp .upcoming-tool[hidden]{display:none!important}
#kayaApp #upcomingPosSlot:has(>#posToolTab[hidden]){display:none}
#kayaApp #upcomingPosSlot>#posToolTab{width:100%;min-height:42px;padding:10px 8px!important;border:1px solid transparent!important;border-radius:9px!important;text-align:left;justify-content:flex-start;font-size:13px;color:var(--color-text)!important;background:transparent!important;box-shadow:none!important}
#kayaApp #upcomingPosSlot>#posToolTab[hidden]{display:none!important}
#kayaApp #upcomingPosSlot>#posToolTab:hover:not(:disabled){background:var(--color-surface-hover)!important}
#kayaApp #upcomingPosSlot>#posToolTab[aria-current=page]{background:var(--color-accent-soft)!important;color:var(--color-accent)!important;border-color:var(--color-border)!important}
#kayaApp #upcomingPosSlot>#posToolTab[data-tool-unassigned]{display:flex;flex-direction:column;align-items:flex-start;gap:4px;opacity:1;color:var(--color-muted)!important;cursor:not-allowed}
#kayaApp #upcomingPosSlot>#posToolTab[data-tool-unassigned]:hover{background:transparent!important}

#kayaApp .home-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:30px 24px;min-height:160px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:16px}
#kayaApp .home-summary article{text-align:center;min-width:0}
#kayaApp .home-summary h2{margin:0 0 12px;font-size:16px;font-weight:450;line-height:1.5;color:var(--color-muted)}
#kayaApp .home-summary p{margin:0;font-size:15px;font-weight:600;color:var(--color-text)}
#kayaApp .home-summary small{display:block;margin-top:9px;font-size:11px;line-height:1.5;color:var(--color-muted)}
@media(max-width:650px){#kayaApp .home-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px;padding:24px 16px}}

/* mobile-navigation.css */
/* A thumb-friendly shell for signed-in phones/tablets. Desktop starts at 1024px. */
#mobileBottomNav[hidden],#mobileMoreDialog:not([open]){display:none!important}
@media screen and (max-width:1023px){
 #kayaApp body.has-mobile-navigation{--mobile-nav-height:calc(70px + env(safe-area-inset-bottom,0px))}
 #kayaApp body.has-mobile-navigation>.app-shell{padding-bottom:calc(var(--mobile-nav-height) + 24px)!important}
 #kayaApp body.has-mobile-navigation :is(input,textarea,select,button,[contenteditable=true]){scroll-margin-bottom:calc(var(--mobile-nav-height) + 24px)}
 #kayaApp body.has-mobile-navigation #adminWorkspace #mainToolTabs:has(>#retailAdminToolTab),#kayaApp body.has-mobile-navigation #adminBar{display:none!important}
 #kayaApp body.has-mobile-navigation .topbar-right{display:block!important;width:0;min-width:0;height:0}
 #kayaApp body.has-mobile-navigation .topbar{justify-content:flex-start;min-height:58px;padding-block:8px;margin-bottom:14px}
 #kayaApp body.has-mobile-navigation .topbar .brand-logo{width:174px;max-width:60vw}
 #kayaApp body.has-mobile-navigation #mobileBottomNav{position:fixed;inset:auto 0 0;z-index:80;display:flex;align-items:stretch;box-sizing:border-box;min-height:var(--mobile-nav-height);padding:0 max(8px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(8px,env(safe-area-inset-left,0px));background:var(--color-surface);border-top:1px solid var(--color-border);box-shadow:0 -4px 24px #0000000d}
 #kayaApp #mobileBottomNav>.mobile-nav-button{position:relative;flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:70px;padding:10px 4px 8px;border:0;border-radius:0;background:transparent;color:var(--color-muted);font:500 11px/1.25 var(--font-ui,Inter,sans-serif);letter-spacing:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
 #kayaApp #mobileBottomNav>.mobile-nav-button svg{width:23px;height:23px;flex:none}
 #kayaApp #mobileBottomNav>.mobile-nav-button[aria-current=page]{color:var(--color-accent);background:var(--color-accent-soft);font-weight:650}
 #kayaApp #mobileBottomNav>.mobile-nav-button[aria-current=page]:before{content:"";position:absolute;top:0;left:calc(50% - 18px);width:36px;height:3px;border-radius:0 0 4px 4px;background:var(--color-accent)}
 #kayaApp #mobileBottomNav>.mobile-nav-button:hover{color:var(--color-text);background:var(--color-surface-hover)}
 #kayaApp #mobileBottomNav>.mobile-nav-button:focus-visible,#kayaApp #mobileMoreDialog :is(button,summary):focus-visible{outline:2px solid var(--color-accent);outline-offset:-4px}
 #kayaApp #mobileBottomNav>[hidden],#kayaApp #mobileMoreDialog [hidden]{display:none!important}
 #kayaApp body.mobile-keyboard-open #mobileBottomNav,#kayaApp body:has(dialog[open]:not(#mobileMoreDialog)) #mobileBottomNav{display:none!important}
 #kayaApp body.has-mobile-navigation #appUpdateNotice{bottom:calc(var(--mobile-nav-height) + 12px);left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));width:auto;max-width:480px;box-sizing:border-box}
 #kayaApp body.has-mobile-navigation #mobileMoreDialog{position:fixed;inset:auto 0 0;margin:0 auto;transform:none;box-sizing:border-box;width:100%;max-width:640px;height:auto;max-height:calc(100dvh - 28px - env(safe-area-inset-top,0px));padding:20px max(20px,env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px));border:1px solid var(--color-border);border-bottom:0;border-radius:22px 22px 0 0;background:var(--color-surface);color:var(--color-text);overflow:auto;overscroll-behavior:contain;box-shadow:var(--shadow-float)}
 #kayaApp body:has(#mobileMoreDialog[open]){overflow:hidden}
 #kayaApp #mobileMoreDialog::backdrop{background:#0009}
 #kayaApp .mobile-more-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}
 #kayaApp .mobile-more-heading p{margin:0 0 6px;font-size:12px;line-height:1.4;color:var(--color-muted)}
 #kayaApp .mobile-more-heading h2{margin:0;font-size:21px;line-height:1.3;letter-spacing:-.03em}
 #kayaApp #mobileMoreClose{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--color-border);border-radius:12px;background:var(--color-surface-soft);color:var(--color-text);font:400 28px/1 sans-serif;cursor:pointer}
 #kayaApp #mobileMoreRoutes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-bottom:16px}
 #kayaApp #mobileMoreRoutes>.mobile-nav-button{display:flex;align-items:center;gap:10px;box-sizing:border-box;min-width:0;min-height:52px;padding:12px;border:1px solid var(--color-border);border-radius:12px;background:var(--color-surface-soft);color:var(--color-text);text-align:left;font:500 13px/1.4 var(--font-ui,Inter,sans-serif);cursor:pointer}
 #kayaApp #mobileMoreRoutes>.mobile-nav-button svg{width:22px;height:22px;flex:none}
 #kayaApp #mobileMoreRoutes>.mobile-nav-button[aria-current=page]{background:var(--color-accent-soft);color:var(--color-accent);border-color:var(--color-accent)}
 #kayaApp #mobileMoreRoutes>.mobile-nav-button[data-tool-unassigned]{display:grid;grid-template-columns:22px minmax(0,1fr);gap:4px 10px;opacity:1;color:var(--color-muted);cursor:not-allowed}
 #kayaApp #mobileMoreRoutes>.mobile-nav-button[data-tool-unassigned] svg{grid-row:1/3}
 #kayaApp #mobileMoreRoutes .tool-access-badge{grid-column:2;justify-self:start;font-size:9px;padding:3px 4px}
 #kayaApp #mobileUtilities{display:flex;flex-direction:column;gap:6px;padding-top:12px;border-top:1px solid var(--color-border)}
 #kayaApp #mobileUtilities>.button,#kayaApp #mobileUtilities #accountMenu>summary{display:flex;align-items:center;justify-content:flex-start;gap:12px;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;min-height:48px!important;height:auto!important;margin:0!important;padding:12px!important;border:0!important;border-radius:10px;background:transparent!important;color:var(--color-text)!important;white-space:normal;text-align:left;font-size:14px;line-height:1.4}
 #kayaApp #mobileUtilities>.button:hover,#kayaApp #mobileUtilities #accountMenu>summary:hover{background:var(--color-surface-hover)!important}
 #kayaApp #mobileUtilities .desktop-control-label{display:inline}
 #kayaApp #mobileUtilities>#installAppButton{background:#2563eb!important;color:#fff!important;font-weight:600}
 #kayaApp #mobileUtilities>#installAppButton:hover{background:#1d4ed8!important}
 #kayaApp #mobileUtilities>#installAppButton .install-app-icon{display:block;width:22px;height:22px;flex:none}
 #kayaApp #mobileUtilities>#themeToggle{order:1}
 #kayaApp #mobileUtilities>#accountMenu{order:2}
 #kayaApp #mobileUtilities>#updateAppButton{order:3}
 #kayaApp #mobileUtilities #accountMenu{width:100%;height:auto;min-width:0;margin:0;padding:0}
 #kayaApp #mobileUtilities #accountMenu>summary:after{margin-left:auto}
 #kayaApp #mobileUtilities #accountMenu>.account-menu-items{position:static;inset:auto;box-sizing:border-box;width:100%;min-width:0;max-width:none;max-height:none;margin:4px 0 8px;padding:6px;border:1px solid var(--color-border);border-radius:12px;box-shadow:none;background:var(--color-surface-soft);overflow:visible}
 #kayaApp #mobileUtilities #accountMenu>.account-menu-items>.button{min-height:44px!important;padding:10px!important;white-space:normal}
 #kayaApp body.has-mobile-navigation #settingsRecordsAnchor :is(#historyDialog,#savedSupplierLists){position:fixed;inset:16px 12px auto;box-sizing:border-box;width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 32px)!important;margin:0;overflow:auto}
 #kayaApp .desktop-home-heading{padding:12px 0 24px}
 #kayaApp .desktop-home-heading .eyebrow{margin:0 0 12px;font-size:10px;letter-spacing:.1em;color:var(--color-muted)}
 #kayaApp .desktop-home-heading h1{margin:0 0 12px;font-size:28px;line-height:1.2;letter-spacing:-.04em;font-weight:650}
 #kayaApp .desktop-home-heading p{font-size:13px;line-height:1.7;color:var(--color-muted);margin:0}
 #kayaApp .desktop-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #kayaApp #desktopHomePanel .desktop-shortcut{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;box-sizing:border-box;gap:10px;width:100%;min-width:0;min-height:160px;padding:18px;text-align:left;white-space:normal;border:1px solid var(--color-border);border-radius:16px;background:var(--color-surface);color:var(--color-text);font-family:inherit}
 #kayaApp .desktop-shortcut strong{font-size:16px;font-weight:600}
 #kayaApp .desktop-shortcut span{font-size:12px;line-height:1.6;color:var(--color-muted)}
 #kayaApp .desktop-shortcut b{font-size:11px;line-height:1.5;color:var(--color-accent);margin-top:auto}
 #kayaApp .desktop-home-note{padding:14px 0;font-size:12px;line-height:1.7;color:var(--color-muted)}
 #kayaApp #desktopHomePanel [hidden]{display:none!important}
 #kayaApp .desktop-coming-soon{padding:20px;border:1px solid var(--color-border);border-radius:16px;background:var(--color-surface)}
 #kayaApp .desktop-coming-soon h1{font-size:28px;margin:12px 0}
 #kayaApp .desktop-coming-soon p{font-size:14px;line-height:1.7;color:var(--color-muted)}
 #kayaApp .desktop-coming-soon .desktop-status{font-size:12px;color:var(--color-muted)}
}
@media screen and (max-width:360px){#kayaApp .desktop-home-grid{grid-template-columns:minmax(0,1fr)}}
@media screen and (min-width:1024px){#mobileBottomNav,#mobileMoreDialog{display:none!important}}
@media print{#mobileBottomNav,#mobileMoreDialog{display:none!important}}

/* theme-switch.css */
/* Shared appearance control; no role, permission or account behavior. */
#kayaApp #themeToggle.theme-switch{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%;min-height:44px!important;padding:10px 14px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--color-text)!important;font-family:inherit!important;font-size:13px!important;line-height:1.4!important;font-weight:600!important;letter-spacing:normal!important;white-space:nowrap!important;box-shadow:none!important;transform:none!important;cursor:pointer}
#kayaApp #themeToggle .theme-mode-label{width:auto!important;min-width:0;text-align:left;color:inherit;flex:none}
#kayaApp #themeToggle .theme-switch-track{display:block;width:42px!important;height:24px;border-radius:999px;background:#438eff;position:relative;flex:none}
#kayaApp #themeToggle .theme-switch-thumb{display:block;width:16px!important;height:16px;border-radius:50%;background:#0d1727;position:absolute;top:4px;left:4px;transform:translateX(18px);transition:transform 160ms ease}
#kayaApp[data-theme="light"] #themeToggle .theme-switch-track{background:#667085}
#kayaApp[data-theme="light"] #themeToggle .theme-switch-thumb{background:#fff;transform:translateX(0)}
#kayaApp #themeToggle.theme-switch:focus-visible{outline:3px solid #8ab4ff!important;outline-offset:4px!important}
#kayaApp[data-theme="light"] #themeToggle.theme-switch:focus-visible{outline-color:#0056c1!important}
#kayaApp #themeToggle .desktop-control-label{display:none!important}
@media(prefers-reduced-motion:reduce){#kayaApp #themeToggle .theme-switch-thumb{transition:none}}

#kayaApp #mobileUtilities #themeToggle.theme-switch{font-size:14px!important}

/* Signed-out top bar: give the theme switch its own auto-width column so its label never runs under Install App. */
#kayaApp .app-shell:has(#accessGate:not([hidden])) .topbar-right:has(> #themeToggle){grid-template-columns:44px auto auto!important;grid-template-rows:44px!important;column-gap:12px!important}
#kayaApp .app-shell:has(#accessGate:not([hidden])) .topbar-right > #themeToggle.theme-switch{grid-column:2!important;grid-row:1!important;width:auto!important;max-width:none!important;min-width:0!important;padding:10px 4px!important}
#kayaApp .app-shell:has(#accessGate:not([hidden])) .topbar-right > #installAppButton{grid-column:3!important;grid-row:1!important}
/* Light/Dark row icon: sun in light theme, moon in dark theme */
#kayaApp #themeToggle .theme-icon{display:none!important;width:21px!important;height:21px!important;flex:none}
#kayaApp[data-theme="dark"] #themeToggle .theme-icon-moon,#kayaApp[data-theme="light"] #themeToggle .theme-icon-sun{display:block!important}

/* supplier-controls.css */
/* One visual supplier control, two independent keyboard-accessible buttons. */
#kayaApp body #purchasingToolPanel .supplier-control-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;width:100%;max-width:48rem;align-items:center}
#kayaApp body #purchasingToolPanel .supplier-control-row>*{width:100%;min-width:0;margin:0}
#kayaApp body #purchasingToolPanel .supplier-control-row :is(select,.field-picker,.picker-button){width:100%!important;max-width:100%!important;min-width:0!important;margin:0}
#kayaApp body #purchasingToolPanel .supplier-select-field{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:4px!important;align-items:center;position:static}
#kayaApp body #purchasingToolPanel .supplier-select-field .picker-button{padding-right:36px!important}
#kayaApp body #purchasingToolPanel .supplier-select-field .picker-button::after{right:14px}
#kayaApp body #purchasingToolPanel .supplier-rename-pencil{position:static!important;transform:none!important;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;display:flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:transparent;color:var(--color-text);z-index:2;cursor:pointer}
#kayaApp body #purchasingToolPanel .supplier-rename-pencil:focus-visible{outline:3px solid var(--color-primary,#438eff);outline-offset:-3px}
#kayaApp body #purchasingToolPanel .supplier-control-row .picker-value{white-space:normal;overflow-wrap:anywhere;min-width:0}
#kayaApp body #purchasingToolPanel :is(.bulk-table-wrap,.supplier-summary,.price-list-actions)[hidden]{display:none!important}
#kayaApp body #priceListCard:not([data-purchase-section="2"]) #supplierFreightAllocation{display:none!important}

/* Compact action group uses the same square remove-product control as table rows. */
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-navigation{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-start!important;gap:8px!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-actions{display:flex!important;align-items:center;justify-content:flex-start!important;flex:0 0 auto!important;gap:8px!important;width:auto!important;margin:0!important;padding:0!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-actions>*{margin:0!important;flex:none!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-actions .remove-product{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:12px!important}
#kayaApp body #adminWorkspace #purchasingToolPanel :is(#supplierComparisonTable,#rivalPriceTable){min-width:0!important}
#kayaApp body #adminWorkspace #purchasingToolPanel :is(#supplierComparisonPanel,#supplierCompetitorPanel)>.bulk-table-wrap{width:fit-content!important;max-width:100%;padding:0!important;min-height:0!important}
#kayaApp body #adminWorkspace #purchasingToolPanel :is(#supplierComparisonTable,#rivalPriceTable) .row-action{width:52px;padding:4px!important}
@media (max-width:540px){#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row{gap:8px!important;grid-template-columns:minmax(0,1fr)!important}}

/* Bound the four referenced panels to their content without constraining table scrolling. */
#kayaApp body #adminWorkspace #purchasingToolPanel :is(#supplierComparisonPanel,#supplierCompetitorPanel){box-sizing:border-box;width:fit-content!important;max-width:100%!important;min-width:0!important;min-height:0!important;padding:12px!important;margin-bottom:12px!important}
#kayaApp body #adminWorkspace #purchasingToolPanel #priceListCard:not([data-purchase-section="2"]){box-sizing:border-box;width:48rem!important;max-width:100%!important;min-height:0!important;padding:12px!important}
#kayaApp body #adminWorkspace #purchasingToolPanel :is(#exchangeRateCard,#expensesCard){width:100%!important;max-width:100%!important;box-sizing:border-box;min-height:0!important;margin:0!important;padding:0!important}
#kayaApp body #adminWorkspace #purchasingToolPanel #expensesCard>:is(.freight-card,.exchange-expenses-card,.additional-expenses-card,.expense-breakdown-card){padding:10px!important;margin-bottom:8px!important;min-height:0!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .list-toolbar{width:fit-content!important;max-width:100%!important;box-sizing:border-box;gap:8px!important;padding:12px!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row{max-width:42rem}
@media (max-width:540px){#kayaApp body #adminWorkspace #purchasingToolPanel :is(#supplierComparisonPanel,#supplierCompetitorPanel,#priceListCard):not([hidden]){padding:8px!important}#kayaApp body #adminWorkspace #purchasingToolPanel .list-toolbar{width:100%!important}}

/* Purchase action colors match the existing blue ghost-button palette.
   Explicit IDs leave tabs, destructive actions and other tools unchanged. */
#kayaApp body #purchasingToolPanel :is(#newSupplierBook,#saveSupplierBook,#savedListsButton,#duplicateSupplier,#addSupplier,#addProduct,#importImagePrices,#exportPriceTable,#exportSupplier,#renameSupplier){
  background:var(--color-accent-soft)!important;
  color:var(--color-accent)!important;
  border-color:var(--color-transparent)!important;
  box-shadow:none!important;
}
#kayaApp body #purchasingToolPanel :is(#newSupplierBook,#saveSupplierBook,#savedListsButton,#duplicateSupplier,#addSupplier,#addProduct,#importImagePrices,#exportPriceTable,#exportSupplier,#renameSupplier):hover:not(:disabled){
  background:var(--color-accent-soft)!important;
  color:var(--color-accent)!important;
  border-color:var(--color-border-hover)!important;
}

/* Balanced dropdowns with compact, equally tall adjacent actions. */
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-navigation{gap:8px!important;align-items:center!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row{flex:1 1 320px;width:auto;max-width:42rem;gap:8px!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-select-field{grid-template-columns:minmax(0,1fr)!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row .picker-button,
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-actions>.button{box-sizing:border-box;height:44px!important;min-height:44px!important;padding:10px 14px!important;line-height:1.4!important;margin:0!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row .picker-button{padding-right:36px!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-actions>#addSupplier{width:44px!important;min-width:44px!important;max-width:44px!important;padding:0!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-actions>#duplicateSupplier{width:auto!important;min-width:0!important}
#kayaApp body #purchasingToolPanel .supplier-picker-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:4px;align-items:center}
#kayaApp body #purchasingToolPanel .supplier-picker-row>.picker-option{min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere}
#kayaApp body #purchasingToolPanel .supplier-option-edit{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:1px solid transparent;border-radius:10px;background:var(--color-accent-soft)!important;color:var(--color-accent)!important;cursor:pointer}
#kayaApp body #purchasingToolPanel .supplier-option-edit:hover:not(:disabled){border-color:var(--color-border-hover)!important}
#kayaApp body #purchasingToolPanel .supplier-option-edit:focus-visible{outline:3px solid var(--color-accent)!important;outline-offset:-3px}
#kayaApp body #purchasingToolPanel .supplier-picker-row>.picker-option[aria-pressed=true]{background:var(--color-accent-soft)!important;color:var(--color-accent)!important}
@media screen and (max-width:540px){
 #kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row{flex-basis:100%;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row .picker-button{padding-left:10px!important;font-size:12px!important}
}

/* Subtabs keep the same container and geometry when their content changes. */
html#kayaApp{scrollbar-gutter:stable}
#kayaApp body #adminWorkspace #purchasingToolPanel #priceListCard:not([hidden]){width:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;padding:12px!important}
#kayaApp body #adminWorkspace #purchasingToolPanel #priceListCard>.price-list-heading{display:flex!important;flex-direction:column;align-items:stretch!important;justify-content:flex-start!important;gap:12px!important;margin:0 0 16px!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;width:100%;min-width:0;max-width:100%;overflow-x:auto;padding:4px;box-sizing:border-box}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>.button{display:inline-flex!important;flex:0 0 auto!important;box-sizing:border-box!important;width:auto!important;min-width:0!important;max-width:none!important;height:44px!important;min-height:44px!important;padding:10px 12px!important;margin:0!important;border:1px solid transparent!important;font-size:13px!important;font-weight:600!important;line-height:22px!important;white-space:nowrap!important;transform:none!important;transition:background-color .15s,color .15s,border-color .15s}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>:is([aria-expanded=true],[aria-pressed=true]){background:var(--color-accent-soft)!important;color:var(--color-accent)!important;border-color:var(--color-accent)!important}
#kayaApp body #adminWorkspace #purchasingToolPanel #priceListCard>.price-list-heading>.price-list-actions{align-self:flex-start;margin:0!important}
#kayaApp body #adminWorkspace #purchasingToolPanel #priceListCard>.purchasing-cost-cards{max-width:48rem}
@media screen and (max-width:540px){
 #kayaApp body #adminWorkspace #purchasingToolPanel #priceListCard:not([hidden]){padding:8px!important}
}


/* Equal wrappers eliminate the label/select inherited top offset. */
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row>:is(.supplier-select-field,.supplier-type-field){display:block!important;box-sizing:border-box;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;line-height:1!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row .field-picker{display:block!important;box-sizing:border-box;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;max-width:100%!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row .picker-button{position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;height:44px!important;padding:10px 38px 10px 12px!important;line-height:22px!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row .picker-value{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:22px!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row .picker-button::after{content:''!important;position:absolute!important;box-sizing:border-box;width:8px!important;height:8px!important;border:solid currentColor!important;border-width:0 1.5px 1.5px 0!important;right:16px!important;top:50%!important;margin:0!important;transform:translateY(-70%) rotate(45deg)!important}
/* The hit target remains 44px; only a compact 28px pencil surface is visible. */
#kayaApp body #purchasingToolPanel .supplier-picker-row{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:4px!important;align-items:center!important;padding:2px 4px!important;border-radius:8px!important;background:transparent!important}
#kayaApp body #purchasingToolPanel .supplier-picker-row[data-selected=true]{background:var(--color-accent-soft)!important}
#kayaApp body #purchasingToolPanel .supplier-picker-row>.picker-option{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:44px!important;height:auto!important;margin:0!important;padding:8px!important;background:transparent!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:20px!important}
#kayaApp body #purchasingToolPanel .supplier-picker-row>.picker-option[aria-pressed=true]{background:transparent!important;color:var(--color-accent)!important}
#kayaApp body #purchasingToolPanel .supplier-option-edit{position:relative!important;isolation:isolate;display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;color:var(--color-accent)!important;box-shadow:none!important}
#kayaApp body #purchasingToolPanel .supplier-option-edit::before{content:'';position:absolute;inset:8px;border:1px solid var(--color-border-hover);border-radius:7px;background:var(--color-surface);z-index:-1}
#kayaApp body #purchasingToolPanel .supplier-option-edit:hover::before{background:var(--color-accent-soft)}
#kayaApp body #purchasingToolPanel .supplier-option-edit svg{display:block;width:16px;height:16px;flex:none;pointer-events:none}

/* Connected folder tabs share their active panel's surface without moving. */
#kayaApp body #adminWorkspace #purchasingToolPanel #priceListCard:not([hidden]){background:transparent!important;border:0!important;box-shadow:none!important}
#kayaApp body #adminWorkspace #purchasingToolPanel #priceListCard>.price-list-heading{margin:0!important;gap:0!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs{gap:4px!important;padding:4px 4px 0!important;align-items:stretch!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>.button{position:relative!important;border-radius:10px 10px 0 0!important;border:1px solid var(--color-border-hover)!important;background:var(--color-surface-soft)!important;color:var(--color-muted)!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>:is([aria-expanded=true],[aria-pressed=true]){z-index:1;background:var(--color-surface)!important;color:var(--color-accent)!important;border-bottom-color:var(--color-surface)!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .purchase-section-surface{position:relative;box-sizing:border-box;min-width:0;max-width:100%;padding:12px;margin-top:-1px;border:1px solid var(--color-border-hover);border-radius:10px;background:var(--color-surface);box-shadow:0 3px 10px var(--color-shadow)}
#kayaApp body #adminWorkspace #purchasingToolPanel .purchase-section-surface>.price-list-actions{margin:0 0 12px!important;justify-content:flex-start!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .purchase-section-surface>.purchasing-cost-cards{max-width:48rem;margin:0!important}
#kayaApp body #adminWorkspace #purchasingToolPanel #priceListCard[data-purchase-section="2"] .purchasing-cost-cards{display:none!important}
@media(max-width:540px){#kayaApp body #adminWorkspace #purchasingToolPanel .purchase-section-surface{padding:8px}}


#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>.button[hidden]{display:none!important}
/* Follow-on: modern folder tabs, a quiet inactive state and a seamless join.
   Scrollbars stay hidden on the tab strip only; keyboard/touch scrolling remains. */
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs{scrollbar-width:none!important;gap:4px!important;padding:4px 4px 0!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs::-webkit-scrollbar{display:none!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>.button{border-radius:12px 12px 0 0!important;border-color:transparent!important;background:transparent!important;color:var(--color-muted)!important;box-shadow:none!important;letter-spacing:.005em!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>.button:hover{background:var(--color-surface-hover)!important;color:var(--color-text)!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>:is([aria-expanded=true],[aria-pressed=true]){background:var(--color-surface)!important;color:var(--color-accent)!important;border-color:var(--color-border-hover)!important;border-bottom-color:var(--color-surface)!important;box-shadow:inset 0 2px 0 var(--color-accent)!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>:is([aria-expanded=true],[aria-pressed=true])::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--color-surface);pointer-events:none}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>.button:focus-visible{outline:2px solid var(--color-accent)!important;outline-offset:-4px!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .purchase-section-surface{border-radius:12px!important;box-shadow:0 4px 14px var(--color-shadow)!important}

/* Column actions keep one consistent keyboard-accessible pencil per header. */
.column-heading-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}
.column-heading-controls>span{min-width:0;overflow-wrap:anywhere}
.column-heading-controls>.comparison-heading-edit{flex:0 0 44px;width:44px;height:44px;margin:0}
#comparisonNameDialog{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow-y:auto}
.column-management-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 8px}
.column-management-actions>.button{min-height:44px}
.column-delete-action{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.column-delete-action>.button{color:var(--danger,#b42318);min-height:44px}
#columnMatchPreview{max-width:100%;overflow-x:auto}
#columnMatchPreview:empty{display:none}
.import-match-table{min-width:460px;width:100%;margin:14px 0}
#columnImportCurrencyField[hidden],#importListMode[hidden],#deleteManagedColumn[hidden]{display:none!important}


#kayaApp .column-heading-controls>.comparison-heading-edit{flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px!important;margin:0!important}

.column-copy-from{margin:16px 0;padding:14px 0;border-top:1px solid var(--color-border);border-bottom:1px solid var(--color-border)}
#columnSourcePreview{max-width:100%;overflow-x:auto}
#columnSourcePreview:empty{display:none}
#columnSourcePreview summary{cursor:pointer;min-height:36px;padding:6px 0;font-size:13px}
#columnOverwriteLabel{display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px}
#columnOverwriteLabel[hidden]{display:none!important}
#kayaApp #columnOverwrite{width:20px!important;height:20px!important;min-height:20px!important;padding:0!important;flex:0 0 20px}
#kayaApp #comparisonNameDialog #columnCopyFrom{display:block!important;width:100%;min-width:0;max-width:100%;font-size:13px;padding:10px 32px 10px 10px}
#applyColumnSource{margin-top:10px;width:100%}
#kayaApp #comparisonNameDialog #deleteManagedColumn{background:var(--color-danger-soft)!important;color:var(--color-danger)!important;border:1px solid var(--color-danger)!important}

/* A single focus ring for each joined currency row; identify the active control
   with its soft background and text underline, without a second rounded ring. */
#kayaApp #exchangeRateCard .converter-row:focus-within{outline:2px solid var(--color-accent)!important;outline-offset:2px!important;box-shadow:none!important;border-color:var(--color-border-hover)!important}
#kayaApp #exchangeRateCard .converter-row>label .field-picker>.picker-button,
#kayaApp #exchangeRateCard .converter-row>label>input{box-shadow:none!important}
#kayaApp #exchangeRateCard .converter-row>label .field-picker:focus-within>.picker-button,
#kayaApp #exchangeRateCard .converter-row>label .field-picker>.picker-button:focus-visible,
#kayaApp #exchangeRateCard .converter-row>label>input:focus-visible{outline:none!important;box-shadow:none!important;background:var(--color-accent-soft)!important;text-decoration:underline;text-underline-offset:3px}
#kayaApp #exchangeRateCard .converter-row>label:first-child .picker-button{border-radius:11px 0 0 11px!important}
#kayaApp #exchangeRateCard :is(#exchangeAmount,#exchangeResult){border-radius:0 11px 11px 0!important}
#kayaApp #exchangeRateCard .converter-row>label>input[aria-invalid=true]{outline:2px solid var(--color-danger)!important;outline-offset:-3px!important}

/* Compact currency labels preserve native values and accessible combined labels. */
#kayaApp #exchangeRateCard .converter-field{position:relative;grid-template-rows:minmax(44px,auto)!important;gap:0!important}
#kayaApp #exchangeRateCard .converter-field-label.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
#kayaApp #exchangeRateCard .exchange-converters{align-items:start!important}
#kayaApp #exchangeRateCard .automatic-converter{align-self:start;margin-top:0!important;padding-top:0!important}
#kayaApp #exchangeRateCard #manualConverter{align-self:start;margin-top:0!important}
#kayaApp #exchangeRateCard .automatic-converter>.currency-converter-layout{height:auto!important}
#kayaApp #exchangeRateCard .currency-converter-layout>.currency-converter{height:auto!important;grid-template-rows:repeat(2,minmax(44px,auto))!important}
#kayaApp #exchangeRateCard .converter-row .picker-button{display:flex!important;position:relative!important;align-items:center!important;justify-content:flex-start!important;padding:3px 24px 3px 8px!important}
#kayaApp #exchangeRateCard .converter-row .picker-value{display:block!important;min-width:0;max-width:100%;overflow:visible!important;white-space:normal!important;-webkit-line-clamp:unset!important}
#kayaApp #exchangeRateCard .currency-option-label{display:flex;flex-direction:column;gap:0;min-width:0;max-width:100%;text-align:left}
#kayaApp #exchangeRateCard .currency-option-name{display:block;font-size:12px!important;line-height:14px!important;font-weight:600;color:var(--color-text);white-space:normal;overflow-wrap:normal}
#kayaApp #exchangeRateCard .currency-option-unit{display:block;font-size:11px!important;line-height:12px!important;font-weight:400;color:var(--color-muted);white-space:nowrap}
#kayaApp #exchangeRateCard .converter-row .picker-button::after{content:''!important;position:absolute!important;box-sizing:border-box;width:7px!important;height:7px!important;border:solid currentColor!important;border-width:0 1.5px 1.5px 0!important;right:10px!important;top:50%!important;margin:0!important;transform:translateY(-70%) rotate(45deg)!important}
@media screen and (max-width:700px){
 #kayaApp #exchangeRateCard .currency-option-name{font-size:11px!important;line-height:12px!important}
 #kayaApp #exchangeRateCard .currency-option-unit{font-size:10px!important;line-height:11px!important}
}

/* Exchange field captions sit above their controls in both themes. */
.exchange-mode-row .exchange-mode-label,.exchange-mode-row .exchange-name-label{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.exchange-mode-row .exchange-mode-label>span,.exchange-mode-row .exchange-name-label>span{display:block}
#manualConverter>label{display:flex;flex-direction:column;align-items:stretch;gap:8px}

/* Exchange layout: reset inherited flex bases so column labels cannot reserve
   140px of height, and keep reference actions beside their own conversion block. */
#kayaApp body #adminWorkspace #purchasingToolPanel #exchangeRateCard{
 max-width:56rem!important;min-height:0!important;align-self:start
}
#kayaApp body #exchangeRateCard :is(.converter-base,.exchange-rate-meta){margin:0 0 8px!important}
#kayaApp body #exchangeRateCard .converter-quote{margin:0 0 8px!important;font-size:clamp(24px,2.4vw,32px)!important;line-height:1.2!important}
#kayaApp body #exchangeRateCard .exchange-rate-meta{display:flex;flex-wrap:wrap;gap:4px 8px;line-height:1.45;font-size:12px}
#kayaApp body #exchangeRateCard #exchangeResultHelp{flex-basis:100%;font-size:12px;line-height:1.45}
#kayaApp body #exchangeRateCard .exchange-rate-separator{display:none}
#kayaApp body #exchangeRateCard .exchange-mode-row{
 display:grid!important;grid-template-columns:minmax(0,10rem)!important;
 align-items:start!important;gap:12px!important;margin:16px 0!important
}
#kayaApp body #exchangeRateCard .exchange-mode-row>label,
#kayaApp body #exchangeRateCard #manualShopNameField{
 display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;align-self:start!important;
 gap:6px!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;flex:none!important
}
#kayaApp body #exchangeRateCard .exchange-mode-row>label>span:not(.field-error),
#kayaApp body #exchangeRateCard #manualShopNameField>span:not(.field-error){
 margin:0!important;padding:0!important;font-size:13px;line-height:20px
}
#kayaApp body #exchangeRateCard .exchange-mode-row>label>:is(select,.field-picker,input),
#kayaApp body #exchangeRateCard #manualShopNameField>input{
 flex-grow:0!important;flex-shrink:0!important;flex-basis:auto!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important
}
#kayaApp body #exchangeRateCard .exchange-mode-row .picker-button,
#kayaApp body #exchangeRateCard #manualShopName{box-sizing:border-box;height:44px!important;min-height:44px!important;margin:0!important}
#kayaApp body #exchangeRateCard .exchange-converters{
 display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important;align-items:start!important;
 gap:16px!important;width:100%!important;min-height:0!important
}
#kayaApp body #exchangeRateCard .exchange-converters:has(#manualConverter[hidden]){grid-template-columns:minmax(0,32rem)!important}
#kayaApp body #exchangeRateCard .automatic-converter{width:100%!important;min-width:0!important;max-width:none!important}
#kayaApp body #exchangeRateCard .converter-actions{
 display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:8px!important;
 width:auto!important;max-width:none!important;margin:10px 0 0!important;grid-column:auto!important
}
#kayaApp body #exchangeRateCard .converter-actions>.button{margin:0!important;min-height:44px!important;min-width:44px!important;padding:8px 12px!important}
#kayaApp body #exchangeRateCard #manualConverter{
 box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);align-content:start!important;
 gap:10px!important;width:100%!important;max-width:none!important;min-height:0!important;padding:12px!important;grid-row:auto!important
}
#kayaApp body #exchangeRateCard #manualConverter[hidden]{display:none!important}
#kayaApp body #exchangeRateCard .rate-type-controls{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:start}
#kayaApp body #exchangeRateCard .rate-type-field{display:block!important;margin:0!important;min-width:0}
#kayaApp body #exchangeRateCard :is(.rate-type-field,.manual-rate-field) .field-picker{width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;flex:none!important}
#kayaApp body #exchangeRateCard .rate-type-field .picker-button,
#kayaApp body #exchangeRateCard #manualShopRate{box-sizing:border-box;width:100%!important;max-width:none!important;min-height:44px!important;height:44px!important;margin:0!important}
#kayaApp body #exchangeRateCard .manual-rate-field{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;gap:6px!important;margin:0!important;min-width:0}
#kayaApp body #exchangeRateCard .manual-rate-field>span:first-child{font-size:13px;line-height:18px}
#kayaApp body #exchangeRateCard #manualRateUnits{font-size:12px;line-height:16px;margin:0!important}
#kayaApp body #exchangeRateCard .manual-difference{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0!important;padding-top:2px;font-size:13px;line-height:20px}
#kayaApp body #exchangeRateCard #manualDifference{font-size:16px;line-height:20px}
#kayaApp body #exchangeRateCard :is(#manualRateTypeError,#exchangeTransactionError){margin:0!important;font-size:12px;line-height:1.45}
#kayaApp body #exchangeRateCard #exchangeTransactionError:not([hidden]){margin-top:10px!important}
#kayaApp body #exchangeRateCard .rate-type-help{position:relative;min-width:0}
#kayaApp body #exchangeRateCard #fixedRateInfo{
 display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px!important;height:44px!important;
 min-width:44px!important;min-height:44px!important;padding:0!important;margin:0!important;
 color:var(--color-muted)!important;background:var(--color-input)!important;border:1px solid var(--color-border)!important;border-radius:10px
}
#kayaApp body #exchangeRateCard #fixedRateInfo:focus-visible{outline:2px solid var(--color-accent)!important;outline-offset:2px}
#kayaApp body #exchangeRateCard .rate-info-popover{
 position:absolute;right:0;top:calc(100% + 6px);z-index:120;box-sizing:border-box;
 width:240px;max-width:calc(100vw - 48px);margin:0;padding:10px 12px;border:1px solid var(--color-border);
 border-radius:10px;background:var(--color-surface);color:var(--color-text);box-shadow:var(--shadow-float);font-size:12px;line-height:1.5
}
#kayaApp body #exchangeRateCard .rate-info-popover[hidden]{display:none!important}
#kayaApp body #exchangeRateCard .rate-type-field .picker-panel{padding:4px!important;border-radius:10px!important}
#kayaApp body #exchangeRateCard .rate-type-field .picker-options{display:grid;grid-auto-rows:auto;gap:2px!important;padding:0!important;min-height:0!important}
#kayaApp body #exchangeRateCard .rate-type-field .picker-option{
 display:flex!important;align-items:center;box-sizing:border-box;width:100%!important;min-height:44px!important;height:auto!important;
 padding:8px 10px!important;margin:0!important;border-radius:6px!important;font-size:13px!important;line-height:20px!important;white-space:normal
}
#kayaApp body #exchangeRateCard .rate-type-field .picker-option:focus-visible{outline:2px solid var(--color-accent)!important;outline-offset:-2px}
#kayaApp body #exchangeRateCard .rate-type-field .picker-option:disabled{color:var(--color-muted)!important;background:transparent!important;opacity:.7}
#kayaApp body #exchangeRateCard .rate-type-field .picker-button[aria-invalid=true]{outline:2px solid var(--color-danger)!important;outline-offset:1px!important;border-color:var(--color-danger)!important}
@media screen and (max-width:700px){
 #kayaApp body #exchangeRateCard .exchange-mode-row{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 #kayaApp body #exchangeRateCard .exchange-converters,
 #kayaApp body #exchangeRateCard .exchange-converters:has(#manualConverter[hidden]){grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 #kayaApp body #exchangeRateCard .rate-type-field .picker-option{min-height:44px!important}
}

/* Keep the join inside the horizontally scrollable strip, above the panel's
   top border. The old -1px pseudo-element was clipped by overflow:auto. */
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs{
 position:relative;z-index:2;padding:4px 4px 2px!important;margin-bottom:-3px!important
}
#kayaApp body #adminWorkspace #purchasingToolPanel .purchase-section-surface{
 margin-top:0!important;border-color:var(--color-border)!important
}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>:is([aria-expanded=true],[aria-pressed=true]){
 border-color:var(--color-border)!important;border-bottom-color:var(--color-surface)!important;
 background:var(--color-surface)!important
}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>:is([aria-expanded=true],[aria-pressed=true])::after{
 bottom:-2px;height:3px;left:0;right:0;background:var(--color-surface)
}

/* Modestly narrower supplier dropdowns on desktop; preserve mobile fit and
   the separate actions/card dimensions. Each control keeps its 44px height. */
@media screen and (min-width:701px){
 #kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row{
  flex:0 1 32.5rem!important;max-width:32.5rem!important;grid-template-columns:repeat(2,minmax(0,1fr))!important
 }
 #kayaApp body #adminWorkspace #purchasingToolPanel .supplier-control-row :is(.supplier-select-field,.supplier-type-field)>.field-picker{
  width:100%!important;max-width:100%!important;min-width:0!important
 }
}

/* Compact exchange identity controls keep their labels and 44px controls aligned.
   The existing name field remains in DOM order immediately after Exchange Type. */
#kayaApp body #exchangeRateCard .exchange-mode-row{
 grid-template-columns:minmax(0,10rem) minmax(0,18rem)!important;
 max-width:calc(28rem + 12px);width:100%;box-sizing:border-box
}
#kayaApp body #exchangeRateCard .currency-converter-layout{
 grid-template-rows:auto!important;align-items:start!important
}
#kayaApp body #exchangeRateCard .currency-converter-layout>.currency-converter{grid-column:1;grid-row:1}
#kayaApp body #exchangeRateCard .currency-converter-layout>.currency-swap{grid-column:2;grid-row:1;align-self:center!important}
@media screen and (max-width:480px){
 #kayaApp body #exchangeRateCard .exchange-mode-row{grid-template-columns:minmax(0,1fr)!important;max-width:18rem}
}

/* Complete the last row's grid edge and let cells grow around their controls.
   Both roles share these rules; only the frame owns scrolling. */
#kayaApp body #adminWorkspace #purchasingToolPanel table.bulk-table tbody tr>td,
#kayaApp body #adminWorkspace #purchasingToolPanel table.bulk-table tbody tr>th{
 height:auto!important;min-height:44px;overflow:visible;
 border-bottom:1px solid var(--color-border)!important
}
#kayaApp body #adminWorkspace #purchasingToolPanel table.bulk-table tbody tr:last-child>td,
#kayaApp body #adminWorkspace #purchasingToolPanel table.bulk-table tbody tr:last-child>th{border-bottom:1px solid var(--color-border)!important}
#kayaApp body #adminWorkspace #purchasingToolPanel table.bulk-table .remove-product[hidden]{display:none!important}

/* Extend the active outline to the existing panel seam. Decorative layers stay
   inside the strip's bottom padding and do not change tab or panel geometry. */
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>:is([aria-expanded=true],[aria-pressed=true])::before{
 content:'';position:absolute;inset:-1px -1px -2px;box-sizing:border-box;
 border:1px solid var(--color-accent);border-top-width:2px;border-bottom:0;
 border-radius:12px 12px 0 0;pointer-events:none
}
#kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>:is([aria-expanded=true],[aria-pressed=true])::after{
 left:-41px;right:-41px;bottom:-2px;height:3px;pointer-events:none;
 background-color:transparent;
 background-image:linear-gradient(to right,transparent,var(--color-accent)),linear-gradient(to left,transparent,var(--color-accent)),linear-gradient(var(--color-surface),var(--color-surface));
 background-position:left bottom,right bottom,center;
 background-size:40px 1px,40px 1px,calc(100% - 80px) 100%;
 background-repeat:no-repeat
}

/* Keep all three folder labels visible on phones without changing active-tab
   height. Longer labels may use two lines within the existing 44px target. */
@media screen and (max-width:480px){
 #kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.65fr) minmax(0,1fr)}
 #kayaApp body #adminWorkspace #purchasingToolPanel .price-list-subtabs>:is(#priceListTitle,#exchangeSectionTab,#expensesSectionTab){width:100%!important;height:44px!important;padding:4px!important;font-size:12px!important;line-height:16px!important;white-space:normal!important}
}

/* Fix: Storage placeholder "128GB" was clipped ("128GE") in narrow Storage cells; trim inline padding only. */
#kayaApp body #adminWorkspace #purchasingToolPanel .bulk-table td input[placeholder="128GB"]{padding-left:6px!important;padding-right:6px!important;text-overflow:clip}

/* delete-controls.css */
/* Shared icon-only remove action: matches the Price List reference. */
#kayaApp button.delete-control,
#kayaApp body #adminWorkspace #purchasingToolPanel :is(#comparisonHead,#competitorHead,#rivalPriceTable,#supplierRows,#agentExpenses,.supplier-actions) button.delete-control{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;margin:0!important;flex:0 0 44px!important;aspect-ratio:1!important;border:1px solid transparent!important;border-radius:12px!important;background:var(--color-danger-soft)!important;color:var(--color-danger)!important;font-family:inherit!important;font-size:22px!important;font-weight:700!important;line-height:1!important;box-shadow:none!important}
#kayaApp button.delete-control .delete-control-icon{display:block!important;width:18px!important;height:18px!important;flex:none;pointer-events:none}
#kayaApp button.delete-control:focus-visible{outline:3px solid var(--color-primary,#438eff)!important;outline-offset:2px}
#kayaApp button.delete-control:disabled{cursor:default;opacity:.45}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-actions :is(#duplicateSupplier,#addSupplier){box-sizing:border-box!important;height:44px!important;min-height:44px!important;max-height:44px!important}
#kayaApp body #adminWorkspace #purchasingToolPanel .supplier-actions #addSupplier{width:44px!important;min-width:44px!important;max-width:44px!important;padding:0!important;font-size:18px!important}
#kayaApp #priceListImportMenu .import-options .button{justify-content:center!important}

#kayaApp button.delete-control[hidden],#kayaApp body #adminWorkspace #purchasingToolPanel :is(#comparisonHead,#competitorHead,#rivalPriceTable,#supplierRows,#agentExpenses,.supplier-actions) button.delete-control[hidden]{display:none!important}

/* Shared, compact delete confirmations. Non-delete prompts keep their own layout. */
#kayaApp body :is(#actionDialog,#deleteDialog).delete-confirmation{box-sizing:border-box;width:440px;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px);overflow:auto;padding:16px!important;border-radius:16px!important}
#kayaApp body :is(#actionDialog,#deleteDialog).delete-confirmation form{display:grid;gap:12px;margin:0;padding:0}
#kayaApp body :is(#actionDialog,#deleteDialog).delete-confirmation h2{font-size:18px;line-height:1.3;letter-spacing:-.25px;margin:0 0 10px;overflow-wrap:anywhere}
#kayaApp body :is(#actionDialog,#deleteDialog).delete-confirmation form h2{margin:0}
#kayaApp body :is(#actionDialog,#deleteDialog).delete-confirmation p{font-size:14px;line-height:1.5;margin:0 0 12px;overflow-wrap:anywhere;white-space:normal}
#kayaApp body :is(#actionDialog,#deleteDialog).delete-confirmation form p{margin:0}
#kayaApp body :is(#actionDialog,#deleteDialog).delete-confirmation p:empty{display:none}
#kayaApp body :is(#actionDialog,#deleteDialog).delete-confirmation label{font-size:14px;gap:6px;margin:0}
#kayaApp body :is(#actionDialog,#deleteDialog).delete-confirmation textarea{margin-top:6px;min-height:72px}
#kayaApp body :is(#actionDialog,#deleteDialog).delete-confirmation .dialog-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0 0;padding:0;width:100%}
#kayaApp body :is(#actionDialog,#deleteDialog).delete-confirmation form .dialog-actions{margin-top:2px}
#kayaApp body :is(#actionDialog,#deleteDialog).delete-confirmation .dialog-actions .button{box-sizing:border-box;flex:0 1 96px!important;min-width:80px!important;width:96px!important;max-width:100%;min-height:44px!important;height:auto;padding:9px 14px!important;margin:0;font-size:14px;line-height:1.4;justify-content:center;text-align:center;border-radius:10px!important;white-space:normal}

/* light-refinement.css */
/* Light-theme polish only. Component sizes and the dark palette are unchanged. */
#kayaApp[data-theme="light"]{
 --color-bg:#f7f8fa;
 --color-surface:#ffffff;
 --color-surface-soft:#f3f6fa;
 --color-surface-hover:#edf3fc;
 --color-input:#ffffff;
 --color-text:#182230;
 --color-muted:#566274;
 --color-placeholder:#667085;
 --color-border:#dce2e9;
 --color-border-hover:#aab8ca;
 --color-accent:#2563eb;
 --color-accent-hover:#1d4ed8;
 --color-accent-soft:#edf3ff;
 --color-focus:#2563eb45;
 --color-success:#187044;
 --color-success-soft:#eaf7ef;
 --color-danger:#b4233c;
 --color-danger-soft:#fff0f2;
 --color-shadow:#2538580a;
 --color-shadow-raised:#25385814;
 --shadow-card:0 3px 14px var(--color-shadow);
 --shadow-float:0 8px 26px var(--color-shadow-raised);
}
#kayaApp[data-theme="light"] :is(.comparison-card,.purchase-section-surface,dialog){
 border-color:var(--color-border)!important;
 background:var(--color-surface)!important;
 box-shadow:var(--shadow-card)!important;
}
#kayaApp[data-theme="light"] :is(.section-action-heading h3,#exchangeRateCard h3,#expensesCard h3){
 color:var(--color-text)!important;
}

/* social-space.css */
/* Social Space (design: Cuatro, social-space.css). Scoped to its panel and to
   MonkeyStash's own tokens/theme (#kayaApp[data-theme]); no second sidebar. */
#socialSpacePanel[hidden],#socialSpacePanel [hidden]{display:none!important}
#kayaApp #socialSpacePanel{--ss-card:var(--color-surface);--ss-well:var(--color-surface-soft);--ss-border:var(--color-border);--ss-head:var(--color-text);--ss-muted:var(--color-muted);--ss-link:var(--color-accent);--ss-primary:var(--color-accent);--ss-tint:var(--color-accent-soft);max-width:1040px;color:var(--color-text);text-transform:none}
#socialSpacePanel *{box-sizing:border-box;text-transform:none}
#socialSpacePanel h1,#socialSpacePanel h2,#socialSpacePanel h3{margin:0;color:var(--ss-head);letter-spacing:-.02em}
#socialSpacePanel .ss-top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap}
#socialSpacePanel .ss-eyebrow{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--ss-muted);margin-bottom:8px}
#socialSpacePanel h1{font-size:32px;font-weight:800}
#socialSpacePanel .ss-sub{color:var(--ss-muted);margin:8px 0 0}
#socialSpacePanel .ss-meta{font-size:12px;color:var(--ss-muted);text-align:right}
#socialSpacePanel .ss-meta b{color:var(--ss-head);font-weight:600}
#socialSpacePanel .ss-note{margin:24px 0 0;font-size:13px;color:var(--ss-muted)}
#socialSpacePanel .ss-note b{color:var(--ss-head)}
#socialSpacePanel .ss-tabs{display:inline-flex;gap:4px;padding:4px;background:var(--ss-card);border:1px solid var(--ss-border);border-radius:12px;margin:24px 0}
#socialSpacePanel .ss-tabs button{border:0;background:none;color:var(--ss-muted);font:inherit;font-weight:600;font-size:13px;padding:6px 16px;border-radius:9px;min-height:0;cursor:pointer}
#socialSpacePanel .ss-tabs button[aria-selected=true]{background:var(--ss-tint);color:var(--ss-link)}
#socialSpacePanel .ss-cols{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:start}
#socialSpacePanel .ss-cols>*{min-width:0}
#socialSpacePanel .ss-card{background:var(--ss-card);border:1px solid var(--ss-border);border-radius:16px;padding:24px}
#socialSpacePanel .ss-card-h{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
#socialSpacePanel .ss-card-h h2{font-size:17px;font-weight:700}
#socialSpacePanel .ss-count{color:var(--ss-muted);font-weight:500;margin-left:6px}
#socialSpacePanel .ss-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;min-height:0;padding:0 14px;border-radius:9px;border:0;font:inherit;font-weight:600;font-size:12px;background:var(--ss-tint);color:var(--ss-link);cursor:pointer;width:auto}
#socialSpacePanel .ss-btn.primary{background:var(--ss-primary);color:var(--color-on-accent)}
#socialSpacePanel .ss-btn.text{background:none;color:var(--ss-link);padding:0 4px}
#socialSpacePanel .ss-btn:disabled{opacity:.55;cursor:not-allowed}
#socialSpacePanel .ss-upload{display:flex;align-items:center;gap:16px;padding:20px;border:1.5px dashed var(--ss-border);border-radius:12px;background:var(--ss-well);cursor:pointer;margin:0}
#socialSpacePanel .ss-upload .ss-ic{width:40px;height:40px;border-radius:10px;background:var(--ss-tint);color:var(--ss-link);display:grid;place-items:center;font-size:18px;flex:none}
#socialSpacePanel .ss-upload h3{font-size:14px}#socialSpacePanel .ss-upload p{margin:2px 0 0;font-size:12px;color:var(--ss-muted)}
#socialSpacePanel .ss-upload .ss-btn{margin-left:auto;pointer-events:none}
#socialSpacePanel .ss-hint{font-size:12px;color:var(--ss-muted);margin:12px 0 24px}
#socialSpacePanel .ss-status{font-size:12px;margin:8px 0 0;color:var(--ss-muted)}
#socialSpacePanel .ss-status[data-tone=error]{color:var(--color-danger)}
#socialSpacePanel .ss-status[data-tone=ok]{color:var(--color-success)}
#socialSpacePanel .ss-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}
#socialSpacePanel .ss-thumb{background:none;border:0;padding:0;text-align:left;color:inherit;font:inherit;cursor:pointer;min-height:0;width:auto;display:block}
#socialSpacePanel .ss-img{aspect-ratio:4/5;border-radius:12px;background:linear-gradient(150deg,#2563EB40,#06B6D420);position:relative;overflow:hidden;display:block;width:100%}
#socialSpacePanel .ss-img img{width:100%;height:100%;object-fit:cover;display:block}
#socialSpacePanel .ss-dim{position:absolute;left:8px;bottom:8px;font-size:10px;font-weight:600;padding:2px 6px;border-radius:6px;background:#0009;color:#fff}
#socialSpacePanel .ss-planned{position:absolute;right:8px;top:8px;font-size:10px;font-weight:600;padding:2px 6px;border-radius:6px;background:var(--ss-primary);color:var(--color-on-accent)}
#socialSpacePanel .ss-name{display:block;font-size:12px;font-weight:600;color:var(--ss-head);margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#socialSpacePanel .ss-size{display:block;font-size:11px;color:var(--ss-muted)}
#socialSpacePanel .ss-thumb[aria-pressed=true] .ss-img{outline:2px solid var(--ss-link);outline-offset:2px}
#socialSpacePanel .ss-empty{text-align:center;padding:48px 16px}
#socialSpacePanel .ss-empty .ss-ic{width:56px;height:56px;margin:0 auto 16px;border-radius:14px;background:var(--ss-tint);color:var(--ss-link);display:grid;place-items:center;font-size:24px}
#socialSpacePanel .ss-empty h3{font-size:15px}#socialSpacePanel .ss-empty p{font-size:12px;color:var(--ss-muted);margin:4px 0 0}
#socialSpacePanel .ss-editor .ss-img{max-height:260px;max-width:208px;margin:0 auto 16px}
#socialSpacePanel label.ss-label{display:block;font-size:12px;font-weight:600;color:var(--ss-muted);margin:0 0 6px}
#socialSpacePanel textarea,#socialSpacePanel select,#socialSpacePanel input[type=date]{width:100%;background:var(--ss-well);border:1px solid var(--ss-border);border-radius:10px;color:var(--ss-head);font:inherit;padding:10px 12px}
#socialSpacePanel textarea{min-height:96px;resize:vertical}
#socialSpacePanel .ss-slot{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
#socialSpacePanel .ss-row{display:flex;gap:8px;justify-content:flex-end;margin-top:16px;flex-wrap:wrap}
#socialSpacePanel .ss-list{list-style:none;margin:0;padding:0}
#socialSpacePanel .ss-list li{display:flex;align-items:center;gap:16px;padding:14px 0;border-top:1px solid var(--ss-border)}
#socialSpacePanel .ss-list li:first-child{border-top:0}
#socialSpacePanel .ss-list .ss-t{font-weight:700;color:var(--ss-head);width:56px;flex:none}
#socialSpacePanel .ss-list .ss-sw{width:40px;height:40px;border-radius:8px;background:linear-gradient(150deg,#2563EB40,#06B6D420);flex:none;overflow:hidden}
#socialSpacePanel .ss-list .ss-sw img{width:100%;height:100%;object-fit:cover;display:block}
#socialSpacePanel .ss-list .ss-c{flex:1;min-width:0}#socialSpacePanel .ss-list .ss-c div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#socialSpacePanel .ss-list .ss-c small{color:var(--ss-muted)}
#socialSpacePanel .ss-muted{color:var(--ss-muted)}
#kayaApp #desktopNav>[data-desktop-route="social"]{order:11;margin-top:6px;position:relative}
#kayaApp #desktopNav>[data-desktop-route="social"]::before{content:"";position:absolute;left:4px;right:4px;top:-6px;border-top:1px solid var(--color-border)}
@media (max-width:900px){#socialSpacePanel .ss-cols{grid-template-columns:1fr}}
@media (max-width:520px){
 #socialSpacePanel h1{font-size:26px}#socialSpacePanel .ss-meta{text-align:left}
 #socialSpacePanel .ss-tabs{display:flex}#socialSpacePanel .ss-tabs button{flex:1;padding:6px 8px}
 #socialSpacePanel .ss-card{padding:18px}
 #socialSpacePanel .ss-upload{flex-wrap:wrap}#socialSpacePanel .ss-upload .ss-btn{margin-left:0;width:100%}
 #socialSpacePanel .ss-thumbs{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}

/* Social Space: multi-line textareas use modest radius, not pill (overrides --radius-input) */
#kayaApp #socialSpacePanel textarea,#socialSpacePanel textarea,#kayaApp #ms-gen textarea,#ms-gen textarea{border-radius:12px!important}

/* expense-colors.css */
/* Expense amounts: normal text colour by default; red when positive (expense), green when negative (credit/savings), zero neutral. */
#kayaApp :is(.expense-breakdown :is(dt,dd),.expense-unit-total :is(span,strong),#manualDifference,#exchangeExpenseResult,#agentExpenseBreakdown,#agentExpenseBreakdown *,.exchange-expense-details dd,#supplierSummary :is(span,strong,b,dd)){color:var(--color-text)!important}
#kayaApp .expense-breakdown dd.amount-saving,#kayaApp #manualDifference.amount-saving{color:var(--color-text)!important}
#kayaApp#kayaApp .expense-pos{color:#F87171!important}
#kayaApp#kayaApp .expense-neg{color:#4ADE80!important}
#kayaApp#kayaApp[data-theme="light"] .expense-pos{color:#DC2626!important}
#kayaApp#kayaApp[data-theme="light"] .expense-neg{color:#16A34A!important}

/* desktop-sizing.css */
/* Desktop sizing scale (>=1024px only). Keeps colours/design; unifies type, control heights, paddings, radii.
   Scale: body 14 · labels 13 · card titles 17 · page heading 24 · buttons 36 (small 32) · cards 20px pad, 12px radius. */
@media (min-width:1024px){
 html#kayaApp body{--dz-h:36px;--dz-hs:32px;--dz-r:10px;--dz-rc:12px}
 /* Sidebar: every item same height, size and weight (Purchase/Trade-In no longer bigger/bolder) */
 html#kayaApp body #desktopNav{gap:2px!important}
 html#kayaApp body #desktopNav button:not([hidden]),html#kayaApp body #desktopNav a,html#kayaApp body #desktopNav .upcoming-tool:not([hidden]),
 html#kayaApp body #desktopSidebar #desktopNav #tradeToolTab:not([hidden]),html#kayaApp body #desktopSidebar #desktopNav #purchasingToolTab:not([hidden]),html#kayaApp body #desktopSidebar #desktopNav #posToolTab:not([hidden]){
  box-sizing:border-box!important;min-height:36px!important;height:36px!important;padding:0 10px!important;margin:0!important;
  font-size:13px!important;font-weight:500!important;line-height:1.2!important;letter-spacing:0!important;border-radius:8px!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;text-align:left!important}
 html#kayaApp body #desktopNav button[aria-current=page],html#kayaApp body #desktopNav a[aria-current=page],html#kayaApp body #desktopSidebar #desktopNav #tradeToolTab[aria-current=page],html#kayaApp body #desktopSidebar #desktopNav #purchasingToolTab[aria-current=page]{font-weight:600!important}
 /* Purchase / Trade-In tool tabs live in the sidebar as .button.primary: same size as other items, no pill shadow/scale */
 html#kayaApp body #desktopSidebar #desktopNav #tradeToolTab,html#kayaApp body #desktopSidebar #desktopNav #purchasingToolTab{width:100%!important;min-width:0!important;box-shadow:none!important;transform:none!important}
 html#kayaApp body #desktopNav button svg,html#kayaApp body #desktopNav .upcoming-tool svg{width:16px!important;height:16px!important;flex:none}
 html#kayaApp body #desktopNav .upcoming-tool{justify-content:space-between!important}
 html#kayaApp body #desktopNav .upcoming-tools{padding:8px 0!important;gap:2px!important;display:flex;flex-direction:column}
 html#kayaApp body #desktopNav .tool-access-badge{height:18px!important;padding:0 6px!important;font-size:10px!important;font-weight:600!important;line-height:18px!important;letter-spacing:.02em!important;border-radius:6px!important;margin-left:auto!important;flex:none;display:inline-flex!important;align-items:center}
 /* Social Space page */
 html#kayaApp body #socialSpacePanel{font-size:14px}
 html#kayaApp body #socialSpaceTitle{font-size:24px!important;line-height:1.25!important;letter-spacing:-.01em}
 html#kayaApp body #socialSpacePanel .ss-card{padding:20px!important;border-radius:var(--dz-rc)!important}
 html#kayaApp body #socialSpacePanel .ss-card-h{min-height:32px;align-items:center}
 html#kayaApp body #socialSpacePanel .ss-card h2{font-size:17px!important;line-height:1.3!important}
 html#kayaApp body #socialSpacePanel .ss-card h3{font-size:14px!important}
 html#kayaApp body #socialSpacePanel label,html#kayaApp body #socialSpacePanel .ss-label{font-size:13px}
 html#kayaApp body #socialSpacePanel .ss-tabs{padding:3px!important;gap:2px!important;border-radius:var(--dz-r)!important}
 html#kayaApp body #socialSpacePanel .ss-tabs button{height:32px!important;min-height:32px!important;padding:0 16px!important;font-size:13px!important;border-radius:8px!important;line-height:1!important}
 html#kayaApp body #socialSpacePanel .ss-btn:not(#ms-conn),html#kayaApp body #socialSpacePanel .ss-card .button{min-height:var(--dz-h)!important;height:var(--dz-h)!important;padding:0 14px!important;font-size:13px!important;border-radius:8px!important;box-sizing:border-box}
 html#kayaApp body #socialSpacePanel .ss-btn.text{padding:0 10px!important}
 html#kayaApp body #socialSpacePanel .ss-card input:not([type=checkbox]):not([type=radio]):not([type=file]),html#kayaApp body #socialSpacePanel .ss-card select,html#kayaApp body #socialSpacePanel .ss-card .picker-button{min-height:var(--dz-h)!important;height:var(--dz-h)!important;padding-top:0!important;padding-bottom:0!important;font-size:14px!important;border-radius:8px!important;box-sizing:border-box}
 html#kayaApp body #socialSpacePanel .ss-card li:has(>input[type=time]),html#kayaApp body #socialSpacePanel .ss-card li:has(>input[type=date]){display:flex!important;align-items:center!important;gap:8px!important;margin:0 0 8px!important}
 html#kayaApp body #socialSpacePanel .ss-card li>input+.ss-btn,html#kayaApp body #socialSpacePanel .ss-card li>input{margin:0!important;align-self:center!important}
 html#kayaApp body #socialSpacePanel .ss-card textarea{font-size:14px!important;border-radius:8px!important}
}
