/* QPro hand-written fixes, loaded after the Vite build (resources/css/app.css can't be
   rebuilt on the server: no Node). 2026-10-24. */

/* Mobile nav: app.css hides .nav-links below 900px with nothing in their place.
   Keep them as a second row under the brand instead. */
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; row-gap: 12px; }
  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--line-2);
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Small phones: stop the header buttons and brand wrapping onto several lines. */
@media (max-width: 600px) {
  .nav { padding: 14px 0; }
  .brand { font-size: 17px; gap: 9px; white-space: nowrap; }
  .nav-act { gap: 8px; }
  .nav-act .btn { white-space: nowrap; padding: 8px 12px; font-size: 12.5px; }

  /* Search: the text field takes its own full row; state + button share the next. */
  .search { flex-wrap: wrap; }
  .search > .f:first-child { flex: 1 1 100%; border-bottom: 1px solid var(--line); }
  .search .sep { display: none; }
  .search > .f:not(:first-child) { flex: 1 1 auto; }
}

/* Contact / Terms / Privacy pages. app.css only styles .prose h2 and p. */
.legal .prose { margin-top: 34px; max-width: 70ch; }
.legal .prose h2 { margin-top: 30px; }
.legal .prose ul { margin: 0 0 14px 20px; padding: 0; list-style: disc; }
.legal .prose li { color: var(--ink); opacity: .86; font-size: 15.5px; margin-bottom: 8px; }
.legal .prose a, .legal .lede a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal .legal-mail { font-family: var(--font-heading); font-weight: 700; font-size: 18px; }
.legal .legal-bm { margin-top: 56px; padding-top: 30px; border-top: 2px solid var(--line); }

/* Language switch (EN / BM) in the header. */
.lang-switch {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 9px;
  line-height: 1;
}
.lang-switch:hover { color: var(--ink); border-color: var(--ink); }
.legal .legal-note { margin-top: 30px; font-size: 13px; color: var(--mist); max-width: 70ch; }

/* Organiser form: "Add more details" panels + completeness nudge. */
.more-head { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin: 30px 0 12px; }
.more-head span { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--mist); margin-left: 6px; }
details.more { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; background: var(--card); }
details.more > summary { cursor: pointer; padding: 13px 16px; font-weight: 700; font-size: 14.5px; list-style-position: inside; }
details.more[open] > summary { border-bottom: 1px solid var(--line-2); }
details.more > :not(summary) { margin-left: 16px; margin-right: 16px; }
details.more > :last-child { margin-bottom: 16px; }
.more-hint { font-size: 13px; color: var(--mist); margin: 12px 16px 10px; }
.chk-grid { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.rep-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.rep-row input { flex: 1; }
.rep-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); }
.rep-card .linklike { align-self: flex-start; }
.sp-logo { height: 40px; width: auto; max-width: 120px; object-fit: contain; background: #fff; border: 1px solid var(--line-2); border-radius: 4px; padding: 3px; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.completeness { margin: 22px 0 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); }
.completeness .cbar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 9px; }
.completeness .cbar span { display: block; height: 100%; background: var(--gold); }
.completeness .ctext { font-size: 13.5px; color: var(--ink); }

/* Free event page: organiser-entered "What to expect" / "Who can enter" / FAQ. */
.ov-points { margin: 0 0 18px 20px; padding: 0; list-style: disc; max-width: 62ch; }
.ov-points li { font-size: 15px; line-height: 1.55; margin-bottom: 8px; color: var(--ink); opacity: .9; }
.ov-faq { border-top: 1px solid var(--line-2); padding: 12px 0; max-width: 62ch; }
.ov-faq:last-child { border-bottom: 1px solid var(--line-2); margin-bottom: 18px; }
.ov-faq summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.ov-faq p { margin: 10px 0 0; }

/* Free event page: organiser-entered "What to expect" / "Who can enter" / FAQ. */
.ov-points { margin: 0 0 18px 20px; padding: 0; list-style: disc; max-width: 62ch; }
.ov-points li { font-size: 15px; line-height: 1.55; margin-bottom: 8px; color: var(--ink); opacity: .9; }
.ov-faq { border-top: 1px solid var(--line-2); padding: 12px 0; max-width: 62ch; }
.ov-faq:last-child { border-bottom: 1px solid var(--line-2); margin-bottom: 18px; }
.ov-faq summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.ov-faq p { margin: 10px 0 0; }

/* Narrow phones: the Malay labels + language switch don't fit beside the brand.
   "Log in" goes (organisers still reach it via "List your event"). */
