:root {
  --bg: #ffffff;
  --surface: #f7f9f8;
  --panel: #ffffff;
  --text: #1d2422;
  --muted: #66716d;
  --line: #dfe7e3;
  --line-strong: #c8d3ce;
  --green: #1f8a5b;
  --green-soft: #e4f4eb;
  --amber: #b7791f;
  --amber-soft: #fff3d7;
  --coral: #c75043;
  --coral-soft: #ffe8e4;
  --slate: #2f3a37;
  --shadow: 0 18px 48px rgba(29, 36, 34, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

button,
select,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(31, 138, 91, 0.08), rgba(47, 58, 55, 0.04)),
    #ffffff;
}

.login-card {
  width: min(100%, 420px);
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 24px;
  box-shadow: var(--shadow);
}

.login-help,
.error-message {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.text-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  justify-self: start;
  padding: 0;
  text-align: left;
}

.text-button:hover {
  text-decoration: underline;
}

.error-message {
  min-height: 20px;
  color: var(--coral);
  font-weight: 750;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 224px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.sidebar {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #fbfcfb;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.mobile-menu-button {
  display: none;
}

.legacy-nav {
  display: none !important;
}

.nav-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
}

.nav-item[hidden],
.nav-sublist[hidden],
.nav-subitem[hidden],
.status-strip[hidden],
.inspector[hidden] {
  display: none !important;
}

.app-shell.viewer-mode {
  grid-template-columns: 248px minmax(0, 1fr) 224px;
}

.nav-item.active,
.nav-item:hover {
  background: var(--green-soft);
  color: var(--green);
}

.nav-sublist {
  display: grid;
  gap: 4px;
  margin: -2px 0 4px 40px;
}

.nav-subitem {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  padding: 7px 10px;
  text-align: left;
}

.nav-subitem.active,
.nav-subitem:hover {
  background: #f2f6f4;
  color: var(--green);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-block;
  background: currentColor;
  mask: var(--icon) center / 20px 20px no-repeat;
  -webkit-mask: var(--icon) center / 20px 20px no-repeat;
}

.icon-planning {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 11h16M8 15h5M8 18h8'/%3E%3C/svg%3E");
}

.icon-overview {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.icon-availability {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3Cpath d='M19 13v5a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h8'/%3E%3C/svg%3E");
}

.icon-swap {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5'/%3E%3Cpath d='M4 20 21 3'/%3E%3Cpath d='M21 16v5h-5'/%3E%3Cpath d='M15 15l6 6'/%3E%3Cpath d='M4 4l5 5'/%3E%3C/svg%3E");
}

.icon-child-song {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='17' cy='16' r='3'/%3E%3Cpath d='M9 9l11-2'/%3E%3C/svg%3E");
}

.icon-teen-song {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 18V5l8-2v13'/%3E%3Ccircle cx='9' cy='18' r='3'/%3E%3Ccircle cx='17' cy='16' r='3'/%3E%3Cpath d='M4 8h4M4 12h4M4 16h2'/%3E%3C/svg%3E");
}

.icon-music-library {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3Cpath d='M10 13V7l5-1v6'/%3E%3Ccircle cx='9' cy='13' r='1.5'/%3E%3Ccircle cx='14' cy='12' r='1.5'/%3E%3C/svg%3E");
}

.icon-manual {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 18a1 1 0 0 0 1 1h5a3 3 0 0 1 3 2 3 3 0 0 1 3-2h5a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-5a3 3 0 0 0-3 3 3 3 0 0 0-3-3H4a1 1 0 0 0-1 1Z'/%3E%3C/svg%3E");
}

.icon-management {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7'/%3E%3Cpath d='M4 10V3'/%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 8V3'/%3E%3Cpath d='M20 21v-5'/%3E%3Cpath d='M20 12V3'/%3E%3Cpath d='M2 14h4'/%3E%3Cpath d='M10 8h4'/%3E%3Cpath d='M18 16h4'/%3E%3C/svg%3E");
}

.icon-settings {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6V22a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1A2 2 0 1 1 4.2 18l.1-.1a1.7 1.7 0 0 0 .3-1.9 1.7 1.7 0 0 0-1.6-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9l-.1-.1A2 2 0 1 1 7 4.2l.1.1a1.7 1.7 0 0 0 1.9.3h.1a1.7 1.7 0 0 0 1-1.6V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.6h.1a1.7 1.7 0 0 0 1.9-.3l.1-.1A2 2 0 1 1 19.8 7l-.1.1a1.7 1.7 0 0 0-.3 1.9v.1a1.7 1.7 0 0 0 1.6 1h.1a2 2 0 1 1 0 4H21a1.7 1.7 0 0 0-1.6 1Z'/%3E%3C/svg%3E");
}

.source-note,
.sidebar-logo {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.sidebar-logo {
  padding: 12px;
}

.sidebar-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.app-version {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.source-note strong,
.source-note span {
  display: block;
}

.source-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 5px;
}

.workspace {
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: 24px 28px 40px;
  background: linear-gradient(#ffffff 0, #ffffff 280px, #f9fbfa 280px);
}

.topbar,
.section-heading,
.topbar-actions {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  line-height: 1.25;
}

h3 {
  font-size: 15px;
}

.topbar p,
.section-heading p,
.legend-panel p {
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
  font-size: 14px;
}

.topbar-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.field {
  display: grid;
  gap: 5px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field select,
.field input {
  min-width: 142px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 34px 9px 10px;
  background: white;
  color: var(--text);
}

.custom-period-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, 1fr));
  gap: 6px;
}

.custom-period-fields[hidden] {
  display: none !important;
}

.custom-period-fields input {
  width: 100%;
  min-width: 0;
  padding-right: 10px;
}

.custom-period-fields label {
  display: grid;
  gap: 3px;
}

.custom-period-fields span {
  font-size: 11px;
}

.primary-button,
.secondary-button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 42px;
  cursor: pointer;
  font-weight: 800;
}

