:root {
  /* the portal's page background (dots over the sky-to-sand gradient), also used by popups */
  --pow-page-bg:
    radial-gradient(circle, rgba(120, 90, 40, 0.06) 1.5px, transparent 1.8px) 0 0/10px 10px,
    linear-gradient(180deg, #e2f0f4 0%, #f3ecd8 40%, #f0dfae 100%);
  --ink: #1c1f2b;
  --ink-soft: #666b80;
  --ink-faint: #9497a8;
  --paper: #eef0f4;
  --surface: #ffffff;
  --line: #e7e9f1;
  --accent: #5b6ef0;
  --accent-hover: #4657d6;
  --accent-soft: #e9ebfc;
  --gold: #ef8a3d;
  --gold-soft: #fdecd9;
  --danger: #a23b2e;
  --danger-soft: #f6e6e3;
  --good: #1f8a5f;
  --good-soft: #dcf3e8;
  --pending: #b4600f;
  --pending-soft: #fbe7cf;
  --shadow: 0 1px 2px rgba(28, 31, 43, 0.04), 0 10px 28px rgba(28, 31, 43, 0.06);
}

* { box-sizing: border-box; }

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--pow-page-bg);
  background-attachment: fixed;
  color: var(--ink);
  margin: 0;
  padding-bottom: 3rem;
}

h1, h2, h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; }

.money, .num { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.page { max-width: 920px; margin: 0 auto; padding: 1.75rem 1.25rem 2rem; }

#pow-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 0.85rem 1.25rem;
  gap: 1rem;
}
#pow-nav .home { justify-self: start; }
#pow-nav .tabs { justify-self: stretch; }
#pow-nav .who { justify-self: end; }
#pow-nav .home { display: flex; align-items: center; color: var(--ink-soft); text-decoration: none; padding: 0.3rem; border-radius: 6px; }
#pow-nav .home:hover { background: var(--accent-soft); color: var(--accent); }
#pow-nav .tabs { display: flex; gap: 0.35rem; flex-wrap: nowrap; min-width: 0; justify-content: center; margin: 0; padding: 0; } /* panels have their own .tabs class: don't let its margins leak into the nav */
#pow-nav .tabs a { white-space: nowrap; }
/* desktop: tabs that don't fit go under "Więcej ▾", opened on hover or click */
#pow-nav .more { position: relative; display: none; }
#pow-nav .more.on { display: block; }
#pow-nav .more > button { padding: 0.4rem 0.75rem; border: 0; border-radius: 6px; background: none; color: var(--ink-soft); font: inherit; font-weight: 500; font-size: 0.92rem; cursor: pointer; white-space: nowrap; }
#pow-nav .more > button:hover, #pow-nav .more.open > button, #pow-nav .more > button[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
#pow-nav .more-menu { display: none; position: absolute; top: 100%; right: 0; z-index: 60; min-width: 12rem; padding: 0.35rem; margin-top: 0.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(28, 31, 43, 0.15); }
#pow-nav .more-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -0.5rem; height: 0.5rem; } /* hover bridge */
#pow-nav .more:hover .more-menu, #pow-nav .more.open .more-menu { display: grid; gap: 0.1rem; }
#pow-nav .more-menu a { display: block; }
#pow-nav .tabs a {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
#pow-nav .tabs a:hover { background: var(--accent-soft); color: var(--accent); }
#pow-nav .tabs a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
#pow-nav .tabs a.nav-hl { box-shadow: inset 0 0 0 1.5px var(--gold); } /* Kalendarz: always outlined orange so it stands out */
#pow-fb { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: grid; justify-items: end; gap: 0.6rem; }
/* the button is a cloud like the ones drifting over the portal: white pill + two bumps, outlined only around the silhouette */
#pow-fb .fb-btn { position: relative; display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1.1rem; padding: 0.6rem 1.15rem; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-size: 0.9rem; font-weight: 500;
  filter: drop-shadow(0 0 0.6px #737b8e) drop-shadow(0 0 0.6px #737b8e) drop-shadow(0 6px 10px rgba(28, 31, 43, 0.12)); }
#pow-fb .fb-btn::before, #pow-fb .fb-btn::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
#pow-fb .fb-btn { justify-content: center; width: 6.8rem; height: 2.7rem; padding: 0 0.5rem; margin-top: 1.1rem; font-size: 0.78rem; text-align: center; line-height: 1.15; } /* fixed cloud, two-line text */
#pow-fb .fb-btn::before { width: 2.7rem; height: 2.7rem; top: -1.2rem; left: 1rem; }
#pow-fb .fb-btn::after { width: 2.1rem; height: 2.1rem; top: -0.8rem; left: 3.2rem; }
#pow-fb .fb-btn { scale: 0.7; transform-origin: 100% 100%; } /* whole cloud 30% smaller, anchored at its bottom right */
#pow-fb .fb-btn > * { position: relative; z-index: 1; top: -0.25rem; } /* a bit higher: the bumps make the cloud look taller on top */
#pow-fb .fb-btn:hover, #pow-fb .fb-btn[aria-expanded="true"] { color: var(--accent);
  filter: drop-shadow(0 0 0.7px var(--accent)) drop-shadow(0 0 0.7px var(--accent)) drop-shadow(0 6px 10px rgba(28, 31, 43, 0.12)); }
