:root {
  --red: #C8102E;
  --red-dark: #8B0A1E;
  --red-soft: #FCE8E6;
  --black: #0a0a0a;
  --charcoal: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --bg: #f4f4f5;
  --card: #fff;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.1);
  --font-main: 'Heebo', sans-serif;
  --green: #0d652d;
  --green-soft: #e6f4ea;
  --orange: #9a5500; /* ≥4.5:1 on --orange-soft */
  --orange-soft: #fef7e0;
  --red-status: #c5221f;
  --red-status-soft: #fce8e6;
  --focus-ring: 0 0 0 3px rgba(200, 16, 46, 0.85);
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
  min-height: 100vh;
}

/* ===== Unified admin type scale (Heebo) ===== */
h1, h2, h3, h4,
.page-head h1,
.page-head__text h1,
.results-heading,
.results-panel h2,
.results-panel h3,
.empty-title,
.result-card__title,
.free-date-item__date {
  font-family: var(--font-main);
  color: var(--black);
  letter-spacing: -0.01em;
}

.page-head h1,
.page-head__text h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 6px;
}

.page-head .subtitle {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

h2.results-heading,
.results-panel h2.results-heading {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 16px;
}

.results-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--charcoal);
  margin: 20px 0 10px;
}

.results-panel > div:first-of-type h3 {
  margin-top: 0;
}

.empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--charcoal);
  margin: 0 0 8px;
}

.result-card__title {
  /* size from unified type scale */
}

.free-date-item__date {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}


.hidden, [hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  right: 16px;
  z-index: 10000;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 32px;
}
main.container {
  padding-top: 8px;
}

.view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Topbar */
/* ===== Topbar + brand — exact template from teum (דפי תיאום הפקה) ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--black);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #fff;
  text-decoration: none;
  /* inherit page RTL: mark first (far right), title to its left */
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  direction: ltr; /* rocking → ISRAEL left-to-right */
}

.brand-rocking,
.brand__name {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: #fff;
}

.brand-badge,
.brand__badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--red);
  color: #fff;
  padding: 3px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  line-height: 1;
}

.brand-sub {
  opacity: 0.7;
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  margin-right: 6px; /* space toward the logo mark on the right */
  white-space: nowrap;
}

.brand-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.topbar-actions,
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Ghost on dark topbar (teum) — override light-page ghost */
.topbar .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  min-height: 40px;
  padding: 8px 14px;
}
.topbar .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.topbar .btn-primary {
  min-height: 40px;
  padding: 8px 14px;
  font-weight: 700;
}
.topbar .save-status {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  font-weight: 500;
}

.brand-footer .brand-rocking,
.brand-footer .brand__name {
  color: var(--black);
}
.footer .brand-sub {
  display: none;
}

@media (max-width: 520px) {
  .brand-sub {
    display: none;
  }
  .topbar {
    padding: 12px 14px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  min-height: 44px;
}

.btn:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.btn-primary {
  background-color: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--red-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--black);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background-color: var(--bg);
}

.btn-ghost {
  background-color: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--black);
  background-color: rgba(0,0,0,0.05);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-login {
  background-color: var(--red);
  color: #fff;
  width: 100%;
  margin-top: 16px;
  min-height: 48px;
}

.btn-login:hover {
  background-color: var(--red-dark);
}

/* Cards & Panels */
.card, .panel {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-head__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
}

.panel__subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

.panel__hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

