@font-face{font-family:DM Sans;src:url(./assets/dm-400.ttf);font-weight:400;font-display:swap}
@font-face{font-family:DM Sans;src:url(./assets/dm-600.ttf);font-weight:500 650;font-display:swap}
@font-face{font-family:DM Sans;src:url(./assets/dm-700.ttf);font-weight:700 900;font-display:swap}
:root {
  color-scheme: dark;
  --ink:#f3f1e7;
  --muted:#b5baaf;
  --line:#3d463d;
  --orange:#ee9672;
  --paper:#191c19;
  --surface:#232923;
  --header:#1d211d;
  --subtle:#2b332b;
  --hover:#343f34;
  --field-line:#4a554a;
  --accent:#f1aa8a;
  --highlight:#d7e5cb;
  --on-highlight:#222a20;
  --positive-bg:#472d22;
  --positive:#ffbe97;
  --negative-bg:#33364f;
  --negative:#d1d6ff;
  font:16px 'DM Sans',Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
}
:root[data-theme="light"] {
  color-scheme:light;
  --ink:#242924;
  --muted:#666b63;
  --line:#d9dbd1;
  --orange:#c3542e;
  --paper:#f9f8f3;
  --surface:#fffefa;
  --header:#fcfbf7;
  --subtle:#f4f5ec;
  --hover:#eeefe6;
  --field-line:#cfd1c7;
  --accent:#934728;
  --highlight:#303b30;
  --on-highlight:#fffefa;
  --positive-bg:#f8eadc;
  --positive:#884420;
  --negative-bg:#e7ecf9;
  --negative:#454d83;
}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,summary:focus-visible,input:focus-visible,.field:focus-within{outline:3px solid var(--orange);outline-offset:3px}button{border:0;background:transparent}button:hover{background:var(--hover)}button:disabled{cursor:default}i,[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex:none;font-style:normal}svg{display:block;width:100%;height:100%}i{width:18px;height:18px}button{display:inline-flex;align-items:center;justify-content:center;gap:8px}header{border-bottom:1px solid var(--line);background:var(--header)}.bar,main{width:min(1184px,calc(100% - 96px));margin:auto}.bar{height:75px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-weight:750;line-height:1;font-size:29px;letter-spacing:-1.6px}.brandmark{color:var(--orange);transform:rotate(-19deg);width:33px;height:33px}.brandmark svg{stroke-width:1.6}.plain-button{font-size:.89rem;font-weight:600;background:var(--surface);border:1px solid var(--field-line);border-radius:7px;min-height:35px;padding:6px 12px}.plain-button i{width:16px;height:16px}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:43px 0 31px}.intro h1{font-size:clamp(2.6rem,4.25vw,3.8rem);font-weight:600;line-height:1.08;letter-spacing:-.065em;margin:0}.intro p{font-size:1.04rem;color:var(--muted);margin:10px 0 0}.format{display:flex;padding:3px;gap:2px;border:1px solid var(--line);background:var(--subtle);border-radius:8px}.format button{font-size:.85rem;font-weight:600;min-width:44px;height:28px;border-radius:5px;color:var(--muted)}.format button[aria-pressed=true]{background:var(--highlight);color:var(--on-highlight)}.layout{display:grid;grid-template-columns:minmax(288px,.48fr) minmax(0,1fr);gap:32px;align-items:start}.source{overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:13px}.source-top,.source-name{padding:0 22px}.source-top{display:flex;align-items:center;justify-content:space-between;margin:19px 0 16px}.eyebrow{display:flex;align-items:center;gap:6px;color:var(--accent);font-size:.73rem;letter-spacing:.11em;text-transform:uppercase;font-weight:700}.eyebrow i{width:15px;height:15px}.change{font-weight:500;font-size:.82rem;color:var(--muted);gap:4px;padding:4px 0 4px 6px}.change i{width:13px;height:13px}.source-name h2{font-size:clamp(1.75rem,2.4vw,2.3rem);font-weight:600;line-height:1.1;letter-spacing:-.055em;margin:0 0 7px}.meta{color:var(--muted);font-size:.9rem}.reference-map {
  --map-tint:#e7ebd1;
  margin-top:19px;
  height:226px;
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:
    repeating-linear-gradient(90deg, transparent 0 31px, #5a6d531c 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, #5a6d531c 31px 32px),
    radial-gradient(ellipse at center, var(--map-tint), color-mix(in srgb, var(--map-tint) 65%, #6f8069));
  border-block:1px solid var(--line);
}
.reference-map img {
  width:212px;
  height:212px;
  object-fit:contain;
  filter:drop-shadow(0 4px 4px #1c2b2238);
}
.reference-map #place-tag {
  position:absolute;
  bottom:10px;
  left:12px;
  background:#f6f3e7;
  border:1px solid #74866a;
  border-radius:4px;
  font:600 .72rem monospace;
  padding:4px 6px;
  color:#334330;
}
.fields{padding:19px 22px 20px}.fields label{display:block;margin-bottom:7px;font-size:.88rem;font-weight:600}.field{display:flex;position:relative;align-items:center;gap:11px;min-height:45px;padding:8px 12px;border:1px solid var(--field-line);border-radius:7px;background:var(--surface);font-size:.96rem}.field i{width:16px;height:16px;color:var(--muted)}.field .end-icon{margin-left:auto;width:14px}.field input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;display:block;min-width:0}.field input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.field+label{margin-top:15px}.field:focus-within span{visibility:hidden}.field:focus-within input{opacity:1;outline:none;background:var(--surface);border-radius:7px;padding:0 12px 0 38px}.field:focus-within i{z-index:1;pointer-events:none}.now{min-height:37px;border:1px solid var(--line);background:var(--subtle);border-radius:7px;color:var(--ink);font-size:.88rem;font-weight:600}.now i{width:16px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;height:36px}.section-head h2,.modal-head h2{margin:0;font-size:1.38rem;font-weight:600;letter-spacing:-.045em}#cards{display:grid;gap:12px}.card {
  --globe-size:138px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:11px;
  display:grid;
  grid-template-columns:32px var(--globe-size) minmax(0,1fr) auto;
  grid-template-rows:minmax(0,1fr) auto;
  align-items:center;
  gap:8px 14px;
  padding:10px 14px;
  position:relative;
}
.destination-globe {
  grid-column:2;
  grid-row:1 / 3;
  display:block;
  width:var(--globe-size);
  height:var(--globe-size);
  object-fit:contain;
}
.city-details { min-width:0; overflow-wrap:anywhere; }
.card-actions {
  grid-column:3 / -1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px;
}
.card-action {
  min-height:34px;
  padding:5px 8px;
  border-radius:6px;
  color:var(--muted);
  font-size:.8rem;
  font-weight:600;
  white-space:nowrap;
}
.reference-action {
  border:1px solid var(--field-line);
  color:var(--ink);
}
.city-title{font-size:1.44rem;font-weight:600;line-height:1.12;letter-spacing:-.045em;margin:0 0 6px}.city-meta{display:flex;align-items:center;flex-wrap:wrap;gap:0 6px;color:var(--muted);font-size:.86rem}.city-diff{font-size:.76rem;color:var(--muted);display:flex;align-items:center;gap:4px;margin-top:5px}.city-diff i{width:13px;height:13px}.result{text-align:right}.result-time{font-size:2.23rem;font-weight:500;letter-spacing:-.07em;line-height:1.13;font-variant-numeric:tabular-nums;white-space:nowrap}.result-time small{font-size:.85rem;font-weight:600;letter-spacing:.015em;margin-left:4px}.result-date{display:flex;align-items:center;justify-content:flex-end;gap:7px;font-size:.82rem;color:var(--muted);margin-top:7px}.day{white-space:nowrap;padding:2px 6px;border-radius:4px;background:var(--positive-bg);color:var(--positive);font-size:.72rem;font-weight:600}.day.prev{background:var(--negative-bg);color:var(--negative)}#options button:hover{background:var(--hover)}.empty{padding:30px;border:1px dashed var(--line);border-radius:8px;color:var(--muted)}footer{margin:23px 0 24px;padding:17px 0 0;border-top:1px solid var(--line);display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.8rem}footer i{width:15px;height:15px}dialog{width:min(420px,calc(100% - 28px));max-height:80dvh;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:13px;padding:21px;box-shadow:0 15px 80px #19201630}dialog::backdrop{background:#19201655}.modal-head,.search{display:flex;align-items:center;justify-content:space-between;gap:8px}.icon-button{width:32px;height:32px}.search{padding:9px 12px;border:1px solid var(--line);border-radius:6px;margin:15px 0 10px}.search input{width:100%;padding:2px;border:0;outline:none;background:transparent}.search:focus-within{border-color:var(--orange)}#options{max-height:44vh;overflow:auto}#options button{width:100%;justify-content:space-between;gap:12px;padding:11px 7px;border-bottom:1px solid var(--line);text-align:left}#dst{margin-top:10px;font-size:.85rem;color:var(--accent)}#dst button{text-decoration:underline;padding:4px}
@media(min-width:1500px){.intro{margin-top:56px}}
@media(max-width:1060px){.bar,main{width:calc(100% - 56px)}.layout{gap:22px;grid-template-columns:minmax(264px,.55fr) minmax(0,1fr)}.card{--globe-size:108px;gap:10px;padding:10px}.result-time{font-size:1.9rem}.result-date{flex-wrap:wrap}.source-name,.source-top{padding-inline:17px}.fields{padding-inline:17px}}
@media(max-width:760px){.bar,main{width:calc(100% - 36px)}.bar{height:60px}.brand{font-size:25px}.brandmark{width:29px;height:29px}.intro{margin:27px 0 21px}.intro h1{font-size:2.5rem}.intro p{font-size:.94rem}.layout{grid-template-columns:1fr;gap:26px}.source{position:relative}.source-top{margin:17px 0 12px}.source-name h2{font-size:1.95rem}.reference-map{height:176px;margin-top:13px}.reference-map img{width:170px;height:170px}.fields{padding:15px 17px;display:grid;grid-template-columns:1.25fr 1fr;column-gap:10px}.field{grid-row:2;font-size:.87rem;padding-inline:8px;gap:6px}.field+label{margin:0 0 7px}.source-actions,#dst{grid-column:1/-1}.source-actions{margin-top:12px}.card{--globe-size:124px;gap:12px}.result-time{font-size:2rem}.result-date{flex-direction:column;align-items:flex-end;gap:4px;margin-top:4px}.city-title{font-size:1.25rem}.section-head{margin-bottom:12px}.destinations{min-width:0}}
@media(max-width:450px){.bar,main{width:calc(100% - 28px)}.result-time{font-size:1.73rem}.result-time small{font-size:.7rem}.city-meta,.city-diff,.result-date{font-size:.76rem}.city-meta{display:block}.format button{min-width:33px}.intro{gap:7px}.intro h1{font-size:2.15rem}.field{font-size:.8rem}.field .end-icon{display:none}.section-head h2{font-size:1.3rem}}
@media (max-width:500px) {
  .card {
    --globe-size:clamp(102px, 31vw, 142px);
    grid-template-columns:32px var(--globe-size) minmax(0,1fr);
    grid-template-rows:1fr 1fr auto;
    gap:6px 8px;
    padding:12px 10px;
  }
  .destination-globe { grid-row:1 / 3; }
  .city-details { grid-column:3; grid-row:1; align-self:end; }
  .card .result { grid-column:3; grid-row:2; align-self:start; text-align:left; }
  .card .result-date {
    flex-flow:row wrap;
    justify-content:flex-start;
    align-items:center;
    column-gap:6px;
  }
  .card-actions {
    grid-column:1 / -1;
    border-top:1px solid var(--line);
    padding-top:7px;
  }
  .card-action { min-height:38px; }
}
[hidden]{display:none!important}

.header-actions { display:flex; align-items:center; gap:8px; }
#theme[aria-pressed="true"] i { color:var(--orange); }
:root[data-theme="dark"] dialog::backdrop { background:#080a08bd; }
#options button { align-items:center; min-height:55px; padding-inline:10px; }
#options button strong, #options button small { display:block; }
#options button strong { font-weight:600; }
#options button small { color:var(--muted); font-size:.82rem; margin-top:3px; }
#options button:disabled { color:var(--muted); }
#options button:disabled:hover { background:transparent; }
#options p, .zone-offset { color:var(--muted); }
.zone-offset { flex:none; text-align:right; font-size:.82rem; font-variant-numeric:tabular-nums; }
@media (max-width:450px) {
  #theme { min-width:36px; padding-inline:8px; }
  #theme span { display:none; }
  .search input { font-size:.94rem; }
}
.picker-tabs {
  display:flex;
  gap:4px;
  padding:3px;
  margin-top:15px;
  background:var(--subtle);
  border:1px solid var(--line);
  border-radius:8px;
}
.picker-tabs button {
  min-height:35px;
  flex:1;
  border-radius:5px;
  color:var(--muted);
  font-weight:600;
}
.picker-tabs button[aria-pressed="true"] {
  background:var(--highlight);
  color:var(--on-highlight);
}
#chooser .search { margin-top:10px; }
#country-nav {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  padding:2px 0 8px;
}
#options > p { padding-inline:10px; }
.directory-credit {
  margin:12px 0 0;
  color:var(--muted);
  font-size:.8rem;
}
.directory-credit a { color:inherit; }
@media (max-width:450px) {
  #options { max-height:38dvh; }
}

footer { justify-content:space-between; flex-wrap:wrap; column-gap:18px; }
footer span { display:inline-flex; align-items:center; gap:5px; flex-wrap:wrap; }
footer a { color:inherit; text-underline-offset:2px; }

.destination-actions {
  display:flex;
  align-items:center;
  gap:6px;
  margin-inline-start:auto;
  flex-shrink:0;
}
.quiet-button {
  min-height:35px;
  padding:6px 9px;
  border-radius:7px;
  color:var(--muted);
  font-size:.89rem;
  font-weight:600;
}
.cleared {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.destinations .section-head {
  flex-wrap:wrap;
  height:auto;
  min-height:36px;
}

.source-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}
.source-actions button {
  flex:1 0 auto;
  font-size:.83rem;
  gap:6px;
  padding:6px 8px;
}
@media (max-width:760px) {
  .source-actions { margin-top:12px; }
}
.bar {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:16px;
}
.header-actions { justify-self:end; }
.app-nav {
  display:flex;
  align-items:center;
  gap:4px;
  padding:3px;
  background:var(--subtle);
  border:1px solid var(--line);
  border-radius:8px;
}
.app-nav a {
  display:grid;
  min-height:34px;
  place-items:center;
  padding:0 14px;
  border-radius:5px;
  color:var(--muted);
  font-size:.88rem;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}
.app-nav a:hover { background:var(--hover); }
.app-nav a[aria-current="page"] { background:var(--highlight); color:var(--on-highlight); }
.app-nav a:focus-visible, .schedule-scroll:focus-visible { outline:3px solid var(--orange); outline-offset:3px; }

.schedule-toolbar, .schedule-form-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.schedule-toolbar .plain-button, .schedule-form-actions button { min-height:40px; }
.primary-button { background:var(--highlight); color:var(--on-highlight); border-color:transparent; }
.primary-button:hover { background:var(--highlight); filter:brightness(.92); }
.schedule-form-actions { justify-content:flex-end; margin-top:14px; }
#save-time-form {
  padding:18px;
  margin:0 0 20px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
}
#event-editor-title {
  margin:0 0 14px;
  font-size:1.25rem;
  font-weight:600;
  letter-spacing:-.035em;
}
.schedule-fields {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:12px;
}
.schedule-fields label {
  display:grid;
  align-content:start;
  gap:5px;
  min-width:0;
  color:var(--muted);
  font-size:.86rem;
  font-weight:600;
}
.schedule-fields input, .schedule-fields select, #schedule-date {
  width:100%;
  min-width:0;
  min-height:42px;
  padding:6px 8px;
  border:1px solid var(--field-line);
  border-radius:7px;
  background:var(--surface);
  color:var(--ink);
  font:inherit;
}
.schedule-fields select {
  appearance:none;
  padding-inline-end:28px;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),
    linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 14px) 50%,calc(100% - 9px) 50%;
  background-size:5px 5px;
  background-repeat:no-repeat;
}
.schedule-fields select:focus-visible { outline:3px solid var(--orange); outline-offset:3px; }
#schedule-controls, #schedule-anchor {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px;
}
#schedule-controls { margin:0 0 12px; }
#schedule-controls .format { margin-inline-start:auto; }
#schedule-anchor { color:var(--muted); font-size:.88rem; }
#schedule-anchor label { font-weight:600; color:var(--ink); }
#schedule-date { width:auto; min-height:36px; }
#schedule-date-help { font-size:.82rem; }
#saved-status, .schedule-error {
  color:var(--muted);
  font-size:.88rem;
  margin:8px 0;
}
.schedule-error { color:var(--accent); }
#saved-status:empty, #event-error:empty { margin:0; }
.schedule-empty {
  border:1px solid var(--line);
  border-radius:12px;
  padding:38px 18px;
  text-align:center;
  background:var(--surface);
}
.schedule-empty i { width:27px; height:27px; color:var(--accent); }
.schedule-empty h2 { margin:10px 0 5px; font-size:1.25rem; font-weight:600; }
.schedule-empty p { margin:0; color:var(--muted); }
.schedule-scroll {
  max-height:64dvh;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
}
.schedule-scroll table {
  width:100%;
  border-spacing:0;
  font-size:.9rem;
}
.schedule-scroll th, .schedule-scroll td {
  padding:13px 14px;
  text-align:left;
  border-bottom:1px solid var(--line);
  border-right:1px solid var(--line);
}
.schedule-scroll tr > :last-child { border-right:0; }
.schedule-scroll tbody tr:last-child > * { border-bottom:0; }
.schedule-scroll thead th {
  position:sticky;
  top:0;
  z-index:1;
  min-width:116px;
  background:var(--subtle);
}
.schedule-scroll tr > :first-child {
  position:sticky;
  left:0;
  z-index:1;
  width:204px;
  min-width:204px;
  background:var(--surface);
}
.schedule-scroll thead tr > :first-child { z-index:2; background:var(--subtle); }
.schedule-scroll tbody th { padding:8px 13px; }
.schedule-scroll td, .schedule-card dd { font-variant-numeric:tabular-nums; }
.schedule-scroll .event-source, .schedule-card .event-source { background:var(--subtle); }
.schedule-scroll td strong, .schedule-scroll td small,
.schedule-card dd strong, .schedule-card dd small {
  display:block;
  margin-bottom:4px;
}
.schedule-scroll td strong, .schedule-card dd strong { font-size:1.11rem; }
.schedule-scroll td small, .schedule-card dd small, .load-saved small {
  color:var(--muted);
  font-size:.82rem;
}
.load-saved {
  display:block;
  width:100%;
  padding:6px 3px;
  text-align:left;
  border-radius:5px;
  overflow-wrap:anywhere;
}
.load-saved strong { font-size:1rem; }
.load-saved small { display:block; margin-top:4px; font-weight:400; }
.schedule-row-actions { display:flex; gap:4px; }
.schedule-row-actions button { padding:4px 7px; min-height:32px; font-size:.8rem; }
.schedule-cards { display:none; }

