/* Jesien zachowuje dotychczasowe kolory z styles.css. */
:root { color-scheme: light; }
html[data-theme="winter"] {
  --bg:#f2f7fa; --paper:#ffffff; --ink:#243e50; --muted:#5f7687;
  --green:#336883; --green-dark:#244e66; --pale:#e6f0f7; --line:#d8e4ed;
  --season-sidebar:#fbfdff; --season-header:#f8fbfe; --season-soft:#eaf2f8;
  --season-active:#dcebf5; --season-hero:#e8f2f8; --season-auth:#e6f1f8;
  --season-form:#fbfdff; --season-field:#fcfeff; --season-focus:#789fb8;
  --season-accent:#507995; --season-highlight:#678da9;
  --art-halo:#dcebf5; --art-house:#336883; --art-nest:#99aebf;
  --art-person-a:#b9cddd; --art-person-b:#85aabe; --art-person-c:#e1d5b6;
  --art-stem:#6e91a3; --art-leaf:#b2c9d5; --art-spark:#9baeca;
}
html[data-theme="spring"] {
  --bg:#fcf5ed; --paper:#fffdf9; --ink:#4b3d32; --muted:#827062;
  --green:#8f5436; --green-dark:#73412a; --pale:#f5e9d9; --line:#eaddcd;
  --season-sidebar:#fffaf2; --season-header:#fff9f0; --season-soft:#f7eee2;
  --season-active:#eedbc5; --season-hero:#f7e7d6; --season-auth:#f6e6d4;
  --season-form:#fffbf5; --season-field:#fffdf9; --season-focus:#b98257;
  --season-accent:#657348; --season-highlight:#bc774b;
  --art-halo:#eddfc6; --art-house:#8c674c; --art-nest:#b18053;
  --art-person-a:#e7ad91; --art-person-b:#a4b27c; --art-person-c:#e9c673;
  --art-stem:#79874f; --art-leaf:#acb584; --art-spark:#c9984a;
}
html[data-theme="summer"] {
  --bg:#fbf8ef; --paper:#fffefa; --ink:#294845; --muted:#647e77;
  --green:#16716c; --green-dark:#0e5954; --pale:#edf1df; --line:#dfe6d8;
  --season-sidebar:#fffdf4; --season-header:#fffdf6; --season-soft:#eef3e7;
  --season-active:#dceee3; --season-hero:#f7efd3; --season-auth:#f6edce;
  --season-form:#fffdf6; --season-field:#fffefb; --season-focus:#639d8c;
  --season-accent:#447d67; --season-highlight:#ba8738;
  --art-halo:#eee3af; --art-house:#397c72; --art-nest:#bb965d;
  --art-person-a:#e9b493; --art-person-b:#81b7a4; --art-person-c:#e8c45e;
  --art-stem:#61917c; --art-leaf:#a5c2a0; --art-spark:#c49b3d;
}
html[data-theme="dark"] {
  color-scheme:dark;
  --bg:#141c19; --paper:#202c26; --ink:#e3eae4; --muted:#a0b3a6;
  --green:#afd4bd; --green-dark:#c8e6d3; --pale:#27392e; --line:#38473e;
  --danger:#e6a297; --shadow:0 8px 28px #00000030;
  --season-sidebar:#19241e; --season-header:#18221d; --season-soft:#29372d;
  --season-active:#344c3c; --season-hero:#27372c; --season-auth:#213127;
  --season-form:#17221b; --season-field:#19261e; --season-focus:#9fbd85;
  --season-accent:#b6cba6; --season-highlight:#d5b78a; --season-button-ink:#193426;
  --season-success-bg:#2c4234; --season-success-ink:#b2d4a7;
  --season-warning-bg:#443c28; --season-warning-ink:#e2c98d;
  --season-danger-bg:#422e2a; --season-danger-ink:#edb2a3;
  --art-halo:#304335; --art-house:#adc8b4; --art-nest:#ba9574;
  --art-person-a:#b4816a; --art-person-b:#749681; --art-person-c:#c8ac70;
  --art-stem:#93af85; --art-leaf:#77976c; --art-spark:#d0b581;
}

