/* Itinerary (results) look: day header with stat chips, stop cards on a numbered timeline.
   Loaded after styles.css, ui.css and fancy.css. */

/* ---------- day card & header ---------- */
.day { border-radius: 20px; }
.day-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: start;
  padding: 18px 20px 16px; border-left: 0; position: relative;
  background:
    radial-gradient(420px 160px at 0% 0%, color-mix(in srgb, var(--day-color) 26%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--day-color) 7%, var(--surface)), var(--surface));
  border-bottom: 1px solid var(--line);
}
.day-head::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--day-color), color-mix(in srgb, var(--day-color) 20%, transparent));
}
.day-num {
  display: grid; place-items: center; align-content: center; width: 58px; height: 64px; border-radius: 16px;
  background: var(--day-color); color: #fff; line-height: 1;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--day-color) 40%, transparent);
}
.day-num small { font: 700 .62rem var(--body); text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.day-num b { font: 700 1.9rem var(--disp); margin-top: 2px; }
.day-info { min-width: 0; }
.day-head .date { font-size: .78rem; letter-spacing: .08em; color: var(--day-color); font-weight: 700; text-transform: uppercase; }
.day-head h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.2; margin: 2px 0 8px; }
.day-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.day-stats span {
  font-size: .8rem; color: var(--muted); padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent); border: 1px solid var(--line);
}
.day-stats b { color: var(--ink); font-weight: 700; }
/* action toolbar: three labelled buttons, each with an icon tile and a one-line hint */
.day-head .day-actions { grid-column: 1 / -1; margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.act {
  display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 14px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--day-color) 30%, var(--line));
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.act:hover { transform: translateY(-2px); border-color: var(--day-color); box-shadow: 0 10px 22px color-mix(in srgb, var(--day-color) 22%, transparent); }
.act:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.act-ico {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  font-size: 1.1rem; font-weight: 800; color: var(--day-color); background: color-mix(in srgb, var(--day-color) 16%, var(--surface));
}
.act-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.act-txt b { font-size: .95rem; font-weight: 700; }
.act-txt small { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-live { background: var(--day-color); border-color: var(--day-color); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--day-color) 35%, transparent); }
.act-live .act-ico { background: rgba(255, 255, 255, .22); color: #fff; }
.act-live .act-txt small { color: rgba(255, 255, 255, .85); }
.act-live:hover { filter: brightness(1.08); }
.fix-link { font-weight: 700; text-decoration: underline; margin-left: 4px; }

/* ---------- edit popup ---------- */
.edit-dialog {
  width: min(640px, calc(100vw - 24px)); max-height: min(86vh, 820px); padding: 0; border: 0; border-radius: 22px;
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden;
}
.edit-dialog::backdrop { background: rgba(21, 14, 34, .62); backdrop-filter: blur(4px); }
.edit-dialog[open] { animation: rise .3s cubic-bezier(.2, .7, .2, 1); }
.ed-card { display: flex; flex-direction: column; max-height: min(86vh, 820px); }
.ed-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 20px 14px;
  background:
    radial-gradient(380px 140px at 0% 0%, color-mix(in srgb, var(--day-color) 28%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--day-color) 8%, var(--surface)), var(--surface));
  border-top: 4px solid var(--day-color);
}
.ed-head .day-num { width: 52px; height: 58px; }
.ed-head .day-num b { font-size: 1.6rem; }
.ed-date { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--day-color); }
.ed-title h3 { font-size: 1.2rem; line-height: 1.25; margin: 2px 0 0; }
.ed-x {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface-2);
  color: var(--ink); font-size: 1rem; cursor: pointer;
}
.ed-x:hover { border-color: var(--day-color); }
.ed-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 20px; padding: 5px; border-radius: 14px; background: var(--surface-2); }
.ed-tabs button {
  border: 0; border-radius: 10px; padding: 10px; font: 700 .95rem var(--body); color: var(--muted); background: transparent; cursor: pointer;
}
.ed-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.ed-msg, .ed-status { margin: 12px 20px 0; padding: 10px 14px; border-radius: 12px; font-size: .9rem; line-height: 1.4; }
.ed-msg.ok, .ed-status.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.ed-msg.bad, .ed-status.bad { background: color-mix(in srgb, #e03131 12%, var(--surface)); border: 1px solid color-mix(in srgb, #e03131 45%, transparent); }
.ed-msg { font-weight: 600; }
.ed-msg + .ed-status { margin-top: 8px; }
.ed-body { padding: 4px 20px 12px; overflow-y: auto; flex: 1; min-height: 120px; }
.ed-help { font-size: .86rem; color: var(--muted); margin: 12px 0 10px; }
.ed-search {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; flex-direction: row;
  padding: 4px 4px 4px 14px; border-radius: 14px; background: var(--bg); border: 1.5px solid var(--line);
}
.ed-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 155, 44, .18); }
.ed-search input { flex: 1; border: 0; background: transparent; font-size: 1rem; padding: 10px 6px; box-shadow: none !important; }
.ed-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ed-label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ed-empty { margin: 8px 0; }
.ed-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left;
  padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, transform .2s, background .2s;
}
.ed-row:hover { border-color: var(--day-color); transform: translateY(-1px); }
.ed-row.shut { border-color: color-mix(in srgb, #e03131 35%, var(--line)); }
.ed-row-main, .ed-stop-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ed-row-main b, .ed-stop-main b { font-size: 1rem; line-height: 1.25; }
.ed-stop-sub { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .82rem; color: var(--muted); align-items: baseline; }
.ed-stop-sub .rating { color: var(--accent-text); font-weight: 700; }
.ed-note { color: var(--day-color); font-weight: 600; }
.ed-add {
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .84rem; white-space: nowrap;
  background: var(--day-color); color: #fff;
}
.ed-row.shut .ed-add { background: transparent; color: #e03131; border: 1.5px solid #e03131; }
.hrs { font-size: .8rem; }
.hrs.est { color: var(--warn); }

.ed-stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ed-stop {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2);
}
.ed-stop .node { position: static; box-shadow: none; }
.ed-time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ed-why { font-size: .8rem; color: #e03131; line-height: 1.35; }
.ed-stop.closed { border: 1.5px solid #e03131; background: color-mix(in srgb, #e03131 9%, var(--surface-2)); }
.ed-stop.closed .node { background: #e03131; }
.ed-stop.flash { animation: flashRow 2s ease-out; }
.ed-stop-tools { display: flex; align-items: center; gap: 6px; }
.ed-order { display: flex; gap: 4px; }
.ed-icon {
  width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); font: 700 1rem var(--body); cursor: pointer;
}
.ed-icon:hover:not(:disabled) { border-color: var(--day-color); background: color-mix(in srgb, var(--day-color) 12%, var(--surface)); }
.ed-icon:disabled { opacity: .3; cursor: default; }
.ed-icon.danger:hover { border-color: #e03131; color: #e03131; background: color-mix(in srgb, #e03131 10%, var(--surface)); }
.ed-day { height: 36px; padding: 0 8px; border-radius: 10px; font: 600 .84rem var(--body); background: var(--surface); }
.ed-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px 16px;
  border-top: 1px solid var(--line); background: var(--surface); font-size: .84rem;
}
.day-note { padding: 12px 20px 0; }
.day-note.ai-note { margin: 12px 20px 0; }
.edit-panel { margin: 14px 20px 0; }

/* ---------- timeline ---------- */
.tl { padding: 14px 20px 20px; }
.tl li { grid-template-columns: 56px 1fr; gap: 24px; }
.tl .time { display: flex; flex-direction: column; align-items: flex-end; padding-top: 14px; line-height: 1.15; }
.tl .time b { font-size: 1rem; font-weight: 700; color: var(--ink); }
.tl .time small { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.tl .body { border-left: 2px dashed color-mix(in srgb, var(--day-color) 35%, var(--line)); padding: 6px 0 6px 22px; }
.tl .body::before { left: -7px; top: 18px; }
.tl li.visit .body::before, .tl li.event .body::before { display: none; }
.tl li.visit:hover .body, .tl li.event:hover .body { background: none; }

/* numbered node on the line */
.node {
  position: absolute; left: -15px; top: 12px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 800 .8rem var(--body); color: #fff; background: var(--day-color);
  box-shadow: 0 0 0 4px var(--surface), 0 4px 10px color-mix(in srgb, var(--day-color) 45%, transparent); z-index: 1;
}
.tl li.event .node { background: linear-gradient(135deg, #F7C26B, var(--accent)); color: var(--accent-ink); }

/* ---------- stop card ---------- */
.stop-card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px;
  transition: border-color .2s, box-shadow .25s, transform .25s;
}
.tl li.visit:hover .stop-card, .tl li.event:hover .stop-card {
  border-color: color-mix(in srgb, var(--day-color) 55%, var(--line));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--day-color) 14%, transparent); transform: translateY(-1px);
}
.tl li.event .stop-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface-2)), var(--surface-2) 70%);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.stop-title { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.stop-ico {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.3rem;
  background: color-mix(in srgb, var(--day-color) 16%, var(--surface));
}
.stop-name { font: 600 1.12rem/1.25 var(--disp); letter-spacing: -.01em; }
.stop-name .must { color: var(--accent); }
.stop-sub { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.stop-sub .rating { color: var(--accent-text); font-weight: 700; }
.stop-sub .rating small { color: var(--muted); font-weight: 400; }
.stop-card .stop-meta { gap: 6px; margin: 10px 0 0; align-items: center; }
.stop-card .badge { font-size: .76rem; padding: 3px 10px; }
.stop-card .pill { font-size: .74rem; padding: 2px 9px; color: var(--muted); }
.stop-card .pill.event { color: var(--ink); font-weight: 600; }
.stop-meta .web { font-size: .78rem; font-weight: 600; margin-left: auto; text-decoration: none; }
.stop-meta .web:hover { text-decoration: underline; }
.stop-desc {
  font-size: .88rem; line-height: 1.55; margin: 10px 0 0; opacity: .8; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stop-desc.open { -webkit-line-clamp: unset; display: block; opacity: .95; }

/* ---------- travel, free time, areas, meals ---------- */
.tl li.travel .body, .tl li.free .body { padding: 6px 0 6px 22px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.leg {
  display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted);
  padding: 3px 11px; border-radius: 999px; background: var(--surface); border: 1px dashed var(--line);
}
.leg.vehicle { border-style: solid; color: var(--ink); }
.tl .dir { margin-left: 2px; font-weight: 600; text-decoration: none; }
.tl .dir:hover { text-decoration: underline; }
.tl li.area-row .body { padding: 14px 0 8px 22px; color: var(--ink); }
.area-chip { display: block; font-size: .92rem; }
.area-chip b { color: var(--day-color); }
.area-chip small { color: var(--muted); font-size: .8rem; margin-left: 8px; }
.soft-card {
  display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; font-size: .9rem;
  background: color-mix(in srgb, var(--surface-2) 55%, transparent); border: 1px dashed var(--line);
}
.soft-card small { display: block; color: var(--muted); font-size: .8rem; }
.soft-ico { font-size: 1.2rem; }
.tl li.meal .body::before, .tl li.end .body::before { top: 22px; }

/* stop cards open the place details popup */
.stop-card[data-place] { cursor: pointer; }
.stop-card[data-place]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.stop-more {
  display: inline-block; margin-top: 8px; font-size: .8rem; font-weight: 700; color: var(--day-color);
  opacity: .85; transition: transform .2s, opacity .2s;
}
.stop-card:hover .stop-more { opacity: 1; transform: translateX(3px); }

/* ---------- place details popup (frame, backdrop and phone sheet come from .edit-dialog) ---------- */
.place-dialog { width: min(720px, calc(100vw - 24px)); }
.pd-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 20px 16px;
  background:
    radial-gradient(420px 160px at 0% 0%, color-mix(in srgb, var(--day-color) 30%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--day-color) 9%, var(--surface)), var(--surface));
  border-top: 4px solid var(--day-color); border-bottom: 1px solid var(--line);
}
.pd-ico {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; font-size: 1.9rem;
  background: color-mix(in srgb, var(--day-color) 18%, var(--surface));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--day-color) 22%, transparent);
}
.pd-title h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.2; margin: 3px 0 8px; }
.pd-title .must { color: var(--accent); }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pd-rating { font-weight: 800; color: var(--accent-text); margin-right: 4px; }
.pd-rating small { font-weight: 500; color: var(--muted); }
.pd-tag { font-size: .76rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.pd-body { padding: 16px 20px 18px; overflow-y: auto; flex: 1; }
.pd-body section { margin-top: 20px; }
.pd-body h4 {
  font: 700 .74rem var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--day-color);
  margin: 0 0 8px; display: flex; align-items: center; gap: 10px;
}
.pd-body h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pd-visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 0 !important; }
.pd-visit > div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.pd-visit small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.pd-visit b { font: 700 1.15rem var(--disp); font-variant-numeric: tabular-nums; }
.pd-area b { font-size: .95rem !important; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-status { margin-top: 10px; padding: 10px 14px; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; line-height: 1.45; }
.pd-status.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.pd-status.est { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.pd-status.bad { background: color-mix(in srgb, #e03131 12%, var(--surface)); border: 1.5px solid #e03131; }
.pd-status.bad b { color: #e03131; }
.pd-status .fix-link { align-self: flex-start; margin: 4px 0 0; }
.pd-desc { font-size: 1rem; line-height: 1.7; margin: 0 0 10px; max-width: 64ch; }
.pd-note { font-size: .84rem; margin: 0 0 8px; }
.pd-hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pd-hours th, .pd-hours td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.pd-hours th { font-weight: 600; width: 32%; }
.pd-hours td:last-child { text-align: right; white-space: nowrap; }
.pd-hours tr.today { background: color-mix(in srgb, var(--day-color) 12%, transparent); }
.pd-hours tr.today th { color: var(--day-color); }
.pd-hours tr.shut td:nth-child(2) { color: #e03131; font-weight: 600; }
.pd-daytag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; background: var(--day-color); }
.pd-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pd-events li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.pd-ev-time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.pd-events b { display: block; }
.pd-events small { color: var(--muted); font-size: .8rem; }
.pd-events p { margin: 4px 0 0; font-size: .86rem; opacity: .85; }
.pd-foot { flex-wrap: wrap; }
.pd-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-links .btn { text-decoration: none; padding: 8px 14px; font-size: .86rem; }

/* ---------- states ---------- */
.tl li.current .body { background: none; }
.tl li.current .stop-card { border-color: var(--day-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--day-color) 25%, transparent); }
.tl li.current .node { animation: beacon 1.6s ease-out infinite; }
.tl li.done .stop-card { opacity: .6; }
.tl li.closed .body, .tl li.closed:hover .body { background: none; border-left-color: #e03131; }
.tl li.closed .stop-card, .tl li.closed:hover .stop-card {
  border: 1.5px solid #e03131; background: color-mix(in srgb, #e03131 9%, var(--surface-2));
  box-shadow: 0 8px 24px rgba(224, 49, 49, .18);
}
.tl li.closed .node { background: #e03131; color: #fff; }
.tl li.closed .stop-ico { background: color-mix(in srgb, #e03131 18%, var(--surface)); }
.tl li.flash .body { animation: none; }
.tl li.flash .stop-card { animation: flashRow 2s ease-out; }

/* ---------- day tabs ---------- */
.day-tab { padding: 7px 16px; font-weight: 600; }
.day-tab[data-day]:not([data-day="all"])::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px;
  background: var(--day-color);
}
.day-tab[aria-pressed="true"]::before { background: #fff !important; }
.day-tab[aria-pressed="true"] { box-shadow: 0 6px 16px color-mix(in srgb, var(--day-color, var(--accent)) 30%, transparent); }
/* "All days" has no day colour: use the marigold accent so its label stays readable in dark mode too */
.day-tab[data-day="all"][aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

@media (max-width: 600px) {
  .day-head { padding: 16px 14px 14px; grid-template-columns: minmax(0, 1fr); }
  .day-head .day-num { display: inline-flex; align-items: baseline; gap: 6px; width: auto; height: auto; padding: 5px 12px; border-radius: 999px; justify-self: start; }
  .day-head .day-num b { font-size: 1.1rem; margin: 0; }
  .ed-head .day-num { width: 44px; height: 50px; border-radius: 13px; }
  .ed-head .day-num b { font-size: 1.35rem; }
  .ed-title h3 { font-size: 1.05rem; }
  .day-stats span { font-size: .76rem; padding: 2px 9px; }
  .day-head .day-actions { grid-template-columns: 1fr 1fr; }
  .act-live { grid-column: 1 / -1; }
  .act { padding: 9px 10px; gap: 8px; }
  .act-ico { width: 32px; height: 32px; }
  .edit-dialog { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .ed-card { max-height: 92vh; }
  .ed-head, .ed-body, .ed-foot { padding-left: 16px; padding-right: 16px; }
  .ed-tabs, .ed-msg, .ed-status { margin-left: 16px; margin-right: 16px; }
  .pd-head { padding: 16px; gap: 12px; }
  .pd-ico { width: 48px; height: 48px; font-size: 1.5rem; }
  .pd-body { padding: 12px 16px 16px; }
  .pd-events li { grid-template-columns: 1fr; gap: 2px; }
  .pd-links { width: 100%; }
  .pd-links .btn { flex: 1; text-align: center; }
  .pd-foot > .btn.primary { width: 100%; }
  .ed-stop { grid-template-columns: auto minmax(0, 1fr); }
  .ed-stop-tools { grid-column: 1 / -1; justify-content: flex-end; }
  .tl { padding: 12px 10px 16px; }
  .tl li { grid-template-columns: 42px 1fr; gap: 20px; }
  .tl .time b { font-size: .86rem; }
  .stop-ico { width: 36px; height: 36px; font-size: 1.1rem; }
  .stop-name { font-size: 1.02rem; }
}
@media print {
  .day-num { box-shadow: none; }
  .stop-desc { -webkit-line-clamp: unset; display: block; }
}
