:root {
  color-scheme: light;
  --bg: #eef1f5;
  --surface: #ffffff;
  --text: #18202a;
  --muted: #667085;
  --line: #dfe4ea;
  --accent: #2557d6;
  --accent-soft: #e9efff;
  --success: #16784a;
  --success-soft: #eaf8f1;
  --warning: #a45f00;
  --warning-soft: #fff3dc;
  --danger: #c62828;
  --danger-dark: #9f1f1f;
  --danger-soft: #fff0f0;
  --foreign: #fff1a8;
  --shadow: 0 14px 40px rgba(20, 32, 50, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.hidden { display: none !important; }

.app { width: min(980px, calc(100% - 28px)); margin: 0 auto; padding: 0 0 52px; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 14px 0; background: rgba(238, 241, 245, 0.91); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: inherit; font-weight: 850; letter-spacing: -0.02em; cursor: pointer; text-align: left; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--text); color: white; font-size: 18px; }
.tabs { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tab { border: 0; border-radius: 9px; padding: 8px 12px; background: transparent; color: var(--muted); cursor: pointer; }
.tab.active { background: var(--accent-soft); color: var(--accent); font-weight: 750; }
.sync-badge { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.sync-badge[data-state="saving"] { color: var(--warning); background: var(--warning-soft); }
.sync-badge[data-state="saved"] { color: var(--success); background: var(--success-soft); }
.sync-badge[data-state="error"] { color: var(--danger); background: var(--danger-soft); }

.hero { padding: 30px 0 20px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .detail-title { margin-bottom: 8px; font-size: clamp(31px, 6vw, 52px); line-height: 1; letter-spacing: -0.045em; }
.subtitle { margin-bottom: 0; color: var(--muted); font-size: 17px; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 24px rgba(20, 32, 50, 0.055); }

.event-grid, .production-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.event-card, .production-card {
  --production-color: #4a90e2;
  position: relative; width: 100%; min-height: 190px; overflow: hidden;
  padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
  box-shadow: var(--shadow); color: inherit; text-align: left; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.event-card::before, .production-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--production-color); }
.event-card:hover, .production-card:hover, .event-card:focus-visible, .production-card:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 46px rgba(20, 32, 50, .13); outline: none; }
.event-card[disabled] { opacity: .58; cursor: not-allowed; transform: none; }
.event-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.event-date-badge { display: grid; place-items: center; min-width: 72px; min-height: 72px; padding: 8px; border-radius: 14px; background: var(--production-color); color: white; text-align: center; }
.event-date-badge strong { font-size: 25px; line-height: 1; }
.event-date-badge span { margin-top: 4px; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.event-card h2, .production-card h2 { margin: 17px 0 7px; font-size: 23px; letter-spacing: -.03em; }
.event-card p, .production-card p { margin: 3px 0 0; color: var(--muted); line-height: 1.4; }
.production-eyebrow, .status-pill, .item-label { display: inline-flex; align-items: center; border-radius: 999px; font-weight: 850; }
.production-eyebrow { padding: 6px 9px; background: color-mix(in srgb, var(--production-color) 15%, white); color: color-mix(in srgb, var(--production-color) 75%, #172033); font-size: 12px; letter-spacing: .08em; }
.status-pill { padding: 5px 8px; background: #edf0f4; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-pill.finalized { background: var(--success-soft); color: var(--success); }
.status-pill.packing { background: var(--warning-soft); color: var(--warning); }
.status-pill.unlinked { background: var(--danger-soft); color: var(--danger); }
.card-link { display: inline-flex; margin-top: 13px; color: var(--accent); font-size: 13px; font-weight: 800; }
.empty { padding: 34px 22px; border: 1px dashed #bdc5d0; border-radius: 18px; color: var(--muted); text-align: center; background: rgba(255,255,255,.5); }

.detail-header { padding: 22px 0 16px; }
.back { display: inline-flex; align-items: center; margin-bottom: 22px; padding: 0; border: 0; background: transparent; color: var(--accent); font-weight: 750; cursor: pointer; }
.detail-eyebrow { display: inline-flex; margin-bottom: 18px; padding: 6px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.detail-meta { margin-bottom: 5px; color: var(--muted); }
.version-card { margin: 0 0 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: #f7f8fb; }
.version-card[data-mode="live"] { background: var(--success-soft); border-color: #b6dec9; }
.version-card[data-mode="update_available"] { background: var(--warning-soft); border-color: #e6c37d; }
.version-card[data-mode="finalized"] { background: #e9edf3; border-color: #c2c9d3; }
.version-card strong { display: block; margin-bottom: 5px; }
.version-card p { margin: 0; color: var(--muted); }
.version-actions { margin-top: 12px; }

.note-panel, .progress-card, .adjustment-panel, .finalize-panel, .reset-zone { margin: 14px 0; padding: 18px; }
.note-panel h2, .progress-card h2, .adjustment-panel h2, .finalize-panel h2, .reset-zone h2 { margin-bottom: 6px; font-size: 20px; }
.card-hint { margin-bottom: 15px; color: var(--muted); font-size: 14px; line-height: 1.45; }
textarea { width: 100%; min-height: 112px; resize: vertical; padding: 12px 13px; border: 1px solid #cfd6df; border-radius: 11px; background: white; color: var(--text); outline: none; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,87,214,.12); }
textarea:disabled { background: #f0f2f5; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.card-status { color: var(--muted); font-size: 13px; }

.progress-row { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 11px; font-weight: 800; }
.segmented-progress { display: flex; width: 100%; height: 20px; overflow: hidden; border: 1px solid #d7dde5; border-radius: 999px; background: #edf0f4; box-shadow: inset 0 1px 2px rgba(16,24,40,.06); }
.progress-segment { --category-color: #ffd84d; min-width: 4px; overflow: hidden; background: color-mix(in srgb, var(--category-color) 20%, #edf0f4); border-right: 2px solid white; }
.progress-segment:last-child { border-right: 0; }
.progress-segment-fill { height: 100%; background: var(--category-color); transition: width .25s ease; }
.progress-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; }
.progress-legend-item { --category-color: #ffd84d; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 750; }
.category-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--category-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--category-color) 20%, transparent); }

.category-panel { --category-color: #ffd84d; margin-bottom: 14px; overflow: hidden; }
.category-title { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--line); border-left: 7px solid var(--category-color); font-size: 19px; }
.category-count { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 700; }
.item-list { list-style: none; margin: 0; padding: 0; }
.item-row { position: relative; display: flex; align-items: center; gap: 13px; min-height: 54px; padding: 13px 18px; border-bottom: 1px solid #edf0f3; transition: background .22s ease; }
.item-row:last-child { border-bottom: 0; }
.item-row.packed .item-text-main { color: var(--muted); text-decoration: line-through; }
.item-row.noload { background: #f4f4f5; }
.item-row.noload .item-text-main { color: #7a7f89; text-decoration: line-through; }
.item-row.additional { background: #f7f2ff; }
.item-row.foreign-change { background: var(--foreign); animation: foreignPulse 1.1s ease 2; }
.item-row.removed { opacity: .68; }
@keyframes foreignPulse { 50% { box-shadow: inset 0 0 0 3px rgba(183,126,0,.35); } }
.item-check { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; accent-color: var(--category-color); }
.item-text { flex: 1; min-width: 0; }
.item-text-main { font-weight: 650; }
.item-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.item-label { margin-left: auto; padding: 4px 7px; background: #edf0f4; color: var(--muted); font-size: 10px; white-space: nowrap; }
.item-label.additional { background: #eee4ff; color: #6e36a8; }
.item-label.noload { background: #e7e7e9; color: #646971; }
.item-label.foreign { background: #f5cf56; color: #5b4300; }

.primary-button, .secondary-button, .danger-button { min-height: 44px; padding: 10px 15px; border: 0; border-radius: 11px; font-weight: 850; cursor: pointer; }
.primary-button { background: var(--accent); color: white; }
.secondary-button { background: #edf0f4; color: var(--text); }
.danger-button { background: var(--danger); color: white; }
button:disabled { opacity: .55; cursor: not-allowed; }
.finalize-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.finalize-panel p { margin-bottom: 0; color: var(--muted); }
.finalize-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.reset-zone { margin-top: 30px; border-color: #f1bcbc; background: var(--danger-soft); }
.reset-zone h2 { color: var(--danger); }
.reset-zone p { color: #8f3030; }
.reset-zone .danger-button { width: 100%; }

.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(16,24,40,.58); backdrop-filter: blur(5px); }
.modal-card { width: min(720px, 100%); max-height: min(780px, calc(100vh - 40px)); overflow: auto; border-radius: 18px; background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.modal-header h2 { margin-bottom: 5px; font-size: 25px; letter-spacing: -.03em; }
.modal-header p { margin-bottom: 0; color: var(--muted); }
.modal-close { width: 38px; height: 38px; flex: 0 0 auto; border: 0; border-radius: 10px; background: #edf0f4; color: var(--text); font-size: 23px; cursor: pointer; }
.modal-body { padding: 20px 22px 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.modal-event-list { display: grid; gap: 11px; }
.modal-event { --production-color: #4a90e2; display: grid; grid-template-columns: 76px minmax(0,1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--text); text-align: left; cursor: pointer; }
.modal-event:hover { border-color: var(--production-color); }
.modal-event-copy strong, .detail-list strong { display: block; margin-bottom: 4px; }
.modal-event-copy span { display: block; color: var(--muted); line-height: 1.4; }
.modal-chevron { color: var(--accent); font-weight: 850; }
.detail-list { display: grid; gap: 13px; }
.detail-list div { padding-bottom: 13px; border-bottom: 1px solid #edf0f3; }
.detail-list div:last-child { border-bottom: 0; }
.detail-list span { color: var(--muted); }
.map-link { color: var(--accent); font-weight: 750; }
.reset-choice { padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; }
.reset-choice strong { display: block; margin-bottom: 4px; }
.reset-choice p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.loading-panel { display: grid; place-items: center; min-height: 230px; padding: 2rem; color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 4px solid #dce3f0; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-panel { padding: 18px; border: 1px solid #efb4b9; border-radius: 16px; background: var(--danger-soft); color: #711d26; }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 1200; max-width: min(90vw, 580px); padding: 12px 16px; border-radius: 12px; color: white; background: #202b3f; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%,14px); pointer-events: none; transition: .18s ease; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.toast.error { background: var(--danger); }
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--text); color: white; font-size: 20px; box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .18s ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 700px) {
  .app { width: min(100% - 20px, 980px); }
  .topbar { grid-template-columns: minmax(0,1fr) auto; align-items: start; }
  .sync-badge { grid-column: 1 / -1; justify-self: end; margin-top: -6px; }
  .brand span:last-child { display: none; }
  .event-card, .production-card { min-height: 172px; }
  .card-actions, .finalize-panel { align-items: stretch; flex-direction: column; }
  .card-actions button, .finalize-actions, .finalize-actions button { width: 100%; }
  .modal-event { grid-template-columns: 64px minmax(0,1fr); }
  .modal-chevron { display: none; }
}


/* V02_rev1_b05_2: V1-nahe Termin-Popups */
.packlist-cta {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #b9c9f6;
  border-radius: 16px;
  background: #f2f5ff;
}

.packlist-cta strong {
  color: #25427f;
}

.packlist-cta.unavailable {
  border-color: #d5d9e0;
  background: #f4f5f7;
}

.packlist-cta.unavailable strong {
  color: var(--muted);
}

.packlist-open-button {
  width: 100%;
}

.primary-button:disabled,
.packlist-open-button:disabled {
  opacity: 1;
  background: #dfe3e9;
  color: #7c8491;
  box-shadow: none;
}

.event-detail-list {
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.event-detail-list > div {
  display: grid;
  grid-template-columns: minmax(105px, 130px) minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
}

.event-detail-list > div:last-child {
  padding-bottom: 14px;
}

.map-preview {
  position: relative;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #e9edf3;
}

.map-frame {
  display: block;
  width: 100%;
  height: 270px;
  border: 0;
}

.map-preview-link {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 8px 10px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 3px 12px rgba(16,24,40,.12);
}

@media (max-width: 560px) {
  .event-detail-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .map-frame {
    height: 230px;
  }
}


/* V02_rev01_b08_1: Hilfe, Status und Support */
.help-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.help-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.help-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 18px; }
.help-summary p { margin: 4px 0 0; color: var(--muted); }
.status-dot { width: 13px; height: 13px; flex: 0 0 auto; border-radius: 50%; background: #a1a8b3; box-shadow: 0 0 0 5px rgba(161,168,179,.14); }
[data-state="ok"] > .status-dot, [data-state="ok"] .status-dot { background: var(--success); box-shadow: 0 0 0 5px rgba(22,120,74,.13); }
[data-state="warning"] > .status-dot, [data-state="warning"] .status-dot { background: #d48900; box-shadow: 0 0 0 5px rgba(212,137,0,.14); }
[data-state="error"] > .status-dot, [data-state="error"] .status-dot { background: var(--danger); box-shadow: 0 0 0 5px rgba(198,40,40,.13); }
.help-summary[data-state="ok"] { border-color: #b6dec9; background: var(--success-soft); }
.help-summary[data-state="warning"] { border-color: #e6c37d; background: var(--warning-soft); }
.help-summary[data-state="error"] { border-color: #efb4b9; background: var(--danger-soft); }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: 14px; }
.status-card { padding: 17px; min-height: 180px; }
.status-card[data-state="ok"] { border-color: #c6e5d5; }
.status-card[data-state="warning"] { border-color: #ead29c; }
.status-card[data-state="error"] { border-color: #efb4b9; }
.status-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.status-card-head h2 { margin: 0; font-size: 18px; }
.status-label { margin-left: auto; padding: 4px 7px; border-radius: 999px; background: #edf0f4; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.status-card[data-state="ok"] .status-label { background: var(--success-soft); color: var(--success); }
.status-card[data-state="warning"] .status-label { background: var(--warning-soft); color: var(--warning); }
.status-card[data-state="error"] .status-label { background: var(--danger-soft); color: var(--danger); }
.status-card p { min-height: 46px; margin-bottom: 12px; color: var(--muted); line-height: 1.45; }
.status-card small { display: block; color: var(--muted); }
.status-details { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.status-details span { padding: 5px 7px; border-radius: 8px; background: #f0f2f5; color: var(--muted); font-size: 11px; font-weight: 750; }
.status-link { display: inline-flex; margin-top: 12px; color: var(--accent); font-size: 13px; font-weight: 800; }
.help-info-panel, .support-panel { margin-top: 14px; padding: 20px; }
.help-info-panel > h2, .support-panel h2 { margin-bottom: 7px; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 16px; }
.faq-grid article { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8f9fb; }
.faq-grid h3 { margin-bottom: 6px; font-size: 16px; }
.faq-grid p { margin-bottom: 0; color: var(--muted); line-height: 1.45; font-size: 14px; }
.support-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.support-heading p { margin-bottom: 0; color: var(--muted); }
.support-delivery-badge { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 850; }
.support-form { display: grid; gap: 14px; margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.support-form label { display: grid; gap: 6px; }
.support-form label > span { color: var(--muted); font-size: 13px; font-weight: 750; }
.support-form input, .support-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd6df; border-radius: 11px; background: white; color: var(--text); outline: none; }
.support-form input:focus, .support-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,87,214,.12); }
.checkbox-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; }
.checkbox-label input { width: 19px; height: 19px; }
.support-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.skeleton-card { overflow: hidden; }
.skeleton-line { height: 13px; margin-top: 12px; border-radius: 8px; background: linear-gradient(90deg, #edf0f4, #f8f9fb, #edf0f4); background-size: 200% 100%; animation: skeletonShift 1.2s linear infinite; }
.skeleton-line.wide { width: 75%; height: 18px; margin-top: 0; }
.skeleton-line.short { width: 48%; }
@keyframes skeletonShift { to { background-position: -200% 0; } }

@media (max-width: 700px) {
  .help-hero, .support-heading, .support-submit-row { align-items: stretch; flex-direction: column; }
  .help-actions, .help-actions button, .support-submit-row button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
}


/* V02_rev01_b09: vereinfachte Hilfe- und Statusseite */
.simplified-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.status-card {
  min-height: 0;
}

.status-card summary {
  list-style: none;
}

.status-card summary::-webkit-details-marker {
  display: none;
}

.status-card-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 12px;
  cursor: pointer;
}

.status-summary-copy h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.status-summary-copy p {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.details-chevron {
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  transition: transform .18s ease;
}

.status-card[open] .details-chevron {
  transform: rotate(180deg);
}

.google-service-list {
  display: grid;
  gap: 9px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.google-service-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f9fb;
}

.google-service-row .status-dot {
  margin-top: 4px;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 4px rgba(161,168,179,.12);
}

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

.google-service-row p {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.service-since {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.availability-history,
.simple-status-details {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.availability-history > h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.history-note,
.simple-status-details > p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
}

.service-history-block + .service-history-block {
  margin-top: 14px;
}

.service-history-block h4 {
  margin-bottom: 7px;
  font-size: 13px;
}

.service-history-block > p {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.service-period-list {
  display: grid;
  gap: 6px;
}

.service-period {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 9px;
  background: #f4f6f8;
  font-size: 11px;
}

.service-period .status-dot {
  width: 8px;
  height: 8px;
  box-shadow: none;
}

.service-period time {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.service-period strong {
  white-space: nowrap;
}

.support-delivery-badge[data-state="ok"] {
  background: var(--success-soft);
  color: var(--success);
}

.support-delivery-badge[data-state="warning"] {
  background: var(--warning-soft);
  color: #9a6200;
}

@media (max-width: 950px) {
  .simplified-status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .status-card-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .status-card-summary .status-label {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }

  .details-chevron {
    grid-column: 3;
    grid-row: 1;
  }

  .service-period {
    grid-template-columns: auto 1fr auto;
  }

  .service-period time {
    grid-column: 2 / -1;
  }
}
