
:root{--navy:#172554;--blue:#2563eb;--green:#059669;--orange:#ea580c;--red:#dc2626;--purple:#7c3aed;--bg:#f4f7fb}
html.sm-no-scroll,body.sm-no-scroll{overflow:hidden!important}
#sm-app{font-family:'Poppins',sans-serif;color:#1f2937;background:var(--bg);text-align:center}
#sm-app.sm-app-fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;z-index:2147483000!important;overflow:auto!important;background:var(--bg)!important;margin:0!important;padding:0!important}
#sm-app.sm-app-windowed{position:relative;z-index:1;border-radius:18px;overflow:hidden}
.sm-wrap{max-width:1320px;margin:0 auto;padding:20px 16px 40px}
.sm-topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:12px;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);border:1px solid #e5e7eb;box-shadow:0 6px 24px rgba(15,23,42,.06);border-radius:16px;padding:10px 14px;margin-bottom:16px}
.sm-brand{display:flex;align-items:center;gap:10px;text-align:left}.sm-brand strong{display:block;color:var(--navy);font-weight:800;font-size:16px}.sm-brand small{display:block;color:#64748b;font-size:11px}
.sm-logo-mark{width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;background:linear-gradient(135deg,#2563eb,#7c3aed)}
.sm-top-actions{display:flex;gap:8px;align-items:center}.sm-date-form{display:flex;gap:7px}.sm-date-form input{padding:9px 11px;border:1px solid #cbd5e1;border-radius:10px}
.sm-view-btn,.sm-screen-btn{border:0;border-radius:10px;padding:9px 14px;color:#fff;font-family:'Poppins',sans-serif;font-weight:700;cursor:pointer}.sm-view-btn{background:linear-gradient(135deg,#2563eb,#4f46e5)}.sm-screen-btn{background:#0f172a}
.sm-hero{background:linear-gradient(135deg,#eff6ff,#f5f3ff);border:1px solid #dbeafe;border-radius:20px;padding:18px 22px;margin-bottom:14px}.sm-hero h1{margin:4px 0;font-size:30px;font-weight:800;color:var(--navy)}.sm-hero p{margin:5px 0;color:#64748b;font-size:13px}.sm-panel-title{display:inline-block;padding:6px 13px;border-radius:999px;background:#fff;color:#4338ca;border:1px solid #ddd6fe;font-weight:700;font-size:12px}
.sm-grid{display:grid;gap:12px;margin:12px 0}.sm-kpis{grid-template-columns:repeat(6,1fr)}.sm-status{grid-template-columns:repeat(4,1fr)}.sm-op-kpis{grid-template-columns:repeat(4,1fr)}
.sm-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:17px;box-shadow:0 5px 20px rgba(15,23,42,.05)}.sm-card span{font-size:11px;color:#64748b}.sm-card strong{font-size:22px}
.sm-kpi.c1{background:#eff6ff}.sm-kpi.c2{background:#fff7ed}.sm-kpi.c3{background:#f8fafc}.sm-kpi.c4{background:#ecfdf5}.sm-kpi.c5{background:#f0fdf4}.sm-kpi.c6{background:#faf5ff}
.status strong{display:block;font-size:27px}.status.pending{background:#fff7ed;color:#c2410c}.status.processing{background:#eff6ff;color:#1d4ed8}.status.completed{background:#ecfdf5;color:#047857}.status.rejected{background:#fef2f2;color:#b91c1c}
.sm-operator-filter{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1px solid #ddd6fe;border-radius:14px;padding:12px 15px;text-align:left}.sm-operator-filter strong,.sm-operator-filter small{display:block}.sm-operator-filter small{color:#64748b}.sm-operator-filter select{padding:9px 11px;border:1px solid #cbd5e1;border-radius:9px}
.sm-accordion{border:1px solid #e5e7eb;border-radius:16px;background:#fff;margin:12px 0;overflow:hidden}.sm-accordion-head{width:100%;border:0;background:#fff;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-family:'Poppins',sans-serif;text-align:left}.sm-accordion-body{display:none;padding:4px 18px 18px}.sm-accordion.open .sm-accordion-body{display:block}.sm-acc-left strong{display:block;color:#172554}.sm-acc-left small{display:block;color:#64748b;font-size:11px}.sm-mini-badge{background:#eef2ff;color:#4338ca;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:700}.sm-chevron{font-size:22px}
.sm-btn{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff!important;border:0!important;border-radius:10px!important;padding:10px 17px!important;cursor:pointer;font-weight:700!important;font-family:'Poppins',sans-serif!important}
.sm-inline{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}.sm-form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.sm-form-grid input,.sm-form-grid select,.sm-inline input,.sm-inline select,.sm-table input,.sm-table select{padding:10px 11px;border:1px solid #d1d5db;border-radius:9px;font-family:'Poppins',sans-serif;background:#fff}
.sm-table{width:100%;border-collapse:collapse}.sm-table th,.sm-table td{text-align:center;border-bottom:1px solid #eee;padding:10px;vertical-align:middle}.sm-table th{font-size:11px;color:#475569;text-transform:uppercase;background:#f8fafc}.sm-table-scroll{overflow:auto}
.sm-table input:disabled{background:#f1f5f9;color:#64748b;cursor:not-allowed}
.sm-role-note{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:9px;margin-bottom:12px;font-size:12px}
.sm-chip-wrap{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:14px}.sm-chip{display:flex;gap:8px;align-items:center;border:1px solid #bfdbfe;background:#eff6ff;border-radius:999px;padding:8px 11px;font-weight:600}.sm-chip.inactive{opacity:.55}.sm-chip button{border:0;background:transparent;color:#2563eb;cursor:pointer}
.sm-badge,.sm-pay{display:inline-block;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:700}.sm-pending{background:#fff7ed;color:#c2410c}.sm-processing{background:#eff6ff;color:#1d4ed8}.sm-completed{background:#ecfdf5;color:#047857}.sm-rejected{background:#fef2f2;color:#b91c1c}.sm-pay.paid{background:#dcfce7;color:#166534}.sm-pay.unpaid{background:#fee2e2;color:#991b1b}
.sm-msg{display:inline-block;margin:8px;color:#047857;font-weight:600;font-size:12px}.sm-muted{color:#64748b;font-size:12px}
.sm-license-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;font-family:'Poppins',sans-serif;background:#f4f7fb;padding:24px}.sm-license-box{width:min(900px,100%);background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:30px;text-align:center;box-shadow:0 15px 50px rgba(15,23,42,.10)}.sm-license-box .sm-logo-mark{margin:0 auto 12px}.sm-plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.sm-plan-card{border:1px solid #e5e7eb;border-radius:15px;padding:16px;display:flex;flex-direction:column;gap:8px}.sm-plan-card strong{color:#172554}.sm-plan-card span{font-size:26px;font-weight:800;color:#2563eb}.sm-plan-card small{color:#64748b}.sm-plan-card button{margin-top:auto}
.sm-alert{border-radius:12px;padding:11px 14px;margin:10px 0}.sm-alert.success{background:#ecfdf5;color:#166534}.sm-alert.error{background:#fef2f2;color:#991b1b}.sm-plan-limit{background:#f5f3ff;border:1px solid #ddd6fe;border-radius:10px;padding:10px;margin-bottom:12px}
@media(max-width:1100px){.sm-kpis{grid-template-columns:repeat(3,1fr)}.sm-form-grid{grid-template-columns:repeat(2,1fr)}.sm-plan-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sm-wrap{padding:10px 8px}.sm-topbar{flex-direction:column;align-items:stretch}.sm-kpis,.sm-status,.sm-op-kpis{grid-template-columns:repeat(2,1fr)}.sm-form-grid,.sm-plan-grid{grid-template-columns:1fr}.sm-operator-filter{flex-direction:column;align-items:stretch}}


/* v0.4.1 UI fixes */
.sm-kpi,.sm-op-kpis .sm-card{
  min-height:108px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:14px 10px!important;
}
.sm-kpi span,.sm-op-kpis .sm-card span{
  display:block!important;
  width:100%!important;
  margin:0!important;
  line-height:1.25!important;
  font-size:12px!important;
  text-align:center!important;
}
.sm-kpi strong,.sm-op-kpis .sm-card strong{
  display:block!important;
  width:100%!important;
  margin:0!important;
  line-height:1.12!important;
  font-size:22px!important;
  text-align:center!important;
  white-space:nowrap;
}
.sm-accordion-head,
.sm-accordion-head:hover,
.sm-accordion-head:focus,
.sm-accordion-head:active{
  background:#f8fbff!important;
  color:#172554!important;
  border:0!important;
  outline:none!important;
  box-shadow:none!important;
}
.sm-accordion.open>.sm-accordion-head{
  background:#eef6ff!important;
  color:#172554!important;
}
.sm-accordion-head .sm-acc-left strong{color:#172554!important}
.sm-accordion-head .sm-acc-left small{color:#64748b!important}
.sm-wallet-order{display:inline-flex!important;gap:2px!important;margin-left:2px!important}
.sm-wallet-order .sm-wallet-move{
  width:25px;height:25px;padding:0!important;border:1px solid #bfdbfe!important;
  border-radius:7px!important;background:#fff!important;color:#1d4ed8!important;
  font-size:14px!important;font-weight:800!important;line-height:1!important;cursor:pointer!important;
}
.sm-wallet-order .sm-wallet-move:hover{background:#dbeafe!important}
@media(max-width:1100px){.sm-kpi strong,.sm-op-kpis .sm-card strong{font-size:20px!important}}


/* ===== v0.5.0 Professional Workspace + Popup Navigation ===== */
#sm-app{
  --sm-sidebar-w: 252px;
  --sm-panel:#ffffff;
  --sm-border:#e6eaf0;
  --sm-text:#172033;
  --sm-muted:#72809a;
  --sm-primary:#3157d5;
  --sm-primary-soft:#eef3ff;
  --sm-shadow:0 18px 50px rgba(23,32,51,.10);
  background:#f5f7fb!important;
}
.sm-wrap{max-width:1480px!important;padding:14px 16px 34px!important}
.sm-topbar{
  border-color:#e8ebf1!important;
  box-shadow:0 8px 28px rgba(30,42,73,.06)!important;
  border-radius:18px!important;
  padding:11px 14px!important;
  margin-bottom:12px!important;
}
.sm-brand .sm-logo-mark{
  background:linear-gradient(135deg,#3157d5,#7047eb)!important;
  box-shadow:0 8px 22px rgba(49,87,213,.24)!important;
}
.sm-workspace{
  display:grid;
  grid-template-columns:var(--sm-sidebar-w) minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.sm-sidebar{
  position:sticky;
  top:82px;
  min-height:calc(100vh - 105px);
  background:#fff;
  border:1px solid var(--sm-border);
  border-radius:20px;
  padding:13px;
  box-shadow:0 9px 30px rgba(30,42,73,.055);
  text-align:left;
}
.sm-sidebar-label{
  padding:5px 10px 10px;
  color:#9aa5b7;
  font-size:10px;
  font-weight:800;
  letter-spacing:.14em;
}
.sm-nav-item{
  appearance:none!important;
  width:100%!important;
  min-height:58px;
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  border:0!important;
  border-radius:13px!important;
  background:transparent!important;
  color:var(--sm-text)!important;
  padding:9px 10px!important;
  margin:2px 0!important;
  text-align:left!important;
  box-shadow:none!important;
  cursor:pointer!important;
  font-family:'Poppins',sans-serif!important;
  transition:background .18s ease, transform .18s ease, color .18s ease!important;
}
.sm-nav-item:hover{background:#f5f7fb!important;transform:translateX(2px)}
.sm-nav-item.active{background:linear-gradient(135deg,#edf2ff,#f5f1ff)!important;color:#2448bf!important}
.sm-nav-icon{
  width:34px;height:34px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:#f2f5fa;color:#506078;
  font-size:15px;font-weight:800;
  border:1px solid #e8edf5;
}
.sm-nav-item.active .sm-nav-icon{
  color:#fff;background:linear-gradient(135deg,#3157d5,#7047eb);border-color:transparent;
  box-shadow:0 6px 16px rgba(49,87,213,.2);
}
.sm-nav-item>span:nth-child(2){min-width:0}
.sm-nav-item strong{display:block;font-size:12px!important;line-height:1.25;font-weight:700!important}
.sm-nav-item small{display:block;color:#8a96aa;font-size:9.5px;line-height:1.35;margin-top:2px}
.sm-nav-item em{
  min-width:24px;height:24px;padding:0 7px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:#f1f4f8;color:#526076;font-style:normal;font-size:9px;font-weight:800;
}
.sm-nav-item.active em{background:#fff;color:#3157d5}
.sm-sidebar-note{
  margin-top:14px;padding:12px;border-radius:13px;
  background:linear-gradient(135deg,#f8faff,#f7f4ff);
  border:1px solid #edf0f6;
}
.sm-sidebar-note strong{display:block;font-size:11px;color:#34425c;margin-bottom:3px}
.sm-sidebar-note span{display:block;font-size:9.5px;color:#8590a2;line-height:1.5}
.sm-dashboard-main{min-width:0}
.sm-hero{margin-top:0!important;border-radius:20px!important;box-shadow:0 7px 25px rgba(30,42,73,.04)}
.sm-operator-filter,.sm-card{
  border-color:#e8ebf1!important;
  box-shadow:0 8px 25px rgba(30,42,73,.045)!important;
}
.sm-card{border-radius:17px!important}
.sm-kpi{min-height:106px!important}
.sm-kpi span,.sm-card>span{display:block!important;margin-bottom:7px!important;line-height:1.25!important}
.sm-kpi strong,.sm-card>strong{display:block!important;line-height:1.12!important}
.sm-status .sm-card{min-height:105px;display:flex;flex-direction:column;justify-content:center}
.sm-status .sm-card b{margin-bottom:7px}

/* Hide old inline accordion bars: content now lives in modal windows. */
.sm-accordion{display:none!important}

/* Modal system */
.sm-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:2147483600;
  align-items:center;
  justify-content:center;
  padding:28px;
  font-family:'Poppins',sans-serif;
}
.sm-modal.open{display:flex}
.sm-modal-backdrop{
  position:absolute;inset:0;
  background:rgba(16,24,40,.42);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
  animation:smFade .16s ease;
}
.sm-modal-dialog{
  position:relative;
  width:min(1040px,calc(100vw - 50px));
  max-height:min(86vh,900px);
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid rgba(230,234,240,.95);
  border-radius:24px;
  box-shadow:0 30px 90px rgba(16,24,40,.22);
  overflow:hidden;
  animation:smPop .18s ease;
  text-align:center;
}
#sm-recent-apps .sm-modal-dialog{width:min(1320px,calc(100vw - 40px))}
#sm-daily-wallet .sm-modal-dialog{width:min(1100px,calc(100vw - 40px))}
.sm-modal-header{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid #edf0f4;
  background:linear-gradient(180deg,#fff,#fbfcff);
}
.sm-modal-title-wrap{display:flex;align-items:center;gap:12px;text-align:left;min-width:0}
.sm-modal-icon{
  flex:0 0 auto;
  width:42px;height:42px;border-radius:13px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:17px;font-weight:800;
  background:linear-gradient(135deg,#3157d5,#7047eb);
  box-shadow:0 7px 17px rgba(49,87,213,.20);
}
.sm-modal-title-wrap h2{margin:0!important;color:#172033!important;font-size:17px!important;font-weight:800!important;line-height:1.25!important}
.sm-modal-title-wrap p{margin:3px 0 0!important;color:#8390a4!important;font-size:10.5px!important;line-height:1.4!important}
.sm-modal-header-actions{display:flex;align-items:center;gap:9px}
.sm-modal-close{
  appearance:none!important;
  width:36px!important;height:36px!important;
  border:1px solid #e6eaf0!important;
  border-radius:11px!important;
  background:#f7f9fc!important;
  color:#46536a!important;
  padding:0!important;
  font-size:24px!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
.sm-modal-close:hover{background:#eef2f7!important;color:#172033!important}
.sm-modal-body{overflow:auto;padding:19px 20px 22px}
.sm-modal-body .sm-role-note,
.sm-modal-body .sm-plan-limit{margin-top:0}
.sm-modal-body .sm-table{background:#fff;border:1px solid #edf0f4;border-radius:14px;overflow:hidden}
.sm-modal-body .sm-table th{background:#f8fafc!important}
.sm-modal-body .sm-form-grid{
  background:#fafbfe;
  border:1px solid #edf0f5;
  border-radius:16px;
  padding:15px;
}
.sm-modal-body input,.sm-modal-body select{
  min-height:42px!important;
  border-color:#dfe5ee!important;
  box-shadow:none!important;
}
.sm-modal-body input:focus,.sm-modal-body select:focus{
  border-color:#8da5f7!important;
  box-shadow:0 0 0 3px rgba(49,87,213,.08)!important;
  outline:none!important;
}
.sm-chip{
  border-color:#dce5fb!important;background:#f4f7ff!important;
  box-shadow:0 3px 10px rgba(49,87,213,.04)
}
.sm-mini-badge{background:#eef3ff!important;color:#3157d5!important}
.sm-wallet-order{display:inline-flex!important;gap:3px!important}
.sm-wallet-move{
  width:26px!important;height:26px!important;border-radius:8px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  background:#fff!important;border:1px solid #dce3ee!important;color:#4e5d73!important;
  padding:0!important;cursor:pointer!important;font-weight:800!important;
}
.sm-wallet-move:hover{background:#edf2ff!important;color:#3157d5!important;border-color:#cfdafb!important}
body.sm-modal-open{overflow:hidden!important}
@keyframes smFade{from{opacity:0}to{opacity:1}}
@keyframes smPop{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}

/* Responsive professional layout */
@media(max-width:980px){
  #sm-app{--sm-sidebar-w:210px}
  .sm-workspace{grid-template-columns:210px minmax(0,1fr);gap:10px}
  .sm-nav-item{grid-template-columns:32px minmax(0,1fr) auto;padding:8px!important}
  .sm-nav-icon{width:31px;height:31px}
}
@media(max-width:760px){
  .sm-workspace{display:block}
  .sm-sidebar{
    position:relative;top:auto;min-height:0;
    display:flex;gap:7px;overflow-x:auto;
    border-radius:15px;padding:8px;margin-bottom:10px;
    scrollbar-width:none;
  }
  .sm-sidebar::-webkit-scrollbar{display:none}
  .sm-sidebar-label,.sm-sidebar-note{display:none}
  .sm-nav-item{
    flex:0 0 auto!important;width:auto!important;min-width:58px!important;min-height:52px!important;
    display:flex!important;flex-direction:column!important;gap:4px!important;justify-content:center!important;
    padding:7px 10px!important;text-align:center!important;
  }
  .sm-nav-item>span:nth-child(2) small,.sm-nav-item em{display:none}
  .sm-nav-item strong{font-size:9.5px!important;max-width:100px;white-space:nowrap}
  .sm-nav-icon{width:29px;height:29px;margin:auto}
  .sm-modal{padding:10px;align-items:flex-end}
  .sm-modal-dialog{width:100%!important;max-height:92vh;border-radius:21px 21px 12px 12px}
  .sm-modal-header{padding:13px 14px}
  .sm-modal-body{padding:14px}
}


/* ===== v0.5.1 Reports & download ===== */
.sm-report-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.sm-report-card{
  border:1px solid #e6eaf0;
  background:linear-gradient(180deg,#fff,#fafbfe);
  border-radius:17px;
  padding:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  min-height:220px;
  box-shadow:0 8px 24px rgba(30,42,73,.04);
}
.sm-report-card strong{font-size:14px;color:#172033}
.sm-report-card small{font-size:10px;color:#7b879a;line-height:1.5;min-height:32px}
.sm-report-icon{
  width:52px;height:52px;border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#3157d5,#7047eb);
  color:#fff;font-weight:800;font-size:12px;
  box-shadow:0 8px 20px rgba(49,87,213,.18);
}
.sm-report-card .sm-btn{margin-top:auto;width:100%}
.sm-report-dates{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sm-report-dates label{font-size:9px;color:#68758a;text-align:left}
.sm-report-dates input{width:100%;margin-top:4px}
.sm-report-note{
  margin-top:14px;padding:11px 13px;border-radius:12px;
  background:#f7f9fc;border:1px solid #e8edf4;
  color:#627086;font-size:10.5px;line-height:1.6
}
@media(max-width:900px){.sm-report-grid{grid-template-columns:1fr}}


/* ===== v0.5.2 Temporary Wallet Delegation ===== */
.sm-delegation-panel{
  margin-top:18px;
  border:1px solid #dfe7f5;
  background:linear-gradient(180deg,#fbfdff,#f7f9fe);
  border-radius:16px;
  padding:15px;
}
.sm-delegation-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
  text-align:left;margin-bottom:13px
}
.sm-delegation-head strong{display:block;color:#172554;font-size:14px}
.sm-delegation-head small{display:block;color:#718096;font-size:10px;line-height:1.5;margin-top:3px}
.sm-temp-badge{
  white-space:nowrap;background:#eef3ff;color:#3157d5;border:1px solid #dbe5ff;
  border-radius:999px;padding:5px 9px;font-size:9px;font-weight:800
}
.sm-delegation-form{
  display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:9px;align-items:end
}
.sm-delegation-form label{font-size:9px;color:#66758b;text-align:left;font-weight:600}
.sm-delegation-form select,.sm-delegation-form input{width:100%;margin-top:5px}
.sm-permission-note{
  margin-top:10px;padding:10px;border-radius:11px;background:#fff7ed;border:1px solid #fed7aa;
  color:#9a4a0b;font-size:10px;line-height:1.55
}
.sm-temp-active{
  display:inline-block;padding:4px 8px;border-radius:999px;background:#ecfdf5;color:#047857;
  font-size:9px;font-weight:700
}
@media(max-width:900px){.sm-delegation-form{grid-template-columns:1fr 1fr}.sm-delegation-form .sm-btn{grid-column:1/-1}}
@media(max-width:600px){.sm-delegation-form{grid-template-columns:1fr}.sm-delegation-form .sm-btn{grid-column:auto}}
\n/* ===== v0.5.3 usability refinements ===== */\n#sm-app input[type=number],.sm-modal input[type=number]{-moz-appearance:textfield!important;appearance:textfield!important}\n#sm-app input[type=number]::-webkit-outer-spin-button,#sm-app input[type=number]::-webkit-inner-spin-button,.sm-modal input[type=number]::-webkit-outer-spin-button,.sm-modal input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important}\n.sm-auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at 20% 10%,rgba(49,87,213,.12),transparent 34%),radial-gradient(circle at 85% 85%,rgba(112,71,235,.10),transparent 30%),#f5f7fb;font-family:'Poppins',sans-serif}\n.sm-auth-card{width:min(450px,100%);background:#fff;border:1px solid #e6eaf0;border-radius:24px;padding:28px;box-shadow:0 25px 80px rgba(23,32,51,.12)}\n.sm-auth-brand{display:flex;align-items:center;gap:13px;text-align:left;padding-bottom:18px;border-bottom:1px solid #eef1f5;margin-bottom:20px}.sm-auth-brand h2{margin:0;color:#172554;font-size:25px;font-weight:800}.sm-auth-brand p{margin:2px 0;color:#475569;font-size:11px;font-weight:600}.sm-auth-brand small{color:#8a96aa;font-size:9.5px}\n.sm-auth-heading{text-align:left;margin:0 0 15px}.sm-auth-heading strong{display:block;color:#172033;font-size:18px}.sm-auth-heading span{display:block;color:#7b879a;font-size:10.5px;line-height:1.5;margin-top:3px}\n.sm-auth-form{display:flex;flex-direction:column;gap:11px}.sm-auth-form label{display:block;text-align:left;color:#526076;font-size:10px;font-weight:600}.sm-auth-form input[type=text],.sm-auth-form input[type=password],.sm-auth-form input:not([type]){width:100%;margin-top:5px;min-height:44px;padding:10px 12px;border:1px solid #dfe5ee;border-radius:11px;background:#fff;font-family:'Poppins',sans-serif;box-sizing:border-box}.sm-auth-form input:focus{outline:none;border-color:#8da5f7;box-shadow:0 0 0 3px rgba(49,87,213,.08)}.sm-auth-form .sm-btn{width:100%;margin-top:3px}.sm-remember{display:flex!important;align-items:center;gap:7px}.sm-remember input{width:auto!important;margin:0!important;min-height:auto!important}.sm-auth-secondary{display:block;margin-top:15px;text-align:center;color:#3157d5;text-decoration:none;font-size:11px;font-weight:700}.sm-auth-secondary:hover{text-decoration:underline}\n.sm-list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:11px;padding:10px 12px;border-radius:12px;background:#f8fafc;border:1px solid #e8edf4;text-align:left}.sm-list-toolbar strong{display:block;color:#26344b;font-size:11px}.sm-list-toolbar small{display:block;color:#8994a6;font-size:9.5px;margin-top:2px}.sm-list-toolbar label{display:flex;align-items:center;gap:7px;color:#66758b;font-size:10px;font-weight:700}.sm-list-toolbar select{min-height:34px!important;padding:5px 9px!important;border-radius:9px!important}@media(max-width:600px){.sm-list-toolbar{align-items:stretch;flex-direction:column}.sm-list-toolbar label{justify-content:space-between}}\n\n\n/* ===== v0.5.4 account registration, safety & logout ===== */\n.sm-logout-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border-radius:10px;background:#fff1f2;color:#be123c!important;border:1px solid #fecdd3;text-decoration:none!important;font-size:10.5px;font-weight:800;font-family:'Poppins',sans-serif;transition:.18s ease}.sm-logout-btn:hover{background:#ffe4e6;color:#9f1239!important}.sm-auth-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.sm-auth-links .sm-auth-secondary{margin-top:0;padding:9px;border-radius:10px;background:#f8fafc;border:1px solid #e8edf4}.sm-auth-links .sm-register-link{background:#eef3ff;border-color:#dbe5ff}@media(max-width:600px){.sm-auth-links{grid-template-columns:1fr}.sm-logout-btn{order:3}}\n

/* ===== v0.5.5 accounting model ===== */
.sm-profit-note{margin:10px 0 14px;padding:11px 14px;border:1px solid #dbe7ff;background:#f7faff;border-radius:13px;color:#53627a;font-size:10px;line-height:1.55}.sm-profit-note strong{color:#17346c}.sm-profit-note span{margin-left:10px}.sm-accounting-help{margin-top:7px;color:#6d7a8f;font-size:9.5px;line-height:1.5}.sm-account-type-guide{display:flex;flex-direction:column;gap:4px;padding:11px 13px;margin-bottom:10px;background:#f8fbff;border:1px solid #dfe9f7;border-radius:12px;color:#64748b;font-size:10px}.sm-account-type-guide strong{color:#1f3458;font-size:11px}.sm-type-badge{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:4px 8px;border-radius:999px;font-size:8.5px;font-weight:800}.sm-type-badge.balance{background:#eaf2ff;color:#2856b6}.sm-type-badge.income{background:#e9fbf1;color:#08784f}.sm-wallet-type-select{min-height:30px!important;padding:4px 7px!important;font-size:9px!important}.sm-na{display:inline-block;color:#a7b0bf;padding:8px 4px}.sm-chip-name{font-weight:700}.sm-chip{gap:7px;flex-wrap:wrap}.sm-inline #sm-wallet-type{min-width:145px}@media(max-width:700px){.sm-profit-note span{display:block;margin:5px 0 0}.sm-inline #sm-wallet-type{width:100%}}

/* v0.5.6 amount display + stronger card labels */
.sm-kpi > span,.sm-op-kpis .sm-card > span{font-weight:700!important;color:#52627a!important}
.sm-kpi > strong{font-weight:800!important}
.sm-type-badge{font-weight:700!important}


/* ===== v0.5.7 professional wallet, compact apps, renewal sale ===== */
#sm-wallet-management .sm-modal-dialog{width:min(1240px,calc(100vw - 40px))}
.sm-wallet-addbar{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(170px,.8fr) auto 1fr;gap:9px;align-items:center;margin-bottom:14px}
.sm-wallet-addbar input,.sm-wallet-addbar select{width:100%}
.sm-wallet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.sm-wallet-card{border:1px solid #dfe7f7;background:#f8faff;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:9px;min-width:0;box-shadow:0 4px 14px rgba(39,61,110,.04)}
.sm-wallet-card.inactive{opacity:.55}
.sm-wallet-card-head{display:flex;align-items:center;gap:8px}
.sm-wallet-name-input{min-width:0!important;flex:1!important;font-weight:800!important;color:#1d2939!important;background:#fff!important}
.sm-wallet-card .sm-wallet-type-select{width:100%;min-height:36px!important}
.sm-wallet-card-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.sm-wallet-card-actions button{min-height:30px;border:1px solid #d7e1f3;background:#fff;border-radius:8px;padding:5px 8px;color:#3157d5;font-size:9px;font-weight:700;cursor:pointer}
.sm-wallet-card-actions .sm-delete-wallet{margin-left:auto;color:#b42318;border-color:#fecaca;background:#fff7f7}
.sm-wallet-card-actions .sm-toggle-wallet{color:#3157d5}
.sm-wallet-delete-note{margin-top:12px;padding:9px 11px;border-radius:10px;background:#fff8eb;border:1px solid #fde2a7;color:#8a5a10;font-size:9.5px;line-height:1.5}

#sm-recent-apps .sm-modal-dialog{width:min(1450px,calc(100vw - 24px));max-height:94vh}
#sm-recent-apps .sm-modal-body{padding:12px 14px 14px}
.sm-app-toolbar{padding:5px 8px!important;margin:0 0 7px!important;background:transparent!important;border:0!important}
.sm-app-toolbar small{display:inline!important;margin-left:6px!important}
.sm-app-toolbar label{margin-left:auto}
.sm-app-toolbar select{width:68px!important;min-height:30px!important;padding:3px 7px!important}
.sm-recent-table th,.sm-recent-table td{padding:6px 7px!important;font-size:10px!important}
.sm-recent-table th{font-size:9px!important}
.sm-recent-table td:nth-child(1){width:105px}
.sm-recent-table td:nth-child(2){width:150px}
.sm-recent-table td:nth-child(3){width:150px}
.sm-recent-table td:nth-child(4){width:80px}
.sm-recent-table td:nth-child(5){width:150px;white-space:nowrap}
.sm-app-update-inline{display:grid!important;grid-template-columns:105px 120px minmax(130px,1fr) 68px;gap:5px!important;align-items:center;flex-wrap:nowrap!important}
.sm-app-update-inline select,.sm-app-update-inline input,.sm-app-update-inline button{min-height:32px!important;height:32px!important;padding:4px 7px!important;font-size:9.5px!important;margin:0!important}
.sm-app-update-inline button{border:0;border-radius:7px;background:#07546b;color:#fff;font-weight:800;cursor:pointer}
.sm-recent-table .sm-pay,.sm-recent-table .sm-badge{font-size:8.5px!important;padding:4px 7px!important}
.sm-recent-table-wrap{overflow:auto;max-height:none}

.sm-plan-card{position:relative}
.sm-sale-badge{position:absolute;top:10px;right:10px;background:#fff1e8;color:#c2410c;border:1px solid #fed7aa;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:800}
.sm-plan-price{display:flex;align-items:baseline;justify-content:center;gap:8px}
.sm-plan-price del{color:#94a3b8;font-size:13px}
.sm-plan-price span{font-size:26px;font-weight:800;color:#2563eb}
.sm-sale-until{color:#c2410c!important;font-weight:700}
.sm-renew-summary{background:#f7f9ff;border:1px solid #dfe6ff;border-radius:12px;padding:10px 12px;margin-bottom:12px;color:#44526a;font-size:10px}
.sm-renew-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}

@media(max-width:1000px){
  .sm-wallet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sm-wallet-addbar{grid-template-columns:1fr 1fr}
  .sm-wallet-addbar .sm-btn{grid-column:auto}
  .sm-app-update-inline{grid-template-columns:90px 105px 130px 60px}
  .sm-renew-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .sm-wallet-grid,.sm-renew-plan-grid{grid-template-columns:1fr}
  .sm-wallet-addbar{grid-template-columns:1fr}
  .sm-app-update-inline{grid-template-columns:1fr 1fr}
  .sm-app-update-inline input{grid-column:1/-1}
}
