:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f7fb;
  line-height: 1.45;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 15%, #cfe1ff 0, transparent 34%), linear-gradient(135deg, #17265e, #4c42a4); }
.login-card { width: min(100%, 430px); padding: 38px; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px #060a2766; }
.login-logo { display: block; width: min(240px, 80%); height: auto; margin: 0 auto 24px; }
.login-card h1 { margin: 0 0 7px; font-size: 29px; }
.login-card p { color: #62708a; }
.eyebrow { margin: 0 0 8px; color: #5b55d8 !important; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.login-card label { display: grid; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 700; }
.login-card input { border: 1px solid #dbe2ef; border-radius: 10px; padding: 12px; font: inherit; }
.login-card input:focus { outline: 3px solid #dcd9ff; border-color: #645de0; }
button { border: 0; border-radius: 10px; padding: 11px 16px; background: #5b55d8; color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
button:hover { background: #4741bb; }
#login-error { min-height: 20px; margin: 12px 0 0; color: #c6314a !important; font-size: 14px; }
#app { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; }
#app > aside { display: flex; flex-direction: column; min-height: 100vh; padding: 28px 18px; background: #17265e; color: #fff; }
#app > aside > b { display: block; margin: 0 10px 28px; font-size: 22px; letter-spacing: -.04em; }
#app > aside > a { display: block; margin: 5px 0; padding: 10px; border-radius: 9px; color: #dce4ff; text-decoration: none; font-weight: 650; }
#app > aside > a:hover { background: #ffffff1c; color: #fff; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 18px 8px 0; border-top: 1px solid #ffffff2b; }
.sidebar-profile b, .sidebar-profile small { display: block; }
.sidebar-profile b { color: #fff; font-size: 13px; }
.sidebar-profile small { margin-top: 2px; color: #b8c6ee; font-size: 11px; }
.sidebar-avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #e98969; color: #fff; font-size: 11px; font-weight: 800; }
.sidebar-brand { display: block; margin: 0 8px 28px; line-height: 0; }
.sidebar-logo { display: block; width: min(170px, 100%); height: auto; }
main { max-width: 1250px; width: 100%; margin: 0 auto; padding: 38px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.page-header h1 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.secondary { background: #e7e9f8; color: #24255e; }
.secondary:hover { background: #d8daf2; }
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.summary article, .dashboard-section { border: 1px solid #e5e9f2; border-radius: 16px; background: #fff; box-shadow: 0 7px 20px #1a2d5810; }
.summary article { padding: 22px; }
.summary span { display: block; color: #6a7690; font-size: 14px; }
.summary strong { display: block; margin-top: 8px; font-size: 28px; letter-spacing: -.04em; }
.dashboard-section { margin-top: 17px; padding: 20px; }
.dashboard-section h2 { margin: 0 0 13px; font-size: 18px; }
.dashboard-section ul { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.dashboard-section li { padding: 11px 12px; border-radius: 9px; background: #f6f8fc; color: #37415a; }
.online-section { margin-bottom: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.dashboard-ticket-tile { width: 100%; display: flex; align-items: center; gap: 17px; margin: 0 0 24px; padding: 18px 21px; border: 1px solid #dce3f2; border-radius: 16px; background: linear-gradient(125deg, #fff, #f2f5ff); color: #263653; box-shadow: 0 7px 20px #1a2d5810; text-align: left; font: inherit; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.dashboard-ticket-tile:hover { transform: translateY(-2px); border-color: #b8c2eb; box-shadow: 0 12px 25px #1a2d5818; }
.ticket-thumbnail { position: relative; display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 15px; background: linear-gradient(145deg, #6257d9, #4b48bd); color: #fff; font-size: 16px; font-weight: 850; letter-spacing: .06em; box-shadow: 0 7px 14px #4e4bc744; }
.ticket-thumbnail::before { content: ''; position: absolute; inset: 10px 8px; border: 2px dashed #ffffffaa; border-radius: 8px; }
.ticket-thumbnail i { position: absolute; right: 6px; top: 6px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #48c38a; }
.ticket-thumbnail { overflow: hidden; padding: 0; background: #2c7fdc; }
.ticket-thumbnail::before, .ticket-thumbnail i { display: none; }
.ticket-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ticket-tile-copy { display: grid; gap: 3px; min-width: 0; }
.ticket-tile-copy small { color: #5c56d8; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.ticket-tile-copy strong { font-size: 17px; }
.ticket-tile-copy em { color: #75819a; font-size: 12px; font-style: normal; }
.ticket-tile-arrow { margin-left: auto; color: #5c56d8; font-size: 25px; font-weight: 400; }
.ticket-dialog { width: min(430px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 25px 65px #15245655; }
.ticket-dialog::backdrop { background: #16224a80; backdrop-filter: blur(2px); }
.ticket-dialog-form { padding: 26px; }
.ticket-placeholder { display: grid; justify-items: center; gap: 12px; padding: 16px 10px 8px; text-align: center; }
.ticket-thumbnail.large { width: 72px; height: 72px; flex-basis: 72px; font-size: 19px; }
.ticket-placeholder p { margin: 0; color: #263653; font-size: 18px; font-weight: 800; }
.ticket-placeholder small { color: #75819a; font-size: 12px; }
.section-heading { margin-bottom: 16px; }.section-heading h2 { margin: 0; font-size: 20px; }.online-users { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }.online-card { width: 150px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 15px 10px; border: 1px solid #e2e8f2; border-radius: 14px; background: #f8faff; text-align: center; }.online-card strong { max-width: 100%; color: #273550; font-size: 13px; line-height: 1.3; }.online-avatar { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #e5e3ff; color: #5c56d8; font-size: 18px; font-weight: 800; }.online-avatar i { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border: 3px solid #f8faff; border-radius: 50%; background: #22a06b; }.online-empty { margin: 0; color: #6a7690; }
.online-avatar .presence-l4 { right: -5px; bottom: -2px; width: auto; height: auto; padding: 3px 5px; border: 2px solid #f8faff; border-radius: 6px; background: #d94f5c; color: #fff; font-size: 9px; font-style: normal; line-height: 1; }
.online-card.on-sick-leave .online-avatar { background: #ffe6ea; color: #c43850; }
@media (max-width: 720px) {
  #app { grid-template-columns: 1fr; }
  #app > aside { min-height: auto; padding: 16px; flex-direction: row; gap: 6px; align-items: center; flex-wrap: wrap; }
  #app > aside > b { margin: 0 auto 0 0; }
  #app > aside > a { margin: 0; }
  .sidebar-profile { width: 100%; margin-top: 8px; }
  main { padding: 22px; }
  .summary { grid-template-columns: 1fr; }
  .page-header { align-items: flex-start; }
  .page-header h1 { font-size: 27px; }
}
.online-avatar .presence-online-on-l4 { position: absolute; right: 5px; bottom: 21px; width: 13px; height: 13px; border: 3px solid #ffe6ea; border-radius: 50%; background: #22a06b; }
/* Wspólne parametry paska bocznego jak w zakładce Zespół */
#app > aside.sidebar { padding: 28px 17px; background: #17265e; color: #dce4ff; }
#app > aside.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 9px 34px; color: #fff; text-decoration: none; }
#app > aside.sidebar nav { display: grid; gap: 5px; }
#app > aside.sidebar nav a { display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 12px; border-radius: 9px; color: #cbd6ff; text-decoration: none; font-weight: 650; }
#app > aside.sidebar nav a:hover, #app > aside.sidebar nav a.active { background: #ffffff18; color: #fff; }
#app > aside.sidebar .nav-icon { width: 16px; text-align: center; font-size: 18px; }
#app > aside.sidebar .profile { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 19px 8px 0; border-top: 1px solid #ffffff22; }
#app > aside.sidebar .profile b, #app > aside.sidebar .profile small { display: block; }
#app > aside.sidebar .profile b { color: #fff; font-size: 13px; }
#app > aside.sidebar .profile small { color: #b8c6ee; font-size: 12px; }
@media (max-width: 980px) {
  #app > aside.sidebar { padding: 22px 12px; }
  #app > aside.sidebar .brand { padding: 0 10px 28px; }
  #app > aside.sidebar .brand .sidebar-logo { width: 42px; height: 29px; object-fit: cover; object-position: left; }
  #app > aside.sidebar nav a { justify-content: center; font-size: 0; }
  #app > aside.sidebar .nav-icon { font-size: 19px; }
  #app > aside.sidebar .profile { justify-content: center; padding: 19px 0 0; }
  #app > aside.sidebar .profile > span:last-child { display: none; }
}
@media (max-width: 680px) {
  #app > aside.sidebar { min-height: auto; display: flex; flex-direction: row; align-items: center; padding: 12px 16px; }
  #app > aside.sidebar .brand { padding: 0; margin-right: auto; }
  #app > aside.sidebar .brand .sidebar-logo { width: 150px; height: auto; object-fit: contain; }
  #app > aside.sidebar nav { display: flex; }
  #app > aside.sidebar nav a { padding: 8px; }
  #app > aside.sidebar nav a span:not(.nav-icon) { display: none; }
  #app > aside.sidebar .profile { display: none; }
}
