/* Travel Planner — עיצוב */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #fbfcfd;
  --ink: #101820;
  --muted: #67737f;
  --line: #e5e9ee;
  --brand: #0f8a7e;
  --brand-2: #0b6a66;
  --brand-soft: #e6f4f1;
  --sand: #c98a3f;
  --danger: #c0392b;
  --pos: #157a5b;
  --neg: #b23b2e;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .04), 0 10px 30px rgba(16, 24, 32, .06);
  --shadow-lg: 0 20px 60px rgba(16, 24, 32, .16);
  --map-a: #e8eff1;
  --map-b: #dbe7e8;
  --header: rgba(244, 246, 248, .82);
}
[data-theme="dark"] {
  --bg: #0c1116;
  --surface: #131a21;
  --surface-2: #10171d;
  --ink: #e8eef4;
  --muted: #93a1ae;
  --line: #22303b;
  --brand: #2bb3a3;
  --brand-2: #1b8f83;
  --brand-soft: rgba(43, 179, 163, .13);
  --sand: #d9a25f;
  --danger: #e07063;
  --pos: #4bc79b;
  --neg: #f08070;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .6);
  --map-a: #14242a;
  --map-b: #0f1c26;
  --header: rgba(12, 17, 22, .84);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Assistant", "Heebo", "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; }
a { color: var(--brand-2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small-txt { font-size: .86rem; }
.tiny { font-size: .76rem; color: var(--muted); line-height: 1.5; }
.pos-txt { color: var(--pos); font-weight: 700; }
.neg-txt { color: var(--neg); font-weight: 700; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 30px 20px 40px; }

/* כפתורים */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; border: 1px solid transparent; padding: 11px 20px;
  font-weight: 600; font-size: .95rem; background: var(--surface); color: var(--ink);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 18px rgba(15, 138, 126, .28); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand-2); }