.participant-badge {
  display: none;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 12px;
  background: white;
  color: var(--slate);
  font-size: 14px;
  font-weight: 800;
}

.primary-button {
  background: var(--green);
  color: white;
  box-shadow: 0 10px 22px rgba(31, 138, 91, 0.22);
}

.secondary-button {
  background: white;
  border-color: var(--line-strong);
  color: var(--slate);
}

.inspector-password-button,
.inspector-logout-button {
  width: 100%;
  margin-top: 12px;
}

.inspector-password-button + .inspector-logout-button {
  margin-top: 8px;
}

.primary-button:disabled,
.secondary-button:disabled,
select:disabled,
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.status-strip > div,
.panel,
.legend-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-strip > div {
  padding: 15px 16px;
}

.metric {
  display: block;
  font-size: 23px;
  font-weight: 850;
  color: var(--slate);
}

.status-strip span:last-child {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.section-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.planning-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.data-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-management-period {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.overview-actions {
  margin: -4px 0 10px;
}

.manual-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.manual-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate);
}

.manual-meta span {
  color: var(--muted);
  font-size: 13px;
}

.manual-frame {
  width: 100%;
  height: min(72vh, 820px);
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.planning-mail-panel {
  display: grid;
  gap: 10px;
}

.planning-mail-inline {
  margin: -4px 0 14px;
  max-width: 760px;
  box-shadow: none;
}

.planning-mail-panel[hidden] {
  display: none !important;
}

.planning-mail-panel .field {
  display: grid;
  gap: 5px;
}

.planning-mail-panel select {
  width: 100%;
}

.mail-recipient-list {
  display: grid;
  gap: 2px;
  max-height: 190px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  padding: 6px;
}

.mail-recipient-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 4px;
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.mail-recipient-option:hover {
  background: #f7faf8;
}

.mail-recipient-option input {
  justify-self: center;
  margin: 0;
}

.mail-recipient-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calendar-nav span {
  min-width: 210px;
  text-align: center;
  color: var(--slate);
  font-size: 14px;
  font-weight: 850;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.compact-heading {
  margin-bottom: 10px;
}

.overview-wrap {
  max-height: calc(100vh - 220px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.overview-mobile-list {
  display: none;
  gap: 10px;
}

.overview-table {
  width: 100%;
  min-width: 1040px;
  table-layout: fixed;
  border-collapse: collapse;
}

.overview-table th,
.overview-table td {
  padding: 6px 8px;
}

.overview-table th {
  font-size: 11px;
}

.overview-service-cell {
  width: 150px;
}

.overview-table th:first-child,
.overview-table td:first-child,
.planning-table th:first-child,
.planning-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 1px 0 0 var(--line);
}

.overview-table th:first-child,
.planning-table th:first-child {
  z-index: 3;
}

.overview-table td:first-child,
.planning-table td:first-child {
  background: white;
}

.overview-table th:first-child,
.planning-table th:first-child {
  background: #f2f6f4;
}

.overview-service-cell strong,
.overview-service-cell span {
  display: block;
  line-height: 1.2;
}

.overview-service-cell strong {
  font-size: 12px;
}

.overview-service-cell span {
  color: var(--muted);
  font-size: 11px;
}

.overview-empty-cell {
  background: #f8f9f7;
}

.overview-assignment {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 22px;
  align-items: center;
}

.overview-assignment span {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 6px;
  background: #eef7ed;
  color: #265a2a;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swap-inline-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--green);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  padding: 2px 6px;
}

.swap-inline-button:disabled {
  background: #f3f4f1;
  color: var(--muted);
  cursor: default;
}

.overview-open {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.overview-song-cell {
  width: 150px;
}

.overview-song-button {
  max-width: 100%;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-mobile-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
  box-shadow: var(--shadow);
}

.overview-mobile-card header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.overview-mobile-rows {
  display: grid;
  gap: 7px;
}

.overview-mobile-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.overview-mobile-row > strong {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
}

.overview-song-mobile {
  min-width: 0;
}

.swap-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
  box-shadow: var(--shadow);
}

.swap-panel h3 {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
}

.swap-list {
  display: grid;
  gap: 8px;
}

.swap-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 8px;
}

.swap-request strong,
.swap-request span,
.swap-request small {
  display: block;
  line-height: 1.3;
}

.swap-request span,
.swap-request small {
  color: var(--muted);
  font-size: 12px;
}

.swap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.swap-action-note {
  max-width: 130px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  text-align: right;
}

.planning-text-panel {
  display: grid;
  gap: 8px;
}

.planning-text-panel[hidden] {
  display: none;
}

.planning-text-panel textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--text);
  padding: 10px 12px;
  font: 14px/1.45 Consolas, "Courier New", monospace;
}

