/* Compact mobile workspace; desktop dashboard sizing and engines remain shared. */
.world-time-page .city-search-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.world-time-page .meeting-title-mark svg,
.world-time-page .favorite-empty-art,
.world-time-page .favorite-help {
  display: none;
}

.world-time-page .favorite-list[hidden] {
  display: none;
}

.world-time-page .settings-backdrop {
  display: none;
}

.world-time-page .favorite-empty p {
  margin: 8px 0 0;
}

@media (max-width: 1024px) {
  .world-time-page .clock-box:has(.settings-panel.active) .settings-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(30, 41, 59, 0.48);
    box-shadow: none;
    cursor: default;
  }

  .world-time-page .manual-location-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .world-time-page .manual-location-field {
    grid-column: 1 / -1;
  }

  .world-time-page .manual-location-coordinate {
    grid-column: auto;
  }

  .world-time-page .meeting-work-list {
    padding: 12px;
  }

  .world-time-page .meeting-work-row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr));
    gap: 8px;
    padding: 10px 8px;
  }

  .world-time-page .meeting-time-field {
    container-type: inline-size;
  }

  .world-time-page .meeting-work-row input[type='time'] {
    box-sizing: border-box;
    padding-inline: clamp(3px, 4cqi, 8px);
    font-size: clamp(11px, 10cqi, 14px);
    font-variant-numeric: tabular-nums;
  }

  .world-time-page .meeting-work-row input[type='time']::-webkit-datetime-edit {
    min-width: 0;
    padding: 0;
  }

  .world-time-page .meeting-work-row input[type='time']::-webkit-calendar-picker-indicator {
    flex: 0 0 14px;
    width: 14px;
    margin: 0 0 0 2px;
    padding: 0;
  }

  body.world-time-page {
    --mobile-bottom-nav-height: 72px;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    background: var(--color-background);
  }

  .world-time-page .wrap {
    flex: 1 0 auto;
    min-height: 0;
    background: linear-gradient(180deg, var(--color-surface), transparent 230px);
  }

  body.world-time-page:has(.mobile-bottom-nav) funify-site-footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding-bottom: calc(
      var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 8px
    );
  }

  .world-time-page .site-header.site-header--v2 {
    width: calc(100% - 32px);
    height: 56px;
    padding: 0;
    gap: 0;
    background: transparent;
  }

  .world-time-page .site-header .brand {
    position: static;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    width: auto;
    max-width: none;
    height: auto;
  }

  .world-time-page .brand picture,
  .world-time-page .brand img {
    display: block;
    width: 23px;
    height: 23px;
  }

  .world-time-page .brand strong {
    display: block;
    color: #00a9e8;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.2;
  }

  .world-time-page .site-header .tagline,
  .world-time-page .site-header .search {
    display: none;
  }

  .world-time-page .site-header .menu {
    position: relative;
    top: auto;
    right: auto;
    flex: 0 0 36px;
    width: 36px;
    height: 40px;
    margin: 0 -6px 0 auto;
    color: var(--color-text);
    text-shadow: none;
  }

  .world-time-page:not(.time-fullscreen-mode) .calculator-page.time-dashboard-page {
    min-height: 0;
    row-gap: 0;
    margin: 0;
    padding: 0 16px 8px;
  }

  .world-time-page.mobile-section-dashboard .calculator-page.time-dashboard-page {
    row-gap: 0;
    padding-top: 0;
  }

  .world-time-page .time-hero.tool-hero {
    display: flex;
    width: calc(100% + 32px);
    margin: 0 -16px 4px;
    padding: 4px 16px 4px;
  }

  .world-time-page .tool-hero-copy {
    width: 100%;
    max-width: none;
  }

  .world-time-page .time-hero.tool-hero [data-page-title-part='category'],
  .world-time-page .time-hero.tool-hero [data-page-title-part='description'] {
    display: none;
  }

  .world-time-page .time-hero.tool-hero [data-page-title-part='title'] {
    font-size: clamp(19px, 5.3vw, 23px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.035em;
  }

  .world-time-page .tool-hero-art {
    right: 8px;
    bottom: 20px;
    width: 128px;
    height: 84px;
    opacity: 0.2;
  }

  .world-time-page .tool-hero-waves {
    height: 90px;
  }

  .world-time-page .time-hero .tool-hero-actions {
    gap: 6px;
    margin-top: 4px;
  }

  .world-time-page .tool-hero-features {
    gap: clamp(3px, 1vw, 5px);
  }

  .world-time-page .tool-hero-features li {
    gap: 3px;
    padding: 3px clamp(3px, 1vw, 6px);
    border: 1px solid color-mix(in srgb, var(--color-border) 75%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-surface) 85%, transparent);
    font-size: clamp(8px, 2.5vw, 10px);
    font-weight: 500;
  }

  .world-time-page .tool-hero-features .feature-desktop {
    display: none;
  }

  .world-time-page .tool-hero-features svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
  }

  .world-time-page .time-hero .time-hero-utc {
    min-width: 78px;
    min-height: 40px;
    padding: 2px;
  }

  .world-time-page .time-hero .time-hero-utc > span {
    font-size: 8px;
  }

  .world-time-page .time-hero .time-hero-utc time {
    font-size: 14px;
    font-weight: 650;
  }

  .world-time-page .mobile-screen-top {
    position: relative;
    top: auto;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .world-time-page.mobile-section-meeting .mobile-screen-top,
  .world-time-page.mobile-section-favorites .mobile-screen-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .world-time-page.mobile-section-meeting .tool-hero-features,
  .world-time-page.mobile-section-favorites .tool-hero-features {
    display: none;
  }

  .world-time-page .mobile-screen-top::after,
  .world-time-page .mobile-back-button {
    display: none;
  }

  .world-time-page .mobile-screen-title {
    padding-left: 8px;
    border-left: 2px solid color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
    color: var(--color-muted);
    font-family: var(--font-family-title);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: left;
  }

  .world-time-page .time-dashboard-page #tool .time-toolbar {
    gap: 4px;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .world-time-page .time-toolbar .city-search-field,
  .world-time-page .search-box-shell {
    height: 38px;
  }

  .world-time-page .search-box-shell {
    gap: 8px;
    padding: 0 12px;
    border-color: var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    color: var(--color-muted);
    box-shadow: 0 3px 12px #24527a08;
  }

  .world-time-page .search-box-shell input[type='text'] {
    height: 36px;
    min-height: 0;
    padding: 0;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 450;
  }

  .world-time-page .group-tabs {
    height: 36px;
    border-color: var(--color-border);
  }

  .world-time-page .group-tab {
    flex: 0 0 25%;
    width: 25%;
    min-width: 68px;
    height: 36px;
    padding: 0 6px;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 650;
  }

  .world-time-page .group-tab.active {
    color: var(--color-primary);
    box-shadow: inset 0 -2px 0 var(--color-primary);
  }

  .world-time-page .time-weather-tool {
    gap: 8px;
  }

  .world-time-page .clock-board-shell {
    order: 2;
  }

  .world-time-page .widget-grid.city-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    min-height: 0;
    gap: 10px;
  }

  .world-time-page .widget-grid.city-grid .clock-box,
  .world-time-page .widget-grid.city-grid .clock-box.featured {
    grid-template-rows: 48px 92px 42px;
    min-height: 184px;
    border-radius: 12px;
    box-shadow: 0 5px 14px #203d6112;
  }

  .world-time-page .widget-top {
    height: 48px;
    min-height: 0;
    gap: 6px;
    padding: 10px 12px 0;
  }

  .world-time-page .widget-title .country {
    font-size: 10px;
  }

  .world-time-page .clock-box .widget-title {
    padding: 0 64px 0 0;
  }

  .world-time-page .widget-title .city {
    margin-top: 2px;
    font-size: 17px;
  }

  .world-time-page .widget-actions {
    gap: 1px;
  }

  .world-time-page .widget-actions button {
    width: 22px;
    height: 24px;
    min-height: 0;
  }

  .world-time-page .widget-main {
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 8px;
    min-height: 0;
    padding: 0 12px 8px;
  }

  .world-time-page .clock-box .time {
    font-size: 38px;
  }

  .world-time-page .date-line {
    font-size: 10px;
  }

  .world-time-page .weather-block {
    width: 74px;
    min-width: 0;
    max-width: none;
    height: 74px;
    grid-template-rows: 38px auto auto;
  }

  .world-time-page .weather-icon,
  .world-time-page .weather-icon svg {
    width: 50px;
    height: 38px;
  }

  .world-time-page .weather-condition {
    font-size: 10px;
  }

  .world-time-page .weather-temp {
    font-size: 13px;
  }

  .world-time-page .metric-bar {
    height: 42px;
  }

  .world-time-page .metric-item {
    gap: 3px;
    padding: 6px 3px;
  }

  .world-time-page .metric-head {
    gap: 3px;
    font-size: 9px;
  }

  .world-time-page .metric-value {
    font-size: 12px;
  }

  .world-time-page .time-tip {
    order: 3;
    min-height: 30px;
    margin: 0;
    padding: 4px 9px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-primary) 9%, var(--color-surface));
    color: var(--color-text);
    font-size: 10px;
  }

  .world-time-page.mobile-section-meeting #tool,
  .world-time-page.mobile-section-favorites #tool {
    margin-bottom: 0;
  }

  .world-time-page .time-dashboard-aside {
    margin-top: 0;
  }

  .world-time-page .dashboard-panel {
    padding: 13px;
    border-color: var(--color-border);
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: 0 6px 20px #24527a08;
  }

  .world-time-page .dashboard-panel-title {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 750;
  }

  .world-time-page .dashboard-panel-subtitle {
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 450;
  }

  .world-time-page .meeting-title-group {
    gap: 8px;
  }

  .world-time-page .meeting-title-mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 30px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-primary) 7%, transparent);
    color: var(--color-primary);
  }

  .world-time-page .meeting-title-mark svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
  }

  .world-time-page .meeting-settings-button {
    width: 32px;
    height: 32px;
    min-height: 0;
    border-color: var(--color-border);
    background: var(--color-surface);
    color: var(--color-muted);
  }

  .world-time-page .meeting-list {
    gap: 8px;
    margin-top: 12px;
  }

  .world-time-page .meeting-row {
    grid-template-columns: minmax(60px, 1fr) 44px minmax(68px, 1.15fr) 44px;
    gap: 5px;
    padding: 6px 0;
  }

  .world-time-page .meeting-city {
    color: var(--color-text);
    font-size: 11px;
  }

  .world-time-page .meeting-time,
  .world-time-page .meeting-end {
    color: var(--color-muted);
    font-size: 9px;
  }

  .world-time-page .bar-track {
    height: 10px;
  }

  .world-time-page .work-segment.is-best-meeting-time {
    background: #78d8ba;
  }

  .world-time-page .best-time {
    position: relative;
    margin-top: 14px;
    padding: 12px 12px 12px 34px;
    border-radius: 12px;
    background: color-mix(in srgb, #54d9a3 16%, var(--color-surface));
  }

  .world-time-page .best-time::before {
    content: '◷';
    position: absolute;
    top: 12px;
    left: 11px;
    color: var(--color-muted);
    font-size: 20px;
    line-height: 1;
  }

  .world-time-page .best-label {
    font-size: 9px;
  }

  .world-time-page .best-window-range {
    font-size: 14px;
  }

  .world-time-page .best-hour {
    max-height: 148px;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .world-time-page .best-summary,
  .world-time-page .best-window-excluded {
    font-size: 10px;
  }

  .world-time-page [data-mobile-section-panel='favorites'] {
    min-height: 340px;
  }

  .world-time-page .favorites-head .dashboard-panel-title {
    display: none;
  }

  .world-time-page .favorites-head,
  .world-time-page .mobile-screen-top .manage {
    display: none;
  }

  .world-time-page .favorite-row {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .world-time-page [data-mobile-section-panel='favorites']:not(:has(.favorite-list[hidden])) {
    min-height: 0;
  }

  .world-time-page
    [data-mobile-section-panel='favorites']:has(.favorite-list[hidden])
    .favorites-head {
    display: none;
  }

  .world-time-page .favorite-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 310px;
    padding: 22px 12px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 400;
    text-align: center;
  }

  .world-time-page .favorite-empty-art {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 42% 58% 56% 44%;
    background: color-mix(in srgb, var(--color-primary) 13%, var(--color-surface));
    color: var(--color-primary);
    transform: rotate(-8deg);
  }

  .world-time-page .favorite-empty-art svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
    transform: rotate(8deg);
  }

  .world-time-page .favorite-empty > strong {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 750;
    line-height: 1.2;
  }

  .world-time-page .favorite-empty p {
    max-width: 220px;
    margin: 0;
    line-height: 1.6;
  }

  .world-time-page .favorite-help {
    display: block;
    margin-top: 2px;
    font-size: 11px;
  }

  .world-time-page .favorite-help summary {
    padding: 6px 14px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
    border-radius: 999px;
    color: var(--color-primary);
    list-style: none;
    cursor: pointer;
  }

  .world-time-page .favorite-help summary::-webkit-details-marker {
    display: none;
  }

  .world-time-page .favorite-help[open] p {
    margin-top: 12px;
  }

  .world-time-page .mobile-bottom-nav {
    left: 12px;
    right: 12px;
    height: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-inline: 8px;
    border: 1px solid var(--color-border);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: color-mix(in srgb, var(--color-surface) 96%, transparent);
    box-shadow: 0 -6px 24px #24527a0a;
  }

  .world-time-page .mobile-bottom-nav button {
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 650;
  }

  .world-time-page .mobile-bottom-nav button.active {
    color: var(--color-primary);
  }

  .world-time-page .mobile-bottom-nav button.active .mobile-nav-icon {
    background: transparent;
    color: var(--color-primary);
    box-shadow: none;
  }

  .world-time-page .mobile-bottom-nav .mobile-nav-icon svg {
    width: 21px;
    height: 21px;
  }

  .world-time-page .mobile-bottom-nav [data-mobile-section='dashboard'].active svg rect,
  .world-time-page .mobile-bottom-nav [data-mobile-section='favorites'].active svg {
    fill: currentColor;
  }
}