.btn.light { background: #fff; color: #0b3b3a; }
.btn.ghost-light { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; backdrop-filter: blur(6px); }
.btn.small { padding: 7px 13px; font-size: .82rem; }
.btn.danger { color: var(--danger); }
.btn.ghost.danger { border-color: rgba(192, 57, 43, .3); }
.btn.wide-btn { width: 100%; margin-top: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; font-size: 1.05rem;
}
.icon-btn:hover { border-color: var(--brand); }
.link-btn { background: none; border: 0; color: var(--brand-2); font-size: .82rem; padding: 0; text-decoration: underline; }

/* תגיות */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-active { color: #0c6b57; background: #e4f6ef; border-color: #bfe8da; }
.st-planned { color: #1f5fa8; background: #eaf2fc; border-color: #cfe0f6; }
.st-done { color: #6b7280; background: #f1f3f5; border-color: #e2e6ea; }
[data-theme="dark"] .st-active { background: rgba(43, 179, 163, .16); border-color: rgba(43, 179, 163, .3); color: #6ee0cb; }
[data-theme="dark"] .st-planned { background: rgba(80, 140, 220, .16); border-color: rgba(80, 140, 220, .3); color: #9dc2f5; }
[data-theme="dark"] .st-done { background: rgba(160, 170, 180, .12); border-color: rgba(160, 170, 180, .24); color: #b3bfca; }
.badge.ghost-b { background: rgba(255, 255, 255, .8); color: #33444f; border-color: rgba(255, 255, 255, .6); }
[data-theme="dark"] .badge.ghost-b { background: rgba(15, 23, 30, .7); color: #d5e2ec; border-color: rgba(255, 255, 255, .14); }
.badge.warn-b { background: rgba(255, 236, 210, .95); color: #8a5a12; border-color: #f0d3a6; }
.type-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; font-size: .74rem; font-weight: 700;
  color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc) 28%, transparent);
}
.type-chip.float { position: absolute; inset-inline-start: 10px; top: 10px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(4px); }
.meta-pill { font-size: .74rem; padding: 3px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }

/* כותרת עליונה */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--header); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), #0b5f6b); font-size: .95rem; }
.brand-txt { font-weight: 600; font-size: 1.02rem; letter-spacing: -.02em; }
.brand-txt em { font-style: normal; font-weight: 800; color: var(--brand-2); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.net-chip { font-size: .74rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); white-space: nowrap; }
.net-chip.on { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 30%, transparent); }
.net-chip.off { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 30%, transparent); }
.net-chip.wait { color: #9a6b1c; border-color: #e8cf9f; background: #fdf6e8; }
[data-theme="dark"] .net-chip.wait { background: rgba(217, 162, 95, .14); color: #e3bd84; border-color: rgba(217, 162, 95, .3); }
.back-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); font-size: 1.1rem; }
.offline-bar { background: #fff3d6; color: #7a5511; font-size: .84rem; padding: 9px 20px; text-align: center; border-bottom: 1px solid #f0dfb6; }
[data-theme="dark"] .offline-bar { background: #2a2313; color: #e5c88b; border-color: #3b3119; }

/* עמוד הבית */
.home { padding-bottom: 20px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 26px 0 20px; flex-wrap: wrap; }
.eyebrow { font-size: .78rem; text-transform: none; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.home-head h1 { margin: 4px 0 6px; }
.home-head .sub { color: var(--muted); max-width: 46ch; }
.home-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.focus-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--surface); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 26px; border: 1px solid var(--line); color: inherit;
  transition: transform .2s ease, box-shadow .25s ease;
}
.focus-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.focus-media { min-height: 260px; background-size: cover; background-position: center; }
.focus-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.focus-top { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.focus-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.focus-dest { color: var(--muted); font-size: .92rem; }
.focus-line { font-weight: 600; color: var(--brand-2); font-size: .9rem; }
.focus-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.focus-go { margin-inline-start: auto; font-weight: 700; color: var(--brand-2); font-size: .88rem; }
.avatars { display: inline-flex; align-items: center; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 16%, var(--surface));
  color: var(--c); font-weight: 800; font-size: .72rem; border: 2px solid var(--surface);
  margin-inline-end: -8px; flex: 0 0 auto;
}
.avatar.lg { width: 46px; height: 46px; font-size: .92rem; margin: 0; border-width: 0; }
.avatar.more { background: var(--surface-2); color: var(--muted); }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 6px 0 18px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; min-width: min(360px, 100%); flex: 1 1 260px; }
.search span { opacity: .55; font-size: .9rem; }
.search input { border: 0; background: none; outline: none; width: 100%; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 13px; font-size: .82rem; color: var(--muted); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.chip b { font-size: .74rem; opacity: .7; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:hover { border-color: var(--brand); color: var(--brand-2); }
.chip.on:hover { color: var(--bg); }
.grid { display: grid; gap: 18px; }
.grid.trips { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.trip-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.trip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.trip-card-link { display: contents; }
.card-del { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(12, 20, 24, .55); color: #fff; font-size: .95rem; line-height: 1; backdrop-filter: blur(4px); }
.card-del:hover { background: var(--danger); border-color: var(--danger); }
.trip-cover { height: 170px; background-size: cover; background-position: center; position: relative; }
.trip-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .18)); }
.trip-cover-top { position: absolute; inset-inline: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
.live-dot { position: absolute; inset-inline-start: 12px; bottom: 12px; background: rgba(12, 60, 55, .85); color: #fff; font-size: .72rem; padding: 4px 10px; border-radius: 999px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4be0b6; box-shadow: 0 0 0 3px rgba(75, 224, 182, .3); }
.trip-body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.trip-body h3 { font-size: 1.1rem; }
.trip-dest, .trip-dates { font-size: .84rem; color: var(--muted); }
.trip-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .82rem; }
.mini-progress { height: 5px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 10px; border: 1px solid var(--line); }
.mini-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--sand)); }
.about-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 34px 0 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.about-strip h3 { font-size: .98rem; margin-bottom: 5px; }
.about-strip p { font-size: .85rem; color: var(--muted); }
.empty { text-align: center; padding: 54px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty.small { padding: 34px 18px; }
.empty-ico { font-size: 2rem; opacity: .8; }
.empty h3 { font-size: 1.1rem; }
.empty p { color: var(--muted); max-width: 46ch; }
.empty .btn { margin-top: 8px; }
.empty.home-empty { padding: 64px 20px; }
.empty.home-empty .empty-ico { font-size: 2.4rem; }
.empty.home-empty h3 { font-size: 1.3rem; }

/* עמוד הטיול */
.trip-page { padding-top: 18px; }
.trip-hero { position: relative; border-radius: 26px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; background-image: var(--cover); background-size: cover; background-position: center; box-shadow: var(--shadow); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 18, 24, .15), rgba(6, 18, 24, .55) 55%, rgba(4, 14, 18, .88)); }
.hero-body { position: relative; padding: 26px 28px; color: #fff; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.hero-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.hero-body h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero-sub { color: rgba(255, 255, 255, .88); font-size: .92rem; }
.hero-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero-participants { font-size: .84rem; color: rgba(255, 255, 255, .85); }
.hero-btns { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.trip-hero .avatar { border-color: rgba(255, 255, 255, .35); }
.tabs { display: flex; gap: 4px; margin: 18px 0 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.tab span { font-size: .95rem; }
.tab:hover { color: var(--ink); background: var(--surface-2); }
.tab.on { background: var(--ink); color: var(--bg); }
.tab-body { padding: 22px 0 10px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head h2 { font-size: 1.35rem; }
.sec-head p { font-size: .86rem; margin-top: 3px; }

/* סרגל ימים */
.day-strip-wrap { margin: 0 -4px 20px; }
.day-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.day-pill { flex: 0 0 auto; min-width: 128px; text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 11px 14px; display: flex; flex-direction: column; gap: 1px; scroll-snap-align: start; transition: .18s; }
.day-pill:hover { border-color: var(--brand); }
.day-pill .dp-num { font-weight: 700; font-size: .92rem; }
.day-pill .dp-date { font-size: .8rem; color: var(--muted); }
.day-pill .dp-wd { font-size: .74rem; color: var(--muted); }
.day-pill .dp-count { font-size: .7rem; color: var(--muted); opacity: .8; margin-top: 3px; }
.day-pill.is-today { border-style: dashed; }
.day-pill.is-today .dp-wd { color: var(--brand-2); font-weight: 700; }
.day-pill.on { background: linear-gradient(150deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(15, 138, 126, .25); }
.day-pill.on .dp-date, .day-pill.on .dp-wd, .day-pill.on .dp-count { color: rgba(255, 255, 255, .82); }
.day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.day-head h2 { font-size: 1.28rem; }
.day-head p { font-size: .85rem; margin-top: 2px; }
.day-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.progress-pill { font-size: .76rem; padding: 6px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); font-weight: 700; }

/* ציר זמן */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.act { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; align-items: start; padding-bottom: 14px; position: relative; cursor: pointer; }
.act::before { content: ""; position: absolute; inset-inline-start: 92px; top: 34px; bottom: -4px; width: 2px; background: linear-gradient(180deg, var(--line), transparent); }
.act:last-of-type::before { display: none; }
.act-time { text-align: end; padding-top: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-variant-numeric: tabular-nums; }
.act-time b { font-size: .92rem; font-weight: 700; }
.act-time span { font-size: .76rem; color: var(--muted); }
.drag-handle { font-size: .9rem; color: var(--muted); cursor: grab; opacity: .5; margin-top: 4px; }
.act:hover .drag-handle { opacity: 1; }
.act-card { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); border-inline-end: 3px solid var(--tc, var(--brand)); transition: transform .18s ease, box-shadow .2s ease; }
.act:hover .act-card { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.act.dragging { opacity: .45; }
.act.drop-target .act-card { outline: 2px dashed var(--brand); outline-offset: 2px; }
.act-thumb { border-radius: 12px; background-size: cover; background-position: center; min-height: 78px; }
.act-thumb.ph { display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--tc) 12%, var(--surface-2)); }
.act-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.act-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.act-main h4 { font-size: 1rem; }
.act-loc { font-size: .8rem; color: var(--muted); }
.act-desc { font-size: .82rem; color: var(--muted); }
.act-notes { font-size: .8rem; background: var(--surface-2); border-radius: 9px; padding: 5px 9px; color: var(--muted); border: 1px solid var(--line); }
.done-flag { font-size: .72rem; color: var(--pos); font-weight: 700; }
.act.is-done .act-card { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--pos) 4%, var(--surface))); }
.act.is-done h4 { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.act-tools { display: flex; flex-direction: column; gap: 4px; }
.tool { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: .82rem; color: var(--muted); }
.tool:hover { border-color: var(--brand); color: var(--brand-2); }
.tool.danger:hover { border-color: var(--danger); color: var(--danger); }
.tool.tiny-btn { width: 22px; height: 22px; font-size: .7rem; border-radius: 7px; }
.tl-gap { margin: 0 0 12px 98px; text-align: start; }
.tl-gap span { display: inline-block; font-size: .74rem; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 999px; padding: 3px 11px; }
.tl-gap.clash span { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 40%, transparent); background: color-mix(in srgb, var(--neg) 7%, var(--surface)); }
.tl-end { text-align: center; font-size: .78rem; color: var(--muted); padding: 8px 0 22px; }