.planning-text-panel .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.planning-text-date-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 150px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 8px;
}

.planning-text-date-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 750;
}

.planning-table {
  width: 100%;
  min-width: 1240px;
  border-collapse: collapse;
}

.print-export {
  display: none;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  vertical-align: middle;
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f6f4;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

td {
  font-size: 14px;
}

.locked-cell {
  background: #fafbfa;
}

.not-needed-cell {
  background: #f5f6f4;
  padding-top: 4px;
  padding-bottom: 4px;
}

.planning-song-cell {
  min-width: 190px;
}

.planning-song-display {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  min-height: 34px;
  min-width: 170px;
  overflow: hidden;
  padding: 7px 8px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planning-song-display:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.planning-song-empty {
  display: block;
  min-width: 170px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.service-cell strong {
  display: block;
  margin-bottom: 3px;
}

.service-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.service-cell .service-user-note,
.overview-service-cell .service-user-note,
.print-service .service-user-note {
  color: var(--green);
  font-weight: 850;
}

.service-note-button {
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  padding: 4px 7px;
}

.service-note-button:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.cornerstone-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 7px;
}

.cornerstone-toggle input {
  margin: 0;
}

.assignment {
  display: grid;
  gap: 6px;
  min-width: 142px;
}

.assignment select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  min-height: 34px;
  padding: 7px 8px;
  background: white;
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
}

.assignment:not(.group-assignment) {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 6px;
}

.assignment:not(.group-assignment) .availability-badge {
  justify-self: start;
}

.group-assignment {
  min-width: 210px;
  position: relative;
}

.group-selected,
.group-candidates {
  display: grid;
  gap: 5px;
}

.group-selected {
  align-items: start;
}

.planning-multiselect {
  position: relative;
}

.planning-multiselect-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 8px;
  background: white;
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.planning-multiselect-trigger::-webkit-details-marker {
  display: none;
}

.planning-multiselect[open] .planning-multiselect-trigger {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(59, 130, 64, 0.12);
}

.planning-multiselect[open] .group-candidates {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: min(340px, 82vw);
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px;
  background: white;
  box-shadow: 0 18px 38px rgba(20, 35, 20, 0.18);
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef7ed;
  color: #265a2a;
  font-size: 12px;
  font-weight: 750;
}

.selected-chip-remove {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(38, 90, 42, 0.12);
  color: #265a2a;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.selected-chip-remove:hover,
.selected-chip-remove:focus-visible {
  background: rgba(38, 90, 42, 0.22);
  outline: none;
}

.instrument-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.instrument-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid #dbe7d9;
  border-radius: 999px;
  background: #f7fbf5;
  color: var(--green);
  font-size: 12px;
  line-height: 1;
}

.video-skill-label .instrument-icon {
  border-color: #d7e3ed;
  background: #f5f9fc;
  color: #23627d;
}

.audio-skill-label .instrument-icon {
  border-color: #e5dfd2;
  background: #fbf8f1;
  color: #7b5b1e;
}

.organ-skill-label .instrument-icon {
  border-color: #dedbf0;
  background: #f7f5fc;
  color: #51448a;
}

.vocal-skill-label .instrument-icon {
  border-color: #ead8df;
  background: #fcf5f8;
  color: #8a3f62;
}

.group-empty {
  color: var(--muted);
  font-size: 12px;
}

.group-candidate {
  display: grid;
  grid-template-columns: 16px minmax(110px, 1fr) minmax(72px, auto);
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: white;
}

.group-candidate.selected {
  border-color: var(--green);
  background: #f3faf2;
}

.group-candidate.warning {
  border-color: #f2d28b;
  background: var(--amber-soft);
}

.group-candidate.blocked {
  opacity: 0.48;
}

.group-candidate strong,
.group-candidate small {
  display: block;
  line-height: 1.25;
}

.group-candidate strong {
  font-size: 12px;
}

.group-candidate small {
  color: var(--muted);
  font-size: 11px;
}

.candidate-note {
  grid-column: 2 / -1;
  color: var(--amber);
  font-weight: 750;
}

.availability-badge {
  justify-self: start;
}

.conflict-note,
.override-row,
.availability-warning {
  font-size: 12px;
}

.conflict-note {
  color: var(--coral);
  font-weight: 750;
}

.availability-warning {
  color: var(--amber);
  font-weight: 750;
  line-height: 1.35;
}

.override-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.availability-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 16px;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
  gap: 14px;
}

.availability-month {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.availability-month > h3 {
  position: sticky;
  top: 0;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f6f4;
  padding: 10px 12px;
  color: var(--slate);
}

.availability-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
  box-shadow: var(--shadow);
}

.availability-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.availability-card header > div {
  min-width: 0;
}