.panel__range {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* Forms */
.field {
  margin-bottom: 16px;
}

.field-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.field-row .field {
  flex: 1;
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.input, select.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  background-color: #fff;
  color: var(--black);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}

.input:focus {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  border-color: var(--red);
  box-shadow: var(--focus-ring);
}

.input[readonly] {
  background-color: var(--bg);
  color: var(--charcoal);
  cursor: default;
  border-color: var(--line);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.form-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
}

.form-error.active {
  display: block;
}

.hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip {
  background-color: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

.chip-remove {
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  background: none;
  border: none;
  padding: 4px;
  min-height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.chip-remove:hover {
  color: var(--red);
}

.chip-remove:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.chips-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px;
  min-width: 120px;
  background: transparent;
}
.chips-input .input {
  flex: 1;
  min-width: 160px;
}
.chips-input .btn {
  flex-shrink: 0;
}

/* Grid & Tables */
.grid-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.grid-summary {
  font-size: 0.9rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.table, .grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}

.table th, .grid-table th {
  background-color: var(--bg);
  padding: 12px;
  text-align: right;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td, .grid-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tr:last-child td, .grid-table tr:last-child td {
  border-bottom: none;
}

.grid-row__date {
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
}

.grid-row__dow {
  color: var(--muted);
  font-size: 0.85rem;
}

.grid-row__day {
  font-weight: 600;
}

.grid-row__cell {
  vertical-align: middle;
}

.grid-row__cell-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.grid-row__others {
  font-size: 0.85rem;
  color: var(--charcoal);
  min-width: 120px;
}

.th-actions, 
.coord-title-link {
  font-weight: 700;
  color: var(--text, #1a1a1a);
  text-decoration: none;
  border-radius: 4px;
}
.coord-title-link:hover {
  color: var(--accent, #c41e3a);
  text-decoration: underline;
}
.coord-title-link:focus-visible {
  outline: 2px solid var(--accent, #c41e3a);
  outline-offset: 2px;
}

/* .td-actions sized with row-actions below */


/* Slots & Swatches */
.slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 48px;
  width: 100%;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
  position: relative;
}

.slot:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.slot-available {
  background-color: var(--green-soft);
  color: var(--green);
}

.slot-available:hover {
  background-color: #d4ebda;
}

.slot-maybe {
  background-color: var(--orange-soft);
  color: var(--orange);
}

.slot-maybe:hover {
  background-color: #fdf0c8;
}

.slot-unavailable {
  background-color: var(--red-status-soft);
  color: var(--red-status);
}

.slot-unavailable:hover {
  background-color: #f9d8d5;
}

.slot-unset {
  background-color: var(--bg);
  color: var(--muted);
  border: 1px dashed var(--line);
}

.slot-unset:hover {
  border-color: var(--muted);
}

.slot-priority {
  border-color: #f9ab00;
  box-shadow: 0 0 0 2px rgba(249, 171, 0, 0.25);
}

.page-share .slot-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-share .slot-segments {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}

.page-share .slot-seg {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  min-height: 40px;
  padding: 8px 4px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-inline-end: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.page-share .slot-seg:last-child {
  border-inline-end: none;
}

.page-share .slot-seg:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: -2px;
}

.page-share .slot-seg.is-selected.slot-available {
  background: var(--green-soft);
  color: var(--green);
}

.page-share .slot-seg.is-selected.slot-maybe {
  background: var(--orange-soft);
  color: var(--orange);
}

.page-share .slot-seg.is-selected.slot-unavailable {
  background: var(--red-status-soft);
  color: var(--red-status);
}

.page-share .slot-group .slot-priority {
  display: block;
  margin-top: 4px;
  align-self: flex-start;
  width: fit-content;
}

@media (max-width: 768px) {
  .page-share .slot-seg {
    min-height: 44px;
    font-size: 0.85rem;
    padding: 10px 6px;
  }
}
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.swatch-available { background-color: var(--green); }
.swatch-maybe { background-color: #f9ab00; }
.swatch-unavailable { background-color: var(--red-status); }
.swatch-unset { background-color: var(--line); }

/* People List */
.people-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.person-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: right;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-main);
  font-size: 0.95rem;
  gap: 12px;
}

.person-btn:hover {
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.1);
}

.person-btn:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.people-filter {
  margin-bottom: 16px;
}

.people-empty, .others-empty {
  text-align: center;
  padding: 32px;
  color: var(--muted);
}

.coord-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Share View */
.page-share {
  padding: 24px 0;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.share-row:last-child {
  border-bottom: none;
}

.other-person {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.other-person__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.other-person__name {
  font-weight: 700;
  font-size: 1rem;
}

.other-person__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.other-person__days {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.other-day {
  background-color: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--charcoal);
}

.howto {
  background-color: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.howto__list {
  margin: 8px 0 0;
  padding-right: 20px;
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.6;
}

.others-by-day {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.other-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  background-color: var(--bg);
  border: 1px solid var(--line);
  color: var(--charcoal);
}

.other-chip--available {
  background-color: var(--green-soft);
  border-color: #c8e6c9;
  color: var(--green);
}

.other-chip--maybe {
  background-color: var(--orange-soft);
  border-color: #fde293;
  color: var(--orange);
}

.other-chip--unavailable {
  background-color: var(--red-status-soft);
  border-color: #f5c6c3;
  color: var(--red-status);
}

.other-chip--unset {
  background-color: var(--bg);
  border-color: var(--line);
  color: var(--muted);
}

/* Login Page */
.login {
  background-color: var(--black);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background-color: #161616;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid #2a2a2a;
}

.login-subtitle {
  color: #a0a0a0;
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.login-error {
  color: var(--red);
  background-color: rgba(200, 16, 46, 0.1);
  padding: 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.login-error.active {
  display: block;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.login .input {
  background-color: #0a0a0a;
  border-color: #333;
  color: #fff;
}

.login .input:focus {
  border-color: var(--red);
}

.login label {
  color: #ccc;
}

/* Results */
.results-panel {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.results-section {
  margin-bottom: 24px;
}

.results-section:last-child {
  margin-bottom: 0;
}

.result-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.result-card:last-child {
  margin-bottom: 0;
}

.result-card--perfect {
  border-color: var(--green);
  background-color: #f7fcf8;
}

.result-card--priority {
  border-color: #f9ab00;
  background-color: #fffcf5;
}

.result-card--conflict {
  border-color: var(--red-status);
  background-color: #fef7f6;
}

.result-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.result-card__missing {
  color: var(--red);
  font-weight: 600;
}

/* Notes & Times */
.note-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.note-times {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.note-times .input {
  width: auto;
  min-width: 120px;
}

/* Standing Rules */
.standing-rule-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.standing-rule-form .field {
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}

.standing-rule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background-color: var(--card);
}

.standing-rule-item:last-child {
  margin-bottom: 0;
}

/* Utilities */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--bg);
  color: var(--charcoal);
}

.badge-all-free {
  background-color: var(--green-soft);
  color: var(--green);
}

.badge-priority {
  background-color: var(--orange-soft);
  color: var(--orange);
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 700;
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.empty-title {
  /* size from unified type scale */
}

.empty-text {
  font-size: 0.9rem;
}

.day-note {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--black);
  background-color: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.day-note:focus {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  border-color: var(--red);
  box-shadow: var(--focus-ring);
}

.save-status, #save-status {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}

.save-status.saving, #save-status.saving {
  color: var(--orange);
}

.save-status.saved, #save-status.saved {
  color: var(--green);
}

.save-status.error, #save-status.error {
  color: var(--red);
}

.autosave-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--black);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast:not(.show) {
  opacity: 0;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.footer {
  margin-top: auto;
  padding: 28px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer .brand-footer {
  justify-content: center;
  flex-wrap: nowrap;
}

.footer__note {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.rules-body {
  padding: 16px;
  background-color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--charcoal);
}

/* Admin Matrix */
.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 600px;
}

.matrix-table th {
  background-color: var(--bg);
  padding: 12px;
  text-align: right;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.matrix-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: center;
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table .slot {
  width: 100%;
  min-width: 80px;
}

.row-priority {
  background-color: #fffcf5;
}

/* ============ NEW: Admin List ============ */
.status-light {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  position: relative;
}

.status-light--green {
  background-color: var(--green);
}

.status-light--orange {
  background-color: #f9ab00;
}

.status-light--red {
  background-color: var(--red-status);
}

.status-light::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  color: #fff;
  font-weight: 700;
  content: "";
}

.status-light--green::after {
  content: "✓";
}

.status-light--orange::after {
  content: "!";
}

.status-light--red::after {
  content: "●";
  font-size: 8px;
}

.list-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.list-result-card {
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.list-pending {
  background-color: var(--orange-soft);
  border-color: #fde293;
  color: var(--orange);
  font-weight: 600;
}

.coord-detail {
  padding: 16px;
  background-color: var(--bg);
  border-radius: var(--radius-sm);
  margin-top: 12px;
  border: 1px solid var(--line);
}

.coord-detail[hidden] {
  display: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--bg);
  color: var(--charcoal);
  border: 1px solid var(--line);
  min-height: 32px;
}

.status-pill--active {
  background-color: var(--green-soft);
  border-color: #c8e6c9;
  color: var(--green);
}

.status-pill--done {
  background-color: var(--orange-soft);
  border-color: #fde293;
  color: var(--orange);
}

.status-pill--archived {
  background-color: var(--bg);
  border-color: var(--line);
  color: var(--muted);
}

/* ============ NEW: Share recs bar & week nav ============ */
.recs-bar {
  position: sticky;
  top: 60px;
  z-index: 90;
  background-color: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: 0;
}

.recs-bar__title,
.recs-bar__label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--charcoal);
  white-space: nowrap;
}

.recs-chip,
.recommendation-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--green-soft);
  color: var(--green);
  border: 1px solid #c8e6c9;
  cursor: pointer;
  min-height: 36px;
  transition: background-color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.recs-chip:hover,
.recommendation-chip:hover {
  background-color: #d4ebda;
}

.recs-chip:focus-visible,
.recommendation-chip:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.week-nav {
  position: sticky;
  top: 60px;
  z-index: 89;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.week-nav__btn,
.week-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--card);
  color: var(--charcoal);
  border: 1px solid var(--line);
  cursor: pointer;
  min-height: 44px;
  transition: background-color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.week-nav__btn:hover,
.week-nav-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.week-nav__btn:focus-visible,
.week-nav-btn:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.week-block,
.week-section {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--card);
  box-shadow: var(--shadow);
}

.week-block__head,
.week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background-color: var(--bg);
  border: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 52px;
  font-family: var(--font-main);
  text-align: right;
  color: inherit;
}

.week-block__head:focus-visible,
.week-header:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  box-shadow: inset 0 0 0 3px rgba(200, 16, 46, 0.25);
}

