/* Shared finishing touches: readable controls and direct routes into the log. */
.showcase .hero-description { max-width: 490px; }
.showcase .card-note, .showcase .metric-sub, .showcase .metric .metric-label,
.showcase .confidence, .showcase .map-bottom, .showcase .map-tools > span,
.showcase .chart-axis, .showcase .dog-stats span, .showcase .horizontal-row small {
  color: #526249;
}
.showcase .card-note, .showcase .metric-sub { line-height: 1.65; }
.showcase .metric-change { font-size: 12px !important; line-height: 1.6; min-height: 32px; }
.showcase .demo-filters label { font-size: 13px; }
.showcase select, .showcase .chart-tabs button, .showcase .year-picker button { font-size: 14px; min-height: 44px; }
.showcase .explorer-nav a { font-size: 13px; padding-block: 9px; }
.showcase .explorer-nav { align-items: center; padding-block: 5px; }
.showcase .card-heading { flex-wrap: wrap; }
.showcase .metric strong { overflow-wrap: anywhere; }
.showcase .horizontal-row { grid-template-columns: minmax(90px, .8fr) minmax(60px, 1fr) auto; }
.showcase .hero-map-note { max-width: calc(100% - 36px); }
.showcase .hero-map-note small, .showcase .hero-summary span { line-height: 1.45; }
.showcase .hero-summary > div { min-width: 0; }
.showcase .hero-companion { min-height: 118px; }
.showcase .ai-chat-head { flex-wrap: wrap; }
.showcase .show-table { font-size: 13px; }
.showcase .show-table th, .showcase .show-table td small { font-size: 12px; }
.showcase .show-table td strong { font-size: 13px; }
.showcase .pricing-fine { font-size: 13px; }
.showcase .price-card .price-note { font-size: 13px !important; }
.showcase .site-header a, .app-section-nav a { touch-action: manipulation; }
.account-form input, .account-panel select { font-size: 16px; }
.account-form .form-help, .account-panel .form-help { font-size: 14px; }
.site-footer { font-size: 13px; }