#pow-fb .fb-panel { width: min(340px, calc(100vw - 2rem)); background: #f5f6f8; border: 1px solid #dcdfe7; border-radius: 16px; box-shadow: 0 12px 40px rgba(28, 31, 43, 0.18); overflow: hidden; }
#pow-fb .fb-panel[hidden] { display: none; }
#pow-fb .fb-head { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.8rem 0.7rem 1rem; background: var(--accent); color: #fff; }
#pow-fb .fb-x { background: none; border: 0; color: #fff; padding: 0.2rem 0.45rem; font-size: 0.95rem; border-radius: 6px; }
#pow-fb .fb-x:hover { background: rgba(255, 255, 255, 0.18); }
#pow-fb .fb-body { display: grid; gap: 0.5rem; padding: 1rem 1rem 0.4rem; max-height: 40vh; overflow-y: auto; }
#pow-fb .fb-msg { margin: 0; justify-self: start; max-width: 85%; padding: 0.55rem 0.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; font-size: 0.9rem; line-height: 1.4; }
#pow-fb .fb-msg.mine { justify-self: end; background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 14px 14px 4px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
#pow-fb .fb-form { display: grid; gap: 0.5rem; padding: 0.5rem 1rem 1rem; }
#pow-fb textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.9rem; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); resize: vertical; }
#pow-fb .fb-send { justify-self: end; }
#pow-fb .fb-send:disabled { opacity: 0.6; cursor: default; }
#pow-fb .fb-err { margin: 0; color: var(--danger); font-size: 0.85rem; }
@media (max-width: 760px) {
  body:has(#cal-fab) #pow-fb { bottom: 5.5rem; } /* calendar's "+" button owns the corner on phones */
}
#pow-nav .who { display: flex; align-items: center; gap: 0.75rem; }
#pow-nav .who .email { color: var(--ink-faint); font-size: 0.83rem; }
#pow-nav .who button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
#pow-nav .who button:hover { border-color: var(--danger); color: var(--danger); }
#pow-nav .who .bell-wrap[hidden] { display: none; }
#pow-nav .who .switch[hidden] { display: none; }
#pow-menu-dlg { width: min(520px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(28, 31, 43, 0.25); }
#pow-menu-dlg::backdrop { background: rgba(28, 31, 43, 0.35); }
#pow-menu-dlg h2 { margin: 0 0 0.2rem; font-size: 1.15rem; }
#pow-menu-dlg .pmd-hint { margin: 0 0 0.7rem; color: var(--ink-soft); font-size: 0.85rem; }
#pow-menu-dlg .pmd-list { list-style: none; margin: 0 0 0.8rem; padding: 0; display: grid; gap: 0.15rem; }
#pow-menu-dlg .pmd-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0.4rem; border-radius: 8px; }
#pow-menu-dlg .pmd-list li:hover { background: var(--accent-soft); }
#pow-menu-dlg .pmd-list label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; cursor: pointer; }
#pow-menu-dlg .pmd-own { font-size: 0.72rem; color: #c2410c; background: #ffedd5; border-radius: 999px; padding: 0.05rem 0.45rem; }
#pow-menu-dlg .pmd-btns { display: inline-flex; gap: 0.25rem; }
#pow-menu-dlg .pmd-btns button, #pow-menu-dlg .pmd-sec { width: auto; padding: 0.2rem 0.55rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-soft); font: inherit; font-size: 0.85rem; cursor: pointer; }
#pow-menu-dlg .pmd-btns button:disabled { opacity: 0.35; cursor: default; }
#pow-menu-dlg .pmd-del:hover { border-color: var(--danger); color: var(--danger); }
#pow-menu-dlg .pmd-add { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
#pow-menu-dlg .pmd-add input { flex: 1 1 10rem; min-width: 0; font: inherit; font-size: 0.9rem; padding: 0.4rem 0.55rem; border: 1px solid var(--line); border-radius: 8px; }
#pow-menu-dlg .pmd-add button { width: auto; }
#pow-menu-dlg .pmd-err { color: var(--danger); font-size: 0.85rem; margin: 0 0 0.5rem; }
#pow-menu-dlg .pmd-foot { display: flex; flex-wrap: wrap; gap: 0.4rem; }
#pow-menu-dlg .pmd-foot button { width: auto; }
#pow-nav .who .switch { display: flex; align-items: center; padding: 0.3rem; border: 0; border-radius: 6px; background: none; color: var(--ink-soft); cursor: pointer; }
#pow-nav .who .switch:hover { background: #ffedd5; color: #c2410c; border: 0; }
#pow-nav .who .bell { position: relative; display: flex; align-items: center; padding: 0.3rem; border: 0; border-radius: 6px; background: none; color: var(--ink-soft); cursor: pointer; }
#pow-nav .who .bell:hover, #pow-nav .who .bell[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); border: 0; }
#pow-nav .who .bell .badge { position: absolute; top: -3px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 999px;
  background: #c62828; color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 17px; text-align: center; }
.pow-bell-pop { position: fixed; inset: auto; margin: 0; width: 360px; max-width: calc(100vw - 16px); max-height: min(70vh, 480px); overflow-y: auto; padding: 0;
  box-sizing: border-box; background: #f5f6f8; color: var(--ink); border: 1px solid #dcdfe7; border-radius: 14px; box-shadow: var(--shadow); }
.pow-bell-head { padding: 0.75rem 1rem; border-bottom: 1px solid #cdd1db; font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.pow-bell-item { display: grid; gap: 0.25rem; padding: 0.75rem 1rem; border-bottom: 1px solid #cdd1db; color: var(--ink); text-decoration: none; font-size: 0.86rem; line-height: 1.4; }
.pow-bell-item:last-child { border-bottom: 0; }
.pow-bell-item:hover { background: var(--surface); }
.pow-bell-item.unread { background: var(--surface); } /* new ones: white on the grey bubble */
.pow-bell-item .top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; color: var(--ink-soft); }
.pow-bell-item .top b { color: var(--ink); font-weight: 600; }
.pow-bell-item time { flex-shrink: 0; color: var(--ink-faint); font-size: 0.76rem; white-space: nowrap; }
.pow-bell-item .client { font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }
.pow-bell-item .txt { color: var(--ink-soft); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pow-bell-empty { margin: 0; padding: 0.9rem 1rem; color: var(--ink-faint); font-size: 0.86rem; line-height: 1.45; }
#pow-nav .who .settings { display: flex; align-items: center; color: var(--ink-soft); padding: 0.3rem; border-radius: 6px; }
#pow-nav .who .settings[hidden] { display: none; }
#pow-nav .who .settings:hover, #pow-nav .who .settings[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }

/* dropdown list for every <select> (nav.js), in place of the browser's own list */
.pow-menu { position: fixed; inset: auto; margin: 0; padding: 0.3rem; overflow-y: auto; box-sizing: border-box; max-width: calc(100vw - 16px);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font-size: 0.92rem; }
.pow-menu [role="option"] { padding: 0.5rem 2rem 0.5rem 0.8rem; border-radius: 7px; cursor: pointer; white-space: nowrap; position: relative; }
.pow-menu [role="option"].active { background: var(--accent-soft); color: var(--accent); }
.pow-menu [role="option"][aria-selected="true"] { font-weight: 600; }
.pow-menu [role="option"][aria-selected="true"]::after { content: '✓'; position: absolute; right: 0.75rem; color: var(--accent); }
.pow-menu [role="option"][aria-disabled="true"] { color: var(--ink-faint); cursor: default; }

/* powAsk (nav.js): confirm/prompt/alert in the portal style */
#pow-ask { border: 1px solid #dcdfe7; border-radius: 16px; padding: 0; max-width: 420px; width: calc(100% - 2rem); box-shadow: var(--shadow); background: #f5f6f8; color: var(--ink); } /* light grey, fields stay white */
#pow-ask::backdrop { background: rgba(28, 31, 43, 0.35); }
.pow-ask { padding: 1.4rem 1.5rem 1.2rem; display: grid; gap: 0.8rem; }
.pow-ask h3 { margin: 0; font-size: 1.15rem; }
.pow-ask p { margin: 0; color: var(--ink-soft); line-height: 1.5; overflow-wrap: anywhere; }
.pow-ask p.warn { color: #c62828; font-weight: 600; font-size: 1.05rem; }
.pow-ask input { width: 100%; box-sizing: border-box; }
.pow-ask-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.3rem; }
.pow-ask-actions button { margin: 0; padding: 0.45rem 1.1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.pow-ask-actions button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pow-ask-actions button.danger { background: #c62828; border-color: #c62828; color: #fff; }

.section {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--surface);
}
/* a card only scrolls sideways when its content is too wide (nav.js adds the class), so table headers can stick otherwise */
.section.pow-scroll-x { overflow-x: auto; }
/* inside a scrolling card a sticky header would sit nav-height below the card top, over the rows */
.section.pow-scroll-x thead th { position: static; }
.section.accent-own { border-left: 3px solid var(--accent); }
.section.accent-warm { border-left: 3px solid var(--gold); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; white-space: nowrap; }
th { color: var(--ink-faint); font-weight: 500; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; }
/* table headers stay visible while scrolling, just under the sticky nav (nav.js sets --pow-sticky-top) */
thead th { position: sticky; top: var(--pow-sticky-top, 0px); z-index: 4; background: var(--surface); box-shadow: inset 0 -1px 0 var(--line); }
tfoot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: none; }
tr:last-child td { border-bottom: none; }

form { display: flex; gap: 0.7rem; align-items: flex-start; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field-hint { font-size: 0.74rem; color: var(--ink-faint); max-width: 220px; line-height: 1.3; }

input, select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* One select look in every panel: own arrow, the gap after it equals the gap before the text (the native arrow hugs
   the edge, the user asked for symmetry). !important because panels restyle selects with background/padding shorthands. */
select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-left: 0.8rem !important;
  padding-right: 2.1rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23737a8c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.8rem center !important;
}

button, button[type="submit"], a.button {
  display: inline-block;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
button:hover, a.button:hover { background: var(--accent-hover); }

.status-oczekuje { color: var(--pending); }
.status-rozliczone { color: var(--good); font-weight: 600; }

.btn-delete {
  background: var(--danger-soft) !important;
  color: var(--danger) !important;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
}
.btn-delete:hover { background: #f0d5cf !important; }
.btn-delete:disabled { opacity: 0.4; cursor: not-allowed; }

.error { color: var(--danger); margin-top: 0.5rem; min-height: 1.2em; font-size: 0.9rem; }

.hint { color: var(--ink-faint); font-size: 0.85rem; }

.month-filter-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; flex-wrap: wrap; }

.serif { font-family: 'Newsreader', Georgia, serif; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin: 2rem 0 0.9rem; }
.page-head h1 { margin-top: 0; }
.page-head .hint { margin: 0.35rem 0 0; }
.greet { font-size: 1.5rem; margin: 2rem 0 0; }
.greet + .page-head { margin-top: 0.9rem; }
/* "Dziś" strip: a second row of the portal nav with today's calendar events */
#pow-nav .today-strip { grid-column: 1 / -1; display: flex; justify-content: flex-start; align-items: center; gap: 1rem; min-width: 0; margin: 0 -1.25rem -0.85rem; padding: 0.45rem 1.25rem;
  border-top: 1px solid var(--line); background: #fafbfd; color: var(--ink); text-decoration: none; font-size: 0.85rem; }
#pow-nav .today-strip:hover { background: var(--accent-soft); }
.today-strip > b { color: var(--accent); font-weight: 600; flex: none; }
.today-clip { flex: 0 1 auto; max-width: 860px; min-width: 0; overflow: hidden; white-space: nowrap; }
.today-clip.long { mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); }
.today-strip:hover .today-clip.long { mask-image: none; }
.today-track { display: inline-flex; gap: 1rem; }
.today-strip:hover .long .today-track { animation: today-scroll var(--dur) linear infinite alternate; }
@keyframes today-scroll { 0%, 15% { transform: none; } 85%, 100% { transform: translateX(calc(-1 * var(--shift))); } }
@media (prefers-reduced-motion: reduce) { .today-strip:hover .long .today-track { animation: none; } }
.today-ev { padding-left: 0.55rem; border-left: 3px solid var(--accent); border-radius: 2px; }
.today-ev small, .today-none { color: var(--ink-faint); }
/* muted so it doesn't compete with the menu above; full strength on hover */
#pow-nav .today-strip { color: var(--ink-faint); font-size: 0.8rem; background: #fbfbfd; opacity: 0.8; transition: opacity 0.2s, background 0.2s; }
#pow-nav .today-strip:hover { opacity: 1; color: var(--ink-soft); background: #f4f5fa; }
.today-strip > b { color: var(--ink-faint); font-weight: 500; }
.today-strip .today-ev { border-left-color: color-mix(in srgb, var(--accent) 35%, white); }
.today-strip .today-ev small, .today-strip .today-none { color: #b3b6c3; }
.operator-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.operator-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0.3rem 0.8rem; border: 1px solid var(--line, #ddd); border-radius: 999px; background: #fff; color: var(--ink, #222); font-weight: 600; font-size: 0.85rem; text-decoration: none; }
.operator-chip img { height: 22px; width: auto; display: block; }
.operator-chip.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.operator-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.flight-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 0.85rem; }
.flight-tile { height: 240px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.flight-tile:hover { box-shadow: 0 2px 4px rgba(28, 31, 43, 0.06), 0 14px 32px rgba(28, 31, 43, 0.1); transform: translateY(-1px); }
.flight-tile-bar { height: 4px; flex-shrink: 0; background: var(--gold); }
.flight-tile-body { display: flex; flex: 1; min-height: 0; }
.flight-tile-main { flex-grow: 1; min-width: 0; min-height: 0; padding: 0.65rem 0.8rem; display: flex; flex-direction: column; gap: 0.28rem; }
.flight-tile-label { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); flex-shrink: 0; }
.flight-tile-route { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.flight-tile-code { font-size: 1.15rem; font-weight: 600; line-height: 1; }
.flight-tile-city { font-size: 0.6rem; color: var(--ink-soft); margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flight-tile-datetime { font-size: 0.74rem; font-weight: 600; flex-shrink: 0; }
.flight-tile-airline { font-size: 0.66rem; color: var(--ink-soft); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flight-tile-divider { height: 1px; background: var(--line); margin: 0.1rem 0; flex-shrink: 0; }
.flight-tile-passengers { font-size: 0.68rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flight-tile-hotel { font-size: 0.62rem; color: var(--ink-soft); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.flight-tile-side { width: 96px; flex-shrink: 0; border-left: 2px dashed var(--line); padding: 0.65rem 0.4rem; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.3rem; text-align: center; background: #fafafb; overflow: hidden; }
.flight-tile-change { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0.6rem; background: var(--danger-soft); color: var(--danger); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em; }
.flight-tile-verify { font-size: 0.7rem; padding: 0.2rem 0.6rem; background: var(--danger); text-transform: none; letter-spacing: 0; }
.flight-tile-countdown { display: flex; flex-direction: column; align-items: center; padding: 0.3rem 0.4rem; border-radius: 12px; max-width: 100%; }
.flight-tile-days { font-size: 0.92rem; font-weight: 700; line-height: 1.15; margin-top: 0.08rem; white-space: nowrap; }
.flight-tile-days-label { font-size: 0.54rem; font-weight: 600; }
.flight-tile-operator { font-size: 0.54rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); margin-top: 0.25rem; }
.flight-tile-resnum { font-size: 0.76rem; font-weight: 600; line-height: 1.2; word-break: break-all; }
.flight-tile-reslabel { font-size: 0.56rem; color: var(--ink-faint); }

.flight-pagination { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-size: 0.9rem; }
.flight-pagination a { color: var(--accent); text-decoration: none; font-weight: 600; }
.flight-pagination a:hover { text-decoration: underline; }
.flight-page-disabled { color: var(--ink-faint); }
.flight-page-label { color: var(--ink-faint); }

@media (max-width: 380px) {
  .flight-tile { height: 320px; }
  .flight-tile-body { flex-direction: column; }
  .flight-tile-side { width: auto; border-left: none; border-top: 1px dashed var(--line); }
}

@media (max-width: 560px) {
  #pow-nav { padding: 0.7rem 1rem; }
  #pow-nav .today-strip { margin: 0 -1rem -0.7rem; padding: 0.45rem 1rem !important; }
  #pow-nav .who .email { display: none; }
}

/* Phones: the tabs fold into a "Menu" button instead of wrapping into many rows. */
#pow-nav .menu { display: none; }
@media (max-width: 760px) {
  #pow-nav { grid-template-columns: auto 1fr auto; row-gap: 0.4rem; }
  #pow-nav .menu {
    display: inline-flex; align-items: center; gap: 0.4rem; justify-self: start;
    font: inherit; font-weight: 500; color: var(--ink); background: var(--surface);
    border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem 0.8rem; cursor: pointer;
  }
  #pow-nav .menu[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }
  #pow-nav .who { grid-row: 1; grid-column: 3; }
  #pow-nav .tabs { display: none; grid-row: 2; grid-column: 1 / -1; justify-self: stretch; flex-direction: column; flex-wrap: nowrap; gap: 0.1rem; }
  #pow-nav.open .tabs { display: flex; }
  #pow-nav .tabs a { padding: 0.7rem 0.6rem; font-size: 1rem; }
  #pow-nav .more, #pow-nav .more.on { display: none; }
  /* phones: the right side must fit next to "Menu"; "Ustaw menu" moves into the folded list */
  #pow-nav { padding-left: 0.75rem; padding-right: 0.75rem; column-gap: 0.5rem; }
  #pow-nav .who { gap: 0.15rem; }
  #pow-nav #pow-nav-editmenu { display: none; }
  #pow-nav.open .tabs .menu-edit { display: block; }
}
#pow-nav .tabs .menu-edit { display: none; padding: 0.7rem 0.6rem; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; }

.pow-scene { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
/* grey outline drawn around the whole cloud (body + both puffs) so it stays visible on the light page background */
.pow-cloud { position: absolute; background: #fff; border-radius: 999px; opacity: 0.55; filter: drop-shadow(0 0 0.6px #737b8e) drop-shadow(0 0 0.6px #737b8e); }
.pow-cloud::before, .pow-cloud::after { content: ''; position: absolute; background: inherit; border-radius: 999px; }
.pow-c1 { width: 70px; height: 24px; top: 46%; }
.pow-c1::before { width: 38px; height: 38px; top: -20px; left: 8px; }
.pow-c1::after { width: 28px; height: 28px; top: -12px; left: 38px; }
.pow-c2 { width: 90px; height: 28px; top: 58%; opacity: 0.4; }
.pow-c2::before { width: 44px; height: 44px; top: -24px; left: 12px; }
.pow-c2::after { width: 32px; height: 32px; top: -14px; left: 48px; }
@keyframes pow-drift { from { transform: translateX(-160px); } to { transform: translateX(110vw); } }
.pow-c1 { animation: pow-drift 70s linear infinite; }
.pow-c2 { animation: pow-drift 95s linear infinite; animation-delay: -30s; }
.pow-c3 { width: 56px; height: 18px; top: 32%; opacity: 0.5; animation: pow-drift 120s linear infinite; animation-delay: -75s; }
.pow-c3::before { width: 30px; height: 30px; top: -16px; left: 7px; }
.pow-c3::after { width: 22px; height: 22px; top: -9px; left: 30px; }

.pow-sun {
  position: absolute; top: -30px; right: 8%; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239,138,61,0.35), rgba(239,138,61,0) 70%);
  animation: pow-pulse 5s ease-in-out infinite;
}
@keyframes pow-pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.15); opacity: 1; } }

.pow-bird { position: absolute; color: var(--ink-soft); opacity: 0.55; }
.pow-bird svg { width: 22px; height: 12px; display: block; }
@keyframes pow-fly-bird { 0% { transform: translate(-40px, 0); } 50% { transform: translate(50vw, -18px); } 100% { transform: translate(105vw, 4px); } }
@keyframes pow-flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.4); } }
.pow-b1 { top: 50%; animation: pow-fly-bird 20s ease-in-out infinite; }
.pow-b1 svg { animation: pow-flap 0.5s ease-in-out infinite; }
.pow-b2 { top: 62%; animation: pow-fly-bird 20s ease-in-out infinite; animation-delay: 5s; }
.pow-b2 svg { animation: pow-flap 0.45s ease-in-out infinite; }

.pow-jet { position: absolute; top: 40%; left: -60px; color: var(--ink-soft); opacity: 0.65; }
.pow-jet svg { width: 30px; height: 30px; display: block; }
.pow-trail { position: absolute; top: 50%; right: 100%; width: 90px; height: 2px; transform: translateY(-50%); background: linear-gradient(to left, rgba(102,107,128,0.45), transparent); }
@keyframes pow-fly-jet {
  0%   { transform: translate(0, 0) rotate(-3deg); }
  25%  { transform: translate(24vw, -18px) rotate(2deg); }
  50%  { transform: translate(50vw, 4px) rotate(-4deg); }
  75%  { transform: translate(76vw, -14px) rotate(3deg); }
  100% { transform: translate(105vw, 0) rotate(-3deg); }
}
.pow-jet { animation: pow-fly-jet 16s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .pow-cloud, .pow-bird, .pow-bird svg, .pow-sun, .pow-jet { animation: none !important; }
}
.page, .login-wrap { position: relative; z-index: 1; }
/* "Oliwia widok systemu": kontakt@ looking at the portal as Oliwia (read-only) */
.view-as-bar { position: sticky; top: 0; z-index: 1000; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem 0.8rem; padding: 0.5rem 1rem; background: #f97316; color: #fff; font-size: 0.9rem; }
.view-as-bar button { width: auto; padding: 0.25rem 0.7rem; border-radius: 6px; border: 1px solid #fff; background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
