/* =========================================
   VOLKSSERVICE STANDORTPORTAL - MAIN STYLESHEET
   Taken 1:1 from the prototype (standortportal.html). Rules are unchanged;
   only section banners were added, plus the STATE STYLES block at the end
   (tabs, toggles, mood buttons) that replace inline-style state switching.
========================================= */

/* =========================================
   DESIGN TOKENS (COLOURS, RADIUS, SHADOWS) START
========================================= */
:root{
  --brand:#2D7D46;--brand-dark:#1E5C33;--brand-mid:#3A9C58;
  --brand-light:#EAF5EE;--brand-border:rgba(45,125,70,.2);
  --accent:#185FA5;--accent-light:#E6F1FB;
  --warn:#7A4A0A;--warn-light:#FDF0DC;
  --danger:#9B2C2C;--danger-light:#FDEAEA;
  --purple:#3C3489;--purple-light:#EEEDFE;
  --ink:#1A1C1A;--sub:#5C6560;--hint:#9AA09C;
  --bg:#F4F6F4;--surface:#FFFFFF;--surface2:#F0F3F1;
  --border:#E0E5E1;--border-s:#C8D0CA;
  --shadow:0 1px 4px rgba(0,0,0,.06);--shadow-md:0 4px 16px rgba(0,0,0,.09);
  --r:8px;--rl:12px;
}
/* =========================================
   BASE / RESET STYLES START
========================================= */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;font-size:13px;
     color:var(--ink);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}

/* =========================================
   DEMO BAR STYLES START  (prototype: Hinweisleiste)
========================================= */
.demo-bar{background:var(--brand);color:#fff;text-align:center;padding:7px 16px;font-size:11px;
  font-weight:500;display:flex;align-items:center;justify-content:center;gap:8px;position:sticky;top:0;z-index:200}
.demo-chip{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.3);border-radius:10px;
  padding:2px 9px;font-size:10px;font-weight:700;letter-spacing:.05em}

/* =========================================
   APP LAYOUT STYLES START  (prototype: Aufbau)
========================================= */
.app{display:grid;grid-template-columns:220px 1fr}

/* =========================================
   SIDEBAR STYLES START  (prototype: Seitenleiste)
========================================= */
.sb{background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;
  position:sticky;top:30px;height:calc(100vh - 30px);overflow-y:auto}
.sb-brand{padding:16px 16px 12px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:9px}
.sb-logo-mark{width:30px;height:30px;border-radius:8px;background:var(--brand);display:flex;
  align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:13px;flex-shrink:0}
.sb-logo-text{font-size:14px;font-weight:700;letter-spacing:-.02em}
.sb-logo-sub{font-size:10px;color:var(--sub)}
.sb-nav{padding:8px;flex:1}
.sb-sec{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:var(--hint);font-weight:700;padding:10px 8px 4px}
.ni{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:var(--r);color:var(--sub);
  cursor:pointer;font-size:12px;font-weight:500;transition:all .1s;margin:1px 0;user-select:none}