/* אטרקציות */
.grid.attrs { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.attr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.attr-img { height: 156px; background-size: cover; background-position: center; position: relative; background-color: var(--surface-2); }
.attr-img .ph-ico { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; opacity: .5; }
.fav-btn { position: absolute; inset-inline-end: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #8a7a4a; font-size: 1.05rem; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.fav-btn.on { color: #d99a12; background: #fff8e6; }
.attr-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.attr-body h4 { font-size: 1.03rem; }
.attr-addr { font-size: .8rem; color: var(--muted); }
.attr-sum { font-size: .84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.attr-used { font-size: .76rem; color: var(--brand-2); font-weight: 600; }
.attr-foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.attr-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.fav-flag { font-size: .76rem; color: #b8860b; font-weight: 700; }

/* מפה */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 7px 15px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--ink); color: var(--bg); }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.chips.scroll { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .9fr); gap: 16px; align-items: start; }
.map-canvas { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-svg { display: block; width: 100%; height: auto; aspect-ratio: 720 / 560; }
.simple-map { background: var(--surface-2); }
.map-grid { fill: none; stroke: color-mix(in srgb, var(--ink) 7%, transparent); stroke-width: 1; }
.map-blob { fill: color-mix(in srgb, var(--brand) 7%, transparent); }
.map-route { fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-dasharray: 7 6; stroke-linecap: round; opacity: .85; }
.pin { cursor: pointer; }
.pin-dot { stroke: var(--surface); stroke-width: 3; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.pin-ico { font-size: 14px; pointer-events: none; }
.pin-halo { fill: color-mix(in srgb, var(--brand) 18%, transparent); }
.pin-badge { fill: var(--ink); }
.pin-idx { font-size: 12px; fill: var(--bg); font-weight: 700; }
.pin-leader { stroke: var(--muted); stroke-width: 1; opacity: .45; }
.pin-label { font-size: 15px; fill: var(--ink); font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 5px; pointer-events: none; }
.pin.on .pin-label { font-size: 16px; fill: var(--brand-2); }
.pin:hover .pin-dot, .pin.on .pin-dot { stroke-width: 4; }
.map-side { display: flex; flex-direction: column; gap: 12px; }
.map-hint { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); font-size: .86rem; }
.map-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-card-img { height: 120px; background-size: cover; background-position: center; }
.map-card-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 5px; }
.map-card-body h4 { font-size: 1.02rem; }
.map-card-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.route-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow); }
.route-box.empty-box { box-shadow: none; border-style: dashed; font-size: .88rem; }
.route-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.route-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.route-list li { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.route-num { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 700; flex: 0 0 auto; }
.route-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-dist { font-size: .74rem; color: var(--muted); }
.route-sum { display: flex; gap: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.route-sum > div { display: flex; flex-direction: column; }
.route-sum b { font-size: 1rem; }
.route-sum span { font-size: .72rem; color: var(--muted); }
.map-note { font-size: .76rem; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.place-list { display: flex; flex-direction: column; gap: 8px; }
.place-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; flex-wrap: wrap; }
.place-row.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.pl-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 13%, var(--surface-2)); color: var(--tc); flex: 0 0 auto; }
.pl-main { display: flex; flex-direction: column; flex: 1; min-width: 140px; }
.pl-main b { font-size: .92rem; }
.pl-main span { font-size: .78rem; color: var(--muted); }

