/* ==========================================================================
   WARRANTIME - GLASS VZHLED (Návrh 1: Liquid Glass) - pouze desktop >= 900 px
   Načítá se až za style.css. Vrácení původního vzhledu = odebrat <link> v index.html.
   ========================================================================== */
@media (min-width: 900px) {
  html, body {
    background:
      radial-gradient(1200px 700px at 15% 10%, #cfe3ff 0, transparent 60%),
      radial-gradient(900px 600px at 90% 20%, #e6d6ff 0, transparent 55%),
      radial-gradient(900px 700px at 60% 100%, #c9f1e4 0, transparent 55%),
      #eef2f9 !important;
  }
  .app-container { background: transparent !important; }

  .workspace-body.expires-workspace-layout {
    grid-template-columns: 310px 440px 1fr !important;
    gap: 16px !important;
    padding: 20px !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  /* Skleněné panely */
  .expires-nav-sidebar,
  .expires-center-column,
  .expires-detail-column {
    height: calc(100vh - 40px) !important;
    background: rgba(255, 255, 255, 0.58) !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
    backdrop-filter: blur(28px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 28px !important;
    box-shadow: 0 10px 40px rgba(60, 80, 140, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }
  .expires-nav-sidebar { padding: 22px 16px !important; }
  .expires-detail-column { padding: 28px 30px !important; }
  .expires-center-column { overflow: hidden !important; }

  .ens-title { font-size: 21px; }
  .ens-icon-btn { background: rgba(255, 255, 255, 0.75); border-color: rgba(255, 255, 255, 0.9); border-radius: 11px; }
  .ens-icon-btn.primary { background: linear-gradient(135deg, #2563eb, #4f46e5); border-color: transparent; }
  .ens-search-box { background: rgba(255, 255, 255, 0.75); border-radius: 14px; padding: 10px 14px; }

  /* Dlaždice stavů a roků */
  .pastel-tile { border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 4px 14px rgba(60, 80, 140, 0.07); }
  .pastel-tile.active { outline: 2px solid rgba(59, 130, 246, 0.9); outline-offset: -1px; }
  .ens-footer {
    border-top: none;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(99, 102, 241, 0.16));
  }
  .ens-footer-val { font-size: 20px; }

  /* Střední sloupec */
  .expires-mid-header { background: transparent !important; border-bottom: 1px solid rgba(255, 255, 255, 0.7) !important; padding: 20px 20px 16px !important; }
  .expires-head-title { font-size: 19px; }
  .sort-tile-c1 { background: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.9); border-radius: 12px; }
  .sort-menu-dropdown { border-radius: 18px; background: rgba(255, 255, 255, 0.95); }
  .expires-timeline-container { background: transparent !important; }
  .expires-items-list { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 18px; }
  .expires-row {
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px 16px;
  }
  .expires-row:hover { background: rgba(255, 255, 255, 0.8); }
  .expires-row.selected-desktop {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 8px 24px rgba(60, 80, 140, 0.16);
    padding-left: 16px;
  }
  .donut-ring { width: 46px; height: 46px; }

  /* Detail: hero */
  .desktop-empty-state { color: #475569; }
  .expires-detail-column .desktop-detail-content { gap: 18px !important; }
  .gl-hero { display: flex; align-items: center; gap: 32px; }
  .gl-ring { position: relative; width: 190px; height: 190px; flex: none; }
  .gl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .gl-ring-bg { fill: rgba(255, 255, 255, 0.9); stroke: rgba(15, 23, 42, 0.08); stroke-width: 3; }
  .gl-ring-fg { fill: none; stroke-width: 3; stroke-linecap: round; }
  .gl-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 28px; }
  .gl-ring-in b { font-size: 54px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .gl-ring-in small { font-size: 13px; color: #64748B; font-weight: 600; margin-top: 6px; line-height: 1.25; }
  .gl-hero-main { min-width: 0; }
  .gl-title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: #0F172A; margin: 10px 0 4px; line-height: 1.12; overflow-wrap: anywhere; }
  .gl-sub { font-size: 15px; color: #64748B; }
  .gl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
  .gl-actions .btn-action { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; width: auto; flex: 0 0 auto; border-radius: 14px; padding: 10px 16px; font-weight: 700; font-size: 14px; border: 1px solid rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.85); color: #0F172A; cursor: pointer; }
  .gl-actions .btn-action.btn-primary { background: linear-gradient(135deg, #2563eb, #4f46e5); color: #FFFFFF; border-color: transparent; }
  .gl-actions .btn-action.btn-danger { color: #DC2626; }
  .gl-actions .btn-action:hover { filter: brightness(0.97); }

  .gl-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .gl-meta div { background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 18px; padding: 14px 16px; min-width: 0; }
  .gl-meta small { display: block; color: #64748B; font-size: 12px; font-weight: 600; }
  .gl-meta b { display: block; margin-top: 3px; font-size: 16px; color: #0F172A; overflow-wrap: anywhere; }
  .gl-meta b.alert { color: #DC2626; }

  .gl-tl { background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 22px; padding: 18px 22px; }
  .gl-tl-title { font-weight: 700; font-size: 14px; color: #0F172A; }
  .gl-tl-bar { height: 12px; border-radius: 99px; background: rgba(15, 23, 42, 0.08); margin: 14px 0 8px; overflow: hidden; }
  .gl-tl-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #34D399, #FBBF24, #F97316); }
  .gl-tl-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #64748B; font-weight: 600; }

  /* Karty v detailu (doklady, poznámka, reklamace) */
  .expires-detail-column .detail-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    box-shadow: none;
  }
  .expires-detail-column .receipt-zoom-container { background: rgba(255, 255, 255, 0.5) !important; border-radius: 18px !important; }
}

/* Užší desktop / tablet na šířku (900-1279 px): užší sloupce, hero pod sebou */
@media (min-width: 900px) and (max-width: 1279px) {
  .workspace-body.expires-workspace-layout { grid-template-columns: 250px 340px 1fr !important; gap: 12px !important; padding: 12px !important; }
  .expires-nav-sidebar, .expires-center-column, .expires-detail-column { height: calc(100vh - 24px) !important; border-radius: 24px !important; }
  .expires-nav-sidebar { width: 250px !important; min-width: 250px !important; max-width: 250px !important; padding: 18px 12px !important; }
  .expires-center-column { width: 340px !important; min-width: 340px !important; max-width: 340px !important; }
  .expires-detail-column { padding: 20px !important; }
  .gl-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .gl-ring { width: 150px; height: 150px; }
  .gl-ring-in b { font-size: 42px; }
  .gl-title { font-size: 26px; }
  .gl-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) and (max-width: 1279px) {
  .workspace-body.expires-workspace-layout { grid-template-columns: 275px 320px 1fr !important; }
  .expires-nav-sidebar { width: 275px !important; min-width: 275px !important; max-width: 275px !important; }
  .expires-center-column { width: 320px !important; min-width: 320px !important; max-width: 320px !important; }
  .ens-header { flex-wrap: wrap; gap: 8px; }
  .ens-status-grid > *, .ens-years-grid > * { min-width: 0; }
}

/* Popisek pod rokem se zalomí místo useknutí třemi tečkami */
@media (min-width: 900px) {
  .pastel-tile.year-tile .yt-sub { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
}

@media (min-width: 900px) {
  .attention-banner { border-radius: 20px; background: rgba(254, 243, 199, 0.85); border-color: rgba(253, 230, 138, 0.9); margin: 14px 14px 0; }
  .rem-settings { background: rgba(255, 255, 255, 0.6); }
}

/* ==========================================================================
   TELEFON (do 899 px): Glass vzhled - plovoucí lišta, karty v seznamu, skleněné okno
   ========================================================================== */
@media (max-width: 899px) {
  html, body {
    background:
      radial-gradient(700px 480px at 10% 0%, #cfe3ff 0, transparent 60%),
      radial-gradient(600px 420px at 100% 25%, #e6d6ff 0, transparent 55%),
      radial-gradient(600px 500px at 50% 100%, #c9f1e4 0, transparent 55%),
      #eef2f9 !important;
    background-attachment: fixed !important;
  }
  .app-container { background: transparent !important; box-shadow: none !important; }
  .app-header {
    background: rgba(255, 255, 255, 0.55) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    backdrop-filter: blur(24px) saturate(1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7) !important;
  }
  .header-title { color: #0F172A; }
  .chip { background: rgba(255, 255, 255, 0.72); border-color: rgba(255, 255, 255, 0.95); color: #334155; font-weight: 600; }
  .chip.active { background: linear-gradient(135deg, #2563eb, #4f46e5); border-color: transparent; color: #FFFFFF; }
  .timeline-container, .expires-timeline-container { background: transparent !important; }
  .expires-items-list { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 130px; }
  .expires-row {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 22px;
    box-shadow: 0 6px 20px rgba(60, 80, 140, 0.08);
    padding: 12px 14px;
  }
  .expires-row.selected-desktop { background: rgba(255, 255, 255, 0.62); border-left: 1px solid rgba(255, 255, 255, 0.85); padding-left: 14px; }
  .bottom-nav {
    left: 50%;
    width: calc(100% - 28px);
    max-width: 392px;
    height: 64px;
    padding-bottom: 0;
    bottom: calc(10px + var(--safe-bottom));
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 34px rgba(60, 80, 140, 0.22);
  }
  .fab-btn { bottom: calc(92px + var(--safe-bottom)); background: linear-gradient(135deg, #2563eb, #4f46e5) !important; }
  .modal-card {
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    backdrop-filter: blur(30px) saturate(1.5);
    border-radius: 30px 30px 0 0;
  }  .attention-banner { margin: 12px 14px 0; }
}

/* Společné: výplň ukazatele průběhu záruky (dříve bez barvy) */
.progress-fill { background: linear-gradient(90deg, #34D399, #FBBF24, #F97316); }

/* ==========================================================================
   PŘÍSTUPNOST: kontrast textu (měřeno testem test-theme.mjs, cíl 4,5:1 / 3:1 u velkého písma)
   ========================================================================== */
:root {
  --apple-blue: #0A5FD1;
  --pastel-coral-txt: #C62828;
  --pastel-amber-txt: #B45309;
  --pastel-mint-txt: #047857;
  --pastel-purple-txt: #6D28D9;
}
.er-meta.active { color: #047857; }
.er-meta.soon { color: #A24A06; }
.er-meta.expired { color: #B91C1C; }
.donut-label.lbl-active { color: #047857; }
.donut-label.lbl-soon { color: #A24A06; }
.donut-label.lbl-expired { color: #B91C1C; }
.gl-ring-in b.c-ok { color: #059669; }
.gl-ring-in b.c-soon { color: #C2410C; }
.gl-ring-in b.c-exp { color: #DC2626; }
.progress-labels { color: #5B6472; }
.nav-item { color: #5B6472; }
.detail-subtitle, .about-app-subtitle { color: #4B5563; }
.about-version-tag { color: #0A5FD1; }
.pt-subtitle { opacity: 0.92; }
.pastel-tile.year-tile .yt-sub { opacity: 0.95; font-size: 10px; }
.cpc-badge.badge-active { color: #047857; }
.cpc-badge.badge-soon { color: #B45309; }
.cpc-badge.badge-expired { color: #C81E1E; }
.pt-subtitle { opacity: 1; }
.ens-section-heading { color: #4B5563; }
.ens-footer-label { color: #3F4654; }
.expires-head-subtitle strong, .sort-tile-c1, .sort-check, .sort-menu-item.active { color: var(--apple-blue); }
.gl-sub { color: #4B5563; }
.pastel-tile.year-tile .yt-sub { opacity: 1; }

.demo-banner { background: rgba(219, 234, 254, 0.85); border-color: rgba(191, 219, 254, 0.9); }

/* Okno PRO je na počítači uprostřed obrazovky (na telefonu zůstává jako spodní list) */
@media (min-width: 900px) {
  #modalPaywall { align-items: center; }
  #modalPaywall .modal-card { border-radius: 28px; padding-bottom: 24px; }
}
.modal-paywall-card .rem-note { margin: 0 0 12px; }
.rem-note { color: #4B5563; }

/* ==========================================================================
   SYMETRIE (v0.13.1): střed panelu a detailu, stejně široké ovládací prvky
   ========================================================================== */
@media (min-width: 900px) {
  /* levý panel */
  .ens-header { flex-direction: column; align-items: stretch; gap: 12px; }
  .ens-brand { justify-content: center; }
  .ens-actions { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 8px !important; }
  .ens-icon-btn { width: 100% !important; height: 38px !important; }
  .ens-section-heading { text-align: center; }
  .ens-years-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ens-footer { flex-direction: column; justify-content: center; gap: 2px; text-align: center; }

  /* detail */
  .gl-hero { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .gl-hero-main { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .gl-title { margin: 8px 0 2px; }
  .gl-actions { display: grid !important; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; max-width: 620px; gap: 10px; }
  .gl-actions .btn-action { width: 100% !important; }
  .expires-detail-column .detail-card > div:first-child { text-align: center; }
}

@media (max-width: 899px) {.detail-hero { text-align: center; }
  .detail-footer-actions { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .detail-footer-actions > * { width: 100% !important; }
}

/* ==========================================================================
   MODERNĚJŠÍ SEZNAM A HLAVIČKA (v0.14.0, návrh č. 3): kompaktní řádky, nižší lišty
   ========================================================================== */
.er-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.er-meta { font-weight: 600; }
.er-price { font-size: 13px; }
.sort-tile-c1 { flex-direction: row; white-space: nowrap; padding: 7px 12px; }
.sort-tile-c1 > span { display: inline; }
.demo-banner { flex-wrap: nowrap; padding: 8px 10px 8px 14px; font-size: 12px; }
.demo-remove { white-space: nowrap; flex: none; }
.attention-banner { padding: 9px 14px; }
.receipt-overlay-btn { font-size: 11px; padding: 5px 12px; white-space: nowrap; }

/* Užší okno: tlačítka akcí ve dvou řadách (nic se neusekává), seznam dostane víc místa */
@media (min-width: 900px) and (max-width: 1279px) {
  .gl-actions { grid-auto-flow: row !important; grid-template-columns: repeat(2, 1fr) !important; max-width: none; }
  .workspace-body.expires-workspace-layout { grid-template-columns: 275px 380px 1fr !important; }
  .expires-center-column { width: 380px !important; min-width: 380px !important; max-width: 380px !important; }
  .gl-ring { width: 160px; height: 160px; }
  .gl-ring-in b { font-size: 38px; }
}

@media (min-width: 900px) and (max-width: 1279px) {
  .gl-meta div { padding: 12px 14px; }
  .gl-meta b { font-size: 14.5px; white-space: nowrap; }
  .gl-tl-labels { flex-wrap: wrap; row-gap: 4px; }
  .gl-tl-labels span:nth-child(2) { order: 3; width: 100%; text-align: center; }
}

/* ==========================================================================
   OPRAVY PŘETÉKÁNÍ TEXTU (v0.17.1): dlouhé překlady, velké písmo, dlouhé texty bez mezer
   ========================================================================== */
.gl-meta b { white-space: normal !important; overflow-wrap: anywhere; }
.gl-meta small { overflow-wrap: anywhere; hyphens: auto; }
#detNote, #detSerial, .detail-card p, .gl-sub, .er-title, .er-meta, .td-main b, .td-main small { overflow-wrap: anywhere; }
.td-main { min-width: 0; }
.ens-search-box input { font-size: 12.5px; }
.about-info-item .about-lang-select { width: 100%; font-size: 13px; padding: 6px 4px 6px 8px; }
@media (max-width: 480px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.demo-banner { flex-wrap: wrap; }
.demo-remove { white-space: normal; flex: 0 1 auto; }
.ob-art { height: auto; min-height: 300px; }
.ob-card { overflow-y: auto; }
.pastel-tile { min-width: 0; }
.pt-title { overflow-wrap: anywhere; hyphens: auto; }
.nav-item { min-width: 0; padding: 4px 6px; }
.nav-item span { max-width: 100%; overflow-wrap: anywhere; text-align: center; line-height: 1.15; }
.backup-bar .bk-actions { flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; }
.form-group label { line-height: 1.35; overflow-wrap: anywhere; }
.expires-head-subtitle { line-height: 1.35; }
.expires-list-head-desktop > div:first-child { min-width: 0; }
.ob-art { flex: none; }

/* ==========================================================================
   DETAIL ZÁRUKY NA POČÍTAČI (v0.18.0): jedna karta s malým kruhem a údaji 2 × 2,
   pod ní čtyři stejná tlačítka (varianta C)
   ========================================================================== */
@media (min-width: 900px) {
  .gl-hero-card { background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.95); border-radius: 24px; padding: 18px 14px 0; box-shadow: 0 6px 24px rgba(30, 41, 90, 0.08); }
  .gl-hero-card .gl-hero { gap: 8px; }
  .gl-hero-card .gl-ring { width: 104px; height: 104px; }
  .gl-hero-card .gl-ring-in { padding: 0 12px; }
  .gl-hero-card .gl-ring-in b { font-size: 28px; }
  .gl-hero-card .gl-ring-in small { font-size: 10.5px; margin-top: 3px; }
  .gl-hero-card .gl-title { font-size: 24px; margin: 6px 0 2px; }
  .gl-hero-card .gl-sub { font-size: 14px; }
  .gl-state { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #64748B; }
  .gl-hero-card .gl-meta { grid-template-columns: 1fr 1fr; gap: 0; margin: 14px -14px 0; border-top: 1px solid rgba(15, 23, 42, 0.08); }
  .gl-hero-card .gl-meta div { background: none; border: 0; border-radius: 0; padding: 12px 8px; text-align: center; }
  .gl-hero-card .gl-meta div:nth-child(odd) { border-right: 1px solid rgba(15, 23, 42, 0.08); }
  .gl-hero-card .gl-meta div:nth-child(-n+2) { border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
  .gl-hero-card .gl-meta b { font-size: 15px; white-space: normal; }
  .gl-actions { display: grid !important; grid-template-columns: none !important; grid-auto-flow: column !important; grid-auto-columns: minmax(0, 1fr) !important; gap: 8px; width: 100%; max-width: none; margin-top: 0; }
  .gl-actions .btn-action { flex-direction: column; gap: 4px; width: 100% !important; padding: 10px 2px; font-size: 11.5px; line-height: 1.2; border-radius: 14px; white-space: normal; text-align: center; }
  .gl-actions .btn-action .ic { margin: 0; }
  .gl-actions .btn-action .ic svg { width: 19px; height: 19px; }
}
:root[data-theme-resolved="dark"] .gl-hero-card { background: rgba(30, 41, 59, 0.7); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); }
:root[data-theme-resolved="dark"] .gl-hero-card .gl-meta, :root[data-theme-resolved="dark"] .gl-hero-card .gl-meta div { border-color: rgba(255, 255, 255, 0.1); }
:root[data-theme-resolved="dark"] .gl-hero-card .gl-meta div { background: none; }
:root[data-theme-resolved="dark"] .gl-state { color: #acb1b7; }
@media (min-width: 900px) and (max-width: 1279px) {
  .gl-actions { grid-auto-flow: row !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-columns: auto !important; }
  .gl-actions .btn-action { flex-direction: row; gap: 6px; font-size: 13px; padding: 10px 6px; }
  .gl-actions .btn-action .ic svg { width: 1.08em; height: 1.08em; }
}
.gl-actions .btn-action { overflow-wrap: anywhere; }

/* ==========================================================================
   DETAIL ZÁRUKY NA TELEFONU (v0.21.0): stejná karta jako na počítači (varianta C)
   ========================================================================== */
#modalDetail .gl-hero-card { background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.95); border-radius: 24px; padding: 16px 12px 0; box-shadow: 0 6px 24px rgba(30, 41, 90, 0.08); margin-bottom: 14px; }
#modalDetail .gl-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
#modalDetail .gl-ring { position: relative; width: 104px; height: 104px; flex: none; }
#modalDetail .gl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
#modalDetail .gl-ring-bg { fill: rgba(255, 255, 255, 0.9); stroke: rgba(15, 23, 42, 0.08); stroke-width: 3; }
#modalDetail .gl-ring-fg { fill: none; stroke-width: 3; stroke-linecap: round; }
#modalDetail .gl-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 12px; }
#modalDetail .gl-ring-in b { font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
#modalDetail .gl-ring-in small { font-size: 10.5px; color: #64748B; font-weight: 600; margin-top: 3px; line-height: 1.25; }
#modalDetail .gl-hero-main { min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
#modalDetail .gl-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #0F172A; margin: 6px 0 2px; line-height: 1.15; overflow-wrap: anywhere; }
#modalDetail .gl-sub { font-size: 14px; color: #4B5563; overflow-wrap: anywhere; }
#modalDetail .gl-state { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #64748B; }
#modalDetail .gl-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 14px -12px 0; border-top: 1px solid rgba(15, 23, 42, 0.08); }
#modalDetail .gl-meta div { padding: 12px 8px; text-align: center; min-width: 0; }
#modalDetail .gl-meta div:nth-child(odd) { border-right: 1px solid rgba(15, 23, 42, 0.08); }
#modalDetail .gl-meta div:nth-child(-n+2) { border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
#modalDetail .gl-meta small { display: block; color: #64748B; font-size: 11.5px; font-weight: 600; overflow-wrap: anywhere; }
#modalDetail .gl-meta b { display: block; margin-top: 2px; font-size: 15px; color: #0F172A; overflow-wrap: anywhere; }
@media (max-width: 899px) {
  :root[data-theme-resolved="dark"] #modalDetail .gl-meta, :root[data-theme-resolved="dark"] #modalDetail .gl-meta div { border-color: rgba(255, 255, 255, 0.1); }
}
:root[data-theme-resolved="dark"] #modalDetail .gl-title, :root[data-theme-resolved="dark"] #modalDetail .gl-meta b { color: #e1e2e5; }
:root[data-theme-resolved="dark"] #modalDetail .gl-sub, :root[data-theme-resolved="dark"] #modalDetail .gl-meta small, :root[data-theme-resolved="dark"] #modalDetail .gl-ring-in small { color: #acb1b7; }
:root[data-theme-resolved="dark"] #modalDetail .gl-ring-bg { fill: rgba(30, 41, 59, 0.9); stroke: rgba(255, 255, 255, 0.14); }
#modalDetail .cal-item-btn { margin: 0 0 12px; }
#modalDetail .detail-footer-actions > * { min-width: 0; overflow-wrap: anywhere; white-space: normal; padding-left: 6px; padding-right: 6px; }
:root[data-theme-resolved="dark"] #modalDetail .gl-hero-card { background: rgba(30, 41, 59, 0.7); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); }

/* Malá okna (výpis pro pojišťovnu, kalendář, dopis) jsou na počítači uprostřed obrazovky, na telefonu zůstávají jako spodní list */
@media (min-width: 900px) {
  #modalInsurance, #modalCalendar, #modalLetter { align-items: center; }
  #modalInsurance .modal-card, #modalCalendar .modal-card, #modalLetter .modal-card { border-radius: 28px; }
}

/* Seznam záruk: název je hlavní údaj (druhý řádek s datem je jen v detailu) */
.er-title { font-size: 16.5px; line-height: 1.25; }
@media (max-width: 899px) { .expires-row { padding-top: 15px; padding-bottom: 15px; } }
@media (min-width: 900px) { .er-title { font-size: 14.5px; } }
