/* Minimal CSS – clean & responsive */
:root{
  --bg:#0b0d12;
  --panel:#121523;
  --panel2:#0f1220;
  --text:#e7e9f2;
  --muted:#a7adc2;
  --line:#232845;
  --accent:#7c5cff;
  --danger:#ff4d6d;
  --warn:#ffb000;
  --ok:#35d07f;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --nonwork-bg: rgba(15,23,42,.55);
}


/* Light theme overrides */
html[data-theme="light"]{
  --nonwork-bg: rgba(148,163,184,.18);

  --bg:#f4f3ef;
  --panel:#ffffff;
  --panel2:#eef2f1;
  --text:#1f2937;
  --muted:#4b5563;
  --line:#d9e2dd;
  --accent:#00675e;
  --danger:#ff4d6d;
  --warn:#92c01f;
  --ok:#39a631;
  --shadow: 0 10px 30px rgba(10,20,40,.12);
}

/* Small component fixes for light mode */
html[data-theme="light"] .btn--ghost:hover{background: rgba(0,0,0,.05)}
html[data-theme="light"] .pill{background: rgba(0,0,0,.06); color: var(--muted)}
html[data-theme="light"] .alert{background: rgba(0,0,0,.03)}
html[data-theme="light"] .sep{border-top:1px solid rgba(0,0,0,.12)}
html[data-theme="light"] .card--inner{background: rgba(0,0,0,.03)}
html[data-theme="light"] .topbar{background: rgba(255,255,255,.75)}
html[data-theme="light"] .sidenav{background: rgba(255,255,255,.72)}
html[data-theme="light"] .card{background: rgba(255,255,255,.82)}



/* Light form overrides */
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea{
  background-color: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
}