.availability-card header strong,
.availability-card header span {
  display: block;
  line-height: 1.25;
}

.availability-card header strong {
  margin-bottom: 3px;
}

.availability-card header span {
  color: var(--muted);
  font-size: 13px;
}

.availability-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.availability-skill-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.4fr);
  gap: 8px;
  align-items: center;
  margin-top: 7px;
}

.availability-skill-name {
  color: var(--slate);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.availability-options button,
.pill {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  min-height: 34px;
  padding: 6px 8px;
  font-weight: 800;
  background: white;
  color: var(--muted);
}

.availability-options button.active {
  outline: 2px solid currentColor;
}

.pill {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 28px;
  font-size: 12px;
}

.yes-plus {
  background: #dff6e9;
  color: #146c45;
  border-color: #b7e6cc;
}

.yes {
  background: #eef8f2;
  color: #1f8a5b;
  border-color: #cfe9d9;
}

.yes-minus {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: #f2d28b;
}

.no {
  background: var(--coral-soft);
  color: var(--coral);
  border-color: #f2bbb3;
}

.availability-options button.yes-plus,
.availability-options button.yes,
.availability-options button.yes-minus,
.availability-options button.no {
  background: white;
  color: var(--muted);
  border-color: var(--line-strong);
}

.availability-options button.yes-plus.active {
  background: #dff6e9;
  color: #146c45;
  border-color: #b7e6cc;
}

.availability-options button.yes.active {
  background: #eef8f2;
  color: #1f8a5b;
  border-color: #cfe9d9;
}

.availability-options button.yes-minus.active {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: #f2d28b;
}

.availability-options button.no.active {
  background: var(--coral-soft);
  color: var(--coral);
  border-color: #f2bbb3;
}

.song-form {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(110px, 0.7fr) minmax(220px, 1.4fr) auto;
  gap: 8px;
  margin-bottom: 14px;
  max-width: 860px;
}

.song-form[hidden] {
  display: none !important;
}

.song-form input,
.song-combobox input,
.song-library-search,
.service-song-row select {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 9px 10px;
}

.song-combobox {
  min-width: 0;
}

.song-service-input {
  width: 100%;
  min-height: 32px;
  padding-block: 6px;
}

.song-library-search {
  width: min(100%, 420px);
}

.child-song-list,
.song-library,
.service-song-list,
.song-file-list {
  display: grid;
  gap: 10px;
}

.planning-clear-column-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.planning-clear-column-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 14px;
}

.planning-clear-column-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.child-song-panel,
.song-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
  box-shadow: var(--shadow);
}

.child-song-panel {
  margin-bottom: 14px;
}

.child-song-panel h3 {
  margin-bottom: 4px;
}

.child-song-panel p,
.song-card header span,
.service-song-row span,
.song-empty,
.song-file-row span {
  color: var(--muted);
  font-size: 12px;
}

.service-song-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 280px) minmax(96px, 150px);
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  min-height: 38px;
  padding-top: 6px;
}

.service-song-header {
  min-height: 26px;
  border-top: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  padding-top: 0;
  text-transform: uppercase;
}

.service-song-row strong,
.service-song-row span {
  display: block;
  line-height: 1.15;
}

.service-song-row strong {
  font-size: 12px;
}

.service-song-row span {
  font-size: 11px;
}

.song-usage-count {
  color: var(--slate);
  font-weight: 850;
}

.song-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.song-card header,
.song-file-row,
.song-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.song-card header {
  cursor: pointer;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
}

.song-card header strong {
  color: var(--slate);
}

.song-card.expanded {
  gap: 10px;
  padding-bottom: 12px;
}

.song-card.expanded header {
  border-bottom: 1px solid var(--line);
}

.song-card > .song-actions,
.song-card > .song-edit-form,
.song-card > .song-dropzone,
.song-card > .song-file-list {
  margin-inline: 12px;
}

.song-summary-main,
.song-summary-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.song-summary-main {
  flex: 1;
}

.song-summary-main strong {
  min-width: 54px;
}

.song-summary-main span {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-summary-meta {
  justify-content: flex-end;
}

.song-actions button,
.song-file-row button {
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-weight: 800;
}

.song-copy-actions {
  flex-wrap: wrap;
}

.song-copy-actions .secondary-button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--slate);
  padding: 6px 10px;
}

.song-edit-form {
  display: grid;
  grid-template-columns: minmax(90px, 0.75fr) minmax(90px, 0.75fr) minmax(160px, 2fr) auto;
  gap: 8px;
  align-items: center;
}

.song-edit-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  min-width: 0;
  padding: 9px 10px;
}

.song-actions .danger-link,
.song-file-row button {
  color: var(--coral);
}

.song-dropzone {
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  padding: 12px;
  font-weight: 750;
}

