@font-face {
  font-family: PXN;
  src: url('/assets/fonts/rubik-hebrew.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F;
}
@font-face {
  font-family: PXN;
  src: url('/assets/fonts/rubik-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F;
}
:root {
  color-scheme: light;
  --ink: #17283a;
  --muted: #526778;
  --line: #d8e2e8;
  --page: #eef3f6;
  --accent: #106451;
  --pale: #eaf6ef;
  --night: #112232;
  --lime: #d2ff65;
  --warn: #a03734;
  --plot-visits: #28776d;
  --plot-views: #6899cc;
  font: 16px/1.5 PXN, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, h4, p, ul, ol { margin: 0; }
body { min-height: 100vh; }
a { color: var(--accent); text-underline-offset: 3px; }
button, select, textarea, input { font: inherit; color: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #c5d4df;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
}
button, .button, .sections a, summary { touch-action: manipulation; }
button:active, .button:active { background: #e9f0f2; }
button:disabled { opacity: .53; cursor: default; }
button svg, .button svg { width: 18px; height: 18px; }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
.danger { color: var(--warn); border-color: #e8c7c3; }
:where(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid #448ccb; outline-offset: 3px; }
svg { display: block; flex: none; }
label { display: grid; gap: 5px; font-size: .85rem; font-weight: 600; }
input, select, textarea { width: 100%; min-width: 0; min-height: 43px; padding: 8px 12px; border: 1px solid #c2d0d9; border-radius: 7px; background: white; }
textarea { resize: vertical; }
input::placeholder { color: #6a7887; }
h2 { font-size: clamp(1.85rem,3.7vw,3rem); line-height: 1.08; letter-spacing: -.052em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.018em; }
h4 { font-size: 1rem; }
.shell { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: clamp(20px,5vw,76px); }
.masthead { position: sticky; z-index: 5; top: 0; background: var(--night); color: #fff; box-shadow: 0 2px 8px #0b202326; }
.masthead-inner, .identity, .mast-actions, .site-link, .sections, .sections a, .card-heading, .card-heading>a, .toolbar,
.page-heading, .section-actions, .search, .legend, .chart-head, .pager, .quick-links a, .directory-tools, .room-controls {
  display: flex;
  align-items: center;
}
.masthead-inner, .page-heading, .card-heading, .chart-head { justify-content: space-between; gap: 16px; }
.masthead-inner { min-height: 65px; }
.identity { gap: 18px; }
.brand {
  font: italic 900 2.2rem/.9 PXN, Arial, sans-serif;
  letter-spacing: -.115em;
  color: white;
  text-decoration: none;
}
.brand span { color: var(--lime); }
.brand-divider { width: 1px; height: 23px; background: #536272; }
.identity h1 { font-size: 1.02rem; line-height: 1.25; }
.mast-actions { gap: 12px; color: #d9e4ea; font-size: .87rem; }
.account-dot { width: 8px; height: 8px; border-radius: 50%; background: #7291a0; }
body:has(#dashboard:not([hidden])) .account-dot { background: var(--lime); box-shadow: 0 0 0 4px #d2ff6514; }
.site-link { min-height: 36px; margin-inline-start: 10px; padding: 4px 10px; gap: 7px; color: white; border: 1px solid #445767; border-radius: 6px; text-decoration: none; }
.nav-band { background: #1a2f40; }
.sections { gap: 3px; }
.sections a { position: relative; min-height: 46px; padding: 0 clamp(7px,1.25vw,21px); gap: 7px; color: #c9d6df; text-decoration: none; font-size: .9rem; font-weight: 550; white-space: nowrap; }
.sections a[aria-current=page] { color: white; background: #273d4e; }
.sections a[aria-current=page]::after { position: absolute; content: ''; inset: auto 12px 0; height: 3px; background: var(--lime); }
.sections a[aria-current=page] svg { color: var(--lime); }
.sections a svg { width: 17px; height: 17px; }
.mobile-nav { display: none; }
main.shell { padding-top: clamp(24px,3.2vw,44px); padding-bottom: max(80px,calc(env(safe-area-inset-bottom) + 70px)); }
main>*, .card, .metric, .page-heading>div { min-width: 0; }
.page-heading { margin-bottom: 22px; align-items: end; }
.page-heading p, .hint, .muted, .field-title, .record-meta { color: var(--muted); }
.page-heading p { margin-top: 6px; font-size: .91rem; }
.toolbar { gap: 8px; align-items: end; }
.toolbar label { font-size: .78rem; min-width: 148px; max-width: 280px; }
.icon-button { width: 43px; height: 43px; padding: 0; }
.card, .metric, .gate { background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 5px #1c3b4b04; }
.card, .gate { padding: clamp(17px,2.1vw,28px); }
.card+.card { margin-top: 16px; }
.card-heading { margin-bottom: 15px; }
.card-heading>a { gap: 6px; font-size: .84rem; font-weight: 650; text-decoration: none; }
.card-heading>a svg { width: 15px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 17px; }
.metric { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 10px; padding: clamp(15px,1.7vw,24px); }
.metric-label { color: #435f71; font-size: .89rem; font-weight: 550; }
.metric-icon, .gate-icon { display: grid; place-items: center; border-radius: 12px; }
.metric-icon { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; background: #e4f5ed; color: #157252; }
.metric:nth-child(2) .metric-icon { background: #e8effa; color: #4468a0; }
.metric:nth-child(3) .metric-icon { background: #f2ecfb; color: #7656a2; }
.metric:nth-child(4) .metric-icon { background: #fbf3dc; color: #866821; }
.metric strong, .chart-summary strong { line-height: 1.05; font-size: clamp(1.8rem,3vw,2.65rem); font-weight: 700; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.activity-grid, .overview-grid { display: grid; grid-template-columns: minmax(0,1.48fr) minmax(0,1fr); gap: 16px; align-items: start; }
.activity-grid { align-items: stretch; margin-bottom: 16px; }
.activity-grid:has(.traffic-feature[hidden]) { grid-template-columns: 1fr; }
.activity-grid>.card, .overview-grid>.card { margin: 0; }
.traffic-feature { background: #142d3d; color: white; border-color: #253d4e; --plot-visits: #d2ff65; --plot-views: #6aade0; }
.traffic-feature .card-heading { margin-bottom: 18px; }
.traffic-feature .card-heading a { color: #c6daec; }
.trend-summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.trend-summary strong { font-size: 2.4rem; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.trend-summary span { color: #d0dce4; font-size: .88rem; }
#overview-chart { margin-block: 16px 7px; min-height: 145px; }
.traffic-feature .chart { height: 142px; }
.traffic-feature .plot-line { stroke: #3d5361; }
.traffic-feature :is(.chart-labels,.chart-axis,.legend) { color: #c1d2dd; }
.operations-card { display: flex; flex-direction: column; }
.snapshot-time { margin-top: auto; padding-top: 12px; font-size: .77rem; color: var(--muted); }
.quick-links { display: grid; }
.quick-links a { min-height: 49px; gap: 10px; border-block-start: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.quick-links a>svg:first-child { color: var(--accent); }
.quick-links a>svg:last-child { margin-inline-start: auto; width: 16px; }
.records, .operation-rooms, .roster { list-style: none; padding: 0; }
.records li, .roster li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-block-start: 1px solid var(--line); padding: 12px 0; }
.records li:last-child, .roster li:last-child { padding-bottom: 0; }
.records time { white-space: nowrap; }
.record-text { white-space: pre-wrap; }
.records li>div, .action-pane, .user-option, .quick-links a, .metric-label, .record-text, .record-meta, .room-caption, .person-identity, .roster li>div { min-width: 0; overflow-wrap: anywhere; }
.record-meta, .field-title, .hint, .muted { font-size: .85rem; }
.hint { margin: 8px 0; }
#overview-status:empty { display: none; }
.audit-body strong { font-size: .93rem; }
.records button { flex: none; }
.ranked li>div { display: grid; }
.ranked small, .room-caption small, .person-identity small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.ranked small { width: fit-content; text-align: start; }
.ranked em { font-style: normal; font-weight: 650; font-variant-numeric: tabular-nums; }
.segmented { display: inline-flex; gap: 3px; background: #e5ecf0; padding: 3px; border: 1px solid #d4dfe5; border-radius: 9px; }
.segmented button { background: transparent; border: 0; min-height: 35px; padding: 5px 12px; font-size: .9rem; }
.segmented button[aria-pressed=true] { background: white; color: var(--accent); box-shadow: 0 1px 4px #1a303d28; }
.chart-summary { display: flex; gap: 30px; padding-block: 4px 20px; }
.chart-summary>div { display: grid; gap: 4px; }
.chart-summary span { color: var(--muted); font-size: .84rem; }
.chart-summary strong { font-size: 2rem; }
.chart-head { border-top: 1px solid var(--line); padding-top: 16px; }
.legend { gap: 15px; font-size: .77rem; color: var(--muted); }
.legend span::before { content: ''; width: 8px; height: 8px; display: inline-block; margin-inline-end: 5px; border-radius: 2px; background: var(--plot-visits); }
.legend span+span::before { background: var(--plot-views); }
.chart { display: block; width: 100%; height: 165px; overflow: visible; }
.plot-line { stroke: #d5e0e6; }
.chart-plot { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 8px; direction: ltr; }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; padding-block: 7px 5px; font-size: .73rem; color: var(--muted); text-align: end; }
.chart-labels { display: flex; justify-content: space-between; direction: ltr; font-size: .76rem; color: var(--muted); }
.chart-labels.single { justify-content: center; }
.table-disclosure { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 9px; }
details summary { cursor: pointer; padding: 6px 0; font-weight: 600; color: var(--accent); }
.table-disclosure table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.table-disclosure :is(td,th) { text-align: start; font-size: .9rem; padding: 7px; border-block-start: 1px solid var(--line); }
.search { align-items: end; gap: 8px; max-width: 620px; }
.search label { flex: 1; }
.player-workspace { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(280px,1.3fr); gap: 18px; margin-top: 20px; }
.user-option { display: flex; width: 100%; justify-content: space-between; text-align: start; margin-top: 4px; }
.user-option small { color: var(--muted); font-weight: 400; }
.user-option[aria-pressed=true] { color: var(--accent); border-color: var(--accent); background: var(--pale); }
.action-pane, .pin { background: #f3f7f9; border: 1px solid #dbe4e8; border-radius: 10px; padding: 16px; }
.pin { border-inline-start: 4px solid #469074; margin-bottom: 16px; }
.pin .muted, .pin button, .status-badges { margin-top: 7px; }
.badge, .count-chip { display: inline-flex; padding: 3px 9px; font-size: .79rem; font-weight: 550; background: #e7f2ea; color: #305e42; border-radius: 20px; }
.status-badges, .section-actions, .roster-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.section-actions { align-items: end; }
.section-actions label { max-width: 150px; }
.action-group { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.action-group>.field-title { font-weight: 600; margin-bottom: 7px; }
.directory-tools { flex-wrap: wrap; gap: 24px; align-items: end; margin-bottom: 14px; }
.room-search { flex: 1; min-width: 130px; max-width: 420px; }
.check-label { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); }
.check-label input { accent-color: var(--accent); min-height: 0; width: 18px; height: 18px; }
.operation-rooms li+li { border-top: 1px solid var(--line); }
.room-line { width: 100%; display: flex; gap: 10px; justify-content: start; text-align: start; min-height: 54px; padding: 7px 2px; border: 0; background: transparent; }
.room-emblem, .person-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 9px; background: #eaf0f5; color: #45637a; }
.room-caption strong, .person-identity strong { display: block; font-size: .93rem; line-height: 1.3; }
.room-chevron { color: var(--muted); font-size: 1.35rem; }
.presence { display: inline-flex; flex: none; align-items: center; gap: 5px; margin-inline-start: auto; color: var(--muted); font-size: .79rem; font-weight: 500; }
.presence::before, .room-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #a3b0bc; }
.presence.online::before, .room-state::before { background: #27966a; }
.room-heading .card-heading { margin-bottom: 9px; }
.room-heading h3 { font-size: 1.52rem; }
.room-controls { gap: 14px; flex-wrap: wrap; }
.room-controls button { min-height: 38px; font-size: .86rem; }
.room-state { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 550; }
.room-state.locked::before { background: #cd852b; }
.room-tabs { margin-block: 14px; }
.person-identity { display: flex; gap: 10px; align-items: center; }
.person-avatar { background: #e4f0ec; color: #2a6252; font-size: 1rem; font-weight: 650; }
.roster-actions button { font-size: .84rem; min-height: 37px; padding: 6px 11px; }
.empty-row { color: var(--muted); font-size: .88rem; padding-block: 12px; }
.pager { flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pager:empty { display: none; }
.pager span { font-size: .84rem; color: var(--muted); }
.pager button { min-height: 38px; padding: 5px 12px; }
#announcement-form, #announcement-fields, #room-mute-form { display: grid; gap: 14px; }
#announcement-form { margin-top: 13px; max-width: 690px; }
#announcement-fields button { justify-self: start; }
#panel-announcements h2, #mute-heading { font-size: 1.4rem; }
details label { margin-block: 8px; }
.gate { max-width: 600px; margin: clamp(15px,6vh,65px) auto; border-block-start: 4px solid #527c8c; }
.gate-icon { width: 47px; height: 47px; margin-bottom: 15px; color: var(--accent); background: #e5f2ec; }
.gate h2 { font-size: 1.8rem; }
.gate p { margin-block: 8px 18px; color: var(--muted); }
.gate .section-actions { align-items: center; }
.gate a:not(.button) { font-size: .85rem; }
.gate+#dashboard[hidden]+#panel-announcements:not([hidden]) { max-width: 650px; margin: 16px auto; }
.error { color: var(--warn); }
#room-mute-dialog { width: min(410px,calc(100% - 24px)); padding: 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
#room-mute-dialog::backdrop { background: #0d1d2bb3; }
#feedback:not(:empty) { position: fixed; z-index: 6; bottom: max(16px,env(safe-area-inset-bottom)); inset-inline: 56px; width: fit-content; max-width: calc(100% - 112px); margin: auto; padding: 10px 15px; border-radius: 8px; background: #1d4a3c; color: white; }
#feedback.error { background: #873833; }
@media (hover:hover) and (pointer:fine) {
  button:hover, .button:hover { background: var(--pale); border-color: #94ac9e; }
  .primary:hover { background: #0d5343; color: white; }
  .room-line:hover { background: #f5f8fa; }
  .sections a:hover { color: white; background: #2c4050; }
  .quick-links a:hover { color: var(--accent); }
}
@media (max-width:980px) {
  .sections { gap: 0; } .sections a { padding-inline: 9px; font-size: .83rem; }
  .shell { padding-inline: 23px; }
  .metric-icon { width: 33px; height: 33px; border-radius: 8px; }
  .activity-grid, .overview-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
}
@media (min-width:1101px) and (max-width:1250px) {
  .sections a { padding-inline: 8px; gap: 5px; }
}
@media (max-width:1100px) {
  .mobile-nav { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
  .mobile-nav button { padding: 3px 0; background: transparent; border: 0; color: white; min-height: 44px; font-size: .9rem; }
  #mobile-section { color: #d0deea; font-size: .84rem; }
  .sections { display: none; }
  .nav-band:has(#nav-toggle[aria-expanded=true]) .sections {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding-block: 5px 10px; gap: 4px;
    max-height: calc(100dvh - 96px); overflow: auto; overscroll-behavior: contain;
  }
  .sections a { min-height: 44px; padding: 7px 10px; border-radius: 5px; }
  .sections a[aria-current=page]::after { inset: 8px 0 8px auto; height: auto; width: 3px; border-radius: 3px; }
}
@media (max-width:760px) {
  .shell { padding-inline: max(15px,env(safe-area-inset-left),env(safe-area-inset-right)); }
  .masthead-inner { min-height: 51px; }
  .identity { gap: 9px; }
  .identity h1 { font-size: .92rem; }
  .brand { font-size: 1.85rem; }
  .mast-actions { gap: 7px; font-size: .73rem; }
  .account-dot { width: 6px; height: 6px; }
  #account-state { max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-link { min-height: 39px; min-width: 37px; margin: 0; padding: 5px; border: 0; }
  .site-link span { display: none; }
  main.shell { padding-top: 21px; }
  .page-heading { align-items: start; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
  .toolbar { align-items: end; }
  .toolbar label { min-width: 120px; max-width: 190px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
  .metric { padding: 13px; gap: 5px; }
  .metric-label { font-size: .8rem; }
  .metric-icon { width: 31px; height: 31px; }
  .metric-icon svg { width: 17px; height: 17px; }
  .card { padding: 16px; }
  .activity-grid, .overview-grid, .player-workspace { grid-template-columns: 1fr; gap: 12px; }
  .activity-grid { margin-bottom: 12px; }
  .card-heading { gap: 8px; }
  .card-heading h3 { font-size: 1.04rem; }
  .search { gap: 6px; }
  .records time { white-space: normal; max-width: 90px; }
  .section-actions label { max-width: 125px; }
  .directory-tools { gap: 8px 12px; }
  .directory-tools .room-search { max-width: none; }
  .room-heading h3 { font-size: 1.27rem; }
  .roster li { flex-wrap: wrap; gap: 7px; }
  .roster-actions { margin-inline-start: auto; }
  .segmented button, .pager button, .roster-actions button, .room-controls button { min-height: 44px; }
  .table-disclosure summary, details summary { min-height: 44px; }
  .trend-summary strong { font-size: 2.1rem; }
}
@media (max-width:490px) {
  .page-heading { flex-direction: column; }
  .toolbar { width: 100%; }
  .toolbar label { flex: 1; max-width: none; }
  .chart-head { gap: 6px; }
  #feedback:not(:empty) { inset-inline: 14px; max-width: calc(100% - 28px); }
}
@media (max-width:359px) {
  #account-state { max-width: 67px; }
  .room-line { gap: 6px; }
  .metric { padding: 10px; } .metric-icon { width: 26px; height: 26px; }
  .card-heading:has(.segmented) { flex-wrap: wrap; }
}
@media (pointer:coarse) {
  input, select, textarea { font-size: 16px; }
  button, .button { min-height: 44px; }
}
@media (max-height:540px) and (orientation:landscape) {
  .masthead { position: static; }
}


.filter-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.filter-grid .card { min-width: 0; margin: 0; }
.filter-intro { color: var(--muted); margin-bottom: 18px; }
.filter-form { display: grid; gap: 9px; }
.filter-form .hint { font-size: .86rem; }
.filter-form textarea { line-height: 1.6; }
#filter-rules { font-family: ui-monospace, monospace; }
.filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.filter-status:not(:empty) { padding: 9px 12px; border-radius: 6px; background: #eaf2f7; color: #304e61; }
.filter-status[data-tone=error]:not(:empty) { background: #fff0ed; color: #812d26; }
.filter-status[data-tone=ok]:not(:empty) { background: #eaf6ef; color: #175d43; }
.filter-status { overflow-wrap: anywhere; }
.filter-status ul { padding-inline-start: 1.3em; }
@media (max-width:760px) {
  .filter-grid { grid-template-columns: 1fr; gap: 12px; }
}