/* Light calendar contrast */
html[data-theme="light"] .cal__head{ color:#374151; }
html[data-theme="light"] .cal__date{ color:var(--text); }
html[data-theme="light"] .cal__cell{ color:var(--text); }
html[data-theme="light"] .cal__cell--dim{ opacity:.78; }
html[data-theme="light"] .cal__events .muted{ color:#374151; }
html[data-theme="light"] .cal__event{ color:#0f172a; border-color: rgba(0,0,0,.12); font-weight:600; }
html[data-theme="light"] .cal__event .muted{ color:#0f172a; font-weight:700; font-size:12px; }
html[data-theme="light"] .cal__event .pill:not(.pill--ok):not(.pill--warn):not(.pill--bad){ color:#0f172a; background: rgba(255,255,255,.60); border-color: rgba(0,0,0,.16) }



/* Dark calendar contrast */
html[data-theme="dark"] .cal__head{ color: rgba(231,233,242,.92); }
html[data-theme="dark"] .cal__date{ color: rgba(231,233,242,.92); }
html[data-theme="dark"] .cal__cell{
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.07);
  color: rgba(231,233,242,.92);
}
html[data-theme="dark"] .cal__cell--dim{ opacity:.70; }
html[data-theme="dark"] .cal__events .muted{ color: rgba(231,233,242,.78); }
html[data-theme="dark"] .cal__event{
  background: rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.10);
  color: rgba(231,233,242,.95);
  font-weight:600;
}
html[data-theme="dark"] .cal__event .muted{ color: rgba(231,233,242,.88); font-weight:700; }
html[data-theme="dark"] .cal__event .pill:not(.pill--ok):not(.pill--warn):not(.pill--bad){
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: rgba(231,233,242,.90);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder{
  color: rgba(31,41,55,.55);
}

html[data-theme="light"] select option{
  color: var(--text);
}

html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,103,94,.18);
  border-color: rgba(0,103,94,.45);
}

html[data-theme="light"] body{
  background: radial-gradient(1200px 800px at 10% -10%, rgba(0,103,94,.10), transparent 55%),
              radial-gradient(1000px 700px at 90% 0%, rgba(57,166,49,.10), transparent 55%),
              var(--bg);
}





*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 10% -10%, rgba(0,103,94,.25), transparent 55%),
              radial-gradient(1000px 700px at 90% 0%, rgba(57,166,49,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit}
.content a{color: var(--accent); text-decoration: none}
.content a:hover{text-decoration: underline}

h1,h2,h3{font-family: "Playfair Display", Poppins, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";}
h1{margin:0 0 16px; font-size:28px}
h2{margin:0 0 12px; font-size:18px}
p{line-height:1.5}
.muted{color:var(--muted); font-size:14px}

.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; border-bottom:1px solid var(--line);
  background: rgba(11,28,22,.75);
  backdrop-filter: blur(10px);
  position: sticky; top:0; z-index: 10;
}
.brand{display:flex; align-items:baseline; gap:10px}
.brand__name{font-weight:700; letter-spacing:.2px}
.brand__sub{color:var(--muted); font-size:12px}
.userbox{display:flex; align-items:center; gap:12px}
.userbox__name{color:var(--muted)}

.shell{display:grid; grid-template-columns: 240px 1fr; gap:18px; padding:18px}
@media (max-width: 900px){
  .shell{grid-template-columns: 1fr}
  .sidenav{position: static}
}
.sidenav{
  background: rgba(11,28,22,.65);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:12px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky; top:72px;
}
.navlink{
  display:block;
  padding:10px 12px;
  border-radius: 12px;
  text-decoration:none;
  color:var(--muted);
}
.sidenav .navlink{font-size:13px}
.navlink:hover{background: rgba(0,103,94,.12); color: var(--text)}
.navlink.active{background: rgba(0,103,94,.22); color: var(--text)}
.sidenav .navlink.active{font-weight:600}

/* Collapsible navigation groups */
.navgroup{margin: 2px 0 10px}
.navgroup:last-child{margin-bottom:0}
.navgroup > summary::-webkit-details-marker{display:none}
.navgroup > summary{list-style:none}
.navgroup > summary.navsection{
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.navgroup > summary.navsection::after{
  content:'▸';
  opacity:.65;
  font-size:14px;
  transform: translateY(0.5px);
  transition: transform .15s ease, opacity .15s ease;
}
.navgroup[open] > summary.navsection::after{transform: rotate(90deg)}
.navgroup[data-fixed="1"] > summary.navsection{cursor:default}
.navgroup[data-fixed="1"] > summary.navsection::after{content:''}
.navgroup__items{margin-top:2px}


.navsection{
  padding:10px 10px 8px;
  font-size:14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  opacity: .95;
  font-weight:600;
}
.navgroup[data-active="1"] > summary.navsection{color: var(--text); opacity:1}
.navsection:first-child{padding-top:0}

.content{min-height: calc(100vh - 140px)}
.footer{
  padding:18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

.card{
  background: rgba(11,28,22,.72);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}

.grid{display:grid; gap:18px}
@media (min-width: 1100px){ .grid{grid-template-columns: 1fr 1fr} }

.table{width:100%; border-collapse: collapse; font-size:14px}
.table th,.table td{padding:10px 8px; border-bottom:1px solid var(--line); vertical-align: top}
.table th{color:var(--muted); font-weight:600; text-align:left}
.table .right{text-align:right}

/* Wide tables (e.g. weekly approvals matrix) */
.table-scroll{
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.weekmatrix{
  width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.weekmatrix th,.weekmatrix td{
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}
.weekmatrix th{color: var(--muted); font-weight: 600;}
.weekmatrix th:last-child,.weekmatrix td:last-child{border-right:none}
.weekmatrix tr:last-child td{border-bottom:none}

.weekmatrix th{position: sticky; top: 0; z-index: 2; background: rgba(15,18,32,.92)}
.weekmatrix td:first-child,
.weekmatrix th:first-child{
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  min-width: 170px;
  background: rgba(15,18,32,.92);
}
html[data-theme="light"] .weekmatrix th{background: rgba(238,242,241,.92)}
html[data-theme="light"] .weekmatrix td:first-child,
html[data-theme="light"] .weekmatrix th:first-child{background: rgba(238,242,241,.92)}

.wkcell{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-radius: 999px;
  text-decoration:none;
}
.wkcell--selected{outline:2px solid rgba(0,103,94,.55); outline-offset:2px}

.wkdot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}
.wkdot--draft{background: transparent; border-color: rgba(255,255,255,.22)}
.wkdot--submitted{background: var(--warn); border-color: var(--warn)}
.wkdot--approved{background: var(--ok); border-color: var(--ok)}
.wkdot--rejected{background: var(--danger); border-color: var(--danger)}
.wkdot--future{background: transparent; border-color: rgba(255,255,255,.12); opacity: .35}

.wklegend{display:inline-flex; align-items:center; gap:6px}

.wkemp{color: var(--text); text-decoration:none}
.wkemp:hover{text-decoration: underline}
.wkemp:focus{outline:2px solid rgba(0,103,94,.55); outline-offset:2px; border-radius:6px}

.form{display:grid; gap:10px}
.form label span{display:block; color:var(--muted); font-size:12px; margin-bottom:6px}
.form input,.form select{
  width:100%; padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(15,18,32,.75);
  color:var(--text);
  outline:none;
}
.form input:focus,.form select:focus{border-color: rgba(0,103,94,.7); box-shadow: 0 0 0 4px rgba(0,103,94,.18)}


/* Modern select */
.form select{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  cursor:pointer;
  padding-right:42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
}
.form select:hover{ border-color: rgba(0,103,94,.55); }
.form select:disabled{ opacity:.7; cursor:not-allowed; }
.form input:disabled{ opacity:.7; cursor:not-allowed; }

/* Standalone inputs (e.g. in tables / compact inline forms) */
.input{
  width:100%;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(15,18,32,.75);
  color:var(--text);
  outline:none;
}
.input:focus{border-color: rgba(0,103,94,.7); box-shadow: 0 0 0 4px rgba(0,103,94,.18)}
.input:disabled{ opacity:.7; cursor:not-allowed; }
.input--sm{padding:6px 10px; border-radius: 10px; font-size:12px}

.row{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
.row--between{justify-content:space-between}
.row--center{align-items:center}
.form--row{display:flex; gap:12px; align-items:flex-end}
.form--wrap{flex-wrap:wrap}
.check{display:flex; gap:10px; align-items:center}
.check span{margin:0}

.btn{
  appearance:none;
  border:1px solid rgba(0,103,94,.55);
  background: rgba(0,103,94,.18);
  color: var(--text);
  padding:10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:600;
  text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
}
.btn:hover{background: rgba(0,103,94,.26)}
.btn--ghost{background: transparent; border-color: var(--line); color: var(--muted)}
.btn--ghost:hover{background: rgba(255,255,255,.05); color: var(--text)}
.btn--danger{border-color: rgba(255,77,109,.65); background: rgba(255,77,109,.16)}
.btn--danger:hover{background: rgba(255,77,109,.24)}
.btn--sm{padding:6px 10px; border-radius: 10px; font-size:12px}

.btn--icon{padding:6px; width:32px; height:32px; border-radius: 10px; position:relative}
.btn--icon svg{width:16px; height:16px; display:block}
.icon-actions{display:inline-flex; gap:6px; align-items:center; justify-content:flex-end; flex-wrap:wrap}
.icon-badge{
  position:absolute;
  top:4px;
  right:4px;
  width:8px;
  height:8px;
  border-radius:999px;
  background: var(--warn);
  box-shadow: 0 0 0 2px var(--panel);
}
.table tr.is-editing td{background: rgba(255,176,0,.06)}

.inline{display:inline}
details.inline > summary::-webkit-details-marker{display:none}
details.inline > summary{list-style:none}

.pill{
  display:inline-block;
  padding:4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  color: var(--muted);
  font-size:12px;
}
.pill--ok{border-color: rgba(57,166,49,.55); color: rgba(57,166,49,.95); background: rgba(57,166,49,.10)}
.pill--warn{border-color: rgba(255,176,0,.55); color: rgba(255,176,0,.95); background: rgba(255,176,0,.10)}
.pill--bad{border-color: rgba(255,77,109,.55); color: rgba(255,77,109,.95); background: rgba(255,77,109,.10)}

.alert{
  padding:12px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  margin-bottom: 14px;
}
.alert--danger{border-color: rgba(255,77,109,.55); background: rgba(255,77,109,.12)}
.alert--success{border-color: rgba(57,166,49,.55); background: rgba(57,166,49,.10)}
.alert--warn{border-color: rgba(255,176,0,.55); background: rgba(255,176,0,.10)}

/* Simple calendar */
.calendar{margin-top:12px}
.cal-head{display:flex; align-items:center; justify-content:space-between; gap:12px}
.cal-title{font-weight:700}
.cal-grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:8px;
}
.cal-dow{color:var(--muted); font-size:12px; text-align:center; padding:6px 0}
.cal-cell{
  border:1px solid var(--line);
  border-radius: 14px;
  padding:10px;
  min-height: 90px;
  background: rgba(15,18,32,.65);
}
.cal-day{font-size:12px; color:var(--muted)}
.cal-items{margin-top:8px; display:grid; gap:6px}
.cal-item{
  font-size:12px;
  padding:6px 8px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.cal-item.urlaub{border-color: rgba(0,103,94,.55)}
.cal-item.krank{border-color: rgba(255,77,109,.55)}
.cal-item.weiterbildung{border-color: rgba(255,176,0,.55)}
.cal-item.kompensation{border-color: rgba(57,166,49,.55)}



/* Tabs */
.tabs { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.tab { padding:8px 12px; border:1px solid var(--border, #e5e7eb); border-radius:999px; text-decoration:none; color:inherit; }
.tab.active { background:#111827; color:#fff; border-color:#111827; }


/* Employees: JS Tabs (progressive enhancement) */
.emp-tabs{ margin: 12px 0 8px; }
.emp-tabs-wrap.tabsjs .tab-panel{ display:none; }
.emp-tabs-wrap.tabsjs .tab-panel.active{ display:block; }
.emp-tabs-wrap .tab-panel{ margin-top: 10px; }
/* KPI */
.kpi { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:12px; }
.kpi__label { font-size:12px; color:var(--muted, #6b7280); }
.kpi__value { font-size:20px; font-weight:700; }
@media (max-width: 900px) { .kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Calendar */
.cal { width:100%; }
.cal--month { display:grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap:8px; }
.cal__head { font-weight:700; color:var(--muted, #6b7280); padding:6px 4px; }
.cal__cell { border:1px solid var(--border, #e5e7eb); border-radius:12px; min-height:110px; padding:8px; background:#fff; }
.cal__cell--dim { opacity:0.55; background:#fafafa; }
.cal__cell--nonwork { background: var(--nonwork-bg, #f1f5f9); border-style:dashed; }




/* School day (fixed) visualization */
.cal__cell--school{
  background-image: repeating-linear-gradient(135deg, var(--nonwork-bg, rgba(15,23,42,.45)) 0 10px, transparent 10px 20px);
}
/* Half-day fixed schedule (AM/PM) visualization for selected employee */
.cal__cell--half-am{ background-image: linear-gradient(to bottom, transparent 0 50%, var(--nonwork-bg, rgba(15,23,42,.45)) 50% 100%); }
.cal__cell--half-pm{ background-image: linear-gradient(to bottom, var(--nonwork-bg, rgba(15,23,42,.45)) 0 50%, transparent 50% 100%); }
.cal__row--nonwork { background: var(--nonwork-bg, #f1f5f9); border-radius:12px; padding:6px; }

.cal__cell--today { outline:2px solid #111827; }
.cal__date { display:flex; align-items:center; gap:8px; font-weight:700; margin-bottom:6px; }
.cal__events { display:flex; flex-direction:column; gap:4px; }
.cal__event { font-size:12px; padding:4px 6px; border-radius:10px; border:1px solid var(--border, #e5e7eb); background:#f9fafb; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.cal--week { display:flex; flex-direction:column; gap:10px; }
.cal__row { display:grid; grid-template-columns: 220px 1fr; gap:12px; padding:10px 0; border-bottom:1px solid var(--border, #e5e7eb); }
@media (max-width: 900px) { .cal__row { grid-template-columns: 1fr; } }

.legend { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.legend__item { display:flex; align-items:center; gap:8px; }
.legend__swatch { width:14px; height:14px; border-radius:6px; display:inline-block; border:1px solid var(--border, #e5e7eb); }

/* Status dot (used in calendar/status legends) */
.statusdot{
  width:8px;
  height:8px;
  border-radius:999px;
  display:inline-block;
  vertical-align:middle;
  margin-right:6px;
  background: var(--muted);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18);
}

html[data-theme="dark"] .statusdot{ box-shadow: 0 0 0 1px rgba(255,255,255,.18); }

.legend__item .statusdot{ margin-right:0; }

.statusdot--ok{ background: var(--ok); }
.statusdot--warn{ background: rgba(255,176,0,1); }
.statusdot--bad{ background: var(--danger); }
.statusdot--info{ background: var(--accent); }
.statusdot--muted{ background: var(--muted); }

/* Event colors (fallbacks) */
.event--urlaub { background: #dbeafe; border-color:#93c5fd; }
.event--krank { background: #fee2e2; border-color:#fca5a5; }
.event--kompensation { background: #dcfce7; border-color:#86efac; }
.event--weiterbildung { background: #ede9fe; border-color:#c4b5fd; }
.event--warn { background: #fef3c7; border-color:#fcd34d; }

.sep{border:0;border-top:1px solid rgba(255,255,255,.08);margin:14px 0}
.card--inner{background:rgba(255,255,255,.03);padding:12px;border-radius:14px}


/* Status pill colors */
html[data-theme="light"] .pill--ok{border-color: rgba(57,166,49,.55); color: rgba(31,133,35,.98); background: rgba(57,166,49,.14)}
html[data-theme="light"] .pill--warn{border-color: rgba(255,176,0,.55); color: rgba(176,115,0,.98); background: rgba(255,176,0,.16)}
html[data-theme="light"] .pill--bad{border-color: rgba(255,77,109,.55); color: rgba(200,38,65,.98); background: rgba(255,77,109,.14)}

html[data-theme="dark"] .pill--ok{border-color: rgba(53,208,127,.60); color: rgba(53,208,127,1); background: rgba(53,208,127,.16)}
html[data-theme="dark"] .pill--warn{border-color: rgba(255,176,0,.60); color: rgba(255,176,0,1); background: rgba(255,176,0,.16)}
html[data-theme="dark"] .pill--bad{border-color: rgba(255,77,109,.60); color: rgba(255,77,109,1); background: rgba(255,77,109,.16)}


/* ===== Mobile drawer navigation ===== */
.navtoggle{display:none}
.navbackdrop{display:none}

@media (max-width: 900px){
  .navtoggle{display:inline-flex}

  /* make shell single column and prevent sticky nav from affecting flow */
  .shell{grid-template-columns: 1fr; padding:12px}

  /* off-canvas drawer */
  .sidenav{
    position: fixed !important;
    top: 72px;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    height: calc(100vh - 72px);
    overflow: auto;
    transform: translateX(-110%);
    transition: transform .18s ease;
    z-index: 30;
    border-radius: 0 var(--radius) var(--radius) 0;
  }
  .navbackdrop{
    display:none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(2px);
    z-index: 25;
  }

  body.nav-open .sidenav{transform: translateX(0)}
  body.nav-open .navbackdrop{display:block}
}


/* User dropdown menu */
.usermenu{position:relative}
.usermenu > summary::-webkit-details-marker{display:none}
.usermenu__btn{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}
html[data-theme="light"] .usermenu__btn{background: rgba(255,255,255,.90)}
.usermenu__btn:hover{background: rgba(255,255,255,.06)}
html[data-theme="light"] .usermenu__btn:hover{background: rgba(0,0,0,.04)}
.usermenu__name{font-weight:600}
.usermenu__panel{
  position:absolute;
  right:0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding:8px;
  z-index: 60;
}
.usermenu__panel .navlink{border-radius:10px}





/* Date range picker (Abwesenheiten) */
.drp{position:relative; margin-top:0}
.drp__field{cursor:pointer}
.drp__popover{
  position:absolute;
  top: calc(100% + 6px);
  left:0;
  z-index: 55;
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding:12px;
  min-width: 320px;
  max-width: calc(100vw - 24px);
}
.drp__nav{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px}
.drp__title{font-weight:700; text-align:center; flex:1}
.drp__months{display:grid; gap:12px}
@media (min-width: 720px){
  .drp__popover{min-width: 660px}
  .drp__months{grid-template-columns: 1fr 1fr}
}
.drp__month-title{font-weight:600; color: var(--muted); text-align:center; margin-bottom:8px}
.drp__grid{display:grid; grid-template-columns: repeat(7, 1fr); gap:4px}
.drp__dow{font-size:11px; color: var(--muted); text-align:center; padding:4px 0}
.drp__spacer{height:32px}
.drp__day{
  border:1px solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding:6px 0;
  cursor:pointer;
}
.drp__day:hover{background: rgba(255,255,255,.06)}
.drp__day.is-today{border-color: rgba(0,103,94,.55)}
.drp__day.is-inrange{background: rgba(0,103,94,.14)}
.drp__day.is-selected{background: rgba(0,103,94,.28)}
.drp__day.is-start, .drp__day.is-end{
  background: rgba(0,103,94,.38);
  border-color: rgba(0,103,94,.75);
}
.drp__foot{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px}
.drp__hint{margin-top:8px; font-size:12px; color: var(--muted)}
.form input.input--locked{opacity:.8}
