@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap");

:root {
  color-scheme: dark;
  --pa-bg: #090a0c;
  --pa-surface: #111316;
  --pa-surface-2: #17191d;
  --pa-surface-3: #1e2125;
  --pa-line: rgba(255,255,255,.08);
  --pa-line-strong: rgba(255,255,255,.14);
  --pa-text: #f4f1e9;
  --pa-muted: #8c9098;
  --pa-accent: #d7a84b;
  --pa-accent-soft: rgba(215,168,75,.13);
  --pa-green: #65c6a7;
  --pa-red: #e2786f;
  --pa-blue: #6f9fda;
  --pa-purple: #a28bd4;
  --pa-radius: 18px;
  --pa-shadow: 0 24px 60px rgba(0,0,0,.32);
  font-family: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: var(--pa-bg); color: var(--pa-text); }
body { overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pa-accent); outline-offset: 3px; }

.pa-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(390px, .85fr);
  background: #0a0b0d;
}
.pa-login__visual {
  position: relative;
  overflow: hidden;
  padding: clamp(34px,5vw,74px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(7,8,10,.2), rgba(7,8,10,.75)),
    radial-gradient(circle at 65% 20%, rgba(215,168,75,.22), transparent 32%),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(255,255,255,.018) 39px 40px),
    #151313;
  isolation: isolate;
}
.pa-login__visual::before {
  content: ""; position: absolute; inset: 12% -12% auto auto; width: 70%; aspect-ratio: 1;
  border: 1px solid rgba(215,168,75,.25); border-radius: 50%; box-shadow: inset 0 0 100px rgba(215,168,75,.08);
  z-index: -1;
}
.pa-login__visual::after {
  content: ""; position: absolute; width: 280px; height: 560px; right: 12%; bottom: -22%;
  background: linear-gradient(90deg, transparent, rgba(215,168,75,.09), transparent);
  transform: rotate(30deg); filter: blur(12px); z-index: -1;
}
.pa-login__mark {
  display: grid; place-items: center; width: 58px; aspect-ratio: 1; border: 1px solid var(--pa-accent);
  color: var(--pa-accent); font: 600 18px/1 "Manrope"; letter-spacing: .08em; transform: rotate(45deg);
}
.pa-login__mark::first-line { transform: rotate(-45deg); }
.pa-kicker { display: block; color: var(--pa-accent); font: 700 10px/1.3 "Manrope"; letter-spacing: .19em; text-transform: uppercase; margin-bottom: 12px; }
.pa-login__visual h1 { font: 500 clamp(42px,5.3vw,78px)/.98 "Manrope"; letter-spacing: -.055em; margin: 0; max-width: 760px; }
.pa-login__visual h1 em { font-family: "Playfair Display"; color: var(--pa-accent); font-weight: 600; }
.pa-login__visual p { color: #b6b2aa; max-width: 570px; font-size: 16px; line-height: 1.7; }
.pa-login__metric { display: flex; align-items: end; gap: 16px; border-left: 1px solid var(--pa-accent); padding-left: 18px; }
.pa-login__metric strong { font: 600 34px/1 "Manrope"; }
.pa-login__metric span { color: var(--pa-muted); font-size: 13px; }
.pa-login__form { display: grid; place-items: center; padding: 40px; background: #0e0f11; }
.pa-login__form form { width: min(420px,100%); }
.pa-login__brand { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(50px,8vh,90px); }
.pa-login__brand > span, .pa-brand > span {
  width: 42px; height: 42px; display: grid; place-items: center; background: var(--pa-accent); color: #15110a;
  font-weight: 800; letter-spacing: -.05em; border-radius: 11px;
}
.pa-login__brand div, .pa-brand div { display: flex; flex-direction: column; }
.pa-login__brand strong { font-size: 14px; }
.pa-login__brand small { color: var(--pa-muted); margin-top: 2px; }
.pa-login__form h2 { font: 600 32px/1.1 "Manrope"; letter-spacing: -.035em; margin: 0 0 10px; }
.pa-login__form > form > p { color: var(--pa-muted); font-size: 13px; line-height: 1.5; margin: 0 0 28px; }
label { display: grid; gap: 8px; color: #bcbec2; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--pa-line); border-radius: 11px; padding: 12px 13px;
  background: #17191c; color: var(--pa-text); outline: none; transition: .2s border-color,.2s box-shadow;
}
input:focus, select:focus, textarea:focus { border-color: rgba(215,168,75,.65); box-shadow: 0 0 0 3px rgba(215,168,75,.08); }
textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.pa-password { display: flex; border: 1px solid var(--pa-line); border-radius: 11px; background: #17191c; overflow: hidden; }
.pa-password input { border: 0; border-radius: 0; box-shadow: none; }
.pa-password button { border: 0; background: none; color: var(--pa-accent); padding: 0 13px; font-size: 11px; cursor: pointer; }
.pa-login__hint { margin: 16px 0 0 !important; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.035); text-align: center; }
.pa-form-error { min-height: 18px; color: var(--pa-red) !important; margin: 10px 0 !important; text-align: center; }

.pa-button {
  border: 1px solid var(--pa-line); border-radius: 10px; padding: 10px 15px; font-size: 12px; font-weight: 700;
  background: var(--pa-surface-2); cursor: pointer; transition: .2s transform,.2s background,.2s border;
  display: inline-flex; gap: 9px; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap;
}
.pa-button:hover { transform: translateY(-1px); border-color: var(--pa-line-strong); }
.pa-button--primary { background: var(--pa-accent); color: #17120a; border-color: var(--pa-accent); }
.pa-button--primary:hover { background: #e1b75f; }
.pa-button--ghost { background: transparent; }
.pa-button--danger { background: rgba(226,120,111,.1); color: #f09b94; border-color: rgba(226,120,111,.3); }
.pa-button--wide { width: 100%; min-height: 48px; justify-content: space-between; padding-inline: 18px; }
.pa-icon-button {
  width: 38px; height: 38px; padding: 0; border: 1px solid var(--pa-line); border-radius: 10px; background: var(--pa-surface);
  display: grid; place-items: center; cursor: pointer; font-size: 18px;
}

.pa-app { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0,1fr); }
.pa-sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; border-right: 1px solid var(--pa-line);
  background: #0c0d0f; padding: 24px 14px 18px; display: flex; flex-direction: column; z-index: 40;
}
.pa-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 26px; border-bottom: 1px solid var(--pa-line); }
.pa-brand > span { width: 38px; height: 38px; border-radius: 10px; }
.pa-brand strong { font: 700 13px "Manrope"; }
.pa-brand small { color: var(--pa-accent); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.pa-sidebar nav { display: grid; gap: 3px; margin-top: 20px; overflow-y: auto; }
.pa-sidebar nav button {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; width: 100%; border: 0;
  padding: 10px 11px; border-radius: 9px; background: transparent; color: #8e9299; text-align: left; cursor: pointer; font-size: 12px;
}
.pa-sidebar nav button i { font-style: normal; font-size: 15px; text-align: center; }
.pa-sidebar nav button b { min-width: 20px; padding: 2px 5px; border-radius: 20px; background: rgba(255,255,255,.07); font-size: 9px; text-align: center; }
.pa-sidebar nav button:hover { background: rgba(255,255,255,.035); color: #d8d8d6; }
.pa-sidebar nav button.is-active { background: var(--pa-accent-soft); color: var(--pa-accent); }
.pa-sidebar__footer { margin-top: auto; display: grid; gap: 13px; }
.pa-integration { display: flex; gap: 9px; padding: 11px; border: 1px solid var(--pa-line); border-radius: 10px; background: #111316; }
.pa-integration > span { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--pa-green); box-shadow: 0 0 12px var(--pa-green); }
.pa-integration div { display: flex; flex-direction: column; gap: 3px; }
.pa-integration strong { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.pa-integration small { color: var(--pa-muted); font-size: 8px; }
.pa-sidebar__footer > a { color: var(--pa-muted); font-size: 10px; text-decoration: none; padding-left: 6px; }
.pa-workspace { min-width: 0; }
.pa-topbar {
  height: 70px; padding: 0 clamp(18px,3vw,38px); border-bottom: 1px solid var(--pa-line); background: rgba(9,10,12,.86);
  backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30;
}
.pa-search { width: min(430px,46vw); height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--pa-line); border-radius: 10px; background: var(--pa-surface); }
.pa-search span { color: var(--pa-muted); font-size: 18px; }
.pa-search input { border: 0; padding: 0; background: transparent; box-shadow: none; font-size: 11px; }
kbd { border: 1px solid var(--pa-line); border-radius: 5px; padding: 3px 6px; color: var(--pa-muted); background: rgba(255,255,255,.03); font: 9px "Manrope"; white-space: nowrap; }
.pa-topbar__actions { display: flex; align-items: center; gap: 10px; }
.pa-notification { position: relative; color: var(--pa-muted); }
.pa-notification span { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; display: grid; place-items: center; border: 2px solid var(--pa-bg); border-radius: 50%; background: var(--pa-accent); color: #16120a; font-size: 8px; font-weight: 800; }
.pa-profile { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; cursor: pointer; }
.pa-profile > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg,#644d2a,#d7a84b); font-size: 10px; font-weight: 800; }
.pa-profile div { display: flex; flex-direction: column; text-align: left; gap: 1px; }
.pa-profile strong { font-size: 10px; }
.pa-profile small { color: var(--pa-muted); font-size: 8px; text-transform: capitalize; }
.pa-profile i { color: var(--pa-muted); font-style: normal; }
.pa-menu { display: none; }
.pa-main { padding: 30px clamp(18px,3vw,38px) 50px; max-width: 1680px; margin: 0 auto; }
.pa-page-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }
.pa-page-head h1 { margin: 0; font: 600 clamp(26px,3vw,36px)/1.1 "Manrope"; letter-spacing: -.045em; }
.pa-page-head p { margin: 8px 0 0; color: var(--pa-muted); font-size: 12px; }
.pa-page-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: end; }

.pa-grid { display: grid; gap: 14px; }
.pa-grid--stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.pa-grid--2 { grid-template-columns: minmax(0,1.65fr) minmax(280px,.85fr); }
.pa-grid--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.pa-stack { display: grid; gap: 14px; }
.pa-card { border: 1px solid var(--pa-line); border-radius: var(--pa-radius); background: linear-gradient(145deg,rgba(255,255,255,.018),transparent),var(--pa-surface); box-shadow: 0 1px 0 rgba(255,255,255,.025) inset; overflow: hidden; }
.pa-card__head { min-height: 58px; padding: 17px 18px 13px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border-bottom: 1px solid var(--pa-line); }
.pa-card__head h2, .pa-card__head h3 { margin: 0; font: 700 12px/1.3 "Manrope"; }
.pa-card__head p { color: var(--pa-muted); margin: 4px 0 0; font-size: 9px; }
.pa-card__body { padding: 17px 18px; }
.pa-stat { min-height: 128px; padding: 18px; position: relative; }
.pa-stat::after { content: ""; position: absolute; right: -28px; bottom: -44px; width: 100px; height: 100px; border-radius: 50%; background: var(--stat-color,var(--pa-accent)); opacity: .055; }
.pa-stat__top { display: flex; justify-content: space-between; align-items: center; color: var(--pa-muted); font-size: 10px; }
.pa-stat__icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--stat-color,var(--pa-accent)); background: color-mix(in srgb,var(--stat-color,var(--pa-accent)) 12%,transparent); font-size: 14px; }
.pa-stat strong { display: block; margin-top: 16px; font: 700 26px/1 "Manrope"; letter-spacing: -.04em; }
.pa-stat__delta { margin-top: 9px; color: var(--pa-muted); font-size: 9px; }
.pa-stat__delta b { color: var(--pa-green); margin-right: 4px; }
.pa-filter-group { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--pa-line); border-radius: 9px; background: #0c0d0f; }
.pa-filter-group button { border: 0; border-radius: 6px; padding: 6px 9px; background: transparent; color: var(--pa-muted); font-size: 9px; cursor: pointer; }
.pa-filter-group button.is-active { background: var(--pa-surface-3); color: var(--pa-text); }

.pa-chart { height: 245px; position: relative; display: grid; grid-template-columns: repeat(12,1fr); align-items: end; gap: 7px; padding-top: 30px; }
.pa-chart::before { content: ""; position: absolute; inset: 20px 0 26px; background: repeating-linear-gradient(to bottom,var(--pa-line) 0 1px,transparent 1px 52px); pointer-events: none; }
.pa-chart__bar { position: relative; min-height: 8px; height: calc(var(--value) * 1%); max-height: 185px; border-radius: 4px 4px 2px 2px; background: linear-gradient(to top,rgba(215,168,75,.18),var(--pa-accent)); transition: .4s height; }
.pa-chart__bar:hover { filter: brightness(1.15); }
.pa-chart__bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); color: var(--pa-muted); font-size: 8px; }
.pa-chart__bar::after { content: attr(data-label); position: absolute; top: -21px; left: 50%; transform: translateX(-50%); opacity: 0; white-space: nowrap; font-size: 8px; color: var(--pa-text); transition: .2s opacity; }
.pa-chart__bar:hover::after { opacity: 1; }
.pa-donut { width: 150px; aspect-ratio: 1; margin: 6px auto 18px; border-radius: 50%; background: conic-gradient(var(--pa-accent) 0 var(--value),#24262a var(--value)); position: relative; display: grid; place-items: center; }
.pa-donut::before { content: ""; width: 68%; aspect-ratio: 1; border-radius: 50%; background: var(--pa-surface); }
.pa-donut strong { position: absolute; font: 700 27px "Manrope"; }
.pa-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pa-legend span { color: var(--pa-muted); font-size: 9px; }
.pa-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--color); }