.song-dropzone.drag-over {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.song-dropzone input {
  display: none;
}

.song-file-row {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.song-file-row a,
.song-file-view-button {
  min-width: 0;
  overflow: hidden;
  color: var(--green);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-file-view-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.song-file-download-link {
  margin-left: auto;
  font-size: 12px;
}

.song-modal-content {
  display: grid;
  gap: 14px;
}

.song-modal-content h3 {
  margin: 0;
}

.song-modal-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.song-modal-detail div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
  padding: 10px;
}

.song-modal-detail span,
.song-modal-detail strong {
  display: block;
}

.song-modal-detail span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.song-modal-detail strong {
  color: var(--slate);
  font-size: 13px;
}

.empty {
  background: #f4f6f5;
  color: var(--muted);
}

.legend-panel {
  padding: 16px;
  height: max-content;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--slate);
  font-size: 14px;
}

.rules-list {
  display: grid;
  gap: 10px;
}

.user-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.user-list {
  display: grid;
  gap: 10px;
}

.user-sortbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: -4px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 10px 12px;
}

.user-sortbar label {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.user-sortbar span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.user-sortbar select {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 750;
}

.user-import-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: -2px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 10px 12px;
}

.user-import-panel div {
  min-width: 220px;
  flex: 1;
}

.user-import-panel h3,
.user-import-panel p {
  margin: 0;
}

.user-import-panel h3 {
  font-size: 14px;
}

.user-import-panel p {
  color: var(--muted);
  font-size: 12px;
}

.file-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.file-button input {
  display: none;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(140px, 0.55fr) minmax(260px, 1.35fr) minmax(150px, auto);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.user-row:hover,
.user-row:focus {
  border-color: var(--line-strong);
  outline: 2px solid transparent;
  background: #fbfcfb;
}

.user-main strong,
.user-main span {
  display: block;
}

.user-main span,
.skill-summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.user-main .user-meta {
  margin-top: 2px;
  color: var(--green);
  font-weight: 700;
}

.skill-summary {
  display: block;
  min-height: 30px;
  padding: 5px 0;
}

.role-chip {
  display: inline-grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.user-role-cells {
  display: grid;
  gap: 6px;
  align-items: stretch;
  min-width: 0;
}

.inactive-chip {
  display: inline-grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  border-radius: 8px;
  background: #f4ecea;
  color: var(--coral);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.inactive-user {
  background: #fbfaf9;
}

.checkbox-field > label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--slate);
  font-weight: 750;
}

.user-actions {
  display: flex;
  gap: 8px;
}

.user-actions .secondary-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.danger-button {
  border-color: #efc1bb;
  color: var(--coral);
}

.user-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.user-table td strong,
.user-table td span {
  display: block;
}

.user-table td span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.user-table select {
  width: min(100%, 220px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 8px 10px;
}

.status-active {
  display: inline-grid !important;
  place-items: center;
  width: max-content;
  min-height: 28px;
  border-radius: 8px;
  padding: 4px 9px;
  background: var(--green-soft);
  color: var(--green) !important;
  font-weight: 800;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.settings-panel-wide {
  grid-column: 1 / -1;
}

.settings-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.settings-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 16px;
  box-shadow: var(--shadow);
}

.settings-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.settings-calendar-nav span {
  min-width: 190px;
}

.settings-list {
  display: grid;
  gap: 8px;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 6px 8px 6px 10px;
}

.settings-item span {
  color: var(--slate);
  font-size: 13px;
  font-weight: 750;
}

.settings-item span strong,
.settings-item span small {
  display: block;
  line-height: 1.3;
}

.settings-item span small {
  color: var(--muted);
  font-weight: 650;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.settings-item button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--coral);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 7px;
}

.settings-item .settings-edit-button {
  color: var(--green);
}

.extra-service-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 2fr) auto;
  align-items: center;
}

.extra-service-needs {
  justify-content: flex-start;
}

.extra-service-needs label {
  min-height: 28px;
  padding: 4px 7px;
}

.mail-template-item.expanded {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.mail-template-editor {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(240px, 1fr);
  gap: 10px;
  margin-top: -8px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: white;
  padding: 10px;
}

.mail-template-editor .field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mail-template-editor input,
.mail-template-editor textarea {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  padding: 9px 10px;
}

.mail-template-body-field,
.mail-template-editor-actions {
  grid-column: 1 / -1;
}

.mail-template-editor textarea {
  min-height: 220px;
  resize: vertical;
}

.mail-template-editor-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.settings-item button:disabled {
  color: var(--muted);
}

.data-management-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.data-management-summary > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 10px;
}

.data-management-summary strong,
.data-management-summary span {
  display: block;
  line-height: 1.35;
}

.data-management-summary span {
  color: var(--muted);
  font-size: 13px;
}

.role-settings-card {
  display: grid;
  gap: 8px;
}

.role-members {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 10px 12px;
}

.role-members > strong {
  color: var(--slate);
  font-size: 13px;
}

.role-member-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}

.role-member-chip {
  display: flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--slate);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.role-member-chip.inactive {
  background: #f8eeee;
  color: var(--coral);
}

.role-member-empty {
  color: var(--muted);
  font-size: 13px;
}

.role-permission-editor {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.role-edit-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.7fr);
  gap: 10px;
}

.role-permission-group {
  display: grid;
  gap: 7px;
}

.role-permission-group > strong {
  color: var(--slate);
  font-size: 13px;
}

.role-permission-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px 10px;
}

.role-permission-list label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
}

.song-file-disabled {
  color: var(--muted);
  font-weight: 750;
}