@media (max-width: 420px) {
  .nav-act .btn-ghost { display: none; }
  .nav-act { max-width: 100%; }
}

/* Events directory: labelled date filters; on phones the filter row hides behind a toggle. */
.date-chip { display: inline-flex; align-items: center; gap: 6px; }
.date-chip > span { font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mist-2); }
.filter-toggle { display: none; }
@media (max-width: 700px) {
  .filter-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 10px; cursor: pointer; }
  .filters-body { display: none; }
  .filters-body.is-open { display: flex; }
}
.legal .prose ol.steps { margin: 0 0 14px 22px; padding: 0; list-style: decimal; }
.legal .prose ol.steps li { color: var(--ink); opacity: .9; font-size: 15.5px; margin-bottom: 10px; }

/* Homepage: browse by state, organisers strip, organiser call to action. */
.state-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.state-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: 13.5px; font-weight: 600; color: var(--mist); }
.state-chip.has { color: var(--ink); border-color: var(--ink); }
.state-chip b { font-family: "JetBrains Mono", monospace; font-size: 11px; background: var(--gold); color: var(--ink); border-radius: 99px; padding: 1px 7px; }
.state-chip:hover { border-color: var(--ink); color: var(--ink); }
.org-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.org-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 600; font-size: 14px; min-height: 48px; }
.org-pill img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 6px; }
.org-pill:hover { border-color: var(--ink); }
.org-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 44px 0 48px; padding: 24px 26px; border-radius: 8px; background: var(--field, #16201B); color: #fff; }
.org-cta b { display: block; font-family: var(--font-heading); font-size: 20px; margin-bottom: 4px; }
.org-cta span { color: #cdd6cf; font-size: 15px; }

/* Event cards: whole poster over a blurred copy (portrait posters were cropped). */
.poster img.poster-bg { object-fit: cover; filter: blur(16px) saturate(1.1); transform: scale(1.15); opacity: .55; }
.poster img.poster-fit { object-fit: contain; }

/* Calendar: empty-month notice; titles wrap to two lines; "2/3" day marker. */
.cal-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 6px; background: var(--card); }
.cal-empty b { font-family: var(--font-heading); font-size: 15px; }
.cal-empty span { color: var(--mist); font-size: 14px; }
.cal-ev { white-space: normal; align-items: flex-start; }
.cal-ev .dot { margin-top: 3px; }
.cal-ev .t { flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-ev .dd { flex: none; font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--mist); }

/* Free event page gallery: fewer tiles when there are fewer photos (no empty placeholders). */
.gallery.g-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery.g-2 { grid-template-rows: 1fr; }
.gallery.g-2 .gmain { grid-row: auto; }

/* Account pages: sign-up explanation and terms note. */
.auth-intro { font-size: 14px; color: var(--mist); margin: -4px 0 18px; line-height: 1.5; }
.auth-legal { font-size: 12.5px; color: var(--mist); margin: 4px 0 14px; line-height: 1.5; }
.auth-legal a { color: var(--gold-ink); text-decoration: underline; }

/* Accessibility: skip link (visible on keyboard focus) and bigger tap targets on phones. */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: 6px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 14px; }
.skip-link:focus { top: 12px; }
#content:focus { outline: none; }
@media (max-width: 700px) {
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
  footer.site li a { display: inline-flex; align-items: center; min-height: 40px; }
  .filters .chip, .filters select, .filters input, .toggle a, .calnav .chip { min-height: 40px; }
  .shead .more { display: inline-flex; align-items: center; min-height: 40px; }
}