/* הוצאות */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: .78rem; color: var(--muted); }
.stat b { font-size: 1.28rem; letter-spacing: -.02em; }
.stat small { font-size: .72rem; color: var(--muted); }
.stat.neg b { color: var(--neg); }
.stat.pos b { color: var(--pos); }
.rate-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 9px 14px; font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.rate-list { font-variant-numeric: tabular-nums; }
.rate-strip .btn { margin-inline-start: auto; }
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 17px; box-shadow: var(--shadow); }
.panel.wide { grid-column: 1 / -1; margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h3 { font-size: 1rem; }
.bal-list { display: flex; flex-direction: column; gap: 11px; }
.bal-row { display: flex; align-items: center; gap: 10px; }
.bal-main { flex: 1; min-width: 0; }
.bal-top { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; }
.bal-bar { height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 4px 0 2px; }
.bal-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 45%, var(--sand))); }
.bal-sub { font-size: .72rem; color: var(--muted); }
.settle-list { display: flex; flex-direction: column; gap: 8px; }
.settle-row { display: flex; align-items: center; gap: 10px; font-size: .88rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 11px; flex-wrap: wrap; }
.settle-who { flex: 1; min-width: 130px; }
.settle-row .btn { margin-inline-start: auto; }
.balanced { color: var(--pos); font-weight: 600; font-size: .9rem; padding: 10px 0; }
.settled { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: .82rem; }
.settled-row { color: var(--muted); }
.cat-chart { display: flex; flex-direction: column; gap: 9px; }
.cat-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 100px; align-items: center; gap: 10px; font-size: .84rem; }
.cat-name { color: var(--muted); }
.cat-bar { height: 9px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.cat-bar i { display: block; height: 100%; border-radius: 99px; }
.cat-val { text-align: end; font-variant-numeric: tabular-nums; font-weight: 600; }
.exp-list { display: flex; flex-direction: column; gap: 8px; }
.exp-row { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; flex-wrap: wrap; }
.exp-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, var(--surface-2)); flex: 0 0 auto; }
.exp-main { display: flex; flex-direction: column; flex: 1; min-width: 150px; }
.exp-main b { font-size: .92rem; }
.exp-sub { font-size: .76rem; color: var(--muted); }
.exp-amount { display: flex; flex-direction: column; align-items: flex-end; }
.exp-amount b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.exp-amount span { font-size: .72rem; color: var(--muted); }
.exp-tools { display: flex; gap: 3px; }

