/*
 * SmartSD IT Portal — shared shell (top bar, menus, cards, forms).
 * Same look as S.A.M.: blue bar, light background, white cards.
 * All colours are variables; html[data-theme="dark"] switches to the dark set.
 * Prefix "pt-" so it never clashes with a tool's own CSS.
 */
:root {
  --pt-brand: #006BAB;
  --pt-brand-d: #00568a;
  --pt-brand-l: #e8f4fa;
  --pt-brand-b: #9ccde6;
  --pt-green: #24b224;
  --pt-orange: #f28c00;
  --pt-red: #c0392b;
  --pt-bg: #f5f7fa;
  --pt-card: #ffffff;
  --pt-card-2: #fafbfd;
  --pt-line: #e3e8ef;
  --pt-text: #1f2937;
  --pt-muted: #6b7280;
  --pt-input: #ffffff;
  --pt-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}
html[data-theme="dark"] {
  --pt-bg: #0f172a;
  --pt-card: #1e293b;
  --pt-card-2: #172033;
  --pt-line: #334155;
  --pt-text: #e5e7eb;
  --pt-muted: #94a3b8;
  --pt-input: #0f172a;
  --pt-brand-l: #0f2a3d;
  --pt-brand-b: #1e4d6b;
  --pt-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}

/* ---------- top bar ---------- */
.pt-top {
  position: sticky; top: 0; z-index: 1040;   /* stays in view while scrolling */
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 24px; box-sizing: border-box;   /* same height as the S.A.M. and Werkbord bars */
  background: #006BAB; color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; font-size: 14px;
}
.pt-top * { box-sizing: border-box; }
.pt-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pt-title { color: #fff !important; text-decoration: none !important; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-title b { font-weight: 700; margin-right: 2px; }
.pt-waffle {
  width: 36px; height: 36px; border-radius: 8px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .16);
  display: grid; grid-template-columns: repeat(3, 6px); gap: 4px; place-content: center; padding: 0;
}
.pt-waffle span { width: 6px; height: 6px; border-radius: 1px; background: #fff; display: block; }
.pt-waffle:hover, .pt-waffle[aria-expanded="true"] { background: rgba(255, 255, 255, .3); }

/* ---------- pop-ups ---------- */
.pt-pop {
  position: absolute; top: 60px; background: var(--pt-card); color: var(--pt-text);
  border: 1px solid var(--pt-line); border-radius: 12px; box-shadow: var(--pt-shadow);
}
.pt-pop[hidden] { display: none; }
.pt-apps { left: 14px; width: 420px; max-width: calc(100vw - 28px); padding: 14px; }
.pt-pop-head { font-size: 12px; font-weight: 600; color: var(--pt-muted); padding: 2px 4px 10px; }
.pt-pop-sub { font-size: 11px; font-weight: 600; color: var(--pt-muted); padding: 2px 14px; }
.pt-danger { color: var(--pt-red) !important; }
.pt-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pt-tile {
  display: block; text-align: center; text-decoration: none !important; color: var(--pt-text) !important;
  border: 1px solid var(--pt-line); border-radius: 10px; padding: 12px 6px;
}
.pt-tile:hover { border-color: var(--pt-brand-b); background: var(--pt-card-2); }
.pt-tile.is-current { background: var(--pt-brand-l); border-color: var(--pt-brand-b); }
.pt-tile b { display: block; font-size: 13px; }
.pt-tile small { display: block; font-size: 11px; color: var(--pt-muted); margin-top: 2px; }
.pt-ic svg { width: 58%; height: 58%; display: block; }
.pt-ic { width: 34px; height: 34px; border-radius: 8px; margin: 0 auto 6px; color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; background: var(--pt-brand); }
.pt-pop-foot { border-top: 1px solid var(--pt-line); margin-top: 12px; padding-top: 10px; font-size: 12px; }
.pt-pop-foot a { color: var(--pt-brand); text-decoration: none; }

/* ---------- portal pages ---------- */
.pt-body { margin: 0; background: var(--pt-bg); color: var(--pt-text); font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; font-size: 14px; }
.pt-main { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.pt-card { background: var(--pt-card); border: 1px solid var(--pt-line); border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.pt-banner { background: var(--pt-brand-l); border: 1px solid var(--pt-brand-b); border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; color: var(--pt-brand-d); }
html[data-theme="dark"] .pt-banner { color: #cfe6f3; }
.pt-banner h1, .pt-banner h2 { margin: 0 0 4px; font-size: 18px; }
.pt-card h2 { margin: 0 0 6px; font-size: 17px; color: var(--pt-brand); }
html[data-theme="dark"] .pt-card h2 { color: #7cc0ea; }
.pt-muted { color: var(--pt-muted); font-size: 12.5px; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pt-app { display: flex; gap: 12px; align-items: flex-start; text-decoration: none !important; color: var(--pt-text) !important; background: var(--pt-card-2); border: 1px solid var(--pt-line); border-radius: 10px; padding: 16px; }
.pt-app:hover { border-color: var(--pt-brand-b); }
.pt-app .pt-ic { margin: 0; flex: none; }
.pt-app { position: relative; }
.pt-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin: -4px 0 10px; font-size: 12.5px; }
.pt-tools [hidden] { display: none !important; }   /* .pt-btn sets display, which would override the hidden attribute */
.pt-tools .pt-btn { padding: 3px 10px; font-size: 12.5px; font-weight: 500; line-height: 1.5; }
.pt-tools .pt-btn.green { border: 1px solid var(--pt-green); }
.pt-tools .pt-btn svg { vertical-align: -2px; margin-right: 5px; }
.pt-tools [data-pt-status] { margin-right: 4px; font-size: 12.5px; }
.pt-move { display: none; position: absolute; top: 6px; right: 6px; gap: 4px; }
.pt-move button { border: 1px solid var(--pt-line); background: var(--pt-card); color: var(--pt-brand); border-radius: 6px; width: 24px; height: 24px; font-size: 10px; line-height: 1; cursor: pointer; padding: 0; }
.pt-move button:hover { border-color: var(--pt-brand-b); background: var(--pt-brand-l); }
.pt-grid.is-editing .pt-move { display: flex; }
.pt-grid.is-editing .pt-app { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; border-style: dashed; border-color: var(--pt-brand-b); }
.pt-grid.is-editing .pt-app.is-dragging { opacity: .3; }
.pt-app-ghost { position: fixed !important; z-index: 1000; margin: 0 !important; pointer-events: none !important; opacity: .95; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); cursor: grabbing; }
.pt-app b { display: block; color: var(--pt-brand); font-size: 15px; }
html[data-theme="dark"] .pt-app b { color: #7cc0ea; }
.pt-app small { color: var(--pt-muted); }

.pt-msg { border-radius: 10px; padding: 11px 15px; margin-bottom: 16px; }
.pt-msg.ok { background: #e7f6ec; border: 1px solid #8fd1a5; color: #14532d; }
.pt-msg.err { background: #fdecea; border: 1px solid #f1a7a0; color: #7f1d1d; }

label.pt-label { display: block; font-size: 12.5px; font-weight: 600; margin: 12px 0 4px; }
.pt-input, .pt-select { width: 100%; padding: 8px 10px; border: 1px solid var(--pt-line); border-radius: 8px; font: inherit; background: var(--pt-input); color: var(--pt-text); }
.pt-input:focus, .pt-select:focus { outline: none; border-color: var(--pt-brand); box-shadow: 0 0 0 3px rgba(11, 106, 168, .2); }
.pt-btn { display: inline-block; margin-top: 14px; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; background: var(--pt-brand); color: #fff !important; text-decoration: none !important; }
.pt-btn:hover { background: var(--pt-brand-d); }
.pt-btn.green { background: var(--pt-green); }
.pt-btn.ghost { background: transparent; color: var(--pt-brand) !important; border: 1px solid var(--pt-brand); }
.pt-btn.small { padding: 5px 10px; margin-top: 0; font-size: 12.5px; }
.pt-btn.red { background: var(--pt-red); }
.pt-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.pt-row > * { flex: 1 1 180px; }

.pt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pt-table th, .pt-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--pt-line); vertical-align: middle; }
.pt-table th { color: var(--pt-muted); font-weight: 600; font-size: 12px; }
.pt-table a { color: var(--pt-brand); text-decoration: none; }
.pt-badge { display: inline-block; border: 1px solid var(--pt-brand); color: var(--pt-brand); border-radius: 12px; padding: 1px 8px; font-size: 11.5px; font-weight: 600; margin: 1px 3px 1px 0; }
.pt-badge.warn { border-color: var(--pt-orange); color: var(--pt-orange); }
.pt-badge.off { border-color: var(--pt-muted); color: var(--pt-muted); }

/* permissions editor */
.pt-perm-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; }
.pt-perm-app { border: 1px solid var(--pt-line); border-radius: 10px; background: var(--pt-card-2); padding: 12px 14px; }
.pt-perm-app h3 { margin: 0 0 6px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pt-perm-app h3 .pt-ic { width: 22px; height: 22px; margin: 0; font-size: 11px; border-radius: 6px; }
.pt-perm-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--pt-line); padding: 5px 0; }
.pt-perm-row .name { flex: 1; }
.pt-perm-row .name.is-off { color: var(--pt-muted); }
.pt-perm-row .src { font-size: 11px; color: var(--pt-muted); min-width: 92px; text-align: right; }
.pt-seg { display: inline-flex; border: 1px solid var(--pt-line); border-radius: 6px; overflow: hidden; font-size: 11.5px; }
.pt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pt-seg label { padding: 3px 8px; cursor: pointer; user-select: none; }
.pt-seg input:checked + label.v-role { background: var(--pt-brand-l); color: var(--pt-brand-d); font-weight: 600; }
.pt-seg input:checked + label.v-allow { background: var(--pt-green); color: #fff; font-weight: 600; }
.pt-seg input:checked + label.v-deny { background: var(--pt-red); color: #fff; font-weight: 600; }
.pt-seg input:focus-visible + label { outline: 2px solid var(--pt-brand); }
.pt-matrix th.rot { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; height: 110px; vertical-align: bottom; }
.pt-matrix td.c { text-align: center; }

/* login */
.pt-login { max-width: 400px; margin: 70px auto; }
.pt-login .pt-card { padding: 28px; }
.pt-login h1 { margin: 0 0 4px; font-size: 20px; color: var(--pt-brand); }

@media (max-width: 640px) {
  .pt-title { font-size: 15px; }
  .pt-chip .pt-caret, .pt-chip { font-size: 12px; }
  .pt-perm-apps { grid-template-columns: 1fr; }
  .pt-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- switcher embedded in a tool's own navbar (S.A.M., Werkbord) ---------- */
.pt-switcher { position: relative; display: inline-flex; align-items: center; margin-right: 12px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; font-size: 14px; }
.pt-switcher * { box-sizing: border-box; }
.pt-switcher .pt-pop { top: 46px; left: -4px; z-index: 1000; text-align: left; }

/* ---------- right side of the bar: same buttons and menu as S.A.M. ---------- */
.pt-right { display: flex; align-items: center; gap: 12px; }
.pt-nav-badge, .pt-nav-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; margin: 0;
  font: 600 12px/1 Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  border-radius: 6px; box-sizing: border-box; color: #fff;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25);
}
.pt-nav-btn { border-color: rgba(255, 255, 255, .3); cursor: pointer; transition: all .2s ease; }
.pt-nav-btn:hover, .pt-nav-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .25); border-color: rgba(255, 255, 255, .45); }
.pt-nav-ic { width: 14px; height: 14px; stroke: #fff; }
.pt-nav-caret { width: 11px; height: 11px; stroke: #fff; }
.pt-dd { position: relative; display: inline-block; }
.pt-user {
  top: 38px; right: 0; left: auto; min-width: 230px; padding: 6px 0; border-radius: 8px; z-index: 100;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
.pt-user .pt-pop-head { padding: 6px 16px 8px; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-user form { margin: 0; }
.pt-dd-item {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 9px 16px; margin: 0;
  font: 400 13px/1.3 Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; text-align: left;
  color: var(--pt-text) !important; text-decoration: none !important; background: none; border: 0; cursor: pointer;
  transition: background .15s ease;
}
.pt-dd-ic { flex-shrink: 0; width: 16px; height: 16px; stroke: var(--pt-muted); }
.pt-dd-item:hover { background: var(--pt-bg); color: var(--pt-brand) !important; }
.pt-dd-item:hover .pt-dd-ic { stroke: var(--pt-brand); }
.pt-dd-item.pt-danger, .pt-dd-item.pt-danger:hover { color: #b91c1c !important; }
.pt-dd-item.pt-danger .pt-dd-ic { stroke: #b91c1c; }
.pt-dd-divider { height: 1px; background: var(--pt-line); margin: 6px 0; }
@media (max-width: 640px) { .pt-nav-badge { display: none; } }
.pt-forgot { margin: 14px 0 0; font-size: 13px; } .pt-forgot a { color: var(--pt-brand); }

/* SmartSD logo next to the tile button (portal bar and the S.A.M./Werkbord bars) */
.pt-logo { display: inline-flex; align-items: center; margin: 0 4px 0 2px; }
.pt-logo img { display: block; height: 34px; width: auto; }
.pt-switcher .pt-logo { margin-left: 12px; }
@media (max-width: 640px) { .pt-logo { display: none; } }

/* =====================================================================================================
 * The SmartSD menu bar (lib/menu.php): logo, five drop-downs that open on hover, search, help, personal menu, light/dark.
 * ===================================================================================================== */
.pt-menubar { justify-content: flex-start; gap: 6px; padding: 0 14px 0 18px; }
.pt-menubar .pt-logo { display: inline-flex; flex: none; margin: 0 12px 0 0; }
.pt-menubar .pt-title { margin-left: 8px; }
.pt-nav { display: flex; align-items: stretch; justify-content: center; flex: 1 1 auto; min-width: 0; height: 100%; }
.pt-g { position: relative; display: flex; align-items: stretch; height: 60px; }
.pt-gb {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 60px; margin: 0; padding: 0 16px;
  border: 0; background: none; color: #fff; cursor: pointer; white-space: nowrap;
  font: 600 13.5px/1 Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; transition: background .15s ease;
}
.pt-gb::after {   /* bar under the open / current group */
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: #fff; opacity: 0; transform: scaleX(.5); transition: opacity .15s ease, transform .15s ease;
}
.pt-g:hover > .pt-gb, .pt-g.is-open > .pt-gb { background: rgba(255, 255, 255, .14); }
.pt-g.is-current > .pt-gb::after, .pt-g.is-open > .pt-gb::after { opacity: 1; transform: none; }
.pt-gb:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 6px; }
.pt-caret { width: 11px; height: 11px; flex: none; opacity: .85; transition: transform .15s ease; }
.pt-g.is-open > .pt-gb .pt-caret { transform: rotate(180deg); }

/* drop-down panel: touches the bar, so the pointer never crosses a gap */
.pt-gp { position: absolute; top: 100%; left: 0; z-index: 1050; display: none; }
.pt-g.is-open > .pt-gp { display: block; }
.pt-gp-r { left: auto; right: 0; }
.pt-cols {
  display: flex; gap: 6px; padding: 10px; color: var(--pt-text); background: var(--pt-card);
  border: 1px solid var(--pt-line); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: var(--pt-shadow);
  animation: pt-drop .13s ease-out;
}
@keyframes pt-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pt-col { display: flex; flex-direction: column; gap: 1px; min-width: 226px; }
.pt-col + .pt-col { border-left: 1px solid var(--pt-line); padding-left: 6px; }
.pt-gp-r .pt-col { min-width: 236px; }
.pt-ch { padding: 6px 10px 8px; font: 700 10.5px/1 Inter, "Segoe UI", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-muted); }
.pt-mi {
  display: flex; align-items: center; gap: 11px; width: 100%; margin: 0; padding: 7px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--pt-text) !important; text-align: left; text-decoration: none !important; cursor: pointer;
  font: 500 13.5px/1.25 Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; box-sizing: border-box;
}
.pt-mi:hover, .pt-mi:focus-visible { background: var(--pt-brand-l); color: var(--pt-brand-d) !important; outline: none; }
.pt-mi.is-current { background: var(--pt-brand-l); font-weight: 700; }
.pt-mic {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px;
  background: var(--pt-card-2); border: 1px solid var(--pt-line); color: var(--pt-brand); transition: background .12s ease, color .12s ease;
}
.pt-mi:hover .pt-mic, .pt-mi:focus-visible .pt-mic, .pt-mi.is-current .pt-mic { background: var(--pt-brand); border-color: var(--pt-brand); color: #fff; }
.pt-mi-svg { width: 18px; height: 18px; }
.pt-mn { flex: 1 1 auto; min-width: 0; }
.pt-mx { width: 12px; height: 12px; flex: none; color: var(--pt-muted); }
.pt-sep { height: 1px; margin: 5px 8px; background: var(--pt-line); }
.pt-gp form { margin: 0; }
.pt-mi.pt-danger, .pt-mi.pt-danger:hover { color: #b91c1c !important; }
.pt-mi.pt-danger .pt-mic { color: #b91c1c; }
.pt-mi.pt-danger:hover { background: rgba(185, 28, 28, .08); }
.pt-mi.pt-danger:hover .pt-mic { background: #b91c1c; border-color: #b91c1c; color: #fff; }
html[data-theme="dark"] .pt-mic { color: #7cc0ea; }
html[data-theme="dark"] .pt-mi:hover, html[data-theme="dark"] .pt-mi:focus-visible { color: #cfe6f3 !important; }
html[data-theme="dark"] .pt-mi.pt-danger, html[data-theme="dark"] .pt-mi.pt-danger:hover { color: #f87171 !important; }
html[data-theme="dark"] .pt-mi.pt-danger .pt-mic { color: #f87171; }

/* right side */
.pt-menubar .pt-right { margin-left: auto; flex: none; display: flex; align-items: center; gap: 4px; }
.pt-bar-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 8px;
  background: none; color: #fff !important; cursor: pointer; text-decoration: none !important; transition: background .15s ease;
}
.pt-bar-btn:hover, .pt-bar-btn:focus-visible { background: rgba(255, 255, 255, .18); outline: none; }
.pt-bar-ic { width: 18px; height: 18px; flex: none; }
.pt-pm { align-items: center; margin: 0 2px; }
.pt-me { height: 36px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .28); font-size: 12.5px; }
.pt-me::after { display: none; }
.pt-g:hover > .pt-me, .pt-g.is-open > .pt-me { background: rgba(255, 255, 255, .26); }
.pt-me-name { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.pt-theme .pt-ic-sun { display: none; }
html[data-theme="dark"] .pt-theme .pt-ic-moon { display: none; }
html[data-theme="dark"] .pt-theme .pt-ic-sun { display: block; }
.pt-burger { display: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; place-items: center; }

/* search */
.pt-search { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; background: rgba(15, 23, 42, .5); }
.pt-search[hidden] { display: none; }
.pt-search-card { width: min(560px, 92vw); overflow: hidden; border-radius: 14px; border: 1px solid var(--pt-line); background: var(--pt-card); color: var(--pt-text); box-shadow: var(--pt-shadow); }
.pt-search-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--pt-line); color: var(--pt-muted); }
.pt-search-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--pt-text); font: 500 16px Inter, "Segoe UI", system-ui, sans-serif; }
.pt-search-in kbd { padding: 2px 6px; border: 1px solid var(--pt-line); border-radius: 5px; font: 600 10.5px Inter, system-ui, sans-serif; color: var(--pt-muted); }
.pt-search-list { max-height: 52vh; overflow: auto; padding: 6px; }
.pt-sr { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--pt-text) !important; text-decoration: none !important; font: 500 14px/1.25 Inter, "Segoe UI", system-ui, sans-serif; }
.pt-sr.is-sel, .pt-sr:hover { background: var(--pt-brand-l); }
.pt-sr.is-sel .pt-mic { background: var(--pt-brand); border-color: var(--pt-brand); color: #fff; }
.pt-sr small { margin-left: auto; padding-left: 12px; color: var(--pt-muted); font-size: 11.5px; white-space: nowrap; }
.pt-sr-none { padding: 18px 12px; text-align: center; color: var(--pt-muted); font: 13px Inter, system-ui, sans-serif; }

@media (max-width: 1180px) {
  .pt-gb { padding: 0 12px; }
  .pt-me-name { display: none; }
  .pt-me { padding: 0 9px; }
}
@media (max-width: 980px) {
  .pt-menubar { padding: 0 10px; gap: 8px; }
  .pt-menubar .pt-logo { margin-right: 0; }
  .pt-logo img { height: 28px; }
  .pt-burger { display: inline-grid; order: -1; }
  .pt-nav {
    display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 1045; height: auto;
    flex-direction: column; align-items: stretch; justify-content: flex-start; overflow-y: auto;
    background: var(--pt-card); color: var(--pt-text);
  }
  .pt-menubar.is-nav-open .pt-nav { display: flex; }
  .pt-nav .pt-g { flex-direction: column; height: auto; border-bottom: 1px solid var(--pt-line); }
  .pt-nav .pt-gb { width: 100%; height: 50px; padding: 0 20px; justify-content: space-between; color: var(--pt-text); font-size: 14.5px; }
  .pt-nav .pt-gb::after { display: none; }
  .pt-nav .pt-g:hover > .pt-gb { background: none; }
  .pt-nav .pt-g.is-open > .pt-gb, .pt-nav .pt-g.is-current > .pt-gb { color: var(--pt-brand); background: var(--pt-brand-l); }
  .pt-nav .pt-gp { position: static; }
  .pt-nav .pt-cols { flex-direction: column; gap: 0; padding: 4px 10px 10px; border: 0; border-radius: 0; box-shadow: none; background: var(--pt-card-2); animation: none; }
  .pt-nav .pt-col { min-width: 0; }
  .pt-nav .pt-col + .pt-col { border-left: 0; padding-left: 0; margin-top: 4px; }
  .pt-menubar .pt-right { gap: 2px; }
  .pt-pm .pt-gp-r { position: fixed; top: 60px; right: 8px; }
  .pt-pm .pt-cols { border-top: 1px solid var(--pt-line); border-radius: 12px; }
}
@media (max-width: 380px) { .pt-theme { display: none; } }
@media (prefers-reduced-motion: reduce) { .pt-cols { animation: none; } .pt-gb::after, .pt-caret { transition: none; } }