.settings-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-top: 2px;
}

.settings-form input {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
}

.settings-form textarea {
  min-width: 0;
  min-height: 150px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  resize: vertical;
}

.settings-form select {
  min-width: 130px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 10px;
  background: white;
  color: var(--text);
}

.settings-form label {
  display: grid;
  gap: 4px;
}

.settings-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.standard-times-form {
  grid-template-columns: repeat(2, minmax(130px, 180px)) auto;
  align-items: end;
  margin-bottom: 8px;
}

.song-import-form {
  grid-template-columns: minmax(130px, 0.7fr) minmax(120px, 0.7fr) minmax(220px, 1.4fr) auto;
}

.mail-template-form {
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1fr) auto;
}

.mail-template-form textarea {
  grid-column: 1 / -1;
}

.mail-server-form {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  align-items: start;
}

.mail-server-form .field {
  min-width: 0;
}

.mail-server-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 10px;
}

.mail-server-section[hidden] {
  display: none;
}

.mail-server-section h4 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
}

.mail-server-warning,
.mail-server-actions,
#mailServerStatus,
#copyProductionToTestStatus,
#siteUrlStatus {
  grid-column: 1 / -1;
}

#mailServerStatus,
#copyProductionToTestStatus,
#siteUrlStatus {
  min-height: 20px;
  font-weight: 750;
}

#mailServerStatus[data-tone="success"],
#copyProductionToTestStatus[data-tone="success"],
#siteUrlStatus[data-tone="success"] {
  color: #116149;
}

#mailServerStatus[data-tone="busy"],
#copyProductionToTestStatus[data-tone="busy"],
#siteUrlStatus[data-tone="busy"] {
  color: #315f88;
}

#mailServerStatus[data-tone="error"],
#copyProductionToTestStatus[data-tone="error"],
#siteUrlStatus[data-tone="error"] {
  color: #b42318;
}

.mail-server-actions {
  justify-content: flex-start;
}

.song-import-form input[type="file"] {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  padding: 7px 10px;
}

.service-needs {
  display: grid;
  gap: 8px;
}

.service-need-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.8fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 10px 12px;
}

.service-need-date strong,
.service-need-date span {
  display: block;
}

.service-need-date strong {
  color: var(--slate);
  font-size: 13px;
}

.service-need-date span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.service-need-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.service-need-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 750;
}

.afternoon-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.afternoon-month {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 12px;
}

.afternoon-month h4 {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
}

.afternoon-weekdays,
.afternoon-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.afternoon-weekdays span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.afternoon-day,
.afternoon-empty {
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 8px;
}

.afternoon-empty {
  background: transparent;
}

.afternoon-day {
  border: 1px solid var(--line);
  background: white;
  color: var(--slate);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.afternoon-day:hover {
  border-color: var(--green);
  color: var(--green);
}

.afternoon-day.selected {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.afternoon-day.standard {
  border-style: dashed;
  cursor: default;
  opacity: 1;
}

.afternoon-day.today {
  border-color: var(--amber);
}

.afternoon-day:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.afternoon-day.standard:disabled {
  cursor: default;
  opacity: 1;
}

.calendar-form {
  grid-template-columns: 150px 150px 120px minmax(0, 1fr) auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 36, 34, 0.42);
}

.user-modal {
  width: min(100%, 900px);
  max-height: min(92vh, 860px);
  overflow: auto;
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(29, 36, 34, 0.24);
}

.compact-modal {
  width: min(100%, 640px);
}

#songModal .compact-modal {
  width: min(100%, 1120px);
}

.song-file-preview {
  min-height: min(72vh, 760px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8faf8;
}

.song-file-preview iframe {
  width: 100%;
  height: min(72vh, 760px);
  border: 0;
  background: white;
}

.song-file-preview img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 760px);
  margin: 0 auto;
  object-fit: contain;
}

.song-preview-download {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.modal-header,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-header {
  justify-content: space-between;
}

.modal-header p {
  color: var(--muted);
  margin-top: 5px;
  font-size: 14px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  color: var(--slate);
  cursor: pointer;
  font-weight: 900;
}

.form-section {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .field input,
.form-grid .field select {
  width: 100%;
}

.modal-actions {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

#autoPlanConfirmDetails {
  display: grid;
  gap: 8px;
}

.auto-plan-role-options {
  display: grid;
  gap: 8px;
}

.auto-plan-role-options > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.missing-list {
  display: grid;
  gap: 8px;
}

.missing-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.7fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 10px 12px;
}

.missing-row span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.missing-row-selectable {
  grid-template-columns: 1fr;
}

.missing-person-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.missing-person-choice input {
  width: 18px;
  height: 18px;
}

.missing-person-choice span {
  display: grid;
  gap: 2px;
  color: inherit;
  font-size: inherit;
  text-align: left;
}

.missing-person-choice small {
  color: var(--muted);
  font-size: 13px;
}

.modal-spacer {
  flex: 1;
}

.skills-editor {
  display: grid;
  gap: 12px;
  min-width: 430px;
}

.skill-group {
  display: grid;
  gap: 7px;
}

.skill-group strong {
  color: var(--slate);
  font-size: 12px;
}

.skill-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 6px;
}

