:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #120306;
  --bg-deep: #080102;
  --panel: rgba(28, 7, 11, .94);
  --panel-2: rgba(42, 10, 16, .92);
  --panel-3: rgba(18, 4, 7, .86);
  --line: rgba(255, 93, 108, .19);
  --line-strong: rgba(255, 75, 92, .43);
  --muted: #a98f93;
  --text: #fff7f8;
  --red: #ef233c;
  --red-bright: #ff4055;
  --red-dark: #850f20;
  --red-glow: rgba(239, 35, 60, .28);
  --yellow: #e6b929;
  --green: #27b77d;
  --purple: #a95ee0;
  --danger: #ff3049;
  --shadow: 0 28px 90px rgba(0, 0, 0, .58);
  --inner: inset 0 1px 0 rgba(255,255,255,.035);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg-deep); scroll-behavior: smooth; }
body {
  margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(166, 14, 35, .42), transparent 31rem),
    radial-gradient(circle at 92% 7%, rgba(100, 0, 17, .46), transparent 37rem),
    linear-gradient(135deg, #090102 0%, #1b0509 46%, #0b0103 100%);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 38px 38px; mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(239,35,60,.45); color: white; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0d0204; }
::-webkit-scrollbar-thumb { background: #4c111b; border: 2px solid #0d0204; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #77182a; }

.boot-screen { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.tablet-boot { position:relative; min-height:100vh; display:grid; place-items:center; overflow:hidden; padding:24px; background:radial-gradient(circle at 50% 42%,#0d3159 0,#06172d 36%,#020813 72%); }
.tablet-boot-grid { position:absolute; inset:0; opacity:.20; background-image:linear-gradient(rgba(87,169,255,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(87,169,255,.13) 1px,transparent 1px); background-size:42px 42px; mask-image:radial-gradient(circle at center,#000,transparent 74%); }
.tablet-boot-panel { position:relative; width:min(520px,100%); overflow:hidden; padding:44px 38px 32px; text-align:center; border:1px solid rgba(84,166,255,.34); border-radius:26px; background:linear-gradient(145deg,rgba(8,30,57,.95),rgba(3,13,27,.97)); box-shadow:0 35px 110px rgba(0,4,14,.75),0 0 60px rgba(30,130,238,.15),inset 0 1px 0 rgba(255,255,255,.06); }
.tablet-boot-panel::before { content:""; position:absolute; inset:8px; pointer-events:none; border:1px solid rgba(93,173,255,.10); border-radius:19px; }
.tablet-boot-scan { position:absolute; left:0; right:0; height:2px; top:-4px; background:linear-gradient(90deg,transparent,#65b6ff,transparent); box-shadow:0 0 24px #38a0ff; animation:tabletScan 1.8s ease-in-out infinite; }
.tablet-boot-logo { width:108px; height:108px; object-fit:contain; filter:drop-shadow(0 12px 24px rgba(0,0,0,.5)); animation:tabletLogo 1.6s ease-in-out infinite alternate; }
.tablet-boot-kicker { margin:22px 0 7px; color:#58adff; font-size:.68rem; font-weight:950; letter-spacing:.22em; }
.tablet-boot h1 { margin:0; color:#f4f9ff; font-size:clamp(1.55rem,5vw,2.15rem); letter-spacing:-.025em; }
.tablet-boot-status { display:flex; justify-content:center; align-items:center; gap:9px; margin:22px 0 13px; color:#9cb6d2; font-size:.69rem; letter-spacing:.12em; }
.tablet-boot-status span { width:8px; height:8px; border-radius:50%; background:#2bd4a0; box-shadow:0 0 0 5px rgba(43,212,160,.10),0 0 16px rgba(43,212,160,.65); animation:tabletPulse 1s ease-in-out infinite; }
.tablet-boot-progress { height:5px; overflow:hidden; border-radius:999px; background:#061426; box-shadow:inset 0 1px 4px rgba(0,0,0,.6); }
.tablet-boot-progress i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#126bc6,#49adff,#126bc6); box-shadow:0 0 15px rgba(57,166,255,.65); animation:tabletProgress 1.15s cubic-bezier(.2,.8,.2,1) forwards; }
.tablet-boot-meta { display:flex; justify-content:space-between; gap:16px; margin-top:15px; color:#557592; font-size:.58rem; font-weight:850; letter-spacing:.09em; }
@keyframes tabletScan { 0%{top:0;opacity:0} 15%{opacity:1} 85%{opacity:1} 100%{top:100%;opacity:0} }
@keyframes tabletLogo { from{transform:scale(.98);filter:drop-shadow(0 10px 18px rgba(0,0,0,.45))} to{transform:scale(1.03);filter:drop-shadow(0 12px 28px rgba(31,145,255,.28))} }
@keyframes tabletPulse { 50%{opacity:.45;transform:scale(.75)} }
@keyframes tabletProgress { from{width:3%} to{width:100%} }
@media (max-width:560px) { .tablet-boot-panel{padding:34px 22px 26px;border-radius:20px}.tablet-boot-logo{width:88px;height:88px}.tablet-boot-meta{font-size:.5rem} }
@media (prefers-reduced-motion:reduce) { .tablet-boot-scan,.tablet-boot-logo,.tablet-boot-status span,.tablet-boot-progress i{animation:none}.tablet-boot-progress i{width:100%} }
.app-shell { min-height: 100vh; position: relative; isolation: isolate; }
.ambient { position: fixed; pointer-events: none; z-index: -1; border-radius: 50%; opacity: .72; contain: paint; }
.ambient-one { width: 430px; height: 430px; top: 70px; left: -250px; background: radial-gradient(circle, rgba(239,35,60,.29), transparent 68%); }
.ambient-two { width: 620px; height: 620px; right: -330px; top: 190px; background: radial-gradient(circle, rgba(147,7,29,.32), transparent 66%); }

.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  min-height: 76px; padding: 0 28px;
  background: linear-gradient(180deg, rgba(24,4,7,.98), rgba(13,2,4,.96));
  border-top: 1px solid rgba(255,89,104,.22); border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0,0,0,.36);
}
.topbar::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background:linear-gradient(90deg,transparent,var(--red),transparent); opacity:.65; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 218px; white-space: nowrap; }
.brand-emblem {
  width: 46px; height: 46px; display:grid; place-items:center; flex:0 0 auto; border-radius:50%;
  background: radial-gradient(circle at 35% 25%, #4c1420, #160408 68%); border:1px solid rgba(255,109,122,.4);
  box-shadow: 0 0 26px rgba(239,35,60,.2), var(--inner); overflow:hidden;
}
.brand-emblem img { width:39px; height:39px; object-fit:contain; filter:drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
.brand-copy { display:grid; line-height:1.05; }
.brand-copy strong { font-size:1.02rem; letter-spacing:.16em; }
.brand-copy strong b { color:#49a8ff; font-weight:500; margin:0 .12em; }
.mobile-menu-toggle { display:none; width:43px; height:40px; padding:9px; border:1px solid rgba(83,165,255,.26); border-radius:10px; background:rgba(13,48,86,.62); }
.mobile-menu-toggle i { display:block; height:2px; margin:4px 0; border-radius:9px; background:#b9daf8; transition:transform .18s ease,opacity .18s ease; }
.brand-copy small { margin-top:6px; color:#cf7c87; font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; }
.nav { display:flex; align-items:stretch; gap:3px; flex:1; min-width:0; }
.nav-item, .nav-button {
  position:relative; display:flex; align-items:center; gap:8px; border:0; background:transparent; color:#cbb8bc;
  padding:27px 15px 24px; font-weight:850; font-size:.84rem; letter-spacing:.025em; border-bottom:2px solid transparent; white-space:nowrap;
}
.nav-item::before, .nav-button::before { content:""; position:absolute; inset:10px 3px; border-radius:8px; background:linear-gradient(180deg,rgba(255,54,75,.09),rgba(255,54,75,.015)); opacity:0; transition:.18s ease; }
.nav-item > *, .nav-button > * { position:relative; z-index:1; }
.nav-item:hover, .nav-button:hover, .nav-item.active, .nav-button.active { color:#fff; border-bottom-color:var(--red-bright); }
.nav-item:hover::before, .nav-button:hover::before, .nav-item.active::before { opacity:1; }
.nav-icon { color:#f34b5e; font-size:1rem; }
.chevron { color:#a65764; font-size:.7rem; }
.nav-dropdown { position:relative; }
.dropdown-menu {
  display:none; position:absolute; left:0; top:calc(100% + 1px); min-width:270px; padding:9px;
  background:rgba(22,4,8,.985); border:1px solid var(--line-strong); border-top:0; border-radius:0 0 14px 14px;
  box-shadow:0 26px 70px rgba(0,0,0,.62), 0 0 30px rgba(150,7,29,.12);
}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { display:grid; }
.dropdown-menu button { display:flex; align-items:center; gap:11px; text-align:left; border:1px solid transparent; background:transparent; color:#e2d5d8; padding:10px; border-radius:9px; }
.dropdown-menu button:hover { background:linear-gradient(90deg,rgba(239,35,60,.16),rgba(239,35,60,.025)); border-color:rgba(255,80,98,.2); }
.dropdown-menu button:disabled { color:#694f54; cursor:not-allowed; }
.dropdown-menu img, .dropdown-mark { width:35px; height:35px; flex:0 0 35px; object-fit:contain; border-radius:50%; background:#21070c; border:1px solid rgba(255,90,106,.2); padding:3px; }
.dropdown-mark { display:grid; place-items:center; padding:0; color:#ff6b7b; font-size:.7rem; font-weight:950; letter-spacing:.04em; }
.dropdown-menu span:not(.dropdown-mark) { display:grid; }
.dropdown-menu strong { font-size:.82rem; }
.dropdown-menu small { color:#8e7278; margin-top:2px; }
.session-box { display:flex; align-items:center; gap:10px; margin-left:auto; }
.session-dot { width:8px; height:8px; border-radius:50%; background:#6e5257; box-shadow:0 0 0 4px rgba(110,82,87,.1); }
.session-dot.online { background:#29c987; box-shadow:0 0 0 4px rgba(41,201,135,.12),0 0 15px rgba(41,201,135,.4); }
.session-name { display:grid; min-width:120px; }
.session-name small { color:#866a70; font-size:.62rem; text-transform:uppercase; letter-spacing:.08em; }
.session-name strong { margin-top:3px; max-width:210px; overflow:hidden; text-overflow:ellipsis; font-size:.78rem; }

.main { width:min(1660px,100%); margin:0 auto; padding:34px 24px 76px; }
.content-frame {
  min-height:calc(100vh - 170px); padding:26px; border:1px solid rgba(255,87,104,.18); border-radius:22px;
  background:linear-gradient(145deg,rgba(31,6,11,.96),rgba(12,2,4,.97)); box-shadow:var(--shadow),var(--inner);
}
.page-head { display:flex; align-items:center; justify-content:space-between; gap:22px; margin-bottom:24px; padding:8px 4px 22px; border-bottom:1px solid rgba(255,81,99,.14); }
.page-identity { display:flex; align-items:center; gap:18px; min-width:0; }
.page-emblem { width:82px; height:82px; flex:0 0 82px; display:grid; place-items:center; border-radius:19px; overflow:hidden; background:radial-gradient(circle at 35% 25%,rgba(106,17,31,.8),rgba(17,3,6,.96) 70%); border:1px solid rgba(255,101,116,.34); box-shadow:0 0 30px rgba(207,17,47,.17),var(--inner); }
.page-emblem img { width:72px; height:72px; object-fit:contain; padding:3px; filter:drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.page-emblem-text span { font-weight:950; letter-spacing:.05em; color:#ff6b7c; font-size:1.25rem; }
.page-copy { min-width:0; }
.eyebrow { display:block; color:#e13f53; font-size:.68rem; font-weight:900; letter-spacing:.15em; text-transform:uppercase; }
.page-head h1 { margin:6px 0 0; font-size:clamp(1.75rem,3.5vw,2.75rem); letter-spacing:-.035em; }
.page-head p { margin:8px 0 0; color:var(--muted); max-width:760px; }
.unit-label { display:inline-block; margin-top:9px; color:#7e5d64; font-size:.68rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.page-actions { justify-content:flex-end; }
.actions { display:flex; gap:9px; flex-wrap:wrap; }

.btn { position:relative; overflow:hidden; border:1px solid rgba(255,94,111,.28); border-radius:10px; padding:10px 15px; background:linear-gradient(180deg,#321019,#1f080d); color:#fff7f8; font-weight:850; box-shadow:var(--inner); transition:transform .15s ease,filter .15s ease,border-color .15s ease; }
.btn::after { content:""; position:absolute; inset:0; background:linear-gradient(110deg,transparent,rgba(255,255,255,.08),transparent); transform:translateX(-120%); transition:.35s ease; }
.btn:hover { filter:brightness(1.15); border-color:rgba(255,111,126,.55); transform:translateY(-1px); }
.btn:hover::after { transform:translateX(120%); }
.btn-primary { background:linear-gradient(105deg,#9b1227,#f02b43); border-color:#ff5367; box-shadow:0 9px 25px rgba(210,18,47,.25),var(--inner); }
.btn-danger { background:linear-gradient(180deg,#711222,#380811); border-color:#a92c3e; }
.btn-success { background:linear-gradient(180deg,#177853,#0c3f2c); border-color:#2aaa79; }
.btn-small { padding:7px 10px; font-size:.79rem; }
.btn-ghost { background:rgba(255,255,255,.025); border-color:rgba(255,255,255,.09); }
.btn:disabled { opacity:.42; cursor:not-allowed; transform:none; }

.card { background:linear-gradient(145deg,rgba(42,9,15,.92),rgba(18,4,7,.96)); border:1px solid var(--line); border-radius:15px; box-shadow:0 18px 55px rgba(0,0,0,.3),var(--inner); }
.card-pad { padding:21px; }
.card h2 { margin-top:0; }
.grid { display:grid; gap:18px; }
.grid-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.profile-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(285px,1fr));
  gap:18px;
  align-items:stretch;
}
.profile-card {
  content-visibility:auto;
  contain-intrinsic-size:360px;
  display:flex;
  min-height:300px;
  flex-direction:column;
  overflow:hidden;
  border-color:rgba(255,93,108,.17);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.profile-card:hover {
  transform:translateY(-2px);
  border-color:rgba(255,93,110,.34);
  box-shadow:0 24px 58px rgba(0,0,0,.42),0 0 24px rgba(183,11,38,.07);
}
.profile-card-link { color:inherit; text-decoration:none; cursor:pointer; }
.profile-sort-item { position:relative; display:flex; min-width:0; }
.profile-sort-item > .profile-card { width:100%; height:100%; }
.profile-order-controls { display:none; position:absolute; z-index:5; left:12px; right:12px; top:12px; align-items:center; justify-content:space-between; gap:8px; padding:7px; border:1px solid rgba(88,172,255,.42); border-radius:11px; background:rgba(3,15,30,.94); box-shadow:0 8px 30px rgba(0,5,16,.55); }
.profile-order-controls span { color:#9bcfff; font-size:.62rem; font-weight:950; letter-spacing:.13em; }
.profile-order-controls button { width:34px; height:30px; border:1px solid rgba(91,174,255,.35); border-radius:8px; background:#0d3967; color:#fff; font-weight:950; }
.profile-order-mode .profile-order-controls { display:flex; }
.profile-order-mode .profile-sort-item { cursor:grab; }
.profile-order-mode .profile-sort-item:active { cursor:grabbing; }
.profile-order-mode .profile-card { pointer-events:none; border-color:rgba(81,170,255,.48); }
.profile-sort-item.dragging { opacity:.38; transform:scale(.98); }
.requests-layout { display:grid; grid-template-columns:minmax(310px,.72fr) minmax(440px,1.28fr); gap:18px; align-items:start; }
.request-form-card { position:sticky; top:104px; }
.requests-list { display:grid; gap:12px; }
.requests-list-head { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:4px 3px; }
.requests-list-head h2 { margin:0; }
.requests-list-head span { display:grid; place-items:center; min-width:35px; height:35px; border:1px solid rgba(79,163,255,.28); border-radius:10px; background:rgba(13,57,103,.56); color:#8bc7ff; font-weight:900; }
.request-card { padding:18px; }
.request-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.request-card-head h3 { margin:6px 0 0; font-size:1.08rem; }
.request-meta { display:flex; flex-wrap:wrap; gap:7px 18px; margin-top:13px; color:#7893af; font-size:.76rem; }
.request-card > p { margin:15px 0 0; color:#c2d4e7; line-height:1.65; white-space:pre-wrap; }
.request-review-note { margin-top:14px; padding:11px 13px; border:1px solid rgba(79,160,255,.18); border-radius:9px; background:rgba(7,34,62,.65); color:#bcd4ea; }
.request-actions { margin-top:15px; padding-top:14px; border-top:1px solid rgba(77,157,255,.15); }
@media (max-width:960px) { .requests-layout{grid-template-columns:1fr}.request-form-card{position:static} }
.profile-card-link:focus-visible { outline:3px solid var(--red-bright); outline-offset:3px; }
.profile-banner {
  position:relative;
  height:104px;
  flex:0 0 104px;
  overflow:hidden;
  isolation:isolate;
  background:
    radial-gradient(circle at 84% 28%,rgba(255,58,80,.18),transparent 31%),
    linear-gradient(120deg,#140305,#4b0a15);
  border-bottom:1px solid rgba(255,88,105,.12);
}
.profile-banner::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(90deg,rgba(8,1,2,.82),rgba(29,4,9,.35) 62%,rgba(57,6,15,.08)),
    repeating-linear-gradient(135deg,transparent 0 16px,rgba(255,255,255,.014) 16px 17px);
}
.profile-banner-lssd {
  background:
    radial-gradient(circle at 84% 28%,rgba(226,170,30,.13),transparent 31%),
    linear-gradient(120deg,#140305,#3d0b12);
}
.profile-banner-glow {
  position:absolute;
  right:-38px;
  top:-62px;
  width:190px;
  height:190px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,44,66,.14),transparent 69%);
}
.profile-banner-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.62; }
.profile-banner-lssd .profile-banner-glow {
  background:radial-gradient(circle,rgba(224,171,43,.11),transparent 69%);
}
.profile-banner-seal {
  position:absolute;
  right:14px;
  top:8px;
  width:88px;
  height:88px;
  object-fit:contain;
  opacity:.30;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.58));
  z-index:2;
}
.profile-banner-unit {
  position:absolute;
  left:18px;
  bottom:15px;
  color:rgba(255,230,233,.78);
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.18em;
  text-transform:uppercase;
  z-index:2;
}
.profile-main {
  display:flex;
  flex:1;
  flex-direction:column;
  padding:18px 19px 20px;
}
.profile-identity-row {
  display:grid;
  grid-template-columns:62px minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
}
.avatar {
  position:relative;
  width:62px;
  height:62px;
  flex:0 0 62px;
  margin:0;
  border:3px solid rgba(255,92,109,.22);
  border-radius:14px;
  object-fit:cover;
  object-position:center;
  background:#350a12;
  box-shadow:0 8px 22px rgba(0,0,0,.34);
}
.avatar-placeholder {
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#50101d,#1e0509);
  color:#ffe6ea;
}
.avatar-placeholder span {
  font-size:1.1rem;
  font-weight:950;
  letter-spacing:.03em;
  text-shadow:0 3px 10px rgba(0,0,0,.45);
}
.profile-identity-copy { min-width:0; }
.profile-main h3 {
  margin:0 0 5px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:1.05rem;
}
.profile-agency {
  align-self:start;
  margin:0;
  border:1px solid rgba(255,89,106,.22);
  border-radius:6px;
  padding:4px 7px;
  color:#ef6575;
  font-size:.63rem;
  font-weight:900;
  letter-spacing:.08em;
}
.meta {
  overflow:hidden;
  color:var(--muted);
  font-size:.82rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.profile-bio {
  margin-top:auto;
  padding-top:13px;
  min-height:55px;
}
.profile-main p {
  margin:0;
  line-height:1.5;
  color:#c9b6ba;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.badges {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:15px;
}
.badge {
  border:1px solid rgba(255,93,111,.2);
  background:rgba(65,15,24,.62);
  border-radius:999px;
  padding:5px 9px;
  font-size:.73rem;
  font-weight:850;
}
.badge-blue { border-color:#315f92; color:#83b9f0; background:rgba(18,42,68,.58); }
.badge-yellow { border-color:#856c22; color:#f1ca4f; background:rgba(67,50,12,.55); }
.badge-red { border-color:#a72d40; color:#ff8794; background:rgba(92,14,27,.55); }
.badge-green { border-color:#237756; color:#65ddb0; background:rgba(12,63,44,.55); }
.badge-purple { border-color:#6d3b91; color:#d09af1; background:rgba(56,22,79,.55); }

.profile-detail { overflow:hidden; }
.profile-detail-hero {
  position:relative; height:210px; overflow:hidden;
  background:radial-gradient(circle at 78% 35%,rgba(255,58,80,.24),transparent 26%),linear-gradient(120deg,#120204,#5b0b19);
  border-bottom:1px solid var(--line-strong);
}
.profile-detail-hero::before { content:""; position:absolute; inset:0; background:repeating-linear-gradient(135deg,transparent 0 25px,rgba(255,255,255,.018) 25px 26px); }
.profile-detail-seal { position:absolute; right:clamp(22px,7vw,100px); top:18px; width:175px; height:175px; object-fit:contain; opacity:.28; filter:drop-shadow(0 12px 24px rgba(0,0,0,.6)); }
.profile-detail-banner-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.72; }
.profile-detail-body { position:relative; display:grid; grid-template-columns:170px minmax(0,1fr); gap:24px 30px; padding:0 34px 34px; }
.profile-detail-avatar { width:170px; height:170px; margin-top:-74px; z-index:2; border:5px solid #25070c; border-radius:24px; object-fit:cover; background:linear-gradient(145deg,#50101d,#1e0509); box-shadow:0 18px 38px rgba(0,0,0,.5); }
.profile-detail-avatar.avatar-placeholder { display:grid; place-items:center; font-size:2.4rem; font-weight:950; }
.profile-detail-identity { padding-top:24px; min-width:0; }
.profile-detail-identity h2 { margin:10px 0 5px; font-size:clamp(1.65rem,3vw,2.5rem); }
.profile-detail-section { grid-column:1/-1; padding-top:22px; border-top:1px solid var(--line); }
.profile-detail-section > p { margin:12px 0 0; color:#d5c1c5; line-height:1.75; white-space:pre-wrap; }
.division-detail-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(185px,1fr)); gap:10px; margin-top:13px; }
.division-detail { display:grid; gap:6px; padding:14px; border:1px solid var(--line); border-radius:11px; background:rgba(45,9,16,.72); }
.division-detail span { color:#f05769; font-size:.72rem; font-weight:950; letter-spacing:.1em; }
.division-detail strong { color:#f7e9eb; }

.profile-editor-card { max-width:1050px; margin:0 auto; }
.division-editor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.division-editor { display:grid; gap:10px; padding:14px; border:1px solid var(--line); border-radius:11px; background:rgba(45,9,16,.62); }
.division-toggle { display:flex; align-items:center; gap:9px; color:#fff; }
.division-toggle input { width:18px; height:18px; accent-color:var(--red-bright); }
.division-editor > input,.division-editor > select { width:100%; border:1px solid rgba(255,95,112,.21); border-radius:9px; background:rgba(13,2,4,.82); color:white; padding:10px 11px; outline:none; }

.sync-badge { display:inline-flex; align-items:center; gap:9px; padding:9px 13px; border:1px solid #856c22; border-radius:999px; background:rgba(67,50,12,.55); color:#f1ca4f; font-size:.75rem; font-weight:900; white-space:nowrap; }
.sync-badge i { width:8px; height:8px; border-radius:50%; background:#e6b929; box-shadow:0 0 0 4px rgba(230,185,41,.12); }
.hours-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:16px; }
.hours-stat { display:grid; gap:7px; padding:18px; min-height:128px; }
.hours-stat span { color:#c9b6ba; font-size:.78rem; font-weight:850; text-transform:uppercase; letter-spacing:.06em; }
.hours-stat strong { font-size:clamp(1.65rem,3vw,2.25rem); color:#fff; }
.hours-stat small { color:#7f6268; }
.hours-toolbar { display:grid; grid-template-columns:220px 220px minmax(260px,1fr); gap:13px; margin-bottom:14px; }
.hours-toolbar :disabled { cursor:not-allowed; opacity:.62; }
.hours-connection-notice { margin-bottom:18px; }
.hours-corps-list { display:grid; gap:15px; }
.hours-corps { overflow:hidden; }
.hours-corps-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:17px 19px; border-bottom:1px solid var(--line); }
.hours-corps-head h2 { margin:0; font-size:1rem; }
.hours-corps-head p { margin:5px 0 0; color:var(--muted); font-size:.78rem; }
.hours-count { padding:5px 9px; border:1px solid var(--line); border-radius:999px; color:#d58b96; background:rgba(74,14,25,.55); font-size:.72rem; font-weight:900; white-space:nowrap; }
.hours-table { border:0; border-radius:0; }
.hours-table table { min-width:950px; }
.hours-empty { padding:24px; color:#80656a; text-align:center; font-style:italic; }

.table-wrap { width:100%; overflow:auto; border:1px solid var(--line); border-radius:14px; background:rgba(12,2,4,.78); box-shadow:var(--inner); }
table { width:100%; border-collapse:separate; border-spacing:0; min-width:900px; }
th { position:sticky; top:0; z-index:2; background:linear-gradient(180deg,#40101a,#26070d); color:#f0dfe2; text-transform:uppercase; letter-spacing:.065em; font-size:.7rem; }
th:first-child { border-top-left-radius:12px; }
th:last-child { border-top-right-radius:12px; }
th,td { padding:11px 12px; border-bottom:1px solid rgba(255,83,100,.10); border-right:1px solid rgba(255,83,100,.08); text-align:left; }
td { color:#e6d8db; background:rgba(28,6,10,.55); }
tbody tr:nth-child(even) td { background:rgba(37,8,13,.61); }
tbody tr:hover td { background:rgba(99,15,29,.38); }
.group-row td { background:linear-gradient(90deg,#671126,#9e172f,#671126)!important; color:white; font-weight:950; text-align:center; letter-spacing:.08em; text-transform:uppercase; box-shadow:inset 0 1px rgba(255,255,255,.08); }
.agency-corps-divider td > div { display:inline-grid; gap:3px; }
.agency-corps-divider td { position:relative; }
.agency-corps-divider small { color:#e6a5b0; font-size:.65rem; font-weight:700; letter-spacing:.02em; text-transform:none; }
.agency-corps-divider span { position:absolute; right:14px; top:50%; transform:translateY(-50%); padding:4px 8px; border:1px solid rgba(255,255,255,.22); border-radius:999px; font-size:.66rem; letter-spacing:0; text-transform:none; }
.management-section { margin-top:20px; }
@media print {
  .topbar,.site-footer,.page-actions,.btn,.search-row { display:none!important; }
  body,.app-shell,.main,.content-frame,.card,.table-wrap { background:#fff!important; color:#111!important; box-shadow:none!important; border-color:#bbb!important; }
  .management-section { break-inside:avoid; }
  table { min-width:0!important; font-size:10px; }
}
.empty { color:#846a70; font-style:italic; }
.inline-input,.inline-select { width:100%; min-width:120px; padding:8px 9px; border:1px solid rgba(255,91,108,.22); border-radius:8px; background:#160408; color:white; outline:none; }
.checkbox { width:18px; height:18px; accent-color:var(--red-bright); }
.status-pill { display:inline-flex; align-items:center; justify-content:center; min-width:92px; padding:5px 10px; border-radius:999px; font-size:.76rem; font-weight:900; }
.status-active { background:#0e6445; color:#b8ffe2; border:1px solid #19845c; }
.status-leave { background:#6a5110; color:#fff0ae; border:1px solid #8d6e1d; }
.status-suspended { background:#841326; color:#ffd0d6; border:1px solid #ad2b40; }
.status-dismissed,.status-inactive { background:#38282b; color:#c5b4b8; border:1px solid #554147; }

.search-row { display:flex; gap:10px; margin-bottom:15px; flex-wrap:wrap; }
.search-input { min-width:min(420px,100%); }
.field { display:grid; gap:7px; }
.field label { color:#eadadd; font-size:.82rem; font-weight:850; }
.field input,.field select,.field textarea,.search-input { border:1px solid rgba(255,95,112,.21); border-radius:10px; background:rgba(13,2,4,.82); color:white; padding:11px 12px; outline:none; box-shadow:inset 0 1px 8px rgba(0,0,0,.25); }
.field input::placeholder,.field textarea::placeholder,.search-input::placeholder { color:#765d62; }
.field input:focus,.field select:focus,.field textarea:focus,.search-input:focus { border-color:#f34358; box-shadow:0 0 0 3px rgba(239,35,60,.13),inset 0 1px 8px rgba(0,0,0,.25); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.form-grid .full { grid-column:1/-1; }
.help { color:#8c7378; font-size:.78rem; }

.modal-backdrop { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:18px; background:rgba(4,0,1,.91); }
.modal { width:min(720px,100%); max-height:90vh; overflow:auto; background:linear-gradient(145deg,#2a0710,#100204); border:1px solid rgba(255,91,108,.36); border-radius:17px; box-shadow:0 32px 100px rgba(0,0,0,.7),0 0 50px rgba(174,9,35,.12); }
.modal-head { display:flex; justify-content:space-between; align-items:center; padding:18px 20px; border-bottom:1px solid var(--line); background:rgba(255,45,67,.035); }
.modal-head h2 { margin:0; }
.modal-body { padding:20px; }
.modal-foot { display:flex; justify-content:flex-end; gap:9px; padding:16px 20px; border-top:1px solid var(--line); }
.icon-btn { border:0; background:transparent; color:#be9fa5; font-size:1.25rem; }

.notice { padding:13px 15px; border:1px solid rgba(255,91,108,.22); border-radius:10px; background:rgba(58,13,21,.54); color:#dac7cb; }
.notice-success { border-color:#217658; background:#0d3527; color:#a8eed3; }
.notice-error { border-color:#b42c42; background:#490c17; color:#ffc0c8; }
.notice-warning { border-color:#8d6d1c; background:#3a2d0a; color:#f5dd8b; }
.counter { display:flex; align-items:center; gap:7px; }
.counter strong { min-width:38px; text-align:center; }
.counter button { width:29px; height:29px; border:1px solid rgba(255,91,108,.26); border-radius:7px; background:#36101a; color:white; }
.account-card { display:grid; gap:13px; padding:17px; border:1px solid var(--line); border-radius:12px; background:linear-gradient(145deg,rgba(49,10,18,.8),rgba(19,3,6,.9)); box-shadow:var(--inner); }
.account-head { display:flex; justify-content:space-between; gap:12px; }
.permission-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:8px; }
.permission-item { display:flex; align-items:center; gap:7px; padding:8px; border:1px solid rgba(255,91,108,.16); border-radius:8px; background:rgba(56,13,21,.5); }
.divider { height:1px; background:var(--line); margin:18px 0; }
.muted { color:var(--muted); }
.small { font-size:.8rem; }
.hidden { display:none!important; }
.loading { opacity:.65; pointer-events:none; }

.toast-stack { position:fixed; right:18px; bottom:18px; z-index:200; display:grid; gap:9px; width:min(390px,calc(100% - 36px)); }
.toast { padding:13px 15px; border:1px solid rgba(255,92,109,.32); border-radius:11px; background:linear-gradient(145deg,#3b0c16,#1b0408); box-shadow:var(--shadow); }
.toast.error { border-color:#db3c52; }
.toast.success { border-color:#2f936b; }
.site-footer { width:min(1660px,100%); margin:0 auto; padding:0 28px 28px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; color:#684b51; font-size:.66rem; font-weight:850; letter-spacing:.11em; text-transform:uppercase; }
.site-footer span:nth-child(2) { color:#9e6570; text-align:center; }
.site-footer span:last-child { text-align:right; }

@media (max-width:1120px) {
  .topbar { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:9px; padding:8px 14px; }
  .brand { min-height:54px; }
  .mobile-menu-toggle { display:block; grid-column:2; }
  .menu-open .mobile-menu-toggle i:nth-child(1) { transform:translateY(6px) rotate(45deg); }
  .menu-open .mobile-menu-toggle i:nth-child(2) { opacity:0; }
  .menu-open .mobile-menu-toggle i:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
  .nav { display:none; grid-column:1/-1; order:3; width:100%; overflow:visible; padding:8px; border:1px solid rgba(72,154,255,.20); border-radius:14px; background:rgba(3,14,28,.94); }
  .menu-open .nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nav-item,.nav-button { width:100%; min-height:48px; justify-content:flex-start; padding:12px; border:1px solid transparent; border-radius:9px; }
  .nav-item:hover,.nav-button:hover,.nav-item.active,.nav-button.active { border-color:rgba(77,160,255,.22); border-bottom-color:#48a6ff; background:rgba(30,111,198,.13); }
  .nav-dropdown { min-width:0; }
  .dropdown-menu { position:static; grid-column:1/-1; min-width:0; margin-top:3px; border:1px solid rgba(68,151,255,.25); border-radius:10px; box-shadow:none; }
  .nav-dropdown:hover .dropdown-menu,.nav-dropdown:focus-within .dropdown-menu { display:none; }
  .nav-dropdown.dropdown-open .dropdown-menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .session-box { grid-column:3; }
  .session-name { display:none; }
  .grid-3,.grid-2 { grid-template-columns:1fr; }
  .hours-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hours-toolbar { grid-template-columns:1fr 1fr; }
  .hours-search-field { grid-column:1/-1; }
}
@media (max-width:720px) {
  .topbar { grid-template-columns:minmax(0,1fr) auto auto; padding:6px 9px; }
  .menu-open .nav { grid-template-columns:1fr; max-height:calc(100vh - 82px); overflow-y:auto; }
  .nav-dropdown.dropdown-open .dropdown-menu { grid-template-columns:1fr; }
  .mobile-menu-toggle { width:40px; }
  .session-box { gap:5px; }
  .session-box .btn { padding:8px 9px; font-size:.72rem; }
  .main { padding:18px 9px 48px; }
  .content-frame { padding:15px; border-radius:16px; }
  .page-head { align-items:flex-start; flex-direction:column; }
  .page-identity { align-items:flex-start; }
  .page-emblem { width:62px; height:62px; flex-basis:62px; border-radius:14px; }
  .page-emblem img { width:55px; height:55px; }
  .page-actions { width:100%; }
  .form-grid { grid-template-columns:1fr; }
  .form-grid .full { grid-column:auto; }
  .brand { min-width:auto; }
  .brand-copy small { display:none; }
  .profile-grid { grid-template-columns:1fr; }
  .site-footer { padding:0 14px 20px; grid-template-columns:1fr; text-align:center; }
  .site-footer span:last-child { text-align:center; }
  .profile-detail-hero { height:150px; }
  .profile-detail-seal { width:120px; height:120px; }
  .profile-detail-body { grid-template-columns:92px minmax(0,1fr); gap:16px; padding:0 17px 22px; }
  .profile-detail-avatar { width:92px; height:92px; margin-top:-42px; border-radius:17px; }
  .profile-detail-identity { padding-top:14px; }
  .division-editor-grid { grid-template-columns:1fr; }
  .hours-summary { grid-template-columns:1fr; }
  .hours-toolbar { grid-template-columns:1fr; }
  .hours-search-field { grid-column:auto; }
  .hours-corps-head { align-items:flex-start; }
  .table-wrap { margin-left:-6px; margin-right:-6px; width:calc(100% + 12px); border-radius:10px; -webkit-overflow-scrolling:touch; }
  th,td { padding:9px 10px; }
  .card-pad { padding:16px; }
  .request-card-head { flex-direction:column; }
}

/* v35 — centrum powiadomień */
.notification-nav { gap:7px; }
.notification-count { min-width:20px; height:20px; display:inline-grid; place-items:center; padding:0 5px; border-radius:999px; background:#2388ff; color:#fff; font-size:10px; box-shadow:0 0 16px rgba(35,136,255,.45); }
.notification-compose { margin-bottom:18px; }
.notification-compose h2 { margin:0 0 16px; }
.notification-list { display:grid; gap:13px; }
.notification-card { position:relative; overflow:hidden; }
.notification-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#2388ff; }
.notification-card.is-read { opacity:.72; }
.notification-card.priority-important::before { background:#f2b632; }
.notification-card.priority-urgent::before { background:#ef435f; box-shadow:0 0 20px rgba(239,67,95,.5); }
.notification-head,.notification-foot { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.notification-head h2 { margin:5px 0 0; font-size:20px; }
.notification-head time,.notification-foot>span { color:var(--muted); font-size:12px; }
.notification-card>p { margin:16px 0; color:#d4e3f2; line-height:1.65; }
.notification-priority { color:#79bdff; font-size:10px; font-weight:900; letter-spacing:.12em; }
.priority-important .notification-priority { color:#f2c75d; }
.priority-urgent .notification-priority { color:#ff7188; }
.request-template-fields { grid-column:1/-1; padding-top:4px; }
.request-category-filter { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 14px; }
.request-search { margin:0 0 10px; }
.request-search .search-input { width:100%; }
.request-category-filter .active { border-color:#58adff; background:linear-gradient(105deg,#1163bd,#2496ff); }
.request-structured-content { line-height:1.75; padding:14px; border:1px solid rgba(78,161,255,.16); border-radius:10px; background:rgba(3,15,29,.42); }
.guest-honeypot { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.guest-request-info p { color:#b9cde2; line-height:1.7; }
@media (max-width:720px) {
  .notification-head,.notification-foot { flex-direction:column; }
  .notification-foot .actions { width:100%; }
  .notification-foot .btn { flex:1; }
  .request-category-filter { flex-wrap:nowrap; overflow-x:auto; padding-bottom:7px; -webkit-overflow-scrolling:touch; }
  .request-category-filter .btn { flex:0 0 auto; }
}

/* v6 — compact profile cards and cleaner home layout */
@media (min-width: 1400px) {
  .profile-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .profile-identity-row { grid-template-columns:56px minmax(0,1fr) auto; gap:10px; }
  .avatar { width:56px; height:56px; }
  .profile-banner { height:88px; flex-basis:88px; }
  .profile-banner-seal { width:72px; height:72px; }
}


/* Ogranicza koszt efektów na słabszych urządzeniach bez zmiany układu. */
@media (max-width:1120px), (prefers-reduced-motion: reduce) {
  body::before, .ambient { display:none; }
  .btn, .profile-card, .nav-item::before, .nav-button::before { transition:none; }
}

/* v25 — ExumaLSPD Navy Command UI */
:root {
  --bg: #06101f;
  --bg-deep: #020813;
  --panel: rgba(8, 22, 42, .94);
  --panel-2: rgba(11, 31, 58, .92);
  --panel-3: rgba(5, 17, 34, .88);
  --line: rgba(84, 160, 255, .18);
  --line-strong: rgba(69, 151, 255, .44);
  --muted: #8fa6c2;
  --text: #f3f8ff;
  --red: #2388ff;
  --red-bright: #48a6ff;
  --red-dark: #0c4d9c;
  --red-glow: rgba(35, 136, 255, .25);
  --shadow: 0 28px 90px rgba(0, 6, 18, .58);
  --inner: inset 0 1px 0 rgba(255,255,255,.055);
}

html { background:#020813; }
body {
  background:
    radial-gradient(circle at 5% -5%, rgba(23, 108, 218, .30), transparent 32rem),
    radial-gradient(circle at 95% 8%, rgba(12, 68, 151, .32), transparent 40rem),
    linear-gradient(135deg, #020813 0%, #07172c 48%, #030b18 100%);
}
body::before {
  opacity:.22;
  background-image:linear-gradient(rgba(102,172,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(102,172,255,.025) 1px,transparent 1px);
}
::selection { background:rgba(41,139,255,.48); }
::-webkit-scrollbar-track { background:#030b17; }
::-webkit-scrollbar-thumb { background:#123c6d; border-color:#030b17; }
::-webkit-scrollbar-thumb:hover { background:#185594; }
.ambient-one { background:radial-gradient(circle,rgba(39,139,255,.25),transparent 68%); }
.ambient-two { background:radial-gradient(circle,rgba(17,83,173,.28),transparent 66%); }

.topbar {
  background:linear-gradient(180deg,rgba(5,17,34,.985),rgba(3,11,23,.97));
  border-top-color:rgba(91,169,255,.20);
  border-bottom-color:rgba(65,148,255,.40);
  box-shadow:0 18px 55px rgba(0,8,25,.48);
}
.topbar::after { background:linear-gradient(90deg,transparent,#2c91ff,transparent); }
.brand-emblem { background:radial-gradient(circle at 35% 25%,#143f72,#071526 68%); border-color:rgba(93,173,255,.43); box-shadow:0 0 27px rgba(39,139,255,.20),var(--inner); }
.brand-copy small { color:#73a8df; }
.nav-item,.nav-button { color:#a9bdd3; }
.nav-item::before,.nav-button::before { background:linear-gradient(180deg,rgba(48,145,255,.13),rgba(48,145,255,.02)); }
.nav-item:hover,.nav-button:hover,.nav-item.active,.nav-button.active { border-bottom-color:#48a6ff; }
.nav-icon { color:#51aaff; }
.chevron { color:#638cb7; }
.dropdown-menu { background:rgba(4,15,30,.99); border-color:rgba(68,151,255,.43); box-shadow:0 26px 70px rgba(0,7,20,.7),0 0 34px rgba(32,125,231,.12); }
.dropdown-menu button { color:#d6e5f6; }
.dropdown-menu button:hover { background:linear-gradient(90deg,rgba(42,137,245,.20),rgba(42,137,245,.025)); border-color:rgba(85,164,255,.24); }
.dropdown-menu button:disabled { color:#50657b; }
.dropdown-menu img,.dropdown-mark { background:#081c34; border-color:rgba(84,166,255,.23); }
.dropdown-mark { color:#65b4ff; }
.dropdown-menu small,.session-name small { color:#6f88a4; }

.content-frame { border-color:rgba(75,155,255,.19); background:linear-gradient(145deg,rgba(8,25,48,.96),rgba(3,12,25,.975)); box-shadow:0 30px 95px rgba(0,5,17,.62),var(--inner); }
.page-head { border-bottom-color:rgba(74,155,255,.15); }
.page-emblem { background:radial-gradient(circle at 35% 25%,rgba(18,79,143,.85),rgba(4,16,31,.97) 70%); border-color:rgba(91,172,255,.37); box-shadow:0 0 32px rgba(36,133,241,.17),var(--inner); }
.page-emblem-text span,.eyebrow { color:#55aaff; }
.unit-label { color:#66809d; }

.btn { border-color:rgba(83,166,255,.30); background:linear-gradient(180deg,#12365f,#09213f); color:#f4f9ff; }
.btn:hover { border-color:rgba(107,184,255,.62); }
.btn-primary { background:linear-gradient(105deg,#1163bd,#2496ff); border-color:#5cb3ff; box-shadow:0 10px 27px rgba(28,127,235,.28),var(--inner); }
.btn-danger { background:linear-gradient(180deg,#7f2032,#3d0d18); border-color:#b83e54; }
.btn-ghost { background:rgba(95,165,243,.045); border-color:rgba(126,184,247,.13); }

.card { background:linear-gradient(145deg,rgba(11,32,59,.93),rgba(4,16,32,.97)); border-color:rgba(75,155,255,.18); box-shadow:0 18px 58px rgba(0,7,20,.34),var(--inner); }
.profile-card { border-color:rgba(79,159,255,.18); }
.profile-card:hover { border-color:rgba(83,166,255,.42); box-shadow:0 25px 62px rgba(0,7,22,.50),0 0 28px rgba(38,135,245,.10); }
.profile-card-link:focus-visible { outline-color:#50aaff; }
.profile-banner { background:radial-gradient(circle at 84% 28%,rgba(57,153,255,.22),transparent 31%),linear-gradient(120deg,#061426,#0c3e73); border-bottom-color:rgba(80,160,255,.15); }
.profile-banner::before { background:linear-gradient(90deg,rgba(2,9,18,.84),rgba(7,29,54,.36) 62%,rgba(12,59,105,.08)),repeating-linear-gradient(135deg,transparent 0 16px,rgba(133,193,255,.022) 16px 17px); }
.profile-banner-lssd { background:radial-gradient(circle at 84% 28%,rgba(66,148,240,.19),transparent 31%),linear-gradient(120deg,#061426,#12375f); }
.profile-banner-glow,.profile-banner-lssd .profile-banner-glow { background:radial-gradient(circle,rgba(55,153,255,.18),transparent 69%); }
.profile-banner-unit { color:rgba(218,237,255,.82); }
.avatar { border-color:rgba(80,164,255,.28); background:#092344; }
.avatar-placeholder { background:linear-gradient(145deg,#164d84,#07192f); color:#e5f3ff; }
.profile-agency { border-color:rgba(78,160,255,.28); color:#6bb7ff; }
.profile-main p { color:#b8cbe0; }
.badge { border-color:rgba(78,161,255,.22); background:rgba(14,55,96,.62); }
.badge-red { border-color:#347cbf; color:#8ac8ff; background:rgba(15,67,114,.58); }
.badge-purple { border-color:#536fc4; color:#aebfff; background:rgba(34,45,100,.58); }

.profile-detail-hero { background:radial-gradient(circle at 78% 35%,rgba(58,156,255,.25),transparent 26%),linear-gradient(120deg,#061426,#0d4b86); border-bottom-color:rgba(72,157,255,.44); }
.profile-detail-avatar { border-color:#081b32; background:linear-gradient(145deg,#174e85,#07192f); }
.profile-detail-section { border-top-color:rgba(77,157,255,.18); }
.profile-detail-section > p { color:#c5d6e8; }
.division-detail,.division-editor { border-color:rgba(76,156,255,.18); background:rgba(8,36,67,.72); }
.division-detail span { color:#59abf8; }
.division-detail strong { color:#edf6ff; }
.division-toggle input,.checkbox { accent-color:#2796ff; }
.division-editor > input,.division-editor > select { border-color:rgba(80,162,255,.24); background:rgba(3,13,27,.84); }

.table-wrap { border-color:rgba(75,155,255,.20); background:rgba(3,13,26,.82); }
th { background:linear-gradient(180deg,#123a66,#092344); color:#e3f1ff; }
th,td { border-bottom-color:rgba(73,153,255,.11); border-right-color:rgba(73,153,255,.09); }
td { color:#d7e5f3; background:rgba(7,24,45,.58); }
tbody tr:nth-child(even) td { background:rgba(10,31,57,.64); }
tbody tr:hover td { background:rgba(19,67,113,.45); }
.group-row td { background:linear-gradient(90deg,#0c3c72,#1768b7,#0c3c72)!important; }
.agency-corps-divider small { color:#a9d4ff; }
.hours-count { border-color:rgba(72,155,255,.21); color:#82bfff; background:rgba(10,52,91,.58); }
.hours-empty,.empty { color:#6f87a2; }
.inline-input,.inline-select { border-color:rgba(76,160,255,.25); background:#06182d; }

.field label { color:#d9e8f7; }
.field input,.field select,.field textarea,.search-input { border-color:rgba(78,161,255,.23); background:rgba(3,13,27,.84); box-shadow:inset 0 1px 8px rgba(0,5,15,.34); }
.field input::placeholder,.field textarea::placeholder,.search-input::placeholder { color:#607892; }
.field input:focus,.field select:focus,.field textarea:focus,.search-input:focus { border-color:#3c9fff; box-shadow:0 0 0 3px rgba(38,145,255,.14),inset 0 1px 8px rgba(0,5,15,.3); }
.help { color:#728aa5; }

.modal-backdrop { background:rgba(0,6,15,.92); }
.modal { background:linear-gradient(145deg,#0b294c,#041225); border-color:rgba(76,160,255,.38); box-shadow:0 32px 105px rgba(0,4,14,.74),0 0 55px rgba(31,128,235,.13); }
.modal-head { border-bottom-color:rgba(78,159,255,.18); background:rgba(49,148,255,.045); }
.modal-foot { border-top-color:rgba(78,159,255,.18); }
.icon-btn { color:#9cb4cc; }
.notice { border-color:rgba(80,163,255,.24); background:rgba(11,52,91,.56); color:#c7d9eb; }
.counter button { border-color:rgba(76,160,255,.27); background:#10355d; }
.account-card { border-color:rgba(76,157,255,.19); background:linear-gradient(145deg,rgba(11,40,72,.82),rgba(4,17,34,.92)); }
.permission-item { border-color:rgba(77,158,255,.17); background:rgba(10,48,85,.52); }
.divider { background:rgba(76,157,255,.18); }
.toast { border-color:rgba(80,163,255,.34); background:linear-gradient(145deg,#0d3865,#061a33); }
.site-footer { color:#526c88; }
.site-footer span:nth-child(2) { color:#7596b8; }

/* v33 — finalne reguły panelu mobilnego (po motywie kolorystycznym) */
@media (max-width:1120px) {
  .topbar { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:9px; padding:8px 14px; }
  .mobile-menu-toggle { display:block; grid-column:2; }
  .nav { display:none; grid-column:1/-1; order:3; width:100%; overflow:visible; padding:8px; border:1px solid rgba(72,154,255,.20); border-radius:14px; background:rgba(3,14,28,.97); }
  .menu-open .nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nav-item,.nav-button { width:100%; min-height:48px; justify-content:flex-start; padding:12px; border:1px solid transparent; border-radius:9px; }
  .nav-dropdown { min-width:0; }
  .dropdown-menu { position:static; min-width:0; margin-top:3px; border:1px solid rgba(68,151,255,.25); border-radius:10px; box-shadow:none; }
  .nav-dropdown:hover .dropdown-menu,.nav-dropdown:focus-within .dropdown-menu { display:none; }
  .nav-dropdown.dropdown-open .dropdown-menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .session-box { grid-column:3; }
  .mobile-menu-toggle span { margin-left:7px; color:#d9ebff; font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
}
@media (max-width:720px) {
  .topbar { padding:6px 9px; }
  .menu-open .nav { grid-template-columns:1fr; max-height:calc(100vh - 82px); overflow-y:auto; }
  .nav-dropdown.dropdown-open .dropdown-menu { grid-template-columns:1fr; }
  .table-wrap { -webkit-overflow-scrolling:touch; }
  .content-frame { width:calc(100% - 14px); margin:10px auto; padding:13px; border-radius:14px; }
  .page-head { gap:11px; align-items:flex-start; }
  .page-head h1 { font-size:clamp(24px,8vw,34px); }
  .profile-grid,.form-grid,.owner-grid,.requests-grid { grid-template-columns:1fr; }
  .btn { min-height:44px; }
}

/* v39 — Exuma MDT: nowy interfejs operacyjny */
:root {
  --bg:#07101c;
  --bg-deep:#030812;
  --panel:#0d1a2a;
  --panel-2:#11243a;
  --panel-3:#091522;
  --line:rgba(130,170,215,.15);
  --line-strong:rgba(73,157,235,.42);
  --muted:#8da3bc;
  --text:#edf5ff;
  --red:#3097e8;
  --red-bright:#65b9ff;
  --red-dark:#135c9b;
  --red-glow:rgba(48,151,232,.20);
  --shadow:0 18px 55px rgba(0,5,14,.38);
}
body {
  background:radial-gradient(circle at 72% -10%,rgba(41,119,191,.17),transparent 34rem),linear-gradient(145deg,#050b14,#081422 52%,#050c16);
}
body::before { opacity:.16; background-size:48px 48px; }
.ambient-one { left:120px; top:-180px; opacity:.34; }
.ambient-two { opacity:.28; }
.content-frame { border-radius:16px; border-color:rgba(110,161,211,.16); background:rgba(8,19,32,.78); box-shadow:0 22px 70px rgba(0,5,14,.34); backdrop-filter:blur(12px); }
.page-head { padding:4px 2px 20px; margin-bottom:20px; }
.page-emblem { width:68px; height:68px; flex-basis:68px; border-radius:15px; background:linear-gradient(145deg,#153b60,#091827); }
.page-emblem img { width:59px; height:59px; }
.page-head h1 { font-size:clamp(1.65rem,3vw,2.35rem); }
.eyebrow { color:#6bbcff; }
.card { border-radius:12px; border-color:rgba(110,161,211,.15); background:linear-gradient(145deg,rgba(17,38,61,.90),rgba(9,24,40,.94)); box-shadow:0 12px 34px rgba(0,6,16,.25),inset 0 1px rgba(255,255,255,.035); }
.card-pad { padding:19px; }
.profile-card { background:linear-gradient(155deg,#10243a,#091827); }
.profile-card:hover { transform:translateY(-3px); border-color:rgba(90,180,255,.48); box-shadow:0 18px 42px rgba(0,7,18,.42); }
.profile-banner { background:radial-gradient(circle at 82% 20%,rgba(94,181,255,.23),transparent 30%),linear-gradient(120deg,#0a1928,#174369); }
.btn { border-radius:8px; background:#122b45; border-color:rgba(103,175,237,.28); box-shadow:none; }
.btn:hover { background:#183958; transform:none; }
.btn-primary { background:#2388d8; border-color:#5cb5f7; box-shadow:0 8px 20px rgba(21,115,191,.22); }
.btn-primary:hover { background:#3199e8; }
.btn-ghost { background:rgba(120,175,225,.045); }
.field input,.field select,.field textarea,.search-input,.inline-input,.inline-select { background:#071525; border-color:rgba(114,167,216,.22); border-radius:8px; }
.field input:focus,.field select:focus,.field textarea:focus,.search-input:focus { border-color:#54adf4; box-shadow:0 0 0 3px rgba(57,157,235,.12); }
.table-wrap { border-radius:10px; border-color:rgba(112,166,215,.16); background:#071523; }
th { position:sticky; top:0; z-index:2; background:#132f4a; color:#dceeff; font-size:.69rem; letter-spacing:.055em; }
td { background:rgba(9,25,42,.82); }
tbody tr:nth-child(even) td { background:rgba(12,31,51,.86); }
tbody tr:hover td { background:rgba(23,59,91,.72); }
.group-row td { background:linear-gradient(90deg,#174f7e,#1e71ad,#174f7e)!important; }
.notice { border-radius:9px; background:rgba(25,70,108,.44); }
.modal { border-radius:14px; background:linear-gradient(145deg,#102b47,#071522); }
.toast { background:#123b5e; }
.status-pill,.badge,.hours-count { border-radius:999px; }

@media (min-width:1121px) {
  .app-shell { padding-left:274px; }
  .topbar {
    position:fixed; inset:0 auto 0 0; width:274px; height:100vh; min-height:0;
    display:flex; flex-direction:column; align-items:stretch; gap:0; padding:20px 15px 16px;
    overflow-y:auto; overflow-x:hidden; background:linear-gradient(180deg,#071625,#050e19);
    border:0; border-right:1px solid rgba(91,158,218,.22); box-shadow:18px 0 55px rgba(0,5,14,.30);
  }
  .topbar::after { inset:0 -1px 0 auto; width:1px; height:auto; background:linear-gradient(180deg,transparent,#3d9ce8 25%,rgba(61,156,232,.12) 80%,transparent); }
  .brand { min-width:0; padding:1px 6px 20px; border-bottom:1px solid rgba(118,168,214,.13); }
  .brand-emblem { width:50px; height:50px; }
  .brand-emblem img { width:43px; height:43px; }
  .brand-copy strong { font-size:.92rem; }
  .brand-copy small { color:#7193b2; }
  .nav { flex:1; display:flex; flex-direction:column; align-items:stretch; gap:5px; padding:18px 0 8px; overflow:visible; }
  .nav-item,.nav-button { width:100%; min-height:44px; padding:11px 12px; border:1px solid transparent; border-left:3px solid transparent; border-radius:9px; font-size:.79rem; }
  .nav-item::before,.nav-button::before { inset:0; border-radius:8px; background:linear-gradient(90deg,rgba(58,151,230,.16),rgba(58,151,230,.025)); }
  .nav-item:hover,.nav-button:hover,.nav-item.active,.nav-button.active { border-bottom-color:transparent; border-left-color:#53adf5; background:rgba(76,157,226,.07); }
  .nav-icon { width:19px; text-align:center; }
  .nav-dropdown { width:100%; }
  .dropdown-menu { position:static; min-width:0; margin:4px 0 4px 9px; padding:6px; border:1px solid rgba(92,158,218,.18); border-radius:9px; background:#071421; box-shadow:none; }
  .nav-dropdown:hover .dropdown-menu,.nav-dropdown:focus-within .dropdown-menu { display:grid; }
  .dropdown-menu button { padding:8px; }
  .dropdown-menu img,.dropdown-mark { width:29px; height:29px; flex-basis:29px; }
  .dropdown-menu small { display:none; }
  .session-box { margin:auto 0 0; padding:15px 5px 0; border-top:1px solid rgba(116,168,215,.14); flex-wrap:wrap; }
  .session-name { flex:1; min-width:0; }
  .session-box .btn { width:100%; margin-top:3px; }
  .main { width:100%; max-width:none; margin:0; padding:28px 30px 70px; }
  .content-frame { min-height:calc(100vh - 112px); }
  .site-footer { width:100%; max-width:none; margin:0; padding:0 32px 24px; }
}

@media (max-width:1120px) {
  .topbar { background:rgba(5,16,28,.98); border-bottom-color:rgba(73,157,235,.34); }
  .nav { background:#071522; }
  .main { padding-top:18px; }
}
@media (max-width:720px) {
  .brand-copy strong { font-size:.84rem; letter-spacing:.1em; }
  .brand-copy small { font-size:.57rem; }
  .session-name { display:none; }
  .content-frame { background:rgba(7,18,30,.90); }
  .page-emblem { width:54px; height:54px; flex-basis:54px; }
  .page-emblem img { width:47px; height:47px; }
  .page-copy .eyebrow,.unit-label { display:none; }
  .page-head { flex-direction:column; }
  .page-actions { width:100%; justify-content:flex-start; }
  .profile-grid { gap:12px; }
  .card-pad { padding:15px; }
}

/* v41 — płynne animacje interfejsu MDT */
@keyframes mdtPageIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
@keyframes mdtCardIn { from { opacity:0; transform:translateY(15px) scale(.985); } to { opacity:1; transform:none; } }
@keyframes mdtMenuIn { from { opacity:0; transform:translateX(-8px); } to { opacity:1; transform:none; } }
@keyframes mdtDropIn { from { opacity:0; transform:translateY(-7px); } to { opacity:1; transform:none; } }
@keyframes mdtModalIn { from { opacity:0; transform:translateY(20px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes mdtBackdropIn { from { opacity:0; } to { opacity:1; } }
@keyframes mdtToastIn { from { opacity:0; transform:translateX(25px); } to { opacity:1; transform:none; } }
@keyframes mdtSignal { 50% { box-shadow:0 0 0 7px rgba(41,201,135,0),0 0 18px rgba(41,201,135,.55); } }
@keyframes mdtAmbient { from { transform:translate3d(-12px,-8px,0) scale(.98); } to { transform:translate3d(14px,10px,0) scale(1.04); } }

#page > * { animation:mdtPageIn .34s cubic-bezier(.2,.75,.25,1) both; }
#page > *:nth-child(2) { animation-delay:.035s; }
#page > *:nth-child(3) { animation-delay:.07s; }
#page > *:nth-child(4) { animation-delay:.105s; }
.profile-grid .profile-card,.requests-list .request-card,.notification-list .notification-card,.hours-corps-list .hours-corps,.account-card {
  animation:mdtCardIn .38s cubic-bezier(.2,.75,.25,1) both;
}
.profile-grid > *:nth-child(2),.requests-list > *:nth-child(2),.notification-list > *:nth-child(2) { animation-delay:.035s; }
.profile-grid > *:nth-child(3),.requests-list > *:nth-child(3),.notification-list > *:nth-child(3) { animation-delay:.07s; }
.profile-grid > *:nth-child(4),.requests-list > *:nth-child(4),.notification-list > *:nth-child(4) { animation-delay:.105s; }
.profile-grid > *:nth-child(n+5) { animation-delay:.14s; }
.nav-item,.nav-button { transition:color .18s ease,background-color .18s ease,border-color .18s ease,transform .18s ease; }
.nav-item:hover,.nav-button:hover { transform:translateX(3px); }
.dropdown-menu { transform-origin:top left; }
.nav-dropdown:hover .dropdown-menu,.nav-dropdown:focus-within .dropdown-menu,.nav-dropdown.dropdown-open .dropdown-menu { animation:mdtDropIn .2s ease-out both; }
.btn { transition:background-color .18s ease,border-color .18s ease,filter .18s ease,transform .18s ease,box-shadow .18s ease; }
.btn:active { transform:scale(.97); }
.card,.profile-card,.account-card,.division-detail,.division-editor { transition:border-color .22s ease,background-color .22s ease,box-shadow .22s ease,transform .22s ease; }
tbody tr td { transition:background-color .16s ease,color .16s ease; }
.field input,.field select,.field textarea,.search-input,.inline-input,.inline-select { transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease; }
.modal-backdrop { animation:mdtBackdropIn .2s ease-out both; }
.modal { animation:mdtModalIn .28s cubic-bezier(.2,.75,.25,1) both; }
.toast { animation:mdtToastIn .26s cubic-bezier(.2,.75,.25,1) both; }
.session-dot.online { animation:mdtSignal 2.2s ease-in-out infinite; }
.notification-count { transition:transform .18s ease; }
.notification-nav:hover .notification-count { transform:scale(1.12); }
.ambient-one { animation:mdtAmbient 9s ease-in-out infinite alternate; }
.ambient-two { animation:mdtAmbient 12s ease-in-out -3s infinite alternate-reverse; }

@media (max-width:1120px) {
  .menu-open .nav { animation:mdtDropIn .22s ease-out both; }
  .nav-item:hover,.nav-button:hover { transform:none; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.001ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; transition-duration:.001ms!important; }
}

/* v42 — tryb wydajności */
html { scroll-behavior:auto; }
body::before,.ambient { display:none!important; animation:none!important; }
.content-frame { backdrop-filter:none!important; -webkit-backdrop-filter:none!important; box-shadow:0 10px 32px rgba(0,5,14,.24); }
#page > *,.profile-grid .profile-card,.requests-list .request-card,.notification-list .notification-card,.hours-corps-list .hours-corps,.account-card { animation:none!important; }
.page-head { animation:mdtPageIn .16s ease-out both; }
.session-dot.online { animation:none!important; }
.nav-item,.nav-button { transition:color .12s ease,background-color .12s ease,border-color .12s ease; }
.nav-item:hover,.nav-button:hover,.profile-card:hover { transform:none!important; }
.dropdown-menu { animation:none!important; }
.btn { transition:background-color .12s ease,border-color .12s ease; }
.card,.profile-card,.account-card,.division-detail,.division-editor { transition:border-color .12s ease; }
tbody tr td { transition:none; }
.field input,.field select,.field textarea,.search-input,.inline-input,.inline-select { transition:border-color .12s ease; }
.card { box-shadow:0 5px 18px rgba(0,6,16,.16); }
.profile-card:hover { box-shadow:0 8px 22px rgba(0,7,18,.25); }
.request-card,.profile-card,.hours-corps,.account-card,.notification-card { content-visibility:auto; contain-intrinsic-size:1px 260px; }
.modal-backdrop { animation:mdtBackdropIn .12s ease-out both; }
.modal { animation:mdtModalIn .16s ease-out both; }
.toast { animation:mdtToastIn .16s ease-out both; }

@media (max-width:1120px) {
  .app-shell * { animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; }
  .content-frame,.card,.profile-card { box-shadow:none!important; }
}
