:root {
  --text: #14213D; --muted: #475569; --card: #FFFFFF;
  --atlas: #1E6DFF; --atlas-dark: #1550C4; --galaxy: #7C3AED; --galaxy-dark: #5B21B6; --sea: #0F766E; --sea-dark: #115E59;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(rgba(8,12,30,.55), rgba(8,12,30,.72)), #0B1026 url("desk-bg.jpg") center / cover fixed;
}
main { max-width: 1120px; margin: 0 auto; padding: 40px 16px 32px; }
header { color: #FFFFFF; margin-bottom: 28px; }
header img { height: 56px; width: auto; display: block; margin-bottom: 22px; }
h1 { font-size: 2rem; margin: 0 0 8px; }
.lead { margin: 0; font-size: 1.08rem; max-width: 680px; color: #E2E8F0; }
.tag { display: inline-block; font-size: .85rem; font-weight: 600; color: #FFFFFF; background: var(--c); border-radius: 999px; padding: 2px 11px; margin-bottom: 12px; align-self: flex-start; }
.btn { margin-top: auto; display: block; text-align: center; text-decoration: none; font-weight: 600; font-size: 1.05rem; color: #FFFFFF; background: var(--c); border-radius: 8px; padding: 13px 16px; }
.btn:hover { background: var(--cd); }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.panel { margin-top: 24px; padding: 18px 22px; background: rgba(255,255,255,.96); border-radius: 12px; }
.panel h2 { margin: 0 0 8px; font-size: 1.25rem; }
.panel p { margin: 6px 0; }
.panel ul { margin: 8px 0; padding-left: 20px; }
.panel li { margin: 4px 0; }
.panel a, footer a { color: inherit; }
.panel a { color: #1550C4; font-weight: 600; }
.panel a:focus-visible, footer a:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
footer { margin-top: 24px; color: #E2E8F0; font-size: .9rem; }
.skip { position: absolute; left: 16px; top: -60px; background: #FFFFFF; color: #14213D; padding: 10px 14px; border-radius: 6px; font-weight: 600; z-index: 10; }
.skip:focus { top: 12px; outline: 3px solid #1E6DFF; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.a11y-btn { background: rgba(255,255,255,.14); color: #FFFFFF; border: 2px solid #FFFFFF; border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.a11y-btn:hover { background: rgba(255,255,255,.26); }
.a11y-btn:focus-visible, .a11y input:focus-visible + span, .a11y button:focus-visible { outline: 3px solid #FFD400; outline-offset: 2px; }
.a11y { margin: 0 0 24px; padding: 18px 22px; background: #FFFFFF; color: #14213D; border-radius: 12px; }
.a11y[hidden] { display: none; }
.a11y h2 { margin: 0 0 12px; font-size: 1.2rem; }
.a11y fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.a11y legend { font-weight: 600; margin-bottom: 6px; }
.a11y .opts { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.a11y label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.a11y input { width: 1.15rem; height: 1.15rem; accent-color: #1550C4; }
.a11y .reset { background: #FFFFFF; color: #1550C4; border: 2px solid #1550C4; border-radius: 8px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
/* tryby */
html.a11y-noimg body { background: #0B1026 !important; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-spacing body { line-height: 1.9; letter-spacing: .03em; word-spacing: .12em; }
html.a11y-spacing .body li, html.a11y-spacing .panel li { margin: 10px 0; }
html.a11y-hc body { background: #000000 !important; color: #FFFFFF; }
html.a11y-hc .srv, html.a11y-hc .panel, html.a11y-hc .a11y { background: #000000; color: #FFFFFF; border: 2px solid #FFFFFF; box-shadow: none; }
html.a11y-hc .btn, html.a11y-hc .tag { background: #FFD400 !important; color: #000000 !important; }
html.a11y-hc .btn:hover { background: #FFFFFF !important; }
html.a11y-hc a, html.a11y-hc .panel a { color: #FFD400; }
html.a11y-hc .btn { color: #000000; }
html.a11y-hc .a11y .reset { background: #000000; color: #FFD400; border-color: #FFD400; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.top-actions { display: flex; gap: 10px; flex-wrap: wrap; }
a.a11y-btn { text-decoration: none; display: inline-block; }
.alert { background: #FEF2F2; color: #8A1C14; border-left: 4px solid #B3261E; padding: 12px 16px; border-radius: 8px; margin: 0 0 18px; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 1.05rem; color: #FFFFFF; background: var(--atlas); border-radius: 8px; padding: 13px 18px; }
.btn:hover { background: var(--atlas-dark); }
.btn:focus-visible, .apps a:focus-visible, .panel a:focus-visible { outline: 3px solid #FFD400; outline-offset: 3px; }
.muted { color: var(--muted); font-size: .92rem; }
.login { max-width: 640px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 8px; }
.cols .panel { margin-top: 0; display: flex; flex-direction: column; }
.list { list-style: none; padding: 0; margin: 4px 0 12px; }
.list li { padding: 8px 0; border-bottom: 1px solid #E2E8F0; display: flex; flex-direction: column; gap: 2px; }
.list li:last-child { border-bottom: 0; }
.more { margin-top: auto; font-weight: 600; }
.badge { display: inline-block; font-size: .8rem; background: var(--atlas); color: #FFFFFF; border-radius: 999px; padding: 1px 9px; vertical-align: middle; }
.late { color: #B3261E; font-weight: 600; }
.apps { margin-top: 28px; }
.apps > h3 { color: #E2E8F0; font-size: 1.1rem; margin: 0 0 12px; }
.apps { margin-top: 18px; }
.apps-title { color: #FFFFFF; font-size: 1.45rem; margin: 34px 0 0; }
.szo { margin-top: 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px 28px; background: #FFFFFF; border-radius: 14px; border-left: 10px solid var(--atlas); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.szo > div { flex: 1 1 420px; }
.szo h2 { margin: 6px 0 6px; font-size: 2rem; }
.szo p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.szo .tag { display: inline-block; font-size: .85rem; font-weight: 600; color: #FFFFFF; background: var(--atlas); border-radius: 999px; padding: 2px 11px; }
.btn-szo { font-size: 1.15rem; padding: 15px 26px; }
html.a11y-hc .szo { background: #000000; color: #FFFFFF; border: 2px solid #FFFFFF; border-left: 10px solid #FFD400; box-shadow: none; }
html.a11y-hc .szo p, html.a11y-hc .apps > h3 { color: #FFFFFF; }
html.a11y-hc .apps-title { color: #FFD400; }
.apps .grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.app a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; background: #FFFFFF; color: var(--text); text-decoration: none; border-radius: 12px; border-top: 6px solid var(--c); box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.app a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.app-name { font-weight: 700; font-size: 1.12rem; }
.app-desc { color: var(--muted); font-size: .93rem; flex: 1; }
.app .tag { align-self: flex-start; font-size: .78rem; font-weight: 600; color: #FFFFFF; background: var(--c); border-radius: 999px; padding: 2px 10px; }
html.a11y-hc .app a, html.a11y-hc .alert { background: #000000; color: #FFFFFF; border: 2px solid #FFFFFF; box-shadow: none; }
html.a11y-hc .app .tag, html.a11y-hc .badge, html.a11y-hc .btn { background: #FFD400 !important; color: #000000 !important; }
html.a11y-hc .app-desc, html.a11y-hc .muted { color: #FFFFFF; }

@media (prefers-reduced-motion: reduce) { .app a:hover { transform: none; } }

/* Struktura organizacyjna (struktura.php) */
.logo-link { display: inline-block; border-radius: 6px; }
.logo-link:focus-visible { outline: 3px solid #FFD400; outline-offset: 4px; }
.org-search { margin: 12px 0 16px; max-width: 520px; }
.org-search label { display: block; font-weight: 600; margin-bottom: 6px; }
.org-search input { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid #475569; border-radius: 8px; color: var(--text); background: #FFFFFF; }
.org-search input:focus-visible { outline: 3px solid #1E6DFF; outline-offset: 2px; border-color: #1E6DFF; }
.org ul.tree, .org ul.teams, .org ul.people { list-style: none; margin: 6px 0; padding: 0; }
.org ul.tree ul.tree { padding-left: 18px; border-left: 3px solid #BFD4FF; }
.org li.unit, .org li.team { margin: 6px 0; }
.org details { border: 1px solid #CBD5E1; border-radius: 10px; background: #FFFFFF; }
.org li.unit > details { border-left: 6px solid #1E6DFF; }
.org summary { cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.org summary:focus-visible { outline: 3px solid #1E6DFF; outline-offset: 2px; border-radius: 8px; }
.org .u-name { font-weight: 700; font-size: 1.08rem; }
.org .t-name { font-weight: 600; }
.org .u-head { flex-basis: 100%; font-size: .92rem; color: var(--muted); }
.org .u-body { padding: 0 14px 12px; }
.org .u-body h3 { font-size: 1rem; margin: 12px 0 4px; }
.org ul.people li { padding: 4px 0; border-bottom: 1px solid #E2E8F0; }
.org ul.people li:last-child { border-bottom: 0; }
.org .team details { background: #F8FAFC; }
.org .team details > :not(summary) { margin-left: 14px; margin-right: 14px; }
.org .goal { margin: 0 14px 6px; }
.org .pill { display: inline-block; font-size: .78rem; font-weight: 600; color: #FFFFFF; background: #1550C4; border-radius: 999px; padding: 0 8px; }
.org .free-title { margin: 18px 0 4px; font-size: 1.1rem; }
html.a11y-hc .org details, html.a11y-hc .org .team details { background: #000000; border-color: #FFFFFF; }
html.a11y-hc .org li.unit > details { border-left-color: #FFD400; }
html.a11y-hc .org .pill { background: #FFD400; color: #000000; }
html.a11y-hc .org .u-head, html.a11y-hc .org ul.people li { color: #FFFFFF; border-color: #FFFFFF; }
html.a11y-hc .org-search input { background: #000000; color: #FFFFFF; border-color: #FFFFFF; }
