:root {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #14213a;
    background: #f3f6fb;
    --navy: #11284a;
    --navy-2: #1d3f6e;
    --ink: #14213a;
    --muted: #6d7890;
    --line: #e0e7f0;
    --surface: #ffffff;
    --soft: #f5f8fc;
    --accent-soft: #eaf2ff;
    --success: #18794e;
    --success-soft: #eaf8f1;
    --warning-soft: #fff5d9;
    --shadow: 0 14px 36px rgba(27, 48, 83, .08);
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    min-width: 320px;
    background:
      radial-gradient(circle at 14% -10%, rgba(37, 76, 135, .11), transparent 30%),
      linear-gradient(180deg, #f8fbff 0%, #f3f6fb 34%, #f5f7fb 100%);
    color: var(--ink);
  }

  button, input, select { font: inherit; }
  button, select { -webkit-tap-highlight-color: transparent; }

  .app-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 20px 22px 44px;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
  }

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

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(145deg, var(--navy-2), var(--navy));
    color: #fff;
    font-weight: 900;
    font-size: 21px;
    box-shadow: 0 10px 24px rgba(17, 40, 74, .18);
  }

  .eyebrow {
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .15em;
    color: #70809a;
  }

  .topbar h1 {
    font-size: clamp(25px, 4vw, 34px);
    margin: 2px 0 0;
    line-height: 1.05;
    letter-spacing: -.025em;
  }

  .brand-sub {
    margin: 4px 0 0;
    color: #78849a;
    font-size: 12px;
  }

  .icon-btn {
    min-height: 46px;
    border: 1px solid #d9e2ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(33,45,74,.07);
    color: var(--navy);
    cursor: pointer;
    flex: 0 0 auto;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
  }

  .sync-icon { font-size: 20px; line-height: 1; }
  .sync-label { font-size: 12px; }

  .search-panel {
    background: rgba(255,255,255,.96);
    border: 1px solid #e1e8f1;
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 8px;
    z-index: 5;
    backdrop-filter: blur(12px);
  }

  .search-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
    align-items: stretch;
  }

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

  .search-box {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    background: #f3f6fa;
    border: 1px solid #dfe7f0;
    border-radius: 15px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  }

  .search-box:focus-within {
    background: #fff;
    border-color: #9fb4d2;
    box-shadow: 0 0 0 4px rgba(41, 86, 146, .08);
  }

  .search-icon {
    font-size: 22px;
    color: #60708a;
    flex: 0 0 auto;
  }

  .search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    color: var(--ink);
  }

  .suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    max-height: 330px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 15px;
    box-shadow: 0 18px 40px rgba(24,38,64,.16);
    padding: 6px;
  }

  .suggestion-item {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 11px;
    padding: 10px 11px;
    text-align: left;
    cursor: pointer;
    display: block;
  }

  .suggestion-item:hover,
  .suggestion-item:focus {
    background: #f2f6fb;
    outline: 0;
  }

  .suggestion-en { display: block; font-weight: 800; color: #202c42; }
  .suggestion-ar {
    display: block;
    margin-top: 2px;
    color: #68758c;
    direction: rtl;
    text-align: right;
    font-size: 13px;
  }
  .suggestion-meta { display: block; margin-top: 4px; color: #8b95a7; font-size: 11px; }

  .reset-button,
  .toolbar-button {
    border: 1px solid #d8e1ec;
    background: #fff;
    color: #2d3b55;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(33,45,74,.035);
  }

  .reset-button {
    min-height: 54px;
    min-width: 104px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .reset-button:hover,
  .toolbar-button:hover,
  .segment:hover { background: #f3f6fa; }

  .filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 9px;
    margin-top: 12px;
  }

  .filter-field {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .filter-field > span {
    padding-left: 2px;
    color: #7a879c;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .filter-field select,
  .sort-control select {
    width: 100%;
    min-width: 0;
    height: 44px;
    border: 1px solid #dde5ef;
    border-radius: 12px;
    padding: 0 11px;
    background: #fff;
    color: #26334b;
    outline: 0;
  }

  .filter-field select:focus,
  .sort-control select:focus {
    border-color: #9fb4d2;
    box-shadow: 0 0 0 3px rgba(41, 86, 146, .07);
  }

  .ux-toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .segmented {
    display: inline-flex;
    padding: 3px;
    border: 1px solid #dae3ed;
    background: #f3f6fa;
    border-radius: 12px;
  }

  .segment {
    min-height: 36px;
    border: 0;
    border-radius: 9px;
    padding: 0 12px;
    background: transparent;
    color: #56647b;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }

  .segment.active {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 4px 12px rgba(17,40,74,.18);
  }

  .sort-control {
    min-width: 145px;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding-left: 11px;
    border: 1px solid #dae3ed;
    border-radius: 12px;
    background: #fff;
  }

  .sort-label { color: #7a879c; font-size: 10px; font-weight: 850; text-transform: uppercase; }
  .sort-control select { border: 0; height: 38px; padding-left: 0; box-shadow: none; }

  .toolbar-button {
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .toolbar-button.active {
    background: var(--accent-soft);
    color: var(--navy-2);
    border-color: #bfd2ef;
  }

  .toolbar-button.is-disabled {
    opacity: .45;
    cursor: default;
    pointer-events: none;
  }

  .active-filters {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid #edf1f6;
  }

  .filter-chip {
    border: 1px solid #d4e0ef;
    background: #eef5ff;
    color: #294d78;
    border-radius: 999px;
    min-height: 30px;
    padding: 0 9px 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
  }

  .filter-chip .chip-x { font-size: 15px; line-height: 1; color: #6a83a3; }

  .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 3px;
    font-size: 12px;
    color: #707c91;
  }

  .result-summary { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .result-summary strong { color: #26334b; font-size: 13px; }
  .view-hint { color: #8a94a6; white-space: nowrap; }

  .status-cluster { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

  .status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f2f5f8;
    color: #657187;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
  }

  .status-chip.online { background: var(--success-soft); color: var(--success); }
  .status-chip.offline { background: #fff0ef; color: #a5453c; }

  .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(101,113,135,.08);
  }

  .sync-state { white-space: nowrap; color: #78849a; font-size: 10px; }

  .results {
    display: grid;
    gap: 12px;
    margin-top: 16px;
  }

  .card {
    background: #fff;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 5px 18px rgba(33,45,74,.055);
    cursor: pointer;
    border: 1px solid #e5ebf3;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    position: relative;
    overflow: hidden;
  }

  .card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #274f83, #8aa5c6);
    opacity: .72;
  }

  .card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(33,45,74,.085);
    border-color: #d5dfec;
  }

  .card:active { transform: scale(.997); }

  .card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .name-wrap { min-width: 0; }
  .card h2 { font-size: 18px; line-height: 1.22; margin: 0; color: #14213a; }
  .arabic-name { margin-top: 3px; color: #68758b; font-size: 13px; direction: rtl; text-align: left; }

  .booth {
    background: #edf4fd;
    color: #1f4e7c;
    border: 1px solid #c9daef;
    border-radius: 999px;
    padding: 6px 9px;
    font-weight: 850;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1;
    flex: 0 0 auto;
  }

  .booth.pending { background: #f6f7f9; color: #7b879a; border-color: #e1e5ea; }

  .card-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    color: #79859a;
    font-size: 11px;
  }

  .card-location .sep { color: #b0b8c5; }

  .tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 3px 8px;
    background: #f1f5fa;
    color: #4f5f76;
    font-size: 10.5px;
    line-height: 1.25;
  }

  .tag.specialty-tag { background: #eaf2ff; color: #284f7e; font-weight: 800; }

  mark.search-hit {
    background: #fff1a8;
    color: inherit;
    border-radius: 3px;
    padding: 0 1px;
  }

  .card-arrow {
    position: absolute;
    right: 13px;
    bottom: 12px;
    color: #7d8ba1;
    font-size: 20px;
  }

  .empty {
    background: #fff;
    border-radius: 18px;
    padding: 34px 24px;
    text-align: center;
    color: #6b768c;
    border: 1px solid #e5ebf3;
  }

  /* Compact list */
  .results.list-view { gap: 8px; }

  .list-item {
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 14px;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(33,45,74,.04);
  }

  .list-item:hover { border-color: #d2deeb; background: #fbfdff; }
  .list-main { min-width: 0; }
  .list-name-line { display: flex; align-items: baseline; gap: 7px; min-width: 0; flex-wrap: wrap; }
  .list-name { font-size: 14px; font-weight: 850; color: #17243d; }
  .list-ar { font-size: 11px; color: #7a8699; direction: rtl; }
  .list-meta { margin-top: 4px; font-size: 10.5px; color: #748095; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .list-side { display: flex; align-items: center; gap: 8px; }
  .list-booth { color: #254f7f; font-weight: 850; font-size: 11px; white-space: nowrap; }
  .list-chevron { font-size: 18px; color: #8a96a8; }

  .hall-group {
    display: grid;
    gap: 7px;
    margin-bottom: 3px;
  }

  .hall-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 5px;
    color: #344760;
  }

  .hall-group-title { font-weight: 900; font-size: 13px; }
  .hall-group-count { color: #8792a5; font-size: 10px; font-weight: 750; }

  .backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14,25,43,.46);
    backdrop-filter: blur(2px);
    z-index: 20;
  }

  .drawer {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 21;
    width: min(820px, 100%);
    max-height: 86vh;
    overflow: auto;
    background: #fff;
    border-radius: 25px 25px 0 0;
    padding: 20px 18px 30px;
    box-shadow: 0 -18px 46px rgba(20,27,45,.22);
  }

  .hidden { display: none !important; }

  .drawer-handle {
    width: 46px;
    height: 5px;
    border-radius: 99px;
    background: #d7dde7;
    margin: -5px auto 15px;
  }

  .close-btn {
    position: absolute;
    right: 16px;
    top: 14px;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 50%;
    background: #f0f3f7;
    cursor: pointer;
    font-size: 23px;
    color: #526079;
  }

  .detail-hero {
    padding: 8px 44px 15px 0;
    border-bottom: 1px solid #edf1f6;
    margin-bottom: 14px;
  }

  .detail-title { font-size: 25px; margin: 0; line-height: 1.15; }
  .detail-ar { color: #64728a; direction: rtl; text-align: left; margin: 5px 0 0; font-size: 15px; }
  .detail-specialty { margin: 8px 0 0; color: #365779; font-size: 12px; font-weight: 800; }

  .detail-summary {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 13px;
  }

  .summary-tile {
    min-width: 0;
    background: #f3f7fc;
    border: 1px solid #e4ebf4;
    border-radius: 13px;
    padding: 10px;
  }

  .summary-label { color: #7a8699; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
  .summary-value { margin-top: 4px; color: #263953; font-size: 12px; font-weight: 850; word-break: break-word; }

  .detail-grid { display: grid; gap: 8px; }
  .detail-row { background: #f8fafc; border: 1px solid #edf1f5; border-radius: 13px; padding: 11px 12px; }
  .detail-label { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: #7d8799; font-weight: 850; margin-bottom: 4px; }
  .detail-value { font-size: 13px; color: #202c42; word-break: break-word; line-height: 1.45; }

  @media (min-width: 760px) {
    .drawer {
      left: auto;
      right: 0;
      top: 0;
      bottom: 0;
      transform: none;
      width: min(520px, 92vw);
      max-height: 100vh;
      border-radius: 24px 0 0 24px;
      padding: 28px 24px 36px;
    }
    .drawer-handle { display: none; }
  }

  @media (max-width: 860px) {
    .app-shell { padding: 16px 15px 36px; }
    .filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .search-panel { top: 4px; }
  }

  @media (max-width: 620px) {
    .app-shell { padding: 12px 10px 30px; }
    .topbar { margin: 2px 2px 12px; }
    .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
    .brand-sub { display: none; }
    .icon-btn { min-height: 42px; padding: 0 11px; }
    .sync-label { display: none; }

    .search-panel {
      position: relative;
      top: auto;
      border-radius: 18px;
      padding: 12px;
    }

    .search-row { grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
    .search-box { min-height: 50px; padding: 0 12px; }
    .reset-button { min-height: 50px; min-width: 50px; width: 50px; padding: 0; }
    .reset-button span:last-child { display: none; }

    .filters { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
    .filter-field > span { display: none; }
    .filter-field select { height: 42px; font-size: 12px; padding: 0 8px; }

    .ux-toolbar { gap: 7px; }
    .segmented { flex: 1 1 auto; }
    .segment { flex: 1 1 50%; padding: 0 9px; }
    .sort-control { flex: 1 1 145px; min-width: 130px; }
    .toolbar-button { flex: 1 1 auto; justify-content: center; }

    .meta-row { align-items: flex-start; flex-direction: column; gap: 7px; }
    .status-cluster { width: 100%; justify-content: space-between; }
    .result-summary { width: 100%; justify-content: space-between; }

    .card { border-radius: 15px; padding: 13px; }
    .card h2 { font-size: 16px; }
    .booth { font-size: 10px; }
    .tag { font-size: 10px; }
  }

  @media (max-width: 380px) {
    .filters { grid-template-columns: 1fr; }
    .toolbar-button { width: 100%; }
    .status-cluster { align-items: flex-start; flex-direction: column; }
    .detail-summary { grid-template-columns: 1fr 1fr; }
    .summary-tile:first-child { grid-column: 1 / -1; }
  }

/* Phase 3B PWA / approved Pyramids branding */
.brand-logo {
  width: 76px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 7px 12px rgba(17,40,74,.08));
}
.topbar-actions { display:flex; align-items:center; gap:8px; }
.header-link {
  min-height:46px; border:1px solid #d9e2ee; border-radius:14px;
  background:#fff; color:var(--navy); text-decoration:none; padding:0 13px;
  display:inline-flex; align-items:center; justify-content:center; font-size:12px;
  font-weight:800; box-shadow:0 8px 22px rgba(33,45,74,.07);
}
.header-link:hover { background:#f3f6fa; }
.install-btn[hidden] { display:none !important; }
.status-chip.ready .status-dot { background:#18885b; box-shadow:0 0 0 4px #dff5ea; }
.offline-note {
  max-width:1080px; margin:0 auto 10px; padding:8px 12px; border-radius:12px;
  background:#fff8e5; color:#76570a; border:1px solid #f1dfaa; font-size:12px;
}
.offline-note.hidden { display:none; }
@media (max-width: 640px) {
  .brand-logo { width:58px; height:44px; }
  .topbar-actions { gap:6px; }
  .header-link { min-height:42px; padding:0 10px; }
  .header-link .desktop-label { display:none; }
}

/* v0.10.1 — Final Mobile UX Polish (frontend only) */
.menu-trigger {
  min-height: 46px;
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(33,45,74,.07);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  cursor: pointer;
}
.menu-trigger:active,
.menu-action:active,
.reset-button:active,
.toolbar-button:active,
.segment:active { transform: scale(.98); }
.menu-icon { font-size: 21px; line-height: 1; }
.menu-label { font-size: 12px; }

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(14,25,43,.48);
  backdrop-filter: blur(2px);
}
.app-menu {
  position: fixed;
  z-index: 41;
  top: 0;
  right: 0;
  width: min(390px, 92vw);
  height: 100dvh;
  background: #f8fbff;
  border-left: 1px solid #dce5ef;
  box-shadow: -20px 0 50px rgba(20,32,52,.2);
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
body.menu-open { overflow: hidden; }
.app-menu-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.menu-brand { display:flex; align-items:center; gap:10px; min-width:0; }
.menu-brand img { width:62px; height:44px; object-fit:contain; flex:0 0 auto; }
.menu-brand div { min-width:0; }
.menu-brand strong { display:block; color:#182640; font-size:15px; }
.menu-brand span { display:block; margin-top:2px; color:#7a879a; font-size:11px; }
.menu-close {
  width:44px; height:44px; flex:0 0 auto; border:0; border-radius:13px;
  background:#edf2f7; color:#42516a; font-size:25px; line-height:1; cursor:pointer;
}
.menu-status-card {
  background: linear-gradient(145deg, #11284a, #1d3f6e);
  color: #fff;
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 14px 28px rgba(17,40,74,.18);
}
.menu-status-row { display:flex; align-items:center; gap:11px; }
.menu-status-row > div { min-width:0; }
.menu-status-row strong { display:block; font-size:13px; line-height:1.35; }
.menu-status-row span:not(.menu-status-dot) { display:block; margin-top:3px; color:rgba(255,255,255,.72); font-size:11px; }
.menu-status-dot { width:11px; height:11px; border-radius:50%; background:#a9b7c9; box-shadow:0 0 0 5px rgba(255,255,255,.08); flex:0 0 auto; }
.menu-status-dot.online { background:#55d59a; }
.menu-status-dot.offline { background:#ffb36b; }
.menu-actions { display:grid; gap:9px; }
.menu-action {
  width:100%; min-height:68px; border:1px solid #dde5ef; border-radius:16px;
  background:#fff; color:#1f2e48; text-decoration:none; padding:10px 12px;
  display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:10px;
  text-align:left; cursor:pointer; box-shadow:0 5px 15px rgba(33,45,74,.045);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.menu-action:hover { border-color:#cbd9e8; box-shadow:0 9px 20px rgba(33,45,74,.07); }
.menu-action.primary { border-color:#bfd3eb; background:#f2f7fd; }
.menu-action:disabled { opacity:.7; cursor:wait; }
.menu-action-icon {
  width:44px; height:44px; border-radius:13px; display:grid; place-items:center;
  background:#eaf2fb; color:#244f7d; font-size:20px; font-weight:900;
}
.menu-action.primary .menu-action-icon { background:#11284a; color:#fff; }
.menu-action-copy { min-width:0; }
.menu-action-copy strong { display:block; font-size:13px; }
.menu-action-copy small { display:block; margin-top:3px; color:#7b879a; font-size:10.5px; line-height:1.3; }
.menu-action-chevron { color:#8795a9; font-size:23px; }
.menu-action.is-syncing .sync-icon { animation:spin .75s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.menu-footer { margin-top:auto; padding:12px 3px 0; border-top:1px solid #e2e9f1; display:flex; justify-content:space-between; gap:10px; color:#8793a6; font-size:10px; font-weight:800; letter-spacing:.03em; }

.reset-button { min-width:132px; }
.clear-icon { font-size:21px; line-height:1; color:#8b4a48; }
.clear-label { white-space:nowrap; }

.card .booth {
  min-height:32px;
  display:inline-flex;
  align-items:center;
  background:#11284a;
  color:#fff;
  border-color:#11284a;
  padding:7px 10px;
  box-shadow:0 4px 10px rgba(17,40,74,.13);
}
.card .booth.pending { background:#f5f7fa; color:#7c889a; border-color:#e0e6ee; box-shadow:none; }
.card-location { margin-top:9px; justify-content:space-between; gap:8px; }
.exhibition-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hall-badge {
  min-height:28px; padding:5px 9px; border-radius:9px; background:#edf4fd; color:#244e7c;
  border:1px solid #cfdded; font-size:10.5px; font-weight:850; white-space:nowrap;
  display:inline-flex; align-items:center; gap:5px;
}
.location-key { color:#7a8da5; font-size:8px; text-transform:uppercase; letter-spacing:.04em; }
.list-location { display:grid; justify-items:end; gap:3px; }
.list-booth { background:#11284a; color:#fff; border-radius:8px; padding:5px 7px; line-height:1; }
.list-hall { color:#687891; font-size:9.5px; font-weight:750; white-space:nowrap; }

.status-chip { min-height:28px; padding:6px 9px; }
.sync-state { font-weight:650; }
.filter-chip { min-height:36px; padding-right:8px; }
.filter-chip .chip-x { width:28px; height:28px; display:grid; place-items:center; margin:-2px -5px -2px 0; border-radius:50%; }
.filter-chip .chip-x:hover { background:rgba(41,77,120,.08); }

@media (max-width: 620px) {
  .topbar { align-items:center; }
  .topbar h1 { font-size:22px; }
  .eyebrow { font-size:9px; }
  .brand-logo { width:55px; height:42px; }
  .menu-trigger { min-height:44px; min-width:48px; padding:0 12px; }
  .menu-label { display:none; }

  .search-row { grid-template-columns:minmax(0,1fr) auto; }
  .reset-button { min-width:96px; width:auto; min-height:50px; padding:0 11px; gap:5px; }
  .reset-button .clear-label { display:inline; font-size:10.5px; }

  .filters { gap:8px; }
  .filter-field select { min-height:44px; }
  .segment { min-height:42px; }
  .sort-control { min-height:44px; height:44px; }
  .toolbar-button { min-height:44px; }

  .meta-row { padding-top:7px; }
  .status-cluster { justify-content:flex-start; gap:7px; }
  .sync-state { font-size:10.5px; }

  .card { padding:14px; }
  .card-head { gap:9px; }
  .card .booth { font-size:10px; }
  .card-location { align-items:center; }

  .list-item { min-height:64px; padding:10px 11px; }
  .list-side { gap:7px; }
  .list-chevron { font-size:20px; }
}

@media (max-width: 390px) {
  .brand-logo { width:48px; height:39px; }
  .topbar h1 { font-size:20px; }
  .reset-button { min-width:54px; width:54px; padding:0; }
  .reset-button .clear-label { display:none; }
  .filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app-menu { width:94vw; }
}



/* v0.10.2 — Final Micro Polish + language UI (frontend only) */
.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #eef3f8;
}
.language-option {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #66758a;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.language-option:active { transform: scale(.98); }
.language-option.active {
  background: #fff;
  color: #11284a;
  box-shadow: 0 4px 12px rgba(17,40,74,.09);
}
.ui-ar .menu-action { text-align: right; }
.ui-ar .menu-action-copy,
.ui-ar .menu-brand div { text-align: right; }
.ui-ar .filter-field > span { text-align: right; padding-left: 0; padding-right: 2px; }
.ui-ar .sort-label { white-space: nowrap; }
.ui-ar .menu-status-row > div { text-align: right; }
.ui-ar .menu-footer { direction: ltr; }

.reset-button {
  min-width: 116px;
  color: #536177;
  border-color: #dce4ed;
  background: #fbfcfe;
}
.clear-icon { color: #6e7c91; font-size: 18px; }
.reset-button:hover { background: #f4f7fa; border-color: #ced9e5; }

@media (max-width: 620px) {
  .app-shell { padding-top: 10px; }
  .topbar { margin-bottom: 9px; }
  .search-panel { padding: 10px; border-radius: 17px; }
  .search-box { min-height: 46px; padding: 0 11px; }
  .search-box input { font-size: 15px; }
  .reset-button {
    min-height: 46px;
    min-width: 104px;
    padding: 0 9px;
    border-radius: 12px;
  }
  .reset-button .clear-label { display: inline; font-size: 10px; }
  .filters { margin-top: 8px; gap: 6px; }
  .filter-field select { height: 40px; min-height: 40px; font-size: 12px; }
  .ux-toolbar { margin-top: 8px; gap: 6px; }
  .segment { min-height: 40px; }
  .sort-control { min-height: 40px; height: 40px; }
  .sort-control select { height: 36px; }
  .toolbar-button { min-height: 40px; }
  .meta-row { margin-top: 8px; padding-top: 4px; gap: 5px; }
  .status-cluster { gap: 5px; }
  .status-chip { min-height: 26px; padding: 5px 8px; }
  .sync-state { font-size: 10px; }
  .results { margin-top: 12px; }
}

@media (max-width: 390px) {
  .reset-button {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }
  .reset-button .clear-label { display: none; }
}
