@font-face {
  font-family: "Inter Local";
  src: url("/fonts/inter-latin-var.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono Local";
  src: url("/fonts/jetbrains-mono-latin-var.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --surface-quiet: #fbfcfd;
  --ink: #101217;
  --body: #363d4b;
  --muted: #626b7c;
  --tertiary: #727b8d;
  --line: #e4e8ef;
  --line-strong: #cfd5df;
  --accent: #2563f6;
  --accent-hover: #174fd2;
  --accent-soft: #f1f5ff;
  --success: #287744;
  --warning: #8c5a00;
  --danger: #b82f39;
  --danger-soft: #fff1f2;
  --focus: rgba(37, 99, 246, 0.24);
  --shadow-popover: 0 18px 50px rgba(20, 28, 44, 0.14);
  --shadow-card: 0 8px 24px rgba(20, 28, 44, 0.07);
  --radius: 8px;
  --sans: "Inter Local", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono Local", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #101217;
  --surface: #101217;
  --surface-soft: #181b22;
  --surface-quiet: #14171d;
  --ink: #f5f7fb;
  --body: #d9dde5;
  --muted: #b1b8c5;
  --tertiary: #9ba4b3;
  --line: #2a303a;
  --line-strong: #404956;
  --accent: #77a1ff;
  --accent-hover: #9ab9ff;
  --accent-soft: #172442;
  --success: #78cc94;
  --warning: #f0b35a;
  --danger: #ff9298;
  --danger-soft: #35191d;
  --focus: rgba(119, 161, 255, 0.3);
  --shadow-popover: 0 20px 56px rgba(0, 0, 0, 0.44);
  --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.2);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
summary {
  font: inherit;
}

button,
summary {
  color: inherit;
}

button {
  border: 0;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--focus);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app {
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 34px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
}

.brand-mark .ph {
  font-size: 30px;
}

.brand-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 20px;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 27px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-copy span {
  color: var(--muted);
  font-size: 16px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.sync-button,
.icon-button,
.primary-button,
.segmented,
.segmented button,
.reorder-button,
.search-submit {
  min-height: 44px;
}

.sync-button {
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--body);
  cursor: pointer;
}

.sync-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.sync-button.is-syncing .status-icon {
  animation: spin 900ms linear infinite;
}

.sync-button.is-error {
  color: var(--danger);
  border-color: var(--danger);
}

.status-icon {
  display: inline-flex;
  font-size: 18px;
  color: var(--success);
}

.sync-button.is-error .status-icon,
.sync-button.is-syncing .status-icon {
  color: currentColor;
}

.edge-label {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.segmented {
  padding: 3px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.segmented button {
  min-width: 42px;
  padding: 0 11px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.icon-button {
  width: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.ui-icon {
  display: inline-flex;
  font-size: 18px;
}

.primary-button {
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(37, 99, 246, 0.18);
}

.primary-button:hover {
  background: var(--accent-hover);
}

.primary-button .ph {
  font-size: 18px;
}

main {
  min-width: 0;
}

.overview {
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--line);
}

.local-panel {
  min-width: 0;
}

.section-label {
  margin: 0 0 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  background: transparent;
  color: var(--body);
  font-size: 16px;
  font-weight: 700;
  cursor: default;
}

.section-label:not(:disabled) {
  color: var(--accent);
  cursor: pointer;
}

.section-label:not(:disabled):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.local-time-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.main-time {
  font-family: var(--mono);
  font-size: 58px;
  line-height: 1;
  font-weight: 720;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#app[data-hour-mode="12"] .main-time {
  font-size: 50px;
  letter-spacing: 0;
}

.main-date-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.main-date-row strong {
  font-size: 18px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

.offset-pill,
.baseline-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 700;
}

.offset-pill {
  min-height: 30px;
  padding: 0 12px;
  font-variant-numeric: tabular-nums;
}

.zone-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  color: var(--muted);
  font-size: 14px;
}

.zone-id {
  color: var(--tertiary);
}

.utc-inline {
  margin-left: 12px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.utc-inline strong {
  font-family: var(--mono);
  font-weight: 520;
}

.cities-section {
  padding: 25px 0 20px;
  display: flex;
  flex-direction: column;
}

.cities-header {
  order: 0;
  display: grid;
  gap: 16px;
}

.cities-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.cities-title-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.cities-title-copy h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: 0;
}

.cities-title-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.cities-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.searchbar {
  width: min(100%, 720px);
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.search-wrap {
  position: relative;
  min-width: 0;
  flex: 1;
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px 0 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
}

.search-wrap input::placeholder {
  color: var(--tertiary);
}

.search-wrap input:hover {
  border-color: var(--muted);
}

.search-wrap input:focus {
  border-color: var(--accent);
}

.search-submit {
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--body);
  font-weight: 700;
  cursor: pointer;
}

.search-submit:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.reorder-button {
  flex: 0 0 auto;
  padding: 0 4px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
}

.reorder-button:hover,
.reorder-button[aria-pressed="true"] {
  color: var(--accent);
}

.suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 330px;
  display: none;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-popover);
}

.suggestions.open {
  display: block;
}

.suggestion {
  min-height: 62px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.suggestion:last-child {
  border-bottom: 0;
}

.suggestion:hover,
.suggestion[aria-selected="true"] {
  background: var(--accent-soft);
}

.suggestion > div {
  min-width: 0;
}

.suggestion strong,
.suggestion-meta {
  display: block;
}

.suggestion strong {
  font-weight: 700;
}

.suggestion-meta {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-offset {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.suggestion.empty {
  color: var(--muted);
  cursor: default;
}

.feedback {
  order: 1;
  min-height: 22px;
  padding: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.feedback.success {
  color: var(--success);
}

.feedback.error {
  color: var(--danger);
}

.table-wrap {
  order: 2;
  border: 0;
}

.city-table {
  display: block;
  width: 100%;
}

.city-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.city-table tbody {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.city-table th,
.city-table td {
  width: auto;
  min-width: 0;
  padding: 0;
  display: block;
  border: 0;
  text-align: left;
}

.city-table tbody tr {
  min-width: 0;
  min-height: 224px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(76px, 1fr) auto auto;
  grid-template-areas:
    "city actions"
    "time time"
    "context offset"
    "date date";
  align-items: center;
  gap: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, opacity 140ms ease;
}

.city-table tbody tr:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-popover);
  transform: translateY(-2px);
}

.city-table tbody tr[data-baseline="true"] {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
}

.city-table tbody tr[data-reorder="true"] {
  cursor: grab;
}

.city-table tbody tr[data-reorder="true"]:active {
  cursor: grabbing;
}

.city-table tbody tr.is-dragging {
  opacity: 0.45;
}

.city-cell-slot {
  grid-area: city;
}

.time-cell {
  grid-area: time;
  align-self: center;
}

.context-cell {
  grid-area: context;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.date-cell {
  grid-area: date;
  padding-top: 11px !important;
  border-top: 1px solid var(--line) !important;
}

.offset-cell {
  grid-area: offset;
  justify-self: end;
}

.actions-cell {
  grid-area: actions;
}

.city-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.baseline-button,
.remove-button,
.move-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.baseline-button:hover,
.remove-button:hover,
.move-button:hover:not(:disabled) {
  background: var(--surface-soft);
}

.baseline-button .ph,
.baseline-button .ph-fill {
  font-size: 21px;
}

.baseline-button {
  color: var(--body);
}

.baseline-button[aria-pressed="true"] {
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.city-copy {
  min-width: 0;
}

.city-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.baseline-label {
  min-height: 23px;
  padding: 0 8px;
  border-radius: 5px;
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 11px;
}

.city-meta {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-time {
  display: block;
  font-family: var(--mono);
  font-size: 38px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#app[data-hour-mode="12"] .row-time {
  font-size: 30px;
}

.diff-label {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-chip,
.offset-value,
.date-value small {
  min-height: 26px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.contact-chip.work {
  border-color: color-mix(in srgb, var(--success) 35%, var(--line));
  background: color-mix(in srgb, var(--success) 9%, var(--surface));
  color: var(--success);
}

.contact-chip.morning {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent);
}

.contact-chip.evening {
  border-color: color-mix(in srgb, var(--warning) 34%, var(--line));
  background: color-mix(in srgb, var(--warning) 9%, var(--surface));
  color: var(--warning);
}

.contact-chip.night {
  color: var(--tertiary);
}

.offset-value {
  color: var(--body);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.date-value {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--body);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.date-value > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-value small {
  min-height: 28px;
  padding: 0 10px;
  border-width: 1px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.date-value small[data-relation="behind"] {
  border-color: color-mix(in srgb, var(--warning) 42%, var(--line));
  background: color-mix(in srgb, var(--warning) 12%, var(--surface));
  color: var(--warning);
}

.date-value small[data-relation="ahead"] {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 11%, var(--surface));
  color: var(--accent);
}

.date-value small[data-relation="same"] {
  font-weight: 700;
}

.same-zone-label {
  min-height: 23px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--muted) 32%, var(--line));
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.date-value small {
  flex: 0 0 auto;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.remove-button,
.move-button {
  color: var(--tertiary);
}

.remove-button .ph,
.move-button .ph {
  font-size: 18px;
}

.remove-button:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.move-button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.move-button.move-up .ph {
  transform: rotate(180deg);
}

.empty-state {
  min-height: 300px;
  padding: 48px 20px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.empty-state strong {
  font-size: 20px;
}

.empty-state span {
  color: var(--muted);
}

.empty-state button {
  min-height: 44px;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.trust-footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.trust-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.trust-icon {
  display: inline-flex;
  font-size: 17px;
  color: var(--success);
}

.technical-details {
  position: relative;
  flex: 0 0 auto;
}

.technical-details summary {
  min-height: 44px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.technical-content {
  position: absolute;
  z-index: 12;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(420px, calc(100vw - 36px));
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-popover);
}

.technical-content > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.technical-content strong {
  overflow-wrap: anywhere;
  color: var(--body);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.technical-content nav {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
}

.technical-content a {
  color: var(--accent);
}

.undo-toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  min-width: min(360px, calc(100vw - 36px));
  min-height: 54px;
  padding: 8px 10px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-popover);
}

.undo-toast button {
  min-width: 60px;
  min-height: 38px;
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1120px) {
  .app {
    padding: 0 24px;
  }

  .brand-copy {
    gap: 12px;
  }

  .brand-copy span,
  .edge-label {
    display: none;
  }

  .city-table tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 840px) {
  .topbar {
    min-height: 82px;
    gap: 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .brand-copy strong {
    font-size: 22px;
  }

  .sync-button {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .sync-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .primary-button {
    padding: 0 14px;
  }

  .cities-tools {
    align-items: stretch;
  }

  .searchbar {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .city-table tbody {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app {
    padding: 0 18px;
  }

  .topbar {
    padding: 14px 0;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 12px;
  }

  .toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .brand-copy strong {
    font-size: 23px;
  }

  .overview {
    padding: 26px 0 24px;
  }

  .main-time {
    font-size: 48px;
  }

  #app[data-hour-mode="12"] .main-time {
    font-size: 40px;
  }

  .main-date-row {
    gap: 10px;
  }

  .main-date-row strong {
    font-size: 16px;
  }

  .utc-inline {
    width: 100%;
    margin-left: 27px;
  }

  .cities-section {
    padding-top: 22px;
  }

  .cities-title-row {
    align-items: center;
    gap: 12px;
  }

  .cities-title-copy {
    display: block;
  }

  .cities-title-copy h1 {
    font-size: 25px;
  }

  .cities-title-copy p {
    margin-top: 4px;
    font-size: 14px;
  }

  .cities-tools {
    display: grid;
    gap: 8px;
  }

  .reorder-button {
    justify-self: end;
  }

  .search-submit {
    padding: 0 14px;
  }

  .city-table tbody tr {
    min-height: 210px;
    padding: 15px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "city actions"
      "time time"
      "context offset"
      "date date";
    gap: 11px 12px;
  }

  .city-name {
    font-size: 15px;
  }

  .row-time {
    font-size: 34px;
  }

  #app[data-hour-mode="12"] .row-time {
    font-size: 27px;
  }

  .context-cell {
    gap: 6px;
  }

  .city-table tbody tr[data-reorder="true"] {
    grid-template-areas:
      "city city"
      "actions actions"
      "time time"
      "context offset"
      "date date";
  }

  .city-table tbody tr[data-reorder="true"] .row-actions {
    padding-bottom: 8px;
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
  }

  .trust-footer {
    padding: 14px 0;
    align-items: flex-start;
  }

  .trust-summary {
    gap: 6px 10px;
  }

  .trust-summary span:nth-of-type(2),
  .trust-summary span:nth-of-type(3) {
    display: none;
  }

  .technical-content {
    right: -4px;
    grid-template-columns: 1fr;
  }

  .technical-content nav {
    grid-column: 1;
  }
}

@media (max-width: 380px) {
  .segmented button {
    min-width: 37px;
    padding: 0 8px;
  }

  .primary-button {
    width: 44px;
    padding: 0;
  }

  .primary-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .cities-title-row {
    align-items: flex-end;
    justify-content: space-between;
  }

  .searchbar {
    gap: 6px;
  }

  .search-wrap input {
    padding-right: 10px;
  }

  .city-meta {
    max-width: 165px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .primary-button,
  .empty-state button,
  .undo-toast button {
    border: 1px solid ButtonText;
  }

  .city-table tbody tr[data-baseline="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}
