/* ===========================================================================
   TCPMAX Client Portal — customer-facing surface.
   Deliberately single-theme (brand light). Every class is pt-prefixed so it
   never collides with the staff app's app.css.
   =========================================================================== */
.pt-scope {
  --pt-ground:      #f3f4f7;
  --pt-ground-tint: #eceef3;
  --pt-surface:     #ffffff;
  --pt-surface-2:   #f8f9fb;
  --pt-ink:         #17202e;
  --pt-ink-soft:    #3d4757;
  --pt-muted:       #6b7688;
  --pt-line:        #e4e7ec;
  --pt-line-soft:   #eef0f4;
  --pt-navy:        #0a1628;
  --pt-navy-2:      #12213a;
  --pt-navy-line:   rgba(255,255,255,.07);
  --pt-navy-text:   #aeb9cc;
  --pt-navy-dim:    #64728c;
  --pt-accent:      #e8630a;
  --pt-accent-ink:  #ffffff;
  --pt-accent-soft: #fdece0;
  --pt-accent-line: #f6c9a8;
  --pt-ok:          #1f8a4c;   --pt-ok-soft:   #e4f4ea;
  --pt-warn:        #b7791f;   --pt-warn-soft: #f8efdb;
  --pt-crit:        #c33d3d;   --pt-crit-soft: #f9e5e5;
  --pt-info:        #2b6cb0;   --pt-info-soft: #e5eefa;
  --pt-radius:      10px;
  --pt-radius-sm:   7px;
  --pt-shadow-sm:   0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --pt-shadow-md:   0 4px 12px rgba(16,24,40,.08), 0 2px 4px rgba(16,24,40,.04);
  --pt-font:        'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --pt-mono:        ui-monospace, 'SFMono-Regular', 'Cascadia Mono', 'Roboto Mono', Consolas, monospace;

  font-family: var(--pt-font);
  color: var(--pt-ink);
  background: var(--pt-ground);
}
.pt-scope *, .pt-scope *::before, .pt-scope *::after { box-sizing: border-box; }
.pt-scope h1, .pt-scope h2, .pt-scope h3, .pt-scope h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
.pt-scope a { color: inherit; text-decoration: none; }
.pt-mono { font-family: var(--pt-mono); font-variant-numeric: tabular-nums; }
.pt-scope :focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- shell ---------- */
.pt-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: var(--pt-ground); }
.pt-side {
  background: var(--pt-navy); color: var(--pt-navy-text);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--pt-navy-line);
}
.pt-brand { display: flex; align-items: center; gap: 11px; padding: 20px 20px 18px; border-bottom: 1px solid var(--pt-navy-line); }
.pt-brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--pt-accent), #f6902f);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 4px 12px rgba(232,99,10,.35);
}
.pt-brand-name { color: #fff; font-weight: 800; font-size: 15.5px; line-height: 1.1; }
.pt-brand-sub { font-size: 11px; color: var(--pt-navy-dim); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }

.pt-nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.pt-nav-label { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--pt-navy-dim); padding: 16px 12px 6px; }
.pt-nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 12px; border-radius: var(--pt-radius-sm); border: 0; background: transparent;
  color: var(--pt-navy-text); font-size: 13.5px; cursor: pointer; text-align: left;
  transition: background .14s, color .14s; position: relative; font-family: inherit;
}
.pt-nav-item:hover { background: var(--pt-navy-2); color: #fff; }
.pt-nav-item.pt-active { background: var(--pt-navy-2); color: #fff; }
.pt-nav-item.pt-active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; background: var(--pt-accent); border-radius: 0 3px 3px 0; }
.pt-nav-item.pt-active .pt-nav-ico { color: var(--pt-accent); }
.pt-nav-ico { width: 18px; height: 18px; flex-shrink: 0; color: var(--pt-navy-dim); }
.pt-nav-count { margin-left: auto; font-family: var(--pt-mono); font-size: 11px; font-weight: 600; background: rgba(255,255,255,.09); color: #dfe5ef; padding: 1px 7px; border-radius: 20px; }
.pt-nav-cta {
  margin: 8px 12px 2px; padding: 10px 12px; border-radius: var(--pt-radius-sm);
  background: var(--pt-accent); color: var(--pt-accent-ink); border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 9px; justify-content: center;
  transition: filter .14s, transform .06s; font-family: inherit;
}
.pt-nav-cta:hover { filter: brightness(1.06); }
.pt-nav-cta:active { transform: translateY(1px); }

.pt-who { margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--pt-navy-line); display: flex; align-items: center; gap: 11px; }
.pt-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, #2a4a7a, #16294a);
  display: grid; place-items: center; color: #cfe0f6; font-weight: 700; font-size: 13px;
  border: 1px solid var(--pt-navy-line);
}
.pt-who-name { color: #eef2f8; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-who-org { color: var(--pt-navy-dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-who-out { margin-left: auto; color: var(--pt-navy-dim); background: 0; border: 0; cursor: pointer; padding: 6px; border-radius: 6px; flex-shrink: 0; }
.pt-who-out:hover { color: #fff; background: var(--pt-navy-2); }

.pt-main { display: flex; flex-direction: column; min-width: 0; }
.pt-topbar {
  height: 60px; background: var(--pt-surface); border-bottom: 1px solid var(--pt-line);
  display: flex; align-items: center; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 20;
}
.pt-crumb { font-size: 13px; color: var(--pt-muted); }
.pt-crumb b { color: var(--pt-ink); font-weight: 600; }
.pt-spacer { flex: 1; }
.pt-content { padding: 28px; max-width: 1180px; width: 100%; margin: 0 auto; }

/* ---------- buttons ---------- */
.pt-btn {
  border: 1px solid var(--pt-line); background: var(--pt-surface); color: var(--pt-ink-soft);
  padding: 8px 14px; border-radius: var(--pt-radius-sm); font-size: 13px; font-weight: 500;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-family: inherit;
  transition: background .14s, border-color .14s;
}
.pt-btn:hover { background: var(--pt-surface-2); border-color: var(--pt-muted); }
.pt-btn:disabled { opacity: .55; cursor: not-allowed; }
.pt-btn-primary { background: var(--pt-accent); border-color: var(--pt-accent); color: var(--pt-accent-ink); font-weight: 700; }
.pt-btn-primary:hover { filter: brightness(1.06); background: var(--pt-accent); border-color: var(--pt-accent); }
.pt-btn-ghost { border-color: transparent; background: transparent; }
.pt-btn-ghost:hover { background: var(--pt-surface-2); border-color: transparent; }
.pt-btn svg { width: 15px; height: 15px; }
.pt-btn-sm { padding: 6px 11px; font-size: 12px; }

/* ---------- page head ---------- */
.pt-head { margin-bottom: 22px; }
.pt-head h1 { font-size: 24px; }
.pt-head p { color: var(--pt-muted); margin: 4px 0 0; font-size: 13.5px; }

/* ---------- primitives ---------- */
.pt-card { background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-radius); box-shadow: var(--pt-shadow-sm); }
.pt-card-pad { padding: 18px 20px; }
.pt-card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--pt-line-soft); }
.pt-card-head h3 { font-size: 14.5px; font-weight: 700; }
.pt-card-head a { font-size: 12.5px; color: var(--pt-accent); font-weight: 600; cursor: pointer; }