.week-block__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
}

.week-block__range {
  font-size: 0.85rem;
  color: var(--muted);
}

.week-block--collapsed .week-block__body,
.week-block--collapsed .week-content,
.week-section--collapsed .week-block__body,
.week-section--collapsed .week-content {
  display: none;
}

.week-block__body,
.week-content {
  padding: 16px 20px;
}

/* Standing rules table */
.standing-rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.standing-rules-table th {
  background-color: var(--bg);
  padding: 12px;
  text-align: right;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.standing-rules-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.standing-rules-table tr:last-child td {
  border-bottom: none;
}

.rules-panel {
  border: 2px solid var(--red);
  background-color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.rules-panel .panel__title {
  color: var(--red);
}

/* Flash highlight for jumped date row */
.grid-row--flash,
.row-highlight {
  animation: flash-highlight 1.5s ease-out;
}

@keyframes flash-highlight {
  0% {
    background-color: rgba(200, 16, 46, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

/* ============ A11Y & Motion ============ */
:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .field-row {
    flex-direction: column;
    gap: 0;
  }
  
  .field-row .field {
    margin-bottom: 16px;
  }
  
  .grid-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .panel {
    padding: 16px;
  }
  
  .login-card {
    padding: 24px;
  }
  
  .slot {
    font-size: 0.9rem;
    padding: 10px 12px;
    min-height: 44px;
  }
  
  .share-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .topbar-inner, .topbar__inner {
    height: 56px;
  }
  
  .grid-row__others {
    min-width: 100px;
  }
  
  .standing-rule-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .standing-rule-form .field {
    min-width: 100%;
  }
  
  .note-times {
    flex-direction: column;
    align-items: stretch;
  }
  
  .note-times .input {
    width: 100%;
  }

  .recs-bar {
    top: 56px;
    padding: 8px 12px;
  }

  .week-nav {
    top: 56px;
    padding: 8px 12px;
  }

  .week-block__head,
  .week-header {
    padding: 12px 16px;
  }

  .week-block__body,
  .week-content {
    padding: 12px 16px;
  }

  .rules-panel {
    padding: 16px;
  }

  .btn {
    min-height: 44px;
  }

  .chip {
    min-height: 44px;
  }

  .chip-remove {
    min-height: 44px;
    min-width: 44px;
  }

  .recs-chip,
  .recommendation-chip,
  .week-nav__btn,
  .week-nav-btn {
    min-height: 44px;
  }
}

/* --- mobile/share QA round3 --- */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .page-share .grid-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .page-share .grid-table,
  .page-share .grid-table tbody,
  .page-share .grid-table tr,
  .page-share .grid-table td,
  .page-share .grid-table th {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .page-share .grid-table tr.grid-row {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }

  .page-share .grid-table td,
  .page-share .grid-table th {
    border: none;
    padding: 6px 0;
  }

  /* H7: single label source — .cell-a11y-label is visible on mobile; suppress ::before */
  .page-share .grid-row__cell:nth-child(2)::before,
  .page-share .grid-row__cell:nth-child(3)::before,
  .page-share .grid-row__others::before,
  .page-share .grid-row__cell-note::before {
    content: none;
    display: none;
  }

  .page-share .slot-seg {
    min-height: 44px;
  }

  .page-share .week-block__title {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.35;
    max-width: 100%;
  }

  .page-share .week-block__head {
    width: 100%;
    max-width: 100%;
  }

  .page-share .grid-table td,
  .page-share .grid-table th,
  .page-share .grid-table .grid-row__day,
  .page-share .grid-table .grid-row__others {
    width: 100% !important;
    max-width: 100%;
  }

  .page-share .card .table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-share .form-card input,
  .page-share .form-card select,
  .page-share .form-card textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }
}

/* Round4 direct polish */
.status-pill { display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px; font-size:0.8rem; font-weight:700; border:1px solid transparent; }
.status-pill--active { background:#e8f5e9; color:#1b5e20; border-color:#a5d6a7; }
.status-pill--done { background:#e3f2fd; color:#0d47a1; border-color:#90caf9; }
.status-pill--archived { background:#f5f5f5; color:#424242; border-color:#e0e0e0; }
.td-results { min-width:180px; vertical-align:top; }
.results-summary { font-size:0.85rem; }
.answer-line { font-weight:700; margin-bottom:6px; }
.summary-chips { display:flex; flex-wrap:wrap; gap:6px; }
.summary-chip { display:inline-block; padding:2px 8px; border-radius:6px; font-size:0.75rem; font-weight:600; }
.summary-chip--perfect { background:#e8f5e9; color:#1b5e20; }
.summary-chip--priority { background:#fff3cd; color:#7a4200; }
.summary-chip--almost { background:#e3f2fd; color:#1565c0; }
.summary-chip--conflict { background:#ffebee; color:#b71c1c; }
.response-wrapper { display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
.response-count { font-weight:600; }
.pending-names { font-size:0.8rem; color:#6b7280; }
.cell-a11y-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:768px) {
  .page-share .cell-a11y-label { position:static; width:auto; height:auto; margin:0 0 4px; clip:auto; overflow:visible; white-space:normal; display:block; font-size:0.75rem; font-weight:700; color:#6b7280; }
}


/* ========== Production polish Sep 26 2026 ========== */

/* Column widths — desktop only (≤768 stacks via earlier mobile rules) */
@media (min-width: 769px) {
  .page-share .grid-table .col-day,
  .page-share .grid-table th:nth-child(1),
  .page-share .grid-table td:nth-child(1),
  .page-share .grid-table .grid-row__day {
    width: 14%;
  }
  .page-share .grid-table .col-slot,
  .page-share .grid-table th:nth-child(2),
  .page-share .grid-table th:nth-child(3),
  .page-share .grid-table td:nth-child(2),
  .page-share .grid-table td:nth-child(3) {
    width: 18%;
  }
  .page-share .grid-table .col-others,
  .page-share .grid-table th:nth-child(4),
  .page-share .grid-table td:nth-child(4),
  .page-share .grid-table .grid-row__others {
    width: 22%;
  }
  .page-share .grid-table .col-note,
  .page-share .grid-table th:nth-child(5),
  .page-share .grid-table td:nth-child(5) {
    width: 28%;
  }
}

.page-share .grid-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fafafa;
  box-shadow: 0 1px 0 var(--line);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 10px 12px;
}

.page-share .grid-table .grid-row td,
.page-share .grid-table .grid-row th {
  padding: 10px 12px;
  vertical-align: top;
}

/* Week accordion header row inside table */
.week-head-row .week-head-cell {
  padding: 0 !important;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.week-head-row--collapsed .week-block__head {
  border-bottom: none;
}
.week-block__head:hover {
  background: #eeeef0;
}
.week-block__toggle {
  font-size: 1rem;
  color: var(--muted);
  min-width: 24px;
  text-align: center;
  margin-inline-start: auto;
}
.week-nav__btn--active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.week-nav__btn--active:hover {
  background: var(--red-dark);
  color: #fff;
  border-color: var(--red-dark);
}

/* Selects — match .input aesthetic */
select.input,
.standing-rule-form select,
.standing-rule-form__field select {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b6b' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  appearance: none;
  -webkit-appearance: none;
  color: var(--black);
  min-height: 44px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
select.input:focus,
.standing-rule-form select:focus {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  border-color: var(--red);
  box-shadow: var(--focus-ring);
}
.standing-rule-form__field {
  flex: 1;
  min-width: 140px;
}
.standing-rule-form__field label {
  display: block;
  margin-bottom: 6px;
}

/* Slot state borders for non-color-only status */
.slot-available { border-color: #a5d6a7; }
.slot-maybe { border-color: #fde293; }
.slot-unavailable { border-color: #f5c6c3; }
.slot-unset { border-style: dashed; }
.slot-priority {
  display: inline-block;
  margin-inline-start: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #fff3cd;
  color: #7a4200;
  border: 1px solid #e0a800;
}
.slot-priority--near-complete,
.slot-priority--priority {
  background: #fff3cd;
  color: #7a4200;
  border-color: #e0a800;
}
.slot-priority--perfect,
.slot-priority--all-available {
  background: #e8f5e9;
  color: #1b5e20;
  border-color: #a5d6a7;
}

/* Day note inputs — touch target ≥44px */
.day-note {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.85rem;
  min-height: 44px;
  background: #fff;
}
.day-note:focus {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  border-color: var(--red);
}
.note-times input[type="time"] {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.85rem;
  min-height: 44px;
  background: #fff;
}
.note-times input[type="time"]:focus {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  border-color: var(--red);
}
.note-times label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
}

/* Person picker polish */
.person-btn {
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.person-btn:active {
  transform: scale(0.99);
}

/* Chips remove comfort */
.chip {
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: #f7f7f8;
}
.chip-remove {
  background: rgba(0,0,0,0.06);
  color: var(--charcoal);
  border-radius: 50%;
}
.chip-remove:hover {
  background: var(--red-soft);
  color: var(--red);
}


/* Person remove chip — ≥44×44 touch target */
.chip-x {
  cursor: pointer;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  padding: 0;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.chip-x:hover {
  background: var(--red-soft);
  color: var(--red);
}
.chip-x:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

/* Admin row actions — main chips + meta text links */
.td-actions {
  text-align: right;
  width: 240px;
  min-width: 220px;
  vertical-align: middle;
}
.th-actions {
  width: 240px;
}
.row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.row-actions__main {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.row-actions__main .btn-sm {
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-sizing: border-box;
}
.row-actions__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
}
.row-actions__meta .btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
  vertical-align: middle;
}
.row-actions__meta .btn-text:hover {
  color: var(--black);
  background: rgba(0, 0, 0, 0.05);
}
.row-actions__meta .btn-text:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
}
.row-actions__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--line);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  padding: 0 1px;
}
.btn-danger {
  color: var(--red-status) !important;
}
.btn-danger:hover {
  background: var(--red-status-soft) !important;
  color: var(--red-status) !important;
}

/* Admin free-date cards in list */
.free-dates-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.free-date-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
}
.free-date-item--perfect {
  background: #f7fcf8;
  border-color: #a5d6a7;
}
.free-date-item--priority {
  background: #fffcf5;
  border-color: #ffe082;
}
.free-date-item__date {
  font-weight: 700;
  color: var(--black);
}
.free-date-item__slot {
  color: var(--muted);
  font-size: 0.8rem;
}
.free-date-item__badge {
  margin-inline-start: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #e8f5e9;
  color: #1b5e20;
}
.free-date-item--priority .free-date-item__badge {
  background: #fff3cd;
  color: #7a4200;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.summary-chip--perfect { background:#e8f5e9; color:#1b5e20; border-color:#a5d6a7; }
.summary-chip--priority { background:#fff3cd; color:#7a4200; border-color:#e0a800; }
.summary-chip--almost { background:#e3f2fd; color:#1565c0; border-color:#90caf9; }
.summary-chip--conflict { background:#ffebee; color:#b71c1c; border-color:#ef9a9a; }

.answer-line {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}

/* Form results panel cards */
.result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.result-card--perfect {
  border-color: #a5d6a7;
  background: #f7fcf8;
  border-inline-start: 4px solid var(--green);
}
.result-card--priority {
  border-color: #ffe082;
  background: #fffcf5;
  border-inline-start: 4px solid #f9ab00;
}
.result-card--almost {
  border-color: #90caf9;
  background: #f5f9ff;
  border-inline-start: 4px solid #1565c0;
}
.result-card--conflict {
  border-color: #ef9a9a;
  background: #fef7f6;
  border-inline-start: 4px solid var(--red-status);
}
.result-card__title {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--black);
}
.result-card__meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.result-card__list {
  margin: 0;
  padding-right: 18px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
/* results headings: unified type scale above */

/* Status light + text not color-only */
.status-light {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.response-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.response-count {
  font-weight: 600;
  font-size: 0.85rem;
}
.pending-names {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 220px;
  line-height: 1.35;
}

/* Recs chips variants */
.recs-chip--perfect {
  background: #e8f5e9;
  color: #1b5e20;
  border-color: #a5d6a7;
}
.recs-chip--priority {
  background: #fff3cd;
  color: #7a4200;
  border-color: #e0a800;
}

/* Admin table denser but comfortable */
#viewList .table th {
  font-size: 0.8rem;
  padding: 10px 12px;
}
#viewList .table td {
  padding: 12px;
  vertical-align: top;
}
#viewList .td-results {
  min-width: 220px;
  max-width: 320px;
}

/* Native date inputs */
input[type="date"].input,
input[type="time"].input {
  min-height: 44px;
}

@media (max-width: 768px) {
  .page-share .grid-table .week-head-row,
  .page-share .grid-table .week-head-cell {
    display: block;
    width: 100% !important;
  }
  .week-block__head {
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    width: 100%;
  }

  /* C2 — admin list: card stack so actions aren't crushed/covered */
  #viewList .card {
    overflow: visible;
  }
  #viewList .table,
  #viewList .table tbody,
  #viewList .table tr,
  #viewList .table td,
  #viewList .table th {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  #viewList .table {
    table-layout: auto;
  }
  #viewList .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  #viewList .table tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }
  #viewList .table td {
    border: none;
    padding: 8px 0;
    width: 100% !important;
    max-width: 100%;
  }
  #viewList .table td:nth-child(1)::before {
    content: "הופעה / תיאום";
  }
  #viewList .table td:nth-child(2)::before {
    content: "תקופה";
  }
  #viewList .table td:nth-child(3)::before {
    content: "משתתפים";
  }
  #viewList .table td:nth-child(4)::before {
    content: "סטטוס";
  }
  #viewList .table td:nth-child(5)::before {
    content: "תוצאות";
  }
  #viewList .table td:nth-child(1)::before,
  #viewList .table td:nth-child(2)::before,
  #viewList .table td:nth-child(3)::before,
  #viewList .table td:nth-child(4)::before,
  #viewList .table td:nth-child(5)::before {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 4px;
  }
  #viewList .td-results {
    min-width: 0;
    max-width: 100%;
  }
  #viewList .td-actions {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 12px;
    position: relative;
    z-index: 2;
    width: auto;
    min-width: 0;
  }
  .row-actions {
    align-items: stretch;
    gap: 10px;
  }
  .row-actions__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .row-actions__main .btn-sm {
    min-height: 44px;
    height: 44px;
    width: 100%;
    justify-content: center;
  }
  .row-actions__main .btn-sm:only-child {
    grid-column: 1 / -1;
  }
  .row-actions__meta {
    justify-content: space-between;
    gap: 4px;
    padding-top: 2px;
  }
  .row-actions__meta .btn-text {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .free-dates-list {
    width: 100%;
  }
  .free-date-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .free-date-item__badge {
    margin-inline-start: 0;
  }
}

/* Page head + list filter toolbar */
.page-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0 24px;
  padding-top: 8px;
}
.page-head__text h1 {
  /* size from unified type scale */
}
.page-head__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.page-head__cta {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 44px;
  padding-inline: 20px;
}
.list-filters {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.list-filter {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--charcoal);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}
.list-filter:hover {
  color: var(--red);
  background: var(--red-soft);
}
.list-filter.is-active {
  background: var(--red);
  color: #fff;
}
.list-filter:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}
@media (max-width: 640px) {
  .page-head__toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .list-filters {
    width: 100%;
    justify-content: stretch;
  }
  .list-filter {
    flex: 1 1 auto;
    text-align: center;
  }
  .page-head__cta {
    width: 100%;
  }
}


/* ========== Share QA polish Sep 26 2026 (share-only) ========== */
.page-share .week-nav__btn,
.page-share .week-nav-btn {
  min-height: 44px;
}
.page-share .day-note {
  min-height: 44px;
}
.page-share .note-times input[type="time"] {
  min-height: 44px;
}
.page-share .slot-seg {
  min-height: 44px;
}
.page-share .slot-maybe,
.page-share .other-chip--maybe {
  color: #9a5500; /* ≥4.5:1 on soft yellow */
}
.page-share .slot-priority,
.page-share .slot-priority--near-complete,
.page-share .slot-priority--priority {
  color: #7a4200; /* ≥4.5:1 on #fff3cd */
  background: #fff3cd;
}
.page-share .slot-priority--perfect,
.page-share .slot-priority--all-available {
  color: #1b5e20; /* ≥4.5:1 on #e8f5e9 */
  background: #e8f5e9;
}
.page-share .slot-available,
.page-share .other-chip--available {
  color: #0d652d; /* ≥4.5:1 on green-soft */
}
@media (max-width: 768px) {
  .page-share .grid-table col.col-day,
  .page-share .grid-table col.col-slot,
  .page-share .grid-table col.col-others,
  .page-share .grid-table col.col-note {
    width: auto !important;
  }
  .page-share .slot-seg {
    min-height: 48px;
  }
  .page-share .week-block__head {
    min-height: 48px;
  }
}


/* Scale: people picker density + others summary for large groups */
.people-count {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.people-list--dense {
  gap: 6px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding-inline-end: 4px;
  -webkit-overflow-scrolling: touch;
}
.people-list--dense .person-btn {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 0.9rem;
}
.others-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.others-line__label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--muted);
  flex-shrink: 0;
}
.others-line--summary {
  align-items: flex-start;
}
.others-counts {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.others-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--charcoal);
}
.others-count--available {
  background: var(--green-soft);
  border-color: #c8e6c9;
  color: var(--green);
}
.others-count--maybe {
  background: var(--orange-soft);
  border-color: #fde293;
  color: var(--orange);
}
.others-count--unavailable {
  background: var(--red-status-soft);
  border-color: #f5c6c3;
  color: var(--red-status);
}
.others-count--unset {
  color: var(--muted);
}
.others-details {
  width: 100%;
  margin: 0;
}
.others-details__summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.others-details__summary::-webkit-details-marker { display: none; }
.others-details__summary:hover { color: var(--black); }
.others-details__summary:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  border-radius: 4px;
}
.others-details__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.other-chip--compact {
  padding: 2px 8px;
  font-size: 0.75rem;
  min-width: 2rem;
  justify-content: center;
}
.grid-row__others {
  max-width: 280px;
}
@media (max-width: 768px) {
  .grid-row__others {
    max-width: none;
  }
  .people-list--dense {
    max-height: min(55vh, 360px);
  }
}