@media (max-width:760px) {
  .bar {
    height:auto;
    grid-template-columns:1fr auto;
    row-gap:7px;
    padding-block:10px 8px;
  }
  .app-nav { grid-row:2; grid-column:1/-1; }
  .app-nav a { flex:1; min-height:38px; }
  .schedule-intro { align-items:flex-start; flex-direction:column; }
  .schedule-toolbar { margin-top:3px; }
  #schedule-controls { justify-content:space-between; }
  #schedule-anchor { flex:1; }
  #schedule-date-help { flex-basis:100%; }
  .schedule-scroll { display:none; }
  .schedule-cards { display:grid; gap:12px; }
  .schedule-card {
    border:1px solid var(--line);
    border-radius:10px;
    overflow:hidden;
    background:var(--surface);
  }
  .schedule-card-head { padding:9px 13px; }
  .schedule-card dl {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1px;
    margin:0;
    padding:1px 0 0;
    background:var(--line);
  }
  .schedule-card dl > div { min-width:0; padding:10px 13px; background:var(--surface); }
  .schedule-card dt { margin-bottom:5px; color:var(--muted); font-size:.82rem; overflow-wrap:anywhere; }
  .schedule-card dd { margin:0; }
  .schedule-row-actions button { min-height:36px; }
}
@media (max-width:500px) {
  #save-time-form { padding:13px; }
  .schedule-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .event-name, .event-location { grid-column:1/-1; }
  #schedule-date { max-width:100%; }
}

.drag-handle {
  grid-column:1;
  grid-row:1 / 3;
  display:grid;
  width:100%;
  min-height:44px;
  padding:0;
  place-items:center;
  cursor:grab;
  touch-action:none;
  user-select:none;
  color:var(--muted);
  border-radius:7px;
}
.drag-handle svg { width:18px; height:22px; }
.drag-handle:hover { background:var(--hover); color:var(--ink); }
.drag-handle:disabled { visibility:hidden; }
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
#cards.is-reordering { overflow-anchor:none; cursor:grabbing; }
.card.is-dragging {
  z-index:3;
  border-color:var(--orange);
  box-shadow:0 7px 24px #080a0860;
}
.card.is-dragging .drag-handle { cursor:grabbing; }

.time-guide {
  max-width:710px;
  margin:30px 0 0;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.time-guide h2 {
  margin:0 0 8px;
  font-size:1.25rem;
  font-weight:600;
  letter-spacing:-.035em;
}
.time-guide p {
  margin:0 0 10px;
  color:var(--muted);
  line-height:1.55;
}
.time-guide p:last-child { margin-bottom:0; }
.time-guide a { color:var(--ink); text-underline-offset:3px; }
