
.header-actions{justify-self:end;display:flex;align-items:center;gap:10px}.theme-button{border:1px solid var(--line);background:var(--surface,#fff);color:var(--ink);border-radius:8px;padding:8px 11px;font-weight:700;cursor:pointer}.admin-console{max-width:1440px;margin:0 auto 50px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:14px;padding:22px}.admin-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:-5px 0 22px}.admin-tabs button{border:0;background:transparent;color:var(--muted);padding:12px 15px;border-bottom:3px solid transparent;font-weight:800;cursor:pointer}.admin-tabs button.active{color:#0e7490;border-color:#0e7490}.section-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:18px}.section-heading h2{margin:0;font-size:20px}.section-heading p{color:var(--muted);margin:5px 0 0}.save-state{font-size:11px;color:#15803d;background:#dcfce7;border-radius:999px;padding:6px 10px}.skill-table{overflow-x:auto;border:1px solid var(--line);border-radius:10px}.skill-row{display:grid;grid-template-columns:150px repeat(8,minmax(105px,1fr));min-width:1050px;border-bottom:1px solid var(--line);align-items:stretch}.skill-row:last-child{border-bottom:0}.skill-row>b{padding:11px 13px;background:var(--soft-surface,#f4f6f8);position:sticky;left:0;z-index:1}.skill-row>label{display:grid;place-items:center;cursor:pointer;border-left:1px solid var(--line)}.skill-row input{position:absolute;opacity:0}.skill-row label i{display:grid;place-items:center;width:22px;height:22px;border:2px solid #b8c1ca;border-radius:6px}.skill-row input:checked+i{background:#0e7490;border-color:#0e7490}.skill-row input:checked+i:after{content:'✓';color:#fff;font-style:normal;font-size:14px;font-weight:900}.skill-head{background:var(--soft-surface,#f4f6f8);font-size:11px}.skill-head span{display:flex;align-items:center;justify-content:center;text-align:center;padding:9px;border-left:1px solid var(--line)}.absence-form{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr 1fr 1.2fr auto;gap:9px;align-items:end;background:var(--soft-surface,#f4f6f8);border-radius:10px;padding:14px;margin-bottom:20px}.absence-form label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:800;color:var(--muted)}.absence-form input,.absence-form select{height:40px;border:1px solid var(--line);background:var(--surface,#fff);color:var(--ink);border-radius:7px;padding:0 8px;min-width:0}.absence-form button{height:40px;border:0;background:#0e7490;color:#fff;border-radius:7px;padding:0 14px;font-weight:800;cursor:pointer}.absence-list{border:1px solid var(--line);border-radius:10px;overflow:hidden}.absence-row{display:grid;grid-template-columns:1.2fr 1fr 1.5fr 1fr auto;gap:12px;align-items:center;padding:10px 13px;border-bottom:1px solid var(--line);font-size:13px}.absence-row:last-child{border-bottom:0}.absence-head{background:var(--soft-surface,#f4f6f8);color:var(--muted);font-size:11px}.absence-type{display:inline-flex;width:max-content;background:#ffe4e6;color:#9f1239;border-radius:999px;padding:4px 8px}.absence-row button{border:0;background:transparent;color:#be123c;cursor:pointer}.loading{padding:30px;text-align:center;color:var(--muted)}
.conflict{display:grid;grid-template-columns:minmax(260px,1fr) minmax(420px,1.25fr);gap:18px;align-items:center;border:1px solid #f5b9b9;background:#fff7f7;border-radius:11px;padding:15px;margin:0 0 16px}.conflict.resolved{grid-template-columns:1fr auto;border-color:#9fd5b3;background:#f3fbf6}.conflict-copy{display:flex;align-items:center;gap:12px}.conflict-copy p{font-size:12px;color:#6b4750;margin:4px 0 0}.conflict-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:#be123c;color:#fff;font-weight:900}.resolved .conflict-icon{background:#16834a}.candidates{display:flex;align-items:center;justify-content:flex-end;gap:7px}.candidates>span{max-width:155px;color:#765762;font-size:11px}.candidates button,.undo{display:flex;flex-direction:column;text-align:left;border:1px solid #d9dee3;background:#fff;border-radius:8px;padding:8px 10px;cursor:pointer}.candidates button:hover{border-color:#0e7490;box-shadow:0 2px 8px #0e749020}.candidates small{color:#68737d;margin-top:2px}.undo{color:#59636f}.resolved .conflict-copy p{color:#39724f}@media(max-width:900px){.conflict{grid-template-columns:1fr}.candidates{justify-content:flex-start;flex-wrap:wrap}.candidates>span{max-width:none;width:100%}}
:root{--ink:#17202a;--muted:#667085;--line:#e5e9ee;--paper:#f5f7f9;--navy:#102a43}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif}.topbar{height:72px;padding:0 4vw;background:#fff;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto 1fr;align-items:center}.brand{display:flex;gap:11px;align-items:center}.brand .mark{display:grid;place-items:center;width:38px;height:38px;background:var(--navy);color:#fff;border-radius:10px;font-size:13px;font-weight:800}.brand div{display:flex;flex-direction:column}.brand small{color:var(--muted);margin-top:2px}.weeknav{display:flex;align-items:center;gap:16px}.weeknav button{border:1px solid var(--line);background:#fff;border-radius:8px;width:34px;height:34px;font-size:22px;cursor:pointer}.avatar{justify-self:end;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#d9e8f2;color:#15435d;font-weight:800}.intro{max-width:1440px;margin:0 auto;padding:36px 4vw 25px;display:flex;justify-content:space-between;align-items:end}.eyebrow{text-transform:uppercase;letter-spacing:.11em;font-size:11px;font-weight:800;color:#0e7490;margin:0 0 8px}.intro h1{font-size:clamp(26px,3vw,42px);letter-spacing:-.035em;margin:0}.intro p:not(.eyebrow){color:var(--muted);margin:8px 0 0}.view-toggle{display:flex;padding:4px;background:#e8edf1;border-radius:10px}.view-toggle button{border:0;background:transparent;padding:10px 15px;border-radius:7px;color:#53606c;font-weight:700;cursor:pointer}.view-toggle .active{background:#fff;color:var(--navy);box-shadow:0 1px 4px #102a4320}.day-tabs{max-width:1440px;margin:0 auto;padding:0 4vw;display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.day-tabs button{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;display:flex;flex-direction:column;cursor:pointer;color:#586471}.day-tabs button span{font-weight:800}.day-tabs button small{margin-top:3px}.day-tabs button.active{background:var(--navy);border-color:var(--navy);color:#fff}.board,.my-week{max-width:1440px;margin:16px auto 50px;padding:0 4vw}.board{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px}.board-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.board-head h2{margin:0;font-size:19px}.board-head p{margin:3px 0 0;color:var(--muted);font-size:13px}.legend{display:flex;gap:15px;color:#59636f;font-size:12px}.legend span{display:flex;align-items:center;gap:6px}.dot{width:8px;height:8px;border-radius:50%;background:#e11d48}.dot.blocked{background:#7f1d1d}.dot.partial{background:#d97706}.area-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.area-card{min-height:152px;border:1px solid var(--line);border-top:4px solid var(--area);border-radius:10px;padding:14px;background:linear-gradient(180deg,var(--soft),#fff 42%)}.area-card h3{display:flex;align-items:center;gap:8px;font-size:14px;margin:0 0 13px}.area-card h3 i{width:8px;height:8px;border-radius:50%;background:var(--area)}.entries{display:grid;gap:7px}.person{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e9edf0;border-radius:8px;padding:8px;box-shadow:0 1px 2px #102a4308}.person.blocked{border-left:4px solid #7f1d1d}.person.partial{border-left:4px solid #d97706}.person.absence{border-left:4px solid #e11d48}.initials{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:var(--soft);color:var(--area);font-size:11px;font-weight:800}.person>span:last-child{display:flex;flex-direction:column}.person b{font-size:13px}.person small{font-size:11px;color:var(--muted);margin-top:2px}.empty{color:#98a1ab;font-size:12px;margin:14px 0}.my-week{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px}.person-select{display:flex;align-items:center;gap:12px;margin-bottom:18px}.person-select label{font-weight:800}.person-select select{border:1px solid #ccd3da;border-radius:8px;padding:10px 14px;background:#fff;min-width:180px}.personal-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.personal-grid article{border:1px solid var(--line);border-radius:10px;padding:14px;min-height:175px}.personal-grid h3{font-size:13px;margin:0 0 12px;border-bottom:1px solid var(--line);padding-bottom:10px}.personal-entry{display:flex;flex-direction:column;border-left:4px solid #0e7490;background:#f5fafb;padding:10px;border-radius:5px;margin-bottom:8px}.personal-entry.blocked{border-color:#7f1d1d;background:#fff5f5}.personal-entry.partial{border-color:#d97706;background:#fffbeb}.personal-entry.absence{border-color:#e11d48;background:#fff1f2}.personal-entry b{font-size:12px}.personal-entry span{font-size:11px;color:var(--muted);margin-top:4px}@media(max-width:900px){.area-grid{grid-template-columns:repeat(2,1fr)}.personal-grid{grid-template-columns:1fr 1fr}.weeknav{display:none}.topbar{grid-template-columns:1fr 1fr}.intro{align-items:flex-start;gap:20px;flex-direction:column}.legend{display:none}}@media(max-width:600px){.area-grid,.personal-grid{grid-template-columns:1fr}.day-tabs{overflow-x:auto;grid-template-columns:repeat(5,minmax(100px,1fr))}.board{padding:14px}.intro{padding-top:24px}.view-toggle{width:100%}.view-toggle button{flex:1}}
.jordi-logo-wrap{display:grid;place-items:center;width:44px;height:44px;padding:4px;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;flex:0 0 auto}.jordi-logo{display:block;width:100%;height:100%;object-fit:contain}.brand b{font-size:16px}

:root{--font-geist-sans:Arial,Helvetica,sans-serif;--font-geist-mono:monospace}

[data-theme="dark"] {
  --ink: #edf2f7;
  --muted: #9ba8b5;
  --line: #33404c;
  --paper: #10161c;
  --navy: #071c2d;
  --surface: #182129;
  --soft-surface: #212c35;
  color-scheme: dark;
}
[data-theme="dark"] body {
  background: #10161c;
}
[data-theme="dark"] .topbar,
[data-theme="dark"] .board,
[data-theme="dark"] .my-week,
[data-theme="dark"] .admin-console {
  background: #182129;
}
[data-theme="dark"] .weeknav button,
[data-theme="dark"] .day-tabs button,
[data-theme="dark"] .person,
[data-theme="dark"] .view-toggle .active,
[data-theme="dark"] .candidates button,
[data-theme="dark"] .undo {
  background: #202b34;
  color: #edf2f7;
}
[data-theme="dark"] .view-toggle {
  background: #0d1318;
}
[data-theme="dark"] .day-tabs button.active {
  background: #0e7490;
}
[data-theme="dark"] .area-card {
  background: linear-gradient(180deg, #24313b, #182129 48%);
}
[data-theme="dark"] .personal-grid article {
  background: #182129;
}
[data-theme="dark"] .personal-entry {
  background: #202d35;
}
[data-theme="dark"] .conflict {
  background: #351f25;
  border-color: #6e3542;
}
[data-theme="dark"] .conflict.resolved {
  background: #183326;
  border-color: #356d4d;
}
[data-theme="dark"] .conflict-copy p,
[data-theme="dark"] .resolved .conflict-copy p {
  color: #c7d1da;
}
[data-theme="dark"] .absence-type {
  background: #4b2430;
  color: #ffb3c1;
}
.pattern-form {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.2fr 1.2fr auto;
  gap: 12px;
  align-items: end;
  background: var(--soft-surface, #f4f6f8);
  padding: 15px;
  border-radius: 10px;
}
.pattern-form > label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.pattern-form select,
.pattern-form input[type="date"],
.exception-form select,
.exception-form input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--ink);
  padding: 0 9px;
}
.pattern-form fieldset {
  display: flex;
  gap: 9px;
  border: 0;
  margin: 0;
  padding: 0;
}
.pattern-form legend {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 7px;
}
.pattern-form fieldset label,
.alternate {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 4px;
}
.pattern-form .weekday-scopes{display:grid;grid-template-columns:repeat(5,minmax(105px,1fr));gap:8px}.pattern-form .weekday-scopes label{display:flex!important;flex-direction:column!important;align-items:stretch;gap:4px}.pattern-form .weekday-scopes label span{font-size:11px;font-weight:800;color:var(--muted)}.pattern-form .weekday-scopes select{width:100%}
.pattern-form button,
.exception-form button {
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: #0e7490;
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}
.pattern-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 15px 0 25px;
}
.pattern-list > div {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.pattern-list span {
  color: var(--muted);
  font-size: 12px;
}
.skill-row {
  grid-template-columns: 150px repeat(10, minmax(105px, 1fr));
  min-width: 1265px;
}
.pattern-list .row-actions,
.staffing-list .row-actions,
.absence-list .row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.pattern-list button,
.row-actions button,
.secondary-action {
  border: 0;
  background: transparent;
  color: #0e7490;
  cursor: pointer;
  font-weight: 700;
}
.row-actions button:last-child { color: #be123c; }
.admin-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft-surface, #f4f6f8);
}
.admin-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 180px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.admin-filters select,
.admin-filters input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--ink);
  padding: 0 9px;
}
.admin-filters > button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
}
.exception-title {
  font-size: 15px;
}
.exception-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 2fr auto;
  gap: 9px;
}
.exception-list {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.exception-list > div {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr auto;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.exception-list > div:last-child {
  border: 0;
}
.exception-list button {
  border: 0;
  background: transparent;
  color: #be123c;
  cursor: pointer;
}
@media (max-width: 1050px) {
  .absence-form {
    grid-template-columns: repeat(3, 1fr);
  }
  .absence-form button {
    grid-column: 1/-1;
  }
  .absence-row {
    grid-template-columns: 1fr 1fr;
  }
  .absence-head {
    display: none;
  }
  .pattern-form {
    grid-template-columns: 1fr 1fr;
  }
  .pattern-form button {
    grid-column: 1/-1;
  }
  .pattern-list {
    grid-template-columns: 1fr 1fr;
  }
  .exception-form {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .admin-console {
    margin-left: 4vw;
    margin-right: 4vw;
  }
  .absence-form {
    grid-template-columns: 1fr;
  }
  .absence-row {
    grid-template-columns: 1fr;
  }
  .header-actions .avatar {
    display: none;
  }
  .theme-button {
    font-size: 0;
  }
  .theme-button:first-letter {
    font-size: 16px;
  }
}
.pattern-form {
  grid-template-columns: 1.1fr 3fr 1fr 1.1fr 1.1fr auto;
}
.exception-form {
  grid-template-columns: 1fr 1fr 1fr 1.2fr 2fr auto;
}
.employee-add {
  display: flex;
  gap: 8px;
  margin: -4px 0 14px;
}
.employee-add input {
  height: 38px;
  border: 1px solid var(--line);
  background: var(--surface, #fff);
  color: var(--ink);
  border-radius: 7px;
  padding: 0 10px;
}
.employee-add button {
  border: 0;
  border-radius: 7px;
  background: #0e7490;
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
}
.employee-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.employee-name span {
  display: flex;
}
.employee-name button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  padding: 0 3px;
}
@media (max-width: 1050px) {
  .pattern-form,
  .exception-form {
    grid-template-columns: 1fr 1fr;
  }
}
.assignment-admin {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 22px;
  background: var(--soft-surface, #f4f6f8);
}
.assignment-admin summary {
  cursor: pointer;
  padding: 13px 15px;
  font-weight: 900;
  color: #0e7490;
}
.assignment-admin[open] {
  padding: 0 15px 15px;
}
.assignment-admin[open] summary {
  margin: 0 -15px 15px;
  border-bottom: 1px solid var(--line);
}
.assignment-form {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 0.9fr 0.9fr 0.9fr 0.9fr 1.25fr 1.35fr auto;
  gap: 8px;
  align-items: end;
}
.assignment-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.assignment-form select,
.assignment-form input {
  height: 39px;
  border: 1px solid var(--line);
  background: var(--surface, #fff);
  color: var(--ink);
  border-radius: 7px;
  padding: 0 8px;
  min-width: 0;
}
.assignment-form .responsible-check {
  height: 39px;
  flex-direction: row;
  align-items: center;
}
.assignment-form .responsible-check input {
  height: auto;
}
.assignment-form button {
  height: 39px;
  border: 0;
  border-radius: 7px;
  background: #0e7490;
  color: #fff;
  padding: 0 12px;
  font-weight: 800;
  min-width: 108px;
  white-space: nowrap;
  cursor: pointer;
}
.assignment-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}
.assignment-list {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.assignment-list > div {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.5fr auto;
  gap: 8px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.assignment-list > div:last-child {
  border: 0;
}
.assignment-list button {
  border: 0;
  background: transparent;
  color: #be123c;
}
.person.responsible {
  border: 2px solid #0e7490;
}
.lead-badge {
  font-style: normal;
  font-size: 9px;
  background: #0e7490;
  color: #fff;
  border-radius: 999px;
  padding: 3px 6px;
  margin-left: 6px;
  white-space: nowrap;
}
.location {
  font-weight: 700;
}
.location.homeoffice {
  color: #6d28d9;
}
.location.office {
  color: #047857;
}
@media (max-width: 1100px) {
  .assignment-form {
    grid-template-columns: repeat(3, 1fr);
  }
  .assignment-form button {
    grid-column: 1/-1;
  }
  .assignment-list > div {
    grid-template-columns: 1fr 1fr;
  }
}
.daily-editor {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft-surface, #f4f6f8);
}
.daily-editor summary {
  padding: 12px 14px;
  cursor: pointer;
  color: #0e7490;
  font-weight: 900;
}
.daily-editor[open] {
  padding: 0 14px 12px;
}
.daily-editor[open] summary {
  margin: 0 -14px 12px;
  border-bottom: 1px solid var(--line);
}
.daily-editor form {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.8fr 1.15fr 1fr 1fr 1.25fr auto;
  gap: 8px;
  align-items: end;
}
.daily-editor label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}
.daily-editor input,
.daily-editor select {
  height: 38px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--ink);
  padding: 0 8px;
}
.daily-editor .responsible-check {
  height: 38px;
  flex-direction: row;
  align-items: center;
}
.daily-editor .responsible-check input {
  height: auto;
}
.daily-editor button {
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: #0e7490;
  color: #fff;
  font-weight: 800;
  padding: 0 13px;
}
.daily-editor > p {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
}
.person {
  position: relative;
}
.entry-delete {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
}
.entry-delete:hover {
  color: #be123c;
}
@media (max-width: 1150px) {
  .daily-editor form {
    grid-template-columns: repeat(4, 1fr);
  }
  .daily-editor button {
    grid-column: 1/-1;
  }
}
.person.editable {
  cursor: pointer;
}
.person.editable:hover {
  border-color: var(--area);
  box-shadow: 0 3px 12px #102a4320;
}
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #09131db8;
  backdrop-filter: blur(3px);
}
.card-modal > form {
  width: min(560px, 100%);
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 24px 70px #0005;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 18px;
}
.modal-head small {
  color: var(--muted);
}
.modal-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}
.modal-head > button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
}
.card-modal form > label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 11px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.card-modal input,
.card-modal select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-surface, #f4f6f8);
  color: var(--ink);
  padding: 0 10px;
}
.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.modal-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 11px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.card-modal .modal-check {
  flex-direction: row;
  align-items: center;
}
.card-modal .modal-check input {
  height: auto;
}
.card-modal form > p {
  font-size: 11px;
  color: var(--muted);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.modal-actions button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-surface, #f4f6f8);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 800;
}
.modal-actions .primary {
  border-color: #0e7490;
  background: #0e7490;
  color: #fff;
}
@media (max-width: 600px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}
.modal-actions > span {
  flex: 1;
}
.modal-actions .danger {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}
@media (max-width: 600px) {
  .modal-actions {
    flex-wrap: wrap;
  }
  .modal-actions > span {
    display: none;
  }
}
.area-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.area-filters > b {
  font-size: 11px;
  color: var(--muted);
  margin-right: 4px;
}
.area-filters button {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--muted);
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0.55;
}
.area-filters button.active {
  opacity: 1;
  border-color: #94a3b8;
  color: var(--ink);
}
.area-filters i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.planning-filters {
  margin: -4px 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft-surface, #f4f6f8);
}
.planning-filters summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  list-style: none;
  cursor: pointer;
}
.planning-filters summary::-webkit-details-marker {
  display: none;
}
.planning-filters summary > span {
  font-size: 12px;
  font-weight: 850;
}
.planning-filters summary > small {
  color: var(--muted);
  font-size: 10px;
}
.planning-filters summary::after {
  content: "⌄";
  margin-left: auto;
  color: var(--muted);
}
.planning-filters[open] summary::after {
  transform: rotate(180deg);
}
.filter-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.filter-content > label {
  display: flex;
  flex: 0 0 190px;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.filter-content select {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--ink);
  padding: 0 8px;
}
.clear-filters {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #0e7490;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 800px) {
  .filter-content {
    align-items: stretch;
    flex-direction: column;
  }
  .filter-content > label {
    flex-basis: auto;
  }
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.assignment-list .row-actions button:first-child {
  color: #0e7490;
}
.assignment-panel ~ *,
.staffing-panel ~ * {
  display: none;
}
.card-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
  min-width: 0;
  width: 100%;
  align-items: flex-start;
}
.card-name {
  display: block;
  width: 100%;
  font-size: 15px !important;
  line-height: 1.2;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.card-content .lead-badge {
  display: inline-flex;
  width: max-content;
  margin: 2px 0 3px;
}
.standard-badge {
  display: inline-flex;
  width: max-content;
  margin: 0 0 3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.person.unavailable {
  border: 2px solid #dc2626 !important;
  background: #fff7f7;
}
.missing-badge {
  display: inline-flex;
  width: max-content;
  margin: 0 0 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.missing-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #fca5a5;
  border-radius: 9px;
  background: #fef2f2;
  color: #991b1b;
}
.missing-warning > b {
  margin-right: 4px;
}
.missing-warning span {
  display: flex;
  gap: 6px;
  border-left: 1px solid #fca5a5;
  padding-left: 10px;
  font-size: 12px;
}
.empty-area-warning {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
}
.empty-area-warning > b {
  font-size: 12px;
}
.empty-area-warning > small {
  font-size: 10px;
}
.empty-area-warning > div {
  display: grid;
  gap: 5px;
}
.empty-area-warning button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  border: 1px solid #fcd34d;
  border-radius: 7px;
  background: #fff;
  color: #78350f;
  padding: 7px 8px;
  cursor: pointer;
}
.empty-area-warning button:hover {
  border-color: #d97706;
}
.empty-area-warning button strong {
  font-size: 11px;
}
.empty-area-warning button span {
  font-size: 9px;
  color: #78716c;
}
.empty-area-warning .dismiss-warning {
  justify-content: center;
  border-style: dashed;
  background: transparent;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
}
.empty-area-warning em {
  font-size: 10px;
  font-style: normal;
  color: #b45309;
}
.card-content .location {
  display: block;
  width: 100%;
  margin-top: 2px;
}
.card-info {
  display: block;
  width: 100%;
  margin-top: 5px !important;
  padding-top: 5px;
  border-top: 1px solid var(--line);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.person {
  align-items: flex-start;
}
.initials {
  flex: 0 0 29px;
  margin-top: 1px;
}
.person .entry-delete {
  flex: 0 0 auto;
  align-self: flex-start;
}
.staffing-warnings {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f4b183;
  border-radius: 9px;
  background: #fff7ed;
  color: #9a3412;
}
.staffing-warnings > b {
  margin-right: 4px;
}
.staffing-warnings span {
  display: flex;
  gap: 6px;
  border-left: 1px solid #fdba74;
  padding-left: 10px;
  font-size: 12px;
}
.dismissed-warnings {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -7px 0 16px;
  color: var(--muted);
  font-size: 10px;
}
.dismissed-warnings button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 4px 8px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.staffing-form {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr 1.6fr auto;
  gap: 9px;
  align-items: end;
  background: var(--soft-surface, #f4f6f8);
  padding: 14px;
  border-radius: 10px;
}
.staffing-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.staffing-form select,
.staffing-form input[type="number"] {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--ink);
  padding: 0 9px;
}
.staffing-form .responsible-check {
  height: 40px;
  flex-direction: row;
  align-items: center;
}
.staffing-form button {
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: #0e7490;
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
}
.staffing-list {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.staffing-list > div {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1fr 1.5fr auto;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.staffing-list > div:last-child {
  border: 0;
}
.staffing-list button {
  border: 0;
  background: transparent;
  color: #be123c;
}
.daily-editor form {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}
.daily-editor form > button {
  grid-column: auto;
}
@media (max-width: 900px) {
  .staffing-form {
    grid-template-columns: 1fr 1fr;
  }
  .staffing-form button {
    grid-column: 1/-1;
  }
  .staffing-list > div {
    grid-template-columns: 1fr 1fr;
  }
  .daily-editor form {
    grid-template-columns: 1fr 1fr;
  }
}

.week-picker {
  display: flex;
  min-width: 230px;
  flex-direction: column;
  align-items: center;
}
.week-picker strong {
  font-size: 16px;
}
.week-picker span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.week-picker input {
  width: 112px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: var(--ink);
  padding: 0 5px;
  font-size: 10px;
  cursor: pointer;
}
.weeknav .current-week-button {
  width: auto;
  min-width: max-content;
  padding: 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.contact-view {
  max-width: 1440px;
  margin: 0 auto 50px;
  padding: 0 4vw;
}
.problem-overview {
  max-width: 1440px;
  margin: 0 auto 50px;
  padding: 0 4vw;
}
.problem-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface, #fff);
}
.problem-toolbar h2 {
  margin: 0;
  font-size: 20px;
}
.problem-range {
  display: flex;
  align-items: end;
  gap: 8px;
}
.problem-range label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.problem-range input {
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--ink);
  padding: 0 8px;
}
.problem-range button {
  height: 35px;
  border: 1px solid #0e7490;
  border-radius: 7px;
  background: #0e7490;
  color: #fff;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.problem-days {
  display: grid;
  gap: 10px;
}
.problem-day {
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 5px solid #dc2626;
  border-radius: 10px;
  background: var(--surface, #fff);
}
.problem-day > header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px;
  background: var(--soft-surface, #f4f6f8);
}
.problem-day > header strong {
  text-transform: capitalize;
}
.problem-day > header span {
  color: var(--muted);
  font-size: 10px;
}
.problem-day > div {
  display: grid;
  gap: 1px;
  background: var(--line);
}
.problem-area {
  background: var(--surface, #fff);
}
.problem-area summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1.2fr 1.5fr;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
}
.problem-area summary::-webkit-details-marker {
  display: none;
}
.problem-area summary > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.problem-area summary strong {
  color: #b91c1c;
  font-size: 11px;
}
.problem-area summary > span:nth-child(2) {
  color: var(--muted);
  font-size: 11px;
}
.problem-area summary em {
  justify-self: end;
  color: #0e7490;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.problem-area[open] summary {
  border-bottom: 1px solid var(--line);
}
.problem-resolution {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  background: var(--soft-surface, #f4f6f8);
}
.problem-resolution .dismiss-problem {
  border-color: var(--line);
  color: var(--muted);
}
.problem-resolution p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.problem-resolution p span {
  color: var(--ink);
  font-weight: 800;
}
.problem-resolution > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.problem-resolution > div > b {
  margin-right: 4px;
  color: var(--muted);
  font-size: 10px;
}
.problem-resolution button {
  border: 1px solid #0e7490;
  border-radius: 7px;
  background: var(--surface, #fff);
  color: #0e7490;
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.problem-resolution button:hover {
  background: #0e7490;
  color: #fff;
}
.problem-resolution button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.problem-all-clear {
  padding: 24px;
  border: 1px solid #86efac;
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 800;
}
@media (max-width: 900px) {
  .problem-toolbar,
  .problem-range {
    align-items: stretch;
    flex-direction: column;
  }
  .problem-day {
    grid-template-columns: 1fr;
  }
  .problem-area summary,
  .problem-resolution {
    grid-template-columns: 1fr;
  }
  .problem-area summary em,
  .problem-resolution > div {
    justify-self: start;
    justify-content: flex-start;
  }
}
.contact-view .contact-tabs {
  max-width: none;
  margin: 0 0 16px;
  padding: 0;
}
.contact-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface, #fff);
}
.contact-heading h2 {
  margin: 0;
  font-size: 20px;
}
.contact-heading small {
  color: var(--muted);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.contact-grid article {
  min-height: 155px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--area);
  border-radius: 11px;
  background: linear-gradient(180deg, var(--soft), #fff 48%);
}
.contact-grid h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  margin: 0 0 14px;
  font-size: 14px;
}
.contact-grid h3 i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--area);
}
.contact-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--area);
  border-radius: 9px;
  background: var(--surface, #fff);
}
.contact-person > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.contact-person b {
  font-size: 17px;
}
.contact-person small {
  margin-top: 4px;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
}
.contact-missing {
  padding: 12px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
}
@media (max-width: 1000px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-heading {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }
}

/* Der Dunkelmodus verwendet auf allen interaktiven Flächen helle Schrift. */
[data-theme="dark"] .topbar,
[data-theme="dark"] .board,
[data-theme="dark"] .my-week,
[data-theme="dark"] .admin-console,
[data-theme="dark"] .problem-toolbar,
[data-theme="dark"] .contact-heading,
[data-theme="dark"] .card-modal > form {
  color: var(--ink);
}
[data-theme="dark"] .area-card {
  color: #edf2f7;
}
[data-theme="dark"] .contact-grid article {
  background: linear-gradient(180deg, #24313b, #182129 48%);
  color: #edf2f7;
}
[data-theme="dark"] .contact-person {
  background: #202b34;
  color: #edf2f7;
}
[data-theme="dark"] .contact-person small {
  color: #6ee7b7;
}
[data-theme="dark"] .contact-missing {
  border-color: #b7791f;
  background: #352a16;
  color: #fde68a;
}
[data-theme="dark"] .problem-day,
[data-theme="dark"] .problem-area {
  background: #202b34;
  color: #edf2f7;
}
[data-theme="dark"] .problem-day > header {
  background: #182129;
}
[data-theme="dark"] .problem-area summary strong {
  color: #fda4af;
}
[data-theme="dark"] .problem-resolution {
  background: #182129;
}
[data-theme="dark"] .problem-resolution button {
  background: #202b34;
  color: #7dd3fc;
}
[data-theme="dark"] .problem-all-clear {
  border-color: #39724f;
  background: #183326;
  color: #bbf7d0;
}
[data-theme="dark"] .person,
[data-theme="dark"] .assignment-list > div,
[data-theme="dark"] .pattern-list > div,
[data-theme="dark"] .exception-list,
[data-theme="dark"] .absence-list,
[data-theme="dark"] .staffing-list {
  background: #202b34;
  color: #edf2f7;
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  border-color: #465563;
  background: #111a21;
  color: #f8fafc;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #91a0ad;
}
[data-theme="dark"] .standard-badge {
  background: #334155;
  color: #e2e8f0;
}
[data-theme="dark"] .save-state {
  background: #173b2a;
  color: #86efac;
}
[data-theme="dark"] .absence-type {
  background: #512532;
  color: #fecdd3;
}
[data-theme="dark"] .staffing-warnings {
  border-color: #a16207;
  background: #392a12;
  color: #fde68a;
}
[data-theme="dark"] .dismissed-warnings button {
  border-color: #465563;
  color: #cbd5e1;
}
[data-theme="dark"] .empty-area-warning {
  border-color: #b7791f;
  background: #352a16;
  color: #fde68a;
}
[data-theme="dark"] .empty-area-warning button {
  border-color: #8c6724;
  background: #202b34;
  color: #fef3c7;
}
[data-theme="dark"] .empty-area-warning .dismiss-warning {
  background: transparent;
  color: #fde68a;
}
[data-theme="dark"] .empty-area-warning button span,
[data-theme="dark"] .empty-area-warning em {
  color: #d6c9b4;
}
[data-theme="dark"] .location.office {
  color: #6ee7b7;
}
[data-theme="dark"] .location.homeoffice {
  color: #c4b5fd;
}
[data-theme="dark"] .entry-delete,
[data-theme="dark"] .row-actions button,
[data-theme="dark"] .absence-row button,
[data-theme="dark"] .staffing-list button {
  color: #fda4af;
}
[data-theme="dark"] .view-toggle button,
[data-theme="dark"] .area-filters button,
[data-theme="dark"] .admin-tabs button {
  color: #b8c4cf;
}
[data-theme="dark"] .view-toggle .active,
[data-theme="dark"] .area-filters button.active,
[data-theme="dark"] .admin-tabs button.active {
  color: #7dd3fc;
}

/* Kopfbereich bleibt auf üblichen Laptopbreiten einzeilig. */
.intro {
  gap: 28px;
}
.intro > div:first-child {
  min-width: 560px;
}
.intro h1 {
  white-space: nowrap;
  font-size: clamp(28px, 2.55vw, 39px);
}
.view-toggle {
  flex: 0 0 auto;
}
.view-toggle button {
  white-space: nowrap;
  padding-right: 12px;
  padding-left: 12px;
  font-size: 12px;
}
@media (max-width: 1180px) {
  .intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .intro > div:first-child {
    min-width: 0;
  }
  .view-toggle {
    max-width: 100%;
    overflow-x: auto;
  }
}
@media (max-width: 720px) {
  .intro h1 {
    white-space: normal;
  }
}

/* Die Wochensteuerung ist die primäre Navigation und erhält mehr Präsenz. */
.topbar {
  min-height: 92px;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}
.weeknav {
  gap: 14px;
}
.weeknav > button {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  font-size: 30px;
  line-height: 1;
}
.week-picker {
  min-width: 330px;
}
.week-picker strong {
  font-size: 21px;
  line-height: 1.2;
}
.week-picker span {
  gap: 9px;
  margin-top: 6px;
  font-size: 13px;
}
.contact-overview-grid .contact-extension {
  color: var(--area);
  font-size: 14px;
  font-weight: 900;
}
[data-theme="dark"] .contact-overview-grid .contact-extension {
  color: color-mix(in srgb, var(--area) 62%, #ffffff);
}
.week-picker input {
  width: 142px;
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
}
.weeknav .current-week-button {
  width: auto;
  height: 46px;
  padding: 0 16px;
  font-size: 13px;
}

.self-project-entry,
.self-absence-request {
  margin: 0 0 18px;
  border: 1px solid color-mix(in srgb, #a21caf 45%, var(--line));
  border-radius: 10px;
  background: var(--soft-surface, #f4f6f8);
  overflow: hidden;
}
.self-project-entry summary,
.self-absence-request summary {
  padding: 12px 14px;
  color: #86198f;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.self-project-entry form,
.self-absence-request form {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, .9fr) 1.15fr .9fr auto;
  gap: 9px;
  align-items: end;
  padding: 0 14px 12px;
}
.self-project-entry label,
.self-absence-request label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.self-project-entry input,
.self-project-entry select,
.self-absence-request input,
.self-absence-request select {
  min-width: 0;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--ink);
}
.self-project-entry button,
.self-absence-request button {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #a21caf;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}
.self-project-entry > p,
.self-absence-request > p {
  margin: -2px 14px 12px;
  color: var(--muted);
  font-size: 10px;
}
@media (max-width: 1050px) {
  .self-project-entry form,
  .self-absence-request form {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 650px) {
  .self-project-entry form,
  .self-absence-request form {
    grid-template-columns: 1fr;
  }
}
[data-theme="dark"] .self-project-entry summary,
[data-theme="dark"] .self-absence-request summary {
  color: #f0abfc;
}

.self-absence-request {
  margin: 0 0 18px;
  border-color: color-mix(in srgb, #b51b48 48%, var(--line));
}
.self-absence-request summary {
  color: #9f1239;
}
.self-absence-request form {
  grid-template-columns: 1.05fr .85fr .85fr 1fr 1.4fr auto;
}
.self-absence-request button {
  background: #9f1239;
}
[data-theme="dark"] .self-absence-request summary {
  color: #fda4af;
}
.my-absence-requests {
  display: grid;
  gap: 6px;
  padding: 0 14px 12px;
}
.my-absence-requests > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--ink);
  font-size: 12px;
}
.request-status {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}
.request-status.pending { background: #fef3c7; color: #92400e; }
.request-status.approved { background: #d1fae5; color: #065f46; }
.request-status.rejected { background: #ffe4e6; color: #9f1239; }
[data-theme="dark"] .request-status.pending { background: #78350f; color: #fef3c7; }
[data-theme="dark"] .request-status.approved { background: #064e3b; color: #d1fae5; }
[data-theme="dark"] .request-status.rejected { background: #881337; color: #ffe4e6; }

.absence-request-admin {
  margin: 0 0 18px;
  border: 1px solid color-mix(in srgb, #b51b48 45%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, #fff1f2 55%, var(--surface, #fff));
  overflow: hidden;
}
[data-theme="dark"] .absence-request-admin {
  background: color-mix(in srgb, #4c0519 18%, var(--surface));
}
.absence-request-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.absence-request-title h3,
.absence-request-title p { margin: 0; }
.absence-request-title p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.absence-request-title > b { color: #9f1239; }
[data-theme="dark"] .absence-request-title > b { color: #fda4af; }
.absence-request-list { display: grid; }
.absence-request-row {
  display: grid;
  grid-template-columns: 1fr .8fr 1.3fr 1.7fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
}
.absence-request-row:first-child { border-top: 0; }
.absence-request-row .approve { color: #047857; }
@media (max-width: 850px) {
  .self-absence-request form { grid-template-columns: repeat(2, 1fr); }
  .absence-request-row { grid-template-columns: 1fr 1fr; }
  .absence-request-row .row-actions { grid-column: 1 / -1; }
}

.project-notifications {
  margin: 0 0 18px;
  border: 1px solid color-mix(in srgb, #a21caf 45%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, #fdf4ff 58%, var(--surface, #fff));
  overflow: hidden;
}
[data-theme="dark"] .project-notifications {
  background: color-mix(in srgb, #581c87 16%, var(--surface));
}
.project-notification-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.project-notification-title h3,
.project-notification-title p { margin: 0; }
.project-notification-title p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.project-notification-title > b { color: #86198f; }
[data-theme="dark"] .project-notification-title > b { color: #f0abfc; }
.project-notification-list { display: grid; }
.project-notification-row {
  display: grid;
  grid-template-columns: .8fr 1.2fr 1.3fr 1.5fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
}
.project-notification-row:first-child { border-top: 0; }
.project-notification-row button {
  border: 1px solid color-mix(in srgb, #a21caf 48%, var(--line));
  border-radius: 7px;
  padding: 7px 10px;
  background: var(--surface, #fff);
  color: #86198f;
  font-weight: 800;
  cursor: pointer;
}
[data-theme="dark"] .project-notification-row button { color: #f0abfc; }
@media (max-width: 850px) {
  .project-notification-row { grid-template-columns: 1fr 1fr; }
  .project-notification-row button { justify-self: start; }
}

.admin-login {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 30px 4vw 60px;
}
.admin-login form {
  width: min(430px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface, #fff);
  box-shadow: 0 14px 40px #102a4318;
}
.admin-login h2 {
  margin: 0;
  font-size: 24px;
}
.admin-login form > p:not(.eyebrow) {
  margin: 8px 0 18px;
  color: var(--muted);
  line-height: 1.5;
}
.admin-login label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.admin-login input {
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-surface, #f4f6f8);
  color: var(--ink);
  font-size: 16px;
}
.admin-login form > strong {
  display: block;
  margin-top: 9px;
  color: #be123c;
  font-size: 12px;
}
.admin-login form > button {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  background: #0e7490;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}
.admin-session {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.admin-session button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--muted);
  padding: 5px 9px;
  font: inherit;
  cursor: pointer;
}

.project-form {
  display: grid;
  grid-template-columns: 1.35fr 1fr repeat(2, .9fr) 1.15fr .9fr .9fr auto;
  gap: 9px;
  align-items: end;
  padding: 14px;
  border-radius: 10px;
  background: var(--soft-surface, #f4f6f8);
}
.project-form label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.project-form input, .project-form select { min-width: 0; height: 40px; padding: 0 8px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; background: var(--surface, #fff); }
.project-form > button { height: 40px; padding: 0 14px; color: #fff; font-weight: 800; border: 0; border-radius: 7px; background: #a21caf; cursor: pointer; }
.project-calendar { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.project-months, .project-calendar-row { display: grid; grid-template-columns: minmax(235px, 1.15fr) minmax(780px, 4fr) 145px; min-width: 1160px; }
.project-months { color: var(--muted); background: var(--soft-surface, #f4f6f8); border-bottom: 1px solid var(--line); }
.project-months > div { display: grid; grid-template-columns: repeat(12, 1fr); }
.project-months b { padding: 9px 3px; text-align: center; font-size: 10px; border-left: 1px solid var(--line); }
.project-calendar-row { align-items: center; min-height: 68px; border-bottom: 1px solid var(--line); }
.project-calendar-row:nth-child(odd) { background: color-mix(in srgb, var(--soft-surface, #f4f6f8) 45%, transparent); }
.project-calendar-row:last-child { border-bottom: 0; }
.project-calendar-label { padding: 9px 12px; }
.project-calendar-label b, .project-calendar-label span { display: block; }
.project-calendar-label b { font-size: 13px; }
.project-calendar-label span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.project-calendar-track { position: relative; height: 36px; border-right: 1px solid var(--line); border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to right, color-mix(in srgb, var(--soft-surface, #f4f6f8) 65%, transparent) 0, color-mix(in srgb, var(--soft-surface, #f4f6f8) 65%, transparent) 8.333%, transparent 8.333%, transparent 16.666%), repeating-linear-gradient(to right, transparent 0, transparent calc(8.333% - 1px), var(--line) calc(8.333% - 1px), var(--line) 8.333%); }
.project-calendar-track > span { position: absolute; top: 6px; height: 24px; min-width: 22px; border: 2px solid #fbbf24; border-radius: 999px; background: #d97706; box-shadow: 0 0 0 3px #f59e0b30, 0 2px 4px #0003; }
.project-calendar-track > span.blocked { background: #991b1b; }
.project-row-actions { display: flex; justify-content: center; gap: 9px; padding: 0 8px; }
.project-row-actions button { border: 0; background: transparent; color: #0e7490; font-size: 11px; font-weight: 700; cursor: pointer; }
.project-row-actions button:last-child { color: #be123c; }
.project-legend { display: flex; align-items: center; gap: 14px; margin-left: auto; color: var(--muted); font-size: 11px; }
.project-legend span { display: flex; align-items: center; gap: 6px; }
.project-legend i { width: 18px; height: 9px; border-radius: 999px; background: #d97706; }
.project-legend i.blocked { background: #991b1b; }
.project-empty { padding: 20px; }
[data-theme="dark"] .project-calendar-track > span.partial { background: #f59e0b; }
[data-theme="dark"] .project-calendar-track > span.blocked { border-color: #f87171; background: #ef4444; }
[data-theme="dark"] .project-row-actions button:first-child { color: #7dd3fc; }
@media (max-width: 1180px) { .project-form { grid-template-columns: repeat(4, 1fr); } .project-form > button { grid-column: 1/-1; } }
@media (max-width: 700px) { .project-form { grid-template-columns: 1fr; } }

/* Kompakte Tagesliste: feste Bereichsreihenfolge und identische Spalten. */
.area-grid {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.area-card {
  display: grid;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--soft) 22%, var(--surface, #fff));
  border: 2px solid color-mix(in srgb, var(--area) 62%, var(--line));
  border-top-width: 5px;
  border-radius: 11px;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--area) 10%, transparent);
}
.area-card h3 {
  align-items: flex-start;
  margin: 0;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
  background: color-mix(in srgb, var(--soft) 48%, var(--surface, #fff));
  border-right: 2px solid color-mix(in srgb, var(--area) 45%, var(--line));
}
.area-card h3 i {
  flex: 0 0 8px;
  margin-top: 5px;
}
.area-card .entries {
  gap: 4px;
  padding: 8px;
}
.area-card .person {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 48px;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 6px;
  box-shadow: none;
}
.area-card .person:not(.responsible) {
  border-color: var(--line);
}
.area-card .initials {
  width: 28px;
  height: 28px;
  margin: 0;
}
.area-card .card-content {
  display: grid !important;
  grid-template-columns: minmax(145px, 1.15fr) minmax(150px, .95fr) minmax(145px, .9fr) minmax(130px, 1.25fr);
  align-items: center;
  gap: 10px;
}
.card-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}
.area-card .card-name {
  width: auto;
  margin: 0;
  font-size: 14px !important;
  white-space: nowrap;
}
.area-card .standard-badge,
.area-card .card-content .lead-badge {
  flex: 0 0 auto;
  width: max-content;
  margin: 0;
}
.card-role {
  display: flex;
  align-items: center;
  min-height: 23px;
}
.area-card .card-content .location {
  width: auto;
  margin: 0;
  white-space: nowrap;
}
.area-card .card-info {
  width: auto;
  min-height: 18px;
  margin: 0 !important;
  padding: 0;
  border: 0;
  color: #566574;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.area-card .empty {
  margin: 10px;
}
.area-card .empty-area-warning {
  margin: 0;
}
[data-theme="dark"] .area-card {
  background: color-mix(in srgb, var(--area) 9%, #182129);
  border-color: color-mix(in srgb, var(--area) 72%, #42505c);
  box-shadow: 0 4px 14px #00000024;
}
[data-theme="dark"] .area-card h3 {
  background: color-mix(in srgb, var(--area) 16%, #202b34);
  border-right-color: color-mix(in srgb, var(--area) 65%, #465563);
}
[data-theme="dark"] .area-card .person {
  background: #1d2831;
}
[data-theme="dark"] .area-card .card-info {
  color: #c2ccd5;
}

/* Im hellen Modus bleiben einzelne Personen und Verwaltungszeilen klar getrennt. */
[data-theme="light"] {
  --line: #cbd5e1;
  --paper: #eef2f6;
  --surface: #ffffff;
  --soft-surface: #f1f5f9;
}
[data-theme="light"] .area-card .entries {
  background: color-mix(in srgb, var(--soft) 10%, #f1f5f9);
}
[data-theme="light"] .area-card .person {
  border-color: #c5cfda;
  background: #f8fafc;
  box-shadow: 0 1px 3px #102a4314;
}
[data-theme="light"] .area-card .person:nth-child(even) {
  background: #ffffff;
}
[data-theme="light"] .area-card .person.responsible {
  border-color: #0e7490;
  background: #ffffff;
  box-shadow: 0 2px 6px #0e74901c;
}
[data-theme="light"] .area-card .person.blocked,
[data-theme="light"] .area-card .person.partial,
[data-theme="light"] .area-card .person.absence {
  box-shadow: 0 1px 4px #102a4317;
}
[data-theme="light"] .area-card .person.blocked,
[data-theme="light"] .area-card .person.unavailable,
[data-theme="light"] .area-card .person.absence {
  background: #fff5f6;
}
[data-theme="light"] .area-card .person.partial {
  background: #fffbeb;
}
[data-theme="light"] .personal-grid article {
  border-color: #bdc9d6;
  background: #f8fafc;
}
[data-theme="light"] .personal-entry {
  border-top: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px #102a4312;
}
[data-theme="light"] .assignment-list > div,
[data-theme="light"] .pattern-list > div,
[data-theme="light"] .exception-list > div,
[data-theme="light"] .absence-list > div,
[data-theme="light"] .staffing-list > div {
  background: #f8fafc;
}
[data-theme="light"] .assignment-list > div:nth-child(even),
[data-theme="light"] .exception-list > div:nth-child(even),
[data-theme="light"] .absence-list > div:nth-child(even),
[data-theme="light"] .staffing-list > div:nth-child(even) {
  background: #ffffff;
}
[data-theme="light"] .pattern-list > div {
  box-shadow: 0 1px 3px #102a4310;
}
[data-theme="light"] .project-calendar-row:nth-child(odd) {
  background: #f1f5f9;
}
[data-theme="light"] .project-calendar-row:nth-child(even) {
  background: #ffffff;
}
@media (max-width: 1050px) {
  .area-card {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .area-card .card-content {
    grid-template-columns: minmax(125px, 1fr) minmax(135px, 1fr) minmax(130px, 1fr);
  }
  .area-card .card-info {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .area-card {
    display: block;
  }
  .area-card h3 {
    padding: 11px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .area-card .card-content {
    display: flex !important;
    align-items: flex-start;
  }
  .card-identity {
    flex-wrap: wrap;
  }
  .card-role {
    min-height: 0;
  }
  .area-card .card-content .location {
    white-space: normal;
  }
}
.calendar-import{border:1px solid var(--line);border-radius:10px;background:var(--soft-surface,#f4f6f8);margin:0 0 18px}.calendar-import summary{cursor:pointer;padding:13px 15px;color:#0e7490;font-weight:900}.calendar-import-body{padding:0 15px 15px}.calendar-import-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.calendar-import-toolbar span,.calendar-import-help{color:var(--muted);font-size:12px}.file-button,.calendar-import-actions button:last-child{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:7px;background:#0e7490;color:#fff;padding:10px 14px;font-weight:800;cursor:pointer}.file-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.calendar-preview{margin-top:12px;border:1px solid var(--line);border-radius:9px;overflow:auto;max-height:520px}.calendar-preview-row{display:grid;grid-template-columns:55px minmax(180px,1.5fr) minmax(135px,1fr) minmax(230px,1.5fr) minmax(175px,1fr) 130px;gap:8px;align-items:center;min-width:1050px;padding:8px 10px;border-bottom:1px solid var(--line);background:var(--surface,#fff);font-size:12px}.calendar-preview-row:last-child{border-bottom:0}.calendar-preview-head{position:sticky;top:0;z-index:2;background:var(--soft-surface,#f4f6f8);color:var(--muted);font-weight:800}.calendar-preview-row select,.calendar-preview-row input:not([type=checkbox]){height:34px;min-width:0;border:1px solid var(--line);border-radius:6px;background:var(--surface,#fff);color:var(--ink);padding:0 7px}.calendar-preview-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-assignment-fields{display:grid;grid-template-columns:110px 1fr;gap:6px}.calendar-import-check{display:grid;place-items:center}.calendar-import-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.calendar-import-actions .secondary-action{height:auto;padding:10px 14px}.calendar-import-actions button:disabled{opacity:.55;cursor:wait}@media(max-width:700px){.calendar-import-toolbar{align-items:flex-start;flex-direction:column}.calendar-import-actions{flex-direction:column}.calendar-import-actions button{width:100%}}
.project-import-fields{display:grid;grid-template-columns:1fr 145px;gap:5px}.duplicate-label{display:block;width:max-content;margin-top:3px;padding:2px 6px;border-radius:999px;background:var(--soft-surface,#f4f6f8);color:var(--muted);font-size:10px}

.jpb-notice{padding:16px;background:#fff2cc;color:#332600;margin:0} .admin-session a{color:inherit}

.overlap-badge { display:inline-block; width:auto; max-width:100%; white-space:normal; margin:2px 4px; padding:3px 7px; border:1px solid #b45309; border-radius:5px; background:#fef3c7; color:#78350f; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
[data-theme="dark"] .overlap-badge { background:#422b13; color:#fde68a; border-color:#d97706; }
.overlap-badge:focus-visible { outline:2px solid currentColor; outline-offset:2px; }

.jpb-login-link{display:inline-block;padding:8px 12px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--surface,#fff);font-weight:700;text-decoration:none}.absence-request-public{margin:20px 0}

.day-information{margin:0 0 20px;padding:18px 20px;border:1px solid #0891b2;border-left:5px solid #0891b2;border-radius:12px;background:var(--surface, #17232b)}
.day-information h3{margin:0 0 12px}.day-information article{padding:10px 0;border-bottom:1px solid #52616b55;margin-bottom:10px}.day-information-message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.05rem;margin:0 0 8px}.day-information summary{cursor:pointer;color:#0891b2;font-weight:600}.day-information form{margin-top:12px}.day-information label{display:block}.day-information textarea{display:block;width:100%;box-sizing:border-box;margin:8px 0}.day-information button{margin:6px 10px 0 0}

/* Rollenbezogene Hauptnavigation: gut lesbar, ohne bei schmalen Fenstern umzubrechen. */
.intro{display:block}.intro>div:first-child{min-width:0}.view-toggle{width:max-content;max-width:100%;margin-top:22px;flex-wrap:nowrap}.view-toggle button,.view-toggle a{display:flex;align-items:center;justify-content:center;min-height:40px;border:0;background:transparent;padding:10px 15px;border-radius:7px;color:#53606c;font-size:12px;font-weight:700;cursor:pointer;text-decoration:none;white-space:nowrap}.view-toggle .settings-nav{width:42px;padding-right:10px;padding-left:10px;font-size:16px}.admin-tabs{overflow-x:auto;scrollbar-width:thin}.admin-tabs button{white-space:nowrap}
[data-theme="dark"] .view-toggle a{color:#b8c4cf}[data-theme="dark"] .view-toggle a.active{color:#7dd3fc}
@media(max-width:760px){.view-toggle{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;overflow:visible}.view-toggle button,.view-toggle a{white-space:normal}.admin-tabs{padding-bottom:4px}}

/* School holiday form: aligned labels and a wider description field. */
.school-holiday-form{display:grid;gap:18px;margin:20px 0}
.school-holiday-fields{display:grid;grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) minmax(180px,1fr);gap:16px;align-items:end;max-width:1100px}
.school-holiday-fields label{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:13px;font-weight:700;color:var(--muted)}
.school-holiday-fields input{width:100%;min-width:0;box-sizing:border-box;height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--ink);font:inherit;font-size:14px;font-weight:400}
.school-holiday-form fieldset{margin:0;padding:12px 16px 16px;border:1px solid var(--line);border-radius:8px;min-width:0}
.school-holiday-form legend{padding:0 6px;font-size:13px;font-weight:700;color:var(--muted)}
.school-holiday-form>button{justify-self:start;min-height:42px;padding:10px 18px;border:0;border-radius:8px;background:#0e7490;color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.school-holiday-form>button:disabled{opacity:.6;cursor:wait}
@media(max-width:760px){.school-holiday-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.school-holiday-fields label:first-child{grid-column:1/-1}}
@media(max-width:420px){.school-holiday-fields{grid-template-columns:minmax(0,1fr)}}
.exception-form{grid-template-columns:repeat(5,minmax(110px,1fr)) minmax(140px,1.4fr) auto;align-items:end}.exception-form label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;color:var(--muted)}.exception-form label select{width:100%;min-width:0;box-sizing:border-box}@media(max-width:1100px){.exception-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.exception-form{grid-template-columns:minmax(0,1fr)}}
