:root{
  --ink:#173041;
  --muted:#6c7e89;
  --line:#dfe8ec;
  --surface:#ffffff;
  --surface-2:#f5f8fa;
  --blue:#246483;
  --teal:#589e88;
  --orange:#f08350;
  --yellow:#fdca48;
  --danger:#be4a4a;
  --danger-bg:#fff3f3;
  --shadow:0 18px 50px rgba(25,61,79,.08);
  --radius:22px;
}

*{box-sizing:border-box}
html{background:#f4f7f8}
body{
  margin:0;
  min-height:100vh;
  color:var(--ink);
  background:#f7f9fa;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
.hidden{display:none!important}
.muted{color:var(--muted)}
.small{font-size:.86rem}
strong{font-weight:750}

/* Public reservation view */
.public-page{
  background:
    linear-gradient(180deg,rgba(36,100,131,.035),transparent 240px),
    #f7f9fa;
}
.public-shell{max-width:1580px;margin:0 auto;padding:22px 24px 44px}
.public-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:6px 2px 22px;
}
.public-brand{display:flex;align-items:center;gap:18px;min-width:0}
.public-brand img{width:148px;max-height:58px;object-fit:contain;object-position:left center}
.public-brand span{font-size:.9rem;font-weight:750;color:#607681;padding-left:18px;border-left:1px solid var(--line)}
.public-actions{display:flex;align-items:center;gap:13px}
.admin-link{font-size:.82rem;font-weight:700;color:#7a8991;padding:10px}
.admin-link:hover{color:var(--blue)}
.reserve-cta{
  border:0;
  border-radius:17px;
  padding:16px 26px;
  min-height:56px;
  background:var(--blue);
  color:#fff;
  font-size:1rem;
  font-weight:800;
  box-shadow:0 12px 28px rgba(36,100,131,.22);
  transition:transform .16s ease,box-shadow .16s ease;
}
.reserve-cta:hover{transform:translateY(-1px);box-shadow:0 15px 32px rgba(36,100,131,.27)}

.schedule-panel{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);overflow:hidden}
.schedule-toolbar{
  min-height:72px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:14px;
}
.week-navigation{display:flex;align-items:center;gap:7px}
.icon-nav,.week-current{
  border:1px solid var(--line);
  background:#fff;
  color:#526873;
  font-weight:760;
  border-radius:12px;
  min-height:40px;
}
.icon-nav{width:42px;font-size:1.08rem}
.week-current{padding:0 14px;font-size:.83rem}
.icon-nav:hover,.week-current:hover{border-color:#b8cbd4;color:var(--blue);background:#f9fbfc}
.week-title{text-align:center;font-weight:800;letter-spacing:-.02em;color:#2b4655}
.compact-date{
  justify-self:end;
  width:148px;
  min-height:40px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:8px 10px;
  background:#fff;
  color:#536a76;
  outline:none;
}
.compact-date:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(36,100,131,.09)}

.week-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));min-height:620px}
.day-column{min-width:0;border-right:1px solid var(--line);background:#fff}
.day-column:last-child{border-right:0}
.day-column.is-today{background:linear-gradient(180deg,rgba(88,158,136,.055),#fff 165px)}
.day-heading{
  height:72px;
  padding:14px 15px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.day-name{font-size:.9rem;font-weight:820;color:#425b68}
.day-date{font-size:.78rem;font-weight:800;color:#91a0a7;background:#f1f5f6;border-radius:999px;padding:6px 9px}
.day-column.is-today .day-date{background:#e8f4f0;color:#397661}
.day-bookings{padding:11px;display:flex;flex-direction:column;gap:10px}
.day-empty{padding:34px 10px;text-align:center;color:#a0acb2;font-size:.82rem}

.booking-card{
  position:relative;
  border:1px solid #e3ebee;
  border-left:4px solid var(--blue);
  border-radius:16px;
  background:#fff;
  padding:12px 12px 11px;
  box-shadow:0 7px 18px rgba(32,63,78,.055);
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease;
  cursor:pointer;
}
.booking-card:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(32,63,78,.09);border-color:#cfdee4}
.booking-card.accent-teal{border-left-color:var(--teal)}
.booking-card.accent-orange{border-left-color:var(--orange)}
.booking-card.accent-yellow{border-left-color:#d7aa27}
.booking-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.booking-time{font-size:.77rem;font-weight:850;color:#334d5a;letter-spacing:.01em}
.booking-card-actions{display:flex;align-items:center;gap:4px;opacity:.4;transition:opacity .14s ease}
.booking-card:hover .booking-card-actions{opacity:1}
.card-action{
  width:29px;height:29px;border:0;border-radius:9px;background:#f1f5f6;color:#687b85;font-size:.92rem;font-weight:800;display:grid;place-items:center
}
.card-action:hover{background:#e8eff2;color:var(--blue)}
.card-action.delete:hover{background:var(--danger-bg);color:var(--danger)}
.booking-card h3{font-size:.91rem;line-height:1.28;margin:7px 0 8px;letter-spacing:-.01em}
.booking-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.booking-tag{display:inline-flex;align-items:center;background:#f0f4f6;color:#5f737d;border-radius:8px;padding:5px 7px;font-size:.7rem;font-weight:800}
.booking-tag.class-tag{background:#eaf2f6;color:var(--blue)}
.booking-device{font-size:.73rem;color:#75868f;margin-bottom:8px}
.home-location{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border-top:1px solid #edf1f3;
  padding-top:8px;
  color:#7a8c95;
  font-size:.7rem;
  font-weight:650;
}
.home-location strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:49px;
  padding:5px 8px;
  border-radius:8px;
  background:#e9f4f0;
  color:#34755f;
  font-size:.75rem;
  font-weight:900;
}

/* Shared controls */
.btn{border:0;border-radius:13px;padding:11px 15px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.16s ease;background:#e8eef1;color:var(--ink)}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:var(--blue);color:#fff;box-shadow:0 9px 24px rgba(36,100,131,.2)}
.btn.teal{background:var(--teal);color:#fff}
.btn.ghost{background:#fff;border:1px solid var(--line)}
.btn.danger{background:var(--danger-bg);color:var(--danger);border:1px solid #f0d2d2}
.btn.sm{padding:8px 10px;border-radius:10px;font-size:.86rem}
.field{display:flex;flex-direction:column;gap:7px}
.field label{font-size:.78rem;font-weight:800;color:#526873}
.field-label-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.availability-state{font-size:.75rem;font-weight:800;color:#5d8275}
.input,.select,textarea{
  width:100%;
  border:1px solid #d8e3e7;
  background:#fff;
  border-radius:13px;
  padding:11px 12px;
  color:var(--ink);
  outline:none;
  min-height:45px;
}
.input:focus,.select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(36,100,131,.09)}
textarea{resize:vertical}

.modal-backdrop{position:fixed;inset:0;background:rgba(18,40,52,.48);display:grid;place-items:center;padding:18px;z-index:50;backdrop-filter:blur(5px)}
.modal{width:min(760px,100%);max-height:94vh;overflow:auto;background:#fff;border-radius:24px;box-shadow:0 32px 90px rgba(0,0,0,.24);padding:22px}
.booking-modal{width:min(820px,100%)}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:19px}
.modal h2{margin:0;font-size:1.35rem;letter-spacing:-.025em}
.close{border:0;width:38px;height:38px;border-radius:12px;background:#f0f4f6;color:#5d717c;font-size:1.25rem}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-grid .full{grid-column:1/-1}
.date-add{display:flex;gap:8px}
.date-add input{flex:1}
.chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:3px}
.chip{display:inline-flex;align-items:center;gap:7px;background:#eef5f7;border-radius:999px;padding:7px 10px;font-size:.8rem;font-weight:750;color:#526a76}
.chip button{border:0;background:transparent;padding:0;color:#7a8a93;font-weight:900}
.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:20px}
.action-spacer{flex:1}
.notice{padding:11px 13px;border-radius:11px;background:#fff7df;border:1px solid #f4deb0;font-size:.85rem;line-height:1.45}
.notice.error{background:#fff0f0;border-color:#f2cccc;color:#9d3535}
.notice.success{background:#edf8f4;border-color:#cae9de;color:#2b725c}
.toast{position:fixed;right:22px;bottom:22px;background:#142f3f;color:#fff;padding:13px 16px;border-radius:13px;box-shadow:0 14px 40px rgba(0,0,0,.2);z-index:80;font-weight:750;max-width:390px}
.empty{padding:36px;text-align:center;color:var(--muted)}
.error-text{color:var(--danger)!important}

.station-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.station-choice{
  position:relative;
  display:grid;
  grid-template-columns:22px 1fr;
  grid-template-areas:"radio main" "radio home";
  gap:5px 8px;
  border:1px solid var(--line);
  border-radius:15px;
  padding:12px;
  background:#fff;
  cursor:pointer;
  transition:.14s ease;
}
.station-choice:hover{border-color:#b9ccd5;background:#fbfcfd}
.station-choice.selected{border-color:var(--blue);box-shadow:0 0 0 3px rgba(36,100,131,.08);background:#fbfdfe}
.station-choice input{grid-area:radio;align-self:start;margin:3px 0 0;accent-color:var(--blue)}
.station-choice-main{grid-area:main;display:flex;flex-direction:column;gap:3px;min-width:0}
.station-choice-main strong{font-size:.85rem;line-height:1.25}
.station-choice-main span{font-size:.72rem;color:#788a93}
.station-home{grid-area:home;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#84929a;font-size:.69rem;padding-top:5px}
.station-home b{background:#e9f4f0;color:#34755f;border-radius:8px;padding:4px 7px;font-size:.74rem;font-weight:900}
.availability-empty,.availability-loading{grid-column:1/-1;border:1px dashed #d2dde1;border-radius:14px;padding:22px;text-align:center;color:#82929a;font-size:.82rem;background:#fafcfc}
.availability-empty{display:flex;flex-direction:column;gap:5px}

/* Admin */
.app-shell{max-width:1500px;margin:0 auto;padding:22px 24px 50px}
.eyebrow{display:inline-flex;align-items:center;gap:7px;background:#edf6f3;color:#34765f;padding:6px 10px;border-radius:999px;font-weight:700;font-size:.78rem;margin-bottom:10px}
h1{font-size:clamp(1.8rem,3.5vw,3.15rem);line-height:1.03;margin:0;letter-spacing:-.04em;max-width:840px}
.toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:20px 0 12px;flex-wrap:wrap}
.toolbar-group{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.hero-main,.hero-side,.panel,.stat-card,.station-card,.login-card{background:rgba(255,255,255,.96);border:1px solid rgba(220,229,233,.95);box-shadow:var(--shadow);border-radius:var(--radius)}
.admin-layout{display:grid;grid-template-columns:240px 1fr;gap:18px}
.sidebar{background:#18313f;color:#fff;border-radius:22px;padding:18px;min-height:760px;position:sticky;top:18px;height:fit-content}
.sidebar-brand{display:flex;align-items:center;gap:10px;padding:4px 3px 18px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:14px}
.sidebar-brand img{width:105px;filter:brightness(0) invert(1);opacity:.96}
.nav-btn{width:100%;border:0;background:transparent;color:#d7e3e8;text-align:left;padding:11px 12px;border-radius:11px;font-weight:720;margin:3px 0}
.nav-btn.active,.nav-btn:hover{background:rgba(255,255,255,.12);color:#fff}
.admin-main{min-width:0}
.admin-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:4px 0 18px}
.admin-header h1{font-size:2rem}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}
.stat-card{padding:18px;box-shadow:none}
.stat-card .n{font-size:1.9rem;font-weight:820;letter-spacing:-.05em}
.stat-card .t{font-size:.8rem;color:var(--muted);margin-top:5px}
.panel{padding:18px;box-shadow:none;margin-top:14px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.panel-head h2{font-size:1.05rem;margin:0}
.bars{display:flex;flex-direction:column;gap:10px}
.bar-row{display:grid;grid-template-columns:minmax(120px,1.2fr) 3fr 92px;gap:10px;align-items:center;font-size:.83rem}
.bar-track{height:10px;background:#edf2f4;border-radius:999px;overflow:hidden}
.bar-fill{height:100%;background:linear-gradient(90deg,var(--blue),var(--teal));border-radius:999px}
.bar-val{text-align:right;font-weight:750;color:#52646f}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px}
table{border-collapse:collapse;width:100%;min-width:820px;background:#fff}
th,td{padding:11px 12px;border-bottom:1px solid #e8eef0;text-align:left;font-size:.82rem;vertical-align:middle}
th{background:#f7fafb;color:#5b6d78;font-size:.75rem;text-transform:uppercase;letter-spacing:.035em}
tr:last-child td{border-bottom:0}
.status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:.72rem;font-weight:800}
.status.on{background:#eaf7f2;color:#2c745d}.status.off{background:#f1f3f4;color:#7b858a}
.inline-actions{display:flex;gap:6px;white-space:nowrap}
.split{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card{width:min(430px,100%);padding:26px}
.login-card img{width:150px;margin-bottom:22px}
.login-card h1{font-size:1.8rem}
.login-card p{color:var(--muted);line-height:1.5}
.login-card .field{margin-top:12px}
.login-card .btn{width:100%;margin-top:16px}

@media(max-width:1180px){
  .week-board{overflow-x:auto;grid-template-columns:repeat(5,minmax(210px,1fr))}
  .admin-layout{grid-template-columns:1fr}
  .sidebar{min-height:auto;position:static}
  .sidebar nav{display:flex;flex-wrap:wrap}
  .nav-btn{width:auto}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:760px){
  .public-shell{padding:13px 10px 30px}
  .public-header{align-items:center;padding-bottom:14px;gap:10px}
  .public-brand img{width:105px}
  .public-brand span{display:none}
  .public-actions{gap:5px}
  .admin-link{display:none}
  .reserve-cta{padding:13px 17px;min-height:49px;border-radius:14px;font-size:.9rem}
  .schedule-toolbar{grid-template-columns:1fr auto;padding:10px;min-height:62px}
  .week-title{grid-row:2;grid-column:1/-1;padding:2px 0 4px;font-size:.86rem}
  .compact-date{width:142px}
  .week-board{grid-template-columns:repeat(5,minmax(235px,1fr));min-height:540px}
  .booking-card-actions{opacity:1}
  .form-grid{grid-template-columns:1fr}
  .form-grid .full{grid-column:auto}
  .station-options{grid-template-columns:1fr}
  .date-add{flex-direction:column}
  .booking-actions{flex-wrap:wrap}
  .booking-actions .action-spacer{display:none}
  .booking-actions .btn{flex:1}
  .booking-actions #deleteFromModal{flex-basis:100%}
  .modal{padding:17px;border-radius:18px}
  .app-shell{padding:14px 12px 36px}
  .split{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr 1fr}
}

/* ========================================================================
   Public V3 — landing, datoru noslodze, rezervēšana
   ======================================================================== */
.v3-public{
  background:
    radial-gradient(circle at 8% 5%,rgba(88,158,136,.10),transparent 30%),
    radial-gradient(circle at 92% 0%,rgba(36,100,131,.09),transparent 32%),
    #f6f8f9;
}
.v3-shell{max-width:1580px;margin:0 auto;padding:20px 24px 46px;min-height:100vh}
.v3-header{height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.v3-brand{border:0;background:transparent;padding:0;display:flex;align-items:center}
.v3-brand img{width:150px;max-height:58px;object-fit:contain;object-position:left center;display:block}
.v3-login-link{
  display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;
  border:1px solid #d8e4e8;background:rgba(255,255,255,.84);border-radius:12px;
  color:#536b77;font-size:.84rem;font-weight:800;box-shadow:0 5px 18px rgba(25,61,79,.04)
}
.v3-login-link:hover{color:var(--blue);border-color:#bad0da;background:#fff}

.v3-home{min-height:calc(100vh - 145px);display:grid;place-items:center;padding:28px 0 80px}
.v3-home-actions{width:min(980px,100%);display:grid;grid-template-columns:1fr 1fr;gap:24px}
.v3-home-card{
  min-height:290px;border:1px solid rgba(216,228,232,.95);border-radius:30px;background:#fff;
  box-shadow:0 24px 65px rgba(31,65,82,.09);display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:24px;font-size:clamp(1.45rem,2.2vw,2rem);font-weight:850;letter-spacing:-.035em;
  color:#254452;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease
}
.v3-home-card:hover{transform:translateY(-4px);box-shadow:0 30px 76px rgba(31,65,82,.14);border-color:#c6d9e1}
.v3-home-card:active{transform:translateY(-1px)}
.v3-home-card.load-card:hover{color:var(--blue)}
.v3-home-card.reserve-card:hover{color:#3d826d}
.v3-home-icon{width:86px;height:86px;border-radius:24px;display:grid;place-items:center}
.v3-home-icon svg{width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.load-card .v3-home-icon{background:#edf4f7;color:var(--blue)}
.reserve-card .v3-home-icon{background:#edf7f4;color:var(--teal)}

.v3-view{padding-top:16px}
.v3-view-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin:6px 0 18px}
.v3-view-head h1{font-size:clamp(1.55rem,2.6vw,2.35rem);text-align:center;max-width:none;margin:0;color:#1f3c4b}
.v3-view-title{text-align:center}
.v3-view-title h1{text-align:center}
.v3-view-title p{margin:7px 0 0;color:#71838d;font-size:.9rem}
.v3-back{
  justify-self:start;border:1px solid var(--line);background:#fff;color:#5c717c;border-radius:12px;
  min-height:42px;padding:0 14px;font-weight:780
}
.v3-back:hover{border-color:#bdd0d8;color:var(--blue)}
.v3-primary{
  justify-self:end;border:0;background:var(--blue);color:#fff;border-radius:13px;font-weight:820;
  box-shadow:0 9px 24px rgba(36,100,131,.18)
}
.v3-primary.compact{min-height:44px;padding:0 17px}

.v3-calendar-panel{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);overflow:hidden}
.v3-calendar-toolbar{
  min-height:76px;padding:13px 16px;border-bottom:1px solid var(--line);display:grid;
  grid-template-columns:1fr auto 1fr;align-items:center;gap:14px
}
.v3-calendar-controls{justify-self:end;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.v3-filter{
  height:40px;max-width:190px;border:1px solid var(--line);border-radius:11px;background:#fff;
  color:#586f7a;padding:0 30px 0 10px;font-size:.78rem;font-weight:720;outline:none
}
.v3-filter:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(36,100,131,.08)}
.v3-legend{
  display:flex;align-items:center;gap:9px 15px;flex-wrap:wrap;padding:11px 16px;border-bottom:1px solid #edf2f4;
  background:#fbfcfc;min-height:48px
}
.legend-item{display:inline-flex;align-items:center;gap:7px;color:#657984;font-size:.72rem;font-weight:760;white-space:nowrap}
.legend-item i{width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 3px rgba(0,0,0,.025)}
.v3-week-board{min-height:610px}
.v3-booking-event{
  border-left:5px solid var(--station-color)!important;background:linear-gradient(90deg,var(--station-tint),#fff 72%)!important
}
.v3-booking-event .booking-time{color:var(--station-color)}
.v3-booking-event .class-tag{background:var(--station-tint);color:var(--station-color)}
.v3-booking-event .home-location strong{background:var(--station-tint);color:var(--station-color)}

.v3-booking-card{
  width:min(900px,100%);margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:25px;
  box-shadow:var(--shadow);padding:24px
}
.v3-booking-card .form-grid{gap:16px}
.v3-booking-card .field label{font-size:.8rem}
.v3-booking-card .input,.v3-booking-card .select,.v3-booking-card textarea{background:#fbfcfd}
.v3-booking-card .station-choice{box-shadow:none}
.v3-booking-card .station-choice.selected{border-color:var(--station-color);background:var(--station-tint);box-shadow:0 0 0 3px color-mix(in srgb,var(--station-color) 12%,transparent)}
.station-choice-main strong{display:flex;align-items:center;gap:8px}
.station-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--station-color);flex:none}

@media(max-width:1100px){
  .v3-calendar-toolbar{grid-template-columns:1fr auto;align-items:center}
  .v3-calendar-toolbar .week-title{grid-column:1/-1;grid-row:2;padding:0 0 5px}
  .v3-calendar-controls{grid-column:2;grid-row:1}
  .v3-week-board{overflow-x:auto;grid-template-columns:repeat(5,minmax(225px,1fr))}
}

@media(max-width:760px){
  .v3-shell{padding:12px 10px 30px}
  .v3-header{height:67px;padding:0 2px}
  .v3-brand img{width:112px}
  .v3-login-link{min-height:39px;padding:0 12px;font-size:.78rem}
  .v3-home{min-height:calc(100vh - 95px);padding:20px 0 58px}
  .v3-home-actions{grid-template-columns:1fr;gap:14px}
  .v3-home-card{min-height:185px;border-radius:22px;gap:16px;font-size:1.35rem}
  .v3-home-icon{width:66px;height:66px;border-radius:19px}
  .v3-home-icon svg{width:34px;height:34px}
  .v3-view{padding-top:7px}
  .v3-view-head{grid-template-columns:auto 1fr;gap:10px;margin-bottom:13px}
  .v3-view-head h1{font-size:1.35rem;text-align:left}
  .v3-view-title{text-align:left}
  .v3-view-title h1{text-align:left}
  .v3-view-title p{font-size:.78rem;line-height:1.35}
  .v3-view-head .v3-primary{grid-column:1/-1;justify-self:stretch;min-height:45px}
  .v3-back{min-height:39px;padding:0 11px;font-size:.78rem}
  .booking-head{grid-template-columns:auto 1fr}
  .booking-head>div:last-child{display:none}
  .v3-calendar-panel{border-radius:18px}
  .v3-calendar-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:11px}
  .week-navigation{justify-content:center}
  .v3-calendar-toolbar .week-title{text-align:center;order:-1;font-size:.88rem;padding:2px}
  .v3-calendar-controls{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%}
  .v3-filter{max-width:none;width:100%}
  .compact-date{width:100%;justify-self:stretch}
  .v3-legend{padding:10px 11px;gap:7px 12px;max-height:105px;overflow:auto}
  .legend-item{font-size:.68rem}
  .v3-week-board{grid-template-columns:repeat(5,minmax(245px,1fr));min-height:540px}
  .v3-booking-card{padding:16px;border-radius:19px}
}

/* ========================================================================
   V4 — Cēsu 2. pamatskolas interaktīvais dizains
   ======================================================================== */
:root{
  --school-blue:#246483;
  --school-teal:#589E88;
  --school-orange:#F08350;
  --school-yellow:#FDCA48;
  --school-navy:#183846;
}

/* Sākuma ekrāna logo */
.v4-home{padding-top:6px}
.v4-home-inner{width:min(1020px,100%);display:flex;flex-direction:column;align-items:center;gap:42px}
.v4-pulse-logo{position:relative;width:290px;height:150px;display:grid;place-items:center;isolation:isolate}
.pulse-logo-card{
  position:relative;z-index:4;width:255px;min-height:112px;border-radius:28px;background:rgba(255,255,255,.93);
  display:grid;place-items:center;padding:22px 30px;border:1px solid rgba(222,232,236,.92);
  box-shadow:0 22px 55px rgba(30,65,82,.12);backdrop-filter:blur(10px);
  animation:logoFloat 4.2s ease-in-out infinite
}
.pulse-logo-card img{width:190px;max-width:100%;display:block}
.pulse-ring{position:absolute;z-index:1;width:215px;height:92px;border-radius:28px;border:2px solid rgba(36,100,131,.19);animation:logoPulse 3.2s ease-out infinite}
.pulse-ring.ring-2{border-color:rgba(88,158,136,.21);animation-delay:1.05s}
.pulse-ring.ring-3{border-color:rgba(240,131,80,.17);animation-delay:2.1s}
@keyframes logoPulse{0%{transform:scale(.92);opacity:.75}70%,100%{transform:scale(1.55);opacity:0}}
@keyframes logoFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media(prefers-reduced-motion:reduce){.pulse-logo-card,.pulse-ring{animation:none}}

.v4-home .v3-home-actions{width:min(920px,100%)}
.v4-home .v3-home-card{min-height:250px;position:relative;overflow:hidden}
.v4-home .v3-home-card:before{
  content:"";position:absolute;inset:auto -90px -120px auto;width:240px;height:240px;border-radius:50%;opacity:.14;transition:.25s ease
}
.v4-home .load-card:before{background:var(--school-blue)}
.v4-home .reserve-card:before{background:var(--school-teal)}
.v4-home .v3-home-card:hover:before{transform:scale(1.14);opacity:.19}
.v4-view-head>div:last-child{min-width:110px}

/* Kalendārs un vēsture */
.legend-item b{display:inline-flex;padding:3px 7px;border-radius:7px;background:#eef4f6;color:#284d60;font-size:.68rem;font-weight:900}
.card-action.history{font-size:1.05rem;color:var(--school-blue);background:var(--station-tint)}
.card-action.history:hover{background:var(--station-color);color:#fff}
.card-action.history.is-empty{opacity:.38;filter:grayscale(1)}
.booking-history-hint{margin-top:8px;padding:7px 8px;border-radius:9px;background:rgba(255,255,255,.68);color:#70828b;font-size:.66rem;font-weight:750;border:1px dashed rgba(100,125,137,.18)}

/* Pamatbāzes */
.station-base-section{margin:20px 0 0;background:rgba(255,255,255,.82);border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 12px 34px rgba(31,65,82,.045)}
.station-base-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}
.station-base-head h2{margin:2px 0 0;font-size:1rem;letter-spacing:-.018em;color:#294655}
.section-kicker{display:inline-block;text-transform:uppercase;letter-spacing:.08em;font-size:.64rem;font-weight:900;color:var(--school-teal)}
.station-base-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.station-base-card{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;min-width:0;border:1px solid #e2eaed;border-radius:14px;padding:11px;background:linear-gradient(100deg,var(--station-tint),#fff 64%)}
.station-base-dot{width:10px;height:10px;border-radius:50%;background:var(--station-color);box-shadow:0 0 0 4px color-mix(in srgb,var(--station-color) 12%,transparent)}
.station-base-copy{display:flex;flex-direction:column;min-width:0;gap:2px}
.station-base-copy strong{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.station-base-copy span{font-size:.66rem;color:#75878f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.station-base-room{display:flex;flex-direction:column;align-items:flex-end;gap:1px}
.station-base-room span{font-size:.56rem;text-transform:uppercase;letter-spacing:.06em;color:#89979e;font-weight:800}
.station-base-room b{font-size:1rem;color:var(--station-color);font-weight:950}
.booking-base{width:min(900px,100%);margin:16px auto 0}

/* Rezervācijas datoru izvēlne */
.station-select{font-weight:760;border-width:2px;background:#fff!important}
.station-select:focus{border-color:var(--school-teal);box-shadow:0 0 0 4px rgba(88,158,136,.1)}
.station-select:disabled{background:#f5f7f8!important;color:#84939a;cursor:not-allowed}
.station-select option{font-weight:700;color:#243f4c;background:#fff;padding:8px}
.station-select option:disabled,.station-unavailable-option{color:#c34545!important;background:#fff3f3!important;font-weight:850}
.station-select-help{margin-top:7px;color:#71828b;font-size:.72rem;line-height:1.45}
.station-select-help b{color:var(--school-blue);font-size:.84rem}
.reserved-help{color:#b64b4b}

/* Veiksmīgas rezervācijas modālis */
.success-modal{width:min(690px,100%);padding:0;overflow:hidden;border:1px solid rgba(255,255,255,.7)}
.success-icon{width:74px;height:74px;border-radius:50%;margin:28px auto 12px;background:linear-gradient(135deg,var(--school-teal),#3e806c);color:#fff;display:grid;place-items:center;font-size:2rem;font-weight:900;box-shadow:0 14px 32px rgba(88,158,136,.28)}
.success-copy{padding:0 26px}
.success-copy>.section-kicker{display:block;text-align:center}
.success-copy h2{text-align:center;font-size:1.7rem;margin:3px 0 20px;color:#214351}
.success-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.success-summary-grid>div{background:#f6f9fa;border:1px solid #e4ecef;border-radius:13px;padding:10px 12px;display:flex;flex-direction:column;gap:3px}
.success-summary-grid>div:last-child{grid-column:1/-1;background:#edf5f8}
.success-summary-grid span{font-size:.62rem;text-transform:uppercase;letter-spacing:.055em;font-weight:850;color:#83929a}
.success-summary-grid strong{font-size:.85rem;color:#284653}
.room-highlight{font-size:1.1rem!important;color:var(--school-blue)!important}
.previous-location-card{margin-top:12px;border-radius:15px;padding:13px;display:grid;grid-template-columns:40px 1fr;gap:10px;background:#fff6ef;border:1px solid #f5d8c6}
.previous-location-card.no-history{background:#f2f8f5;border-color:#d6e9df}
.previous-location-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--school-orange);color:#fff;font-size:1.2rem;font-weight:900}
.previous-location-card.no-history .previous-location-icon{background:var(--school-teal)}
.previous-location-card>div:last-child{display:flex;flex-direction:column;gap:2px}
.previous-location-card span{font-size:.65rem;text-transform:uppercase;letter-spacing:.05em;font-weight:900;color:#a06b4e}
.previous-location-card.no-history span{color:#4d806e}
.previous-location-card strong{font-size:1rem;color:#71472f}
.previous-location-card.no-history strong{color:#315e50}
.previous-location-card small{font-size:.7rem;color:#8f715f}
.previous-location-card p{font-size:.72rem;color:#806b5e;margin:4px 0 0;line-height:1.4}
.charge-reminder{margin-top:12px;display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;border-radius:15px;padding:13px;background:#fff9e8;border:1px solid #f0dfaa;color:#66562d;font-size:.76rem;line-height:1.45}
.charge-icon{width:42px;height:42px;border-radius:12px;background:var(--school-yellow);display:grid;place-items:center;font-size:1.2rem}
.success-actions{padding:18px 26px 24px;margin-top:0}
.success-actions .btn{min-width:130px}

/* Vēstures modālis */
.history-modal{width:min(590px,100%)}
.history-current{padding:13px;border-radius:14px;background:linear-gradient(105deg,var(--station-tint),#fff);border-left:5px solid var(--station-color);display:flex;flex-direction:column;gap:3px}
.history-current span,.history-point span{font-size:.64rem;text-transform:uppercase;letter-spacing:.05em;font-weight:850;color:#87969d}
.history-current strong{font-size:.96rem}.history-current small{font-size:.72rem;color:#6e818a}
.history-route{position:relative;margin:18px 4px 12px;padding-left:29px;display:flex;flex-direction:column;gap:19px}
.history-route-line{position:absolute;left:9px;top:10px;bottom:10px;width:2px;background:linear-gradient(var(--school-orange),var(--school-blue))}
.history-point{position:relative;display:flex;flex-direction:column;gap:2px}
.history-point-dot{position:absolute;left:-25px;top:5px;width:12px;height:12px;border:3px solid #fff;border-radius:50%;background:var(--school-orange);box-shadow:0 0 0 2px var(--school-orange)}
.history-point.base .history-point-dot{background:var(--school-blue);box-shadow:0 0 0 2px var(--school-blue)}
.history-point strong{font-size:1rem;color:#294654}.history-point small{font-size:.72rem;color:#74858d}
.history-note{padding:10px 12px;border-radius:12px;background:#f7f9fa;color:#6e8089;font-size:.73rem;line-height:1.45}
.history-empty{text-align:center;padding:18px 8px 8px}.history-empty h3{margin:10px 0 5px}.history-empty p{color:#72848d;font-size:.82rem}
.history-big-icon{margin:auto;width:54px;height:54px;border-radius:16px;background:#eef4f7;color:var(--station-color);display:grid;place-items:center;font-size:1.45rem;font-weight:900}

/* ========================================================================
   V4 Admin — logo krāsu palete + pīrāgdiagrammas
   ======================================================================== */
body.admin-body{background:linear-gradient(135deg,#f4f8fa,#f8faf9 48%,#fffaf5)}
.admin-layout{grid-template-columns:250px 1fr;gap:20px}
.sidebar{
  background:linear-gradient(165deg,#173846 0%,#1e5369 52%,#2f7968 100%);
  box-shadow:0 22px 50px rgba(25,61,79,.16);border-radius:24px;padding:16px;overflow:hidden
}
.sidebar:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:rgba(253,202,72,.1);bottom:-75px;right:-70px;pointer-events:none}
.sidebar-brand{position:relative;z-index:1;background:#fff;border:0;border-radius:16px;padding:14px;margin:0 0 15px;min-height:72px}
.sidebar-brand img{width:145px;filter:none;opacity:1}
.nav-btn{position:relative;z-index:1;color:#eaf3f5;border-left:3px solid transparent;transition:.17s ease}
.nav-btn:hover{background:rgba(255,255,255,.11);color:#fff;border-left-color:var(--school-yellow)}
.nav-btn.active{background:linear-gradient(90deg,rgba(255,255,255,.2),rgba(255,255,255,.1));color:#fff;border-left-color:var(--school-orange);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.admin-header{padding:8px 0 2px}
.admin-header .eyebrow{background:#edf7f4;color:#39755f;border-left:4px solid var(--school-teal)}
.admin-header h1{color:#173d50}

.admin-accent-line{height:5px;border-radius:999px;background:linear-gradient(90deg,var(--school-blue) 0 25%,var(--school-teal) 25% 50%,var(--school-orange) 50% 75%,var(--school-yellow) 75%);margin:-5px 0 16px}
.stats-grid .stat-card{position:relative;overflow:hidden;border-top:4px solid var(--accent);background:linear-gradient(135deg,#fff,var(--accent-tint));padding:17px 18px}
.stats-grid .stat-card:after{content:"";position:absolute;width:78px;height:78px;border-radius:50%;right:-26px;top:-27px;background:var(--accent);opacity:.1}
.stats-grid .stat-card:nth-child(1){--accent:var(--school-blue);--accent-tint:#f1f6f8}
.stats-grid .stat-card:nth-child(2){--accent:var(--school-teal);--accent-tint:#f0f8f5}
.stats-grid .stat-card:nth-child(3){--accent:var(--school-orange);--accent-tint:#fff5f0}
.stats-grid .stat-card:nth-child(4){--accent:#d4a51e;--accent-tint:#fff9e9}
.stats-grid .stat-card .n{color:var(--accent)}

.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.chart-panel{margin-top:0;min-height:330px;border-top:4px solid var(--chart-accent,var(--school-blue));background:linear-gradient(150deg,#fff,#fbfcfc)}
.analytics-grid .chart-panel:nth-child(1){--chart-accent:var(--school-blue)}
.analytics-grid .chart-panel:nth-child(2){--chart-accent:var(--school-teal)}
.analytics-grid .chart-panel:nth-child(3){--chart-accent:var(--school-orange)}
.analytics-grid .chart-panel:nth-child(4){--chart-accent:#d2a51f}
.pie-layout{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:22px;min-height:230px}
.pie-chart-wrap{display:grid;place-items:center;position:relative}
.pie-chart{width:170px;height:170px;border-radius:50%;background:#edf2f4;box-shadow:inset 0 0 0 1px rgba(34,64,78,.05),0 12px 26px rgba(31,65,82,.08);position:relative}
.pie-chart:after{content:"";position:absolute;inset:31%;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #e7edef}
.pie-center{position:absolute;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center;pointer-events:none}
.pie-center strong{font-size:1.25rem;color:#244554}.pie-center span{font-size:.62rem;color:#87949a;font-weight:800;text-transform:uppercase}
.pie-legend{display:flex;flex-direction:column;gap:7px;max-height:230px;overflow:auto;padding-right:4px}
.pie-legend-row{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;font-size:.72rem;color:#5f737d}
.pie-legend-row i{width:9px;height:9px;border-radius:50%;background:var(--slice-color)}
.pie-legend-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pie-legend-row b{color:#334e5b;font-size:.69rem}
.pie-empty{grid-column:1/-1;display:grid;place-items:center;min-height:220px;color:#87979f;font-size:.82rem}

.login-card{border-top:5px solid var(--school-blue);position:relative;overflow:hidden}
.login-card:before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,var(--school-blue) 0 25%,var(--school-teal) 25% 50%,var(--school-orange) 50% 75%,var(--school-yellow) 75%)}
.login-card img{width:170px}
.panel{border-color:#dfe8eb}
.table-wrap{box-shadow:0 5px 16px rgba(31,65,82,.025)}
th{background:#eef5f7;color:#426171}
.status.on{background:#e9f6f1;color:#34725e}.status.off{background:#fff0ed;color:#a35444}

/* Universāla mobilā versija */
@media(max-width:1180px){
  .station-base-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .analytics-grid{grid-template-columns:1fr}
}

@media(max-width:760px){
  .v4-home-inner{gap:24px}
  .v4-pulse-logo{width:230px;height:116px}
  .pulse-logo-card{width:205px;min-height:90px;padding:17px 23px;border-radius:22px}
  .pulse-logo-card img{width:155px}
  .pulse-ring{width:175px;height:72px;border-radius:22px}
  .v4-home .v3-home-card{min-height:160px}

  .v4-view-head>div:last-child{display:none}
  .v3-week-board{display:flex!important;flex-direction:column;min-height:0!important;overflow:visible!important}
  .day-column{border-right:0;border-bottom:1px solid var(--line)}
  .day-column:last-child{border-bottom:0}
  .day-heading{height:54px;position:sticky;top:0;z-index:2;background:#fff;padding:10px 12px}
  .day-column.is-today .day-heading{background:#f0f8f5}
  .day-bookings{padding:10px}
  .day-empty{padding:18px 10px}
  .booking-card-actions{opacity:1}
  .v3-legend{max-height:none;overflow:visible}
  .legend-item{white-space:normal;flex:1 1 45%}
  .legend-item b{margin-left:auto}

  .station-base-section{padding:13px;border-radius:18px}
  .station-base-grid{grid-template-columns:1fr}
  .station-base-card{grid-template-columns:auto minmax(0,1fr) auto;padding:10px}
  .booking-base{margin-top:13px}

  .success-modal{border-radius:20px}
  .success-copy{padding:0 16px}
  .success-copy h2{font-size:1.35rem}
  .success-summary-grid{grid-template-columns:1fr}
  .success-summary-grid>div:last-child{grid-column:auto}
  .success-actions{padding:15px 16px 19px}
  .success-actions .btn{width:100%}

  .modal-backdrop{align-items:end;padding:0}
  .modal{width:100%;max-height:92vh;border-radius:22px 22px 0 0;padding:18px}
  .history-modal{width:100%}
  .toast{left:12px;right:12px;bottom:12px;max-width:none;text-align:center}

  .app-shell{padding:9px 9px 24px}
  .admin-layout{display:block}
  .sidebar{position:static;border-radius:18px;min-height:auto;margin-bottom:13px;padding:11px}
  .sidebar-brand{min-height:58px;padding:10px 12px;margin-bottom:8px}
  .sidebar-brand img{width:125px}
  .sidebar nav{display:grid;grid-template-columns:1fr 1fr;gap:5px}
  .nav-btn{width:100%!important;margin:0;padding:10px;font-size:.78rem;text-align:center;border-left:0;border-bottom:3px solid transparent}
  .nav-btn.active{border-left:0;border-bottom-color:var(--school-orange)}
  .sidebar .sidebar-bottom{display:flex;gap:5px;margin-top:8px!important;padding-top:8px!important}
  .sidebar .sidebar-bottom .nav-btn{flex:1}
  .admin-header{margin:0 2px 10px}.admin-header h1{font-size:1.55rem}.admin-header .small{font-size:.7rem}
  .toolbar{margin:10px 0}.toolbar-group{display:grid;grid-template-columns:1fr 1fr;width:100%;align-items:end}
  .toolbar-group>.field,.toolbar-group>.btn{width:100%}.toolbar-group>.btn{min-height:45px}
  .stats-grid{grid-template-columns:1fr 1fr;gap:8px}.stat-card{padding:13px!important}.stat-card .n{font-size:1.55rem}
  .analytics-grid{grid-template-columns:1fr;gap:10px}.chart-panel{min-height:auto;padding:14px}
  .pie-layout{grid-template-columns:125px 1fr;gap:12px;min-height:180px}.pie-chart{width:120px;height:120px}.pie-legend{max-height:180px}
  .panel-head{align-items:flex-start}.table-wrap{border-radius:12px}
}

@media(max-width:430px){
  .v3-header{height:60px}.v3-brand img{width:100px}.v3-login-link{min-height:36px;padding:0 10px}
  .v3-calendar-controls{grid-template-columns:1fr}.v3-calendar-toolbar{padding:9px}
  .week-navigation .week-current{flex:1}
  .legend-item{flex-basis:100%}
  .stats-grid{grid-template-columns:1fr 1fr}
  .pie-layout{grid-template-columns:1fr}.pie-chart-wrap{margin:4px 0}.pie-legend{max-height:165px}
  .toolbar-group{grid-template-columns:1fr}
}


/* ========================================================================
   V4.1 — īss logo splash, kompakts zīmols un tīrāks noslodzes kalendārs
   ======================================================================== */

/* Galvenes zīmols: tikai skolas simbols + sistēmas nosaukums */
.v3-brand{
  gap:10px;
  color:#264653;
  cursor:pointer;
}
.v3-brand img{
  width:34px;
  height:34px;
  max-height:none;
  object-fit:contain;
  flex:none;
}
.v3-brand span{
  font-size:.94rem;
  font-weight:850;
  letter-spacing:-.015em;
  white-space:nowrap;
}

/* V4.2 ielādes ekrāns: pilnīgi balts fons, tikai logo, pēc tam fade uz sistēmu */
.startup-logo-splash{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  pointer-events:auto;
  background:#fff;
  animation:splashLayer 1.85s cubic-bezier(.4,0,.2,1) forwards;
}
.startup-logo-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
  animation:splashLogoOut .38s ease 1.20s forwards;
}
.startup-logo-splash img{
  width:96px;
  height:96px;
  object-fit:contain;
  animation:splashLogoPulse .68s ease-in-out 2;
}
.startup-school-name{
  font-size:1.08rem;
  font-weight:800;
  letter-spacing:-.015em;
  color:#183746;
}
.v3-shell{animation:pageReveal .52s ease 1.26s both}
@keyframes splashLogoPulse{
  0%,100%{transform:scale(.91);opacity:.72}
  50%{transform:scale(1.08);opacity:1}
}
@keyframes splashLogoOut{
  to{transform:scale(1.10);opacity:0}
}
@keyframes splashLayer{
  0%,68%{opacity:1;visibility:visible}
  100%{opacity:0;visibility:hidden}
}
@keyframes pageReveal{
  from{opacity:0;transform:translateY(5px)}
  to{opacity:1;transform:none}
}

/* Sākuma skatā paliek tikai abas galvenās darbības */
.v4-home{padding-top:0}
.v4-home-inner{justify-content:center;gap:0}
.v4-home .v3-home-actions{width:min(920px,100%)}

/* Kalendāra leģenda V4.1 vairs netiek rādīta */
.v3-legend{display:none!important}

@media(prefers-reduced-motion:reduce){
  .startup-logo-splash{animation:splashLayer .7s ease forwards}
  .startup-logo-content{animation:splashLogoOut .25s ease .25s forwards}
  .startup-logo-splash img{animation:none}
  .v3-shell{animation:pageReveal .25s ease .28s both}
}

@media(max-width:760px){
  .v3-brand{gap:8px}
  .v3-brand img{width:30px;height:30px}
  .v3-brand span{font-size:.84rem}
  .startup-logo-splash img{width:82px;height:82px}
  .startup-school-name{font-size:1rem}
  .v4-home-inner{gap:0}
}

@media(max-width:430px){
  .v3-brand img{width:28px;height:28px}
  .v3-brand span{font-size:.78rem}
}


/* V4.2 — skolotājs un pagājušu rezervāciju vēsture */
.booking-teacher{
  margin-top:8px;display:flex;align-items:center;gap:6px;color:#667b86;font-size:.74rem;line-height:1.35
}
.booking-teacher span{color:var(--station-color);font-size:.56rem}
.booking-teacher strong{color:#2a4654;font-weight:820}
.past-badge{
  display:inline-flex;align-items:center;height:27px;padding:0 8px;border-radius:999px;background:#eef2f3;color:#6d7e86;
  font-size:.66rem;font-weight:850;letter-spacing:.01em
}
.is-past-booking{opacity:.88;cursor:pointer}
.is-past-booking:hover{opacity:1}
.is-past-booking .booking-card-top{align-items:center}
.reservation-details-modal{width:min(650px,calc(100vw - 28px))}
.reservation-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.reservation-details-grid>div{border:1px solid #e3ecef;border-radius:14px;background:#fbfcfd;padding:12px 13px}
.reservation-details-grid>div.full{grid-column:1/-1}
.reservation-details-grid span{display:block;color:#71838d;font-size:.71rem;font-weight:720;margin-bottom:4px}
.reservation-details-grid strong{display:block;color:#203e4d;font-size:.9rem;line-height:1.35}
.past-lock-note{margin-top:14px;border:1px solid #dce8e5;background:#f3f8f6;color:#4f7568;border-radius:14px;padding:12px 14px;font-size:.8rem;font-weight:720;line-height:1.45}
.admin-history-status{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:.69rem;font-weight:820;white-space:nowrap}
.admin-history-status.past{background:#eef2f3;color:#627780}
.admin-history-status.cancelled{background:#fff0ed;color:#b75b48}
@media(max-width:560px){
  .reservation-details-grid{grid-template-columns:1fr}
  .reservation-details-grid>div.full{grid-column:auto}
}


/* V4.3 — rezervācijas datums sākas tukšs; splash ekrānā redzams skolas nosaukums */