.panel--standing {
  background: var(--orange-soft);
  border: 1px solid #f0d9a8;
  box-shadow: none;
}
.rules-details {
  border: none;
  margin: 0;
}
.rules-details__summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  padding: 2px 2px 4px;
  border-radius: 8px;
}
.rules-details__summary::-webkit-details-marker { display: none; }
.rules-details__summary:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  border-radius: 8px;
}
.rules-details__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rules-details__title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.rules-details__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--orange);
}
.rules-details__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f0d9a8;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.rules-details__chev {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #f0d9a8;
  position: relative;
}
.rules-details__chev::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.15s ease;
}
.rules-details[open] .rules-details__chev::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}
.rules-details__desc {
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--charcoal);
  font-weight: 500;
  max-width: 52rem;
}
.rules-details__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 2px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8c98a;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 700;
}
.rules-details[open] .rules-details__cta {
  display: none;
}
.rules-details[open] .rules-details__desc {
  margin-bottom: 4px;
}
.panel--standing .standing-rule-form,
.panel--standing .standing-rules-wrap {
  margin-top: 12px;
}
.recs-chip--almost {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #90caf9;
}

.btn.is-confirming,
.btn-text.is-confirming {
  background: var(--red-status-soft) !important;
  color: var(--red-status) !important;
  border-color: #f5c6c3 !important;
  font-weight: 700;
}
.row-actions__meta .btn-text.is-confirming {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  line-height: 1.2;
  min-height: 28px;
}