.pt-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.pt-stat { background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-radius); padding: 16px 18px; box-shadow: var(--pt-shadow-sm); position: relative; overflow: hidden; }
.pt-stat-k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--pt-muted); font-weight: 700; }
.pt-stat-v { font-weight: 800; font-size: 29px; margin-top: 8px; letter-spacing: -.02em; }
.pt-stat-meta { font-size: 12px; color: var(--pt-muted); margin-top: 3px; }
.pt-stat-meta.pt-neg { color: var(--pt-crit); }
.pt-stat-strip { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.pt-strip-accent { background: var(--pt-accent); } .pt-strip-warn { background: var(--pt-warn); }
.pt-strip-crit { background: var(--pt-crit); } .pt-strip-ok { background: var(--pt-ok); }

.pt-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.pt-col { display: flex; flex-direction: column; gap: 18px; }

/* ---------- table ---------- */
.pt-tbl-wrap { overflow-x: auto; }
table.pt-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.pt-tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--pt-muted); font-weight: 700; padding: 10px 20px; border-bottom: 1px solid var(--pt-line-soft); background: var(--pt-surface-2); }
.pt-tbl td { padding: 13px 20px; border-bottom: 1px solid var(--pt-line-soft); vertical-align: middle; }
.pt-tbl tbody tr:last-child td { border-bottom: 0; }
.pt-tbl tr.pt-click { cursor: pointer; transition: background .12s; }
.pt-tbl tr.pt-click:hover td { background: var(--pt-surface-2); }
.pt-t-title { font-weight: 600; color: var(--pt-ink); }
.pt-cell-num { font-family: var(--pt-mono); font-size: 12.5px; color: var(--pt-ink-soft); }
.pt-amt { font-family: var(--pt-mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.pt-right { text-align: right; }

/* ---------- pills ---------- */
.pt-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; line-height: 1.4; }
.pt-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pt-p-open { background: var(--pt-info-soft); color: var(--pt-info); }
.pt-p-prog { background: var(--pt-accent-soft); color: var(--pt-accent); }
.pt-p-hold { background: var(--pt-warn-soft); color: var(--pt-warn); }
.pt-p-wait { background: var(--pt-ground-tint); color: var(--pt-muted); }
.pt-p-done { background: var(--pt-ok-soft); color: var(--pt-ok); }
.pt-p-crit { background: var(--pt-crit-soft); color: var(--pt-crit); }
.pt-pri { font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; color: var(--pt-ink-soft); }
.pt-pri i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.pt-pri-low i { background: #9aa6b6; } .pt-pri-medium i { background: var(--pt-info); }
.pt-pri-high i { background: var(--pt-warn); } .pt-pri-critical i { background: var(--pt-crit); }

/* ---------- mini list ---------- */
.pt-mini { display: flex; flex-direction: column; }
.pt-mini-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--pt-line-soft); cursor: pointer; transition: background .12s; }
.pt-mini-row:last-child { border-bottom: 0; }
.pt-mini-row:hover { background: var(--pt-surface-2); }
.pt-mini-main { min-width: 0; flex: 1; }
.pt-mini-title { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-mini-sub { font-size: 11.5px; color: var(--pt-muted); margin-top: 2px; }

.pt-help {
  background: linear-gradient(150deg, var(--pt-navy), var(--pt-navy-2)); color: #fff;
  border-radius: var(--pt-radius); padding: 20px; box-shadow: var(--pt-shadow-md);
}
.pt-help h3 { color: #fff; font-size: 15px; }
.pt-help p { color: var(--pt-navy-text); font-size: 12.5px; margin: 6px 0 14px; }
.pt-help .pt-btn { width: 100%; justify-content: center; }

/* ---------- ticket detail ---------- */
.pt-detail { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.pt-thread { display: flex; flex-direction: column; gap: 14px; }
.pt-msg { display: flex; gap: 12px; }
.pt-msg-av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.pt-msg-av.pt-staff { background: linear-gradient(140deg, var(--pt-accent), #f6902f); }
.pt-msg-av.pt-cust { background: linear-gradient(140deg, #2a4a7a, #16294a); }
.pt-msg-body { flex: 1; min-width: 0; }
.pt-msg-meta { font-size: 12px; color: var(--pt-muted); margin-bottom: 5px; }
.pt-msg-meta b { color: var(--pt-ink); font-weight: 600; }
.pt-msg-bubble { background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: 4px 12px 12px 12px; padding: 12px 14px; font-size: 13px; color: var(--pt-ink-soft); box-shadow: var(--pt-shadow-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-msg.pt-cust .pt-msg-bubble { background: var(--pt-surface-2); }
.pt-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pt-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--pt-ink-soft); background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: 7px; padding: 6px 10px; cursor: pointer; }
.pt-chip svg { width: 14px; height: 14px; color: var(--pt-muted); }
.pt-chip:hover { border-color: var(--pt-accent-line); }

.pt-reply { margin-top: 18px; }
.pt-reply textarea, .pt-field textarea, .pt-field input[type=text], .pt-field select {
  width: 100%; border: 1px solid var(--pt-line); border-radius: var(--pt-radius-sm);
  padding: 11px 13px; font-family: inherit; font-size: 13px; color: var(--pt-ink); background: var(--pt-surface);
}
.pt-reply textarea { min-height: 92px; resize: vertical; }
.pt-reply textarea:focus, .pt-field textarea:focus, .pt-field input:focus, .pt-field select:focus { outline: none; border-color: var(--pt-accent); box-shadow: 0 0 0 3px var(--pt-accent-soft); }
.pt-reply-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

.pt-meta dl { margin: 0; }
.pt-meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--pt-line-soft); font-size: 13px; }
.pt-meta-row:last-child { border-bottom: 0; }
.pt-meta-row dt { color: var(--pt-muted); } .pt-meta-row dd { margin: 0; font-weight: 500; text-align: right; }
.pt-sla-good { color: var(--pt-ok); font-weight: 700; } .pt-sla-warn { color: var(--pt-warn); font-weight: 700; }

/* ---------- new request ---------- */
.pt-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.pt-type { border: 1px solid var(--pt-line); background: var(--pt-surface); border-radius: var(--pt-radius); padding: 16px; cursor: pointer; text-align: left; transition: border-color .14s, box-shadow .14s; font-family: inherit; }
.pt-type:hover { border-color: var(--pt-accent-line); box-shadow: var(--pt-shadow-md); }
.pt-type.pt-sel { border-color: var(--pt-accent); box-shadow: 0 0 0 3px var(--pt-accent-soft); }
.pt-type-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--pt-accent-soft); color: var(--pt-accent); display: grid; place-items: center; margin-bottom: 10px; font-size: 18px; }
.pt-type h4 { font-size: 13.5px; font-weight: 700; }
.pt-type p { font-size: 11.5px; color: var(--pt-muted); margin: 4px 0 0; }

.pt-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.pt-field label { font-size: 12.5px; font-weight: 700; color: var(--pt-ink-soft); }
.pt-field textarea { min-height: 120px; resize: vertical; }
.pt-hint { font-size: 11.5px; color: var(--pt-muted); }
.pt-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pt-seg { display: inline-flex; border: 1px solid var(--pt-line); border-radius: var(--pt-radius-sm); overflow: hidden; }
.pt-seg button { border: 0; background: var(--pt-surface); padding: 8px 14px; font-size: 12.5px; cursor: pointer; color: var(--pt-ink-soft); border-right: 1px solid var(--pt-line); font-family: inherit; }
.pt-seg button:last-child { border-right: 0; }
.pt-seg button.pt-on { background: var(--pt-accent); color: var(--pt-accent-ink); font-weight: 700; }
.pt-drop { border: 1.5px dashed var(--pt-line); border-radius: var(--pt-radius); padding: 22px; text-align: center; color: var(--pt-muted); font-size: 13px; background: var(--pt-surface-2); }
.pt-drop label { color: var(--pt-accent); font-weight: 700; cursor: pointer; }
.pt-uploads { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.pt-upload-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--pt-ink-soft); }

/* ---------- agreements ---------- */
.pt-agr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pt-bar { height: 8px; background: var(--pt-ground-tint); border-radius: 20px; overflow: hidden; margin-top: 10px; }
.pt-bar > i { display: block; height: 100%; border-radius: 20px; background: var(--pt-accent); }
.pt-bar.pt-over > i { background: var(--pt-crit); }

/* ---------- kb ---------- */
.pt-kb-search { position: relative; margin-bottom: 20px; }
.pt-kb-search input { width: 100%; border: 1px solid var(--pt-line); border-radius: var(--pt-radius); padding: 12px 14px 12px 42px; font-family: inherit; font-size: 14px; background: var(--pt-surface); color: var(--pt-ink); }
.pt-kb-search input:focus { outline: none; border-color: var(--pt-accent); box-shadow: 0 0 0 3px var(--pt-accent-soft); }
.pt-kb-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--pt-muted); }
.pt-kb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pt-kb-card { padding: 16px 18px; cursor: pointer; transition: border-color .14s, box-shadow .14s; }
.pt-kb-card:hover { border-color: var(--pt-accent-line); box-shadow: var(--pt-shadow-md); }
.pt-kb-card h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.pt-kb-card p { font-size: 12px; color: var(--pt-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pt-tag { display: inline-block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--pt-accent); background: var(--pt-accent-soft); padding: 2px 8px; border-radius: 20px; margin-top: 12px; font-weight: 700; }
.pt-article { max-width: 760px; }
.pt-article-body { font-size: 14px; line-height: 1.7; color: var(--pt-ink-soft); }
.pt-article-body h1, .pt-article-body h2, .pt-article-body h3 { color: var(--pt-ink); margin: 22px 0 8px; }
.pt-article-body p { margin: 0 0 12px; }
.pt-article-body img { max-width: 100%; border-radius: 8px; }
.pt-article-body pre { background: var(--pt-surface-2); border: 1px solid var(--pt-line); border-radius: 8px; padding: 12px; overflow-x: auto; }
.pt-article-body code { font-family: var(--pt-mono); font-size: 12.5px; }

/* ---------- assets ---------- */
.pt-asset-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--pt-surface-2); border: 1px solid var(--pt-line); display: grid; place-items: center; color: var(--pt-muted); }
.pt-asset-ico svg { width: 15px; height: 15px; }