.pa-list { display: grid; }
.pa-list-item { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--pa-line); }
.pa-list-item:last-child { border: 0; }
.pa-avatar { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: white; background: var(--avatar,#63563d); font-size: 9px; font-weight: 800; flex: none; }
.pa-list-item div { min-width: 0; }
.pa-list-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.pa-list-item small { display: block; color: var(--pa-muted); font-size: 8px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-list-item time { color: var(--pa-muted); font-size: 9px; white-space: nowrap; }
.pa-badge { display: inline-flex; align-items: center; width: fit-content; gap: 5px; border-radius: 20px; padding: 5px 8px; font-size: 8px; font-weight: 700; text-transform: capitalize; background: rgba(255,255,255,.055); color: #c5c7ca; white-space: nowrap; }
.pa-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pa-badge[data-status*="confirm"], .pa-badge[data-status="pago"], .pa-badge[data-status="concluído"], .pa-badge[data-status="disponível"] { background: rgba(101,198,167,.1); color: var(--pa-green); }
.pa-badge[data-status*="pendente"], .pa-badge[data-status*="aguardando"], .pa-badge[data-status="solicitado"] { background: rgba(215,168,75,.1); color: var(--pa-accent); }
.pa-badge[data-status="cancelado"], .pa-badge[data-status="vencido"], .pa-badge[data-status*="não compareceu"], .pa-badge[data-status="indisponível"] { background: rgba(226,120,111,.1); color: var(--pa-red); }
.pa-badge[data-status="em atendimento"] { background: rgba(111,159,218,.1); color: var(--pa-blue); }

.pa-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pa-toolbar__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pa-toolbar input, .pa-toolbar select { width: auto; min-width: 150px; padding: 9px 11px; font-size: 10px; }
.pa-table-wrap { overflow-x: auto; }
.pa-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.pa-table th { padding: 11px 13px; border-bottom: 1px solid var(--pa-line); color: var(--pa-muted); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; text-align: left; }
.pa-table td { padding: 13px; border-bottom: 1px solid var(--pa-line); color: #d8d8d4; font-size: 10px; vertical-align: middle; }
.pa-table tr:last-child td { border: 0; }
.pa-table tr:hover td { background: rgba(255,255,255,.018); }
.pa-table td strong { color: var(--pa-text); }
.pa-row-actions { display: flex; justify-content: end; gap: 5px; }
.pa-row-actions button { width: 29px; height: 29px; border: 1px solid var(--pa-line); border-radius: 7px; background: transparent; color: var(--pa-muted); cursor: pointer; }
.pa-row-actions button:hover { color: var(--pa-text); background: var(--pa-surface-3); }
.pa-toggle { position: relative; width: 34px; height: 19px; border: 0; border-radius: 20px; background: #35383d; cursor: pointer; }
.pa-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #a6a8ab; transition: .2s transform; }
.pa-toggle.is-on { background: rgba(101,198,167,.25); }
.pa-toggle.is-on::after { background: var(--pa-green); transform: translateX(15px); }
.pa-empty { padding: 50px 20px; text-align: center; color: var(--pa-muted); }
.pa-empty strong { display: block; color: var(--pa-text); margin-bottom: 6px; }

.pa-agenda { display: grid; grid-template-columns: 82px repeat(5,minmax(150px,1fr)); min-width: 850px; }
.pa-agenda__corner, .pa-agenda__day { padding: 12px; border: 1px solid var(--pa-line); border-width: 0 1px 1px 0; text-align: center; }
.pa-agenda__day strong { display: block; font-size: 10px; }
.pa-agenda__day span { color: var(--pa-muted); font-size: 8px; }
.pa-agenda__time { padding: 13px 8px; border-right: 1px solid var(--pa-line); color: var(--pa-muted); font-size: 8px; text-align: right; }
.pa-agenda__slot { min-height: 64px; border: 1px solid var(--pa-line); border-width: 0 1px 1px 0; padding: 4px; }
.pa-agenda__event { min-height: 56px; padding: 8px; border-left: 2px solid var(--event-color,var(--pa-accent)); border-radius: 7px; background: color-mix(in srgb,var(--event-color,var(--pa-accent)) 9%,#15171a); cursor: pointer; }
.pa-agenda__event strong, .pa-agenda__event small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pa-agenda__event strong { font-size: 8px; }
.pa-agenda__event small { color: var(--pa-muted); font-size: 7px; margin-top: 4px; }
.pa-month { display: grid; grid-template-columns: repeat(7,1fr); min-width: 720px; }
.pa-month__head { padding: 10px; color: var(--pa-muted); font-size: 8px; text-align: center; text-transform: uppercase; }
.pa-month__day { min-height: 110px; padding: 8px; border: 1px solid var(--pa-line); border-width: 1px 1px 0 0; }
.pa-month__day > span { font-size: 9px; color: var(--pa-muted); }
.pa-month__event { display: block; margin-top: 5px; padding: 4px 5px; border-radius: 5px; background: var(--pa-accent-soft); color: var(--pa-accent); font-size: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.pa-person-card { padding: 18px; }
.pa-person-card__top { display: flex; gap: 13px; align-items: center; }
.pa-person-card .pa-avatar { width: 48px; height: 48px; border-radius: 13px; }
.pa-person-card h3 { margin: 0; font: 700 12px "Manrope"; }
.pa-person-card p { margin: 5px 0 0; color: var(--pa-muted); font-size: 9px; line-height: 1.45; }
.pa-person-card__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 16px 0; }
.pa-person-card__stats div { padding: 9px; border-radius: 9px; background: rgba(255,255,255,.025); }
.pa-person-card__stats strong { display: block; font-size: 12px; }
.pa-person-card__stats span { color: var(--pa-muted); font-size: 7px; }
.pa-card-actions { display: flex; gap: 7px; }
.pa-card-actions .pa-button { flex: 1; }

.pa-progress { display: grid; gap: 7px; }
.pa-progress__row { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; font-size: 9px; }
.pa-progress__track { height: 5px; border-radius: 5px; background: #24262a; overflow: hidden; }
.pa-progress__fill { height: 100%; width: var(--value); border-radius: inherit; background: var(--color,var(--pa-accent)); }
.pa-progress__row span:last-child { color: var(--pa-muted); text-align: right; }
.pa-notice { padding: 13px 15px; border: 1px solid rgba(215,168,75,.25); border-radius: 11px; background: var(--pa-accent-soft); color: #dbc79e; font-size: 9px; line-height: 1.55; }
.pa-notice strong { color: var(--pa-accent); }
.pa-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; }
.pa-form-grid .pa-span-2 { grid-column: 1/-1; }
.pa-checks { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.pa-check { display: flex; align-items: center; gap: 6px; margin: 0; padding: 7px 9px; border: 1px solid var(--pa-line); border-radius: 8px; color: var(--pa-muted); font-size: 9px; }
.pa-check input { width: auto; margin: 0; accent-color: var(--pa-accent); }
.pa-swatch { width: 100%; height: 38px; padding: 4px; }
.pa-pix { text-align: center; }
.pa-qr { width: 170px; aspect-ratio: 1; margin: 0 auto 15px; padding: 10px; background: white; border-radius: 10px; display: grid; grid-template-columns: repeat(13,1fr); gap: 1px; }
.pa-qr i { background: #0b0c0e; }
.pa-qr i.off { background: white; }
.pa-code { display: flex; gap: 7px; margin-top: 12px; }
.pa-code input { font: 9px monospace; }

.pa-dialog { width: min(680px,calc(100vw - 24px)); max-height: min(88vh,820px); padding: 0; border: 1px solid var(--pa-line-strong); border-radius: 18px; background: var(--pa-surface); color: var(--pa-text); box-shadow: var(--pa-shadow); overflow: hidden; }
.pa-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.pa-dialog__frame { display: grid; grid-template-rows: auto minmax(0,1fr) auto; max-height: min(88vh,820px); }
.pa-dialog header, .pa-dialog footer { display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--pa-line); }
.pa-dialog header h2 { margin: 0; font: 700 20px "Manrope"; letter-spacing: -.03em; }
.pa-dialog footer { justify-content: end; border-top: 1px solid var(--pa-line); border-bottom: 0; gap: 8px; }
.pa-dialog__body { padding: 20px; overflow: auto; }
.pa-toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; width: min(340px,calc(100vw - 36px)); }
.pa-toast { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 13px; border: 1px solid var(--pa-line-strong); border-radius: 11px; background: #181a1d; box-shadow: var(--pa-shadow); animation: pa-toast-in .25s ease; }
.pa-toast > span { color: var(--pa-green); }
.pa-toast strong { display: block; font-size: 10px; }
.pa-toast small { color: var(--pa-muted); font-size: 8px; }
.pa-toast button { border: 0; background: none; color: var(--pa-muted); cursor: pointer; }
@keyframes pa-toast-in { from { opacity: 0; transform: translateY(8px); } }
.pa-command { position: fixed; inset: 0; z-index: 120; display: grid; place-items: start center; padding-top: 12vh; }
.pa-command__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.pa-command section { position: relative; width: min(620px,calc(100vw - 24px)); max-height: 70vh; border: 1px solid var(--pa-line-strong); border-radius: 16px; background: #15171a; box-shadow: var(--pa-shadow); overflow: hidden; }
.pa-command header { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--pa-line); }
.pa-command input { border: 0; padding: 0; background: transparent; box-shadow: none; font-size: 13px; }
.pa-command #commandResults { max-height: 54vh; padding: 8px; overflow: auto; }
.pa-command-item { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 10px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.pa-command-item:hover { background: rgba(255,255,255,.045); }
.pa-command-item strong { font-size: 10px; }
.pa-command-item span { color: var(--pa-muted); font-size: 8px; }
.pa-overlay { display: none; }

@media (max-width: 1120px) {
  .pa-grid--stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pa-grid--3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .pa-login { grid-template-columns: 1fr; }
  .pa-login__visual { min-height: 340px; }
  .pa-login__visual h1 { font-size: 42px; }
  .pa-login__metric { display: none; }
  .pa-login__form { padding: 34px 24px; }
  .pa-login__brand { margin-bottom: 42px; }
  .pa-app { display: block; }
  .pa-sidebar { position: fixed; left: 0; transform: translateX(-102%); width: min(290px,86vw); transition: .25s transform; box-shadow: 30px 0 70px rgba(0,0,0,.5); }
  .pa-sidebar.is-open { transform: translateX(0); }
  .pa-overlay { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.62); }
  .pa-overlay.is-open { display: block; }
  .pa-menu { display: grid; }
  .pa-search { width: min(390px,52vw); }
  .pa-grid--2 { grid-template-columns: 1fr; }
  .pa-page-head { align-items: flex-start; }
}
@media (max-width: 620px) {
  .pa-login__visual { min-height: 275px; padding: 28px 24px; }
  .pa-login__visual .pa-login__mark { width: 45px; }
  .pa-login__visual h1 { font-size: 35px; }
  .pa-login__visual p { display: none; }
  .pa-topbar { height: 62px; padding-inline: 12px; }
  .pa-search { flex: 1; min-width: 0; width: auto; }
  .pa-search kbd { display: none; }
  .pa-profile div, .pa-profile i, .pa-notification { display: none; }
  .pa-profile > span { width: 34px; height: 34px; }
  .pa-main { padding: 22px 13px 40px; }
  .pa-page-head { display: grid; margin-bottom: 20px; }
  .pa-page-actions { justify-content: start; }
  .pa-page-actions .pa-button { flex: 1; }
  .pa-grid--stats, .pa-grid--3 { grid-template-columns: 1fr 1fr; gap: 9px; }
  .pa-stat { min-height: 114px; padding: 14px; }
  .pa-stat strong { font-size: 21px; }
  .pa-stat__top > span:first-child { max-width: 82px; }
  .pa-toolbar { align-items: stretch; flex-direction: column; }
  .pa-toolbar__filters { display: grid; grid-template-columns: 1fr 1fr; }
  .pa-toolbar input, .pa-toolbar select { width: 100%; min-width: 0; }
  .pa-table { min-width: 0; }
  .pa-table thead { display: none; }
  .pa-table, .pa-table tbody, .pa-table tr, .pa-table td { display: block; width: 100%; }
  .pa-table tr { position: relative; padding: 12px 80px 12px 12px; border-bottom: 1px solid var(--pa-line); }
  .pa-table td { border: 0; padding: 3px 0; }
  .pa-table td::before { content: attr(data-label); color: var(--pa-muted); margin-right: 7px; font-size: 8px; text-transform: uppercase; }
  .pa-table td.pa-actions-cell { position: absolute; top: 13px; right: 10px; }
  .pa-table td.pa-actions-cell::before { display: none; }
  .pa-form-grid { grid-template-columns: 1fr; }
  .pa-form-grid .pa-span-2 { grid-column: auto; }
  .pa-dialog { width: 100%; max-width: none; max-height: 94vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .pa-dialog__frame { max-height: 94vh; }
}
@media (max-width: 390px) {
  .pa-grid--stats, .pa-grid--3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