.skill-options label,
.compact-skill label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 4px 8px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.compact-skill {
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
}

.compact-skill select {
  width: min(100%, 180px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 7px 9px;
}

.availability-person {
  display: block;
  margin: 14px 0 5px;
  font-size: 13px;
}

.rule-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
  box-shadow: var(--shadow);
}

.rule-row label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 750;
}

.rule-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(180px, 1.3fr) auto;
  gap: 8px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
  box-shadow: var(--shadow);
}

.rule-form select,
.rule-form input {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
}

.rule-actions {
  display: flex;
  justify-content: flex-end;
}

.inspector {
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #fbfcfb;
  padding: 18px 12px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.panel {
  padding: 12px;
}

.inspector .panel h2 {
  font-size: 13px;
  margin-bottom: 6px;
}

.inspector .secondary-button {
  width: 100%;
  justify-content: center;
  min-height: 30px;
  padding: 6px 8px;
  font-size: 12px;
}

.fairness-list {
  display: grid;
  gap: 13px;
  margin-top: 14px;
}

.fairness-panel {
  max-width: 720px;
}

.fairness-panel .fairness-list {
  margin-top: 0;
}

.fairness-row {
  display: grid;
  gap: 6px;
}

.fairness-row header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: #edf1ef;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--green);
}

#activityLog {
  color: var(--muted);
  line-height: 1.4;
  margin-top: 6px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.session-info {
  color: var(--muted);
  line-height: 1.4;
  margin-top: 6px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 1160px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100dvh;
    overflow-y: auto;
  }

  .sidebar {
    height: 100dvh;
    padding: 18px 14px;
    gap: 18px;
  }

  .workspace {
    height: 100dvh;
    padding: 20px 20px 32px;
  }

  .inspector {
    grid-column: 1 / -1;
    height: auto;
    max-height: 38vh;
    overflow: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planning-table {
    min-width: 1080px;
  }

  .overview-wrap {
    max-height: calc(100dvh - 190px);
  }

  .afternoon-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  html {
    overflow-x: hidden;
  }

  body {
    overflow: auto;
    overflow-x: hidden;
  }

  .app-shell {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .sidebar,
  .inspector {
    height: auto;
    overflow: visible;
    border: 0;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 12px;
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 252, 251, 0.98);
    box-shadow: 0 10px 26px rgba(29, 36, 34, 0.08);
  }

  .sidebar .brand {
    align-items: center;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand span {
    font-size: 12px;
  }

  .sidebar-logo {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: white;
    color: var(--slate);
    font-weight: 850;
    cursor: pointer;
  }

  .mobile-menu-button:hover,
  .mobile-menu-button[aria-expanded="true"] {
    border-color: #b9c8c1;
    background: var(--green-soft);
    color: var(--green);
  }

  .mobile-menu-icon,
  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-menu-icon {
    position: relative;
  }

  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .mobile-menu-icon::before {
    top: -6px;
  }

  .mobile-menu-icon::after {
    top: 6px;
  }

  .nav-list {
    display: none;
    gap: 6px;
    max-height: calc(100dvh - 116px);
    overflow-y: auto;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
  }

  .sidebar.mobile-menu-open .nav-list {
    display: grid;
  }

  .nav-item,
  .nav-subitem {
    width: 100%;
    min-height: 44px;
    white-space: normal;
  }

  .nav-item {
    padding: 10px 11px;
    font-size: 14px;
  }

  .nav-sublist {
    display: grid;
    gap: 4px;
    margin: -2px 0 4px 30px;
  }

  .workspace {
    height: auto;
    overflow: visible;
    padding: 20px 16px 32px;
    background: #ffffff;
  }

  .topbar,
  .section-heading,
  .settings-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 12px;
    margin-bottom: 16px;
  }

  h1 {
    font-size: 23px;
  }

  h2 {
    font-size: 17px;
  }

  .topbar-actions,
  .status-strip,
  .availability-layout,
  .availability-grid,
  .inspector,
  .settings-grid,
  .user-row,
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .field select,
  .field input,
  .field textarea,
  .song-form input,
  .song-combobox input,
  .song-library-search,
  .service-song-row select,
  .participant-badge,
  .primary-button,
  .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .field select,
  .field input,
  .field textarea,
  .song-form input,
  .song-combobox input,
  .song-library-search,
  .service-song-row select {
    min-height: 44px;
    font-size: 16px;
  }

  .settings-form,
  .song-form,
  .song-edit-form,
  .service-song-row,
  .song-modal-detail,
  .calendar-form {
    grid-template-columns: 1fr;
  }

  .mail-server-section {
    grid-template-columns: 1fr;
  }

  .table-wrap,
  .user-table-wrap,
  .overview-wrap {
    margin-inline: -16px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .planning-table {
    min-width: 980px;
  }

  .planning-table th,
  .planning-table td,
  .overview-table th,
  .overview-table td {
    padding: 7px 8px;
  }

  .calendar-nav {
    justify-content: stretch;
  }

  .calendar-nav .secondary-button {
    width: auto;
    flex: 1 1 48px;
  }

  .calendar-nav span {
    order: -1;
    width: 100%;
    min-width: 0;
  }

  .modal-backdrop {
    align-items: stretch;
    padding: 12px;
    overflow-y: auto;
  }

  .user-modal,
  .compact-modal {
    width: 100%;
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }

  .modal-actions,
  .user-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-spacer {
    display: none;
  }

  .planning-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .planning-mail-inline,
  .planning-text-panel {
    max-width: none;
  }

  .mail-recipient-option {
    min-height: 36px;
    font-size: 14px;
  }

  .planning-text-panel {
    margin-inline: -2px;
  }

  .planning-text-panel textarea {
    min-height: 46vh;
    font-size: 15px;
    line-height: 1.5;
  }

  .planning-text-panel .inline-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .planning-text-date-list {
    display: grid;
    grid-template-columns: 1fr;
    max-height: 34vh;
  }

  .planning-text-date-option {
    min-height: 44px;
  }

  .user-sortbar,
  .user-import-panel,
  .data-management-period,
  .data-management-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .user-sortbar label,
  .user-import-panel div {
    min-width: 0;
  }

  .user-row {
    gap: 8px;
    padding: 12px;
  }

  .song-card header,
  .song-file-row,
  .song-actions,
  .settings-item,
  .settings-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .overview-wrap {
    display: none;
  }

  .overview-mobile-list {
    display: grid;
  }

  .overview-actions {
    margin-bottom: 10px;
  }

  .overview-assignment span {
    white-space: normal;
  }

  .overview-song-button {
    white-space: normal;
  }

  .manual-panel {
    padding: 10px;
  }

  .manual-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .manual-frame {
    height: 68vh;
    min-height: 430px;
  }

  .service-need-row {
    grid-template-columns: 1fr;
  }

  .service-need-toggles {
    justify-content: flex-start;
  }

  .afternoon-calendar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .login-screen {
    padding: 14px;
  }

  .login-card {
    padding: 18px;
    gap: 14px;
  }

  .sidebar {
    padding-inline: 10px;
  }

  .workspace {
    padding: 16px 10px 28px;
  }

  .table-wrap,
  .user-table-wrap,
  .overview-wrap {
    margin-inline: -10px;
  }

  .status-strip > div,
  .panel,
  .legend-panel,
  .settings-panel,
  .child-song-panel {
    padding: 12px;
  }

  .planning-table {
    min-width: 920px;
  }

  .availability-card {
    padding: 10px;
  }

  .availability-skill-row {
    grid-template-columns: 1fr;
  }

  .availability-options {
    grid-template-columns: repeat(4, minmax(44px, 1fr));
  }

  .overview-mobile-card {
    padding: 12px;
  }
}

.active-session-list,
.audit-log-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.audit-log-list {
  gap: 4px;
  max-height: 180px;
}

.active-session-row,
.audit-log-row {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #dce5df;
  border-radius: 6px;
  background: #fbfdfb;
}

.audit-log-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 5px 8px;
  align-items: center;
}