/* משתתפים */
.invite-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.code { font-family: ui-monospace, monospace; letter-spacing: .14em; font-size: 1.15rem; color: var(--brand-2); background: var(--surface); padding: 2px 9px; border-radius: 8px; border: 1px dashed color-mix(in srgb, var(--brand) 40%, transparent); }
.invite-code { font-family: ui-monospace, monospace; font-size: 1.7rem; letter-spacing: .18em; color: var(--brand-2); margin: 2px 0 8px; }
.share-code { display: flex; justify-content: center; padding: 14px 0 6px; }
.share-code .invite-code { font-size: 2.3rem; margin: 0; padding: 6px 18px; border-radius: 14px; background: var(--brand-soft); border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); }
h3.invite-code { font-size: 1.7rem; line-height: 1.2; }
.invite-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.person-head { display: flex; align-items: center; gap: 11px; }
.person-head > div { display: flex; flex-direction: column; gap: 3px; }
.person-head b { font-size: 1rem; }
.me-tag { font-size: .68rem; background: var(--brand-soft); color: var(--brand-2); border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.role { font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.role-admin { color: #7c3aed; } .role-manager { color: var(--brand-2); } .role-participant { color: var(--muted); }
.person-perms { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
.perm-chip { font-size: .7rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--muted); }
.person-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.log-list { display: flex; flex-direction: column; gap: 10px; }
.log-row { display: flex; align-items: flex-start; gap: 9px; font-size: .85rem; }
.perm-table { overflow-x: auto; }
.perm-table table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 520px; }
.perm-table th, .perm-table td { text-align: start; padding: 7px 9px; border-bottom: 1px solid var(--line); }
.perm-table th { font-size: .76rem; color: var(--muted); font-weight: 600; }
.perm-table td.yes { color: var(--pos); font-weight: 700; }
.perm-table td.no { color: var(--muted); opacity: .5; }

/* מידע נוסף */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.notes-area { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: var(--surface-2); resize: vertical; font-size: .88rem; line-height: 1.6; }
.notes-area:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.row-list { display: flex; flex-direction: column; gap: 8px; }
.row-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.row-item:last-child { border-bottom: 0; }
.row-main { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.row-main b { font-size: .9rem; }
.docs { display: flex; flex-direction: column; gap: 7px; }
.doc-row { display: flex; align-items: center; gap: 9px; font-size: .86rem; flex-wrap: wrap; }
.doc-name { flex: 1; min-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload { display: inline-block; margin-top: 10px; font-size: .82rem; color: var(--brand-2); border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.upload input { display: none; }
.check-list { display: flex; flex-direction: column; gap: 2px; }
.check-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: .88rem; cursor: pointer; }
.check-row input { width: 17px; height: 17px; accent-color: var(--brand); }
.check-row span { flex: 1; }
.check-row.done span { color: var(--muted); text-decoration: line-through; }

/* ניהול */
.admin-days { display: flex; flex-direction: column; gap: 8px; }
.admin-day { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.admin-day > div { display: flex; flex-direction: column; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form .form-grid { margin-bottom: 12px; }

/* מודאל */
#modal-root { display: none; }
#modal-root.open { display: block; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 15, 20, .55); backdrop-filter: blur(3px); z-index: 60; animation: fade .18s ease; }
.modal { position: fixed; z-index: 61; inset-inline: 0; top: 50%; transform: translateY(-50%); margin: 0 auto; width: calc(100% - 26px); max-width: 570px; max-height: 88vh; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); display: flex; overflow: hidden; animation: pop .2s ease; }
.modal.wide { max-width: 780px; }
.modal-scroll { overflow-y: auto; padding: 22px 22px 18px; width: 100%; }
.modal-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); z-index: 2; }
.modal-x:hover { color: var(--ink); border-color: var(--brand); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-46%); } }

/* טופס */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-head h2 { font-size: 1.3rem; padding-inline-end: 34px; }
.form-head p { font-size: .85rem; margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.field.full { grid-column: 1 / -1; }
.field.mini { font-size: .76rem; }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--surface-2); border-radius: 11px; padding: 9px 11px; font-size: .9rem; font-weight: 500; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.field textarea { resize: vertical; line-height: 1.55; }
.field.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.field.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.field .hint { font-size: .72rem; font-weight: 500; color: var(--muted); font-style: normal; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding-top: 6px; }
.form-foot .btn.primary { margin-inline-start: auto; }
.hint-box { font-size: .8rem; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 11px; padding: 9px 12px; line-height: 1.55; }
.split-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.split-modes { display: flex; gap: 6px; flex-wrap: wrap; }
.split-opt { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.split-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-2); font-weight: 700; }
.split-opt input { accent-color: var(--brand); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .83rem; font-weight: 500; color: var(--ink); }
.check-inline input { accent-color: var(--brand); }

