/* Výhradně místní návrh 6. Ostatní záložky i náhled bez parametru používají původní vzhled. */
html.compact-home { --compact-touch: 50px; }
html.compact-home:not(.dark) {
  --bg: #f7f3ea; --surface: #fff; --surface2: #fdfdfc;
  --text: #3d4316; --text2: #949d5c; --text3: #a5ac79;
  --accent: #D97757; --accent-light: #f6ede1; --border: #ecefda;
}
html.compact-home body {
  background: linear-gradient(145deg, var(--bg), var(--surface));
  padding-left: max(14px,env(safe-area-inset-left,0px)); padding-right: max(14px,env(safe-area-inset-right,0px));
}
html.compact-home .app { max-width: 1320px; }
html.compact-home header { padding: 8px 0 0; margin: 0 0 6px; border: 0; gap: 8px; }
html.compact-home .logo {
  display: grid; grid-template-columns: 48px minmax(130px,1.1fr) minmax(0,2.5fr) auto auto;
  align-items: center; gap: 12px; width: 100%;
}
html.compact-home #main-logo { width: 48px; height: 48px; border-radius: 7px; }
html.compact-home .logo-text-wrapper { align-items: start; min-width: 0; }
html.compact-home .logo .logo-text-wrapper h1 {
  font-size: calc(23px * var(--fs-scale,1)) !important; font-weight: 700; text-align: left;
  height: auto !important; line-height: 1.2 !important; white-space: normal !important;
  overflow-wrap: anywhere; overflow: visible !important; text-overflow: clip !important;
}
html.compact-home #stanice-logo { grid-column: 4; grid-row: 1; width: 48px; height: 48px; margin: 0; }
html.compact-home #stanice-logo[style*="hidden"] { display: none; }
html.compact-home .logo:has(#stanice-logo:not([style*="hidden"])) { grid-template-columns: 48px minmax(130px,1.1fr) minmax(0,2.5fr) 48px auto auto; }
html.compact-home .logo:has(#stanice-logo:not([style*="hidden"])) #header-version-tile { grid-column: 5; }
html.compact-home .logo:has(#stanice-logo:not([style*="hidden"])) #lang-pill-wrap { grid-column: 6; }
html.compact-home .compact-statuses { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; min-width: 0; }
html.compact-home .compact-statuses #cloud-badge { display: contents !important; }
html.compact-home .compact-statuses #cloud-badge > * {
  display: grid !important; grid-template-columns: auto minmax(0,1fr); align-content: center;
  gap: 0 6px !important; width: 100% !important; min-width: 0 !important; max-width: none !important; min-height: 46px; padding: 6px 8px !important;
  border-radius: 5px !important; white-space: normal !important; font-weight: 500 !important;
  overflow: visible !important; overflow-wrap: anywhere;
}
html.compact-home .compact-statuses #cloud-badge svg { grid-row: 1 / 3; align-self: center; width: 19px; height: 19px; }
html.compact-home .compact-statuses #cloud-badge span > span { overflow: visible !important; text-overflow: clip !important; }
html.compact-home .compact-badge-state { grid-column: 2; display: block; font-size: inherit !important; }
@media (min-width: 1101px) {
  html.compact-home .compact-statuses #cloud-badge > * { display: flex !important; gap: 5px !important; }
  html.compact-home .compact-badge-state::before { content: '· '; }
  html.compact-home #header-backup-tile { flex-direction: row; gap: 5px; }
}
html.compact-home #header-backup-tile {
  min-width: 0; width: auto; height: auto; min-height: 46px; padding: 6px;
  border-radius: 5px; box-shadow: none; gap: 2px;
}
html.compact-home #header-backup-sub { text-transform: none !important; letter-spacing: 0 !important; }
html.compact-home #header-version-tile {
  width: auto; min-width: 0; max-width: none; background: transparent; border: 0;
  color: var(--text2); box-shadow: none; padding: 0 2px; height: 44px;
}
html.compact-home #header-version-line1, html.compact-home .ver-update-ico { display: none; }
html.compact-home #header-version-line2 { font-size: 11px !important; }
html.compact-home #lang-pill-wrap { min-width: 64px; z-index: 502; }
html.compact-home #lang-pill { width: 100%; height: 44px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--accent); }
html.compact-home #header-row2 { display: block !important; width: 100%; }
html.compact-home #header-row2 .header-left-group {
  display: grid !important; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 7px; width: 100%;
}
html.compact-home #header-row2 .header-right-group { display: contents; }
html.compact-home #header-row2 .header-left-group > *,
html.compact-home #header-row2 .h-tile,
html.compact-home #header-row2 #dog-sort-bar button {
  min-width: 0 !important; max-width: none !important; width: 100% !important;
}
html.compact-home #header-row2 :is(.h-tile,.filter-btn), html.compact-home .top-info-tile {
  min-height: var(--compact-touch); height: auto !important; padding: 8px 7px;
  font-family: inherit; font-size: calc(13px * var(--fs-scale,1)) !important; font-weight: 600;
  border: 1px solid #a9af8b !important; border-radius: 5px; color: var(--accent);
  background: linear-gradient(120deg,var(--surface),var(--surface2)); box-shadow: none !important;
  white-space: normal !important; overflow-wrap: anywhere; text-overflow: clip;
}
html.compact-home #header-add-adult-btn { order: 1; }
html.compact-home #global-search-btn { order: 2; }
html.compact-home .compact-sort-cluster { order: 3; position: relative; min-width: 0; }
html.compact-home .header-left-group .fbtn-notes { order: 4; border-color: #b991d6 !important; color: #491266; background: #faf8f4; }
html.compact-home .fbtn-notes::before { content: '▤'; margin-right: 6px; font-size: 18px; }
html.compact-home .header-left-group .fbtn-mating { order: 5; border-color: #e6bd77 !important; color: #985513; background: #fffaf0; }
html.compact-home .fbtn-mating .mating-wrap { max-width: 100%; gap: 3px; font-size: clamp(9px,2.8vw,12px) !important; }
html.compact-home .fbtn-mating .fbtn-mating-icon { position: static; transform: none; font-size: inherit; }
html.compact-home .header-left-group [onclick="openReservedList()"] { order: 6; }
html.compact-home #co-dnes, html.compact-home #co-dnes .top-tiles-grid { display: contents !important; }
html.compact-home #co-dnes .top-info-tile { order: 7; border-color: #f0dc92 !important; color: var(--text); gap: 7px; justify-content: center; margin: 0; }
html.compact-home #co-dnes .cd-license-tile { order: 8; }
html.compact-home #co-dnes .top-tile-icon { font-size: 20px; }
html.compact-home #co-dnes :is(.top-tile-sub,.cd-license-top) { font-size: calc(10px * var(--fs-scale,1)) !important; line-height: 1.2; text-transform: none; color: var(--text2); }
html.compact-home #co-dnes :is(.top-tile-main,.cd-license-bottom) { font-size: calc(12px * var(--fs-scale,1)) !important; line-height: 1.25; color: var(--text); }
html.compact-home #co-dnes :is(.top-tile-content,.top-tile-sub,.top-tile-main,.cd-license-text,.cd-license-top,.cd-license-bottom) { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; min-width: 0; height: auto; max-height: none; }
/* Roky jsou původní živý select. Jeho obal je sourozenec rendereru nabídky, takže se při renderu nezničí. */
html.compact-home .compact-sort-cluster .filters-row-4col {
  display: none !important; position: absolute; top: calc(100% + 9px); right: 7px; z-index: 100001;
  grid-template-columns: minmax(0,1fr) !important; width: 174px; padding: 0; margin: 0;
}
html.compact-home .compact-sort-cluster:has(#dog-sort-dd[style*="display: block"]) .filters-row-4col { display: grid !important; }
html.compact-home #dog-sort-dd { left: auto !important; right: 0; padding-top: 60px; background: var(--surface) !important; }
html.compact-home .compact-sort-cluster #yearFilter { min-width: 0; max-width: 100%; min-height: var(--compact-touch); height: auto; }
html.compact-home .compact-overview { display: grid; grid-template-columns: minmax(0,6fr) minmax(0,4fr); gap: 9px; margin-bottom: 6px; }
html.compact-home #stats { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)) !important; margin: 0; gap: 7px; }
html.compact-home #stats .stat {
  height: 82px; min-height: 64px; border: 1px solid #e7ebcf !important; border-radius: 5px;
  box-shadow: none; padding: 9px 4px 14px; overflow: visible; background-color: var(--surface);
}
html.compact-home #stats .stat:nth-child(1) { order: 1; }
html.compact-home #stats .stat:nth-child(2) { order: 2; }
html.compact-home #stats .stat:nth-child(3) { order: 5; }
html.compact-home #stats .stat:nth-child(4) { order: 4; }
html.compact-home #stats .stat:nth-child(5) { order: 3; }
html.compact-home #stats .stat:nth-child(6) { order: 6; }
html.compact-home #stats .stat-val { font-size: calc(17px * var(--fs-scale,1)) !important; line-height: 1.25; color: var(--text); }
html.compact-home #stats .stat-label { font-size: calc(10px * var(--fs-scale,1)) !important; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; letter-spacing: 0; color: var(--text2); }
html.compact-home #stats .stat-finance { padding-top: 9px; gap: 0; }
html.compact-home #stats .stat-finance > div:first-child:not(.stat-prepinac) {
  position: absolute; top: calc(var(--compact-finance-label-top,42.5px) - 26px);
  left: 4px; width: calc(100% - 8px) !important; height: 24px !important; flex-shrink: 0;
}
html.compact-home #stats .stat-prepinac {
  position: absolute !important; top: var(--compact-finance-label-top,42.5px) !important; right: 4px !important;
  display: flex; align-items: center; justify-content: center;
  width: calc(100% - 8px); max-width: 100% !important; height: 16px; min-height: 0 !important; flex-shrink: 0;
  margin: 0; padding: 0 !important; border: 0; border-radius: 0 !important;
  background: transparent !important; color: var(--text2) !important; overflow: visible !important;
  font-size: calc(10px * var(--fs-scale,1)) !important; line-height: 1.25 !important; letter-spacing: 0 !important;
}
html.compact-home #stats .stat-prepinac::after { content: ''; position: absolute; inset: -27px 0 -18px -4px; width: auto; height: auto; transform: none; z-index: 3; }
html.compact-home #stats .stat-prepinac:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html.compact-home #stats .stat-finance[data-compact-finance-many] .stat-castky {
  top: 2px; height: calc(var(--compact-finance-label-top,42.5px) - 4px) !important;
  overflow: auto !important; align-items: flex-start !important; justify-content: flex-start !important; z-index: 4;
}
html.compact-home #stats .stat-finance[data-compact-finance-many] .castky-mrizka { margin-inline: auto; }
html.compact-home #stats .stat-finance[data-compact-finance-mode="hidden"] > div:first-child > div { font-size: 20px !important; line-height: 1 !important; }
html.compact-home #stats .stat-corner-ico,
html.compact-home #stats .stat:nth-child(6) .stat-val { display: none !important; }
html.compact-home #dog-sex-tabs { display: grid !important; grid-template-columns: repeat(5,minmax(0,1fr)) !important; gap: 7px !important; margin: 0 !important; align-items: stretch; }
html.compact-home #dog-sex-tabs > * { height: auto !important; min-height: var(--compact-touch); border-width: 1px !important; border-radius: 5px !important; font-size: calc(12px * var(--fs-scale,1)) !important; white-space: normal !important; overflow-wrap: anywhere; text-overflow: clip; padding: 7px 4px; }
html.compact-home .compact-list { --compact-columns: 4; --compact-list-gap: 9px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--compact-list-gap); align-items: start; }
html.compact-home .compact-list > :not([data-compact-preview]) { flex: 0 0 100%; }
html.compact-home .compact-list > [data-compact-preview] {
  flex: 0 0 calc((100% - (var(--compact-columns) - 1) * var(--compact-list-gap)) / var(--compact-columns));
  min-width: 0; margin: 0 !important; border: 1px solid #e3e8f1 !important; border-radius: 7px;
  box-shadow: 0 2px 7px #72775004 !important; --adult-soft: #f8f4ee; --adult-teal: #680ca9; --adult-ink: #401457;
}
html.compact-home .compact-summary { display: grid; grid-template-columns: 40% minmax(0,1fr); grid-template-rows: minmax(114px,1fr) auto; gap: 7px 10px; padding: 10px; min-width: 0; list-style: none; cursor: pointer; background: var(--surface); }
html.compact-home .compact-summary::-webkit-details-marker { display: none; }
html.compact-home .compact-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
html.compact-home .compact-avatar { grid-row: 1 / 3; min-width: 0; align-self: start; }
html.compact-home .compact-avatar > div, html.compact-home .compact-avatar .sq-avatar { width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; border-radius: 5px; font-size: 32px; overflow: hidden; border: 0; background: #f2f4f7; }
html.compact-home .compact-avatar img { width: 100%; height: 100%; object-fit: cover; }
html.compact-home .compact-copy { display: flex; flex-direction: column; min-width: 0; gap: 5px; }
html.compact-home .compact-name { display: flex; align-items: baseline; min-width: 0; gap: 5px; }
html.compact-home .compact-name .adult-name { min-width: 0; font-size: calc(13px * var(--fs-scale,1)) !important; line-height: 1.25; color: var(--text); white-space: normal !important; overflow-wrap: anywhere; word-break: normal; text-overflow: clip; max-height: none; overflow: visible; }
html.compact-home .compact-name .sex-badge { flex: 0 0 18px; width: 18px; height: 18px; margin: 0 !important; }
html.compact-home .compact-age { font-size: calc(12px * var(--fs-scale,1)); line-height: 1.25; color: var(--text2); overflow-wrap: anywhere; }
html.compact-home .compact-vaccine { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 1px 5px; padding: 5px; margin-top: auto; background: var(--adult-soft); color: var(--adult-ink); border-radius: 4px; min-width: 0; font-size: calc(10px * var(--fs-scale,1)); line-height: 1.25; overflow-wrap: anywhere; }
html.compact-home .compact-vaccine::before { content: '✚'; background: var(--adult-teal); color: white; grid-row: 1 / 3; align-self: center; border-radius: 3px; text-align: center; line-height: 18px; }
html.compact-home .compact-vaccine strong { font-size: calc(12px * var(--fs-scale,1)) !important; grid-column: 2; }
html.compact-home .compact-overdue { color: #88511a; background: #fff3db; }
html.compact-home .compact-kitten-status { grid-template-columns: minmax(0,1fr); }
html.compact-home .compact-kitten-status::before { display: none; }
html.compact-home .compact-kitten-status strong { grid-column: 1; min-width: 0; }
html.compact-home .compact-full-card > .pup-row { flex-wrap: wrap; }
html.compact-home .compact-full-card > .pup-row > .tap44 { min-width: min(240px,100%) !important; }
html.compact-home .compact-detail-label, html.compact-home .compact-close {
  display: flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box;
  min-width: var(--compact-touch); min-height: var(--compact-touch); padding: 5px;
  border: 1px solid #eaedd6; border-radius: 4px; background: linear-gradient(var(--surface),var(--surface2)); color: var(--accent);
  font: 600 calc(12px * var(--fs-scale,1))/1.25 'IBM Plex Sans',sans-serif; white-space: normal; overflow-wrap: anywhere;
}
html.compact-home .compact-detail-label::after { content: '›'; }
html.compact-home .compact-disclosure[open] > summary { grid-template-columns: 44px minmax(0,1fr) auto; grid-template-rows: auto; border-bottom: 1px solid var(--border); align-items: center; }
html.compact-home .compact-disclosure[open] > summary .compact-avatar { grid-row: auto; }
html.compact-home .compact-disclosure[open] > summary .compact-avatar > div, html.compact-home .compact-disclosure[open] > summary .sq-avatar { width: 44px !important; height: 44px !important; }
html.compact-home .compact-disclosure[open] > summary :is(.compact-age,.compact-vaccine) { display: none; }
html.compact-home .compact-disclosure[open] .compact-detail-label::after { content: '⌃'; }
html.compact-home .compact-full-card { min-width: 0; }
html.compact-home .compact-full-card > .adult-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 16px !important; }
html.compact-home .compact-close { margin: 12px; width: calc(100% - 24px); cursor: pointer; }
html.compact-home .ios-tab-bar { max-width: 1320px; width: calc(100% - 28px); min-height: 76px; height: auto !important; padding: 6px 0 max(6px,env(safe-area-inset-bottom,0px)); border: 1px solid #e0e4f2; border-radius: 6px 6px 0 0; background: var(--surface); box-shadow: 0 -2px 8px #50805c06; align-items: stretch; }
html.compact-home .tab-item { max-width: none; min-height: 62px; gap: 2px; border-radius: 5px; justify-content: center; opacity: 1; padding: 4px 2px; }
html.compact-home .tab-item.active { background: #f5efe6; border: 1px solid #ac84cf; }
html.compact-home .tab-icon, html.compact-home .tab-icon svg { width: 30px; height: 30px; border: 0; border-radius: 0; }
html.compact-home .tab-icon svg > rect { fill: transparent; stroke: none; }
html.compact-home .tab-icon svg > text { font-size: 36px !important; }
html.compact-home .tab-item.active .tab-icon { transform: none; filter: none; }
html.compact-home .tab-label { font-size: calc(10px * var(--fs-scale,1)) !important; line-height: 1.2 !important; font-weight: 500; color: var(--text2) !important; overflow: visible; text-overflow: clip; }
html.compact-home .tab-item.active .tab-label { color: #491266 !important; }
@media (max-width: 1100px) {
  html.compact-home .logo { grid-template-columns: 44px minmax(130px,1fr) auto auto; gap: 9px; }
  html.compact-home .logo:has(#stanice-logo:not([style*="hidden"])) { grid-template-columns: 44px minmax(130px,1fr) 44px auto auto; }
  html.compact-home #stanice-logo { grid-column: 3; width: 44px; height: 44px; }
  html.compact-home .logo:has(#stanice-logo:not([style*="hidden"])) #header-version-tile { grid-column: 4; }
  html.compact-home .logo:has(#stanice-logo:not([style*="hidden"])) #lang-pill-wrap { grid-column: 5; }
  html.compact-home .compact-statuses { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  html.compact-home .compact-overview { grid-template-columns: minmax(0,1fr); }
  html.compact-home .compact-overview #dog-sex-tabs { width: 100%; max-width: none; }
  html.compact-home #stats .stat { height: 68px; }
  html.compact-home .compact-list { --compact-columns: 3; }
  html.compact-home #header-row2 .header-left-group { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  html.compact-home .compact-list { --compact-columns: 2; }
}
@media (max-width: 600px) {
  html.compact-home body { padding-left: max(10px,env(safe-area-inset-left,0px)); padding-right: max(10px,env(safe-area-inset-right,0px)); }
  html.compact-home header { gap: 7px; padding: 8px 0 0; margin-bottom: 6px; }
  html.compact-home .logo { grid-template-columns: 40px minmax(0,1fr) 58px; gap: 5px 7px; }
  html.compact-home .logo:has(#stanice-logo:not([style*="hidden"])) { grid-template-columns: 40px minmax(0,1fr) 58px; }
  html.compact-home #stanice-logo { grid-column: 2; grid-row: 2; justify-self: end; width: 18px; height: 18px; }
  html.compact-home .logo:has(#stanice-logo:not([style*="hidden"])) #header-version-tile { grid-column: 2; }
  html.compact-home .logo:has(#stanice-logo:not([style*="hidden"])) #lang-pill-wrap { grid-column: 3; }
  html.compact-home #main-logo { width: 40px; height: 40px; grid-row: 1 / 3; }
  html.compact-home .logo-text-wrapper { grid-column: 2; grid-row: 1; }
  html.compact-home .logo .logo-text-wrapper h1 { font-size: calc(17px * var(--fs-scale,1)) !important; }
  html.compact-home #lang-pill-wrap { grid-column: 3; grid-row: 1 / 3; min-width: 0; }
  html.compact-home #header-version-tile { grid-column: 2; grid-row: 2; justify-self: start; min-height: 18px; height: 18px; }
  html.compact-home #header-version-line2 { font-size: 9px !important; }
  html.compact-home .compact-statuses { grid-row: 3; width: 100%; gap: 5px; }
  html.compact-home .compact-statuses #cloud-badge > * { padding: 5px !important; min-height: var(--compact-touch); gap: 0 4px !important; }
  html.compact-home #header-backup-tile { min-height: var(--compact-touch); padding: 5px 3px; }
  html.compact-home #header-row2 .header-left-group { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; }
  html.compact-home #header-row2 .header-left-group > :not(#co-dnes) { grid-column: span 2; }
  html.compact-home #header-row2 :is(.h-tile,.filter-btn) { font-size: calc(12px * var(--fs-scale,1)) !important; padding: 5px; }
  html.compact-home .fbtn-notes::before { display: none; }
  html.compact-home #co-dnes .top-info-tile { grid-column: span 3; min-height: var(--compact-touch); padding: 5px; }
  html.compact-home .compact-overview { gap: 6px; margin-bottom: 6px; }
  html.compact-home #stats { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 5px; }
  html.compact-home #stats .stat { height: 59px; min-height: 59px; padding: 5px 4px 12px; }
  html.compact-home #stats .stat-val { font-size: calc(15px * var(--fs-scale,1)) !important; }
  html.compact-home #stats .stat-label { font-size: calc(9px * var(--fs-scale,1)) !important; }
  html.compact-home #stats .stat-finance { padding-top: 5px; }
  html.compact-home #stats .stat-finance > div:first-child:not(.stat-prepinac) { top: calc(var(--compact-finance-label-top,29.5px) - 22px); height: 20px !important; }
  html.compact-home #stats .stat-prepinac { top: var(--compact-finance-label-top,29.5px) !important; height: 13px; font-size: calc(9px * var(--fs-scale,1)) !important; }
  html.compact-home #stats .stat-prepinac::after { inset: -22px 0 -15px -4px; }
  html.compact-home #stats .stat-corner-ico { font-size: 13px !important; }
  html.compact-home #dog-sex-tabs { gap: 5px !important; }
  html.compact-home #dog-sex-tabs > * { font-size: calc(11px * var(--fs-scale,1)) !important; padding: 4px; }
  html.compact-home .compact-list { --compact-columns: 1; --compact-list-gap: 6px; }
  html.compact-home .compact-summary { grid-template-columns: 58px minmax(0,1fr) minmax(50px,auto); grid-template-rows: auto; align-items: center; gap: 7px; padding: 6px; }
  html.compact-home .compact-avatar { grid-row: auto; }
  html.compact-home .compact-avatar > div, html.compact-home .compact-avatar .sq-avatar { width: 58px !important; height: 66px !important; }
  html.compact-home .compact-copy { gap: 3px; }
  html.compact-home .compact-name { gap: 4px; }
  html.compact-home .compact-name .adult-name { font-size: calc(12px * var(--fs-scale,1)) !important; }
  html.compact-home .compact-name .sex-badge { flex-basis: 16px; width: 16px; height: 16px; }
  html.compact-home .compact-age { font-size: calc(10px * var(--fs-scale,1)); }
  html.compact-home .compact-vaccine { display: flex; flex-wrap: wrap; gap: 1px 4px; margin-top: 0; padding: 2px 3px; font-size: calc(9px * var(--fs-scale,1)); }
  html.compact-home .compact-vaccine::before { line-height: 14px; width: 14px; }
  html.compact-home .compact-vaccine strong { font-size: inherit !important; }
  html.compact-home .compact-detail-label { max-width: 82px; font-size: calc(11px * var(--fs-scale,1)); gap: 6px; }
  html.compact-home .compact-full-card > .adult-header { grid-template-columns: minmax(0,1fr); }
  html.compact-home .ios-tab-bar { width: 100%; min-height: 68px; border-radius: 0; }
  html.compact-home .tab-label { font-size: 10px !important; }
  html.compact-home .tab-icon, html.compact-home .tab-icon svg { width: 25px; height: 25px; }
  html.compact-home .tab-item { min-height: 55px; }
}
html.compact-home.dark .compact-list > [data-compact-preview] { --adult-soft: #2b193d; --adult-ink: #f3ede3; border-color: var(--border) !important; }
html.compact-home.dark .compact-avatar > div, html.compact-home.dark .compact-avatar .sq-avatar { background: var(--surface2); }
/* 4.11.2026: tmavý režim — pevně světlý podklad „po termínu“ (#fff3db) a jeho tmavý text; barvy jako ostatní varování v tmavém režimu (#3b3210/#f0d36a). Světlý režim se nemění. */
html.compact-home.dark .compact-overdue { color: #f0d36a; background: #3b3210; }
html.compact-home.dark .tab-item.active { background: #2b193d; }
html.compact-home.dark .header-left-group .fbtn-notes { background: #2b193d; color: #d3b8e9; }
html.compact-home.dark .header-left-group .fbtn-mating { background: #493415; color: #f4d49c; }

/* Schválené pevné rozměry: mění je pouze šířka displeje, nikoli jméno nebo nastavení písma. */
html.compact-home {
  zoom: 1 !important; --compact-scale: 1; --fs-scale: var(--compact-scale);
  --compact-touch: 44px; --compact-control: 48px; --compact-card-height: 214px;
}
html.compact-home.font-small { --compact-scale: .9; }
html.compact-home.font-large { --compact-scale: 1.12; }
html.compact-home.font-xlarge { --compact-scale: 1.28; }
html.compact-home .logo { grid-auto-rows: 48px; }
html.compact-home .logo .logo-text-wrapper { height: 48px; justify-content: center; }
html.compact-home .logo .logo-text-wrapper h1 { max-height: 48px; line-height: 1.2 !important; }
html.compact-home .compact-statuses { height: 46px; }
html.compact-home .compact-statuses #cloud-badge > *, html.compact-home #header-backup-tile { height: 46px !important; min-height: 0 !important; max-height: 46px; box-sizing: border-box; }
html.compact-home .compact-statuses #cloud-badge * { font-size: inherit !important; }
/* Dopočet písma musí měřit konečnou velikost, nikoli mezikrok animace font-size. */
html.compact-home :is(#dog-sex-tabs > *, #header-row2 .h-tile, #header-row2 .filter-btn, .tab-label) {
  transition-property: background-color, border-color, color, box-shadow, transform, opacity !important;
}
html.compact-home :is(#header-row2 .h-tile, #header-row2 .filter-btn, #co-dnes .top-info-tile, #stats > .stat, #dog-sex-tabs > *, #cloud-badge > .tap44, #header-backup-tile) {
  transform: none !important;
}
html.compact-home #header-backup-tile span { font-size: inherit !important; line-height: 1.2 !important; }
html.compact-home #header-backup-tile::after { inset: 0; width: auto; height: auto; transform: none; }
html.compact-home #header-row2 :is(.h-tile,.filter-btn), html.compact-home #co-dnes .top-info-tile {
  height: var(--compact-control) !important; min-height: 0 !important; max-height: var(--compact-control);
  box-sizing: border-box; line-height: 1.2;
}
html.compact-home #co-dnes .top-tile-content { height: 31px; max-height: 31px; }
html.compact-home #co-dnes :is(.top-tile-sub,.cd-license-top) { font-size: .8em !important; line-height: 1.15 !important; }
html.compact-home #co-dnes :is(.top-tile-main,.cd-license-bottom) { font-size: 1em !important; line-height: 1.15 !important; }
html.compact-home #dog-sex-tabs > * { height: 82px !important; min-height: 0; max-height: 82px; line-height: 1.2; }
html.compact-home #stats .stat-val { height: 24px; }
html.compact-home #stats .stat-label { height: 16px; }
html.compact-home .compact-list > [data-compact-preview] {
  height: var(--compact-card-height); max-height: var(--compact-card-height);
  contain: none; transform: none !important; will-change: auto; overflow: visible;
  filter: none !important; opacity: 1 !important;
}
html.compact-home .compact-list > [data-compact-preview][style*="grayscale"] .compact-summary { filter: grayscale(.5); opacity: .6; }
html.compact-home .compact-disclosure { height: 100%; }
html.compact-home .compact-summary {
  box-sizing: border-box; height: 100%; max-height: 100%; cursor: default;
  grid-template-rows: minmax(0,1fr) 44px; overflow: hidden; border-radius: 7px;
}
html.compact-home .compact-copy { display: grid; grid-template-rows: 89px 42px; align-content: start; gap: 5px; height: 136px; overflow: hidden; }
html.compact-home .compact-name-button {
  display: grid; grid-template-rows: 49px 18px 22px; box-sizing: border-box; height: 89px; position: relative;
  width: 100%; min-width: 0; padding: 0; margin: 0; border: 0; text-align: left;
  background: none; color: inherit; font-family: inherit; cursor: pointer;
}
html.compact-home .compact-name-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
html.compact-home .compact-name { align-items: start; height: 49px; min-height: 0; }
html.compact-home .compact-name .adult-name {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  height: 49px; max-height: 49px; overflow: hidden; line-height: 16px; font-size: 13px !important;
}
html.compact-home .compact-fullname-hint {
  display: block; height: 18px; max-height: 18px; white-space: nowrap;
  text-decoration: underline; color: var(--accent); font-size: 11px; line-height: 18px;
}
html.compact-home .compact-fullname-hint[hidden] { display: block; visibility: hidden; }
html.compact-home .compact-age { height: 17px; max-height: 17px; margin-top: 5px; line-height: 17px; white-space: nowrap; }
html.compact-home .compact-vaccine { height: 42px; max-height: 42px; box-sizing: border-box; margin: 0; font-size: var(--compact-vaccine-font,11px) !important; }
html.compact-home .compact-vaccine strong { font-size: inherit !important; }
html.compact-home .compact-card-actions { display: grid; grid-template-columns: 44px minmax(44px,1fr); gap: 5px; height: 44px; min-width: 0; }
html.compact-home .compact-card-actions button {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 0; width: 100%; height: 44px; min-height: 44px; max-height: 44px; padding: 3px;
  border: 1px solid #eaedd6; border-radius: 4px; background: linear-gradient(var(--surface),var(--surface2));
  color: var(--accent); font: 600 12px/1.2 'IBM Plex Sans',sans-serif; cursor: pointer;
  white-space: nowrap !important; overflow-wrap: normal; word-break: normal;
}
html.compact-home .compact-qr::before { content: '▦'; font-size: 13px; }
html.compact-home .compact-card-actions .compact-detail-label { min-width: 0; max-width: none; }
html.compact-home .compact-detail-label.compact-tight-action::after { display: none; }
html.compact-home .ios-tab-bar { height: calc(76px + env(safe-area-inset-bottom,0px)) !important; min-height: 0; box-sizing: border-box; }
html.compact-home .tab-item { height: 62px; min-height: 0; }
html.compact-home .tab-label { height: 24px; max-height: 24px; }

/* Detail se zobrazí mimo tok seznamu. Původní uzly/handlery zůstávají pod stejnou .dog-card. */
html.compact-home .compact-detail-overlay[hidden] { display: none !important; }
html.compact-home .compact-detail-overlay {
  position: fixed; inset: 0; z-index: 1600; display: flex; align-items: center; justify-content: center;
  padding: max(14px,env(safe-area-inset-top,0px)) 12px max(14px,env(safe-area-inset-bottom,0px));
  background: #3d431670; cursor: default; box-sizing: border-box;
}
html.compact-home .compact-detail-panel { width: min(900px,100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 44px #42481830; }
html.compact-home .compact-detail-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 14px; border-bottom: 1px solid var(--border); }
html.compact-home .compact-detail-heading h2 { min-width: 0; margin: 0; font: 700 18px/1.3 'IBM Plex Sans',sans-serif; overflow-wrap: anywhere; }
html.compact-home .compact-detail-heading > button { min-width: 72px; min-height: 44px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 4px; background: var(--surface2); color: var(--accent); font: 600 13px 'IBM Plex Sans',sans-serif; cursor: pointer; }
html.compact-home.compact-modal-open body { overflow: hidden !important; }
html.compact-home .compact-name-dialog { box-sizing: border-box; margin: auto; width: min(410px,calc(100% - 28px)); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; padding: 18px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); box-shadow: 0 8px 30px #3d431630; }
html.compact-home .compact-name-dialog::backdrop { background: #3d431640; }
html.compact-home .compact-name-dialog h2 { margin: 0 0 14px; font: 700 20px/1.25 'IBM Plex Sans',sans-serif; }
html.compact-home .compact-name-dialog p { margin: 0 0 18px; font: 400 17px/1.5 'IBM Plex Sans',sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
html.compact-home .compact-name-dialog button { width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface2); color: var(--accent); font: 600 14px 'IBM Plex Sans',sans-serif; cursor: pointer; }
@media (max-width: 1100px) { html.compact-home #dog-sex-tabs > * { height: 44px !important; max-height: 44px; } }
@media (max-width: 600px) {
  html.compact-home { --compact-control: 44px; --compact-card-height: 84px; }
  html.compact-home .logo { grid-auto-rows: auto; grid-template-rows: 24px 18px 44px; }
  html.compact-home .logo .logo-text-wrapper { height: 24px; }
  html.compact-home .logo .logo-text-wrapper h1 { max-height: 24px; }
  html.compact-home .compact-statuses { height: 44px; }
  html.compact-home .compact-statuses #cloud-badge > *, html.compact-home #header-backup-tile { height: 44px !important; max-height: 44px; }
  html.compact-home #stats .stat-val { height: 20px; }
  html.compact-home #stats .stat-label { height: 13px; }
  html.compact-home .compact-summary { grid-template-columns: 54px minmax(0,1fr) 100px; grid-template-rows: minmax(0,1fr); gap: 6px; padding: 6px; }
  html.compact-home .compact-avatar > div, html.compact-home .compact-avatar .sq-avatar { width: 54px !important; height: 66px !important; }
  html.compact-home .compact-copy { grid-template-rows: 46px 20px; height: 68px; gap: 2px; }
  html.compact-home .compact-name-button { height: 46px; grid-template-rows: 30px 14px; row-gap: 2px; }
  html.compact-home .compact-name, html.compact-home .compact-name .adult-name { height: 30px; max-height: 30px; }
  html.compact-home .compact-name .adult-name { -webkit-line-clamp: 2; line-height: 15px; }
  html.compact-home .compact-fullname-hint { position: absolute; top: 15px; left: 0; width: 100%; height: 15px; max-height: 15px; line-height: 15px; }
  html.compact-home .has-long-name .compact-name, html.compact-home .has-long-name .adult-name { height: 15px; max-height: 15px; }
  html.compact-home .has-long-name .adult-name { -webkit-line-clamp: 1; }
  html.compact-home .compact-age { grid-row: 2; height: 14px; max-height: 14px; margin-top: 0; line-height: 14px; }
  html.compact-home .compact-vaccine { height: 20px; max-height: 20px; flex-wrap: nowrap; align-items: center; white-space: nowrap; }
  html.compact-home .compact-vaccine strong { flex-shrink: 0; }
  html.compact-home .compact-card-actions { grid-template-columns: 44px 52px; }
  html.compact-home .ios-tab-bar { height: calc(68px + env(safe-area-inset-bottom,0px)) !important; }
  html.compact-home .tab-item { height: 56px; }
}
@media (max-width: 359px) {
  html.compact-home .compact-summary { grid-template-columns: 42px minmax(0,1fr) 96px; gap: 4px; padding: 6px 5px; }
  html.compact-home .compact-avatar > div, html.compact-home .compact-avatar .sq-avatar { width: 42px !important; }
  html.compact-home .compact-card-actions { grid-template-columns: 44px 48px; gap: 4px; }
  html.compact-home .compact-vaccine { padding-block: 0; }
  html.compact-home .compact-vaccine > span { min-width: 0; white-space: normal; line-height: 1; }
  html.compact-home .compact-vaccine::before { flex-shrink: 0; }
  /* Pod 360 px se „Další očkování" lámalo po slabikách: u štítku s datem zůstane jen křížek a datum (25. 10. 2026). */
  html.compact-home .compact-vaccine.cv-has-date > span { display: none; }
  html.compact-home .compact-vaccine.cv-has-date { justify-content: center; }
}
/* Zásoby na úzkých telefonech (do 379 px): ikona 💊 v tlačítku Dávkování vylézala z dlaždice při největším písmu (test 25. 10. 2026), zůstane jen text. */
@media (max-width: 379px) { #supply-dosage-btn > span:first-child:not(:only-child) { display: none; } }
/* Štítek, do kterého se text nevejde ani nejmenším písmem (označí ho compact-preview.js), ukáže jen křížek a datum. */
html.compact-home .compact-vaccine.cv-tight > span { display: none; }
html.compact-home .compact-vaccine.cv-tight { justify-content: center; }

@media (max-width: 600px) {
  html.compact-home .compact-kitten-status { display: grid; height: 25px; max-height: 25px; padding: 1px 3px; gap: 0; font-size: 9px !important; line-height: 11px; }
  html.compact-home [data-compact-preview="kitten"] .compact-copy { grid-template-rows: 41px 25px; }
  html.compact-home [data-compact-preview="kitten"] .compact-name-button { height: 41px; grid-template-rows: 25px 14px; }
  html.compact-home [data-compact-preview="kitten"] .compact-name,
  html.compact-home [data-compact-preview="kitten"] .compact-name .adult-name { height: 25px; max-height: 25px; line-height: 12px; }
  html.compact-home [data-compact-preview="kitten"] .has-long-name .compact-name,
  html.compact-home [data-compact-preview="kitten"] .has-long-name .adult-name { height: 12px; max-height: 12px; }
  html.compact-home [data-compact-preview="kitten"] .compact-fullname-hint { top: 12px; height: 13px; line-height: 13px; }
}


/* Nastavení: stejná spodní lišta záložek jako u ostatních záložek (včetně zmenšení popisků na úzkých displejích). */
html.compact-settings .ios-tab-bar { max-width: 1320px; width: calc(100% - 28px); min-height: 76px; height: auto !important; padding: 6px 0 max(6px,env(safe-area-inset-bottom,0px)); border: 1px solid #e0e4f2; border-radius: 6px 6px 0 0; background: var(--surface); box-shadow: 0 -2px 8px #50805c06; align-items: stretch; }
html.compact-settings .tab-item { max-width: none; min-height: 62px; gap: 2px; border-radius: 5px; justify-content: center; opacity: 1; padding: 4px 2px; }
html.compact-settings .tab-icon, html.compact-settings .tab-icon svg { width: 30px; height: 30px; border: 0; border-radius: 0; }
html.compact-settings .tab-icon svg > rect { fill: transparent; stroke: none; }
html.compact-settings .tab-icon svg > text { font-size: 36px !important; }
html.compact-settings .tab-label { font-size: calc(10px * var(--fs-scale,1)) !important; line-height: 1.2 !important; font-weight: 500; overflow: visible; text-overflow: clip; }
@media (max-width: 600px) {
  html.compact-settings .ios-tab-bar { width: 100%; min-height: 68px; border-radius: 0; }
  html.compact-settings .tab-label { font-size: 10px !important; }
  html.compact-settings .tab-icon, html.compact-settings .tab-icon svg { width: 25px; height: 25px; }
  html.compact-settings .tab-item { min-height: 55px; }
}
html.compact-settings .ios-tab-bar { height: calc(76px + env(safe-area-inset-bottom,0px)) !important; min-height: 0; box-sizing: border-box; }
html.compact-settings .tab-item { height: 62px; min-height: 0; }
html.compact-settings .tab-label { height: 24px; max-height: 24px; }
@media (max-width: 600px) {
  html.compact-settings .ios-tab-bar { height: calc(68px + env(safe-area-inset-bottom,0px)) !important; }
  html.compact-settings .tab-item { height: 56px; }
}
html.compact-settings .ios-tab-bar { border-radius: 0; border-color: var(--pearl-edge); background: var(--pearl-face); background-color: var(--surface); box-shadow: inset 0 1px 0 var(--pearl-light), 0 -2px 12px var(--pearl-shadow); }
html.compact-settings { zoom: 1 !important; --compact-scale: 1; }
html.compact-settings.font-small { --compact-scale: .9; }
html.compact-settings.font-large { --compact-scale: 1.12; }
html.compact-settings.font-xlarge { --compact-scale: 1.28; }

/* Detail dospělé kočky (21. 10. 2026, odsouhlasený návrh „ostré pastelové rámečky“).
   Karta je jen rozcestník: ✕ v rohu, kočka se štítky, řada akcí a dva informační řádky. Rámečky 1 px v barvě dlaždice, bez stínů, jako ostatní záložky. */
/* Barvy záložek a oken psa platí v celém novém vzhledu (Petr 1. 11. 2026): dřív jen na úvodní obrazovce a ve Vrzích, takže psa otevřeného z Kalendáře, Výstav apod. měly záložky bez rámečků. */
html.compact-preview, html.compact-home, html.compact-litters {
  --ak-line: #a04628; --ak-ink: #404618;
  --ak-health-bg: #ece4d4; --ak-health-fg: #420f6e; --ak-mating-bg: #fdeaf0; --ak-mating-fg: #a02a5c;
  --ak-reminders-bg: #fff6d9; --ak-reminders-fg: #7a5a00; --ak-qr-bg: #e6f0fd; --ak-qr-fg: #1f5fb0;
  --ak-edit-bg: #f7f8f0; --ak-edit-fg: #d3643f;
}
html.compact-preview.dark, html.compact-home.dark, html.compact-litters.dark {
  --ak-line: #aeb493; --ak-ink: #f5f7ec;
  --ak-health-bg: #261638; --ak-health-fg: #ae86dc; --ak-mating-bg: #3d1a2a; --ak-mating-fg: #f2a0c0;
  --ak-reminders-bg: #3b3210; --ak-reminders-fg: #f0d36a; --ak-qr-bg: #14283f; --ak-qr-fg: #8dbcf5;
  --ak-edit-bg: #444a1f; --ak-edit-fg: #e1e7c0;
}
html.compact-home .compact-detail-panel:has(.compact-full-card > .adult-header) { position: relative; width: min(620px,100%); border: 1px solid var(--ak-line); border-radius: 5px; box-shadow: none; }
html.compact-home .compact-detail-panel:has(.compact-full-card > .adult-header) > .compact-detail-heading { position: absolute; top: 10px; right: 10px; z-index: 5; padding: 0; border: 0; background: none; }
html.compact-home .compact-detail-panel:has(.compact-full-card > .adult-header) > .compact-detail-heading h2 { display: none; }
html.compact-home .compact-detail-panel:has(.compact-full-card > .adult-header) > .compact-detail-heading > button { min-width: 44px; width: 44px; padding: 0; font-size: 0; border: 1px solid var(--ak-edit-fg); border-radius: 4px; background: var(--surface); color: var(--ak-edit-fg); }
html.compact-home .compact-detail-panel:has(.compact-full-card > .adult-header) > .compact-detail-heading > button::before { content: "✕"; font-size: 20px; line-height: 1; }
/* Detail kočky (Petr 28. 10. 2026, návrh 3): s rozbalenými koťaty byl vyšší než obrazovka a ✕ odjel při rolování pryč.
   Okno je o 120 px nižší než obrazovka (okraj na klepnutí vedle), roluje jen obsah; ✕ stojí nahoře, velké „Zavřít“ dole. */
html.compact-home .compact-detail-foot { display: none; }
html.compact-home .compact-detail-panel:has(.compact-full-card > .adult-header) { max-height: calc(100dvh - 120px); display: flex; flex-direction: column; overflow: hidden; }
html.compact-home .compact-detail-panel:has(.compact-full-card > .adult-header) > .compact-full-card { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
html.compact-home .compact-detail-panel:has(.compact-full-card > .adult-header) > .compact-detail-foot { display: block; flex: 0 0 auto; min-height: 48px; margin: 0; padding: 0 12px; border: 0; border-top: 1px solid var(--ak-line, var(--border)); background: var(--surface2); color: var(--accent); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
html.compact-home .compact-full-card > .adult-header { padding: 18px 62px 12px 18px !important; background: var(--surface) !important; border-bottom: 0; }
html.compact-home .compact-full-card .adult-quick-actions > button { display: none; }
html.compact-home .compact-full-card .adult-quick-actions:not(:has(> :not(button):not(:empty))) { display: none; }
html.compact-home .compact-full-card .adult-avatar { margin-right: 16px !important; }
html.compact-home .compact-full-card .adult-avatar > div, html.compact-home .compact-full-card .adult-avatar .sq-avatar { width: 112px !important; height: 112px !important; border-radius: 5px; border: 1px solid var(--ak-ink); }
html.compact-home .compact-full-card .adult-name { font-size: calc(26px * var(--fs-scale,1)); line-height: 1.12; font-weight: 800; }
html.compact-home .compact-full-card .adult-kind { font-size: 11px !important; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text2) !important; }
html.compact-home .compact-full-card .adult-nick { display: block; margin: 2px 0 8px; font-size: 16px !important; font-weight: 700; color: var(--accent) !important; }
html.compact-home .compact-full-card .dog-added-date { display: none; }
html.compact-home .compact-full-card .adult-chip { display: inline-block; margin: 0 5px 5px 0; padding: 3px 9px; border: 1px solid; border-radius: 4px; font-size: 14px !important; font-weight: 700; line-height: 1.3; }
html.compact-home .compact-full-card .adult-age { color: var(--ak-edit-fg) !important; background: var(--ak-edit-bg); }
html.compact-home .compact-full-card .adult-blood { color: var(--ak-mating-fg) !important; background: var(--ak-mating-bg); }
html.compact-home .compact-full-card .adult-eyes { color: var(--ak-qr-fg) !important; background: var(--ak-qr-bg); }
html.compact-home .compact-full-card > :is(.adult-health-panel, .adult-card-actions, .card-search-strip, .repro-info, .compact-close, div:not([class])) { display: none !important; }
html.compact-home .compact-full-card .adult-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 18px 10px; }
html.compact-home .compact-full-card .adult-nav-btn, html.compact-home .compact-full-card .adult-nav-row { --ak-bg: var(--ak-edit-bg); --ak-fg: var(--ak-edit-fg); }
html.compact-home .compact-full-card [data-k="health"] { --ak-bg: var(--ak-health-bg); --ak-fg: var(--ak-health-fg); }
html.compact-home .compact-full-card [data-k="mating"] { --ak-bg: var(--ak-mating-bg); --ak-fg: var(--ak-mating-fg); }
html.compact-home .compact-full-card [data-k="reminders"] { --ak-bg: var(--ak-reminders-bg); --ak-fg: var(--ak-reminders-fg); }
html.compact-home .compact-full-card [data-k="qr"] { --ak-bg: var(--ak-qr-bg); --ak-fg: var(--ak-qr-fg); }
html.compact-home .compact-full-card .adult-nav-btn { flex: 1 1 96px; min-width: 0; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 4px; box-sizing: border-box; border: 1px solid var(--ak-fg); border-radius: 4px; background: var(--ak-bg); color: var(--ak-fg); font-family: inherit; cursor: pointer; }
html.compact-home .compact-full-card .adult-nav-ico { display: flex; }
html.compact-home .compact-full-card .adult-nav-ico svg { width: 24px; height: 24px; }
html.compact-home .compact-full-card .adult-nav-label { max-width: 100%; font-size: 12.5px; font-weight: 800; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
html.compact-home .compact-full-card .adult-nav-rows { display: grid; gap: 5px; padding: 0 18px 16px; }
html.compact-home .compact-full-card .adult-nav-row { padding: 6px 12px; border: 1px solid var(--ak-fg); border-radius: 4px; background: var(--ak-bg); color: var(--text); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
html.compact-home .compact-full-card .adult-nav-row b { color: var(--ak-fg); }
html.compact-home .compact-full-card .adult-nav-row.has-past-date { --ak-fg: #955317; --ak-bg: #fff2e3; }
html.compact-home.dark .compact-full-card .adult-nav-row.has-past-date { --ak-fg: #f0b266; --ak-bg: #3b2a12; }
@media (max-width: 600px) {
  html.compact-home .compact-full-card > .adult-header { padding: 14px 56px 8px 14px !important; }
  html.compact-home .compact-full-card .adult-avatar { margin-right: 12px !important; }
  html.compact-home .compact-full-card .adult-avatar > div, html.compact-home .compact-full-card .adult-avatar .sq-avatar { width: 84px !important; height: 84px !important; }
  html.compact-home .compact-full-card .adult-name { font-size: calc(21px * var(--fs-scale,1)); }
  html.compact-home .compact-full-card .adult-nick { font-size: 14px !important; margin-bottom: 6px; }
  html.compact-home .compact-full-card .adult-chip { font-size: 12.5px !important; padding: 3px 8px; }
  html.compact-home .compact-full-card .adult-nav { padding: 4px 14px 8px; gap: 5px; }
  html.compact-home .compact-full-card .adult-nav-btn { flex-basis: 56px; min-height: 58px; gap: 3px; padding: 4px 2px; }
  html.compact-home .compact-full-card .adult-nav-ico svg { width: 22px; height: 22px; }
  html.compact-home .compact-full-card .adult-nav-label { font-size: 10px; }
  html.compact-home .compact-full-card .adult-nav-rows { padding: 0 14px 12px; }
  html.compact-home .compact-full-card .adult-nav-row { font-size: 12.5px; padding: 5px 10px; }
}
@media (max-width: 600px) {
  html.compact-home .compact-full-card .adult-nav:has(> :nth-child(6)) .adult-nav-btn { flex-basis: 70px; }
  html.compact-home .compact-full-card .adult-nav-label { hyphens: auto; -webkit-hyphens: auto; }
}
@media (max-width: 400px) {
  html.compact-home .compact-full-card .adult-nav-label { font-size: 9.5px; }
}
html.compact-home .compact-full-card .puppies-container .cat-pups-toggle-bar { margin: 0 18px 16px; border: 1px solid var(--ak-qr-fg) !important; border-radius: 4px !important; background: var(--ak-qr-bg) !important; }
@media (max-width: 600px) { html.compact-home .compact-full-card .puppies-container .cat-pups-toggle-bar { margin: 0 14px 12px; } }
html.compact-home .compact-full-card .adult-name-line { align-items: center; }

/* ── JEDNOTNÁ OKNA (21. 10. 2026): všechna vyskakovací okna ve stylu záložek ─────────────────────────────────────
   Dřív měla okna rohy 12–24 px a měkký stín, zatímco dlaždice, karty a lišta mají ostré lemování 1 px a rohy 4–5 px.
   Jedno pravidlo místo úprav desítek oken. Nemění se rozložení ani obsah, jen povrch (rohy, lemování, stín). */
html.compact-preview {
  --ak-line: #a04628;
}
html.compact-preview.dark { --ak-line: #aeb493; }
html.compact-preview .overlay > .modal,
html.compact-preview .overlay > .modal.modal-sticky,
html.compact-preview .modal.modal-sticky { border-radius: 5px !important; border: 1px solid var(--ak-line) !important; box-shadow: none !important; }
html.compact-preview .overlay > .modal > div:first-child,
html.compact-preview .overlay > .modal > div:last-child { border-radius: 0 !important; }
html.compact-preview .overlay .modal .btn,
html.compact-preview .overlay .modal button.btn-primary,
html.compact-preview .overlay .modal button.btn-close { border-radius: 4px !important; box-shadow: none !important; }
html.compact-preview .overlay .modal :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) { border-radius: 4px; }

/* Okna skládaná kódem (obyčejný div s vloženým stylem, bez třídy .modal): stejný povrch */
html.compact-preview :is([id$="-modal"],[id$="-overlay"]):not(.cl-overlay):not(.compact-detail-overlay):not(.sig-overlay) > div[style*="border-radius"] { border-radius: 5px !important; border: 1px solid var(--ak-line) !important; box-shadow: none !important; }
html.compact-preview :is([id$="-modal"],[id$="-overlay"]):not(.cl-overlay):not(.compact-detail-overlay):not(.sig-overlay) > div[style*="border-radius"] > :is(div,section,form):is(:first-child,:last-child)[style*="border-radius"] { border-radius: 0 !important; }

/* Okna s vlastním pravidlem podle ID (style.css ř. 3566): stejný povrch ve stylu záložek, vyšší specifičnost */
html.compact-preview #supply-form-modal > div,
html.compact-preview #other-income-modal > div,
html.compact-preview #expense-modal > div,
html.compact-preview #custom-event-modal > div,
html.compact-preview #cycle-predictor-overlay > div,
html.compact-preview #litter-shows-modal > div,
html.compact-preview #litter-show-form-modal > div,
html.compact-preview #pup-shows-modal > div,
html.compact-preview #pup-show-form-modal > div,
html.compact-preview #milestones-modal > div,
html.compact-preview #birth-checklist-modal > div,
html.compact-preview #whelping-modal > div,
html.compact-preview #pregnancy-calendar-overlay > div,
html.compact-preview #preg-form-overlay > div,
html.compact-preview #bulk-weight-overlay > div,
html.compact-preview #pup-health-form-modal > div,
html.compact-preview #pup-feeding-form-modal > div,
html.compact-preview #litter-dup-modal > div,
html.compact-preview #litter-docs-modal > div,
html.compact-preview #assign-orphan-pay-modal > div,
html.compact-preview #temp-form-modal > div,
html.compact-preview #reminder-form-modal > div,
html.compact-preview #bulk-pup-overlay > div,
html.compact-preview #refund-form-modal > div,
html.compact-preview #feedback-modal > div,
html.compact-preview #restore-modal > div,
html.compact-preview #reserved-list-modal > div,
html.compact-preview #mating-test-modal > div,
html.compact-preview #add-ancestor-modal > div,
html.compact-preview #kitten-cert-modal > div,
html.compact-preview #spt-form-modal > div,
html.compact-preview #mating-overlay > div,
html.compact-preview #mating-form-overlay > div,
html.compact-preview #mating-overview-overlay > div,
html.compact-preview #planned-mating-modal > div,
html.compact-preview #show-entry-modal > div,
html.compact-preview #cp-form-modal > div,
html.compact-preview #heat-form-modal > div,
html.compact-preview #health-form-modal > div,
html.compact-preview #prog-form-modal > div,
html.compact-preview #vacc-overview-modal > div {
  border-radius: 5px !important; border: 1px solid var(--ak-line) !important; box-shadow: none !important;
}

/* Malá okna <dialog> (Celé jméno, Úplný popis…): stejný povrch jako ostatní okna, bez stínu */
html.compact-preview dialog[open] { border: 1px solid var(--ak-line) !important; border-radius: 5px !important; box-shadow: none !important; }
html.compact-preview dialog[open] button { border-radius: 4px; }
/* Okno „QR kód a vizitka“ si nese vlastní vzhled ve své šabloně (js/features/exhibition-card.js) */

/* Okno koťátka na telefonu: spodní tlačítka ve dvou řádcích (Zavřít | Uložit, pod nimi Smazat | Přesunout), Uložit vždy hned vidět */
@media (max-width: 600px) {
  html.compact-preview #pup-overlay .modal-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  html.compact-preview #pup-overlay .modal-footer > div { display: contents !important; }
  html.compact-preview #pup-overlay .modal-footer button { min-height: 44px; margin: 0; width: 100%; }
  html.compact-preview #pup-overlay .modal-footer button[onclick*="closeOverlay"] { grid-row: 1; grid-column: 1; }
  html.compact-preview #pup-overlay .modal-footer button[onclick*="savePup"] { grid-row: 1; grid-column: 2; }
  html.compact-preview #pup-overlay .modal-footer #pup-delete-btn { grid-row: 2; grid-column: 1; }
  html.compact-preview #pup-overlay .modal-footer button[onclick*="promotePuppyToAdult"] { grid-row: 2; grid-column: 2; }
}

/* Karta koťátka (#pup-overlay): pole, sekce, tlačítka a náhled fotky s ostrým lemováním 1 px jako dlaždice v záložce Kočky */
html.compact-preview #pup-overlay .modal :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) { border: 1px solid var(--ak-line) !important; border-radius: 4px !important; box-shadow: none !important; }
html.compact-preview #pup-overlay .modal .btn { border: 1px solid currentColor !important; border-radius: 4px !important; box-shadow: none !important; }
html.compact-preview #pup-overlay .modal .apple-sec-group { border: 1px solid var(--ak-line) !important; border-radius: 5px !important; box-shadow: none !important; overflow: hidden; }
html.compact-preview #pup-overlay .modal .apple-sec-row { border-bottom: 1px solid var(--ak-line) !important; }
html.compact-preview #pup-overlay .modal .apple-sec-group > .apple-sec-row:last-of-type { border-bottom: 0 !important; }
html.compact-preview #pup-overlay .modal .apple-sec-ico { border: 1px solid var(--ak-line) !important; border-radius: 4px !important; }
html.compact-preview #pup-overlay .modal #p-img-preview { border: 1px solid var(--ak-line) !important; border-radius: 5px !important; }
html.compact-preview #pup-overlay .modal #p-litter-info:not(:empty) { border: 1px solid var(--ak-line); border-radius: 4px; }
/* Telefon: 5 filtrů (Všichni … Archiv) se ve všech jazycích nevejde do jedné řady (es „Esterilizados“, hu při Extra písmu) –
   dvě řady 3 + 2 přes celou šířku (27. 10. 2026). */
@media (max-width: 600px) {
html.compact-home #dog-sex-tabs { grid-template-columns: repeat(6,minmax(0,1fr)) !important; }
html.compact-home #dog-sex-tabs > :nth-child(-n+3) { grid-column: span 2; }
html.compact-home #dog-sex-tabs > :nth-child(n+4) { grid-column: span 3; }
}
