:root {
  --ink: #193c46;
  --muted: #6a7e85;
  --teal: #167768;
  --line: #dfe8e7;
  --bg: #f2f5f3;
  --danger: #b83f47;
  --shadow: 0 16px 45px #123b461b;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #37a898;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfddda;
  background: #fff;
  color: var(--ink);
  border-radius: 7px;
  padding: 10px 11px;
  min-width: 0;
}
input[type="checkbox"] {
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}
input[type="color"] {
  height: 41px;
  padding: 4px 6px;
}
input[type="range"] {
  padding: 8px 0;
  accent-color: var(--teal);
  border: 0;
  height: 41px;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #84968f;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 29px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 16px;
}
a {
  color: inherit;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.subtle {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.section-kicker {
  font-size: 10px;
  letter-spacing: 1.75px;
  font-weight: 750;
  color: #638479;
  margin-bottom: 5px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  padding: 8px 14px;
  border: 1px solid #cedbd7;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover {
  background: #f1f7f4;
  border-color: #9bb7ad;
}
.button.primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}
.button.primary:hover {
  background: #115f54;
}
.button.danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.button.compact {
  min-height: 33px;
  padding: 6px 10px;
  font-size: 11px;
}
.full-width {
  width: 100%;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid #d7e1dd;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 19px;
}
.icon-button:hover {
  background: #eaf2ee;
}
.text-button {
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
}
.text-button:hover {
  text-decoration: underline;
}
.danger-text {
  color: var(--danger);
}
.button-group,
.heading-actions,
.title-line,
.map-locations,
.draw-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.5px;
  background: #e1eae5;
  color: #486e5a;
  font-weight: 650;
}
.count-badge {
  border: 1px solid #dce8e1;
  border-radius: 7px;
  padding: 3px 9px;
  color: var(--teal);
  font-weight: 700;
  font-size: 12px;
}
.check-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 15px;
  top: -60px;
  z-index: 5000;
  background: #fff;
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
.form-error {
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff0f0;
  color: #aa333a;
  font-size: 12px;
}
.empty-state {
  text-align: center;
  padding: 38px 18px;
  color: var(--muted);
}
.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 7px;
}
.empty-symbol {
  display: grid;
  place-items: center;
  font-size: 28px;
  width: 52px;
  height: 52px;
  background: #edf4ef;
  border-radius: 14px;
  margin: 0 auto 15px;
  color: #658879;
}
.empty-state p {
  font-size: 12px;
  max-width: 250px;
  margin: 0 auto;
}
.empty-state .button {
  margin-top: 18px;
}
.app-header {
  height: 74px;
  background: #123b46;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.6px;
  line-height: 1.25;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.8px;
  font-weight: 500;
  color: #b9d5cf;
  margin-top: 5px;
}
.brand-mark {
  display: grid;
  place-items: center;
  height: 38px;
  width: 38px;
  border-radius: 11px;
  background: #e4f0a9;
  color: #214b3f;
  font-size: 24px;
  font-weight: 750;
  transform: rotate(-5deg);
}
.main-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 28px;
  flex: 1;
  margin-left: 35px;
  font-size: 12px;
}
.header-link {
  color: #c6d7d8;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 12px;
}
.header-link:hover {
  color: #fff;
}
.nav-current {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  color: #e8f4f0;
  font-weight: 600;
}
.nav-current:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #d7e994;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: white;
  text-align: left;
  font-size: 12px;
}
.account-button strong {
  display: block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.account-button small {
  display: block;
  font-size: 10px;
  color: #afc8c9;
}
.avatar {
  display: grid;
  place-items: center;
  border: 1px solid #ffffff30;
  background: #ffffff12;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  font-size: 11px;
}
.planning-heading {
  padding: 25px 30px 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.planning-heading .muted {
  font-size: 12px;
  margin-top: 3px;
}
.title-line {
  gap: 12px;
}
.heading-actions {
  gap: 7px;
}
.calendar {
  margin: 0 30px 20px;
  padding: 12px 13px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 2px 5px #243c3303;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 1px 12px;
}
.date-navigation {
  flex-direction: row;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  gap: 9px;
}
.date-navigation input {
  width: 138px;
  padding: 5px 8px;
  font-size: 11px;
  min-height: 33px;
}
.calendar-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.calendar-hint .text-button {
  font-size: 10px;
  margin-left: 8px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #6a9f7b;
  border-radius: 50%;
}
.week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.day-button {
  position: relative;
  min-height: 83px;
  border: 0;
  border-radius: 7px 7px 0 0;
  background: #fafcfb;
  text-align: left;
  padding: 12px 13px 13px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  gap: 7px;
}
.day-button:hover {
  background: #eef5ef;
}
.day-button.selected {
  background: #e7f0e8;
  box-shadow: inset 0 -3px 0 var(--teal);
}
.day-button.weekend:not(.selected) {
  background: #f8f9f8;
  color: #7e8e8c;
}
.day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
}
.day-label {
  font-size: 11px;
  font-weight: 650;
}
.day-date {
  font-size: 17px;
  line-height: 1;
  font-weight: 650;
}
.day-today {
  font-size: 8px;
  font-weight: 700;
  color: var(--teal);
  position: absolute;
  right: 12px;
  bottom: 14px;
}
.day-count {
  font-size: 10px;
  color: #6f8479;
}
.day-dots {
  display: flex;
  gap: 3px;
  position: absolute;
  right: 12px;
  bottom: 18px;
}
.day-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.day-button.is-today .day-dots {
  display: none;
}
.load-error {
  margin: 0 30px 15px;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: #fff1ed;
  border: 1px solid #e6c7b5;
  border-radius: 8px;
  color: #93482b;
}
.workspace {
  display: grid;
  grid-template-columns: 295px minmax(0, 1fr);
  height: calc(100vh - 334px);
  min-height: 480px;
  margin: 0 30px;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 12px #193c4605;
}
.workspace.with-editor {
  grid-template-columns: 270px minmax(0, 1fr) 330px;
}
.zone-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 17px 14px;
}
.sidebar-heading h2 {
  font-size: 17px;
}
.sidebar-heading .section-kicker {
  font-size: 9px;
}
.filters {
  padding: 0 16px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filters input,
.filters select {
  font-size: 11px;
  padding: 8px 10px;
  min-height: 35px;
  background: #fcfdfc;
}
.filters .text-button {
  align-self: flex-start;
  font-size: 10px;
}
.search-field {
  position: relative;
}
.search-field input {
  padding-left: 31px;
}
.search-field:before {
  content: "⌕";
  position: absolute;
  top: 2px;
  left: 10px;
  font-size: 23px;
  font-weight: 400;
  color: #7f958b;
}
.day-summary {
  display: flex;
  gap: 13px;
  margin: 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.day-summary b {
  color: #4e6d60;
}
.zone-list {
  overflow: auto;
  padding: 12px 12px 6px;
  flex: 1;
  min-height: 0;
}
.zone-card {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #e3eae4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 12px 13px 15px;
  margin-bottom: 8px;
  position: relative;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.zone-card:hover {
  border-color: #91b5a0;
  box-shadow: 0 3px 10px #173e350a;
}
.zone-card.selected {
  border-color: #4c947a;
  background: #f4f8f2;
}
.zone-color-line {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 2px 2px 0;
}
.zone-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.zone-card-title span:first-child {
  overflow-wrap: anywhere;
}
.card-arrow {
  color: #9cb1a5;
  font-size: 17px;
  line-height: 1;
  font-weight: 400;
}
.zone-time {
  font-size: 11px;
  color: #496659;
  font-weight: 600;
}
.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background: #edf3ea;
  color: #587549;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.zone-people {
  font-size: 11px;
  color: #687e70;
  line-height: 1.5;
}
.zone-note-preview {
  font-size: 10px;
  color: #7f8c83;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fdfefd;
}
.sidebar-footer .small {
  font-size: 10px;
}
.map-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #e5eadc;
}
.map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #fafcf9;
  border-bottom: 1px solid var(--line);
  z-index: 450;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.map-toolbar .button {
  font-size: 10px;
}
.map-locations,
.draw-actions {
  gap: 5px;
}
#map {
  flex: 1;
  min-height: 260px;
  z-index: 1;
  background: #e7ecdc;
}
.leaflet-container {
  font-family: inherit;
}
.leaflet-control-attribution {
  font-size: 9px !important;
  max-width: 75%;
  background: #ffffffe8 !important;
}
.leaflet-tooltip {
  font-family: inherit;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
}
.leaflet-control-zoom {
  border: 1px solid #d8e3d7 !important;
  box-shadow: 0 3px 12px #2b493c12 !important;
}
.leaflet-control-zoom a {
  color: #345f50 !important;
  font-size: 19px !important;
}
.map-caption {
  position: absolute;
  bottom: 22px;
  left: 12px;
  z-index: 440;
  background: #fffffff2;
  border: 1px solid #dfe6d8;
  border-radius: 6px;
  padding: 7px 10px;
  box-shadow: 0 3px 12px #2641320a;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.map-caption-dot {
  width: 6px;
  height: 6px;
  background: #277969;
  border-radius: 50%;
}
.map-notice {
  position: absolute;
  z-index: 460;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  background: #123b46f2;
  color: #fff;
  padding: 11px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 35px);
  width: max-content;
}
.map-notice .text-button {
  color: #e4f0a9;
  white-space: nowrap;
}
.editor {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  z-index: 480;
}
.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 17px 13px;
  border-bottom: 1px solid var(--line);
}
.editor-heading h2 {
  font-size: 17px;
  max-width: 230px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.editor-heading .section-kicker {
  font-size: 9px;
}
.editor-heading .icon-button {
  width: 28px;
  height: 28px;
  font-size: 21px;
}
.editor form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.editor-fields {
  padding: 16px;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.editor label,
.editor legend {
  font-size: 11px;
}
.editor input,
.editor textarea {
  font-size: 12px;
  padding: 8px 9px;
}
.editor input[type="color"] {
  padding: 3px 6px;
}
.editor input[type="range"] {
  padding: 7px 0;
}
.editor input[type="checkbox"] {
  padding: 0;
}
.editor-actions {
  padding: 13px 16px 11px;
  border-top: 1px solid var(--line);
  box-shadow: 0 -3px 12px #193c4605;
}
.editor-secondary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}
.editor-secondary .text-button {
  font-size: 10px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  margin: 0 0 8px;
}
.checks {
  border: 1px solid #dce6df;
  border-radius: 7px;
  padding: 5px 8px;
  max-height: 137px;
  overflow: auto;
  background: #fcfdfb;
}
.checks label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  font-size: 11px;
  font-weight: 400;
}
.checks .muted {
  padding: 8px 3px;
  font-size: 11px;
}
.app-footer {
  padding: 13px 31px 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #86958a;
}
.footer-dot {
  padding: 0 6px;
  color: #a0b0a3;
}
.loading .zone-list {
  opacity: 0.6;
  pointer-events: none;
}
.worker-banner {
  margin: 0 30px 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #d5e3ce;
  background: #eaf1df;
  border-radius: 9px;
}
.worker-banner strong {
  font-size: 14px;
}
.worker-banner p {
  font-size: 11px;
  color: #6b7e5c;
  margin-top: 3px;
}
.worker-banner label {
  min-width: 240px;
  font-size: 10px;
}
.worker-banner select {
  font-size: 12px;
  background: #ffffffb8;
}
.worker-mode .workspace {
  height: calc(100vh - 439px);
}
.worker-mode .zone-sidebar {
  background: #fcfdfb;
}
.login-screen {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  min-height: 100vh;
}
.login-story {
  display: flex;
  flex-direction: column;
  background: #123b46;
  color: white;
  padding: 50px 8vw 33px 6vw;
  position: relative;
  overflow: hidden;
}
.login-story .brand {
  position: relative;
  z-index: 1;
}
.login-intro {
  padding-top: 14vh;
  position: relative;
  z-index: 1;
}
.login-intro .eyebrow {
  color: #b8cf92;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 22px;
}
.login-intro h1 {
  font-size: clamp(36px, 3.7vw, 58px);
  line-height: 1.16;
  letter-spacing: -2px;
  font-weight: 550;
  margin-bottom: 23px;
}
.login-intro > p:not(.eyebrow) {
  max-width: 325px;
  font-size: 14px;
  line-height: 1.8;
  color: #b3cdca;
}
.login-foot {
  margin-top: auto;
  padding-top: 50px;
  font-size: 10px;
  color: #8aa9a6;
}
.login-landscape {
  height: 110px;
  position: relative;
  width: 270px;
  margin-top: 47px;
}
.login-landscape span {
  position: absolute;
  display: block;
  width: 125px;
  height: 90px;
  transform: skewY(-24deg) rotate(6deg);
  border: 1px solid #84a79080;
  border-radius: 12px;
  background: #28544688;
}
.login-landscape span:nth-child(1) {
  left: 0;
  top: 14px;
}
.login-landscape span:nth-child(2) {
  left: 80px;
  top: 0;
  background: #a7bd7055;
  border-color: #b9d493;
}
.login-landscape span:nth-child(3) {
  left: 151px;
  top: 31px;
  background: #214c5366;
}
.login-side {
  display: grid;
  place-items: center;
  padding: 40px;
  background: #f5f7f2;
}
.login-form {
  max-width: 350px;
  width: 100%;
}
.login-form h2 {
  font-size: 26px;
  margin: 8px 0 12px;
}
.login-form > .muted {
  font-size: 12px;
  margin-bottom: 28px;
}
.login-form label {
  margin: 17px 0;
  font-size: 12px;
}
.login-form input {
  padding: 12px;
  background: #fff;
}
.login-form .button {
  width: 100%;
  justify-content: space-between;
  margin-top: 7px;
  padding: 12px 15px;
}
.login-form .login-help {
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
  color: #83948b;
  margin-top: 24px;
}
.dialog {
  border: 1px solid #dbe5de;
  padding: 0;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 100px #102e3a40;
  width: min(520px, calc(100vw - 30px));
  max-height: 90vh;
  overflow: hidden;
}
.dialog::backdrop {
  background: #0b293c66;
  backdrop-filter: blur(2px);
}
.dialog.wide {
  width: min(950px, calc(100vw - 34px));
}
.dialog.extra-wide {
  width: min(1160px, calc(100vw - 34px));
}
.dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: 89vh;
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 23px 24px 17px;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.dialog-header h2 {
  font-size: 21px;
}
.dialog-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.dialog-body {
  padding: 21px 24px;
  overflow: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dialog-footer {
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  align-items: center;
  flex-shrink: 0;
}
.dialog form {
  display: contents;
}
.dialog-body label {
  font-size: 12px;
}
.dialog-body p {
  font-size: 12px;
  line-height: 1.7;
}
.dialog .form-error {
  margin: 0;
}
.dialog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.tab-button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 600;
}
.tab-button.active {
  background: #e8f1e8;
  color: var(--teal);
}
.admin-panel {
  min-height: 270px;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-toolbar input {
  max-width: 270px;
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.data-table th {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.3px;
  background: #f5f8f4;
  color: #6b8275;
  padding: 11px 12px;
  white-space: nowrap;
}
.data-table td {
  padding: 12px;
  border-top: 1px solid #e6ede7;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.data-table td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.data-table .button {
  min-height: 29px;
  font-size: 10px;
  padding: 5px 9px;
}
.table-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.inactive-badge {
  display: inline-block;
  background: #f4eee7;
  color: #9a704c;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
}
.active-badge {
  display: inline-block;
  background: #eaf4e7;
  color: #5b8756;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
}
.info-box {
  background: #f1f6ee;
  border: 1px solid #dae7d6;
  padding: 13px 15px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.7;
}
.warning-box {
  background: #fff8e7;
  border: 1px solid #efdaa9;
  padding: 13px 15px;
  border-radius: 7px;
  font-size: 12px;
  color: #8b672b;
  line-height: 1.7;
}
.danger-box {
  background: #fff0ee;
  border: 1px solid #ebc9c4;
  padding: 13px 15px;
  border-radius: 7px;
  font-size: 12px;
  color: #a13b35;
  line-height: 1.7;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  text-align: left;
}
.choice-card:hover {
  border-color: #7f9e83;
  background: #eff5eb;
}
.choice-card strong {
  font-size: 16px;
}
.choice-card span {
  font-size: 12px;
  color: var(--muted);
}
.template-row,
.history-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.template-row strong,
.history-row strong {
  font-size: 12px;
}
.template-row p,
.history-row p {
  font-size: 10px;
  margin-top: 3px;
  color: var(--muted);
}
.item-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 9px;
  min-width: 970px;
}
.overview-day {
  background: #f7faf5;
  border-radius: 8px;
  padding: 12px 9px;
  min-height: 230px;
}
.overview-day h3 {
  font-size: 12px;
  letter-spacing: 0;
  margin-bottom: 15px;
}
.overview-zone {
  background: white;
  border: 1px solid #dfe9dc;
  border-left-width: 3px;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 9px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: var(--ink);
}
.overview-zone strong {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.overview-zone small {
  display: block;
  font-size: 9px;
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.conflict-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #ecd9b9;
  border-radius: 7px;
  overflow: auto;
  max-height: 210px;
}
.conflict-list li {
  padding: 11px 13px;
  border-bottom: 1px solid #eee5d5;
  font-size: 11px;
  background: #fffcf5;
}
.conflict-list li:last-child {
  border: 0;
}
.conflict-list strong {
  display: block;
  color: #805c2b;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: end;
}
.form-grid label {
  font-size: 11px;
}
.form-grid input {
  font-size: 11px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 11px;
  color: var(--muted);
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.status-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcf8;
}
.status-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.status-card strong {
  display: block;
  font-size: 15px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.definition-list {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  font-size: 12px;
  margin: 0;
}
.definition-list dt {
  color: var(--muted);
}
.definition-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.field-help {
  font-size: 10px !important;
  color: var(--muted);
  margin-top: -7px !important;
}
.inline-date-add {
  display: flex;
  gap: 8px;
}
.date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.date-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid #d3e3d4;
  background: #f1f7ee;
  border-radius: 5px;
  font-size: 11px;
}
.date-chip button {
  background: none;
  border: 0;
  color: #56805a;
  padding: 0;
  font-size: 16px;
}
.toasts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 390px;
  pointer-events: none;
}
.toast {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding: 13px 16px;
  background: #123b46;
  color: #fff;
  border: 1px solid #2b5660;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 12px;
  pointer-events: auto;
  animation: toast-in 0.2s ease-out;
}
.toast.error {
  background: #8a303c;
  border-color: #b35059;
}
.toast button {
  background: none;
  border: 0;
  color: #fff;
  font-size: 17px;
  padding: 0;
  line-height: 1;
}
.print-report {
  display: none;
}
@keyframes toast-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: 330px minmax(0, 1fr);
  }
  .workspace.with-editor {
    grid-template-columns: 300px minmax(0, 1fr) 360px;
  }
  .planning-heading,
  .app-header {
    padding-left: 40px;
    padding-right: 40px;
  }
  .calendar,
  .workspace,
  .worker-banner {
    margin-left: 40px;
    margin-right: 40px;
  }
  .app-footer {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 1180px) {
  .app-header {
    padding: 0 22px;
  }
  .main-nav {
    margin-left: 5px;
    gap: 18px;
  }
  .planning-heading {
    padding: 20px 22px;
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 390px;
  }
  .heading-actions .button {
    font-size: 11px;
    min-height: 34px;
  }
  .calendar,
  .worker-banner {
    margin-left: 22px;
    margin-right: 22px;
  }
  .workspace {
    margin-left: 22px;
    margin-right: 22px;
    grid-template-columns: 260px minmax(0, 1fr);
    height: calc(100vh - 335px);
  }
  .workspace.with-editor {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .editor {
    position: fixed;
    top: 75px;
    bottom: 15px;
    right: 15px;
    width: 340px;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 50px #123b4633;
  }
  .day-button {
    padding: 12px 10px;
  }
  .day-date {
    font-size: 15px;
  }
  .calendar-hint {
    font-size: 9px;
  }
  .map-toolbar {
    padding: 8px;
  }
  .map-toolbar .button {
    padding: 6px 8px;
  }
}
@media (max-width: 800px) {
  .app-header {
    height: 67px;
    padding: 0 16px;
    gap: 12px;
  }
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.4px;
  }
  .main-nav {
    margin: 0;
    gap: 14px;
    justify-content: flex-end;
  }
  .main-nav .header-link {
    font-size: 10px;
  }
  .account-button {
    gap: 7px;
  }
  .account-button strong {
    max-width: 80px;
    font-size: 10px;
  }
  .account-button small {
    font-size: 9px;
  }
  .account-button > span:last-child {
    display: none;
  }
  .avatar {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .planning-heading {
    padding: 19px 16px 17px;
    align-items: flex-start;
  }
  .planning-heading h1 {
    font-size: 24px;
  }
  .title-line {
    gap: 8px;
  }
  .badge {
    font-size: 9px;
    padding: 3px 6px;
  }
  .section-kicker {
    font-size: 9px;
  }
  .heading-actions {
    max-width: 220px;
    gap: 5px;
  }
  .heading-actions .button {
    font-size: 10px;
    padding: 6px 9px;
    min-height: 31px;
  }
  .calendar {
    margin: 0 16px 15px;
    padding: 9px 8px 0;
  }
  .calendar-toolbar {
    gap: 9px;
    padding-bottom: 9px;
  }
  .date-navigation {
    font-size: 0;
    gap: 0;
  }
  .date-navigation input {
    width: 126px;
    font-size: 10px;
  }
  .calendar-hint {
    font-size: 0;
    gap: 5px;
  }
  .calendar-hint .text-button {
    font-size: 9px;
    margin: 0;
  }
  .status-dot {
    width: 5px;
    height: 5px;
  }
  .week-days {
    gap: 3px;
  }
  .day-button {
    min-height: 75px;
    padding: 10px 7px;
  }
  .day-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .day-label {
    font-size: 10px;
  }
  .day-date {
    font-size: 13px;
  }
  .day-count {
    font-size: 8px;
  }
  .day-dots {
    display: none;
  }
  .day-today {
    right: 5px;
    top: 11px;
    bottom: auto;
    font-size: 6px;
  }
  .workspace,
  .workspace.with-editor {
    margin: 0 16px;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 490px;
    height: calc(100vh - 320px);
  }
  .sidebar-heading {
    padding: 15px 12px 13px;
  }
  .sidebar-heading h2 {
    font-size: 15px;
  }
  .filters {
    padding: 0 11px 11px;
  }
  .day-summary {
    margin: 0 12px;
    font-size: 9px;
    gap: 8px;
  }
  .zone-list {
    padding: 10px 8px;
  }
  .zone-card {
    padding: 10px 9px 10px 12px;
  }
  .zone-card-title {
    font-size: 12px;
  }
  .map-toolbar {
    gap: 5px;
  }
  .map-toolbar .button {
    font-size: 9px;
    padding: 5px 7px;
    min-height: 29px;
  }
  .map-caption {
    font-size: 9px;
    padding: 6px 8px;
  }
  .app-footer {
    padding: 12px 17px;
  }
  .app-footer > span:last-child {
    display: none;
  }
  .login-screen {
    grid-template-columns: 1fr 1fr;
  }
  .login-story {
    padding: 35px 25px;
  }
  .login-intro h1 {
    font-size: 36px;
  }
  .login-side {
    padding: 28px;
  }
  .login-form h2 {
    font-size: 23px;
  }
  .login-landscape {
    transform: scale(0.8);
    transform-origin: left;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .status-grid {
    grid-template-columns: 1fr 1fr;
  }
  .worker-banner {
    margin: 0 16px 15px;
    padding: 13px 16px;
  }
  .worker-banner label {
    min-width: 185px;
  }
  .worker-banner p {
    max-width: 280px;
  }
}
@media (max-width: 600px) {
  .app-header {
    flex-wrap: wrap;
    align-content: center;
    height: 91px;
    gap: 9px;
  }
  .app-header .brand small {
    display: none;
  }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 23px;
    flex: auto;
    height: 26px;
  }
  .main-nav .header-link {
    font-size: 11px;
    padding: 2px 0 7px;
  }
  .account-button {
    margin-left: auto;
  }
  .account-button > span:nth-child(2) {
    display: none;
  }
  .planning-heading {
    flex-direction: column;
    gap: 14px;
  }
  .planning-heading h1 {
    font-size: 26px;
  }
  .heading-actions {
    max-width: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
  }
  .heading-actions .button {
    flex: 1;
    padding: 6px 7px;
    font-size: 10px;
  }
  .calendar-hint #sync-status,
  .calendar-hint .status-dot {
    display: none;
  }
  .day-label {
    font-size: 9px;
  }
  .day-count {
    font-size: 7px;
  }
  .day-today {
    display: none;
  }
  .day-date {
    font-size: 13px;
  }
  .day-button.is-today .day-date {
    text-decoration: underline;
    text-decoration-color: #439c7b;
    text-underline-offset: 4px;
  }
  .workspace,
  .workspace.with-editor,
  .worker-mode .workspace {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .map-panel {
    order: 0;
    height: 400px;
  }
  .zone-sidebar {
    order: 1;
    border: 0;
    border-top: 1px solid var(--line);
    max-height: 530px;
  }
  .worker-mode .zone-sidebar {
    order: 0;
    max-height: 560px;
  }
  .worker-mode .map-panel {
    order: 1;
  }
  .sidebar-heading {
    padding: 16px 15px 10px;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 14px 11px;
  }
  .filters .text-button {
    grid-column: 1/-1;
  }
  .day-summary {
    margin: 0 15px;
  }
  .zone-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
  .zone-card {
    margin: 0;
    min-height: 118px;
  }
  .worker-mode .zone-list {
    display: flex;
    flex-direction: column;
  }
  .worker-mode .zone-card {
    min-height: 0;
    padding: 15px;
  }
  .worker-mode .zone-card-title {
    font-size: 14px;
  }
  .worker-mode .zone-time,
  .worker-mode .zone-people {
    font-size: 12px;
  }
  .zone-list > .empty-state {
    grid-column: 1/-1;
  }
  .sidebar-footer {
    padding: 10px 15px;
  }
  .editor {
    top: 12px;
    bottom: 9px;
    left: 9px;
    right: 9px;
    width: auto;
    border-radius: 10px;
    z-index: 900;
    box-shadow: 0 10px 50px #123b4655;
  }
  .editor-heading h2 {
    max-width: 280px;
  }
  .editor-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 13px;
  }
  .editor-fields > label:first-child,
  .editor-fields > .two-columns,
  .editor-fields > fieldset,
  .editor-fields > label:has(textarea),
  .editor-fields > #geometry-edit,
  .editor-fields > p {
    grid-column: 1/-1;
  }
  .editor-fields > .check-line {
    align-self: end;
    min-height: 35px;
  }
  .editor .checks {
    max-height: 135px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .editor .checks label {
    font-size: 11px;
  }
  .editor .editor-actions {
    padding: 12px 16px;
  }
  .editor-secondary {
    justify-content: space-around;
  }
  .login-screen {
    display: flex;
    flex-direction: column;
  }
  .login-story {
    padding: 25px 27px 27px;
  }
  .login-story .brand small {
    display: block;
  }
  .login-intro {
    padding-top: 35px;
  }
  .login-intro .eyebrow {
    font-size: 8px;
    margin-bottom: 12px;
  }
  .login-intro h1 {
    font-size: 35px;
    margin-bottom: 12px;
  }
  .login-intro > p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.7;
    max-width: 300px;
  }
  .login-landscape,
  .login-foot {
    display: none;
  }
  .login-side {
    flex: 1;
    padding: 30px 27px;
  }
  .login-form {
    max-width: 420px;
  }
  .login-form h2 {
    font-size: 23px;
  }
  .login-form > .muted {
    margin-bottom: 20px;
  }
  .login-form label {
    margin: 13px 0;
  }
  .dialog-header {
    padding: 20px 18px 15px;
  }
  .dialog-header h2 {
    font-size: 19px;
  }
  .dialog-body {
    padding: 18px;
  }
  .dialog-footer {
    padding: 13px 18px;
  }
  .dialog-tabs {
    gap: 2px;
  }
  .tab-button {
    padding: 7px 8px;
    font-size: 10px;
  }
  .choice-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }
  .choice-card {
    padding: 15px;
  }
  .choice-card strong {
    font-size: 14px;
  }
  .definition-list {
    grid-template-columns: 100px 1fr;
    font-size: 11px;
  }
  .admin-toolbar {
    align-items: flex-start;
  }
  .admin-toolbar input {
    max-width: 180px;
  }
  .table-actions {
    min-width: 110px;
  }
  .template-row,
  .history-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .toasts {
    bottom: 14px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
  .app-footer {
    font-size: 8px;
  }
  .load-error {
    margin: 0 16px 12px;
    font-size: 11px;
  }
  .map-notice {
    font-size: 11px;
    top: 98px;
    width: calc(100% - 25px);
    max-width: none;
  }
  .worker-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .worker-banner p {
    max-width: none;
  }
  .worker-banner label {
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .worker-banner select {
    flex: 1;
  }
  .worker-banner strong {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 13mm;
  }
  body {
    background: #fff;
    color: #111;
    font-size: 10pt;
  }
  #app,
  #login-screen,
  .toasts,
  .dialog,
  .skip-link {
    display: none !important;
  }
  .print-report {
    display: block;
  }
  .print-report h1 {
    font-size: 22pt;
    letter-spacing: -0.5pt;
  }
  .print-meta {
    font-size: 9pt;
    margin: 5mm 0;
    color: #555;
  }
  .print-day {
    break-inside: avoid-page;
    margin: 5mm 0 8mm;
  }
  .print-day h2 {
    font-size: 14pt;
    border-bottom: 1px solid #999;
    padding-bottom: 2mm;
    margin-bottom: 3mm;
  }
  .print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8pt;
  }
  .print-table th {
    text-align: left;
    border-bottom: 1px solid #777;
    padding: 2mm;
    background: #eee;
  }
  .print-table td {
    border-bottom: 1px solid #ccc;
    padding: 2.5mm 2mm;
    vertical-align: top;
    overflow-wrap: anywhere;
  }
  .print-table th:first-child {
    width: 16%;
  }
  .print-table th:nth-child(2) {
    width: 11%;
  }
  .print-table th:nth-child(3) {
    width: 23%;
  }
  .print-table th:nth-child(4) {
    width: 20%;
  }
  .print-table tr {
    break-inside: avoid;
  }
  .print-table td:first-child {
    font-weight: 600;
  }
  .print-empty {
    font-size: 9pt;
    color: #777;
  }
  .print-footer {
    font-size: 8pt;
    border-top: 1px solid #aaa;
    padding-top: 3mm;
    margin-top: 6mm;
  }
}
.tile-status {
  position: absolute;
  right: 12px;
  top: 65px;
  z-index: 440;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid #d8c8a4;
  border-radius: 6px;
  background: #fff9e8ef;
  color: #876e3e;
  font-size: 10px;
  pointer-events: none;
}
.print-map-title {
  display: none;
}
@media screen {
  body.print-preparing #workspace {
    position: relative;
    pointer-events: none;
  }
  body.print-preparing #workspace::after {
    content: "Druckansicht wird vorbereitet …";
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: #f2f5f3ed;
    color: var(--ink);
    font-size: 14px;
  }
  body.print-preparing .map-panel {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 271mm !important;
    height: 108mm !important;
    display: flex;
    overflow: hidden;
    border: 1px solid #bbb;
    border-radius: 0;
    pointer-events: none;
  }
  body.print-preparing #map {
    min-height: 0;
    flex: 1;
  }
  body.print-preparing .print-map-title {
    display: block;
    font-size: 15pt;
    padding: 2mm 3mm;
    background: #fff;
  }
  body.print-preparing .map-toolbar,
  body.print-preparing .map-notice,
  body.print-preparing .tile-status,
  body.print-preparing .leaflet-control-zoom {
    display: none !important;
  }
}
@media print {
  body.print-day-map #app {
    display: block !important;
  }
  body.print-day-map .app-header,
  body.print-day-map #main > :not(.workspace),
  body.print-day-map .zone-sidebar,
  body.print-day-map .editor,
  body.print-day-map .map-toolbar,
  body.print-day-map .map-notice,
  body.print-day-map .tile-status {
    display: none !important;
  }
  body.print-day-map #workspace {
    display: block !important;
    height: 108mm;
    min-height: 108mm;
    width: 100%;
    margin: 0 0 7mm;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  body.print-day-map .map-panel {
    height: 108mm !important;
    display: flex;
    overflow: hidden;
    border: 1px solid #bbb;
    border-radius: 0;
  }
  body.print-day-map #map {
    min-height: 0;
    flex: 1;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body.print-day-map .print-map-title {
    display: block;
    font-size: 15pt;
    padding: 2mm 3mm;
    background: #fff;
  }
  body.print-day-map .leaflet-control-zoom {
    display: none;
  }
  body.print-day-map .map-caption {
    bottom: 7mm;
    left: 3mm;
    print-color-adjust: exact;
  }
  body.print-day-map .print-day {
    break-inside: auto;
  }
}
.worker-mode .planning-heading {
  padding-top: 19px;
  padding-bottom: 16px;
}
.worker-mode.has-person .worker-banner {
  padding: 10px 16px;
}
.worker-mode.has-person .worker-banner > div {
  display: none;
}
.worker-mode.has-person .worker-banner label {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 400px;
}
.worker-mode.has-person .worker-banner select {
  flex: 1;
}
.worker-mode #employee-filter {
  display: none;
}
.worker-mode.has-person .workspace {
  height: calc(100vh - 408px);
}
.readonly-details {
  display: flex;
  flex-direction: column;
  gap: 23px;
  padding: 20px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.readonly-timing {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 12px;
  gap: 6px;
}
.readonly-timing strong {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.readonly-timing span {
  font-size: 12px;
  color: var(--muted);
}
.readonly-section h3 {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6b8575;
  margin-bottom: 10px;
  font-weight: 600;
}
.readonly-section p {
  font-size: 13px;
  line-height: 1.75;
}
.readonly-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.readonly-list li {
  padding: 8px 11px;
  border: 1px solid #dfe9dc;
  border-radius: 6px;
  background: #f5f8f0;
  font-size: 13px;
}
.readonly-note {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.readonly-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.geometry-move-handle {
  display: grid;
  place-items: center;
  background: #fff;
  color: #155d4c;
  border: 2px solid #167768;
  box-shadow: 0 2px 9px #0002;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 700;
  cursor: move;
}
.editor.geometry-mode .editor-heading {
  background: #f0f6e9;
}
@media (max-width: 600px) {
  .worker-mode .planning-heading {
    padding: 15px 16px 12px;
    gap: 10px;
  }
  .worker-mode .planning-heading > .section-kicker,
  .worker-mode .planning-heading .section-kicker {
    display: none;
  }
  .worker-mode .planning-heading h1 {
    font-size: 24px;
  }
  .worker-mode .worker-banner {
    margin-bottom: 11px;
  }
  .worker-mode.has-person .worker-banner {
    padding: 8px 11px;
  }
  .worker-mode.has-person .worker-banner label {
    font-size: 10px;
    gap: 10px;
  }
  .worker-mode.has-person .worker-banner select {
    padding: 7px 9px;
    font-size: 11px;
  }
  .worker-mode .calendar {
    margin-bottom: 11px;
  }
  .worker-mode .calendar-toolbar {
    padding-bottom: 7px;
  }
  .worker-mode .day-button {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 5px;
  }
  .worker-mode .day-top {
    gap: 5px;
  }
  .worker-mode .sidebar-heading {
    padding: 12px 15px 9px;
  }
  .worker-mode .sidebar-heading .section-kicker {
    display: none;
  }
  .worker-mode .filters {
    grid-template-columns: 1fr;
    padding-bottom: 9px;
  }
  .worker-mode .filters input {
    min-height: 32px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .worker-mode .day-summary {
    padding-bottom: 9px;
  }
  .worker-mode .workspace,
  .worker-mode.has-person .workspace {
    height: auto;
    min-height: 0;
  }
  .editor.geometry-mode {
    top: auto;
    bottom: 8px;
    height: 145px;
  }
  .editor.geometry-mode .editor-fields {
    display: none;
  }
  .editor.geometry-mode .editor-heading {
    padding: 9px 15px;
  }
  .editor.geometry-mode .editor-actions {
    padding: 8px 15px;
  }
  .editor.geometry-mode .editor-secondary {
    margin-top: 3px;
  }
  .editor.geometry-mode .editor-heading:after {
    content: "Punkte auf der Karte ziehen";
    font-size: 10px;
    color: #618163;
    position: absolute;
    right: 55px;
    top: 23px;
    max-width: 105px;
    text-align: right;
  }
  .editor.geometry-mode .editor-heading h2 {
    max-width: 155px;
    font-size: 14px;
  }
  .readonly-details {
    padding: 21px;
    gap: 22px;
  }
  .readonly-timing strong {
    font-size: 20px;
  }
  .readonly-timing span {
    font-size: 13px;
  }
  .readonly-section p,
  .readonly-list li {
    font-size: 14px;
  }
}
.master-status-filter {
  max-width: 150px;
  font-size: 11px;
  min-height: 36px;
  padding: 8px;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.legend-swatch {
  display: block;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border: 1px solid #0001;
  border-radius: 5px;
}
.workspace.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}
.workspace.sidebar-collapsed.with-editor {
  grid-template-columns: minmax(0, 1fr) 330px;
}
.sidebar-collapsed .zone-sidebar {
  display: none;
}
.worker-mode.has-person #week-range {
  display: none;
}
@media (max-width: 1180px) {
  .workspace.sidebar-collapsed.with-editor {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .master-status-filter {
    max-width: 120px;
    flex: 1;
  }
  .admin-toolbar:has(.master-status-filter) {
    flex-wrap: wrap;
  }
  .admin-toolbar:has(.master-status-filter) > input {
    max-width: none;
    flex: 1;
    min-width: 125px;
  }
  .admin-toolbar:has(.master-status-filter) > .button {
    width: 100%;
  }
  .worker-mode.has-person .planning-heading {
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .worker-mode.has-person .planning-heading h1 {
    font-size: 23px;
  }
  .worker-mode.has-person .worker-banner {
    margin-bottom: 9px;
  }
  .worker-mode.has-person .sidebar-heading {
    padding-top: 10px;
    padding-bottom: 8px;
  }
}
@media print {
  .print-table td {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
.dialog form.form-grid {
  display: grid;
}
.dialog form.item-stack {
  display: flex;
}
.draw-actions,
.map-locations {
  flex-wrap: wrap;
  min-width: 0;
}
.map-notice {
  top: auto;
  bottom: 65px;
}
.map-notice > span {
  min-width: 0;
}
.map-notice .text-button {
  flex-shrink: 0;
}
.geometry-type-note {
  margin-top: -12px;
  color: var(--muted);
  font-size: 11px;
}
.dialog form.street-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.street-scope {
  display: flex;
  align-items: center;
  gap: 15px;
}
.street-scope p {
  flex: 1;
  font-size: 11px;
}
.street-picker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  gap: 16px;
  align-items: start;
}
.street-results {
  max-height: 330px;
  overflow: auto;
  min-width: 0;
}
.street-results .data-table th {
  font-size: 10px;
}
.street-results .data-table td {
  font-size: 11px;
  padding: 10px;
}
.street-results .data-table td:first-child {
  width: 55px;
}
.street-result-name {
  overflow-wrap: anywhere;
}
.street-preview-side {
  min-width: 0;
}
.street-preview {
  height: 255px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e7ecdc;
}
.street-preview-side > p {
  margin-top: 7px;
  font-size: 10px;
}
.street-attribution a {
  color: var(--teal);
}
.street-selection-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f5f8f1;
}
.street-selection-summary > strong {
  font-size: 12px;
}
.street-selection-summary .date-chip {
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .draw-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .draw-actions .button {
    white-space: normal;
    font-size: 10px;
    padding: 6px 8px;
  }
  .map-notice {
    top: auto;
    bottom: 60px;
    gap: 9px;
    font-size: 10px;
  }
  .map-notice .text-button {
    font-size: 10px;
  }
  .street-picker-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .street-preview {
    height: 185px;
  }
  .street-results {
    max-height: 220px;
  }
  .street-scope {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .dialog:has(.street-picker-layout) .dialog-footer {
    flex-wrap: wrap;
  }
  .dialog:has(.street-picker-layout) .dialog-footer .button {
    font-size: 11px;
    padding: 7px 10px;
  }
}
.street-query-field {
  position: relative;
}
.street-query-field input[role="combobox"] {
  padding-right: 30px;
}
.street-suggestions {
  position: absolute;
  z-index: 1100;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 5px;
  list-style: none;
  max-height: 225px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #a9c6b7;
  border-radius: 8px;
  box-shadow: 0 10px 28px #143c4526;
}
.street-suggestion {
  padding: 10px 11px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.street-suggestion:hover,
.street-suggestion.active {
  background: #e8f3e8;
  color: #125d4e;
}
.street-name-status {
  min-height: 20px;
  margin-top: -9px;
  font-size: 11px !important;
  color: var(--muted);
}
.street-scope > label {
  width: 240px;
  flex-shrink: 0;
}
.street-scope select {
  font-size: 12px;
}
.street-results-heading {
  padding: 0 0 8px;
  font-size: 11px !important;
  color: var(--muted);
}
.master-help {
  margin: -3px 0 13px;
  color: var(--muted);
  font-size: 11px !important;
  line-height: 1.6;
}
.dialog-footer {
  flex-wrap: wrap;
}
.dialog-footer .button {
  max-width: 100%;
  white-space: normal;
}
@media (max-width: 600px) {
  .street-scope > label {
    width: 100%;
  }
  .street-suggestion {
    min-height: 43px;
    display: flex;
    align-items: center;
  }
  .street-suggestions {
    max-height: 210px;
  }
}