/* Zmiana kolorow obejmuje takze formularze, statusy i okna dialogowe. */
html[data-theme]:not([data-theme="autumn"]) .sidebar { background:var(--season-sidebar); }
html[data-theme]:not([data-theme="autumn"]) .topbar { background:var(--season-header); }
html[data-theme]:not([data-theme="autumn"]) :is(.location-pill,.btn-secondary,.icon-button,.member-card,dialog) { background:var(--paper); border-color:var(--line); }
html[data-theme]:not([data-theme="autumn"]) :is(.btn-primary,.toast) { background:var(--green); color:var(--season-button-ink,#fff); }
html[data-theme]:not([data-theme="autumn"]) .btn-primary:not(:disabled):hover { background:var(--green-dark); }
html[data-theme]:not([data-theme="autumn"]) :is(.nav-item,.account-button,.hero h2) { color:var(--ink); }
html[data-theme]:not([data-theme="autumn"]) .nav-item.active { background:var(--season-active); color:var(--green); }
html[data-theme]:not([data-theme="autumn"]) :is(.nav-item:not(.active):not([aria-disabled]):hover,.btn-secondary:hover,.btn-ghost:hover,.add-member-card:hover) { background:var(--season-soft); }
html[data-theme]:not([data-theme="autumn"]) :is(.sidebar-note,.stat-icon,.count-label,.add-circle,.card-symbol,.list-symbol,.tag,.form-note,.activation-summary,.invitation-success>.icon,.large-tags .tag small) { background:var(--season-soft); color:var(--season-accent); border-color:var(--line); }
html[data-theme]:not([data-theme="autumn"]) :is(.hero,.next-chapter) { background:var(--season-hero); border-color:var(--line); }
html[data-theme]:not([data-theme="autumn"]) .pill { background:var(--paper); color:var(--season-accent); }
html[data-theme]:not([data-theme="autumn"]) :is(.workspace-label,.eyebrow,.greeting-dot,.auth-story em,.auth-values span,.empty-state,.add-member-card) { color:var(--season-accent); }
html[data-theme]:not([data-theme="autumn"]) :is(.location-pill,.sidebar-note,.hero p,.stat small,.section-heading>.icon,.role-label,.activity-row time,.next-chapter p:not(.eyebrow),.coming-soon,.page-footer,.license-list-head,.license-owner small,.invitation-info small,.license-people,.license-date,.field-help,.auth-story>p,.auth-footer,.auth-note,.auth-note span) { color:var(--muted); }
html[data-theme]:not([data-theme="autumn"]) :is(.breadcrumb-separator,.member-meta span) { color:var(--muted); }
html[data-theme]:not([data-theme="autumn"]) :is(.member-card-bottom,.add-member-card,.activity-row,.coming-soon,.license-row,.invitation-row) { border-color:var(--line); }
html[data-theme]:not([data-theme="autumn"]) .activity-dot { background:var(--season-highlight); }
html[data-theme]:not([data-theme="autumn"]) .search-field { background:var(--season-field); color:var(--muted); }
html[data-theme]:not([data-theme="autumn"]) :is(.field>span,.interest-picker legend) { color:var(--ink); }
html[data-theme]:not([data-theme="autumn"]) :is(.field input,.field select,.interest-option>span) { background:var(--season-field); border-color:var(--line); color:var(--ink); }
html[data-theme]:not([data-theme="autumn"]) .field input::placeholder { color:var(--muted); }
html[data-theme]:not([data-theme="autumn"]) :is(.field input:focus,.field select:focus) { border-color:var(--season-focus); box-shadow:0 0 0 3px color-mix(in srgb,var(--season-focus) 18%,transparent); }
html[data-theme]:not([data-theme="autumn"]) :focus-visible { outline-color:var(--season-focus); }
html[data-theme]:not([data-theme="autumn"]) :is(.read-only-field,.interest-option input:checked+span) { background:var(--season-active); border-color:var(--season-focus); color:var(--green); }
html[data-theme]:not([data-theme="autumn"]) .auth-aside { background:var(--season-auth); border-color:var(--line); }
html[data-theme]:not([data-theme="autumn"]) .auth-form-side { background:var(--season-form); }
html[data-theme="dark"] .avatar { background:#394738; color:#d8dfc8; }
html[data-theme="dark"] .avatar-tone-1 { background:#473a30; color:#e6c0a5; }
html[data-theme="dark"] .avatar-tone-2 { background:#30434a; color:#adcfdc; }
html[data-theme="dark"] .avatar-tone-3 { background:#453a4b; color:#d5bfdc; }
html[data-theme="dark"] :is(.badge,.badge-pending,.notice) { background:var(--season-warning-bg); color:var(--season-warning-ink); border-color:#5d5034; }
html[data-theme="dark"] :is(.badge-active,.badge-accepted) { background:var(--season-success-bg); color:var(--season-success-ink); }
html[data-theme="dark"] :is(.badge-revoked,.badge-expired,.form-error,.inline-error) { background:var(--season-danger-bg); color:var(--season-danger-ink); }
html[data-theme="dark"] dialog::backdrop { background:#080e0ab3; }

/* Wspolny, dostepny z klawiatury wybor motywu. */
.brand { white-space:nowrap; }
.brand-suffix { font-weight:650; }
lifenest-theme-picker { display:inline-flex; flex-shrink:0; }
.theme-trigger { display:inline-flex; gap:10px; align-items:center; padding:7px 10px 7px 7px; min-height:48px; border:1px solid var(--line); border-radius:14px; background:var(--paper); color:var(--ink); text-align:left; box-shadow:0 2px 5px #172c2010; }
.theme-trigger:hover,.theme-trigger[aria-expanded="true"] { border-color:var(--green); background:var(--paper); }
.theme-symbol { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:10px; background:var(--pale); color:var(--green); }
.theme-symbol svg { width:19px; height:19px; }
.theme-trigger-copy { display:grid; gap:1px; min-width:66px; }
.theme-label { font-size:9px; color:var(--muted); line-height:1.3; font-weight:400; }
.theme-value { font-size:12px; line-height:1.4; font-weight:650; }
.theme-chevron { width:16px; height:16px; margin-left:4px; color:var(--muted); transition:transform .18s; }
.theme-trigger[aria-expanded="true"] .theme-chevron { transform:rotate(180deg); }
.theme-panel { position:fixed; z-index:60; width:336px; padding:10px; border:1px solid var(--line); border-radius:22px; background:var(--paper); color:var(--ink); box-shadow:0 18px 55px #14271e26,0 3px 10px #14271e0a; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; animation:theme-panel-in .16s ease-out; }
.theme-panel-heading { padding:9px 10px 15px; }
.theme-panel-heading>span { font-family:Georgia,"Times New Roman",serif; font-size:22px; letter-spacing:-.4px; }
.theme-panel-heading p { margin-top:3px; font-size:11px; color:var(--muted); }
.theme-options { display:grid; gap:5px; }
.theme-choice { display:flex; align-items:center; gap:10px; width:100%; min-height:64px; padding:10px; border:1px solid transparent; border-radius:13px; background:transparent; color:var(--ink); text-align:left; transition:background .16s,border-color .16s; }
.theme-choice:hover { background:var(--pale); }
.theme-choice[aria-pressed="true"] { background:var(--pale); border-color:var(--green); }
.theme-choice:focus-visible { outline:2px solid var(--green); outline-offset:-3px; }
.theme-choice-icon { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:38px; height:38px; border-radius:12px; background:var(--preview-soft); color:var(--preview-ink); }
.theme-choice-icon svg { width:21px; height:21px; }
.theme-choice-copy { flex:1; min-width:0; }
.theme-choice-copy strong { display:block; font-size:12px; font-weight:650; }
.theme-choice-copy small { display:block; margin-top:3px; font-size:9px; line-height:1.5; color:var(--muted); }
.theme-swatches { display:flex; flex-shrink:0; padding-left:4px; }
.theme-swatches i { width:12px; height:12px; border-radius:50%; background:var(--preview-soft); border:1.5px solid var(--paper); box-shadow:0 0 0 1px #14271e0d; margin-left:-4px; }
.theme-swatches i:nth-child(2) { background:var(--preview-accent); }
.theme-swatches i:nth-child(3) { background:var(--preview-ink); }
.theme-check { display:flex; align-items:center; justify-content:center; width:18px; height:18px; flex-shrink:0; border:1px solid var(--line); border-radius:50%; }
.theme-check svg { visibility:hidden; width:12px; height:12px; }
.theme-choice[aria-pressed="true"] .theme-check { border-color:var(--green); background:var(--green); color:var(--season-button-ink,#fff); }
.theme-choice[aria-pressed="true"] .theme-check svg { visibility:visible; }
.theme-panel-note { margin:12px 10px 3px; padding-top:12px; border-top:1px solid var(--line); font-size:9px; color:var(--muted); text-align:center; }
[data-theme-choice="autumn"] { --preview-soft:#e8eddb; --preview-accent:#ba946c; --preview-ink:#245b4c; }
[data-theme-choice="winter"] { --preview-soft:#e6f0f7; --preview-accent:#9bbdd5; --preview-ink:#336883; }
[data-theme-choice="spring"] { --preview-soft:#f5e2d0; --preview-accent:#abb77e; --preview-ink:#8f5436; }
[data-theme-choice="summer"] { --preview-soft:#f7efd3; --preview-accent:#e8c45e; --preview-ink:#16716c; }
[data-theme-choice="dark"] { --preview-soft:#27392e; --preview-accent:#b1c9a0; --preview-ink:#afd4bd; }
@keyframes theme-panel-in { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .theme-panel { animation:none; } .theme-trigger,.theme-chevron,.theme-choice { transition:none; } }
.auth-brand-row { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.auth-brand-row .theme-trigger { background:color-mix(in srgb,var(--paper) 65%,transparent); }
.standalone-theme-tools { position:absolute; right:24px; top:24px; }
.topbar-right { gap:18px; }
@media(max-width:1100px) { .topbar-right { gap:12px; } }
@media(max-width:760px) {
  .topbar { min-height:56px; height:auto; padding-top:9px; padding-bottom:9px; gap:10px; }
  .topbar .today { display:none; }
  .auth-brand-row { gap:14px; }
  .theme-trigger { gap:7px; padding:5px 7px 5px 5px; min-height:44px; border-radius:12px; }
  .theme-trigger-copy { min-width:47px; }
  .auth-brand-row .theme-label { display:none; }
  .theme-chevron { margin-left:0; }
  .auth-aside { padding-top:20px; }
}
@media(max-width:360px) { .auth-aside { padding-left:16px; padding-right:16px; } .auth-brand-row { gap:9px; } .auth-brand-row .brand>span { font-size:21px; } .auth-brand-row .brand img { width:32px; height:32px; } .auth-brand-row .theme-trigger { gap:5px; } .auth-brand-row .theme-symbol { width:28px; height:28px; } .theme-choice { gap:8px; padding:9px 8px; } .theme-choice-copy small { font-size:9px; } }
