/* Classic mode leaves all existing application styles in charge. */
.appearance-only{display:none}
.appearance-switch{font:inherit;font-size:12px;line-height:1.4;min-height:44px;padding:8px 10px;white-space:nowrap;text-decoration:underline;text-underline-offset:3px;background:transparent;color:#606067;border:0;border-radius:8px;cursor:pointer}
.appearance-switch:focus-visible{outline:2px solid #a21217;outline-offset:3px}
@media screen{
html[data-appearance="modern"]{
  --ui-bg:#f5f5f7;--ui-surface:#fff;--ui-ink:#1d1d1f;--ui-muted:#6e6e73;--ui-line:#dedee3;--ui-accent:#a21217;--ui-radius:14px;
  --bg:var(--ui-bg);--ink:var(--ui-ink);--muted:var(--ui-muted);--line:var(--ui-line);--brand:var(--ui-accent);--brand-dark:#790e12;--brand-soft:#fff1f1;--brand-border:#e7c8c9;--shadow:none;
  color-scheme:light;
}
html[data-appearance="modern"] body{background:var(--ui-bg);color:var(--ui-ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
html[data-appearance="modern"] .appearance-only{display:block}
html[data-appearance="modern"] :where(button,input,select,textarea){font-family:inherit}
html[data-appearance="modern"] :where(button,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){min-height:44px}
html[data-appearance="modern"] :where(button,a,input,select,textarea):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
html[data-appearance="modern"] :where(button,input,select,textarea):disabled{cursor:not-allowed}
html[data-appearance="modern"] .account-toolbar{padding:10px 24px;gap:14px;background:#fff;border-bottom:1px solid var(--ui-line);box-shadow:none;font-size:14px;position:relative;z-index:30}
html[data-appearance="modern"] .account-toolbar .account-identity{min-width:0;gap:12px;flex:0 1 auto}
html[data-appearance="modern"] .account-toolbar .brand{gap:12px;min-width:0}
html[data-appearance="modern"] .account-toolbar :is(.brand-main-logo,.brand-page-logo){width:48px;height:40px;object-fit:contain;border-radius:0;background:transparent;flex:0 0 auto}
html[data-appearance="modern"][data-brand="pintxos"] .account-toolbar :is(.brand-main-logo,.brand-page-logo){width:52px;height:44px}
html[data-appearance="modern"] .account-toolbar .brand .title{font-size:17px;line-height:1.3;font-weight:650;letter-spacing:0}
html[data-appearance="modern"] .account-toolbar .brand .sub{font-size:10px;margin-top:3px;line-height:1.4;color:var(--ui-muted)}
html[data-appearance="modern"] .account-toolbar .brand-eyebrow{display:none}
html[data-appearance="modern"] .account-toolbar .workspace-name{font-size:17px;font-weight:650;color:var(--ui-ink)}
html[data-appearance="modern"] .account-toolbar .account-actions{gap:8px;flex:0 1 auto;min-width:0;align-items:center}
html[data-appearance="modern"] .account-toolbar .workspace-dock{gap:8px;background:transparent;border:0;box-shadow:none}
html[data-appearance="modern"] .account-toolbar .workspace-nav{gap:6px}
html[data-appearance="modern"] .account-toolbar .workspace-nav a{min-height:44px;padding:10px 15px;border:1px solid transparent;border-radius:10px;background:transparent;font-size:14px;font-weight:650;color:var(--ui-ink);white-space:nowrap}
html[data-appearance="modern"] .account-toolbar .workspace-nav a[aria-current=page]{background:var(--ui-accent);color:#fff;border-color:var(--ui-accent)}
html[data-appearance="modern"] .account-toolbar .workspace-nav a:hover:not([aria-current]){background:#f5f5f7}
html[data-appearance="modern"] .account-toolbar button.ai-toolbar-button{min-height:44px;font-size:14px;font-weight:650;padding:10px 14px;background:#fff4f4;border:1px solid #e7c8c9;border-radius:10px;color:var(--ui-accent);white-space:nowrap}
html[data-appearance="modern"] .account-toolbar .active-shop-label{font-size:11px;color:var(--ui-muted);gap:6px;min-width:0}
html[data-appearance="modern"] .account-toolbar #activeShop{max-width:210px;padding:8px 28px 8px 12px;font-size:13px;border:1px solid var(--ui-line);background:#fff;border-radius:10px}
html[data-appearance="modern"] .account-toolbar .account-menu>summary{min-height:44px;display:flex;align-items:center;padding:10px 12px;font-size:13px;border:1px solid var(--ui-line);border-radius:10px;background:#fff;color:var(--ui-ink)}
html[data-appearance="modern"] .account-toolbar .account-menu>div{background:#fff;border:1px solid var(--ui-line);box-shadow:0 8px 24px #1d1d1f14;border-radius:12px;z-index:90}
html[data-appearance="modern"] .account-toolbar .account-menu :is(a,button){min-height:44px;padding:10px 12px;font-size:14px}
html[data-appearance="modern"] .account-toolbar .appearance-switch{padding:8px 6px;font-size:12px;color:var(--ui-muted);background:transparent;border:0}
html[data-appearance="modern"] .account-toolbar .shared-save{padding:0;margin:0;border:0;background:transparent;max-width:270px;gap:6px;font-size:11px}
html[data-appearance="modern"] .account-toolbar .shared-save button{min-height:44px;padding:6px 8px;font-size:11px}
html[data-appearance="modern"] .account-toolbar .shared-save #sharedStatus{font-size:11px;white-space:normal}
html[data-appearance="modern"] :is(.ai-dialog,.reception-dialog){border-color:var(--ui-line);border-radius:18px;box-shadow:0 20px 70px #0002}
@media(max-width:1250px) and (min-width:761px){
  html[data-appearance="modern"] .account-toolbar{padding:10px 18px;gap:8px;flex-wrap:wrap}
  html[data-appearance="modern"] .account-toolbar .account-actions{justify-content:flex-end;flex:1 1 auto}
  html[data-appearance="modern"] .account-toolbar .workspace-nav a{padding:10px 12px}
  html[data-appearance="modern"] .account-toolbar .shared-save{max-width:200px}
}
@media(max-width:760px){
  html[data-appearance="modern"] .account-toolbar{padding:10px 14px;gap:8px;z-index:30}
  html[data-appearance="modern"] .account-toolbar .account-identity{flex:1 1 100%;gap:8px;flex-wrap:wrap}
  html[data-appearance="modern"] .account-toolbar .brand .title{font-size:16px}
  html[data-appearance="modern"] .account-toolbar :is(.brand-main-logo,.brand-page-logo){width:40px;height:34px}
  html[data-appearance="modern"][data-brand="pintxos"] .account-toolbar :is(.brand-main-logo,.brand-page-logo){width:44px;height:40px}
  html[data-appearance="modern"] .account-toolbar .account-actions{gap:6px;width:100%;flex-wrap:wrap}
  html[data-appearance="modern"] .account-toolbar .active-shop-label{flex:1 1 170px;width:auto}
  html[data-appearance="modern"] .account-toolbar #activeShop{width:100%;max-width:none}
  html[data-appearance="modern"] .account-toolbar .account-menu>summary{padding:8px 10px;font-size:12px}
  html[data-appearance="modern"] .account-toolbar .appearance-switch{font-size:11px;min-height:44px;padding:8px 4px}
  html[data-appearance="modern"] .account-toolbar .shared-save{max-width:none;flex:1 1 auto;justify-content:flex-end}
  html[data-appearance="modern"] .account-toolbar .workspace-dock{background:#fff;border-top:1px solid var(--ui-line);gap:3px;padding:7px 10px calc(7px + env(safe-area-inset-bottom));z-index:40}
  html[data-appearance="modern"] .account-toolbar .workspace-nav a{padding:9px 7px;font-size:12px;min-height:44px;border-radius:9px}
  html[data-appearance="modern"] .account-toolbar button.ai-toolbar-button{padding:9px 8px;font-size:12px;min-height:44px}
}
@media(max-width:600px){
  html[data-appearance="modern"] .account-toolbar .appearance-switch{grid-column:2;grid-row:2;justify-self:end}
  html[data-appearance="modern"] .account-toolbar .shared-save{grid-column:1;grid-row:2;justify-content:flex-start;min-width:0;flex-wrap:wrap}
}
/* Modal layers stay above both the header and the mobile navigation. */
html[data-appearance="modern"] .overlay{z-index:100}
html[data-appearance="modern"] .console-menu-open .console-sidebar{z-index:100}
html[data-appearance="modern"] .console-menu-open .console-shade:not([hidden]){z-index:99}
@media(prefers-reduced-motion:reduce){html[data-appearance="modern"] *{scroll-behavior:auto}}
}
@media print{.appearance-switch{display:none!important}}

/* Desktop density adjustment: touch layouts and classic appearance are unchanged. */
@media screen and (min-width:1200px) and (hover:hover) and (pointer:fine){
 html[data-appearance="modern"] .account-toolbar{padding:6px 20px;gap:10px}
 html[data-appearance="modern"] .account-toolbar .brand .title,
 html[data-appearance="modern"] .account-toolbar .workspace-name{font-size:16px}
 html[data-appearance="modern"] .account-toolbar :is(.brand-main-logo,.brand-page-logo){width:42px;height:34px}
 html[data-appearance="modern"][data-brand="pintxos"] .account-toolbar :is(.brand-main-logo,.brand-page-logo){width:46px;height:38px}
}
