/*
 * White Circus visual theme.
 *
 * Global visual skin and final responsive presentation rules live here.
 * Structural feature rules belong in the app-*.css modules; shared primitives in core.css.
 */

/* ========================================================================== */
/* White Circus teal UI 2026-09-17                                            */
/* Global visual theme layer; loaded after all app-*.css modules on every application page.   */
/* PWA/cache invalidation follows the same content-hash deployment mechanism.   */
/* ========================================================================== */
:root{
  --bg:#f3fafb;
  --paper:#ffffff;
  --paper-soft:#f5fbfc;
  --ink:#0d2633;
  --muted:#667b86;
  --line:#d7e9ec;
  --accent:#0aa7ad;
  --accent-dark:#087d86;
  --success:#178963;
  --danger:#d94a4a;
  --shadow:0 14px 34px rgba(20,83,91,.075);
  --premium-accent:#0aa7ad;
  --premium-accent-soft:rgba(10,167,173,.12);
  --premium-accent-glow:rgba(10,167,173,.22);
  --premium-ink:#0d2633;
  --border:#d7e9ec;
  --text:#0d2633;
}

html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}

body:not(.auth-page--login){
  background:
    radial-gradient(circle at 78% -12%,rgba(39,196,201,.13),transparent 34%),
    linear-gradient(180deg,#f9fdfe 0%,#f2f9fa 100%)!important;
  color:var(--ink);
}
body:not(.auth-page--login) .shell{background:transparent}
body:not(.auth-page--login) .content{
  background:
    radial-gradient(circle at 82% 0%,rgba(60,201,207,.085),transparent 30%),
    linear-gradient(180deg,rgba(249,253,254,.96),rgba(243,250,251,.98));
}

/* Sidebar ------------------------------------------------------------------ */
body:not(.auth-page--login) .sidebar{
  background:
    radial-gradient(circle at -15% 82%,rgba(37,192,198,.10),transparent 30%),
    linear-gradient(180deg,#ffffff 0%,#f7fcfd 100%)!important;
  border-right:1px solid #d9eaed!important;
  box-shadow:8px 0 30px rgba(15,79,88,.045)!important;
}

body:not(.auth-page--login) .sidebar .brand-copy .eyebrow{color:#5a7c86!important}
body:not(.auth-page--login) .sidebar .brand-copy strong{color:#102d39!important}
body:not(.auth-page--login) .sidebar-collapse-toggle{
  color:#0b6e77!important;background:#e8f6f7!important;border-color:#b6dfe3!important;
  box-shadow:0 6px 16px rgba(12,94,104,.07)!important;
}
body:not(.auth-page--login) .sidebar-collapse-toggle:hover{background:#eefafb!important;border-color:#8ed5d9!important}
body:not(.auth-page--login) .sidebar .nav::-webkit-scrollbar-thumb{background:rgba(10,167,173,.22)!important}
body:not(.auth-page--login) .sidebar .nav::-webkit-scrollbar-thumb:hover{background:rgba(10,167,173,.40)!important}
body:not(.auth-page--login) .sidebar .nav a{color:#526b76!important}
body:not(.auth-page--login) .sidebar .nav-primary-link>svg,
body:not(.auth-page--login) .sidebar .nav-group-summary-label>svg,
body:not(.auth-page--login) .sidebar .nav-group-items a>svg{stroke:#367e87!important}
body:not(.auth-page--login) .sidebar .nav-primary-link:hover,
body:not(.auth-page--login) .sidebar .nav a:hover{
  color:#0b4450!important;background:rgba(10,167,173,.07)!important;
}
body:not(.auth-page--login) .sidebar .nav-primary-link.active,
body:not(.auth-page--login) .sidebar .nav-group-items a.active{
  color:#073f49!important;
  background:linear-gradient(90deg,rgba(10,167,173,.17),rgba(10,167,173,.07))!important;
  box-shadow:inset 3px 0 0 #0aa7ad!important;
}
body:not(.auth-page--login) .sidebar .nav-primary-link.active>svg,
body:not(.auth-page--login) .sidebar .nav-group-items a.active>svg{stroke:#07838b!important;filter:none!important}
body:not(.auth-page--login) .sidebar .nav-group{
  border-color:rgba(73,142,150,.13)!important;background:rgba(255,255,255,.60)!important;
}
body:not(.auth-page--login) .sidebar .nav-group[open]{
  border-color:rgba(10,167,173,.24)!important;background:rgba(10,167,173,.045)!important;
}
body:not(.auth-page--login) .sidebar .nav-group summary{color:#4f6872!important}
body:not(.auth-page--login) .sidebar .nav-group summary:hover,
body:not(.auth-page--login) .sidebar .nav-group[open]>summary{color:#103b45!important;background:rgba(10,167,173,.06)!important}
body:not(.auth-page--login) .sidebar .nav-group-chevron{color:#07838b!important;background:rgba(10,167,173,.11)!important}
body:not(.auth-page--login) .sidebar-account{border-top-color:#dcebed!important}
body:not(.auth-page--login) .sidebar-account .sidebar-profile-card,
body:not(.auth-page--login) .sidebar--dashboard .sidebar-account .sidebar-profile-card{
  background:rgba(255,255,255,.94)!important;
  border-color:#d5e8eb!important;
  box-shadow:0 10px 24px rgba(16,88,96,.07)!important;
}
body:not(.auth-page--login) .sidebar-account .sidebar-profile-card__avatar,
body:not(.auth-page--login) .sidebar--dashboard .sidebar-account .sidebar-profile-card__avatar{
  background:linear-gradient(145deg,#12b9bf,#087d86)!important;color:#fff!important;
}

body:not(.auth-page--login) .sidebar-account .sidebar-logout-button,
body:not(.auth-page--login) .sidebar--dashboard .sidebar-account .sidebar-logout-button{
  background:#f3fbfc!important;color:#087d86!important;border-color:#cde6e9!important;
}
body:not(.auth-page--login) .sidebar-backup-status{background:#f6fcfb!important;border-color:#cfe7e1!important}

/* Header / global controls ------------------------------------------------- */
body:not(.auth-page--login) .page-header .eyebrow{color:#168b94!important}
body:not(.auth-page--login) .page-header h1{color:#0a2633!important;letter-spacing:-.035em}
body:not(.auth-page--login) .app-global-search{
  background:#fff!important;border-color:#d4e7ea!important;box-shadow:0 7px 20px rgba(15,83,91,.055)!important;
}
body:not(.auth-page--login) .app-global-search input{background:transparent!important;color:#193641!important}
body:not(.auth-page--login) .app-global-search .wc-home-search__icon{color:#367b84!important}
body:not(.auth-page--login) :is(.app-todo-bell__button,.app-changelog-top-link,.language-switch__button){
  background:#e8f6f7!important;color:#315b66!important;border-color:#b6dfe3!important;box-shadow:0 6px 16px rgba(18,83,91,.045)!important;
}
body:not(.auth-page--login) :is(.app-todo-bell__button,.app-changelog-top-link,.language-switch__button):hover{
  background:#effafb!important;color:#077a83!important;border-color:#9ed9dd!important;
}

/* Action surfaces use the White Circus teal palette throughout the app.
 * Keep the native sizes, hover rules and functional states of each component.
 * Primary/danger gradients stay untouched; plain action controls use a light
 * teal fill so they cannot be confused with white non-interactive panels.
 * Calendar item buttons keep their individually configured colours; the
 * global !important fill must never overwrite event backgrounds.
 */
:where(body:not(.auth-page--login) :is(
  button:not([data-calendar-item-id]),
  input[type="button"], input[type="submit"], input[type="reset"],
  a.button, summary.button, [role="button"]
)){
  background-color:#e8f6f7!important;
}
:where(html[data-theme="dark"] body:not(.auth-page--login) :is(
  button:not([data-calendar-item-id]),
  input[type="button"], input[type="submit"], input[type="reset"],
  a.button, summary.button, [role="button"]
)){
  background-color:#153640!important;
}

/* Buttons ----------------------------------------------------------------- */
body:not(.auth-page--login) .button{
  border-radius:10px!important;
}
body:not(.auth-page--login) .button:not(.button-ghost):not(.button-danger){
  color:#fff!important;
  background:linear-gradient(135deg,#18b9be 0%,#07939b 100%)!important;
  border-color:#078f97!important;
  box-shadow:0 8px 18px rgba(8,148,156,.18)!important;
}
body:not(.auth-page--login) .button:not(.button-ghost):not(.button-danger):hover{
  background:linear-gradient(135deg,#20c4c9 0%,#07858e 100%)!important;
  box-shadow:0 10px 22px rgba(8,148,156,.22)!important;
}
body:not(.auth-page--login) .button-ghost,
body:not(.auth-page--login) a.button.button-ghost{
  background:#e8f6f7!important;color:#174854!important;border:1px solid #b6dfe3!important;box-shadow:none!important;
}
body:not(.auth-page--login) .button-ghost:hover,
body:not(.auth-page--login) a.button.button-ghost:hover{background:#eefafb!important;border-color:#96d6da!important;color:#087d86!important}
body:not(.auth-page--login) .button-danger:not(.button-ghost){background:linear-gradient(135deg,#ee6560,#d84545)!important;border-color:#d84545!important}
body:not(.auth-page--login) .button-danger.button-ghost{background:#fff7f7!important;color:#d94848!important;border-color:#f0c6c6!important}

/* Cards / surfaces / forms ------------------------------------------------ */
body:not(.auth-page--login) :is(.panel,.stat-card,.auth-card){
  background:rgba(255,255,255,.95)!important;border-color:#dbeaec!important;box-shadow:0 12px 30px rgba(17,83,91,.06)!important;
}

body:not(.auth-page--login) :is(input:not([type="checkbox"]):not([type="range"]),select,textarea){
  background:#fff!important;color:#17343f!important;border-color:#d5e7ea!important;
}
body:not(.auth-page--login) :is(input:not([type="checkbox"]):not([type="range"]),select,textarea):focus{
  outline:none!important;border-color:#55c1c6!important;box-shadow:0 0 0 4px rgba(10,167,173,.09)!important;
}
body:not(.auth-page--login) input[type="checkbox"]{accent-color:#0aa7ad}
body:not(.auth-page--login) input[type="checkbox"]:checked,
body:not(.auth-page--login) input[type="checkbox"]:indeterminate{background-color:#0aa7ad!important;border-color:#0aa7ad!important}
body:not(.auth-page--login) .premium-filter-surface:not(.dashboard-stat-owner-filter):not(.dashboard-monthly-load__owner-filter){
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(244,251,252,.94))!important;
  border-color:#d6e8eb!important;box-shadow:0 10px 24px rgba(18,84,92,.05)!important;
}
body:not(.auth-page--login) :is(.premium-filter-control,.premium-filter-surface select,.premium-filter-surface input[type="search"],.premium-filter-surface input[type="date"]){
  background:#fff!important;border-color:#d1e6e9!important;box-shadow:none!important;
}
body:not(.auth-page--login) :is(.premium-filter-control,.premium-filter-surface select,.premium-filter-surface input[type="search"],.premium-filter-surface input[type="date"]):focus{
  background:#fff!important;border-color:#4dbdc3!important;box-shadow:0 0 0 4px rgba(10,167,173,.09)!important;
}
body:not(.auth-page--login) .link{color:#087d86!important}
body:not(.auth-page--login) .eyebrow{color:#0b8d96}

/* Event list --------------------------------------------------------------- */
body:not(.auth-page--login) .content--events{background:linear-gradient(180deg,#f8fcfd 0%,#f3fafb 100%)!important}
body:not(.auth-page--login) .event-section-switcher{gap:8px}
body:not(.auth-page--login) .event-filter-builder-panel,
body:not(.auth-page--login) .event-directory{
  border-color:#d7e9ec!important;background:rgba(255,255,255,.94)!important;box-shadow:0 12px 32px rgba(18,83,92,.06)!important;
}
body:not(.auth-page--login) .event-filter-presets{
  background:linear-gradient(180deg,#ffffff,#f8fcfd)!important;border-color:#d9e9ec!important;
}
body:not(.auth-page--login) .event-filter-builder{
  background:linear-gradient(180deg,#fbfeff,#f7fcfd)!important;border-color:#dbeaec!important;
}
body:not(.auth-page--login) .event-filter-builder__head{border-color:#e2eef0!important}
body:not(.auth-page--login) .event-filter-builder__remove{
  background:#fff7f7!important;color:#dc4b4b!important;border-color:#f0caca!important;
}
body:not(.auth-page--login) .event-filter-builder__remove:hover{background:#ffeded!important;border-color:#e99696!important}
body:not(.auth-page--login) .event-filter-count strong{color:#164a54!important;background:#edf9fa!important;border-color:#cce7e9!important}
body:not(.auth-page--login) .event-directory__timeline-toolbar,
body:not(.auth-page--login) .event-directory__toolbar,
body:not(.auth-page--login) .event-directory__toolbar--sticky{
  background:rgba(255,255,255,.96)!important;border-color:#d8e8eb!important;box-shadow:0 8px 22px rgba(18,83,91,.045)!important;
}
body:not(.auth-page--login) .event-directory__toolbar--sticky{backdrop-filter:blur(12px)}
body:not(.auth-page--login) .event-directory__selection-summary{background:#f1fafb!important;border-color:#d5e9eb!important}
body:not(.auth-page--login) .event-directory__selection-summary strong{color:#077b84!important}
body:not(.auth-page--login) .event-directory .table-wrap{
  border:1px solid #dcebed!important;border-radius:14px!important;background:#fff!important;
}
body:not(.auth-page--login) .event-directory .event-directory-table thead th{
  background:#f5fbfc!important;color:#5d737d!important;border-color:#dbeaec!important;
}
body:not(.auth-page--login) .event-directory .event-directory-table tbody td{border-color:#e0edef!important}
body:not(.auth-page--login) .event-directory .event-directory-table tbody tr:hover td{background:#f2fbfc!important}
body:not(.auth-page--login) .event-directory .dashboard-events-table tr.is-premium-selected td,
body:not(.auth-page--login) .event-trash-table tr.is-premium-selected td{
  background:linear-gradient(90deg,rgba(10,167,173,.13),rgba(10,167,173,.045))!important;
  box-shadow:inset 0 1px 0 rgba(10,167,173,.13),inset 0 -1px 0 rgba(10,167,173,.13)!important;
}
body:not(.auth-page--login) .event-directory .dashboard-events-table tr.is-premium-selected td:first-child,
body:not(.auth-page--login) .event-trash-table tr.is-premium-selected td:first-child{
  box-shadow:inset 3px 0 0 #0aa7ad,inset 0 1px 0 rgba(10,167,173,.13),inset 0 -1px 0 rgba(10,167,173,.13)!important;
}
body:not(.auth-page--login) .event-directory .event-status-icon{box-shadow:none!important}
body:not(.auth-page--login) .event-directory .dashboard-events-table__action-pill{
  color:#087d86!important;background:#eefafb!important;border-color:#c8e7e9!important;box-shadow:none!important;
}
body:not(.auth-page--login) .event-directory .dashboard-events-table__action-pill:hover{background:#dff5f6!important;border-color:#8fd4d8!important}
body:not(.auth-page--login) .event-directory .dashboard-events-table__action-pill--delete{color:#dc4a4a!important;background:#fff3f3!important;border-color:#f0c4c4!important}
body:not(.auth-page--login) .event-directory .dashboard-events-table__action-pill--delete:hover{background:#ffe5e5!important;border-color:#e88d8d!important}
body:not(.auth-page--login) .event-directory__pager-link{background:#e8f6f7!important;border-color:#d3e7ea!important;color:#27545e!important}
body:not(.auth-page--login) .event-directory__pager-link.is-active{background:#0aa7ad!important;border-color:#0aa7ad!important;color:#fff!important}

/* Generic tables / dialogs / popovers ------------------------------------- */
body:not(.auth-page--login) table{color:#17313c}
body:not(.auth-page--login) thead th{color:#657983;border-color:#dbeaec}
body:not(.auth-page--login) tbody td{border-color:#e0edef}
body:not(.auth-page--login) tbody tr:hover td{background-color:rgba(10,167,173,.035)}
body:not(.auth-page--login) :is(dialog,.app-todo-bell__popover,.language-switch__menu,.event-directory__bulk-dialog){
  border-color:#d3e6e9!important;background:#fff!important;box-shadow:0 24px 70px rgba(12,62,70,.18)!important;
}
body:not(.auth-page--login) .language-switch__menu a:hover{background:#eefafb!important;color:#087d86!important}
body:not(.auth-page--login) .app-todo-bell__footer{color:#087d86!important}
body:not(.auth-page--login) .app-todo-bell__item:hover{border-color:#c9e6e9!important;background:#f4fbfc!important}
body:not(.auth-page--login) .app-todo-bell__item--service-desk{
  border-left-color:#0aa7ad!important;background:linear-gradient(90deg,rgba(10,167,173,.08),rgba(255,255,255,0)),#fff!important;
}

/* Dashboard --------------------------------------------------------------- */
body:not(.auth-page--login) .content--dashboard{
  background:linear-gradient(180deg,#f8fcfd 0%,#f2f9fa 100%)!important;
}
body:not(.auth-page--login) .wc-home__greeting{color:#087d86!important}
body:not(.auth-page--login) .wc-home__welcome h1{color:#0d2935!important}
body:not(.auth-page--login) .wc-home__welcome h1::after{background:#0aa7ad!important}


body:not(.auth-page--login) .wc-home-week__day.is-today{background:linear-gradient(145deg,#18b9be,#078b93)!important;box-shadow:0 5px 12px rgba(8,139,147,.18)!important}
body:not(.auth-page--login) .wc-home-agenda__dot,

/* Dark -------------------------------------------------------------------- */
:root[data-theme="dark"]{
  --bg:#07141b;
  --paper:#0d2029;
  --paper-soft:#102934;
  --ink:#edf9fb;
  --muted:#9bb1ba;
  --line:#23424c;
  --accent:#35d1d4;
  --accent-dark:#59e2e4;
  --success:#50d5a2;
  --danger:#ff7772;
  --shadow:0 18px 48px rgba(0,0,0,.34);
  --premium-accent:#35d1d4;
  --premium-accent-soft:rgba(53,209,212,.13);
  --premium-accent-glow:rgba(53,209,212,.22);
  --premium-ink:#edf9fb;
  --border:#23424c;
  --text:#edf9fb;
}
html[data-theme="dark"] body:not(.auth-page--login){
  background:
    radial-gradient(circle at 82% -8%,rgba(26,166,172,.16),transparent 34%),
    linear-gradient(180deg,#07151c 0%,#061219 100%)!important;
  color:var(--ink)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .content,
html[data-theme="dark"] body:not(.auth-page--login) .content--events,
html[data-theme="dark"] body:not(.auth-page--login) .content--dashboard{
  background:radial-gradient(circle at 82% 0%,rgba(28,176,181,.075),transparent 31%),linear-gradient(180deg,#081922 0%,#07161d 100%)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar{
  background:radial-gradient(circle at 12% 95%,rgba(31,188,193,.12),transparent 31%),linear-gradient(180deg,#0a2029 0%,#071820 100%)!important;
  border-color:#173640!important;box-shadow:14px 0 42px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .brand-copy strong{color:#f2fbfc!important}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .brand-copy .eyebrow{color:#7db5bb!important}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar-collapse-toggle,
html[data-theme="dark"] body:not(.auth-page--login) :is(.app-todo-bell__button,.app-changelog-top-link,.language-switch__button){
  background:#0d2530!important;color:#bcebef!important;border-color:#21434d!important;box-shadow:none!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav a,
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav-group summary{color:#afc4cb!important}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav-primary-link>svg,
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav-group-summary-label>svg,
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav-group-items a>svg{stroke:#7fc5cb!important}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav-primary-link:hover,
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav a:hover,
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav-group:hover,
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav-group[open]{background:rgba(53,209,212,.07)!important}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav-primary-link.active,
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav-group-items a.active{
  color:#e9ffff!important;background:linear-gradient(90deg,rgba(53,209,212,.20),rgba(53,209,212,.07))!important;
  box-shadow:inset 3px 0 0 #35d1d4!important;border-color:rgba(53,209,212,.20)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav-group{
  background:rgba(255,255,255,.018)!important;border-color:#173844!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav-group[open]{border-color:#24525d!important}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar .nav-group-chevron{background:rgba(53,209,212,.12)!important;color:#59e2e4!important}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar-account .sidebar-profile-card,
html[data-theme="dark"] body:not(.auth-page--login) .sidebar--dashboard .sidebar-account .sidebar-profile-card{
  background:rgba(13,36,46,.94)!important;border-color:#21424c!important;box-shadow:0 10px 28px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar-account .sidebar-logout-button,
html[data-theme="dark"] body:not(.auth-page--login) .sidebar--dashboard .sidebar-account .sidebar-logout-button{
  background:#0f2a34!important;color:#65dfe2!important;border-color:#28505b!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .page-header h1{color:#effbfc!important}
html[data-theme="dark"] body:not(.auth-page--login) .page-header .eyebrow{color:#64cbd0!important}
html[data-theme="dark"] body:not(.auth-page--login) .app-global-search{background:#0d2530!important;border-color:#21424c!important;box-shadow:none!important}
html[data-theme="dark"] body:not(.auth-page--login) .app-global-search input{background:transparent!important;color:#edf9fb!important}
html[data-theme="dark"] body:not(.auth-page--login) :is(.panel,.stat-card,.auth-card,.event-filter-builder-panel,.event-directory){
  background:rgba(13,32,41,.96)!important;border-color:#203f49!important;box-shadow:0 14px 36px rgba(0,0,0,.20)!important;color:var(--ink)!important;
}

html[data-theme="dark"] body:not(.auth-page--login) :is(input:not([type="checkbox"]):not([type="range"]),select,textarea),
html[data-theme="dark"] body:not(.auth-page--login) :is(.premium-filter-control,.premium-filter-surface select,.premium-filter-surface input[type="search"],.premium-filter-surface input[type="date"]){
  background:#0e2530!important;color:#ecf9fa!important;border-color:#2a4a54!important;box-shadow:none!important;color-scheme:dark;
}
html[data-theme="dark"] body:not(.auth-page--login) :is(input,select,textarea)::placeholder{color:#78939d!important}
html[data-theme="dark"] body:not(.auth-page--login) :is(input:not([type="checkbox"]):not([type="range"]),select,textarea):focus,
html[data-theme="dark"] body:not(.auth-page--login) :is(.premium-filter-control,.premium-filter-surface select,.premium-filter-surface input[type="search"],.premium-filter-surface input[type="date"]):focus{
  background:#102b36!important;border-color:#38bec4!important;box-shadow:0 0 0 4px rgba(53,209,212,.10)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .button-ghost,
html[data-theme="dark"] body:not(.auth-page--login) a.button.button-ghost{
  background:#102832!important;color:#d5f3f5!important;border-color:#2a4c56!important;box-shadow:none!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .button-ghost:hover,
html[data-theme="dark"] body:not(.auth-page--login) a.button.button-ghost:hover{background:#153640!important;border-color:#3e6a74!important;color:#6be3e6!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-filter-presets,
html[data-theme="dark"] body:not(.auth-page--login) .event-filter-builder,
html[data-theme="dark"] body:not(.auth-page--login) .premium-filter-surface:not(.dashboard-stat-owner-filter):not(.dashboard-monthly-load__owner-filter){
  background:linear-gradient(180deg,#0f2731,#0c212b)!important;border-color:#21424c!important;box-shadow:none!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-directory__timeline-toolbar,
html[data-theme="dark"] body:not(.auth-page--login) .event-directory__toolbar,
html[data-theme="dark"] body:not(.auth-page--login) .event-directory__toolbar--sticky{
  background:rgba(13,35,44,.96)!important;border-color:#22434d!important;box-shadow:0 8px 24px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-directory__selection-summary{background:#102d37!important;border-color:#28515b!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-directory__selection-summary strong{color:#66e0e3!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-directory .table-wrap{background:#0d222c!important;border-color:#21424c!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-directory .event-directory-table thead th{background:#102b35!important;color:#a9bec5!important;border-color:#24454f!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-directory .event-directory-table tbody td{border-color:#1c3a44!important;color:#e8f5f6!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-directory .event-directory-table tbody tr:hover td{background:#112d37!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-directory .dashboard-events-table__action-pill{
  color:#6be0e3!important;background:#12323c!important;border-color:#28525c!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-directory .dashboard-events-table__action-pill:hover{background:#19444e!important;border-color:#3d737c!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-directory .dashboard-events-table__action-pill--delete{color:#ff8d88!important;background:#381f24!important;border-color:#6d3437!important}
html[data-theme="dark"] body:not(.auth-page--login) table{color:#e7f5f7!important}
html[data-theme="dark"] body:not(.auth-page--login) thead th{color:#9fb4bc!important;border-color:#24434d!important}
html[data-theme="dark"] body:not(.auth-page--login) tbody td{border-color:#1f3b45!important}
html[data-theme="dark"] body:not(.auth-page--login) tbody tr:hover td{background-color:rgba(53,209,212,.035)!important}
html[data-theme="dark"] body:not(.auth-page--login) :is(dialog,.app-todo-bell__popover,.language-switch__menu,.event-directory__bulk-dialog){
  background:#0e2530!important;color:#edf9fb!important;border-color:#284b55!important;box-shadow:0 24px 70px rgba(0,0,0,.42)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .language-switch__menu a:hover{background:#14333e!important;color:#70e0e3!important}
html[data-theme="dark"] body:not(.auth-page--login) .app-todo-bell__swipe-row>.app-todo-bell__item--service-desk{
  background:linear-gradient(90deg,rgba(53,209,212,.10),rgba(15,39,49,0)),#0f2731!important;
}


html[data-theme="dark"] body:not(.auth-page--login) .wc-home__greeting{color:#5cdbde!important}
html[data-theme="dark"] body:not(.auth-page--login) .wc-home__welcome h1{color:#f0fbfc!important}
html[data-theme="dark"] body:not(.auth-page--login) .wc-home-week__day.is-today{background:linear-gradient(145deg,#35d1d4,#0aa4ab)!important;color:#052329!important}


html[data-theme="dark"] ::selection{background:rgba(53,209,212,.28);color:#fff}

/* ========================================================================== */
/* White Circus teal final visual layer                                      */
/* Final visual override: removes remaining beige/bronze application chrome.  */
/* ========================================================================== */

/* Dashboard: compact text-first hero and tighter top rhythm. */
body:not(.auth-page--login) .content--dashboard .wc-home__welcome{
  min-height:96px!important;
  padding:10px 4px 12px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body:not(.auth-page--login) .content--dashboard .wc-home__welcome-copy{
  width:auto!important;
  max-width:620px!important;
  padding:0!important;
}
body:not(.auth-page--login) .content--dashboard .wc-home__greeting{color:#159da4!important}
body:not(.auth-page--login) .content--dashboard .wc-home__welcome h1{color:#0b2834!important}
body:not(.auth-page--login) .content--dashboard .wc-home__slogan{color:#39727b!important;border-color:#65c8cd!important}


body:not(.auth-page--login) .content--dashboard .wc-home-card__link,
body:not(.auth-page--login) .content--dashboard .wc-home-row-arrow{color:#078b93!important}

body:not(.auth-page--login) .content--dashboard .wc-home-actions__grid .wc-home-action{
  color:#0d3440!important;
  background:linear-gradient(145deg,#ffffff,#edfafa)!important;
  border-color:#cfe8eb!important;
  box-shadow:none!important;
}
body:not(.auth-page--login) .content--dashboard .wc-home-actions__grid .wc-home-action:hover{
  background:#e7f8f9!important;
  border-color:#91d8dc!important;
}
body:not(.auth-page--login) .content--dashboard .wc-home-actions__grid .wc-home-action .wc-home-action-icon{
  color:#078b93!important;
  background:#dff6f7!important;
}
body:not(.auth-page--login) .content--dashboard .wc-dashboard-header-date{
  color:#173c47!important;
  background:#fff!important;
  border-color:#d4e8eb!important;
  box-shadow:0 6px 16px rgba(15,83,91,.045)!important;
}
body:not(.auth-page--login) .content--dashboard .wc-dashboard-header-date::before{background:#168c94!important}
body:not(.auth-page--login) .content--dashboard .wc-dashboard-header-date strong{color:#173c47!important;text-shadow:none!important}
body:not(.auth-page--login) .content--dashboard .wc-dashboard-header-date span{color:#6c828b!important;text-shadow:none!important}

/* Calendar: application chrome is teal; event/status colors stay configurable. */
body:not(.auth-page--login) .calendar-v4{
  --cal-bg:#f4fbfc;
  --cal-panel:#ffffff;
  --cal-panel-2:#f0f9fa;
  --cal-panel-3:#e6f4f6;
  --cal-ink:#102f3a;
  --cal-muted:#677f88;
  --cal-line:#d3e7ea;
  --cal-line-strong:#9fd4d8;
  --cal-grid:rgba(42,116,124,.12);
  --cal-accent:#0aa7ad;
  --cal-accent-strong:#087d86;
  --cal-accent-soft:#dff6f7;
  --cal-today:#ecfafa;
  --cal-selected:#e3f7f8;
  background:var(--cal-panel)!important;
  border-color:var(--cal-line)!important;
  box-shadow:0 16px 38px rgba(15,87,95,.075)!important;
}
body:not(.auth-page--login) .calendar-v4__hero{
  background:linear-gradient(135deg,#ffffff,#f1fafb)!important;
  border-color:var(--cal-line)!important;
}
body:not(.auth-page--login) .calendar-v4__views,
body:not(.auth-page--login) .calendar-v4__metrics>span,
body:not(.auth-page--login) .calendar-v4-search input,
body:not(.auth-page--login) .calendar-v4-status-filter select{
  background:#f5fbfc!important;
  border-color:var(--cal-line)!important;
}
body:not(.auth-page--login) .calendar-v4__view.is-active{
  color:#087d86!important;
  background:#e6f7f8!important;
  border-color:#a8dadd!important;
  box-shadow:none!important;
}
body:not(.auth-page--login) .calendar-v4__view--agenda.is-active{
  color:#fff!important;
  background:linear-gradient(135deg,#19b9be,#078f97)!important;
  border-color:#078f97!important;
  box-shadow:0 6px 14px rgba(8,143,151,.18)!important;
}
body:not(.auth-page--login) .calendar-v4-search input:focus{
  border-color:#64c6cb!important;
  box-shadow:0 0 0 3px rgba(10,167,173,.10)!important;
}
body:not(.auth-page--login) .calendar-v4-vacation-dialog{
  background:#fff!important;
  color:#102f3a!important;
  border-color:#cfe5e8!important;
  box-shadow:0 28px 80px rgba(7,57,64,.24)!important;
}
body:not(.auth-page--login) .calendar-v4-vacation-dialog::backdrop{
  background:rgba(6,29,34,.48)!important;
  backdrop-filter:blur(3px)!important;
}
body:not(.auth-page--login) .calendar-v4-vacation-dialog__head,
body:not(.auth-page--login) .calendar-v4-vacation-form__actions{border-color:#d4e8eb!important}
body:not(.auth-page--login) .calendar-v4-vacation-dialog__close{
  color:#0b6270!important;
  background:#f4fbfc!important;
  border-color:#cde5e8!important;
}
body:not(.auth-page--login) .calendar-v4-vacation-dialog__close:hover{
  color:#066f78!important;
  background:#e4f7f8!important;
  border-color:#8ed2d6!important;
}
body:not(.auth-page--login) .calendar-v4-color-form__grid label{
  background:#f7fcfd!important;
  border-color:#d2e8ea!important;
}

/* Event type popover: behaves and looks like the other calendar overlays. */
body:not(.auth-page--login) .calendar-event-type-manager__panel{
  background:#fff!important;
  color:#102f3a!important;
  border-color:#cfe5e8!important;
  box-shadow:0 22px 54px rgba(7,57,64,.19)!important;
}
.calendar-event-type-manager__panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:-2px -2px 10px;
  padding:0 0 10px;
  border-bottom:1px solid #d7e9ec;
}
.calendar-event-type-manager__panel-head>strong{font-size:.78rem;color:#164854}
.calendar-event-type-manager__close{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #cde5e8;
  border-radius:9px;
  background:#f4fbfc;
  color:#0b6570;
  font:inherit;
  font-size:1.15rem;
  cursor:pointer;
}
.calendar-event-type-manager__close:hover{background:#e4f7f8;border-color:#91d4d8}
.calendar-event-type-manager__footer{
  display:flex;
  justify-content:flex-end;
  margin:10px -2px -2px;
  padding-top:10px;
  border-top:1px solid #d7e9ec;
}

/* Dark: navy/teal surfaces and readable text throughout shared chrome. */
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4{
  --cal-bg:#071820;
  --cal-panel:#0d222c;
  --cal-panel-2:#102b36;
  --cal-panel-3:#153641;
  --cal-ink:#eefbfc;
  --cal-muted:#9fb7bf;
  --cal-line:#234752;
  --cal-line-strong:#376b76;
  --cal-grid:rgba(120,205,210,.10);
  --cal-accent:#35d1d4;
  --cal-accent-strong:#68e3e5;
  --cal-accent-soft:#123b45;
  --cal-today:#102f39;
  --cal-selected:#143c46;
  background:#0d222c!important;
  color:#eefbfc!important;
  border-color:#234752!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4__hero{
  background:linear-gradient(135deg,#102a35,#0b2029)!important;
  border-color:#234752!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4__views,
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4__metrics>span,
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4-search input,
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4-status-filter select,
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4-search kbd{
  background:#102b36!important;
  color:#eaf9fa!important;
  border-color:#2b505b!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4__view.is-active{
  color:#72e4e6!important;
  background:#123842!important;
  border-color:#2e5e68!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4__view--agenda.is-active{
  color:#042329!important;
  background:linear-gradient(135deg,#55e0e2,#25bdc2)!important;
  border-color:#35d1d4!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4-month__cell.is-weekend,
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4-timeline__day.is-weekend{background-color:rgba(53,209,212,.025)!important}
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4-vacation-dialog,
html[data-theme="dark"] body:not(.auth-page--login) .calendar-event-type-manager__panel{
  background:#0e2630!important;
  color:#edf9fb!important;
  border-color:#29505a!important;
  box-shadow:0 28px 80px rgba(0,0,0,.42)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4-vacation-dialog__head,
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4-vacation-form__actions,
html[data-theme="dark"] body:not(.auth-page--login) .calendar-event-type-manager__panel-head,
html[data-theme="dark"] body:not(.auth-page--login) .calendar-event-type-manager__footer{border-color:#294b55!important}
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4-vacation-dialog__close,
html[data-theme="dark"] body:not(.auth-page--login) .calendar-event-type-manager__close{
  color:#8be9eb!important;
  background:#12333d!important;
  border-color:#2d5964!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .calendar-event-type-manager__panel-head>strong{color:#eaf9fa!important}
html[data-theme="dark"] body:not(.auth-page--login) .calendar-v4-color-form__grid label{background:#102b35!important;border-color:#294e58!important;color:#eaf9fa!important}

html[data-theme="dark"] body:not(.auth-page--login) :is(.app-todo-bell__button,.app-changelog-top-link,.language-switch__button),
html[data-theme="dark"] body:not(.auth-page--login) :is(.app-todo-bell__button,.app-changelog-top-link,.language-switch__button):hover,
html[data-theme="dark"] body:not(.auth-page--login) .app-todo-bell[open] .app-todo-bell__button,
html[data-theme="dark"] body:not(.auth-page--login) .app-todo-bell.has-items .app-todo-bell__button,
html[data-theme="dark"] body:not(.auth-page--login) .app-changelog-top-link.active{
  color:#8debed!important;
  background:#102b36!important;
  border-color:#2a5661!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .app-todo-bell__popover{
  background:#0d2530!important;
  color:#edf9fb!important;
  border-color:#28505b!important;
  box-shadow:0 24px 70px rgba(0,0,0,.40)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .app-todo-bell__swipe-row>.app-todo-bell__item{
  background:#102b35!important;
  color:#edf9fb!important;
  border-color:#214650!important;
}
html[data-theme="dark"] body:not(.auth-page--login) #eventform-sidebar [data-sidebar-account-stable] .sidebar-backup-status,
html[data-theme="dark"] body:not(.auth-page--login) .sidebar-backup-status{
  color:#dff6f7!important;
  background:#0e2a34!important;
  border-color:#28515b!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body:not(.auth-page--login) #eventform-sidebar [data-sidebar-account-stable] .sidebar-backup-status__copy small,
html[data-theme="dark"] body:not(.auth-page--login) .sidebar-backup-status__copy small{color:#8fb0b8!important}
html[data-theme="dark"] body:not(.auth-page--login) .sidebar-backup-status--ok{background:#0e2d2c!important;border-color:#24675c!important}

/* Changelog/history surfaces: remove legacy bronze dark styling. */
html[data-theme="dark"] body:not(.auth-page--login) .changelog-hero{
  background:linear-gradient(135deg,#102a35,#0d222c)!important;
  border-color:#254a55!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .changelog-hero-stat,
html[data-theme="dark"] body:not(.auth-page--login) .changelog-release,
html[data-theme="dark"] body:not(.auth-page--login) .changelog-release-summary:hover,
html[data-theme="dark"] body:not(.auth-page--login) .changelog-release[open]>.changelog-release-summary{
  background:#102a34!important;
  color:#edf9fb!important;
  border-color:#254a55!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .changelog-timeline::before{background:linear-gradient(180deg,#35d1d4,#25505a)!important}
html[data-theme="dark"] body:not(.auth-page--login) .changelog-release-marker{border-color:#081a22!important;background:#3a7981!important;box-shadow:0 0 0 1px #285863!important}
html[data-theme="dark"] body:not(.auth-page--login) .changelog-release.is-latest .changelog-release-marker{background:#35d1d4!important;box-shadow:0 0 0 1px #35d1d4!important}
html[data-theme="dark"] body:not(.auth-page--login) .changelog-group{
  background:var(--changelog-group-tint)!important;
  border-color:var(--line)!important;
  border-left-color:var(--changelog-group-color)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .changelog-group-items,
html[data-theme="dark"] body:not(.auth-page--login) .changelog-group-heading,
html[data-theme="dark"] body:not(.auth-page--login) .changelog-technical-file-group strong{color:var(--ink)!important}
html[data-theme="dark"] body:not(.auth-page--login) .changelog-technical-files{
  background:var(--paper-soft)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .changelog-technical-files summary{color:#63dbe0!important}

/* Dashboard dark cleanup. */
html[data-theme="dark"] body:not(.auth-page--login) .content--dashboard .wc-home__greeting{color:#61dfe2!important}
html[data-theme="dark"] body:not(.auth-page--login) .content--dashboard .wc-home__welcome h1{color:#f0fbfc!important}
html[data-theme="dark"] body:not(.auth-page--login) .content--dashboard .wc-home__slogan{color:#a9c6cd!important;border-color:#2a6872!important}


html[data-theme="dark"] body:not(.auth-page--login) .content--dashboard .wc-home-actions__grid .wc-home-action{
  color:#e9f8f9!important;
  background:linear-gradient(145deg,#102b35,#0d232c)!important;
  border-color:#244a54!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .content--dashboard .wc-home-actions__grid .wc-home-action:hover{background:#143842!important;border-color:#34717b!important}
html[data-theme="dark"] body:not(.auth-page--login) .content--dashboard .wc-home-actions__grid .wc-home-action .wc-home-action-icon{background:rgba(53,209,212,.12)!important;color:#65e0e2!important}
html[data-theme="dark"] body:not(.auth-page--login) .content--dashboard .wc-dashboard-header-date{
  background:#102b36!important;
  border-color:#28505a!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .content--dashboard .wc-dashboard-header-date strong{color:#edf9fb!important}
html[data-theme="dark"] body:not(.auth-page--login) .content--dashboard .wc-dashboard-header-date span{color:#94b1b9!important}

/* Strong active navigation state after legacy module styling. */
body:not(.auth-page--login) #eventform-sidebar .nav-primary-link.active,
body:not(.auth-page--login) #eventform-sidebar .nav-group-items a.active{
  color:#07535d!important;
  background:linear-gradient(90deg,#d9f4f5,#eefafb)!important;
  border-color:#b9e2e5!important;
  box-shadow:inset 3px 0 0 #0aa7ad!important;
}
html[data-theme="dark"] body:not(.auth-page--login) #eventform-sidebar .nav-primary-link.active,
html[data-theme="dark"] body:not(.auth-page--login) #eventform-sidebar .nav-group-items a.active{
  color:#dcfbfc!important;
  background:linear-gradient(90deg,#123f49,#0f2d37)!important;
  border-color:#285d67!important;
  box-shadow:inset 3px 0 0 #35d1d4!important;
}

html[data-theme="dark"] body:not(.auth-page--login) :is(.app-todo-bell__head,.app-todo-bell__footer){
  background:#102b35!important;
  color:#dff6f7!important;
  border-color:#28505a!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .app-todo-bell__item{
  background:#0f2731!important;
  color:#edf9fb!important;
  border-color:#214650!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .app-todo-bell__item:hover,
html[data-theme="dark"] body:not(.auth-page--login) .app-todo-bell__item.is-unread{
  background:#12333d!important;
  border-color:#2d5b65!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .app-todo-bell__item--service-desk{
  border-left-color:#35d1d4!important;
  background:linear-gradient(90deg,rgba(53,209,212,.10),rgba(15,39,49,0)),#0f2731!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .app-todo-bell.has-items .app-todo-bell__button::after{border-color:#102b36!important}
html[data-theme="dark"] body:not(.auth-page--login) .app-changelog-update__card{
  background:#0e2530!important;
  color:#edf9fb!important;
  border-color:#29505a!important;
  box-shadow:0 28px 80px rgba(0,0,0,.45)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .app-changelog-update__version{
  color:#7ce8ea!important;
  background:rgba(53,209,212,.12)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .app-changelog-update__list li{color:#cfe3e7!important}
html[data-theme="dark"] body:not(.auth-page--login) .app-changelog-update__list li::before{
  color:#75e5e7!important;
  background:#123640!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .app-changelog-update__actions{border-color:#28505a!important}
html[data-theme="dark"] body:not(.auth-page--login) .app-changelog-update__close{
  color:#8cebed!important;
  background:#12333d!important;
  border-color:#2d5964!important;
}

/* 2026-09-17 White Circus theme: floating bulk-selection tray.
   The premium tray still carried the old bronze palette even after the rest of
   the interface switched to turquoise. Keep its behavior unchanged and only
   replace the visual layer for every module that reuses this component. */
body:not(.auth-page--login) .premium-selection-tray{
  border-color:rgba(255,255,255,.32)!important;
  background:linear-gradient(135deg,#078b95 0%,#0aa7ad 52%,#17b9bd 100%)!important;
  color:#fff!important;
  box-shadow:0 22px 54px rgba(5,91,100,.28),inset 0 1px 0 rgba(255,255,255,.22)!important;
}
body:not(.auth-page--login) .premium-selection-tray__status small{
  color:rgba(255,255,255,.82)!important;
}
body:not(.auth-page--login) .premium-selection-tray__badge{
  background:rgba(255,255,255,.16)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)!important;
}
body:not(.auth-page--login) .premium-selection-tray .button-ghost,
body:not(.auth-page--login) .premium-selection-tray__bulk{
  border-color:rgba(255,255,255,.72)!important;
  background:#f7ffff!important;
  color:#07535d!important;
  box-shadow:0 5px 14px rgba(4,80,87,.12)!important;
}
body:not(.auth-page--login) .premium-selection-tray .button-ghost:hover,
body:not(.auth-page--login) .premium-selection-tray__bulk:hover{
  border-color:#b6dfe3!important;
  background:#d7f7f8!important;
  color:#043f47!important;
}
body:not(.auth-page--login) .premium-selection-tray__clear{
  background:rgba(255,255,255,.16)!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)!important;
}
body:not(.auth-page--login) .premium-selection-tray__clear:hover{
  background:rgba(255,255,255,.26)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .premium-selection-tray{
  border-color:rgba(96,232,234,.34)!important;
  background:linear-gradient(135deg,#086d77 0%,#078c95 48%,#0aa7ad 100%)!important;
  box-shadow:0 24px 64px rgba(0,0,0,.42),inset 0 1px 0 rgba(144,248,249,.18)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .premium-selection-tray .button-ghost,
html[data-theme="dark"] body:not(.auth-page--login) .premium-selection-tray__bulk{
  border-color:#48cfd3!important;
  background:#0d2c35!important;
  color:#8ff0f1!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .premium-selection-tray .button-ghost:hover,
html[data-theme="dark"] body:not(.auth-page--login) .premium-selection-tray__bulk:hover{
  border-color:#6ee8ea!important;
  background:#123b44!important;
  color:#dffbfc!important;
}

/* ========================================================================== */
/* 2026-09-17 UI fixes requested from production screenshots                  */
/* ========================================================================== */

/* Event status is semantic data: the global turquoise form skin must not
   flatten the individual status colors. Keep the same color language used by
   the calendar/event directory. */
body:not(.auth-page--login) select.status-select.status-select--in_progress{
  background:#d8f1ea!important;
  border-color:#7fb7a9!important;
  color:#163740!important;
}
body:not(.auth-page--login) select.status-select.status-select--offer{
  background:#dbe7f3!important;
  border-color:#97aec8!important;
  color:#163740!important;
}
body:not(.auth-page--login) select.status-select.status-select--offer_sent{
  background:#e7e0f4!important;
  border-color:#b5a3d0!important;
  color:#163740!important;
}
body:not(.auth-page--login) select.status-select.status-select--confirmed,
body:not(.auth-page--login) select.status-select.status-select--confirmed_update{
  background:#b7d39b!important;
  border-color:#7ea05c!important;
  color:#163740!important;
}
body:not(.auth-page--login) select.status-select.status-select--closed{
  background:#d7d7d7!important;
  border-color:#a8a8a8!important;
  color:#2b2b2b!important;
}
body:not(.auth-page--login) select.status-select.status-select--cancelled_no_realization,
body:not(.auth-page--login) select.status-select.status-select--cancelled_no_response,
body:not(.auth-page--login) select.status-select.status-select--cancelled_capacity,
body:not(.auth-page--login) select.status-select.status-select--cancelled_competition,
body:not(.auth-page--login) select.status-select.status-select--cancelled_budget,
body:not(.auth-page--login) select.status-select.status-select--cancelled_double_booking{
  background:#ec8b85!important;
  border-color:#cf5f58!important;
  color:#311313!important;
}
html[data-theme="dark"] body:not(.auth-page--login) select.status-select.status-select--in_progress{background:#3e3120!important;border-color:#6f5634!important;color:#f0c781!important}
html[data-theme="dark"] body:not(.auth-page--login) select.status-select.status-select--offer{background:#20394d!important;border-color:#365e7b!important;color:#acd0ee!important}
html[data-theme="dark"] body:not(.auth-page--login) select.status-select.status-select--offer_sent{background:#312846!important;border-color:#554572!important;color:#c2ade3!important}
html[data-theme="dark"] body:not(.auth-page--login) select.status-select.status-select--confirmed,
html[data-theme="dark"] body:not(.auth-page--login) select.status-select.status-select--confirmed_update{background:#203b30!important;border-color:#36614d!important;color:#9ad4b1!important}
html[data-theme="dark"] body:not(.auth-page--login) select.status-select.status-select--closed{background:#34312e!important;border-color:#5b5550!important;color:#d8d2cb!important}
html[data-theme="dark"] body:not(.auth-page--login) select.status-select[class*="status-select--cancelled_"]{background:#472725!important;border-color:#75403d!important;color:#f4aaa4!important}

/* Dashboard top: KPI cards were intentionally removed. The remaining primary
   action keeps its own compact row and does not leave four empty grid columns. */


/* Greeting: all three lines use Kaftan Serif and one shared rhythm. */
body:not(.auth-page--login) .content--dashboard .wc-home__welcome-copy{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:8px!important;
}
body:not(.auth-page--login) .content--dashboard .wc-home__greeting,
body:not(.auth-page--login) .content--dashboard .wc-home__welcome h1,
body:not(.auth-page--login) .content--dashboard .wc-home__slogan{
  font-family:'Kaftan Serif',Georgia,'Times New Roman',serif!important;
  font-weight:400!important;
}
body:not(.auth-page--login) .content--dashboard .wc-home__greeting{
  margin:0!important;
  line-height:1.08!important;
}
body:not(.auth-page--login) .content--dashboard .wc-home__welcome h1{
  margin:0!important;
  line-height:1.04!important;
  letter-spacing:.005em!important;
}
body:not(.auth-page--login) .content--dashboard .wc-home__slogan{
  margin:0!important;
  line-height:1.08!important;
}

/* Turquoise dashboard skin changed the quick-action cards to light surfaces,
   while the older rule still forced their labels to white. Keep text/arrow
   explicitly dark and readable on those light cards. */
body:not(.auth-page--login) .content--dashboard .wc-home-actions__grid .wc-home-action strong{
  color:#0d3440!important;
  text-shadow:none!important;
  opacity:1!important;
}
body:not(.auth-page--login) .content--dashboard .wc-home-actions__grid .wc-home-action::after{
  color:#078b93!important;
}

/* Header search: remove the inner focus rectangle/ring completely. The outer
   search control remains visible, but the actual input stays transparent. */
body:not(.auth-page--login) .page-header .app-global-search input[data-dashboard-search-input],
body:not(.auth-page--login) .page-header .app-global-search input[data-dashboard-search-input]:focus,
body:not(.auth-page--login) .page-header .app-global-search input[data-dashboard-search-input]:focus-visible,
body:not(.auth-page--login) .page-header .app-global-search input[data-dashboard-search-input]:active{
  appearance:none!important;
  -webkit-appearance:none!important;
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  outline:0!important;
  outline-offset:0!important;
  box-shadow:none!important;
  -webkit-box-shadow:none!important;
  transform:none!important;
  -webkit-tap-highlight-color:transparent!important;
  caret-color:#078b93!important;
}
body:not(.auth-page--login) .page-header .app-global-search:focus-within{
  border-color:#d4e7ea!important;
  box-shadow:0 7px 20px rgba(15,83,91,.055)!important;
  outline:0!important;
}

/* PWA/mobile calendar: time ranges may be wider than a narrow day cell. Let
   the complete value wrap/grow instead of clipping a quarter of the text. */
@media(max-width:820px){
  .calendar-v4-chip{
    min-height:34px!important;
    padding-top:4px!important;
    padding-bottom:4px!important;
    overflow:visible!important;
  }
  .calendar-v4-chip__copy,
  .calendar-v4-chip__meta{
    overflow:visible!important;
  }
  .calendar-v4-chip__meta{
    min-height:14px!important;
    height:auto!important;
    align-items:flex-start!important;
    line-height:1.15!important;
  }
  .calendar-v4-chip__time{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-height:14px!important;
    height:auto!important;
    padding:0!important;
    font-size:6px!important;
    line-height:1.15!important;
    letter-spacing:-.01em!important;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  .calendar-v4-event{
    padding-top:4px!important;
    overflow:hidden!important;
  }
  :where(.calendar-v4-timeline:not(.calendar-v4-timeline--week)) .calendar-v4-event__time{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-height:14px!important;
    padding:0!important;
    font-size:6px!important;
    line-height:1.15!important;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:anywhere!important;
  }
}

html[data-theme="dark"] body:not(.auth-page--login) .content--dashboard .wc-home-actions__grid .wc-home-action strong{
  color:#edf8fa!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .content--dashboard .wc-home-actions__grid .wc-home-action::after{
  color:#65e0e2!important;
}

/* Help navigation: remove the remaining legacy bronze accents. */
body:not(.auth-page--login) #eventform-sidebar .nav-help-summary-label>svg{
  stroke:#168b94!important;
}
body:not(.auth-page--login) #eventform-sidebar .nav-help-index-group{
  border-top-color:rgba(10,167,173,.14)!important;
}
body:not(.auth-page--login) #eventform-sidebar .nav-help-index-group>summary{
  color:#47727b!important;
}
body:not(.auth-page--login) #eventform-sidebar .nav-help-index-group>summary:hover,
body:not(.auth-page--login) #eventform-sidebar .nav-help-index-group[open]>summary{
  color:#07535d!important;
  background:rgba(10,167,173,.08)!important;
}
body:not(.auth-page--login) #eventform-sidebar .nav-help-index-group>summary>small{
  color:#087d86!important;
  background:rgba(10,167,173,.12)!important;
}
body:not(.auth-page--login) #eventform-sidebar .nav-help-index-chevron{
  color:#0a8992!important;
}
body:not(.auth-page--login) #eventform-sidebar .nav-group-items .nav-help-index-chapters .nav-help-chapter{
  color:#55717a!important;
}
body:not(.auth-page--login) #eventform-sidebar .nav-group-items .nav-help-index-chapters .nav-help-chapter:hover{
  color:#07535d!important;
  background:rgba(10,167,173,.08)!important;
}
body:not(.auth-page--login) #eventform-sidebar .nav-group-items .nav-help-index-chapters .nav-help-chapter.active{
  color:#07535d!important;
  background:linear-gradient(90deg,rgba(10,167,173,.17),rgba(10,167,173,.07))!important;
  box-shadow:inset 3px 0 0 #0aa7ad!important;
}
html[data-theme="dark"] body:not(.auth-page--login) #eventform-sidebar .nav-help-index-group>summary{
  color:#a9cbd0!important;
}
html[data-theme="dark"] body:not(.auth-page--login) #eventform-sidebar .nav-help-index-group>summary:hover,
html[data-theme="dark"] body:not(.auth-page--login) #eventform-sidebar .nav-help-index-group[open]>summary{
  color:#dffbfc!important;
  background:rgba(53,209,212,.10)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) #eventform-sidebar .nav-help-index-group>summary>small{
  color:#8ce6e8!important;
  background:rgba(53,209,212,.12)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) #eventform-sidebar .nav-help-index-chevron{color:#69d8db!important}

/* Tablet/mobile header: global controls come first, the page title is always
   the next row. Top-level page titles stay compact instead of dominating the UI. */
@media (max-width:1100px){
  body:not(.auth-page--login) .page-header{
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr)!important;
    grid-template-areas:
      "menu actions"
      "title title"!important;
    align-items:start!important;
    gap:10px 12px!important;
  }
  body:not(.auth-page--login) .page-header>.mobile-menu-toggle{
    grid-area:menu!important;
    align-self:start!important;
  }
  body:not(.auth-page--login) .page-header>.header-actions{
    grid-area:actions!important;
    grid-column:auto!important;
    width:100%!important;
    min-width:0!important;
    
    align-content:flex-start!important;
  }
  body:not(.auth-page--login) .page-header>.page-header__title-group{
    grid-area:title!important;
    width:100%!important;
    min-width:0!important;
  }
  body:not(.auth-page--login) .page-header--actions-only:not(.page-header--with-back){
    grid-template-areas:"menu actions"!important;
  }
  body:not(.auth-page--login) .page-header__title-group h1{
    font-size:16px!important;
    line-height:1.28!important;
    letter-spacing:0!important;
  }
  body:not(.auth-page--login) .page-header__title-group .eyebrow{
    margin-bottom:4px!important;
    font-size:10px!important;
    line-height:1.2!important;
  }
}

/* Calendar at the tablet/desktop transition: controls and grid fit the viewport
   instead of creating a horizontal page-like scrollbar. */
@media (max-width:1100px){
  body:not(.auth-page--login) .calendar-v4__period-wrap,
  body:not(.auth-page--login) .calendar-v4__period-nav{
    width:100%!important;
    min-width:0!important;
  }
  body:not(.auth-page--login) .calendar-v4__period-nav{
    display:flex!important;
    flex-wrap:wrap!important;
  }
  body:not(.auth-page--login) .calendar-v4__range-picker{
    order:20!important;
    flex:1 0 100%!important;
    width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto!important;
    align-items:end!important;
    gap:6px!important;
  }
  body:not(.auth-page--login) .calendar-v4__range-picker[hidden]{display:none!important}
  body:not(.auth-page--login) .calendar-v4__range-picker label,
  body:not(.auth-page--login) .calendar-v4__range-date-control{
    min-width:0!important;
    width:100%!important;
  }
  body:not(.auth-page--login) .calendar-v4__range-date-control>input[data-calendar-range-start],
  body:not(.auth-page--login) .calendar-v4__range-date-control>input[data-calendar-range-end]{
    width:100%!important;
    min-width:0!important;
    height:38px!important;
    min-height:38px!important;
  }
  body:not(.auth-page--login) .calendar-v4__range-picker .button{
    min-width:0!important;
    min-height:38px!important;
    height:38px!important;
    padding-inline:12px!important;
    white-space:nowrap!important;
  }
  body:not(.auth-page--login) .calendar-v4__surface,
  body:not(.auth-page--login) .calendar-v4__grid,
  body:not(.auth-page--login) .calendar-v4-month{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  body:not(.auth-page--login) .calendar-v4__surface{overflow:visible!important}
  body:not(.auth-page--login) .calendar-v4__grid{overflow:visible!important}
  body:not(.auth-page--login) .calendar-v4-month{padding-left:4px!important;padding-right:4px!important}
  /* Geometrii Týden/Den vlastní app-calendar.css + runtime výpočet v app.js.
     Theme ji už nesmí přepsat na sedm sloupců 1fr, protože na telefonu by se
     celý týden znovu vmáčkl do šířky viewportu místo vodorovného scrollu. */
}
@media (max-width:620px){
  body:not(.auth-page--login) .calendar-v4__range-picker{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
  body:not(.auth-page--login) .calendar-v4__range-picker .button{width:100%!important}
}
@media (max-width:430px){
  body:not(.auth-page--login) .calendar-v4__range-picker{grid-template-columns:minmax(0,1fr)!important}
}

/* Contacts: on narrow screens keep the action column pinned to the right so
   Edit/Delete is fully reachable even while the data columns scroll. */
@media (max-width:720px){
  body:not(.auth-page--login) .content--contacts .contact-directory .contacts-table .actions-col{
    position:sticky!important;
    right:0!important;
    z-index:4!important;
    width:132px!important;
    min-width:132px!important;
    max-width:132px!important;
    padding-left:8px!important;
    padding-right:8px!important;
    background:var(--paper)!important;
    box-shadow:-8px 0 14px rgba(20,83,91,.06)!important;
  }
  body:not(.auth-page--login) .content--contacts .contact-directory .contacts-table thead .actions-col{z-index:6!important}
  body:not(.auth-page--login) .content--contacts .contact-directory .contact-actions{
    width:100%!important;
    min-width:0!important;
    align-items:stretch!important;
  }
  body:not(.auth-page--login) .content--contacts .contact-directory .contact-actions .button,
  body:not(.auth-page--login) .content--contacts .contact-directory .contact-actions form{
    width:100%!important;
    max-width:100%!important;
  }
}
html[data-theme="dark"] body:not(.auth-page--login) .content--contacts .contact-directory .contacts-table .actions-col{
  background:#0f2731!important;
  box-shadow:-8px 0 14px rgba(0,0,0,.18)!important;
}


/* ========================================================================== */
/* 2026-09-18: top action + compact day/week calendar timeline                */
/* ========================================================================== */
/* Dashboard uses the same global New event action as every other page. */
body:not(.auth-page--login) .content--dashboard>.page-header--actions-only .header-actions>a.button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* Day/week timelines render only occupied hours. Let their workspace shrink to
   the actual content instead of reserving a fixed 650px desktop block. */
body:not(.auth-page--login) .calendar-v4[data-calendar-rendered-view="day"] .calendar-v4__workspace,
body:not(.auth-page--login) .calendar-v4[data-calendar-rendered-view="week"] .calendar-v4__workspace,
body:not(.auth-page--login) .calendar-v4[data-calendar-rendered-view="day"] .calendar-v4-detail,
body:not(.auth-page--login) .calendar-v4[data-calendar-rendered-view="week"] .calendar-v4-detail{
  min-height:0!important;
}

/* Desktop keeps the unobtrusive hidden scrollbar. On touch/mobile the
   horizontal calendar scrollbar remains available so the user can see that
   the week continues beyond the viewport and can swipe it sideways. */
@media (min-width:821px){
  body:not(.auth-page--login) .calendar-v4__grid{
    scrollbar-width:none!important;
    scrollbar-gutter:auto!important;
  }
  body:not(.auth-page--login) .calendar-v4__grid::-webkit-scrollbar{
    width:0!important;
    height:0!important;
    display:none!important;
  }
}
/* Date surfaces accept ordinary panning/pinch gestures, but mobile browsers
   should not consume the requested double-tap as page zoom. */
body:not(.auth-page--login) .calendar-v4 [data-calendar-date]{
  touch-action:manipulation;
}

/* 2026-09-18: inventory controls use the same compact corner radius as the
   rest of the refreshed UI; no oversized pill-shaped counters/cards. */
.itinerary-create-form .switch-card{
  min-height:48px;
  padding:7px 9px;
  gap:7px;
  border-radius:8px!important;
  align-items:center;
}
@media (min-width:1101px){
  .itinerary-create-form{
    grid-template-columns:minmax(150px,.75fr) minmax(260px,1.5fr) minmax(150px,.7fr) minmax(150px,.7fr) minmax(185px,220px) auto;
  }
}
.itinerary-create-form .switch-card input{
  margin:0;
  width:18px;
  height:18px;
  flex:0 0 18px;
}
.itinerary-create-form .switch-card span{gap:1px}
.itinerary-create-form .switch-card strong{font-size:calc(.82rem + 1px);line-height:1.25}
.itinerary-create-form .switch-card small{font-size:calc(.66rem + 1px);line-height:1.3}
.itinerary-order-panel .badge,
.itinerary-category-panel .badge,
.itinerary-bulk-toolbar .badge,
.itinerary-history-panel .badge{
  min-height:24px;
  height:auto;
  padding:3px 7px!important;
  border-radius:8px!important;
  line-height:1.15;
}
.itinerary-bulk-toolbar .badge,
.itinerary-category-actions .badge,
.itinerary-history-head-actions .badge{
  white-space:nowrap;
}
.itinerary-history-head-actions .badge{
  max-width:none;
  font-size:calc(.70rem + 1px);
  text-align:center;
  justify-content:center;
}
.itinerary-item-filter-panel .event-filter-count strong{
  border-radius:8px!important;
}
.itinerary-history-empty{
  border-radius:8px!important;
}

/* On a narrow day view the right agenda is the information the Agenda button
   promises. Put it before the time grid when stacking is unavoidable, so it is
   immediately visible instead of appearing only after a long timeline. */
.calendar-v4.is-agenda-stacked[data-calendar-rendered-view="day"] .calendar-v4-detail:not(.is-hidden){
  order:-1;
  border-bottom:1px solid var(--cal-line)!important;
}
.calendar-v4.is-agenda-stacked[data-calendar-rendered-view="day"] .calendar-v4__surface{
  order:0;
  border-bottom:0!important;
}

/* 2026-09-19: keep top-level application page titles compact on desktop.
   Tablet/mobile already use the intentionally small 16px heading rule. */
@media (min-width:1101px){
  body:not(.auth-page--login) .page-header__title-group h1{
    font-size:clamp(1.75rem,2vw,2.10rem)!important;
    line-height:1.12!important;
  }
}

/* 2026-09-19: spolehlivý PDF náhled v PWA / mobilu.
   Dialog je grid (hlavička + skutečné volné místo pro dokument). Desktop dál
   používá nativní iframe; mobilní iOS/Android používají vlastní canvas viewer. */
.team-calendar-pdf-preview-dialog[open],
.todo-document-dialog[open]{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
}
.team-calendar-pdf-preview-dialog__head>div:first-child,
.todo-document-dialog__header>div:first-child{
  min-width:0;
  flex:1 1 auto;
}
.team-calendar-pdf-preview-dialog iframe,
.calendar-v4-pdf-preview-dialog iframe,
.todo-document-dialog iframe{
  width:100%;
  min-width:0;
  min-height:0;
  height:100%;
  max-height:100%;
  border:0;
  background:#fff;
}
.eventform-pdf-preview-tools{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  margin-left:auto;
}
.eventform-pdf-preview-tools .button{
  min-height:34px;
  height:34px;
  margin:0;
  white-space:nowrap;
}
.eventform-pdf-preview-tools__zoom{
  width:36px;
  min-width:36px;
  padding:0;
  font-size:18px;
  line-height:1;
}
.eventform-pdf-preview-tools__zoom-label{
  min-width:64px;
  padding-inline:9px;
  font-variant-numeric:tabular-nums;
}
.eventform-pdf-preview-tools__open{
  text-decoration:none;
}
@media (max-width:1050px){
  .eventform-pdf-preview-tools__open{padding-inline:9px}
  .team-calendar-pdf-preview-dialog__head h3,
  .todo-document-dialog__header h3{max-width:46vw}
}

/* PDF.js canvas je na desktopu aktivní uvnitř stejného dialogu jako dosavadní
   náhled. Díky tomu lze zoomovat kolečkem a zvětšený dokument táhnout myší;
   nativní iframe zůstává pouze jako bezpečný fallback při chybě PDF.js. */
@media (min-width:1051px) and (pointer:fine){
  dialog.eventform-pdf-canvas-viewer[open]{
    display:grid;
    grid-template-rows:auto minmax(0,1fr);
  }
  .eventform-pdf-canvas-viewer iframe{display:none!important}
  .eventform-pdf-canvas-viewer .todo-document-dialog__body{
    min-width:0;
    min-height:0;
    overflow:hidden;
  }
  .eventform-pdf-canvas-viewer .eventform-mobile-pdf-renderer{
    position:relative;
    display:block;
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
    touch-action:pan-x pan-y;
    background:#d9dcdf;
    box-sizing:border-box;
    cursor:grab;
    -webkit-overflow-scrolling:touch;
  }
  .eventform-pdf-canvas-viewer .eventform-mobile-pdf-renderer.is-dragging{
    cursor:grabbing;
    user-select:none;
  }
  .eventform-pdf-canvas-viewer > .eventform-mobile-pdf-renderer{
    grid-row:2;
    grid-column:1;
  }
  .eventform-pdf-canvas-viewer .eventform-mobile-pdf-renderer__pages{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    width:max-content;
    min-width:100%;
    min-height:100%;
    padding:12px;
    box-sizing:border-box;
  }
  .eventform-pdf-canvas-viewer .eventform-mobile-pdf-page{
    flex:0 0 auto;
    margin:0 auto;
    background:#fff;
    box-shadow:0 1px 8px rgba(0,0,0,.18);
    overflow:hidden;
  }
  .eventform-pdf-canvas-viewer .eventform-mobile-pdf-page canvas{
    display:block;
    max-width:none;
    height:auto;
    background:#fff;
  }
  .eventform-pdf-canvas-viewer .eventform-mobile-pdf-renderer__status{
    position:absolute;
    z-index:3;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
    padding:24px;
    text-align:center;
    background:rgba(245,247,248,.94);
    color:var(--ink,#0d2a36);
    box-sizing:border-box;
  }
  .eventform-pdf-canvas-viewer .eventform-mobile-pdf-renderer__status[hidden]{display:none!important}
  .eventform-pdf-canvas-viewer .eventform-mobile-pdf-renderer__status .button{margin:0!important}
  .eventform-pdf-canvas-viewer .eventform-mobile-pdf-controls{display:none!important}
}

/* 2026-09-19: mobilní PDF viewer pro iOS/Android/PWA.
   Nativní PDF iframe je na mobilu skrytý a stránky se vykreslují do canvasů
   přes PDF.js. Výchozí stav je fit-to-width; ovladače +/- a dvouprstové gesto
   umožní přiblížení bez odchodu z agendy. */
.eventform-pdf-preview-tools[hidden]{display:none!important}
.eventform-mobile-pdf-renderer[hidden]{display:none!important}
/* Při 100% zoomu je PDF vždy Fit-to-width. Zabraňujeme i několikapixelovému
   horizontálnímu overflow způsobenému zaokrouhlením canvasu; nad 100 % se
   vodorovné posouvání znovu aktivuje odebráním třídy is-fit-width v JS. */
.eventform-mobile-pdf-renderer.is-fit-width{overflow-x:hidden!important}
.eventform-mobile-pdf-renderer.is-fit-width .eventform-mobile-pdf-renderer__pages{
  width:100%!important;
  min-width:0!important;
  align-items:center!important;
}
@media (max-width:1050px), (pointer:coarse){
  dialog.eventform-mobile-pdf-viewer{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100dvh!important;
    max-width:100vw!important;
    max-height:100dvh!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    background:#fff!important;
    zoom:1!important;
  }
  dialog.eventform-mobile-pdf-viewer[open]{
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    grid-template-columns:minmax(0,1fr)!important;
  }
  .eventform-mobile-pdf-viewer .team-calendar-pdf-preview-dialog__head,
  .eventform-mobile-pdf-viewer .todo-document-dialog__header{
    width:100%!important;
    min-width:0!important;
    min-height:54px!important;
    padding-top:max(8px,env(safe-area-inset-top))!important;
    padding-right:max(8px,env(safe-area-inset-right))!important;
    padding-bottom:8px!important;
    padding-left:max(10px,env(safe-area-inset-left))!important;
    gap:8px!important;
    background:var(--paper,#fff)!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  .eventform-mobile-pdf-viewer .team-calendar-pdf-preview-dialog__head>div:first-child,
  .eventform-mobile-pdf-viewer .todo-document-dialog__header>div:first-child{
    min-width:0!important;
    max-width:calc(100% - 82px)!important;
    flex:1 1 auto!important;
    overflow:hidden!important;
  }
  .eventform-mobile-pdf-viewer .team-calendar-pdf-preview-dialog__head .eyebrow,
  .eventform-mobile-pdf-viewer .todo-document-dialog__header .eyebrow{
    display:none!important;
  }
  .eventform-mobile-pdf-viewer .team-calendar-pdf-preview-dialog__head h3,
  .eventform-mobile-pdf-viewer .todo-document-dialog__header h3{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    font-size:15px!important;
    line-height:1.2!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .eventform-mobile-pdf-viewer__back{
    flex:0 0 74px!important;
    width:74px!important;
    min-width:74px!important;
    max-width:74px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 8px!important;
    margin:0!important;
    border-radius:8px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    font-size:14px!important;
    line-height:1!important;
    text-align:center!important;
  }
  .eventform-mobile-pdf-viewer iframe{
    display:none!important;
  }
  .eventform-mobile-pdf-viewer .todo-document-dialog__body{
    min-width:0!important;
    min-height:0!important;
    width:100%!important;
    height:100%!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
  }
  .eventform-mobile-pdf-renderer{
    position:relative!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-x pan-y!important;
    background:#d9dcdf!important;
    box-sizing:border-box!important;
  }
  dialog.eventform-mobile-pdf-viewer > .eventform-mobile-pdf-renderer{
    grid-row:2!important;
    grid-column:1!important;
  }
  .eventform-mobile-pdf-renderer__pages{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:12px!important;
    width:max-content!important;
    min-width:100%!important;
    min-height:100%!important;
    padding:12px!important;
    box-sizing:border-box!important;
    transition:none!important;
  }
  .eventform-mobile-pdf-page{
    flex:0 0 auto!important;
    margin:0 auto!important;
    background:#fff!important;
    box-shadow:0 1px 8px rgba(0,0,0,.18)!important;
    overflow:hidden!important;
  }
  .eventform-mobile-pdf-page canvas{
    display:block!important;
    max-width:none!important;
    height:auto;
    background:#fff!important;
  }
  .eventform-mobile-pdf-renderer__status{
    position:absolute!important;
    z-index:3!important;
    inset:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    padding:24px!important;
    text-align:center!important;
    background:rgba(245,247,248,.94)!important;
    color:var(--ink,#0d2a36)!important;
    box-sizing:border-box!important;
  }
  .eventform-mobile-pdf-renderer__status[hidden]{display:none!important}
  .eventform-mobile-pdf-renderer__status .button{margin:0!important}
  .eventform-mobile-pdf-controls{
    position:fixed!important;
    z-index:2147483000!important;
    right:max(10px,env(safe-area-inset-right))!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    display:flex!important;
    align-items:center!important;
    gap:4px!important;
    padding:4px!important;
    border:1px solid rgba(14,127,137,.20)!important;
    border-radius:9px!important;
    background:rgba(255,255,255,.94)!important;
    box-shadow:0 4px 18px rgba(0,0,0,.16)!important;
    backdrop-filter:blur(8px)!important;
  }
  .eventform-mobile-pdf-controls__button,
  .eventform-mobile-pdf-controls__label{
    appearance:none!important;
    border:0!important;
    border-radius:6px!important;
    background:transparent!important;
    color:var(--ink,#0d2a36)!important;
    height:38px!important;
    min-height:38px!important;
    margin:0!important;
    padding:0!important;
    font:inherit!important;
    line-height:1!important;
    text-align:center!important;
  }
  .eventform-mobile-pdf-controls__button{
    width:38px!important;
    min-width:38px!important;
    font-size:21px!important;
  }
  .eventform-mobile-pdf-controls__label{
    min-width:58px!important;
    padding:0 6px!important;
    font-size:12px!important;
    font-variant-numeric:tabular-nums!important;
  }
  .eventform-mobile-pdf-controls__button:disabled{opacity:.35!important}
}

/* ========================================================================== */
/* 2026-09-19: mobile-first action sheet + compact application header         */
/* ========================================================================== */
.calendar-v4__range-actions,
.calendar-v4__mobile-filter-actions{display:contents}
.app-mobile-page-actions,
.app-mobile-search-trigger,
.app-mobile-more,
.calendar-v4__mobile-view-select{display:none}
.page-header .app-mobile-page-actions[hidden]{display:none!important}
.mobile-action-sheet[hidden]{display:none!important}
.mobile-action-sheet{
  position:fixed;
  z-index:2147482500;
  inset:0;
  display:grid;
  place-items:center;
  padding:16px;
}
.mobile-action-sheet__backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  background:rgba(2,28,35,.48);
  backdrop-filter:blur(4px);
}
.mobile-action-sheet__panel{
  position:relative;
  z-index:1;
  width:min(720px,calc(100vw - 32px));
  max-height:min(86dvh,850px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  overflow:hidden;
  border:1px solid #cfe5e8;
  border-radius:18px;
  background:var(--paper,#fff);
  color:var(--ink,#102f39);
  box-shadow:0 28px 80px rgba(3,42,50,.28);
}
.mobile-action-sheet__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:64px;
  padding:12px 16px;
  border-bottom:1px solid var(--line,#d9e8ea);
  background:var(--paper,#fff);
}
.mobile-action-sheet__header small{
  display:block;
  margin:0 0 2px;
  color:var(--accent,#0aa7ad);
  font-size:10px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.mobile-action-sheet__header h2{margin:0;font-size:20px;line-height:1.1}
.mobile-action-sheet__close{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid var(--line,#d9e8ea);
  border-radius:9px;
  background:var(--paper-soft,#f6fbfc);
  color:var(--ink,#102f39);
  font:inherit;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.mobile-action-sheet__body{
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding:14px;
}
.mobile-action-sheet__group{
  display:grid;
  gap:10px;
  padding:14px 0;
  border-bottom:1px solid var(--line,#d9e8ea);
}
.mobile-action-sheet__group:first-child{padding-top:0}
.mobile-action-sheet__group:last-child{padding-bottom:0;border-bottom:0}
.mobile-action-sheet__group-title{
  margin:0;
  color:var(--muted,#67808a);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.mobile-action-sheet__group-content{min-width:0}
html.mobile-action-sheet-open,
body.mobile-action-sheet-open{overflow:hidden!important;overscroll-behavior:none!important}

@media(max-width:1100px){
  .app-mobile-page-actions{
    display:inline-flex;
    min-height:40px!important;
    height:40px!important;
    padding:0 12px!important;
    border-radius:9px!important;
    white-space:nowrap;
    box-shadow:none!important;
    order:30;
  }
  .app-mobile-page-actions__icon{font-size:18px;line-height:1}

  /* The global search is a single icon until the user actually needs it. */
  .page-header .app-mobile-search-trigger{
    order:5;
    width:40px;
    min-width:40px;
    height:40px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid #cfe3e7;
    border-radius:9px;
    background:rgba(255,255,255,.92);
    color:#155664;
    cursor:pointer;
  }
  .page-header .app-mobile-search-trigger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
  .page-header .app-global-search{display:none!important;order:4!important}
  .page-header.is-mobile-search-open>.header-actions{
    grid-column:1/-1!important;
    width:100%!important;
  }
  .page-header.is-mobile-search-open .app-global-search{
    display:flex!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
  }
  .page-header.is-mobile-search-open .app-global-search input{min-width:0!important}
  .page-header.is-mobile-search-open .app-mobile-search-trigger{color:#087f89;background:#e8f8f9}

  /* Less common global actions live under one overflow control. */
  .page-header .app-mobile-more{
    position:relative;
    order:40;
    flex:0 0 auto;
  }
  .page-header .app-mobile-more[hidden]{display:none!important}
  .page-header .app-mobile-more>summary{
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    padding:0;
    list-style:none;
    border:1px solid #cfe3e7;
    border-radius:9px;
    background:rgba(255,255,255,.92);
    color:#155664;
    font-size:18px;
    font-weight:800;
    letter-spacing:1px;
    cursor:pointer;
  }
  .page-header .app-mobile-more>summary::-webkit-details-marker{display:none}
  .page-header .app-mobile-more[open]>summary{border-color:#76cdd1;background:#eaf9fa;color:#087d86}
  .app-mobile-more__menu{
    position:absolute;
    z-index:500;
    top:calc(100% + 7px);
    right:0;
    width:min(270px,calc(100vw - 28px));
    display:grid;
    gap:7px;
    padding:9px;
    border:1px solid #cfe3e7;
    border-radius:12px;
    background:var(--paper,#fff);
    box-shadow:0 18px 48px rgba(4,45,54,.20);
  }
  .app-mobile-more__menu>.app-changelog-top-link,
  .app-mobile-more__menu>.pwa-header-install,
  .app-mobile-more__menu>.language-switch,
  .app-mobile-more__menu>.wc-dashboard-header-date{width:100%!important;max-width:none!important;margin:0!important}
  .app-mobile-more__menu>.app-changelog-top-link{
    min-height:40px;
    display:flex!important;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    padding:8px 10px;
    border:1px solid var(--line,#d9e8ea);
    border-radius:9px;
  }
  .app-mobile-more__menu>.app-changelog-top-link::after{content:"Historie změn";font-size:13px;font-weight:700}
  .app-mobile-more__menu>.language-switch .language-switch__button{width:100%!important;justify-content:flex-start!important;border-radius:9px!important}
  .app-mobile-more__menu>.language-switch .language-switch__menu{
    position:static!important;
    width:100%!important;
    margin-top:6px!important;
    box-shadow:none!important;
  }
  .app-mobile-more__menu>.wc-dashboard-header-date{padding:8px 10px!important;border:1px solid var(--line,#d9e8ea);border-radius:9px!important}
  .page-header .app-todo-bell{order:10}
  .page-header .header-actions>a.button{order:50}

  /* Action-sheet content is the real live control, not a clone. This keeps all
     existing forms, listeners and calendar preference logic untouched. */
  .mobile-action-sheet [data-mobile-actions]{width:100%!important;max-width:none!important;margin:0!important}
  .mobile-action-sheet .panel[data-mobile-actions]{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  .mobile-action-sheet .calendar-v4__range-actions,
  .mobile-action-sheet .calendar-v4__mobile-filter-actions{display:grid!important;gap:9px!important}
  .mobile-action-sheet .calendar-v4__range-toggle{width:100%!important;min-height:42px!important}
  .mobile-action-sheet .calendar-v4__range-picker{
    position:static!important;
    order:0!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
    padding:10px!important;
    border-radius:10px!important;
    box-shadow:none!important;
  }
  .mobile-action-sheet .calendar-v4__range-picker[hidden]{display:none!important}
  .mobile-action-sheet .calendar-v4__range-picker label{width:100%!important;min-width:0!important}
  .mobile-action-sheet .calendar-v4__range-date-control,
  .mobile-action-sheet .calendar-v4__range-picker input[data-calendar-range-start],
  .mobile-action-sheet .calendar-v4__range-picker input[data-calendar-range-end]{width:100%!important;min-width:0!important}
  .mobile-action-sheet .calendar-v4__range-picker .button{width:100%!important;min-height:40px!important;height:40px!important}
  .mobile-action-sheet .calendar-v4__compact-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .mobile-action-sheet .calendar-v4__compact-actions>.button,
  .mobile-action-sheet .calendar-v4__compact-actions>a.button,
  .mobile-action-sheet .calendar-event-type-manager,
  .mobile-action-sheet .calendar-event-type-manager>summary{width:100%!important;min-width:0!important}
  .mobile-action-sheet .calendar-v4-status-filter--groups{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
  }
  .mobile-action-sheet .calendar-v4-filter-all,
  .mobile-action-sheet .calendar-v4-filter-group,
  .mobile-action-sheet .calendar-v4-filter-group__summary{width:100%!important;min-width:0!important}
  .mobile-action-sheet .calendar-v4-filter-group{position:relative!important}
  .mobile-action-sheet .calendar-v4-filter-group__panel,
  .mobile-action-sheet .calendar-v4-filter-group:last-child .calendar-v4-filter-group__panel{
    position:static!important;
    width:100%!important;
    max-width:none!important;
    max-height:260px!important;
    margin-top:6px!important;
    box-shadow:none!important;
  }
  .mobile-action-sheet .calendar-v4__reset{width:100%!important;justify-self:stretch!important}

  .mobile-action-sheet .event-filter-builder-panel,
  .mobile-action-sheet .event-directory__timeline-toolbar,
  .mobile-action-sheet .todo-filter-form,
  .mobile-action-sheet .service-desk-filters,
  .mobile-action-sheet .document-library-filter{width:100%!important;min-width:0!important}
  .mobile-action-sheet .event-filter-presets,
  .mobile-action-sheet .event-filter-builder__body,
  .mobile-action-sheet .event-directory__timeline-toolbar,
  .mobile-action-sheet .event-directory__timeline-actions,
  .mobile-action-sheet .event-directory__timeline-settings,
  .mobile-action-sheet .todo-filter-form .form-grid,
  .mobile-action-sheet .service-desk-filters,
  .mobile-action-sheet .document-library-filter{
    grid-template-columns:1fr!important;
  }
  .mobile-action-sheet .event-filter-presets,
  .mobile-action-sheet .event-directory__timeline-toolbar{display:grid!important;gap:12px!important}
  .mobile-action-sheet .event-filter-presets__saved,
  .mobile-action-sheet .event-filter-presets__save,
  .mobile-action-sheet .event-filter-builder__controls,
  .mobile-action-sheet .event-directory__timeline-actions,
  .mobile-action-sheet .event-directory__timeline-settings,
  .mobile-action-sheet .toolbar-actions,
  .mobile-action-sheet .service-desk-filter-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .mobile-action-sheet .toolbar-actions .button,
  .mobile-action-sheet .toolbar-actions a.button,
  .mobile-action-sheet .service-desk-filter-actions .button,
  .mobile-action-sheet .service-desk-filter-actions a.button{width:100%!important}
  .mobile-action-sheet .document-library-filter>button,
  .mobile-action-sheet .document-library-filter>a.button{width:100%!important}

  /* Calendar search and the most frequent view switch remain directly visible. */
  .calendar-v4__filters{grid-template-columns:1fr!important}
  .calendar-v4__filters>.calendar-v4-search{width:100%!important;min-width:0!important}
  .calendar-v4__hero-actions{width:100%!important}
}

@media(max-width:620px){
  .mobile-action-sheet{place-items:end center;padding:0}
  .mobile-action-sheet__panel{
    width:100vw;
    max-width:100vw;
    max-height:90dvh;
    border-right:0;
    border-bottom:0;
    border-left:0;
    border-radius:18px 18px 0 0;
    padding-bottom:env(safe-area-inset-bottom);
  }
  .mobile-action-sheet__header{padding-top:12px;padding-right:max(14px,env(safe-area-inset-right));padding-left:max(14px,env(safe-area-inset-left))}
  .mobile-action-sheet__body{padding-right:max(12px,env(safe-area-inset-right));padding-left:max(12px,env(safe-area-inset-left))}
  .mobile-action-sheet .calendar-v4__range-picker,
  .mobile-action-sheet .calendar-v4__compact-actions,
  .mobile-action-sheet .calendar-v4-status-filter--groups,
  .mobile-action-sheet .event-filter-presets__saved,
  .mobile-action-sheet .event-filter-presets__save,
  .mobile-action-sheet .event-filter-builder__controls,
  .mobile-action-sheet .event-directory__timeline-actions,
  .mobile-action-sheet .event-directory__timeline-settings,
  .mobile-action-sheet .toolbar-actions,
  .mobile-action-sheet .service-desk-filter-actions{grid-template-columns:1fr!important}

  /* Very small phones use one compact calendar view selector instead of four
     neighboring buttons. */
  .calendar-v4__views{display:none!important}
  .calendar-v4__mobile-view-select{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:8px;
    width:100%;
    margin:0;
  }
  .calendar-v4__mobile-view-select>span{color:var(--cal-muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
  .calendar-v4__mobile-view-select select{
    width:100%;
    min-height:40px;
    padding:7px 34px 7px 10px!important;
    border:1px solid var(--cal-line)!important;
    border-radius:9px!important;
    background:var(--cal-panel)!important;
    color:var(--cal-ink)!important;
  }
  .page-header>.header-actions{gap:7px!important;flex-wrap:nowrap!important}
  .page-header .app-mobile-page-actions{padding-inline:10px!important}
  .page-header .header-actions>a.button{min-height:40px!important;height:40px!important;padding:0 10px!important;border-radius:9px!important;font-size:12px!important}
}

html[data-theme="dark"] .mobile-action-sheet__panel,
html[data-theme="dark"] .mobile-action-sheet__header,
html[data-theme="dark"] .app-mobile-more__menu{background:#102833!important;color:#eaf9fa!important;border-color:#294a55!important}
html[data-theme="dark"] .page-header .app-mobile-search-trigger,
html[data-theme="dark"] .page-header .app-mobile-more>summary{background:#17333e!important;color:#dff9fa!important;border-color:#31515b!important}

@media(max-width:1100px){
  .mobile-action-sheet .contact-filter-panel,
  .mobile-action-sheet .itinerary-item-filter-panel,
  .mobile-action-sheet .analytics-filter-panel{padding:0!important}
  .mobile-action-sheet .inline-actions[data-mobile-actions],
  .mobile-action-sheet .itinerary-history-filter,
  .mobile-action-sheet .recipe-list-filter,
  .mobile-action-sheet .help-search{
    width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .mobile-action-sheet .inline-actions[data-mobile-actions]>.button,
  .mobile-action-sheet .inline-actions[data-mobile-actions]>a.button,
  .mobile-action-sheet .recipe-list-filter .button,
  .mobile-action-sheet .help-search .button,
  .mobile-action-sheet .itinerary-history-filter .button,
  .mobile-action-sheet .itinerary-history-filter a.button{width:100%!important}
  .mobile-action-sheet .itinerary-history-filter-actions,
  .mobile-action-sheet .recipe-list-filter__actions,
  .mobile-action-sheet .help-search .filter-actions,
  .mobile-action-sheet .analytics-report-period,
  .mobile-action-sheet .analytics-export-builder,
  .mobile-action-sheet .analytics-export-head,
  .mobile-action-sheet .analytics-filter-actions{
    width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
  }
  .mobile-action-sheet .event-filter-builder__rule{
    grid-template-columns:minmax(0,1fr)!important;
    gap:7px!important;
  }
  .mobile-action-sheet .event-filter-builder__remove{justify-self:end!important}
}

/* ========================================================================== */
/* 2026-10-04: touch calendar scrolling                                       */
/* ========================================================================== */
/* Touch layouts stay content-driven vertically. Phones up to 820 px use the
   dedicated mobile schedule scroller from app-calendar.css; wider touch
   tablets keep the original grid-based horizontal scrolling. */
@media (max-width:1100px) and (hover:none), (max-width:1100px) and (pointer:coarse){
  body:not(.auth-page--login) .calendar-v4__workspace,
  body:not(.auth-page--login) .calendar-v4__surface,
  body:not(.auth-page--login) .calendar-v4__grid{
    min-height:0!important;
    max-height:none!important;
  }
  body:not(.auth-page--login) .calendar-v4__surface{
    height:auto!important;
    overflow:visible!important;
  }
  body:not(.auth-page--login) .calendar-v4__grid{height:auto!important}
  body:not(.auth-page--login) .calendar-v4-timeline,
  body:not(.auth-page--login) .calendar-v4-timeline-shell,
  body:not(.auth-page--login) .calendar-v4-timeline__body,
  body:not(.auth-page--login) .calendar-v4-timeline__days{
    overflow-y:visible!important;
    max-height:none!important;
  }
}
@media (min-width:821px) and (max-width:1100px) and (hover:none), (min-width:821px) and (max-width:1100px) and (pointer:coarse){
  body:not(.auth-page--login) .calendar-v4__grid{
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;
    overscroll-behavior-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-x pan-y!important;
  }
}

/* The old global-search rule has higher selector specificity than the compact
   header rule. Repeat the mobile state with matching specificity so the full
   search field really collapses to its 40px search button. */
@media (max-width:1100px){
  body:not(.auth-page--login) .page-header:not(.is-mobile-search-open) .app-global-search{
    display:none!important;
  }
  body:not(.auth-page--login) .page-header.is-mobile-search-open .app-global-search{
    display:grid!important;
    width:100%!important;
    max-width:none!important;
    flex:1 1 100%!important;
  }
}

/* Phones: global controls get their own compact first row; page actions get a
   full-width second row instead of being squeezed into unreadable slivers. */
@media (max-width:620px){
  
  body:not(.auth-page--login) .page-header .app-mobile-search-trigger{
    order:5!important;
    flex:0 0 40px!important;
  }
  body:not(.auth-page--login) .page-header .app-todo-bell{
    order:10!important;
    flex:0 0 40px!important;
  }
  body:not(.auth-page--login) .page-header .app-mobile-more{
    order:15!important;
    flex:0 0 40px!important;
  }
  body:not(.auth-page--login) .page-header .app-mobile-page-actions{
    order:30!important;
    
    
    
    
    
    
    
    
    
  }
  body:not(.auth-page--login) .page-header>.header-actions>a.button{
    order:31!important;
    
    
    
    
    
    
    
    
    
    
    
  }
  
  
}

/* Extremely narrow devices keep the same tap targets but let the two page
   actions stack, avoiding text wrapping or accidental overlap. */
@media (max-width:390px){
  body:not(.auth-page--login) .page-header .app-mobile-page-actions,
  body:not(.auth-page--login) .page-header>.header-actions>a.button{
    flex-basis:100%!important;
    width:100%!important;
  }
}


/* ========================================================================== */
/* 2026-09-19 v19: one-row mobile header + content-driven month week heights  */
/* ========================================================================== */
@media (max-width:1100px){
  /* Secondary page actions now live in the same top control row, before the
     notification and changelog buttons. This removes the separate two-line
     action block from phones/tablets without changing any action handlers. */
  body:not(.auth-page--login) .page-header>.header-actions{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:5px!important;
    overflow:visible!important;
  }
  body:not(.auth-page--login) .page-header .app-mobile-search-trigger{order:5!important}
  body:not(.auth-page--login) .page-header .app-mobile-page-actions{order:7!important}
  body:not(.auth-page--login) .page-header>.header-actions>a.button{order:8!important}
  body:not(.auth-page--login) .page-header .app-todo-bell{order:9!important}
  body:not(.auth-page--login) .page-header .app-changelog-top-link{order:10!important}
  body:not(.auth-page--login) .page-header .app-mobile-more{order:11!important}

  /* Counters "V období / Dnes" were informational only and are intentionally
     removed from the calendar views; keep a defensive rule for cached markup. */
  body:not(.auth-page--login) .calendar-v4__metrics{display:none!important}
}

@media (max-width:620px){
  body:not(.auth-page--login) .page-header{
    grid-template-columns:40px minmax(0,1fr)!important;
    gap:8px 8px!important;
  }
  body:not(.auth-page--login) .page-header>.header-actions{
    
    min-height:36px!important;
  }
  body:not(.auth-page--login) .page-header .app-mobile-search-trigger,
  body:not(.auth-page--login) .page-header .app-todo-bell__button,
  body:not(.auth-page--login) .page-header .app-changelog-top-link,
  body:not(.auth-page--login) .page-header .app-mobile-more>summary{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    border-radius:8px!important;
  }
  body:not(.auth-page--login) .page-header .app-mobile-search-trigger svg,
  body:not(.auth-page--login) .page-header .app-todo-bell__button svg,
  body:not(.auth-page--login) .page-header .app-changelog-top-link svg{
    width:16px!important;
    height:16px!important;
  }
  body:not(.auth-page--login) .page-header .app-mobile-page-actions{
    
    
    
    
    height:34px!important;
    min-height:34px!important;
    
    border-radius:8px!important;
    justify-content:center!important;
    
    
    
    white-space:nowrap!important;
  }
  body:not(.auth-page--login) .page-header .app-mobile-page-actions__icon{font-size:14px!important}
  body:not(.auth-page--login) .page-header>.header-actions>a.button{
    
    
    
    
    height:34px!important;
    min-height:34px!important;
    
    border-radius:8px!important;
    justify-content:center!important;
    
    
    
  }

  /* Month rows are as tall as their real content. Empty weeks collapse to
     roughly one 30px date row; events/ranges grow the row automatically. */
  body:not(.auth-page--login) .calendar-v4-month__cell{
    min-height:max(30px,var(--calendar-row-min-height,30px))!important;
    padding:2px!important;
  }
  body:not(.auth-page--login) .calendar-v4-month__cell-head{
    min-height:22px!important;
    margin-bottom:2px!important;
  }
  body:not(.auth-page--login) .calendar-v4-month__range{
    margin-top:calc(25px + var(--range-lane-offset,0px))!important;
  }
}


/* ========================================================================== */
/* 2026-09-19 v21: one-height mobile header + unclipped expanded search       */
/* ========================================================================== */
@media (max-width:620px){
  body:not(.auth-page--login) .page-header>.header-actions{
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:6px!important;
    overflow:visible!important;
  }

  /* All controls in the top row use the same 40px touch target. */
  body:not(.auth-page--login) .page-header .app-mobile-search-trigger,
  body:not(.auth-page--login) .page-header .app-mobile-page-actions,
  body:not(.auth-page--login) .page-header>.header-actions>a.button,
  body:not(.auth-page--login) .page-header .app-todo-bell__button,
  body:not(.auth-page--login) .page-header .app-changelog-top-link,
  body:not(.auth-page--login) .page-header .app-mobile-more>summary{
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    border-radius:9px!important;
    box-sizing:border-box!important;
  }
  body:not(.auth-page--login) .page-header .app-mobile-search-trigger,
  body:not(.auth-page--login) .page-header .app-todo-bell__button,
  body:not(.auth-page--login) .page-header .app-changelog-top-link,
  body:not(.auth-page--login) .page-header .app-mobile-more>summary{
    width:40px!important;
    min-width:40px!important;
    flex:0 0 40px!important;
    padding:0!important;
  }
  body:not(.auth-page--login) .page-header .app-mobile-page-actions{
    width:auto!important;
    min-width:64px!important;
    max-width:none!important;
    flex:0 0 auto!important;
    padding:0 10px!important;
    gap:4px!important;
    font-size:12px!important;
    line-height:1!important;
  }
  body:not(.auth-page--login) .page-header>.header-actions>a.button{
    width:auto!important;
    min-width:82px!important;
    max-width:none!important;
    flex:0 0 auto!important;
    padding:0 10px!important;
    font-size:12px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  /* When search opens, give the input the row instead of trying to fit the
     normal action buttons beside it. This prevents the left edge/input icon
     from sliding outside the viewport when the Android keyboard appears. */
  body:not(.auth-page--login) .page-header.is-mobile-search-open>.header-actions{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:7px!important;
    overflow:visible!important;
  }
  body:not(.auth-page--login) .page-header.is-mobile-search-open .app-mobile-page-actions,
  body:not(.auth-page--login) .page-header.is-mobile-search-open>.header-actions>a.button,
  body:not(.auth-page--login) .page-header.is-mobile-search-open .app-todo-bell,
  body:not(.auth-page--login) .page-header.is-mobile-search-open .app-changelog-top-link,
  body:not(.auth-page--login) .page-header.is-mobile-search-open .app-mobile-more{
    display:none!important;
  }
  body:not(.auth-page--login) .page-header.is-mobile-search-open .app-mobile-search-trigger{
    order:1!important;
    flex:0 0 40px!important;
    width:40px!important;
    min-width:40px!important;
  }
  body:not(.auth-page--login) .page-header.is-mobile-search-open .app-global-search{
    display:flex!important;
    order:2!important;
    position:relative!important;
    inset:auto!important;
    flex:1 1 0!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:40px!important;
    min-height:40px!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
  body:not(.auth-page--login) .page-header.is-mobile-search-open .app-global-search input{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
}

/* ========================================================================== */
/* Sign-in: one photograph and the functional login panel only.                */
/* All login-specific rules live here; app.css keeps shared password controls. */
/* ========================================================================== */
html.auth-document--login {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.auth-page--login {
  --login-viewport-height: calc(100vh / var(--app-ui-scale, 1));
  --login-highlight: #45dce1;
  --login-white: #f7ffff;
  --login-muted: rgba(247, 255, 255, .8);
  --login-glass: linear-gradient(135deg, rgba(21, 119, 128, .28), rgba(3, 55, 62, .3));
  --login-radius: 24px;
  --login-panel-gap: 22px;
  --login-card-inset: clamp(28px, 3vw, 56px);
  --login-card-top: 26px;
  --login-card-bottom: 38px;
  --login-control-height: clamp(54px, 3.55vw, 68px);
  --login-form-gap: 22px;
  --login-icon-inset: 18px;
  --login-icon-size: 22px;
  --login-heading-size: clamp(3rem, calc(3.45vw * var(--font-scale)), 4.2rem);
  --login-heading-gap: 30px;
  --login-toolbar-gap: 30px;
  --login-footer-gap: 28px;
  display: block;
  height: var(--login-viewport-height);
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #071f24;
  color: var(--login-white);
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  isolation: isolate;
}

@supports (height: 100dvh) {
  body.auth-page--login {
    --login-viewport-height: calc(100dvh / var(--app-ui-scale, 1));
  }
}

body.auth-page--login .login-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

body.auth-page--login .login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 650px);
  align-items: safe center;
  justify-items: stretch;
  justify-content: start;
  width: min(100%, 2400px);
  height: var(--login-viewport-height);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  margin-inline: auto;
  padding: clamp(24px, 5vh, 64px) clamp(24px, 4vw, 72px) clamp(24px, 5vh, 64px) clamp(36px, 6vw, 116px);
}

/* Brand and form are normal-flow siblings, so alerts and MFA cannot overlap. */
body.auth-page--login .login-panel {
  display: grid;
  gap: var(--login-panel-gap);
  width: 100%;
  max-width: 650px;
  min-width: 0;
  margin: 0;
}

body.auth-page--login :is(.login-brand, .login-panel__inner) {
  min-width: 0;
  border: 0;
  border-radius: var(--login-radius);
  background: rgba(5, 57, 65, .3);
  box-shadow: 0 12px 36px rgba(0, 19, 25, .08);
}

@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  body.auth-page--login :is(.login-brand, .login-panel__inner) {
    background: var(--login-glass);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}

body.auth-page--login .login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: clamp(90px, 6.3vw, 122px);
  padding: 18px 24px;
}

body.auth-page--login .login-brand__logo {
  display: grid;
  flex: 0 0 auto;
  width: clamp(58px, 4.3vw, 84px);
  height: clamp(58px, 4.3vw, 84px);
  padding: 8px;
  place-items: center;
  border-radius: 20px;
  background: #fff;
}

body.auth-page--login .login-brand__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.auth-page--login .login-brand__text {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body.auth-page--login .login-brand__text small {
  color: var(--login-highlight);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.auth-page--login .login-brand__text strong {
  color: var(--login-white);
  font-size: clamp(1rem, calc(1.3vw * var(--font-scale)), 1.55rem);
  font-weight: 500;
  line-height: 1.3;
}

body.auth-page--login .login-panel__inner {
  padding: var(--login-card-top) var(--login-card-inset) var(--login-card-bottom);
}

body.auth-page--login .login-panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 calc(var(--login-card-inset) * -.4) var(--login-toolbar-gap);
}

body.auth-page--login .login-security {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(81, 224, 231, .2);
  color: var(--login-white);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body.auth-page--login .auth-language-switch {
  position: relative;
  z-index: 10;
  top: auto;
  right: auto;
}

body.auth-page--login .language-switch__button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid rgba(218, 255, 255, .16);
  border-radius: 12px;
  background: rgba(2, 51, 61, .22);
  color: var(--login-white);
  font-size: .8rem;
  box-shadow: none;
}

body.auth-page--login :is(.language-switch__button:hover, .language-switch.is-open .language-switch__button) {
  border-color: var(--login-highlight);
  background: rgba(18, 107, 117, .6);
}

body.auth-page--login .language-switch__menu {
  border-color: rgba(69, 220, 225, .4);
  background: #083c46;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

body.auth-page--login :is(.language-switch__option, .language-switch__option-label) {
  color: var(--login-white);
}

body.auth-page--login :is(.language-switch__option:hover, .language-switch__option.is-active) {
  background: rgba(69, 220, 225, .18);
  color: var(--login-white);
}

body.auth-page--login .login-header {
  margin-bottom: var(--login-heading-gap);
  text-align: center;
}

body.auth-page--login .login-header h2 {
  margin: 0;
  color: var(--login-white);
  font-size: var(--login-heading-size);
  line-height: 1.05;
  letter-spacing: -.02em;
}

body.auth-page--login .login-header p {
  margin: 14px 0 0;
  color: var(--login-muted);
  font-size: .85rem;
  line-height: 1.6;
}

/* Credentials, floating labels and shared MFA inputs. */
body.auth-page--login .login-form {
  display: grid;
  gap: var(--login-form-gap);
}

body.auth-page--login .login-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.auth-page--login .login-floating-control {
  --login-input-inset: 16px;
  position: relative;
  display: block;
  min-width: 0;
}

body.auth-page--login .login-floating-control--icon {
  --login-input-inset: calc(var(--login-icon-inset) + var(--login-icon-size) + 16px);
}

body.auth-page--login .login-field__icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: var(--login-icon-inset);
  width: var(--login-icon-size);
  height: var(--login-icon-size);
  color: var(--login-white);
  transform: translateY(-50%);
  pointer-events: none;
}

body.auth-page--login :is(.login-floating-control input, .login-recovery-option input) {
  width: 100%;
  min-width: 0;
  min-height: var(--login-control-height);
  padding: 12px 16px;
  border: 1px solid rgba(223, 255, 255, .32);
  border-radius: 11px;
  background: rgba(2, 51, 62, .12);
  color: var(--login-white);
  caret-color: var(--login-highlight);
  font-size: max(16px, .95rem);
  line-height: 1.35;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

body.auth-page--login .login-floating-control input {
  height: var(--login-control-height);
  padding-left: var(--login-input-inset);
}

body.auth-page--login .login-password-control input {
  padding-right: 54px;
}

body.auth-page--login .login-floating-control input::placeholder {
  color: transparent;
}

body.auth-page--login .login-recovery-option input::placeholder {
  color: var(--login-muted);
}

body.auth-page--login :is(.login-floating-control input:hover, .login-recovery-option input:hover) {
  border-color: rgba(223, 255, 255, .6);
}

body.auth-page--login :is(.login-floating-control input:focus, .login-recovery-option input:focus) {
  outline: none;
  border-color: var(--login-highlight);
  background: rgba(2, 58, 69, .55);
  box-shadow: 0 0 0 3px rgba(69, 220, 225, .18);
}

body.auth-page--login .login-floating-label {
  position: absolute;
  top: 50%;
  left: var(--login-input-inset);
  max-width: calc(100% - var(--login-input-inset) - 18px);
  margin: 0;
  color: var(--login-white);
  font-size: 1.06rem;
  line-height: 1.2;
  transform: translateY(-50%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform-origin: left top;
  transition: top .18s ease, transform .18s ease, color .18s ease;
  pointer-events: none;
}

body.auth-page--login .login-password-control .login-floating-label {
  max-width: calc(100% - var(--login-input-inset) - 54px);
}

body.auth-page--login .login-floating-control input:is(:focus, :not(:placeholder-shown)) {
  padding-top: 22px;
  padding-bottom: 4px;
}

body.auth-page--login .login-floating-control input:is(:focus, :not(:placeholder-shown)) + .login-floating-label {
  top: 8px;
  color: #b5f7fa;
  transform: scale(.76);
}

body.auth-page--login .login-floating-control input:-webkit-autofill {
  -webkit-text-fill-color: var(--login-white);
  box-shadow: inset 0 0 0 1000px #104b56;
}

body.auth-page--login .login-floating-control input:-webkit-autofill + .login-floating-label {
  top: 8px;
  color: #b5f7fa;
  transform: scale(.76);
}

body.auth-page--login .login-password-control__toggle {
  right: 6px;
  width: 44px;
  height: 44px;
  color: var(--login-white);
}

body.auth-page--login .login-password-control__toggle:hover {
  background: rgba(69, 220, 225, .16);
  color: var(--login-white);
}

body.auth-page--login .login-field__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 24px;
  font-size: .93rem;
  line-height: 1.4;
}

body.auth-page--login :is(.login-field__footer a, .login-legal-links a) {
  color: #81eff2;
}

body.auth-page--login :is(.login-field__footer a:hover, .login-legal-links a:hover) {
  color: var(--login-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.auth-page--login .login-remember {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  margin-top: 6px;
  color: var(--login-white);
  font-size: 1.03rem;
  line-height: 1.4;
  cursor: pointer;
}

body.auth-page--login .login-remember input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

body.auth-page--login .login-submit {
  min-height: calc(var(--login-control-height) + 4px);
  gap: 22px;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(18, 190, 201, .94), var(--accent) 55%, var(--accent-dark));
  color: var(--login-white);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(0, 33, 44, .16);
}

body.auth-page--login .login-submit:hover {
  background: linear-gradient(100deg, #27cbd4, #0bb9bf 55%, #098f99);
}

body.auth-page--login .login-submit__arrow {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
}

body.auth-page--login :is(a, button, summary, .login-remember input):focus-visible {
  outline: 2px solid var(--login-highlight);
  outline-offset: 4px;
}

body.auth-page--login .login-footer {
  display: grid;
  gap: 7px;
  margin-top: var(--login-footer-gap);
  text-align: center;
}

body.auth-page--login .login-authorized {
  margin: 0;
  color: var(--login-muted);
  font-size: .86rem;
  line-height: 1.5;
}

body.auth-page--login .login-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .86rem;
  line-height: 1.5;
}

/* Exceptional content remains reachable within the login viewport. */
body.auth-page--login .login-panel .alert {
  margin: 0 0 var(--login-form-gap);
  padding: 13px 16px;
  border: 1px solid rgba(223, 255, 255, .3);
  border-radius: 12px;
  color: var(--login-white);
  font-size: .83rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.auth-page--login .login-panel .alert-success {
  background: rgba(16, 100, 86, .75);
}

body.auth-page--login .login-panel .alert-error {
  border-color: rgba(255, 200, 200, .5);
  background: rgba(109, 35, 48, .8);
}

body.auth-page--login .login-mfa-context {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(223, 255, 255, .24);
  border-radius: 12px;
  background: rgba(2, 51, 62, .3);
}

body.auth-page--login .login-mfa-context__icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: rgba(69, 220, 225, .15);
  color: var(--login-highlight);
}

body.auth-page--login .login-mfa-context__icon svg {
  width: 22px;
  height: 22px;
}

body.auth-page--login .login-mfa-context > span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.auth-page--login .login-mfa-context strong {
  font-size: .85rem;
  line-height: 1.4;
}

body.auth-page--login :is(.login-mfa-context small, .login-field__footer--hint, .login-recovery-option .small-note) {
  margin: 0;
  color: var(--login-muted);
  font-size: .75rem;
  line-height: 1.5;
}

body.auth-page--login .login-field__footer--hint {
  justify-content: flex-start;
}

body.auth-page--login .login-otp-input {
  letter-spacing: .24em;
  font-variant-numeric: tabular-nums;
}

body.auth-page--login .login-mfa-actions {
  display: grid;
  gap: 12px;
}

body.auth-page--login .login-recovery-option {
  min-width: 0;
  border: 1px solid rgba(223, 255, 255, .24);
  border-radius: 12px;
  background: rgba(2, 51, 62, .3);
}

body.auth-page--login .login-recovery-option summary {
  padding: 13px 16px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.5;
  list-style-position: inside;
  cursor: pointer;
}

body.auth-page--login .login-recovery-option__body {
  display: grid;
  gap: 12px;
  padding: 4px 16px 16px;
}

body.auth-page--login .login-recovery-option__body label {
  color: var(--login-white);
  font-size: .85rem;
}

body.auth-page--login .login-recovery-option__body input {
  text-transform: uppercase;
  letter-spacing: .05em;
}

body.auth-page--login .button-ghost {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(223, 255, 255, .35);
  border-radius: 12px;
  background: rgba(2, 51, 62, .3);
  color: var(--login-white);
  font-size: .85rem;
  line-height: 1.5;
  box-shadow: none;
}

body.auth-page--login .button-ghost:hover {
  border-color: var(--login-highlight);
  background: rgba(18, 107, 117, .6);
}

/* Smaller desktops keep the login panel compact without changing its left anchor. */
@media (min-width: 1181px) and (max-width: 1500px) {
  body.auth-page--login {
    --login-card-inset: 32px;
    --login-card-top: 20px;
    --login-card-bottom: 26px;
    --login-form-gap: 18px;
    --login-heading-gap: 24px;
    --login-toolbar-gap: 16px;
    --login-footer-gap: 22px;
  }

  body.auth-page--login .login-shell {
    padding-block: clamp(24px, 4vh, 44px);
    padding-left: clamp(32px, 5vw, 76px);
  }

  body.auth-page--login .login-brand { gap: 16px; }
  body.auth-page--login .login-brand__text small { font-size: .65rem; }
}

/* Desktop density follows the measured login panel, including alerts and UI zoom. */
@media (min-width: 1181px) {
  body.auth-page--login.login-layout--inset .login-shell { padding-block: 8px; }

  body.auth-page--login.login-layout--compact {
    --login-panel-gap: 14px;
    --login-card-top: 14px;
    --login-card-bottom: 18px;
    --login-control-height: 48px;
    --login-form-gap: 12px;
    --login-heading-size: 2.6rem;
    --login-heading-gap: 14px;
    --login-toolbar-gap: 8px;
    --login-footer-gap: 12px;
  }
  body.auth-page--login.login-layout--compact .login-brand { min-height: 72px; padding: 10px 16px; }
  body.auth-page--login.login-layout--compact .login-brand__logo { width: 52px; height: 52px; }

  body.auth-page--login.login-layout--tight {
    --login-panel-gap: 6px;
    --login-card-top: 8px;
    --login-card-bottom: 10px;
    --login-control-height: 44px;
    --login-form-gap: 6px;
    --login-heading-size: 2.2rem;
    --login-heading-gap: 8px;
    --login-toolbar-gap: 2px;
    --login-footer-gap: 8px;
  }
  body.auth-page--login.login-layout--tight .login-brand { min-height: 64px; padding: 8px 16px; }
  body.auth-page--login.login-layout--tight .login-brand__logo { width: 44px; height: 44px; }
  body.auth-page--login.login-layout--tight .login-panel .alert { padding-block: 8px; }
  body.auth-page--login.login-layout--tight .login-remember { margin-top: 0; }
  body.auth-page--login.login-layout--tight .login-submit { padding-block: 10px; }
  body.auth-page--login.login-layout--tight .login-footer { gap: 4px; }
}

/* Tablets: keep the panel on the left whenever there is enough horizontal room. */
@media (max-width: 1180px) {
  body.auth-page--login {
    --login-panel-gap: 18px;
    --login-card-inset: 46px;
    --login-card-top: 22px;
    --login-card-bottom: 28px;
    --login-control-height: 56px;
    --login-form-gap: 18px;
    --login-heading-size: 3.6rem;
    --login-heading-gap: 26px;
    --login-toolbar-gap: 18px;
    --login-footer-gap: 22px;
  }

  body.auth-page--login .login-background { object-position: 62% center; }

  body.auth-page--login .login-shell {
    grid-template-columns: minmax(0, 560px);
    justify-content: start;
    justify-items: stretch;
    gap: 0;
    padding: clamp(16px, 3vh, 32px) clamp(18px, 3vw, 32px);
  }

  body.auth-page--login .login-panel { max-width: 560px; }
  body.auth-page--login .login-remember { margin-top: 4px; }
  body.auth-page--login .login-brand { min-height: 98px; }
  body.auth-page--login .login-brand__logo { width: 64px; height: 64px; }
  body.auth-page--login .login-brand__text strong { font-size: 1.2rem; }
}

/* Portrait phones: safe-area spacing inside the fixed login viewport. */
@media (max-width: 700px) {
  body.auth-page--login {
    --login-radius: 20px;
    --login-panel-gap: 14px;
    --login-card-inset: 24px;
    --login-card-top: 18px;
    --login-card-bottom: 24px;
    --login-control-height: 54px;
    --login-form-gap: 16px;
    --login-icon-inset: 14px;
    --login-icon-size: 20px;
    --login-heading-size: clamp(2rem, calc(10vw * var(--font-scale)), 2.8rem);
    --login-heading-gap: 24px;
    --login-toolbar-gap: 18px;
    --login-footer-gap: 20px;
  }

  body.auth-page--login .login-shell {
    padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }

  body.auth-page--login .login-panel { max-width: 360px; }
  body.auth-page--login .login-brand { gap: 14px; min-height: 84px; padding: 14px 18px; }
  body.auth-page--login .login-brand__logo { width: 54px; height: 54px; padding: 6px; border-radius: 14px; }
  body.auth-page--login .login-brand__text small { font-size: .61rem; letter-spacing: .1em; }
  body.auth-page--login .login-brand__text strong { font-size: .86rem; }
  body.auth-page--login .login-security { padding: 6px 9px; font-size: .56rem; letter-spacing: .07em; }
  body.auth-page--login .language-switch__button { min-height: 40px; padding: 6px 9px; font-size: .72rem; }
  body.auth-page--login .login-floating-label { font-size: .87rem; }
  body.auth-page--login .login-remember { gap: 9px; font-size: .8rem; }
  body.auth-page--login .login-remember input { width: 20px; height: 20px; }
  body.auth-page--login .login-field__footer { font-size: .7rem; }
  body.auth-page--login .login-submit { font-size: .9rem; }
  body.auth-page--login :is(.login-authorized, .login-legal-links) { font-size: .72rem; }
}

/* Short portrait screens keep all normal sign-in controls in view. */
@media (max-width: 700px) and (max-height: 740px) and (orientation: portrait) {
  body.auth-page--login {
    --login-panel-gap: 10px;
    --login-card-inset: 18px;
    --login-card-top: 12px;
    --login-card-bottom: 16px;
    --login-control-height: 48px;
    --login-form-gap: 10px;
    --login-heading-size: clamp(2rem, calc(9vw * var(--font-scale)), 2.4rem);
    --login-heading-gap: 14px;
    --login-toolbar-gap: 8px;
    --login-footer-gap: 10px;
  }
  body.auth-page--login .login-shell {
    padding-block: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-bottom));
  }
  body.auth-page--login .login-brand { min-height: 68px; padding: 10px 14px; }
  body.auth-page--login .login-brand__logo { width: 44px; height: 44px; }
  body.auth-page--login .login-remember { margin-top: 0; }
}

/* Short landscape screens: compact spacing, never tiny inputs or hidden content. */
@media (max-width: 1180px) and (max-height: 560px) and (orientation: landscape) {
  body.auth-page--login {
    --login-radius: 14px;
    --login-panel-gap: 8px;
    --login-card-inset: 22px;
    --login-card-top: 8px;
    --login-card-bottom: 8px;
    --login-control-height: 40px;
    --login-form-gap: 6px;
    --login-icon-inset: 12px;
    --login-icon-size: 18px;
    --login-heading-size: 2rem;
    --login-heading-gap: 8px;
    --login-toolbar-gap: 4px;
    --login-footer-gap: 6px;
  }

  body.auth-page--login .login-shell {
    padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }

  body.auth-page--login .login-panel { max-width: 380px; }
  body.auth-page--login .login-brand { gap: 12px; min-height: 50px; padding: 6px 16px; }
  body.auth-page--login .login-brand__logo { width: 36px; height: 36px; padding: 4px; border-radius: 10px; }
  body.auth-page--login .login-brand__text { gap: 3px; }
  body.auth-page--login .login-brand__text small { font-size: .55rem; letter-spacing: .1em; }
  body.auth-page--login .login-brand__text strong { font-size: .8rem; }
  body.auth-page--login .login-security { padding: 4px 8px; font-size: .53rem; letter-spacing: .06em; }
  body.auth-page--login .language-switch__button { min-height: 32px; padding: 4px 7px; font-size: .68rem; }
  body.auth-page--login .login-floating-label { font-size: .8rem; }
  body.auth-page--login .login-floating-control input:is(:focus, :not(:placeholder-shown)) { padding-top: 15px; padding-bottom: 1px; }
  body.auth-page--login .login-floating-control input:is(:focus, :not(:placeholder-shown)) + .login-floating-label,
  body.auth-page--login .login-floating-control input:-webkit-autofill + .login-floating-label { top: 3px; }
  body.auth-page--login .login-field { gap: 4px; }
  body.auth-page--credentials .login-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body.auth-page--credentials .login-form > .login-field { grid-column: 1 / -1; }
  body.auth-page--credentials .login-form > .login-field--password { display: contents; }
  body.auth-page--credentials .login-password-control { grid-column: 1 / -1; grid-row: 2; }
  body.auth-page--credentials .login-field__footer { grid-column: 2; grid-row: 3; align-self: center; }
  body.auth-page--credentials .login-remember { grid-column: 1; grid-row: 3; }
  body.auth-page--credentials .login-submit { grid-column: 1 / -1; }
  body.auth-page--login .login-field__footer { min-height: 18px; font-size: .63rem; }
  body.auth-page--login .login-password-control__toggle { width: 38px; height: 38px; }
  body.auth-page--login .login-password-control__icon { width: 18px; height: 18px; }
  body.auth-page--login .login-remember { gap: 8px; min-height: 24px; margin-top: 0; font-size: .68rem; }
  body.auth-page--login .login-remember input { width: 18px; height: 18px; }
  body.auth-page--login .login-submit { gap: 18px; padding: 8px 14px; font-size: .8rem; }
  body.auth-page--login .login-submit__arrow { width: 21px; height: 21px; }
  body.auth-page--login .login-footer { gap: 3px; }
  body.auth-page--login :is(.login-authorized, .login-legal-links) { font-size: .59rem; line-height: 1.4; }
}

/* The shortest landscape phones use two input columns rather than scrolling. */
@media (max-width: 1180px) and (max-height: 420px) and (orientation: landscape) {
  body.auth-page--credentials {
    --login-panel-gap: 6px;
    --login-card-top: 6px;
    --login-card-bottom: 6px;
    --login-heading-gap: 6px;
    --login-toolbar-gap: 2px;
    --login-footer-gap: 4px;
  }
  body.auth-page--credentials .login-shell {
    padding-block: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-bottom));
  }
  body.auth-page--credentials .login-panel { max-width: 520px; }
  body.auth-page--credentials .login-form > .login-field:not(.login-field--password) { grid-column: 1; grid-row: 1; }
  body.auth-page--credentials .login-password-control { grid-column: 2; grid-row: 1; }
  body.auth-page--credentials .login-field__footer { grid-row: 2; }
  body.auth-page--credentials .login-remember { grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-page--login :is(input, button, .login-floating-label) { transition: none; }
  body.auth-page--login .button:hover { transform: none; }
}

/* Event header service days: preparation, event day and cleanup have
   independent global colors. Defaults stay on the single component class so
   runtime.css can override them with the saved global palette. Event day is
   solid; preparation and cleanup keep opposite hatching. */
.event-service-days{
  --event-service-preparation-color:#2f825d;
  --event-service-event-color:#2f825d;
  --event-service-cleanup-color:#2f825d;
}
body:not(.auth-page--login) .event-form .event-service-days{
  background:rgba(255,255,255,.78)!important;
  border-color:#d6e8eb!important;
  box-shadow:none!important;
}
body:not(.auth-page--login) .event-form .event-service-day-row{
  background:#fff!important;
  border-color:#d9e8ea!important;
  box-shadow:none!important;
}
body:not(.auth-page--login) .event-form :is(.event-service-day-kind--preparation,.event-service-day-add--preparation){
  --event-service-phase-color:var(--event-service-preparation-color);
}
body:not(.auth-page--login) .event-form :is(.event-service-day-kind--event,.event-service-day-add--event),
body:not(.auth-page--login) .event-form .event-service-day-row:not([data-service-day-kind])::after{
  --event-service-phase-color:var(--event-service-event-color);
}
body:not(.auth-page--login) .event-form :is(.event-service-day-kind--cleanup,.event-service-day-add--cleanup){
  --event-service-phase-color:var(--event-service-cleanup-color);
}
body:not(.auth-page--login) .event-form :is(.event-service-day-kind,.event-service-day-add),
body:not(.auth-page--login) .event-form .event-service-day-row:not([data-service-day-kind])::after{
  color:color-mix(in srgb,var(--event-service-phase-color) 78%,#10231a)!important;
  border-color:color-mix(in srgb,var(--event-service-phase-color) 66%,#fff)!important;
  box-shadow:none!important;
}
body:not(.auth-page--login) .event-form :is(.event-service-day-kind--event,.event-service-day-add--event),
body:not(.auth-page--login) .event-form .event-service-day-row:not([data-service-day-kind])::after{
  background:color-mix(in srgb,var(--event-service-event-color) 18%,#fff)!important;
}
body:not(.auth-page--login) .event-form :is(.event-service-day-kind--preparation,.event-service-day-add--preparation){
  background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--event-service-preparation-color) 18%,#fff) 0 6px,color-mix(in srgb,var(--event-service-preparation-color) 30%,#fff) 6px 10px)!important;
}
body:not(.auth-page--login) .event-form :is(.event-service-day-kind--cleanup,.event-service-day-add--cleanup){
  background:repeating-linear-gradient(45deg,color-mix(in srgb,var(--event-service-cleanup-color) 18%,#fff) 0 6px,color-mix(in srgb,var(--event-service-cleanup-color) 30%,#fff) 6px 10px)!important;
}
body:not(.auth-page--login) .event-form .event-service-day-add:hover{
  color:color-mix(in srgb,var(--event-service-phase-color) 86%,#10231a)!important;
  border-color:color-mix(in srgb,var(--event-service-phase-color) 78%,#fff)!important;
  transform:none!important;
}
body:not(.auth-page--login) .event-form .event-service-day-add--event:hover{
  background:color-mix(in srgb,var(--event-service-event-color) 25%,#fff)!important;
}
body:not(.auth-page--login) .event-form .event-service-day-add--preparation:hover{
  background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--event-service-preparation-color) 25%,#fff) 0 6px,color-mix(in srgb,var(--event-service-preparation-color) 38%,#fff) 6px 10px)!important;
}
body:not(.auth-page--login) .event-form .event-service-day-add--cleanup:hover{
  background:repeating-linear-gradient(45deg,color-mix(in srgb,var(--event-service-cleanup-color) 25%,#fff) 0 6px,color-mix(in srgb,var(--event-service-cleanup-color) 38%,#fff) 6px 10px)!important;
}
body:not(.auth-page--login) .event-form .event-service-day-remove{
  border-radius:999px!important;
  background:#fff0ee!important;
  color:#b43f37!important;
  border-color:#e5a19b!important;
  box-shadow:none!important;
}
body:not(.auth-page--login) .event-form .event-service-day-remove:hover{
  background:#d9554d!important;
  color:#fff!important;
  border-color:#c8453e!important;
  transform:none!important;
}

html[data-theme="dark"] body:not(.auth-page--login) .event-form .event-service-days{
  background:#102832!important;
  color:#edf9fa!important;
  border-color:#2a4c56!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-form .event-service-day-row{
  background:#0e2530!important;
  color:#edf9fa!important;
  border-color:#2a4a54!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-form :is(.event-service-day-kind,.event-service-day-add),
html[data-theme="dark"] body:not(.auth-page--login) .event-form .event-service-day-row:not([data-service-day-kind])::after{
  color:color-mix(in srgb,var(--event-service-phase-color) 30%,#effcf7)!important;
  border-color:color-mix(in srgb,var(--event-service-phase-color) 68%,#76908b)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-form :is(.event-service-day-kind--event,.event-service-day-add--event),
html[data-theme="dark"] body:not(.auth-page--login) .event-form .event-service-day-row:not([data-service-day-kind])::after{
  background:color-mix(in srgb,var(--event-service-event-color) 31%,#102832)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-form :is(.event-service-day-kind--preparation,.event-service-day-add--preparation){
  background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--event-service-preparation-color) 31%,#102832) 0 6px,color-mix(in srgb,var(--event-service-preparation-color) 44%,#102832) 6px 10px)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-form :is(.event-service-day-kind--cleanup,.event-service-day-add--cleanup){
  background:repeating-linear-gradient(45deg,color-mix(in srgb,var(--event-service-cleanup-color) 31%,#102832) 0 6px,color-mix(in srgb,var(--event-service-cleanup-color) 44%,#102832) 6px 10px)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-form .event-service-day-add:hover{
  color:color-mix(in srgb,var(--event-service-phase-color) 24%,#fff)!important;
  border-color:color-mix(in srgb,var(--event-service-phase-color) 82%,#76908b)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-form .event-service-day-add--event:hover{
  background:color-mix(in srgb,var(--event-service-event-color) 39%,#102832)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-form .event-service-day-add--preparation:hover{
  background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--event-service-preparation-color) 39%,#102832) 0 6px,color-mix(in srgb,var(--event-service-preparation-color) 52%,#102832) 6px 10px)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-form .event-service-day-add--cleanup:hover{
  background:repeating-linear-gradient(45deg,color-mix(in srgb,var(--event-service-cleanup-color) 39%,#102832) 0 6px,color-mix(in srgb,var(--event-service-cleanup-color) 52%,#102832) 6px 10px)!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-form .event-service-day-remove{
  background:#482725!important;
  color:#ffb5ae!important;
  border-color:#7c4540!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-form .event-service-day-remove:hover{
  background:#8b3732!important;
  color:#fff!important;
  border-color:#b95049!important;
}

/* Historie změn eventu – tmavý motiv. */
html[data-theme="dark"] body:not(.auth-page--login) .event-history-filter select,
html[data-theme="dark"] body:not(.auth-page--login) .event-history-select-all,
html[data-theme="dark"] body:not(.auth-page--login) .event-history-timeline,
html[data-theme="dark"] body:not(.auth-page--login) .event-history-detail,
html[data-theme="dark"] body:not(.auth-page--login) .event-history-detail__section{
  background:#102832!important;
  border-color:#23454f!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-history-entry{
  background:#122d37!important;
  border-color:transparent!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-history-entry.is-active{
  border-color:#2f6670!important;
  background:#163640!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body:not(.auth-page--login) .event-history-entry__dot{border-color:#102832!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-history-entry__select,
html[data-theme="dark"] body:not(.auth-page--login) .event-history-detail__author span,
html[data-theme="dark"] body:not(.auth-page--login) .event-history-comparison__before span,
html[data-theme="dark"] body:not(.auth-page--login) .event-history-comparison__after span{color:#edf9fb!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-history-value-row{background:#0e242d!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-history-value-row span{color:#c6d9de!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-history-detail__header{background:#122d37!important;border-color:#2a4d57!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-history-detail__icon,
html[data-theme="dark"] body:not(.auth-page--login) .event-history-detail__section-icon{background:#183a44!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-history-comparison__before{background:#3a2426!important;border-color:#704247!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-history-comparison__after{background:#173328!important;border-color:#2d6348!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-history-comparison__before small{color:#ffaaa3!important}
html[data-theme="dark"] body:not(.auth-page--login) .event-history-comparison__after small{color:#91ddb0!important}