.jaktlogg .topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  height: auto;
  min-height: 88px;
  gap: 12px 20px;
  padding-block: 14px;
  overflow: visible;
  z-index: 40;
}
.jaktlogg .topbar .brand { grid-column: 1; grid-row: 1; }
.jaktlogg .top-actions { grid-column: 3; grid-row: 1; align-items: center; gap: 8px; }
.jaktlogg .top-actions > .field-mode-top { display: inline-flex; }
.jaktlogg .sync-pill {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: auto;
  min-width: 0;
  max-width: 310px;
  min-height: 44px;
  padding: 8px 12px;
  display: flex;
  gap: 9px;
}
.jaktlogg .sync-pill > span:last-child { display: block; min-width: 0; }
.jaktlogg .sync-pill strong { font-size: 13px; }
.jaktlogg .sync-pill small { font-size: 12px; line-height: 1.4; color: #d1ddca; }
.jaktlogg .sync-dot { flex-shrink: 0; }
.app-tools { position: relative; }
.app-tools > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #718574;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}
.app-tools > summary::-webkit-details-marker { display: none; }
.app-tools > summary:focus-visible { outline: 3px solid #d9ba7c; outline-offset: 3px; }
.app-tools[open] > summary { background: #304b36; }
.app-tools-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 28px));
  max-height: calc(100dvh - 145px);
  overflow-y: auto;
  padding: 12px;
  color: #20372b;
  background: #fffef9;
  border: 1px solid #d9dfd4;
  border-radius: 12px;
  box-shadow: 0 14px 40px #172e222e;
  z-index: 32;
}
.app-tools-panel .tools-label { margin: 7px 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #526249; }
.jaktlogg .app-tools-panel > button,
.jaktlogg .app-tools-panel #backupMenuBtn,
.jaktlogg .app-tools-panel > a {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 11px 10px;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font-size: 14px;
  color: #20372b;
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
}
.jaktlogg .app-tools-panel button > span { display: inline; }
.app-tools-panel > a:hover, .jaktlogg .app-tools-panel button:hover { background: #edf1e7; }
.jaktlogg .app-tools-panel svg { width: 18px; height: 18px; flex-shrink: 0; }
.jaktlogg .app-tools-panel .backup-menu-panel {
  position: static;
  width: 100%;
  border: 0;
  box-shadow: none;
  background: #f0f3eb;
  margin-block: 4px;
}
.app-section-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 18px;
  padding: 4px 14px;
  border-bottom: 1px solid #d8dfd2;
  background: #f6f5ed;
}
.app-section-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px; color: #304c35; font-size: 14px; text-decoration: none; }
.app-section-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.jaktlogg :is(#seasonOverview, #seasonMapPanel, #huntDiary, #huntingAssistantPanel) { scroll-margin-top: 110px; }
.first-trip-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 25px;
  margin-block: 22px;
  border: 1px solid #b8c8ab;
  border-radius: 14px;
  background: #eaf0df;
}
.first-trip-guide h2 { margin: 6px 0 10px; font-size: 28px; }
.first-trip-guide p:not(.kicker) { margin: 0; font-size: 15px; line-height: 1.7; max-width: 620px; color: #40563c; }
.first-trip-actions { display: flex; flex-direction: column; gap: 9px; }
.first-trip-actions .btn { min-height: 44px; justify-content: center; font-size: 14px; }
.jaktlogg .stat-card small, .jaktlogg .stat-comparison-period { font-size: 12px; }
.jaktlogg .chart text, .jaktlogg .trend-chart text { font-size: 12px; }
.jaktlogg .field-help, .jaktlogg .panel-helper, .jaktlogg .map-status { font-size: 13px; line-height: 1.6; }

@media (max-width: 1050px) {
  .jaktlogg .topbar { grid-template-columns: auto 1fr; }
  .jaktlogg .top-actions { grid-column: 2; justify-self: end; }
  .jaktlogg .sync-pill { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; max-width: none; padding: 5px 10px; }
  .jaktlogg .sync-pill > span:last-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; }
  .jaktlogg .sync-pill small { margin-top: 0; }
  .jaktlogg :is(#seasonOverview, #seasonMapPanel, #huntDiary, #huntingAssistantPanel) { scroll-margin-top: 145px; }
}
@media (max-width: 800px) {
  .showcase .site-header { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(65px, .7fr); gap: 5px 10px; padding-top: 15px; padding-bottom: 8px; }
  .showcase .site-header .wordmark { grid-column: 1 / 3; grid-row: 1; font-size: 14px; letter-spacing: .08em; gap: 8px; }
  .showcase .site-header .wordmark img { width: 30px; height: 30px; }
  .showcase .site-header nav { display: contents; }
  .showcase .site-header nav > a:not(.button) { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 13px; padding: 8px 2px; border-bottom: 1px solid #b7c5ad; text-align: center; }
  .showcase .site-header nav > .sales-nav-ai { display: none; }
  .showcase .site-header .sales-nav-demo { grid-column: 1; grid-row: 2; }
  .showcase .site-header .sales-nav-field { grid-column: 2; grid-row: 2; }
  .showcase .site-header .sales-nav-price { grid-column: 3; grid-row: 2; font-weight: 700; }
  .showcase .site-header nav > .button { grid-column: 3; grid-row: 1; min-height: 44px; padding: 10px 6px; font-size: 13px; }
  .showcase .metric .metric-label { font-size: 12px; line-height: 1.4; }
  .showcase .metric-sub { font-size: 12px; }
  .showcase .hero-description { font-size: 15px; }
  .showcase .hero-copy .actions { gap: 12px; }
  .first-trip-guide { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .first-trip-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .jaktlogg .topbar { padding: 9px 14px; gap: 6px; }
  .jaktlogg .top-actions { gap: 5px; }
  .jaktlogg .top-actions > .btn { min-height: 44px; padding: 9px 10px; font-size: 13px; }
  .jaktlogg .top-actions > .btn svg { display: none; }
  .jaktlogg .top-actions > .field-mode-top span { display: inline; }
  .jaktlogg .top-actions > .field-mode-top { width: auto; }
  .jaktlogg .app-tools > summary { font-size: 13px; padding: 9px 10px; }
  .jaktlogg .sync-pill { min-height: 37px; }
  .app-section-nav { gap: 0; justify-content: space-between; }
  .app-section-nav a { font-size: 13px; padding: 8px 4px; }
  .first-trip-actions { flex-direction: column; }
  .first-trip-guide h2 { font-size: 25px; }
  .showcase .show-table { min-width: 620px; }
  .showcase .hero-summary strong { font-size: 28px; }
  .showcase .hero-summary span { font-size: 12px; }
  .showcase .hero-map-note strong { font-size: 17px; }
  .showcase .hero-map-note small { font-size: 12px; }
  .showcase .hero-companion small, .showcase .companion-cta { font-size: 12px; }
  .showcase .show-dialog-head .eyebrow { font-size: 12px; }
  .showcase .showcase-dialog input, .showcase .demo-filters select { font-size: 16px; }
}
@media print { .app-section-nav, .app-tools, .first-trip-guide { display: none; } }