/* REC_BAR_COMPACT_2026 */
.recs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.recs-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  width: auto;
  max-width: none;
}

.recs-more-btn:hover {
  color: #1d4ed8;
}

.recs-more-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .recs-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
  }

  .recs-chip,
  .recs-more-btn {
    flex-shrink: 0;
    width: auto;
    max-width: none;
    display: inline-flex;
    white-space: nowrap;
  }

  .recs-chip {
    padding: 6px 12px;
    font-size: 0.8125rem;
  }

  .recs-bar__label {
    white-space: normal;
    flex: 0 0 100%;
  }
}

/* === rehearsal targets (0006) === */
.field-row--targets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.field--checkbox {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--charcoal);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #c8102e;
  flex-shrink: 0;
}

#rehearsalTargetsHint {
  margin-top: -8px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .field-row--targets {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === share targets artist UX === */
.share-targets {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e4e4e4);
  border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06));
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: inherit;
}

.share-targets__line {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--black);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
}

.share-targets__line::before {
  content: none;
  display: none;
}

.share-targets__alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-targets__alerts:empty {
  display: none;
}

.share-targets__alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  max-width: 100%;
}

.share-targets__alert--warn {
  background: var(--orange-soft, #fef7e0);
  color: var(--orange, #9a5500);
  border: 1px solid #f0d9a8;
}

.share-targets__alert--warn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange, #9a5500);
  flex-shrink: 0;
  margin-top: 0.35em;
}

.share-targets__alert--info {
  background: var(--green-soft, #e6f4ea);
  color: var(--green, #0d652d);
  border: 1px solid #c8e6c9;
}

.share-targets__alert--info::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green, #0d652d);
  flex-shrink: 0;
  margin-top: 0.35em;
}

.share-targets[hidden] {
  display: none !important;
}

.page-share .share-targets__line {
  color: var(--black);
}

.page-share .share-targets__alert--warn {
  color: var(--orange, #9a5500);
}

.page-share .share-targets__alert--info {
  color: var(--green, #0d652d);
}

@media (max-width: 480px) {
  .share-targets {
    padding: 10px 12px;
    gap: 8px;
  }

  .share-targets__line {
    max-width: 100%;
    padding: 0;
    font-size: 1.05rem;
  }

  .share-targets__alert {
    padding: 7px 10px;
    font-size: 0.78125rem;
  }
}

/* === compact admin results panel === */
.results-panel{padding:16px 18px}
.results-section{margin:0 0 8px;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.results-section[hidden]{display:none}
.results-section__summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:10px 14px;font-weight:700;user-select:none;min-height:44px}
.results-section__summary::-webkit-details-marker{display:none}
.results-section__summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .15s ease;flex-shrink:0}
details[open]>.results-section__summary::after{transform:rotate(-135deg)}
.results-section__title{flex:1;font-size:.95rem;color:var(--charcoal)}
.results-section__count{display:inline-flex;align-items:center;justify-content:center;min-width:1.75rem;padding:2px 8px;border-radius:999px;font-size:.8rem;font-weight:800;background:#f0f0f0;color:var(--charcoal)}
.results-section--perfect{border-inline-start:4px solid green}
.results-section--priority{border-inline-start:4px solid #f9ab00}
.results-section--almost{border-inline-start:4px solid #1565c0}
.results-section--conflict{border-inline-start:4px solid var(--red-status)}
.results-section__body{padding:8px 12px 12px}
.result-chip-list{display:flex;flex-wrap:wrap;gap:6px 8px;margin:0;padding:0;list-style:none}
.result-chip{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;padding:6px 10px;border-radius:8px;border:1px solid var(--line);background:#fafafa;font-size:.8rem;line-height:1.35;max-width:100%;text-align:start;cursor:default}
.result-chip--perfect{background:#e8f5e9;border-color:#c8e6c9}
.result-chip--priority{background:#fff8e1;border-color:#ffe082}
.result-chip--almost{background:#e3f2fd;border-color:#bbdefb}
.result-chip--conflict{background:#ffebee;border-color:#ffcdd2}
.result-chip__primary{font-weight:700;color:var(--charcoal)}
.result-chip__secondary{font-weight:500;font-size:.75rem;color:var(--muted);max-width:280px}
.result-show-more{margin-top:8px;font-size:.85rem;font-weight:700;padding:6px 10px;min-height:36px}
@media (max-width:480px){
.result-chip{width:100%}
}

/* === rule-delete confirm + admin share-row buttons === */
.confirm-dialog[hidden] { display: none !important; }
.confirm-dialog:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.confirm-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.confirm-dialog__panel {
  position: relative;
  z-index: 1;
  background: var(--card, #fff);
  color: var(--charcoal, #1a1a1a);
  border-radius: 12px;
  padding: 20px 22px;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  direction: rtl;
  text-align: right;
}
.confirm-dialog__title, #confirm-dialog-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
}
#confirm-dialog-msg, .confirm-dialog__msg {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.confirm-dialog__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.confirm-dialog .btn-danger,
.confirm-dialog .btn-secondary {
  min-height: 44px;
  height: 44px;
  padding: 10px 16px;
  box-sizing: border-box;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.confirm-dialog .btn-danger {
  background: #c62828;
  color: #fff !important;
  border: 1px solid #b71c1c;
  font-weight: 700;
}
.confirm-dialog .btn-danger:hover {
  background: #b71c1c;
  color: #fff !important;
}
.confirm-dialog .btn-secondary {
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #b0b0b0;
  font-weight: 700;
}
.confirm-dialog .btn-secondary:hover {
  background: #f2f2f2;
  color: #1a1a1a;
  border-color: #8a8a8a;
}
#shareSection .share-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; border-bottom: none; }
#shareSection .share-row .input { flex: 1 1 200px; min-width: 140px; }
#shareSection .share-row .btn,
#shareSection .share-row a.btn {
  white-space: nowrap;
  flex: 0 0 auto;
  min-height: 44px;
  height: 44px;
  padding: 0 16px;
  box-sizing: border-box;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