/* ---------- states ---------- */
.pt-empty { text-align: center; padding: 44px 20px; color: var(--pt-muted); }
.pt-empty svg { width: 30px; height: 30px; opacity: .5; margin-bottom: 10px; }
.pt-skel { background: linear-gradient(90deg, var(--pt-ground-tint) 25%, #e6e9ef 37%, var(--pt-ground-tint) 63%); background-size: 400% 100%; animation: pt-shimmer 1.3s ease-in-out infinite; border-radius: 6px; }
@keyframes pt-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.pt-spinner { width: 26px; height: 26px; border: 3px solid var(--pt-line); border-top-color: var(--pt-accent); border-radius: 50%; animation: pt-spin .7s linear infinite; margin: 40px auto; }
@keyframes pt-spin { to { transform: rotate(360deg); } }
.pt-toast { position: fixed; right: 22px; bottom: 22px; background: var(--pt-navy); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--pt-shadow-md); font-size: 13px; z-index: 100; display: flex; align-items: center; gap: 9px; }
.pt-toast.pt-toast-err { background: var(--pt-crit); }

/* ---------- auth screens ---------- */
.pt-auth { min-height: 100vh; display: grid; place-items: center; background: var(--pt-ground); padding: 20px; }
.pt-auth-box { width: 100%; max-width: 400px; }
.pt-auth-brand { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 24px; }
.pt-auth-card { background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-radius); box-shadow: var(--pt-shadow-md); padding: 28px; }
.pt-auth-card h2 { font-size: 18px; margin-bottom: 6px; }
.pt-auth-card p { color: var(--pt-muted); font-size: 13px; margin: 0 0 18px; }
.pt-auth-card input { width: 100%; border: 1px solid var(--pt-line); border-radius: var(--pt-radius-sm); padding: 11px 13px; font-family: inherit; font-size: 14px; margin-bottom: 12px; }
.pt-auth-card input:focus { outline: none; border-color: var(--pt-accent); box-shadow: 0 0 0 3px var(--pt-accent-soft); }
.pt-auth-card .pt-btn-primary { width: 100%; justify-content: center; padding: 11px; }

/* ---------- mobile ---------- */
.pt-burger { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--pt-line); border-radius: var(--pt-radius-sm); background: var(--pt-surface); cursor: pointer; }
.pt-burger svg { width: 18px; height: 18px; }
.pt-scrim { display: none; }
@media (max-width: 940px) {
  .pt-shell { grid-template-columns: 1fr; }
  .pt-side { position: fixed; left: 0; top: 0; width: 248px; z-index: 60; transform: translateX(-100%); transition: transform .22s; }
  .pt-side.pt-open { transform: none; }
  .pt-scrim.pt-on { display: block; position: fixed; inset: 0; background: rgba(8,14,25,.5); z-index: 55; }
  .pt-burger { display: inline-flex; }
  .pt-stat-row { grid-template-columns: repeat(2, 1fr); }
  .pt-grid-2, .pt-detail, .pt-type-grid, .pt-agr-grid, .pt-kb-grid, .pt-2col { grid-template-columns: 1fr; }
  .pt-content { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .pt-scope *, .pt-scope *::before, .pt-scope *::after { transition: none !important; animation: none !important; } }