.active-session-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.active-session-row strong,
.active-session-row small,
.audit-log-row strong,
.audit-log-row span,
.audit-log-row small {
  display: block;
}

.active-session-row small,
.audit-log-row span,
.audit-log-row small {
  color: #607168;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.compact-log-summary {
  margin: 0 0 2px;
  font-size: 12px;
}

.session-info[data-tone="error"] {
  color: #9a2c2c;
  font-weight: 700;
}

.session-info[data-tone="success"] {
  color: #23613f;
  font-weight: 700;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  body {
    min-height: auto;
    overflow: visible;
    background: white;
    color: #111;
  }

  .login-screen,
  .app-shell,
  .modal-backdrop {
    display: none !important;
  }

  .print-export {
    display: block !important;
  }

  .print-page {
    font-family: Arial, sans-serif;
    color: #111;
    break-after: page;
    page-break-after: always;
  }

  .print-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .print-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 14px;
    border-bottom: 2px solid #1f8a5b;
    padding-bottom: 10px;
  }

  .print-header h1 {
    font-size: 22px;
    margin: 0 0 4px;
  }

  .print-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .print-logo {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
  }

  .print-header p,
  .print-meta {
    color: #555;
    font-size: 11px;
    line-height: 1.4;
  }

  .print-meta strong,
  .print-meta span {
    display: block;
  }

  .print-meta strong {
    color: #122520;
    font-size: 14px;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 10px;
  }

  .print-table th,
  .print-table td {
    border: 1px solid #cfd8d3;
    padding: 5px 6px;
    vertical-align: top;
    text-align: left;
  }

  .print-table th {
    position: static;
    background: #edf5f1;
    color: #243b33;
    font-weight: 800;
    text-transform: none;
  }

  .print-service {
    width: 18%;
  }

  .print-service strong,
  .print-service span,
  .print-assignment span {
    display: block;
  }

  .print-service span,
  .print-muted {
    color: #666;
  }

  .print-assignment span + span {
    margin-top: 3px;
  }

  .print-open {
    color: #9a5b00;
    font-weight: 700;
  }

  .print-not-needed {
    background: #f3f5f3;
    color: #777;
  }
}
