:root{
  --bg:#f4f5f1;
  --surface:#ffffff;
  --surface-2:#f8f9f6;
  --surface-3:#eef2e9;
  --ink:#172015;
  --muted:#687064;
  --line:#dde3d8;
  --line-strong:#cbd4c5;
  --brand:#29441f;
  --brand-2:#3e642f;
  --brand-soft:#e9f0e4;
  --accent:#cddd98;
  --danger:#a33e35;
  --danger-soft:#fff0ee;
  --warn:#9b6b19;
  --warn-soft:#fff7df;
  --success:#2f6b3a;
  --success-soft:#eaf5ea;
  --shadow-sm:0 1px 2px rgba(24,33,22,.05),0 5px 16px rgba(24,33,22,.05);
  --shadow:0 16px 44px rgba(27,39,23,.10);
  --radius:18px;
  --radius-sm:12px;
  --focus:0 0 0 4px rgba(62,100,47,.14);
  --max:1440px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(circle at 15% 0%,rgba(205,221,152,.13),transparent 25rem),
    var(--bg);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea{font:inherit}
a{color:var(--brand-2);text-decoration:none}
a:hover{text-decoration:none}
img,svg{display:block}

.wrap{width:min(calc(100% - 40px),var(--max));margin-inline:auto}
main.wrap{padding-top:28px;padding-bottom:44px;min-height:calc(100vh - 76px)}

.skip-link{position:fixed;left:16px;top:12px;z-index:9999;transform:translateY(-160%);background:var(--ink);color:#fff;padding:10px 14px;border-radius:10px;font-weight:750}
.skip-link:focus{transform:none}

/* Top navigation */
.top{
  position:sticky;top:0;z-index:50;
  background:rgba(247,248,244,.92);
  backdrop-filter:blur(18px) saturate(1.2);
  border-bottom:1px solid rgba(203,212,197,.78);
}
.top>.wrap{min-height:74px;display:flex;align-items:center;gap:24px}
.brand{display:flex;align-items:center;gap:13px;flex:0 0 auto;color:var(--ink);font-weight:760;letter-spacing:-.01em}
.brand img{width:128px;height:auto;max-height:42px;object-fit:contain}
.brand span{padding-left:13px;border-left:1px solid var(--line-strong);color:var(--muted);font-size:13px;font-weight:650}
.top nav{display:flex;align-items:center;gap:5px;min-width:0;overflow:auto;scrollbar-width:none}
.top nav::-webkit-scrollbar{display:none}
.top nav a{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:#5f685c;padding:9px 11px;border-radius:11px;font-size:13.5px;font-weight:680;transition:.18s ease}
.top nav a:hover{color:var(--ink);background:#fff}
.top nav a.on{color:var(--brand);background:var(--brand-soft);box-shadow:inset 0 0 0 1px rgba(62,100,47,.08)}
.nav-icon{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8}
.top form.inline{margin-left:auto;flex-wrap:nowrap;gap:9px;min-width:max-content}
.top form.inline>a{color:var(--muted);max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.workspace-bar{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  min-height:44px;margin:0 0 28px;padding:0 4px 14px;
  border-bottom:1px solid var(--line);
  color:var(--muted);font-size:13px;font-weight:650;
}
.workspace-scope{display:inline-flex;align-items:center;gap:8px;color:var(--brand);background:var(--brand-soft);padding:7px 11px;border-radius:999px}
.workspace-scope img{width:17px;height:17px}

h1,h2,h3{color:var(--ink);letter-spacing:-.035em;margin-top:0}
h1{font-size:clamp(29px,3vw,42px);line-height:1.05;margin-bottom:10px;font-weight:790}
h2{font-size:20px;line-height:1.2;margin:32px 0 13px;font-weight:760}
h3{font-size:16px}
.lead{margin:0 0 24px;color:var(--muted);font-size:15.5px;max-width:840px}
.small{font-size:12.5px}.muted{color:var(--muted)}.num{text-align:right}.center{text-align:center}

/* Controls */
label{display:grid;gap:6px;color:#596355;font-size:12px;font-weight:720;letter-spacing:.01em}
input,select,textarea{
  width:auto;min-height:42px;
  color:var(--ink);background:#fff;
  border:1px solid var(--line-strong);border-radius:10px;
  padding:9px 11px;outline:0;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
input:hover,select:hover,textarea:hover{border-color:#aebba7}
input:focus,select:focus,textarea:focus{border-color:var(--brand-2);box-shadow:var(--focus)}
input::placeholder{color:#a3aaa0}
input[readonly]{background:var(--surface-2);color:#4d574a}
select{padding-right:34px}

button,.auth-link-button{
  min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  border:0;border-radius:10px;padding:9px 15px;
  background:var(--brand);color:#fff;
  font-weight:740;letter-spacing:-.01em;cursor:pointer;
  box-shadow:0 6px 14px rgba(41,68,31,.14);
  transition:transform .15s ease,background .15s ease,box-shadow .15s ease;
}
button:hover,.auth-link-button:hover{background:#203818;box-shadow:0 8px 18px rgba(41,68,31,.18);transform:translateY(-1px)}
button:active,.auth-link-button:active{transform:translateY(0)}
button:focus-visible,.auth-link-button:focus-visible{outline:none;box-shadow:var(--focus),0 6px 14px rgba(41,68,31,.14)}
button.quiet{background:#fff;color:#44503f;border:1px solid var(--line-strong);box-shadow:none}
button.quiet:hover{background:var(--surface-2);border-color:#b6c1b0;color:var(--ink)}
button.danger{background:transparent;color:var(--danger);border:1px solid #edcbc7;box-shadow:none}
button.danger:hover{background:var(--danger-soft);border-color:#dfaaa4}

.inline{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.stack{display:grid;gap:15px}
.check{display:inline-flex;grid-template-columns:none;align-items:center;gap:8px;white-space:nowrap;font-size:13px;font-weight:650;color:#566151}
.check input[type="checkbox"],td input[type="checkbox"]{width:18px;height:18px;min-height:0;padding:0;accent-color:var(--brand-2)}

.filters{
  margin:0 0 22px;padding:14px;
  background:rgba(255,255,255,.72);border:1px solid var(--line);
  border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);
}
.filters label{min-width:145px}
.filters button{align-self:end}

/* Cards and metrics */
.card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;box-shadow:var(--shadow-sm);
}
.card.narrow{max-width:620px}
.legend{margin-top:18px;background:var(--surface-2)}
.legend p{margin:7px 0}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:0 0 26px}
.tile{
  position:relative;overflow:hidden;min-height:108px;padding:17px 18px;
  display:flex;flex-direction:column;justify-content:space-between;
  background:var(--surface);border:1px solid var(--line);border-radius:15px;
  color:var(--muted);font-size:12px;font-weight:720;box-shadow:var(--shadow-sm);
}
.tile:after{content:"";position:absolute;inset:auto -32px -42px auto;width:92px;height:92px;border-radius:50%;background:var(--brand-soft)}
.tile b{position:relative;z-index:1;color:var(--ink);font-size:25px;line-height:1.1;letter-spacing:-.04em;font-weight:790}
.tile.warn{background:var(--warn-soft);border-color:#eedca8}.tile.warn:after{background:#f5e7b8}

/* Feedback */
.flash{margin:0 0 20px;padding:13px 15px;border-radius:12px;border:1px solid #cfe2c8;background:var(--success-soft);color:#285f33;font-weight:650;box-shadow:var(--shadow-sm)}
.flash.err{background:var(--danger-soft);border-color:#efc9c4;color:#8f342c}
.pill{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:#eef1eb;color:#687064;font-size:11px;font-weight:740;white-space:nowrap;vertical-align:middle}
.pill.PAID{background:var(--success-soft);color:var(--success)}
.pill.UNKNOWN{background:var(--warn-soft);color:var(--warn)}
.pill.OPEN{background:#eef2f5;color:#53616c}
.pill.REFUNDED{background:#f0eef6;color:#655686}
.pill.ABANDONED{background:#f5eeee;color:#865d59}

/* Tables */
.table{
  width:100%;overflow:auto;margin:0 0 26px;
  background:var(--surface);border:1px solid var(--line);border-radius:15px;
  box-shadow:var(--shadow-sm);
}
table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px}
th,td{padding:12px 14px;text-align:left;vertical-align:middle;border-bottom:1px solid #edf0ea}
th{
  position:sticky;top:0;z-index:2;
  background:#f8f9f6;color:#71796d;
  font-size:11px;line-height:1.2;text-transform:uppercase;letter-spacing:.055em;font-weight:800;
}
tr:last-child td{border-bottom:0}
tbody tr{transition:background .15s ease}
tbody tr:hover{background:#fbfcfa}
td{color:#354032;font-size:13.5px}
td b{color:var(--ink)}
td input:not([type="checkbox"]),td select{min-height:38px;background:#fcfdfb}
td input:not([type="checkbox"]):focus,td select:focus{background:#fff}
td .inline{flex-wrap:nowrap}
td form+form{margin-top:7px}
.devices{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.devices li{display:grid;grid-template-columns:minmax(120px,1fr) auto auto;align-items:center;gap:12px;padding:9px 10px;border:1px solid #edf0ea;border-radius:10px;background:#fafbf8}

/* Invitation share */
.invite-share{margin-bottom:28px;border-color:#cad9c3;background:linear-gradient(145deg,#fff,#f4f8f1)}
.invite-share h2{margin-top:0}
.invite-share label{margin:14px 0 10px}
#copy-result{display:inline-block;margin-left:10px;color:var(--success);font-weight:700}

/* Authentication & invitation */
.auth-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 50% -10%,rgba(205,221,152,.36),transparent 28rem),
    linear-gradient(180deg,#f7f8f4 0%,#eef1e9 100%);
}
.auth-page main.wrap{min-height:100vh;max-width:520px;display:flex;flex-direction:column;justify-content:center;padding-top:44px;padding-bottom:34px}
.auth-identity{text-align:center;margin-bottom:22px}
.auth-identity img{width:164px;height:auto;margin:0 auto 10px}
.auth-identity p{margin:0;color:#7a8277;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.auth.card{width:100%;padding:30px 30px 27px;border-radius:22px;box-shadow:var(--shadow);border-color:rgba(203,212,197,.92)}
.auth.card h1{font-size:30px;margin-bottom:8px}
.auth.card .lead{font-size:14px;margin-bottom:24px}
.auth.card form{display:grid;gap:15px}
.auth.card label{gap:7px;font-size:12.5px}
.auth.card input{min-height:48px;padding:11px 13px;border-radius:11px}
.auth.card button,.auth-link-button{width:100%;min-height:49px;margin-top:4px;border-radius:11px}
.auth-note{margin:19px 0 0;padding-top:17px;border-top:1px solid var(--line);text-align:center;color:var(--muted);font-size:12.5px}
.auth-arrow{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.auth-state{width:50px;height:50px;display:grid;place-items:center;margin-bottom:18px;border-radius:14px;background:var(--warn-soft);color:var(--warn)}
.auth-state.success{background:var(--success-soft);color:var(--success)}
.auth-state svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.invited-user{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:12px 13px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}
.invited-user svg{width:22px;height:22px;flex:0 0 auto;fill:none;stroke:var(--brand-2);stroke-width:1.8;stroke-linecap:round}
.invited-user span{display:grid;color:var(--muted);font-size:11px;font-weight:650}
.invited-user strong{color:var(--ink);font-size:14px;margin-top:1px}
.auth-link-button{margin-top:8px;text-decoration:none}

.page-footer{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:42px;padding-top:22px;border-top:1px solid var(--line);color:#8a9186;font-size:11.5px;font-weight:650}
.auth-page .page-footer{border:0;margin-top:18px;padding-top:0}

/* Responsive */
@media (max-width:980px){
  .top>.wrap{gap:14px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
  .brand{order:1}.top form.inline{order:2}.top nav{order:3;width:100%}
  .top nav a{padding:8px 10px}
  main.wrap{padding-top:22px}
  .workspace-bar{margin-bottom:22px}
}

@media (max-width:680px){
  .wrap{width:min(calc(100% - 24px),var(--max))}
  .top{position:relative}
  .top>.wrap{min-height:auto}
  .brand img{width:110px}.brand span{display:none}
  .top form.inline>a{max-width:145px}
  .top nav{padding-bottom:2px}
  .nav-icon{display:none}
  .workspace-bar{align-items:flex-start;flex-direction:column;gap:8px}
  h1{font-size:31px}
  .lead{font-size:14.5px}
  .filters{display:grid;grid-template-columns:1fr 1fr;align-items:end}
  .filters label{min-width:0}
  .filters button{width:100%}
  .tiles{grid-template-columns:1fr 1fr}
  .card{padding:18px}
  .auth-page main.wrap{padding-top:28px;padding-bottom:24px}
  .auth.card{padding:24px 20px}
  .auth.card h1{font-size:27px}
  .devices li{grid-template-columns:1fr}.devices li form{justify-self:start}
}

@media (max-width:460px){
  .filters{grid-template-columns:1fr}
  .tiles{grid-template-columns:1fr 1fr;gap:9px}
  .tile{min-height:96px;padding:14px}
  .tile b{font-size:21px}
  .top form.inline>a{display:none}
  .auth-identity img{width:148px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* ===== KUMA AUTH REFINEMENT v7 ===== */
.auth-page{
  --auth-bg:#f2eee4;
  --auth-card:#fffdfa;
  --auth-ink:#201f1b;
  --auth-muted:#77736b;
  --auth-line:#ded7c8;
  --auth-green:#2f4f22;
  min-height:100vh;
  background:
    radial-gradient(circle at 18% 12%,rgba(91,118,64,.10),transparent 26rem),
    radial-gradient(circle at 85% 88%,rgba(205,186,142,.18),transparent 24rem),
    var(--auth-bg);
}
.auth-page main.wrap{
  width:min(calc(100% - 32px),460px);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:48px 0 38px;
}
.auth-identity{
  margin:0 0 24px;
  text-align:left;
}
.auth-wordmark{
  display:inline-block;
  color:var(--auth-green);
  font-size:34px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.075em;
}
.auth-identity p{
  margin:8px 0 0;
  color:var(--auth-muted);
  font-size:13px;
  font-weight:560;
  letter-spacing:0;
  text-transform:none;
}
.auth.card{
  width:100%;
  padding:34px;
  border:1px solid rgba(197,186,166,.72);
  border-radius:24px;
  background:rgba(255,253,250,.94);
  box-shadow:0 24px 70px rgba(67,58,42,.10),0 2px 10px rgba(67,58,42,.05);
  backdrop-filter:blur(14px);
}
.auth.card h1{
  margin:0 0 7px;
  color:var(--auth-ink);
  font-size:28px;
  line-height:1.12;
  font-weight:790;
  letter-spacing:-.045em;
}
.auth.card .lead{
  margin:0 0 27px;
  color:var(--auth-muted);
  font-size:14px;
  line-height:1.5;
}
.auth.card form{gap:18px}
.auth.card label{
  gap:8px;
  color:#4d4a43;
  font-size:12.5px;
  font-weight:690;
}
.auth.card input{
  width:100%;
  min-height:50px;
  padding:0 14px;
  border:1px solid #cbc4b7;
  border-radius:12px;
  background:#fff;
  color:var(--auth-ink);
  box-shadow:inset 0 1px 1px rgba(50,45,36,.025);
}
.auth.card input:hover{border-color:#aaa192}
.auth.card input:focus{
  border-color:#55763e;
  box-shadow:0 0 0 3px rgba(79,111,56,.13);
  background:#fff;
}
.auth.card button,.auth-link-button{
  width:100%;
  min-height:52px;
  margin-top:5px;
  padding:0 17px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-radius:12px;
  background:var(--auth-green);
  color:#fff;
  box-shadow:none;
  font-size:14px;
  font-weight:760;
}
.auth.card button:hover,.auth-link-button:hover{
  background:#263f1c;
  transform:none;
  box-shadow:0 8px 22px rgba(47,79,34,.17);
}
.button-arrow{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:18px;
  line-height:1;
  font-weight:500;
}
.auth-arrow{display:none!important}
.auth-note{
  margin:22px 0 0;
  padding:18px 0 0;
  border-top:1px solid #ebe5d9;
  color:#7e796f;
  text-align:left;
  font-size:12.5px;
  line-height:1.55;
}
.auth-state{
  width:46px;height:46px;margin-bottom:18px;border-radius:13px;
}
.invited-user{
  margin:0 0 20px;
  padding:12px 13px;
  background:#f6f3ec;
  border-color:#e4ded2;
}
.auth-page .flash{margin-bottom:18px}
.auth-page .page-footer{
  margin-top:18px;
  padding:0;
  color:#969087;
  font-size:11.5px;
  border:0;
}
@media (max-width:560px){
  .auth-page main.wrap{width:min(calc(100% - 24px),460px);padding:28px 0 24px;justify-content:flex-start}
  .auth-identity{margin:8px 0 20px;padding-left:4px}
  .auth-wordmark{font-size:30px}
  .auth.card{padding:26px 22px;border-radius:20px}
  .auth.card h1{font-size:25px}
  .auth.card .lead{margin-bottom:23px}
  .auth-note{margin-top:20px}
}



/* ===== KUMA NEUMORPHISM v8 ===== */
:root{
  --neu-base:#e9e4d8;
  --neu-base-2:#eeeadf;
  --neu-surface:#ece7dc;
  --neu-light:rgba(255,251,244,.95);
  --neu-dark:rgba(182,173,155,.52);
  --neu-dark-2:rgba(160,150,132,.28);
  --neu-green:#516f31;
  --neu-green-deep:#3f5824;
  --neu-text:#2d2a24;
  --neu-subtle:#6d685f;
}

body.panel-page,
body.auth-page{
  background:
    radial-gradient(circle at 14% 16%, rgba(255,255,255,.48), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(170,187,126,.16), transparent 20rem),
    linear-gradient(180deg,var(--neu-base) 0%, #e6e0d3 100%);
  color:var(--neu-text);
}

body.panel-page .top,
body.panel-page .card,
body.panel-page .table,
body.panel-page .filters,
body.panel-page .tile,
body.panel-page .workspace-scope,
body.auth-page .auth.card,
body.auth-page .page-footer{
  background:var(--neu-surface);
}

body.panel-page .top,
body.panel-page .card,
body.panel-page .table,
body.panel-page .filters,
body.panel-page .tile,
body.auth-page .auth.card{
  border:none;
  box-shadow:
    16px 16px 34px rgba(194,186,172,.72),
    -12px -12px 28px rgba(255,249,238,.92);
}

body.panel-page .top{
  background:rgba(236,231,220,.88);
  backdrop-filter:blur(14px);
  border-radius:0 0 26px 26px;
  margin:0 14px;
  top:10px;
}
body.panel-page .top>.wrap{min-height:72px;padding-inline:12px}
body.panel-page .workspace-bar{
  border:0;
  margin-bottom:22px;
  padding:2px 4px 0;
}
body.panel-page .workspace-scope{
  border-radius:999px;
  box-shadow: inset 4px 4px 10px rgba(195,188,176,.82), inset -4px -4px 10px rgba(255,250,241,.96);
}
body.panel-page .brand span,
body.panel-page .lead,
body.panel-page .muted,
body.panel-page td,
body.panel-page label,
body.auth-page .lead,
body.auth-page .auth-note,
body.auth-page .auth-identity p{color:var(--neu-subtle)}
body.panel-page h1,body.panel-page h2,body.panel-page h3,
body.auth-page h1{color:var(--neu-text)}

body.panel-page input,
body.panel-page select,
body.panel-page textarea,
body.auth-page input,
body.auth-page select,
body.auth-page textarea{
  border:none;
  background:var(--neu-base-2);
  color:var(--neu-text);
  box-shadow:
    inset 5px 5px 12px rgba(198,190,177,.9),
    inset -5px -5px 12px rgba(255,250,241,.98);
}
body.panel-page input:hover,
body.panel-page select:hover,
body.panel-page textarea:hover,
body.auth-page input:hover,
body.auth-page select:hover,
body.auth-page textarea:hover{
  box-shadow:
    inset 6px 6px 13px rgba(191,183,170,.9),
    inset -6px -6px 13px rgba(255,250,241,1);
}
body.panel-page input:focus,
body.panel-page select:focus,
body.panel-page textarea:focus,
body.auth-page input:focus,
body.auth-page select:focus,
body.auth-page textarea:focus{
  box-shadow:
    inset 5px 5px 12px rgba(198,190,177,.9),
    inset -5px -5px 12px rgba(255,250,241,.98),
    0 0 0 3px rgba(88,120,58,.14);
}

body.panel-page button,
body.panel-page .auth-link-button,
body.auth-page button,
body.auth-page .auth-link-button{
  border:none;
  background:linear-gradient(180deg, #5b7b38 0%, var(--neu-green) 100%);
  color:#fff;
  box-shadow:
    8px 8px 18px rgba(181,173,160,.92),
    -7px -7px 16px rgba(255,250,241,.88),
    inset 0 1px 0 rgba(255,255,255,.16);
}
body.panel-page button:hover,
body.panel-page .auth-link-button:hover,
body.auth-page button:hover,
body.auth-page .auth-link-button:hover{
  background:linear-gradient(180deg,#4f6b31 0%, var(--neu-green-deep) 100%);
}
body.panel-page button.quiet,
body.auth-page button.quiet{
  color:var(--neu-text);
  background:var(--neu-surface);
  box-shadow:
    7px 7px 14px rgba(194,186,172,.86),
    -7px -7px 14px rgba(255,250,241,.92);
}
body.panel-page button.danger{color:#8d3c33}

body.panel-page .tile{
  background:linear-gradient(180deg, #ece7dc 0%, #e6e0d3 100%);
}
body.panel-page .tile:after{opacity:.6}
body.panel-page .flash,
body.panel-page .flash.err,
body.auth-page .flash,
body.auth-page .flash.err{
  border:none;
  box-shadow:
    8px 8px 18px rgba(194,186,172,.72),
    -6px -6px 14px rgba(255,250,241,.86);
}

/* Login / auth */
body.auth-page .auth-page main.wrap,
body.auth-page main.wrap{max-width:530px}
body.auth-page .auth-identity{margin-bottom:20px;text-align:center}
body.auth-page .auth-wordmark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:112px;
  min-height:54px;
  padding:0 22px;
  border-radius:18px;
  background:var(--neu-surface);
  color:var(--neu-green-deep);
  box-shadow:
    14px 14px 26px rgba(194,186,172,.76),
    -10px -10px 22px rgba(255,250,241,.94);
  font-size:30px;
  font-weight:860;
  letter-spacing:-.06em;
}
body.auth-page .auth-identity p{
  margin-top:14px;
  font-size:13px;
  letter-spacing:.02em;
}
body.auth-page .auth.card{
  padding:34px 34px 28px;
  border-radius:28px;
  background:linear-gradient(180deg,#ebe6dc 0%, #e8e3d8 100%);
}
body.auth-page .auth.card h1{font-size:32px;margin-bottom:9px}
body.auth-page .auth.card .lead{font-size:15px;margin-bottom:26px}
body.auth-page .auth.card label{font-size:12px;font-weight:760;letter-spacing:.04em;text-transform:uppercase}
body.auth-page .auth.card input{
  min-height:54px;
  border-radius:16px;
  padding:0 16px;
  font-size:15px;
}
body.auth-page .auth.card button,
body.auth-page .auth-link-button{
  min-height:56px;
  margin-top:8px;
  border-radius:18px;
}
body.auth-page .button-arrow{
  width:32px;height:32px;flex:0 0 32px;
  background:rgba(255,255,255,.16);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.22);
}
body.auth-page .auth-note{
  margin-top:24px;
  padding:15px 16px;
  border:0;
  border-radius:16px;
  background:rgba(255,255,255,.35);
  box-shadow: inset 4px 4px 10px rgba(198,190,177,.5), inset -4px -4px 10px rgba(255,250,241,.78);
}
body.auth-page .page-footer{
  background:transparent;
  box-shadow:none;
}
body.auth-page .invited-user,
body.auth-page .auth-state{
  border:none;
  box-shadow:
    inset 4px 4px 10px rgba(197,189,176,.78),
    inset -4px -4px 10px rgba(255,250,241,.96);
}

/* Users section */
.page-usuarios h1 + .lead{max-width:980px}
.page-usuarios .neu-panel{border-radius:24px}
.page-usuarios .users-table,
.page-usuarios .roles-table{
  padding:8px;
  border-radius:28px;
  background:linear-gradient(180deg,#eae5da 0%,#e5dfd3 100%);
}
.page-usuarios .users-table table{min-width:1260px}
.page-usuarios .roles-table table{min-width:980px}
.page-usuarios th{
  background:transparent;
  color:#7c766b;
  font-size:10.5px;
  letter-spacing:.12em;
  padding-top:16px;
  padding-bottom:12px;
}
.page-usuarios td{
  border-bottom:1px solid rgba(167,157,140,.18);
  padding:16px 16px;
}
.page-usuarios tbody tr:hover{background:rgba(255,255,255,.22)}
.page-usuarios td input:not([type="checkbox"]),
.page-usuarios td select{
  width:100%;
  min-width:140px;
  min-height:44px;
  border-radius:14px;
  background:#ebe7de;
}
.page-usuarios td:nth-child(3) select{min-width:160px}
.page-usuarios td:nth-child(5) input{min-width:128px}
.page-usuarios td:nth-child(6) input{min-width:104px}
.page-usuarios td .pill{margin-top:9px}
.page-usuarios .check{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  font-weight:650;
}
.page-usuarios td.num{
  white-space:nowrap;
}
.page-usuarios td.num form{
  display:flex;
  justify-content:flex-end;
  margin:0;
}
.page-usuarios td.num form + form{margin-top:10px}
.page-usuarios td.num button{
  min-width:158px;
  min-height:42px;
  border-radius:14px;
}
.page-usuarios .invite-existing button{min-width:184px}
.page-usuarios .roles-table td.center{min-width:52px}
.page-usuarios .roles-table td.center input[type="checkbox"]{
  margin-inline:auto;
}
.page-usuarios .legend{
  background:linear-gradient(180deg,#e9e4d9 0%, #e5dfd3 100%);
  border-radius:24px;
}

/* Table refinement for other pages */
.panel-page .table{scrollbar-color:#b0a68f transparent}
.panel-page .table::-webkit-scrollbar{height:10px;width:10px}
.panel-page .table::-webkit-scrollbar-thumb{background:#b8af9c;border-radius:999px}
.panel-page .table::-webkit-scrollbar-track{background:transparent}
.panel-page table{min-width:760px}
.panel-page th{background:transparent;color:#777268}
.panel-page tbody tr:hover{background:rgba(255,255,255,.2)}
.panel-page .devices li{
  background:#ebe7de;
  border:none;
  box-shadow: inset 4px 4px 10px rgba(198,190,177,.82), inset -4px -4px 10px rgba(255,250,241,.94);
}

@media (max-width:980px){
  body.panel-page .top{margin:0 8px;top:8px}
  .page-usuarios .users-table table{min-width:1120px}
}
@media (max-width:680px){
  body.auth-page .auth.card{padding:26px 22px 22px}
  body.auth-page .auth.card h1{font-size:28px}
  body.auth-page .auth-wordmark{min-height:50px;font-size:27px;padding-inline:19px}
  .page-usuarios td.num button{min-width:140px}
}



/* ===== KUMA APPLE-GREEN REFINEMENT v9 ===== */
:root{
  --apple-bg:#f4f6f3;
  --apple-surface:#fbfcfa;
  --apple-surface-2:#f6f8f4;
  --apple-line:#dfe7da;
  --apple-line-2:#e7ede3;
  --apple-text:#1f2a1d;
  --apple-muted:#697362;
  --apple-brand:#486f2e;
  --apple-brand-2:#35561f;
  --apple-brand-soft:#eef5e8;
  --apple-shadow:0 14px 34px rgba(41,59,32,.08), 0 2px 8px rgba(41,59,32,.04);
  --apple-shadow-soft:0 8px 20px rgba(41,59,32,.05), 0 1px 2px rgba(41,59,32,.03);
  --apple-radius:22px;
  --apple-radius-sm:16px;
}

html, body{background:var(--apple-bg)}
body.panel-page,
body.auth-page{
  color:var(--apple-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(152,190,116,.11), transparent 24rem),
    radial-gradient(circle at 100% 20%, rgba(255,255,255,.72), transparent 30rem),
    linear-gradient(180deg, #f7f9f6 0%, var(--apple-bg) 100%);
}

/* General rhythm */
main.wrap{padding-top:30px;padding-bottom:52px}
body.panel-page h1{font-size:clamp(31px,3vw,44px);line-height:1.02;margin-bottom:12px;letter-spacing:-.05em}
body.panel-page h2{font-size:22px;line-height:1.15;margin:34px 0 14px;letter-spacing:-.03em}
body.panel-page .lead{font-size:15.5px;line-height:1.65;max-width:920px;margin-bottom:26px}
body.panel-page .card,
body.panel-page .table,
body.panel-page .filters,
body.panel-page .tile,
body.panel-page .top,
body.auth-page .auth.card{
  background:rgba(251,252,250,.9);
  border:1px solid var(--apple-line);
  box-shadow:var(--apple-shadow);
}

/* Topbar */
body.panel-page .top{
  margin:10px 14px 0;
  top:8px;
  border-radius:24px;
  background:rgba(251,252,250,.8);
  backdrop-filter:blur(22px) saturate(1.2);
}
body.panel-page .top>.wrap{padding:0 10px;min-height:74px}
body.panel-page .brand{gap:14px}
body.panel-page .brand span{color:#7b8576;border-left-color:var(--apple-line)}
body.panel-page .top nav{gap:8px}
body.panel-page .top nav a{
  padding:10px 12px;
  border-radius:12px;
  color:#66705f;
}
body.panel-page .top nav a:hover{background:var(--apple-surface)}
body.panel-page .top nav a.on{
  color:var(--apple-brand-2);
  background:var(--apple-brand-soft);
  box-shadow:inset 0 0 0 1px rgba(72,111,46,.08);
}
body.panel-page .top form.inline{gap:10px}
body.panel-page .top form.inline>a{font-size:13px}
body.panel-page .workspace-bar{
  margin:0 0 26px;
  padding:0 2px 10px;
  border-bottom:1px solid var(--apple-line-2);
}
body.panel-page .workspace-scope{
  border:1px solid #dce6d4;
  background:var(--apple-brand-soft);
  color:var(--apple-brand-2);
  padding:8px 12px;
  box-shadow:none;
}

/* Surfaces */
body.panel-page .card{padding:24px;border-radius:var(--apple-radius)}
body.panel-page .filters{padding:14px 16px;border-radius:18px;gap:12px;box-shadow:var(--apple-shadow-soft)}
body.panel-page .tile{min-height:118px;padding:18px 18px;border-radius:20px;background:linear-gradient(180deg,#fcfdfb 0%,#f7f9f6 100%)}
body.panel-page .tile:after{background:rgba(72,111,46,.08);width:100px;height:100px;bottom:-48px;right:-36px}
body.panel-page .tile b{font-size:28px}
body.panel-page .flash,
body.panel-page .flash.err,
body.auth-page .flash,
body.auth-page .flash.err{box-shadow:var(--apple-shadow-soft);border-radius:16px}

/* Inputs / controls */
body.panel-page label,
body.auth-page label{color:#5b6456}
body.panel-page input,
body.panel-page select,
body.panel-page textarea,
body.auth-page input,
body.auth-page select,
body.auth-page textarea{
  background:var(--apple-surface);
  border:1px solid var(--apple-line);
  border-radius:14px;
  box-shadow:inset 0 1px 2px rgba(43,56,35,.03);
}
body.panel-page input:hover,
body.panel-page select:hover,
body.panel-page textarea:hover,
body.auth-page input:hover,
body.auth-page select:hover,
body.auth-page textarea:hover{border-color:#cdd8c6;box-shadow:inset 0 1px 2px rgba(43,56,35,.03),0 1px 0 rgba(255,255,255,.4)}
body.panel-page input:focus,
body.panel-page select:focus,
body.panel-page textarea:focus,
body.auth-page input:focus,
body.auth-page select:focus,
body.auth-page textarea:focus{
  border-color:#8fb06f;
  box-shadow:0 0 0 4px rgba(84,120,52,.12), inset 0 1px 2px rgba(43,56,35,.03);
}
body.panel-page .check{font-size:13px;color:#4e5749}
body.panel-page .check input[type="checkbox"],
body.panel-page td input[type="checkbox"]{accent-color:var(--apple-brand)}

body.panel-page button,
body.panel-page .auth-link-button,
body.auth-page button,
body.auth-page .auth-link-button{
  border-radius:14px;
  background:linear-gradient(180deg,#557b36 0%, var(--apple-brand) 100%);
  box-shadow:0 10px 18px rgba(58,93,35,.18), inset 0 1px 0 rgba(255,255,255,.16);
}
body.panel-page button:hover,
body.panel-page .auth-link-button:hover,
body.auth-page button:hover,
body.auth-page .auth-link-button:hover{
  background:linear-gradient(180deg,#47682d 0%, var(--apple-brand-2) 100%);
  box-shadow:0 14px 22px rgba(58,93,35,.20), inset 0 1px 0 rgba(255,255,255,.12);
}
body.panel-page button.quiet,
body.auth-page button.quiet{
  color:#43503e;
  background:var(--apple-surface);
  border:1px solid var(--apple-line);
  box-shadow:none;
}
body.panel-page button.quiet:hover,
body.auth-page button.quiet:hover{background:#fff;border-color:#d1dbcb;transform:none}

/* Tables */
body.panel-page .table{border-radius:24px;overflow:auto;box-shadow:var(--apple-shadow-soft)}
body.panel-page table{min-width:780px}
body.panel-page th{
  position:sticky;
  top:0;
  background:rgba(247,250,246,.96);
  backdrop-filter:blur(8px);
  color:#798372;
  border-bottom:1px solid var(--apple-line-2);
  padding-top:15px;
  padding-bottom:15px;
}
body.panel-page td{padding:14px 15px;border-bottom:1px solid var(--apple-line-2);font-size:13.5px;color:#33402f}
body.panel-page tbody tr:hover{background:#f9fbf7}
body.panel-page td input:not([type="checkbox"]),
body.panel-page td select{min-height:40px;background:#fff}
body.panel-page td .inline{gap:8px}
body.panel-page .devices li{background:#fff;border:1px solid var(--apple-line);box-shadow:none;border-radius:14px}
body.panel-page .invite-share{background:linear-gradient(180deg,#fcfefb 0%,#f6faf2 100%);border-color:#dde8d6}

/* Users page */
.page-usuarios .users-table,
.page-usuarios .roles-table{
  background:var(--apple-surface);
  border-radius:26px;
  border:1px solid var(--apple-line);
  box-shadow:var(--apple-shadow-soft);
  padding:0;
}
.page-usuarios .users-table table{min-width:1220px}
.page-usuarios .roles-table table{min-width:980px}
.page-usuarios .users-table thead th,
.page-usuarios .roles-table thead th{background:#f4f8f1}
.page-usuarios .users-table td,
.page-usuarios .roles-table td{padding:16px 16px;vertical-align:middle}
.page-usuarios .users-table td input:not([type="checkbox"]),
.page-usuarios .users-table td select,
.page-usuarios .roles-table td input:not([type="checkbox"]),
.page-usuarios .roles-table td select{
  width:100%;
  min-height:44px;
  min-width:120px;
  border-radius:14px;
}
.page-usuarios .users-table td:nth-child(1) input{min-width:140px}
.page-usuarios .users-table td:nth-child(3) select{min-width:150px}
.page-usuarios .users-table td:nth-child(5) input{min-width:130px}
.page-usuarios .users-table td:nth-child(6) input{min-width:104px}
.page-usuarios .users-table .check{align-items:center;gap:10px;font-size:13.5px}
.page-usuarios .users-table td .pill{margin-top:10px;background:#edf2e8;color:#596254}
.page-usuarios .users-table td.num,
.page-usuarios .roles-table td.num{white-space:nowrap}
.page-usuarios .users-table td.num form,
.page-usuarios .roles-table td.num form{display:flex;justify-content:flex-end;margin:0}
.page-usuarios .users-table td.num form+form{margin-top:10px}
.page-usuarios .users-table td.num button,
.page-usuarios .roles-table td.num button{min-height:42px;border-radius:12px;min-width:152px}
.page-usuarios .invite-existing button{min-width:178px}
.page-usuarios .roles-table td.center{min-width:52px}
.page-usuarios .roles-table td.center input[type="checkbox"]{display:block;margin-inline:auto}
.page-usuarios .legend{background:var(--apple-surface-2);border:1px solid var(--apple-line)}

/* Auth / login */
body.auth-page main.wrap{width:min(calc(100% - 28px), 500px);padding-top:42px;padding-bottom:28px}
body.auth-page .auth-identity{text-align:center;margin:0 0 20px}
body.auth-page .auth-wordmark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:118px;
  min-height:52px;
  padding:0 24px;
  border-radius:18px;
  background:linear-gradient(180deg,#fdfefd 0%, #f6faf2 100%);
  border:1px solid #e1eade;
  color:var(--apple-brand-2);
  font-size:30px;
  font-weight:830;
  letter-spacing:-.06em;
  box-shadow:var(--apple-shadow-soft);
}
body.auth-page .auth-identity p{margin-top:14px;font-size:13px;letter-spacing:.01em}
body.auth-page .auth.card{
  padding:34px 34px 30px;
  border-radius:28px;
  background:linear-gradient(180deg,rgba(252,253,251,.96) 0%, rgba(247,250,245,.98) 100%);
}
body.auth-page .auth.card h1{font-size:34px;letter-spacing:-.055em;margin-bottom:10px}
body.auth-page .auth.card .lead{font-size:15px;line-height:1.6;margin-bottom:26px}
body.auth-page .auth.card form{gap:16px}
body.auth-page .auth.card label{font-size:12px;font-weight:760;letter-spacing:.04em;text-transform:uppercase}
body.auth-page .auth.card input{min-height:54px;padding:0 16px;border-radius:16px;background:#fff}
body.auth-page .auth.card button,
body.auth-page .auth-link-button{min-height:54px;border-radius:16px;margin-top:8px;padding-inline:18px}
body.auth-page .button-arrow{
  width:32px;height:32px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
}
body.auth-page .auth-note{
  margin-top:22px;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid #e4ecdf;
  background:#f7faf5;
  box-shadow:none;
  text-align:left;
}
body.auth-page .invited-user{background:#f7faf5;border:1px solid #e1e9db;box-shadow:none}
body.auth-page .auth-state{box-shadow:none;border:1px solid #ebe4d3}
body.auth-page .page-footer{background:transparent;box-shadow:none;border:0;margin-top:18px;padding-top:0;color:#8a9384}

/* Better responsive layout */
@media (max-width:1100px){
  body.panel-page .top{margin:8px 10px 0}
  .page-usuarios .users-table table{min-width:1080px}
}
@media (max-width:980px){
  body.panel-page .top{border-radius:18px}
  body.panel-page .top>.wrap{padding:10px 10px 12px}
  body.panel-page .workspace-bar{gap:10px}
  body.panel-page .filters{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}
}
@media (max-width:760px){
  .wrap{width:min(calc(100% - 20px), var(--max))}
  body.panel-page h1{font-size:34px}
  body.panel-page .tiles{grid-template-columns:1fr 1fr;gap:10px}
  body.panel-page .tile{min-height:104px;padding:16px}
  body.panel-page .tile b{font-size:24px}
  body.auth-page main.wrap{width:min(calc(100% - 20px), 500px);padding-top:26px}
  body.auth-page .auth.card{padding:26px 22px 22px;border-radius:24px}
  body.auth-page .auth.card h1{font-size:28px}
  body.auth-page .auth.card .lead{font-size:14.5px;margin-bottom:22px}
}
@media (max-width:640px){
  body.panel-page .filters{grid-template-columns:1fr}
  body.panel-page .table{border-radius:18px}
  body.panel-page table{min-width:680px}
  .page-usuarios .users-table table,
  .page-usuarios .roles-table table{min-width:860px}
  body.panel-page .workspace-bar{align-items:flex-start;flex-direction:column}
}
@media (max-width:480px){
  body.panel-page .top{margin:6px 8px 0}
  body.panel-page .brand img{width:108px}
  body.panel-page .tiles{grid-template-columns:1fr}
  body.panel-page .card{padding:18px}
  body.auth-page .auth-wordmark{min-height:48px;min-width:108px;font-size:28px}
  body.auth-page .auth.card{padding:22px 18px 20px;border-radius:20px}
  body.auth-page .auth.card h1{font-size:26px}
  body.auth-page .auth-note{padding:14px 15px}
}



/* ===== KUMA BENTO WHITE-GREEN v10 ===== */
:root{
  --bento-bg:#f3f7f1;
  --bento-surface:#ffffff;
  --bento-surface-soft:#f8fbf7;
  --bento-surface-green:#eef6e9;
  --bento-line:#e3ebdf;
  --bento-line-strong:#d6e3d0;
  --bento-text:#1f2a1d;
  --bento-muted:#687466;
  --bento-brand:#4d7a33;
  --bento-brand-deep:#33561e;
  --bento-brand-soft:#edf6e8;
  --bento-shadow:0 20px 40px rgba(34,59,21,.08), 0 4px 10px rgba(34,59,21,.04);
  --bento-shadow-soft:0 10px 26px rgba(34,59,21,.06), 0 2px 6px rgba(34,59,21,.03);
}

html,body{background:var(--bento-bg)}
body.panel-page,
body.auth-page{
  color:var(--bento-text);
  background:
    radial-gradient(circle at 8% 0%, rgba(144,184,105,.10), transparent 24rem),
    radial-gradient(circle at 100% 20%, rgba(255,255,255,.82), transparent 28rem),
    linear-gradient(180deg,#f9fcf8 0%, var(--bento-bg) 100%);
}

/* overall */
body.panel-page .top,
body.panel-page .card,
body.panel-page .table,
body.panel-page .filters,
body.panel-page .tile,
body.auth-page .auth.card,
body.auth-page .auth-wordmark{
  background:var(--bento-surface);
  border:1px solid var(--bento-line);
  box-shadow:var(--bento-shadow-soft);
}
body.panel-page h1,body.panel-page h2,body.panel-page h3,
body.auth-page h1{color:var(--bento-text)}
body.panel-page .lead,
body.panel-page .muted,
body.panel-page td,
body.panel-page label,
body.auth-page .lead,
body.auth-page .auth-note,
body.auth-page .auth-identity p{color:var(--bento-muted)}
main.wrap{padding-top:30px;padding-bottom:54px}

/* top nav */
body.panel-page .top{
  background:rgba(255,255,255,.88);
  border-radius:24px;
  backdrop-filter:blur(18px);
  margin:10px 14px 0;
  top:8px;
}
body.panel-page .top>.wrap{min-height:74px;padding-inline:10px}
body.panel-page .brand span{color:#758072;border-left-color:var(--bento-line)}
body.panel-page .top nav{gap:8px}
body.panel-page .top nav a{
  padding:10px 12px;
  border-radius:14px;
  color:#667161;
}
body.panel-page .top nav a:hover{background:var(--bento-surface-soft)}
body.panel-page .top nav a.on{
  color:var(--bento-brand-deep);
  background:var(--bento-brand-soft);
  box-shadow:inset 0 0 0 1px rgba(77,122,51,.07);
}
body.panel-page .workspace-bar{margin-bottom:26px;border-bottom:1px solid var(--bento-line)}
body.panel-page .workspace-scope{
  background:var(--bento-brand-soft);
  border:1px solid var(--bento-line-strong);
  color:var(--bento-brand-deep);
  box-shadow:none;
}

/* cards / bento sections */
body.panel-page .card{border-radius:26px;padding:24px;box-shadow:var(--bento-shadow)}
body.panel-page .filters{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  padding:14px;
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff 0%, #fbfdf9 100%);
}
body.panel-page .filters label{min-width:150px;flex:1 1 170px}
body.panel-page .tile{
  border-radius:24px;
  min-height:122px;
  padding:18px;
  background:linear-gradient(180deg,#ffffff 0%, #f9fcf8 100%);
  box-shadow:var(--bento-shadow-soft);
}
body.panel-page .tile:nth-child(odd){background:linear-gradient(180deg,#ffffff 0%, #f7fbf5 100%)}
body.panel-page .tile:after{
  background:radial-gradient(circle, rgba(77,122,51,.14) 0%, rgba(77,122,51,0) 70%);
  width:118px;height:118px;bottom:-52px;right:-40px;
}
body.panel-page .tile b{font-size:28px}
body.panel-page .flash,
body.panel-page .flash.err,
body.auth-page .flash,
body.auth-page .flash.err{border:none;border-radius:18px;box-shadow:var(--bento-shadow-soft)}

/* forms */
body.panel-page input,
body.panel-page select,
body.panel-page textarea,
body.auth-page input,
body.auth-page select,
body.auth-page textarea{
  background:#fff;
  border:1px solid var(--bento-line);
  border-radius:16px;
  box-shadow:0 1px 2px rgba(28,52,18,.03);
}
body.panel-page input:hover,
body.panel-page select:hover,
body.panel-page textarea:hover,
body.auth-page input:hover,
body.auth-page select:hover,
body.auth-page textarea:hover{border-color:#d5e2cf}
body.panel-page input:focus,
body.panel-page select:focus,
body.panel-page textarea:focus,
body.auth-page input:focus,
body.auth-page select:focus,
body.auth-page textarea:focus{
  border-color:#97ba7b;
  box-shadow:0 0 0 4px rgba(77,122,51,.12), 0 1px 2px rgba(28,52,18,.03);
}
body.panel-page .check{font-size:13px;color:#4f5c4c}

/* buttons */
body.panel-page button,
body.panel-page .auth-link-button,
body.auth-page button,
body.auth-page .auth-link-button{
  border-radius:16px;
  background:linear-gradient(180deg,#5b8b3e 0%, var(--bento-brand) 100%);
  color:#fff;
  box-shadow:0 12px 24px rgba(77,122,51,.18), inset 0 1px 0 rgba(255,255,255,.14);
}
body.panel-page button:hover,
body.panel-page .auth-link-button:hover,
body.auth-page button:hover,
body.auth-page .auth-link-button:hover{
  background:linear-gradient(180deg,#4b7232 0%, var(--bento-brand-deep) 100%);
  transform:translateY(-1px);
}
body.panel-page button.quiet,
body.auth-page button.quiet{
  background:#fff;
  color:#43513f;
  border:1px solid var(--bento-line);
  box-shadow:none;
}
body.panel-page button.quiet:hover,
body.auth-page button.quiet:hover{background:var(--bento-surface-soft);transform:none}
body.panel-page button.danger{background:#fff;color:#933a31;border:1px solid #efceca}
body.panel-page button.danger:hover{background:#fff4f3}

/* tables */
body.panel-page .table{
  border-radius:28px;
  overflow:auto;
  background:linear-gradient(180deg,#ffffff 0%, #fbfdf9 100%);
  box-shadow:var(--bento-shadow);
}
body.panel-page table{min-width:780px}
body.panel-page th{
  background:#f7fbf5;
  color:#7b8778;
  border-bottom:1px solid var(--bento-line);
  padding-top:15px;
  padding-bottom:15px;
}
body.panel-page td{
  padding:14px 15px;
  border-bottom:1px solid #edf3e9;
  color:#344030;
}
body.panel-page tbody tr:hover{background:#fbfef9}
body.panel-page td input:not([type="checkbox"]),
body.panel-page td select{min-height:42px;border-radius:14px}
body.panel-page .devices li{
  background:var(--bento-surface-soft);
  border:1px solid var(--bento-line);
  border-radius:16px;
  box-shadow:none;
}
body.panel-page .invite-share{
  background:linear-gradient(180deg,#ffffff 0%, #f5fbf2 100%);
  border-color:#dde9d6;
}

/* users page - more bento */
.page-usuarios .users-table,
.page-usuarios .roles-table{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}
.page-usuarios .users-table table,
.page-usuarios .roles-table table{
  border-collapse:separate;
  border-spacing:0 14px;
  min-width:1120px;
}
.page-usuarios .roles-table table{min-width:960px}
.page-usuarios .users-table thead th,
.page-usuarios .roles-table thead th{
  background:transparent;
  border:0;
  padding:0 14px 2px;
}
.page-usuarios .users-table tbody tr,
.page-usuarios .roles-table tbody tr{
  background:#fff;
  box-shadow:var(--bento-shadow-soft);
}
.page-usuarios .users-table tbody td,
.page-usuarios .roles-table tbody td{
  background:#fff;
  border-top:1px solid var(--bento-line);
  border-bottom:1px solid var(--bento-line);
  padding:16px 14px;
}
.page-usuarios .users-table tbody td:first-child,
.page-usuarios .roles-table tbody td:first-child{border-left:1px solid var(--bento-line);border-radius:22px 0 0 22px}
.page-usuarios .users-table tbody td:last-child,
.page-usuarios .roles-table tbody td:last-child{border-right:1px solid var(--bento-line);border-radius:0 22px 22px 0}
.page-usuarios .users-table td input:not([type="checkbox"]),
.page-usuarios .users-table td select,
.page-usuarios .roles-table td input:not([type="checkbox"]),
.page-usuarios .roles-table td select{
  width:100%;
  min-width:120px;
  min-height:44px;
  background:#fbfdf9;
}
.page-usuarios .users-table td:nth-child(1) input{min-width:145px}
.page-usuarios .users-table td:nth-child(3) select{min-width:158px}
.page-usuarios .users-table td:nth-child(5) input{min-width:130px}
.page-usuarios .users-table td:nth-child(6) input{min-width:108px}
.page-usuarios .users-table td .pill{margin-top:10px;background:var(--bento-brand-soft);color:#556450}
.page-usuarios .users-table td.num,
.page-usuarios .roles-table td.num{white-space:nowrap}
.page-usuarios .users-table td.num form,
.page-usuarios .roles-table td.num form{display:flex;justify-content:flex-end;margin:0}
.page-usuarios .users-table td.num form+form{margin-top:10px}
.page-usuarios .users-table td.num button,
.page-usuarios .roles-table td.num button{min-width:154px;min-height:42px;border-radius:14px}
.page-usuarios .invite-existing button{min-width:182px}
.page-usuarios .roles-table td.center{min-width:48px}
.page-usuarios .roles-table td.center input[type="checkbox"]{display:block;margin-inline:auto}
.page-usuarios .legend{background:linear-gradient(180deg,#ffffff 0%, #f8fbf7 100%)}

/* auth / login */
body.auth-page main.wrap{width:min(calc(100% - 28px), 500px);padding-top:42px;padding-bottom:28px}
body.auth-page .auth-identity{text-align:center;margin-bottom:20px}
body.auth-page .auth-wordmark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:120px;
  min-height:54px;
  padding:0 22px;
  border-radius:18px;
  color:var(--bento-brand-deep);
  font-size:30px;
  font-weight:850;
  letter-spacing:-.06em;
}
body.auth-page .auth.card{
  border-radius:30px;
  padding:34px 34px 30px;
  background:linear-gradient(180deg,#ffffff 0%, #fbfef9 100%);
  box-shadow:var(--bento-shadow);
}
body.auth-page .auth.card h1{font-size:34px;letter-spacing:-.055em;margin-bottom:10px}
body.auth-page .auth.card .lead{font-size:15px;line-height:1.6;margin-bottom:26px}
body.auth-page .auth.card form{gap:16px}
body.auth-page .auth.card label{font-size:12px;font-weight:760;letter-spacing:.04em;text-transform:uppercase}
body.auth-page .auth.card input{min-height:54px;padding:0 16px;background:#fbfef9}
body.auth-page .auth.card button,
body.auth-page .auth-link-button{min-height:56px;border-radius:18px;margin-top:8px;padding-inline:18px}
body.auth-page .button-arrow{width:32px;height:32px;border-radius:999px;background:rgba(255,255,255,.16)}
body.auth-page .auth-note{
  margin-top:22px;
  padding:16px 18px;
  border:1px solid var(--bento-line);
  border-radius:18px;
  background:var(--bento-surface-soft);
  text-align:left;
}
body.auth-page .invited-user,
body.auth-page .auth-state{background:var(--bento-surface-soft);border:1px solid var(--bento-line);box-shadow:none}
body.auth-page .page-footer{background:transparent;box-shadow:none;border:0;color:#879281}

/* responsive */
@media (max-width:1100px){
  .page-usuarios .users-table table{min-width:1040px}
}
@media (max-width:980px){
  body.panel-page .top{margin:8px 10px 0}
  body.panel-page .top>.wrap{padding-top:10px;padding-bottom:10px}
}
@media (max-width:760px){
  .wrap{width:min(calc(100% - 20px), var(--max))}
  body.panel-page .tiles{grid-template-columns:1fr 1fr;gap:10px}
  body.panel-page .tile{min-height:106px;padding:16px}
  body.panel-page .tile b{font-size:24px}
  body.auth-page .auth.card{padding:26px 22px 22px;border-radius:24px}
  body.auth-page .auth.card h1{font-size:28px}
}
@media (max-width:640px){
  body.panel-page .filters{display:grid;grid-template-columns:1fr}
  body.panel-page .table{border-radius:20px}
  .page-usuarios .users-table table,
  .page-usuarios .roles-table table{min-width:860px}
  body.panel-page .workspace-bar{flex-direction:column;align-items:flex-start;gap:8px}
}
@media (max-width:480px){
  body.panel-page .top{margin:6px 8px 0;border-radius:18px}
  body.panel-page .tiles{grid-template-columns:1fr}
  body.panel-page .card{padding:18px;border-radius:22px}
  body.auth-page main.wrap{width:min(calc(100% - 20px), 500px);padding-top:24px}
  body.auth-page .auth-wordmark{min-width:108px;min-height:48px;font-size:28px}
  body.auth-page .auth.card{padding:22px 18px 20px;border-radius:22px}
  body.auth-page .auth.card h1{font-size:26px}
  body.auth-page .auth-note{padding:14px 15px}
}



/* ===== KUMA HEADER NEGATIVE LOGO v11 ===== */
body.panel-page .brand{
  padding:10px 14px 10px 12px;
  border-radius:18px;
  background:linear-gradient(180deg,#588537 0%, #406524 100%);
  color:#f6f1e7;
  box-shadow:0 10px 20px rgba(60,94,36,.18), inset 0 1px 0 rgba(255,255,255,.14);
}
body.panel-page .brand img{
  width:126px;
  filter:none;
}
body.panel-page .brand span{
  color:rgba(246,241,231,.9);
  border-left-color:rgba(246,241,231,.22);
}
body.panel-page .brand:hover{
  text-decoration:none;
  background:linear-gradient(180deg,#507a33 0%, #36541f 100%);
}
@media (max-width:480px){
  body.panel-page .brand{padding:9px 12px 9px 10px;border-radius:16px}
  body.panel-page .brand img{width:110px}
}



/* ===== KUMA USERS POLISH v12 ===== */
.page-usuarios h1 + .lead{
  max-width:1040px;
  margin-bottom:18px;
}
.page-usuarios h2{
  margin-top:30px;
  margin-bottom:10px;
}
.page-usuarios .muted.small{
  line-height:1.55;
}
.page-usuarios .users-table{
  padding:10px 10px 2px;
  border-radius:30px;
  background:linear-gradient(180deg,#f7fbf5 0%,#f2f7ef 100%);
  border:1px solid #dde8d8;
}
.page-usuarios .users-table table{
  min-width:1160px;
  border-spacing:0 16px;
}
.page-usuarios .users-table thead th{
  padding:0 16px 8px;
  color:#81907f;
  font-size:10.5px;
  letter-spacing:.14em;
}
.page-usuarios .users-table tbody tr{
  filter:none;
}
.page-usuarios .users-table tbody td{
  background:#fff;
  padding:16px 14px;
  border-top:1px solid #e5eee1;
  border-bottom:1px solid #e5eee1;
  vertical-align:middle;
}
.page-usuarios .users-table tbody td:first-child{
  border-left:1px solid #e5eee1;
  border-radius:24px 0 0 24px;
  padding-left:16px;
}
.page-usuarios .users-table tbody td:last-child{
  border-right:1px solid #e5eee1;
  border-radius:0 24px 24px 0;
  padding-right:16px;
}
.page-usuarios .users-table td:nth-child(1){
  width:180px;
}
.page-usuarios .users-table td:nth-child(2){
  width:160px;
}
.page-usuarios .users-table td:nth-child(3){
  width:190px;
}
.page-usuarios .users-table td:nth-child(4){
  width:120px;
}
.page-usuarios .users-table td:nth-child(5){
  width:280px;
}
.page-usuarios .users-table td:nth-child(6){
  width:130px;
}
.page-usuarios .users-table td:nth-child(7){
  width:190px;
}
.page-usuarios .users-table td input:not([type="checkbox"]),
.page-usuarios .users-table td select{
  min-height:46px;
  border-radius:16px;
  background:#fcfefb;
  border:1px solid #dfe9da;
  padding-inline:15px;
}
.page-usuarios .users-table td input::placeholder{color:#9aa69a}
.page-usuarios .users-table td .pill{
  display:inline-flex;
  margin-top:10px;
  background:#edf6e8;
  color:#557145;
  font-weight:700;
  padding:5px 9px;
}
.page-usuarios .users-table .check{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:0;
  font-size:14px;
  font-weight:700;
  color:#43543d;
}
.page-usuarios .users-table .check input[type="checkbox"]{
  width:18px;
  height:18px;
}
.page-usuarios .users-table td.num{
  white-space:normal;
}
.page-usuarios .users-table td.num form,
.page-usuarios .users-table td.num .invite-existing{
  display:block;
  width:100%;
}
.page-usuarios .users-table td.num form+form{
  margin-top:10px;
}
.page-usuarios .users-table td.num button{
  width:100%;
  min-width:0;
  min-height:42px;
  border-radius:15px;
  font-size:14px;
}
.page-usuarios .users-table td.num form:first-child button{
  background:#fff;
  color:#3f4e3a;
  border:1px solid #dfe8da;
  box-shadow:none;
}
.page-usuarios .users-table td.num form:first-child button:hover{
  background:#f8fbf7;
}
.page-usuarios .users-table .invite-existing button{
  background:linear-gradient(180deg,#f2f9ee 0%, #e6f3df 100%);
  color:#456329;
  border:1px solid #d3e4c9;
  box-shadow:none;
}
.page-usuarios .users-table .invite-existing button:hover{
  background:linear-gradient(180deg,#e8f4e2 0%, #deefd3 100%);
}
.page-usuarios .users-table tr:last-child td{
  background:linear-gradient(180deg,#fbfef9 0%, #f4faf0 100%);
}
.page-usuarios .users-table tr:last-child td.num form button{
  background:linear-gradient(180deg,#65953f 0%, #4d7a33 100%);
  color:#fff;
  border:0;
  box-shadow:0 12px 24px rgba(77,122,51,.18);
}
.page-usuarios .users-table tr:last-child td.num form button:hover{
  background:linear-gradient(180deg,#578238 0%, #41672a 100%);
}
.page-usuarios .users-table tr:last-child td:nth-child(4){
  color:#667662;
  font-weight:600;
}
.page-usuarios .users-table tr:last-child td:nth-child(5){
  position:relative;
}
.page-usuarios .users-table tr:last-child td:nth-child(5) .check{
  margin-top:10px;
  min-height:auto;
  padding:10px 12px;
  border:1px solid #dfe8da;
  border-radius:14px;
  background:#fff;
}
.page-usuarios .users-table tbody tr:hover td{
  background:#ffffff;
}

.page-usuarios .roles-table{
  margin-top:8px;
}
.page-usuarios .roles-table table{
  border-spacing:0 12px;
}
.page-usuarios .roles-table tbody td{
  padding-top:14px;
  padding-bottom:14px;
}
.page-usuarios .roles-table td.num button{
  min-width:120px;
}

@media (max-width:880px){
  .page-usuarios .users-table table{min-width:1080px}
}



/* ===== KUMA USERS COMPACT v13 ===== */
.page-usuarios h1 + .lead{
  margin-bottom:14px;
  max-width:980px;
}
.page-usuarios .users-table{
  padding:8px 8px 0;
  border-radius:26px;
}
.page-usuarios .users-table table{
  min-width:1120px;
  border-spacing:0 10px;
}
.page-usuarios .users-table thead th{
  padding:0 16px 6px;
  font-size:10px;
  letter-spacing:.12em;
}
.page-usuarios .users-table tbody td{
  padding:10px 12px;
}
.page-usuarios .users-table tbody td:first-child{
  border-radius:20px 0 0 20px;
  padding-left:16px;
}
.page-usuarios .users-table tbody td:last-child{
  border-radius:0 20px 20px 0;
  padding-right:16px;
}
.page-usuarios .users-table td:nth-child(1){width:170px}
.page-usuarios .users-table td:nth-child(2){width:150px}
.page-usuarios .users-table td:nth-child(3){width:180px}
.page-usuarios .users-table td:nth-child(4){width:110px}
.page-usuarios .users-table td:nth-child(5){width:260px}
.page-usuarios .users-table td:nth-child(6){width:120px}
.page-usuarios .users-table td:nth-child(7){width:170px}
.page-usuarios .users-table td input:not([type="checkbox"]),
.page-usuarios .users-table td select{
  min-height:38px;
  border-radius:13px;
  padding-inline:13px;
  font-size:14px;
}
.page-usuarios .users-table td .pill{
  margin-top:8px;
  padding:4px 8px;
  font-size:11px;
}
.page-usuarios .users-table .check{
  gap:8px;
  min-height:38px;
  font-size:13px;
}
.page-usuarios .users-table .check input[type="checkbox"]{
  width:16px;
  height:16px;
}
.page-usuarios .users-table td.num form+form{
  margin-top:8px;
}
.page-usuarios .users-table td.num button{
  min-height:38px;
  border-radius:13px;
  font-size:13px;
  padding:8px 12px;
}
.page-usuarios .users-table .invite-existing button{
  font-weight:700;
}
.page-usuarios .users-table tr:last-child td:nth-child(4){
  font-size:13px;
  line-height:1.35;
}
.page-usuarios .users-table tr:last-child td:nth-child(5) .check{
  margin-top:8px;
  padding:8px 10px;
  border-radius:12px;
}
.page-usuarios .users-table tr:last-child td:nth-child(5) .check span,
.page-usuarios .users-table tr:last-child td:nth-child(5) .check{
  font-size:13px;
}
.page-usuarios .roles-table table{
  border-spacing:0 10px;
}
.page-usuarios .roles-table tbody td{
  padding:10px 12px;
}
.page-usuarios .roles-table td input:not([type="checkbox"]){
  min-height:38px;
  border-radius:13px;
}
.page-usuarios .roles-table td.num button{
  min-height:38px;
  border-radius:13px;
  font-size:13px;
}
.page-usuarios .legend p{
  margin:6px 0;
  font-size:13px;
  line-height:1.5;
}
@media (max-width:880px){
  .page-usuarios .users-table table{min-width:1020px}
}
