/* GRIND — warm off-white, violet + coffee, Taster "neuron" assistant language */
:root {
  --font: "Noto Sans Hebrew", "Heebo", system-ui, sans-serif;
  --font-display: "Noto Sans Hebrew", "Heebo", system-ui, sans-serif;
  --font-num: "Noto Sans Hebrew", "Heebo", system-ui, sans-serif;

  --bg: #F3F1EC;
  --surface: #FFFFFF;
  --surface-2: #FAF8F5;
  --surface-3: #F1EEE8;
  --line: #EAE6DF;
  --line-2: #DDD8CF;
  --text: #151413;
  --text-2: #625D56;
  --text-3: #9D978F;

  --accent: #5B4BFF;
  --accent-2: #8B7DFF;
  --accent-soft: #EEECFF;
  --on-accent: #FFFFFF;
  --brown: #7A4A2A;
  --brown-soft: #F5ECE4;
  --ink: #151413;
  --on-ink: #FFFFFF;

  --orange: #F06A1D; --orange-soft: #FDEDE1;
}
body { background: var(--bg); }

/* Brand */
.brand { font-weight: 800; font-size: 23px; letter-spacing: -.01em; }
.brand-mark { position: relative; width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: #fff; }
.brand-mark::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #F2A65A; border: 2.5px solid var(--bg); bottom: -4px; left: -4px; }
.brand-mark svg { width: 19px; height: 19px; }

.nav a .count { background: var(--orange); }
.nav a.active .count { background: var(--accent); }
.card-grad { background: linear-gradient(112deg, #ECE7FF 0%, #F3F0FF 40%, #E3F4E7 100%); border-color: transparent; }
.card-brown { background: linear-gradient(135deg, #3A2417 0%, #22160F 100%); color: #fff; border-color: transparent; }
.card-brown .muted, .card-brown .faint { color: rgba(255,255,255,.62); }
.hl { background: #E3F5C8; white-space: nowrap; }
.hl.violet { background: #E4E0FF; color: #3B2DD6; }
.hl.brown { background: var(--brown-soft); color: var(--brown); }
.pill.brown { background: var(--brown-soft); color: var(--brown); }

/* Topbar helpers */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.crumbs svg { width: 14px; height: 14px; }
.title-row { display: flex; align-items: center; gap: 10px; }
.sparkle { color: var(--accent); width: 22px; height: 22px; }

/* Sidebar foot (Taster "מחובר" card) */
.conn { padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.conn-apps { display: flex; gap: 5px; }
.app-ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }
.app-ico.g { background: #4285F4; } .app-ico.s { background: #4A154B; } .app-ico.n { background: #111; } .app-ico.z { background: #2D8CFF; } .app-ico.w { background: #25D366; } .app-ico.o { background: #0F6CBD; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.18); display: inline-block; }

/* Score metrics (Wi-Fi / outlets / noise) */
.metrics { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.metrics span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.metrics svg { width: 15px; height: 15px; color: var(--text); }
.metrics b { color: var(--text); font-weight: 700; }
.score { display: grid; place-items: center; min-width: 44px; height: 30px; padding: 0 9px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; font-family: var(--font-num); }
.score.violet { background: var(--accent); }
.score.lt { background: var(--accent-soft); color: var(--accent); }
.score-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; }
.score-row .lbl { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; margin-bottom: 7px; }
.score-row .lbl em { font-style: normal; font-weight: 500; color: var(--text-2); font-size: 12.5px; }
.score-row .val { font-weight: 800; font-size: 15px; font-family: var(--font-num); min-width: 30px; text-align: left; }

/* Place cards */
.place { padding: 0; }
.place .ph { height: 128px; border-radius: 0; }
.place .bd { padding: 14px 16px 16px; }
.place .nm { font-weight: 700; font-size: 16px; }
.place .ad { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.thumb { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; background: var(--surface-3); }

/* Dark theme (focus) */
html.dark {
  --bg: #0B0B0E; --surface: #141418; --surface-2: #18181D; --surface-3: #212128; --line: #24242B; --line-2: #2F2F37;
  --text: #F3F2F7; --text-2: #A3A1AD; --text-3: #6B6975;
  --accent: #8B7DFF; --accent-2: #B3A9FF; --accent-soft: rgba(139,125,255,.15); --on-accent: #0B0B0E;
  --ink: #F3F2F7; --on-ink: #0B0B0E;
  --green: #4ADE80; --green-soft: rgba(74,222,128,.12);
  --amber: #FBBF24; --amber-soft: rgba(251,191,36,.13);
  --red: #F87171; --red-soft: rgba(248,113,113,.13);
  --blue: #7AA2FF; --blue-soft: rgba(122,162,255,.13);
  --orange: #FB8A47; --orange-soft: rgba(251,138,71,.14);
  --shadow-sm: none;
}
html.dark .brand-mark::after { border-color: var(--bg); }
html.dark .conn { background: var(--surface); }
html.dark .card { box-shadow: none; }

/* Detail-screen mobile CTA bar */
.cta-bar { display: none; }
.m-head { display: none; }

@media (max-width: 760px) {
  .m-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; }
  .m-head .grow { flex: 1; min-width: 0; }
  .m-head h1 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
  .m-head p { font-size: 13px; color: var(--text-2); margin-top: 3px; }
  .m-bleed { margin-inline: -16px; }
  .cta-bar { display: flex; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: 12px 16px 30px; gap: 12px; align-items: center; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  html.dark .cta-bar, html.dark .tabbar { background: rgba(11,11,14,.88); }
  html.dark .home-ind { background: #fff; }
  .tabbar a.active { color: var(--accent); }
  .tabbar a.fab span.fab-btn { background: var(--accent); color: #fff; }
}

html.dark .app-ico.n { background: #2C2C34; }