/* Share buttons: the free design's share is now a <button> (device share menu / copy link). */
button.sb { background: transparent; cursor: pointer; padding: 0; font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Online registration link shown as its actual address (free design). */
.reg-link { display: inline-block; margin-top: 6px; font-family: inherit; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.nt .reg-link { margin-top: 0; color: inherit; }
.important-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 22px; }
.important-links .imp-reg { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 100%; }
.important-links .imp-reg small { font-family: "JetBrains Mono", monospace; font-size: 11.5px; font-weight: 500; opacity: .85; word-break: break-all; text-align: left; }

/* ── Dashboard (organizer / advertiser) — 2026-10-24 ─────────────────────────
   One header on every /dashboard page (x-dash.header), then a working layout:
   plain sentence-case headings, numbers you can scan, colour that means something. */
.dash-bar { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dash-bar-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.dash-id { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 0; }
.dash-av { width: 40px; height: 40px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--field); color: var(--gold); font-family: var(--font-heading); font-weight: 800; font-size: 14px; object-fit: cover; }
.dash-id-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dash-id-t b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.dash-id-t span { font-size: 12.5px; color: var(--mist); display: inline-flex; align-items: center; gap: 6px; }
.dash-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mist-2); display: inline-block; }
.dash-dot.is-ok { background: #2f8f5b; }
.dash-dot.is-wait { background: var(--gold); }
.dash-tabs { display: flex; gap: 4px; align-self: stretch; margin-left: auto; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tabs a { display: flex; align-items: center; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--mist);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s, border-color .15s; }
.dash-tabs a:hover { color: var(--ink); }
.dash-tabs a.on { color: var(--ink); border-bottom-color: var(--gold); }
.dash-tabs a.is-ext { color: var(--gold-ink); }
.dash-cta { flex: none; }
.panahan .dash-crumb { display: inline-block; font-size: 13px; font-weight: 600; color: var(--mist); margin-bottom: 14px; }
.panahan .dash-crumb:hover { color: var(--ink); }

.dash-main { min-height: 50vh; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 30px 0 20px; }
.dash-head h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.01em; line-height: 1.1; margin: 0; }
.dash-head p { color: var(--mist); font-size: 14.5px; margin: 6px 0 0; }

.dash-admin { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.dash-admin:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.dash-admin-ic { width: 38px; height: 38px; flex: none; border-radius: 8px; display: grid; place-items: center; background: rgba(200,71,47,.1); color: var(--red); }
.dash-admin-ic.is-blue { background: rgba(63,127,191,.12); color: #3f7fbf; }
.dash-admin-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dash-admin-t b { font-size: 15px; }
.dash-admin-t span { font-size: 13px; color: var(--mist); }
.dash-admin-go { font-size: 13px; font-weight: 700; color: var(--gold-ink); white-space: nowrap; }

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink); transition: border-color .15s, transform .15s; }
a.kpi:hover { border-color: var(--ink); transform: translateY(-1px); }
.kpi-k { font-size: 12.5px; font-weight: 600; color: var(--mist); }
.kpi-v { font-family: var(--font-heading); font-weight: 800; font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-s { font-size: 12px; color: var(--mist-2); line-height: 1.3; }
.kpi.is-hot { border-color: rgba(200,71,47,.45); background: rgba(200,71,47,.05); }
.kpi.is-hot .kpi-v { color: var(--red); }

.dash-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.panahan .panel-h h2 { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.3; margin: 0; }
.panel-h .count { font-size: 12px; font-weight: 700; background: var(--gold); color: var(--ink); border-radius: 99px; padding: 1px 8px; }
.panahan .panel-more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.panahan .panel-more:hover { color: var(--ink); }
.panel-empty { padding: 34px 24px; text-align: center; color: var(--mist); font-size: 14px; }
.panel-empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

.todo { display: grid; grid-template-columns: 136px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.todo:last-child { border-bottom: 0; }
.todo-t { display: flex; flex-direction: column; min-width: 0; }
.todo-t b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-t span { font-size: 13px; color: var(--mist); line-height: 1.4; }
.todo .badge { justify-self: start; }

.up { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line-2); }
.up:last-child { border-bottom: 0; }
.up-date { width: 48px; text-align: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; line-height: 1; }
.up-date span { display: block; background: var(--field); color: var(--gold); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; }
.up-date b { display: block; font-family: var(--font-heading); font-size: 19px; padding: 6px 0; }
.up-t { display: flex; flex-direction: column; min-width: 0; }
.up-t a { color: var(--ink); }
.up-t a:hover b { text-decoration: underline; }
.up-t b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.up-t span { font-size: 12.5px; color: var(--mist); }
.up-t em { font-style: normal; font-weight: 700; color: var(--red); }
.up-act { display: flex; gap: 12px; font-size: 13px; }
.up-act .linklike { text-decoration: none; }

.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 44px; }
.quick-i { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; background: transparent; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink); transition: .15s; }
.quick-i:hover { background: var(--card); border-style: solid; border-color: var(--gold); }
.quick-i b { font-size: 14.5px; }
.quick-i span { font-size: 13px; color: var(--mist); }