/* פירוט */
.detail { display: flex; flex-direction: column; gap: 9px; }
.detail h2 { font-size: 1.4rem; padding-inline-end: 30px; }
.detail-img { height: 180px; border-radius: 14px; background-size: cover; background-position: center; margin-bottom: 4px; }
.detail-top { display: flex; gap: 8px; align-items: center; }
.detail-sum { font-size: .92rem; background: var(--brand-soft); border-radius: 12px; padding: 10px 13px; }
.detail-amount { font-size: 1.7rem; font-weight: 800; } 
.detail-rows { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.detail-rows > div { display: flex; gap: 10px; font-size: .88rem; }
.detail-rows b { flex: 0 0 95px; color: var(--muted); font-weight: 600; font-size: .82rem; padding-top: 2px; }
.detail-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.receipt img { max-height: 240px; border-radius: 12px; border: 1px solid var(--line); }

/* טוסט */
#toast-root { position: fixed; inset-inline: 0; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 90; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 10px 18px; font-size: .86rem; box-shadow: var(--shadow-lg); animation: pop .2s ease; max-width: min(92vw, 520px); text-align: center; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .5s; }

/* רספונסיביות */
@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .focus-card { grid-template-columns: 1fr; }
  .focus-media { min-height: 190px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 14px; }
  .only-desktop { display: none; }
  .home-head { padding: 18px 0 14px; }
  .home-actions { width: 100%; }
  .home-actions .btn { flex: 1; }
  .trip-hero { min-height: 240px; border-radius: 20px; }
  .hero-body { padding: 18px; }
  .hero-btns { margin-inline-start: 0; width: 100%; }
  .hero-btns .btn { flex: 1; }
  .tabs { border-radius: 16px; }
  .tab { padding: 8px 12px; font-size: .84rem; }
  .act { grid-template-columns: 62px minmax(0, 1fr); gap: 8px; }
  .act::before { inset-inline-start: 69px; }
  .act-card { grid-template-columns: minmax(0, 1fr) auto; padding: 10px; }
  .act-thumb { display: none; }
  .act-time b { font-size: .84rem; }
  .tl-gap { margin-inline-start: 72px; }
  .act-tools { flex-direction: column; }
  .day-head-actions { width: 100%; }
  .day-head-actions .btn { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .cat-row { grid-template-columns: 96px minmax(0, 1fr) 82px; font-size: .78rem; }
  .modal { max-height: 92vh; border-radius: 18px; }
  .modal-scroll { padding: 18px 16px; }
  .detail-rows b { flex-basis: 80px; }
  .net-chip { font-size: .68rem; padding: 4px 8px; }
}
@media (max-width: 420px) {
  .brand-txt { font-size: .92rem; }
  .avatar { width: 26px; height: 26px; font-size: .66rem; }
  .chip { padding: 6px 10px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* מפה (Google Maps) */
.map-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.google-map { display: block; width: 100%; height: clamp(330px, 56vh, 620px); border: 0; }
#trip-map.google-map { background: var(--surface-2); }
.map-loading { display: flex; align-items: center; justify-content: center; height: 100%; font-size: .85rem; color: var(--muted); }
.gm-info { min-width: 190px; max-width: 240px; font-family: inherit; }
.gm-info-type { display: block; font-size: .68rem; font-weight: 700; margin-bottom: 2px; }
.gm-info h4 { font-size: .95rem; margin: 0 0 4px; color: #101820; }
.gm-info-addr { font-size: .76rem; color: #66727e; margin: 0 0 8px; line-height: 1.5; }
.gm-info-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- קוד משתמש וקישור צפייה ---------- */
.lock-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.lock-chip:hover { border-color: var(--brand); color: var(--brand-2); }
.lock-chip.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 40%, transparent); color: var(--brand-2); }
.lock-ico { font-size: .9rem; }
.lock-txt { display: none; }
.lock-txt-short { display: inline; }
@media (min-width: 560px) { .lock-txt { display: inline; } .lock-txt-short { display: none; } }

.ro-chip { font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); white-space: nowrap; }
.ro-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 14px auto 0; padding: 10px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px dashed var(--line); color: var(--muted); font-size: .84rem;
}
.ro-bar.shared { border-style: solid; background: var(--brand-soft); color: var(--brand-2); }
.ro-bar span { flex: 1; min-width: 200px; }

.loading-box { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px 20px; color: var(--muted); font-size: .9rem; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: tspin .8s linear infinite; }
@keyframes tspin { to { transform: rotate(360deg); } }

.share-facts { display: grid; gap: 8px; margin-top: 4px; }
.share-facts > div { border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; gap: 3px; }
.share-facts b { font-size: .82rem; }
.share-facts span { font-size: .8rem; color: var(--muted); line-height: 1.55; }

.code-state { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .86rem; }
.code-state.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 32%, transparent); color: var(--brand-2); font-weight: 700; }
.code-form { border-top: 1px solid var(--line); padding-top: 12px; }