.ni:hover{background:var(--surface2);color:var(--ink)}
.ni.active{background:var(--brand-light);color:var(--brand-dark);font-weight:600}
.ni svg{width:15px;height:15px;flex-shrink:0}
.ni-badge{margin-left:auto;background:var(--brand);color:#fff;font-size:9px;font-weight:700;padding:1px 6px;border-radius:9px}
.ni-badge.w{background:var(--warn)}
.ni-badge.d{background:var(--danger)}
.ni-badge.n{background:var(--surface2);color:var(--sub)}
.sb-user{border-top:1px solid var(--border);padding:10px 12px;display:flex;align-items:center;gap:9px}
.sb-av{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sb-uname{font-size:12px;font-weight:600}
.sb-urole{font-size:10px;color:var(--sub)}

/* =========================================
   MAIN AREA / TOPBAR STYLES START  (prototype: Hauptbereich)
========================================= */
.main{display:flex;flex-direction:column;min-width:0}
.topbar{height:50px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;
  align-items:center;padding:0 22px;gap:12px;position:sticky;top:30px;z-index:10}
.tb-title{font-size:15px;font-weight:600}
.tb-sp{flex:1}
.tb-btn{height:32px;padding:0 11px;border:1.5px solid var(--border);background:var(--surface);
  border-radius:var(--r);cursor:pointer;display:flex;align-items:center;gap:6px;color:var(--sub);
  font-size:11.5px;font-weight:600;transition:all .12s}
.tb-btn:hover{background:var(--surface2);color:var(--ink)}
.tb-btn svg{width:14px;height:14px}
.content{padding:20px 24px 48px;max-width:1400px;width:100%}
.ph{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.ptitle{font-size:18px;font-weight:700;margin-bottom:3px}
.psub{font-size:12px;color:var(--sub)}

/* =========================================
   BUTTON STYLES START  (prototype: Knöpfe)
========================================= */
.btn{padding:7px 13px;border-radius:var(--r);font-size:12px;font-weight:600;cursor:pointer;
  border:1.5px solid transparent;display:inline-flex;align-items:center;gap:6px;transition:all .14s;white-space:nowrap}
.btn svg{width:13px;height:13px}
.bp{background:var(--brand);color:#fff;border-color:var(--brand)}
.bp:hover{background:var(--brand-dark)}
.bs{background:var(--surface);color:var(--ink);border-color:var(--border)}
.bs:hover{background:var(--surface2);border-color:var(--border-s)}
.bw{background:var(--warn);color:#fff;border-color:var(--warn)}
.bw:hover{filter:brightness(1.1)}
.bd{background:var(--danger-light);color:var(--danger);border-color:transparent}
.bd:hover{background:#f5d0d0}
.btn.sm{padding:4px 9px;font-size:11px}
.iBtn{width:30px;height:30px;border:none;background:transparent;border-radius:var(--r);cursor:pointer;
  display:flex;align-items:center;justify-content:center;color:var(--sub);transition:all .12s}
.iBtn:hover{background:var(--surface2);color:var(--ink)}
.iBtn svg{width:14px;height:14px}

/* =========================================
   DASHBOARD CARD (KPI) STYLES START  (prototype: Kennzahlen)
========================================= */
.kpi-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}
.kpi{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:14px 16px;
  position:relative;box-shadow:var(--shadow)}
.kpi-label{font-size:10px;color:var(--sub);text-transform:uppercase;letter-spacing:.05em;margin-bottom:7px;font-weight:600}
.kpi-val{font-size:24px;font-weight:700;line-height:1}
.kpi-val.g{color:var(--brand-dark)}
.kpi-val.a{color:var(--warn)}
.kpi-val.b{color:var(--accent)}
.kpi-val.d{color:var(--danger)}
.kpi-val.p{color:var(--purple)}
.kpi-delta{font-size:11px;margin-top:5px;color:var(--sub)}
.kpi-icon{position:absolute;top:14px;right:14px;width:28px;height:28px;border-radius:7px;
  display:flex;align-items:center;justify-content:center;font-size:13px}
.ki-g{background:var(--brand-light);color:var(--brand-dark)}
.ki-b{background:var(--accent-light);color:var(--accent)}
.ki-a{background:var(--warn-light);color:var(--warn)}
.ki-d{background:var(--danger-light);color:var(--danger)}
.ki-p{background:var(--purple-light);color:var(--purple)}

/* =========================================
   PANEL STYLES START  (prototype: Panels)
========================================= */
.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);overflow:hidden;
  margin-bottom:16px;box-shadow:var(--shadow)}
.ph2-t{font-size:13px;font-weight:600}
.ph2-s{font-size:11px;color:var(--sub);margin-top:1px}
.p-hdr{padding:12px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;
  justify-content:space-between;gap:12px}
.p-body{padding:14px 16px}
.p-empty{padding:34px;text-align:center;font-size:12px;color:var(--sub)}

/* =========================================
   TABLE STYLES START  (prototype: Tabelle)
========================================= */
.tbl{width:100%;border-collapse:collapse;font-size:12px}
.tbl thead tr{background:var(--surface2);border-bottom:1.5px solid var(--border)}
.tbl thead th{padding:7px 12px;text-align:left;font-size:10px;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;color:var(--sub);white-space:nowrap}
.tbl thead th.r,.tbl tbody td.r{text-align:right}
.tbl tbody td{padding:8px 12px;border-bottom:1px solid var(--border);vertical-align:middle}
.tbl tbody tr:last-child td{border-bottom:none}
.tbl tbody tr.klick{cursor:pointer}
.tbl tbody tr.klick:hover{background:var(--surface2)}

/* =========================================
   BADGE STYLES START  (prototype: Etiketten)
========================================= */
.badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:12px;font-size:10px;
  font-weight:600;white-space:nowrap}
.badge.dot::before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%;margin-right:4px;opacity:.65}
.bg-g{background:var(--brand-light);color:var(--brand-dark)}
.bg-b{background:var(--accent-light);color:var(--accent)}
.bg-a{background:var(--warn-light);color:var(--warn)}
.bg-d{background:var(--danger-light);color:var(--danger)}
.bg-n{background:var(--surface2);color:var(--sub)}
.bg-p{background:var(--purple-light);color:var(--purple)}

/* =========================================
   MODAL STYLES START  (prototype: Modal)
========================================= */
.overlay{position:fixed;inset:0;background:rgba(26,28,26,.5);z-index:100;display:flex;
  align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(2px)}
/* GOOGLE PLACES AUTOCOMPLETE: the suggestion dropdown (.pac-container) is appended to <body> with
   no z-index of its own, so it paints BEHIND an open .overlay unless raised explicitly - same
   override already used by the ERP's css/standorte.css and css/mitarbeiter.css for this exact widget. */
.pac-container{z-index:100000 !important}
.modal{background:var(--surface);border-radius:14px;width:100%;max-width:640px;
  max-height:calc(100vh - 60px);display:flex;flex-direction:column;overflow:hidden;
  box-shadow:0 16px 48px rgba(0,0,0,.2)}
.m-hdr{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}
.m-title{font-size:15px;font-weight:700}
.m-sub{font-size:11px;color:var(--sub);margin-top:2px}
.m-x{border:none;background:transparent;cursor:pointer;padding:6px;border-radius:6px;color:var(--sub);
  display:flex;align-items:center;font-size:17px}
.m-x:hover{background:var(--surface2);color:var(--ink)}
.m-body{padding:18px 20px;overflow-y:auto;flex:1}
.m-foot{padding:12px 20px;border-top:1px solid var(--border);display:flex;justify-content:space-between;
  align-items:center;gap:12px;background:var(--surface2)}

/* =========================================
   FORM STYLES START  (prototype: Formulare)
========================================= */
.ff{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
.fl{font-size:11px;font-weight:600;color:var(--ink)}
.fi,.fs,.fta{padding:8px 11px;border:1.5px solid var(--border);border-radius:var(--r);font-size:12px;
  font-family:inherit;transition:all .14s;color:var(--ink);background:var(--surface);width:100%}
.fi:focus,.fs:focus,.fta:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(45,125,70,.1)}
.fta{resize:vertical;min-height:70px}
.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fhint{font-size:10px;color:var(--sub)}
.req{color:var(--danger)}
.fchk{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1.5px solid var(--border);
  border-radius:var(--r);cursor:pointer;font-size:11.5px;font-weight:600;color:var(--sub);background:var(--surface)}
.fchk.on{border-color:var(--brand);background:var(--brand-light);color:var(--brand-dark)}
.fchk input{width:14px;height:14px;cursor:pointer;accent-color:var(--brand)}

/* CUSTOMER SERVICE SELECTION (Kunde anlegen/bearbeiten "Bewilligte Leistungen"): copied verbatim from
   volksservice-new.php's .nk-la-pill ("Kunde anlegen" -> Leistungsarten) - same colors/badges/spacing
   as the ERP, per the explicit "same UI, do not redesign" requirement. Toggled by standortportal.js's
   shared checkbox-change handler (same mechanism as .fchk above, different class/colors). */
.nk-la-pill{display:flex;align-items:center;gap:7px;padding:8px 12px;border:1.5px solid #E5E7EB;border-radius:9px;background:white;cursor:pointer;transition:all .12s}
.nk-la-pill.checked{border-color:#2563EB;background:#EFF6FF}
.nk-la-pill input{width:14px;height:14px;cursor:pointer;accent-color:#2563EB}
.nk-la-pill span{font-size:12.5px;font-weight:600;color:#374151}
.nk-la-pill.checked span{color:#2563EB}

/* =========================================
   AVATAR STYLES START  (prototype: Avatar)
========================================= */
.av{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.av.blue{background:linear-gradient(135deg,var(--accent),#0c4478)}
.av.purple{background:linear-gradient(135deg,var(--purple),#1e1870)}
.av.amber{background:linear-gradient(135deg,#c47a15,#7a4a0a)}
.av.lg{width:34px;height:34px;font-size:11px}

/* =========================================
   PROGRESS BAR STYLES START  (prototype: Fortschritt)
========================================= */
.status-progress{height:6px;border-radius:3px;background:var(--surface2);overflow:hidden;margin-top:6px}
.status-fill{height:100%;border-radius:3px;background:var(--brand);transition:width .3s}
.status-fill.warn{background:var(--warn)}
.status-fill.danger{background:var(--danger)}

/* =========================================
   TASK LIST STYLES START  (prototype: Aufgaben)
========================================= */
.task{display:flex;align-items:center;gap:12px;padding:11px 16px;border-bottom:1px solid var(--border);
  cursor:pointer;transition:background .12s}
.task:last-child{border-bottom:none}
.task:hover{background:var(--surface2)}
.task-ic{width:30px;height:30px;border-radius:7px;display:flex;align-items:center;justify-content:center;
  font-size:13px;flex-shrink:0}
.task-t{font-size:12px;font-weight:600}
.task-s{font-size:11px;color:var(--sub);margin-top:1px}

/* =========================================
   PARTNER CARD STYLES START  (prototype: Partnerkarte)
========================================= */
.pcard{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:12px 15px;
  display:flex;align-items:center;gap:13px;margin-bottom:9px;cursor:pointer;transition:all .12s;box-shadow:var(--shadow)}
.pcard:hover{border-color:var(--brand);box-shadow:var(--shadow-md)}
.pc-ic{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;
  font-size:16px;flex-shrink:0}

/* =========================================
   ACTIVITY LOG STYLES START  (prototype: Protokoll)
========================================= */
.log{display:flex;align-items:flex-start;gap:11px;padding:11px 16px;border-bottom:1px solid var(--border)}
.log:last-child{border-bottom:none}
.log-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;margin-top:5px}

/* =========================================
   LOGIN PAGE STYLES START  (prototype: Anmeldung)
========================================= */
.login-wrap{min-height:100vh;display:grid;grid-template-columns:1fr 440px;background:var(--bg)}
.login-links{padding:48px 52px;display:flex;flex-direction:column;justify-content:space-between}
.login-rechts{background:var(--surface);border-left:1px solid var(--border);display:flex;
  align-items:center;justify-content:center;padding:32px 44px}
.login-card{width:100%;max-width:340px}
.nur-schmal{display:none}
.login-merk{display:flex;align-items:flex-start;gap:12px;padding:12px 0}
.login-merk-ic{width:30px;height:30px;border-radius:8px;background:var(--brand-light);
  color:var(--brand-dark);display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0}
@media(max-width:900px){
  .login-wrap{grid-template-columns:1fr}
  .login-links{display:none}
  .login-rechts{padding:28px 20px}
  .nur-schmal{display:flex!important}
}

/* =========================================
   TOAST STYLES START  (prototype: Meldung)
========================================= */
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:900;padding:11px 20px;
  border-radius:var(--r);background:var(--ink);color:#fff;font-size:12.5px;font-weight:600;
  box-shadow:var(--shadow-md);display:flex;align-items:center;gap:8px}
.toast.warn{background:var(--warn)}

/* =========================================
   RESPONSIVE STYLES (TABLET / MOBILE) START
   Sidebar becomes a horizontal strip, KPI grid 2 columns
========================================= */
@media(max-width:1100px){
  .app{grid-template-columns:1fr}
  .sb{position:static;height:auto;flex-direction:row;overflow-x:auto;border-right:none;
      border-bottom:1px solid var(--border)}
  .sb-nav{display:flex;gap:4px;padding:8px}
  .sb-sec,.sb-brand{display:none}
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
  /* "Mein Konto" and "Abmelden" used to disappear here (.sb-user was hidden) and were reachable NOWHERE else: tablet and phone users
     could neither sign out nor open Konto / Schulungen / Kennwort. The block stays in the strip, sticky at the right end, as the
     avatar (link to Mein Konto) and the logout button; the name stays in the tooltip. */
  .sb-user{display:flex;flex:0 0 auto;position:sticky;right:0;z-index:2;background:var(--surface);
           border-top:none;border-left:1px solid var(--border);padding:0 8px;gap:2px}
  .sb-user>a>span:not(.av){display:none}
}
/* PHONES: the KPI grids carry an inline "repeat(4,1fr)" (from the prototype) that beats the rule above and pushed the page 100-300 px
   wider than the screen; two columns fit. Tablets and desktop are untouched. */
@media(max-width:600px){
  .kpi-grid{grid-template-columns:repeat(2,1fr)!important}
  /* the two-column detail layouts (Kunde, Mitarbeitende, Partner) stack */
  .stack-m{grid-template-columns:1fr!important}
  /* top bar and page headers may wrap instead of pushing the page wider than the screen */
  .topbar{height:auto;min-height:50px;flex-wrap:wrap;row-gap:6px;padding-top:6px;padding-bottom:6px}
  .ph{flex-wrap:wrap}
  .ph>span[style*="display:flex"]{flex-wrap:wrap}
  /* stat blocks at the end of a list row (Kooperationspartner) */
  span[style*="gap:20px;flex-shrink:0"]{flex-shrink:1;flex-wrap:wrap;gap:8px 16px}
  .pcard{flex-wrap:wrap}
}

/* =========================================
   VIEW / STATE HELPER STYLES START
   Used by assets/js/standortportal.js (panes, modals, tabs)
========================================= */
[hidden]{display:none!important}

/* =========================================
   NAVIGATION LINK STYLES START
   Sidebar entries are real <a> tags; they must look exactly like the
   prototype's <div class="ni"> entries.
========================================= */
a.ni{text-decoration:none}
.sb-user>a{text-decoration:none;color:inherit}

/* =========================================
   TAB BUTTON STYLES START
   Replaces the prototype's inline active/inactive styles
========================================= */
.tab-btn{padding:9px 14px;border:none;background:transparent;color:var(--sub);font-size:12.5px;
  font-weight:500;cursor:pointer;font-family:inherit;white-space:nowrap;border-bottom:2px solid transparent}
.tab-btn.active{color:var(--brand-dark);font-weight:700;border-bottom:2px solid var(--brand)}

/* =========================================
   CLEARING AREA TILE STYLES START
========================================= */
.kpi.kpi-btn{text-align:left;cursor:pointer;border:2px solid var(--border);font-family:inherit;background:var(--surface)}
.kpi.kpi-btn.active{border:2px solid var(--brand);background:var(--brand-light)}

/* =========================================
   TAGESBERICHT MOOD BUTTON STYLES START
========================================= */
.mood-btn{flex:1;min-width:120px;display:flex;align-items:center;gap:9px;padding:9px 12px;
  border:1.5px solid var(--border);border-radius:var(--r);background:var(--surface);cursor:pointer;font-family:inherit}
.mood-btn.on{border:1.5px solid var(--brand);background:var(--brand-light)}
.mood-lbl{font-size:12.5px;font-weight:500;color:var(--sub)}
.mood-btn.on .mood-lbl{font-weight:700;color:var(--brand-dark)}

/* =========================================
   NOTIFICATION TOGGLE SWITCH STYLES START
========================================= */
.tgl{width:42px;height:24px;border-radius:99px;border:none;cursor:pointer;background:var(--border-s);
  position:relative;transition:background .15s;padding:0}
.tgl.on{background:var(--brand)}
.tgl-knob{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:white;
  transition:left .15s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.tgl.on .tgl-knob{left:21px}

/* =========================================
   FORM VALIDATION STYLES START
   Bootstrap-style class names (is-invalid / invalid-feedback / was-validated) drawn with the
   prototype's own palette. Nothing changes visually until a field is invalid.
========================================= */
.invalid-feedback{display:none;font-size:10.5px;color:var(--danger);line-height:1.5}
.invalid-feedback.show{display:block}
.fi.is-invalid,.fs.is-invalid,.fta.is-invalid{border-color:var(--danger)}
.fi.is-invalid:focus,.fs.is-invalid:focus,.fta.is-invalid:focus{border-color:var(--danger);box-shadow:0 0 0 3px rgba(155,44,44,.12)}
.fchk.is-invalid{border-color:var(--danger)}

/* =========================================
   MODAL FOCUS STYLES START
   A text-only dialog (e.g. the Datenschutzhinweise) receives the focus on the dialog box itself when it opens
   (assets/js/standortportal.js, focusInto): no focus ring around the box, the buttons keep theirs.
========================================= */
.modal:focus{outline:none}

/* =====================================================
   SWEETALERT HELPER FUNCTIONS
   Re-skins SweetAlert2's default popup to match this app's own dialog
   design (see .modal/.m-title/.m-foot and the --brand/--danger/--r/--rl
   tokens above) instead of SweetAlert2's default look. Used by
   assets/js/portal-swal.js (showSuccessAlert / showErrorAlert /
   showWarningAlert / showDeleteConfirmation) - the only place in the
   app that still opened a native confirm() dialog.
===================================================== */
.ps-swal.swal2-popup{
  border-radius:14px;box-shadow:0 16px 48px rgba(0,0,0,.2);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  padding:22px 22px 20px;width:auto;max-width:420px
}
.ps-swal .swal2-title{font-size:15px;font-weight:700;color:var(--ink);padding:0;margin:14px 0 0}
.ps-swal .swal2-html-container{font-size:12.5px;color:var(--sub);line-height:1.6;margin:8px 0 0}
.ps-swal .swal2-icon{width:52px;height:52px;margin:4px auto 0}
.ps-swal .swal2-actions{gap:8px;margin-top:20px}

/* =====================================================
   CHECKED STATE ICON ALIGNMENT (SweetAlert2 buttons)
   buttonsStyling:false hands button styling to us entirely - matched
   1:1 to .btn/.bp/.bs/.bd in the FORM/PANEL styles above.
===================================================== */
.ps-swal-btn{
  padding:8px 18px;border-radius:8px;font-size:12.5px;font-weight:600;cursor:pointer;
  border:1.5px solid transparent;transition:all .14s;box-shadow:none;margin:0
}
.ps-swal-confirm{background:var(--brand);color:#fff;border-color:var(--brand)}
.ps-swal-confirm:hover{background:var(--brand-dark)}
.ps-swal-confirm.danger{background:var(--danger-light);color:var(--danger);border-color:transparent}
.ps-swal-confirm.danger:hover{background:#f5d0d0}
.ps-swal-cancel{background:var(--surface);color:var(--ink);border-color:var(--border)}
.ps-swal-cancel:hover{background:var(--surface2);border-color:var(--border-s)}
@media (max-width:480px){
  .ps-swal.swal2-popup{max-width:calc(100vw - 32px);padding:20px 18px 18px}
  .ps-swal .swal2-actions{flex-direction:column-reverse;width:100%}
  .ps-swal-btn{width:100%;justify-content:center}
}
