:root{
  --accent-solid:#2563EB;--accent-border:#1D4ED8;--accent-rgb:37,99,235;
  --selection-focus:rgba(37,99,235,.35);
}
html[data-accent="purple"]{
  --select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%237C3AED' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --accent:#6D28D9;--accent-hover:#5B21B6;--blue:#6D28D9;--blue-light:#EDE5FC;
  --accent-solid:#7C3AED;--accent-border:#6D28D9;--accent-rgb:124,58,237;
  --brand-gradient:linear-gradient(135deg,#6366F1,#8B5CF6);
  --brand-glow:0 1px 2px rgba(124,58,237,.35),0 4px 12px rgba(124,58,237,.18);
  --selection-focus:rgba(124,58,237,.35);
}
html[data-accent="teal"]{
  --select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%230F766E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --accent:#0F766E;--accent-hover:#115E59;--blue:#0F766E;--blue-light:#D7F4EE;
  --accent-solid:#0F766E;--accent-border:#115E59;--accent-rgb:15,118,110;
  --brand-gradient:linear-gradient(135deg,#0E7490,#0F766E);
  --brand-glow:0 1px 2px rgba(15,118,110,.35),0 4px 12px rgba(15,118,110,.18);
  --selection-focus:rgba(15,118,110,.35);
}
html[data-theme="dark"][data-accent="purple"]{
  --accent:#C4B5FD;--accent-hover:#A78BFA;--blue:#C4B5FD;--blue-light:#2B2046;
  --brand-glow:0 1px 2px rgba(0,0,0,.4),0 4px 14px rgba(124,58,237,.28);
}
html[data-theme="dark"][data-accent="teal"]{
  --accent:#5EEAD4;--accent-hover:#2DD4BF;--blue:#5EEAD4;--blue-light:#123532;
  --brand-glow:0 1px 2px rgba(0,0,0,.4),0 4px 14px rgba(15,118,110,.28);
}
html[data-accent]:not([data-theme="dark"]) .app-sidebar{
  --accent:inherit;--blue-light:inherit;
}
html[data-accent] .app-sidebar .user-avatar{background:var(--brand-gradient);}
html[data-accent] .btn-primary,html[data-accent] .btn-primary:hover{border-color:var(--accent-border);}
html[data-accent] ::selection{background:rgba(var(--accent-rgb),.18);}
html[data-accent] .agenda-card:hover{box-shadow:0 8px 24px rgba(var(--accent-rgb),.1);}
html[data-accent] .agenda-upcoming-item:hover{box-shadow:0 4px 14px rgba(var(--accent-rgb),.08);}
html[data-accent] .field :is(input,select,textarea):focus,
html[data-accent] .date-picker-control:is(:hover,[aria-expanded="true"]),
html[data-accent] .event-time-trigger:is(:hover,[aria-expanded="true"]){box-shadow:0 0 0 3px rgba(var(--accent-rgb),.14);}
html[data-accent] .auth-loading-overlay .auth-spinner{
  border-top-color:var(--accent-solid);border-right-color:var(--accent-solid);
  box-shadow:0 0 0 8px rgba(var(--accent-rgb),.06);
}
.accent-options{display:grid;gap:10px;}
.accent-options .accent-option{width:100%;justify-content:flex-start;text-align:left;min-height:56px;}
.accent-option[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 2px var(--blue-light);}
.accent-swatch{display:inline-block;width:24px;height:24px;border-radius:50%;flex:0 0 24px;border:1px solid rgba(0,0,0,.1);}
.accent-option-label{flex:1;}
.accent-option-selected{color:var(--accent);font-size:12px;}
@media(max-width:640px),(max-width:900px) and (orientation:landscape){
  .app-sidebar{display:flex;flex-direction:column;height:100dvh;padding-bottom:max(20px,env(safe-area-inset-bottom));}
  .app-sidebar>.app-nav{flex:1 0 auto;min-height:100%;width:100%;flex-wrap:nowrap;}
  .app-sidebar .app-nav-actions{
    flex-direction:column;align-items:stretch;flex-wrap:nowrap;width:100%;
    margin: auto 0 0;padding-top:16px;gap:8px;
  }
  .app-sidebar .app-nav-actions>.btn{
    width:100%;min-height:46px;justify-content:flex-start;
    padding:11px 12px;font-size:14px;gap:10px;border-radius:8px;
    background:transparent;border-color:transparent;box-shadow:none;
  }
  .app-sidebar .app-nav-actions>.btn:hover{
    background:var(--surface-strong);color:var(--text);transform:none;box-shadow:none;
  }
  .app-sidebar .app-nav-actions .sidebar-action-label{white-space:normal;text-overflow:clip;overflow:visible;}
  .app-sidebar .app-nav-actions>.user-menu-profile{
    order:4;display:flex;align-items:center;flex:0 0 auto;width:100%;min-height:56px;
    padding:12px;margin-top:4px;border-top:1px solid var(--border);overflow:visible;text-align:left;
  }
  .app-sidebar .app-nav-actions>.user-menu-profile>span:nth-child(2){
    display:block;min-width:0;flex:1;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;
  }
  .app-sidebar .user-avatar{width:32px;height:32px;flex-basis:32px;}
}