/* Status badges — shared by the overview and My events. */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.5; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.is-ok { background: rgba(47,143,91,.12); color: #22704a; }
.badge.is-warn { background: rgba(232,178,58,.2); color: var(--gold-ink); }
.badge.is-alert { background: rgba(200,71,47,.12); color: var(--red); }
.badge.is-info { background: rgba(63,127,191,.12); color: #2f6aa6; }
.badge.is-muted { background: var(--paper-2); color: var(--mist); }

/* My events */
.dash-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--red); margin-bottom: 14px; }
.dash-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(200,71,47,.15); }
.ev-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button { border: 1px solid transparent; background: transparent; border-radius: 99px; padding: 7px 13px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--mist); cursor: pointer; transition: .15s; }
.seg button span { font-size: 12px; color: var(--mist-2); margin-left: 3px; font-variant-numeric: tabular-nums; }
.seg button:hover { color: var(--ink); background: var(--card); border-color: var(--line); }
.seg button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg button.on span { color: rgba(242,244,241,.65); }
.ev-search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; color: var(--mist); min-width: 240px; }
.ev-search:focus-within { border-color: var(--ink); }
.ev-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; padding: 9px 0; width: 100%; color: var(--ink); }

.ev-list { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.ev-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 80px 60px 150px; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.ev-row:last-child { border-bottom: 0; }
.ev-row:not(.ev-row-h):hover { background: rgba(22,32,27,.018); }
.ev-row-h { padding: 10px 18px; font-size: 12px; font-weight: 600; color: var(--mist-2); border-bottom: 1px solid var(--line); }
.ev-row .num { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.ev-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.ev-thumb { width: 44px; height: 44px; flex: none; border-radius: 7px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-thumb span { font-family: var(--font-heading); font-weight: 800; font-size: 16px; line-height: 1; text-align: center; color: var(--ink); }
.ev-thumb small { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--mist); margin-top: 2px; }
.ev-t { display: flex; flex-direction: column; min-width: 0; }
.ev-t b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-t > span { font-size: 13px; color: var(--mist); }
.ev-note { font-size: 12.5px; margin-top: 3px; }
.ev-note.is-alert { color: var(--red); }
.ev-note.is-warn { color: var(--gold-ink); }
.ev-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ev-phase { font-size: 12px; color: var(--mist); padding-left: 2px; }
.ev-phase.is-live { color: var(--red); font-weight: 700; }
.ev-act { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.more { position: relative; }
.more-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--mist); cursor: pointer; }
.more-btn:hover { color: var(--ink); border-color: var(--ink); }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.panahan .more-menu a, .more-menu button { text-align: left; padding: 9px 11px; border: 0; background: none; border-radius: 6px; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.more-menu a:hover, .more-menu button:hover { background: var(--paper); }

@media (max-width: 1000px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .dash-bar-in { flex-wrap: wrap; gap: 0 14px; min-height: 0; }
  .dash-tabs { order: 3; width: 100%; margin-left: 0; border-top: 1px solid var(--line-2); }
  .dash-tabs a { padding: 12px; }
  .dash-tabs a:first-child { padding-left: 0; }
  .dash-cta { margin-left: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-v { font-size: 26px; }
  .quick { grid-template-columns: minmax(0, 1fr); }
  .todo { grid-template-columns: minmax(0, 1fr) auto; }
  .todo .badge { grid-column: 1 / -1; }
  .ev-search { min-width: 0; width: 100%; }
  .ev-row-h { display: none; }
  .ev-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .ev-main { grid-column: 1 / -1; }
  .ev-status { flex-direction: row; align-items: center; gap: 8px; }
  .ev-row .num { display: none; }
}
.dash-logout { display: none; margin: 0 0 0 auto; }
.dash-logout button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--mist); cursor: pointer; padding: 12px 0 12px 12px; }
@media (max-width: 760px) {
  .dash-id { flex: 1; }
  .dash-id-t b { max-width: 100%; }
  .dash-cta { padding: 8px 12px; font-size: 12.5px; }
}
@media (max-width: 420px) {
  .dash-logout { display: block; }
}
@media (max-width: 760px) {
  .todo-t b, .up-t b, .ev-t b { white-space: normal; }
  .up { grid-template-columns: 48px minmax(0, 1fr); }
  .up-act { grid-column: 2; }
}

/* Logo (x-site.brand-logo) on phones: a touch smaller so the language switch and the
   main button stay on the brand's row. */
@media (max-width: 600px) {
  .nav .brand .bl { gap: 6px !important; }
  .nav .brand .bl-mark { width: 26px !important; height: 26px !important; }
  .nav .brand .bl-main { font-size: 15px !important; }
  .nav .brand .bl-sub { font-size: 8px !important; letter-spacing: .38em !important; }
  .nav .brand > img { height: 27px !important; }
}
@media (max-width: 420px) {
  .nav-act { gap: 6px; }
  .nav-act .btn { padding: 8px 10px; font-size: 12px; }
}