/* ---------- ספירה לאחור ומזג אוויר ---------- */
.trip-dash { display: grid; grid-template-columns: minmax(200px, .78fr) 1.5fr; gap: 12px; margin: 14px 0 2px; }
.dash-count { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; }
.count-big { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.count-big b { font-size: clamp(2rem, 6vw, 2.7rem); line-height: 1; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.count-big span { font-size: .84rem; font-weight: 700; color: var(--muted); }
.count-cap { font-weight: 700; font-size: .9rem; }
.count-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 8px 0 6px; }
.count-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.dash-wx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wx-head b { font-size: .95rem; }
.wx-avg { font-size: 1.05rem; font-weight: 800; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.wx-avg-line { font-size: .8rem; color: var(--muted); }
.wx-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.wx-day { flex: 0 0 auto; display: grid; grid-template-columns: auto auto; align-items: center; justify-content: start; column-gap: 5px; min-width: 92px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px 11px; font: inherit; color: var(--ink); cursor: pointer; text-align: start; transition: .18s; }
.wx-day:hover { border-color: var(--brand); }
.wx-day.on { border-color: var(--brand); background: var(--brand-soft); }
.wx-day[data-today="1"] { border-style: dashed; }
.wx-d { grid-column: 1 / -1; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.wx-ico { grid-column: 1; grid-row: 2; font-size: 1.05rem; line-height: 1; }
.wx-temp { grid-column: 2; grid-row: 2; font-size: .86rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wx-min { grid-column: 2; grid-row: 3; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wx-state { font-size: .82rem; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 9px 11px; line-height: 1.55; }
.wx-credit { font-size: .72rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.wx-credit a { color: var(--brand-2); }
.day-wx { font-size: .82rem; font-weight: 700; color: var(--brand-2); margin-top: 3px; }
.dp-wx { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; margin-top: 2px; }
.day-pill.on .dp-wx { color: #fff; }
@media (max-width: 760px) {
  .trip-dash { grid-template-columns: 1fr; gap: 10px; }
  .dash-count { padding: 13px 15px; }
}

/* ---------- ענן ומכשירים מקושרים ---------- */
.cloud-status { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .9rem; font-weight: 700; color: var(--pos); }
.cloud-status::before { content: '☁️'; font-size: 1rem; }
.cloud-status[data-state="offline"],
.cloud-status[data-state="error"],
.cloud-status[data-state="disabled"] { color: var(--muted); }
.cloud-devices { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cloud-devices li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.cloud-devices li.mine { border-color: var(--brand); }
.cloud-who { font-weight: 700; font-size: .9rem; }
.cloud-who b { font-size: .74rem; font-weight: 700; color: var(--brand); }
.cloud-role { font-size: .78rem; color: var(--muted); }
.cloud-devices code { margin-inline-start: auto; font-size: .74rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 2px 7px; direction: ltr; }
.cloud-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-size: .9rem; }
.cloud-code .invite-code { font-size: 1.15rem; margin: 0; }
.cloud-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cloud-foot .tiny { max-width: 52ch; }
