:root{
  --ink:#1f1630;
  --muted:#746a86;
  --line:#ece6f4;
  --card:#ffffff;
  --bg1:#f7f5fb;
  --bg2:#f1eef8;
  --accent:#7c3aed;
  --accent2:#b88cff;
  --accent3:#4f46e5;
  --info-bg:#f5f3ff;
  --info-line:#ddd6fe;
  --info-ink:#4c1d95;
  --ok-bg:#ecfdf3;
  --ok-line:#bbf7d0;
  --ok-ink:#166534;
  --warn-bg:#fff8ea;
  --warn-line:#f8c98e;
  --warn-ink:#b45309;
  --danger-bg:#fff1f3;
  --danger-line:#fecdd3;
  --danger-ink:#be123c;
  --shadow:0 18px 38px rgba(36,18,61,.08);
  --radius:22px;
}

*, *::before, *::after{
  box-sizing:border-box;
}

body:not(.home){
  margin:0;
  color:var(--ink) !important;
  font-family:"Source Sans 3","Helvetica Neue",sans-serif !important;
  font-size:16px !important;
  background:
    radial-gradient(1100px 420px at 0% 0%, rgba(168,85,247,.10) 0%, transparent 65%),
    radial-gradient(1100px 420px at 100% 0%, rgba(124,58,237,.06) 0%, transparent 68%),
    linear-gradient(180deg, var(--bg1), var(--bg2)) !important;
}

body:not(.home) a{color:inherit;text-decoration:none}
body:not(.home) a:hover{text-decoration:underline}
body:not(.home) a.link{color:#2563eb;text-decoration:none}
body:not(.home) a.link:hover{text-decoration:underline}

body:not(.home) .wrap,
body:not(.home) .card{
  background:var(--card) !important;
  border:1px solid rgba(236,230,244,.95) !important;
  border-radius:var(--radius) !important;
  box-shadow:var(--shadow) !important;
}

body:not(.home) .wrap{
  max-width:1200px;
  margin:22px auto 32px auto;
  padding:0 18px;
}

body:not(.home) .top{
  background:rgba(255,255,255,.8) !important;
  color:var(--ink) !important;
  border:1px solid var(--line) !important;
  border-radius:18px !important;
  box-shadow:var(--shadow) !important;
  margin:16px 16px 0 16px;
  padding:12px 16px !important;
  backdrop-filter:blur(8px);
}

body:not(.home) .top a{color:var(--ink) !important}
body:not(.home) .top .brand,
body:not(.home) .top strong{color:var(--ink) !important}

body:not(.home) .pill{
  border:1px solid var(--line) !important;
  background:#fff !important;
  color:var(--muted) !important;
}

body:not(.home) .card{
  padding:20px !important;
  margin-bottom:18px;
}

body:not(.home) h1{font-size:20px}
body:not(.home) h2{font-size:19px}
body:not(.home) h3{font-size:17px}

.insights{
  max-width:1200px;
  margin:16px auto 0 auto;
  padding:0 16px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:14px;
}
@media (max-width:980px){ .insights{grid-template-columns:1fr;} }

.insight-card{
  background:var(--card);
  border:1px solid rgba(236,230,244,.95);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.insight-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.insight-card .tag{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
}
.insight-card h4{margin:2px 0 0 0; font-size:16px}
.insight-card .muted{color:var(--muted); font-size:12px}

.bar-chart{
  display:grid;
  grid-template-columns:repeat(12, minmax(0,1fr));
  gap:12px;
  margin-top:16px;
  height:190px;
  align-items:end;
  padding:10px 6px 28px;
  border-radius:14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.9)),
    repeating-linear-gradient(
      to top,
      rgba(15,26,42,.06) 0,
      rgba(15,26,42,.06) 1px,
      transparent 1px,
      transparent 25%
    );
}
.bar{
  position:relative;
  height:100%;
  display:flex;
  align-items:flex-end;
}
.bar .bar-val{
  position:absolute;
  top:-24px;
  left:50%;
  transform:translateX(-50%);
  font-size:11px;
  font-weight:700;
  color:var(--ink);
  background:#fff;
  border:1px solid var(--line);
  padding:2px 7px;
  border-radius:999px;
  box-shadow:0 6px 12px rgba(15,26,42,.08);
}
.bar span{
  width:100%;
  border-radius:14px 14px 10px 10px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.3), transparent 45%),
    linear-gradient(180deg, #3e5f90, #1f3a5f);
  box-shadow:0 10px 22px rgba(31,58,95,.28);
  border:1px solid rgba(255,255,255,.25);
}
.bar em{
  position:absolute;
  bottom:-26px;
  left:50%;
  transform:translateX(-50%);
  font-size:11px;
  font-weight:700;
  color:#5b6472;
  text-transform:uppercase;
  letter-spacing:.06em;
  background:#f4f6fb;
  border:1px solid var(--line);
  padding:2px 6px;
  border-radius:8px;
}
.bar.is-zero span{
  opacity:.28;
  border-style:dashed;
}

.rank{
  list-style:none;
  padding:0;
  margin:12px 0 0 0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.rank li{
  display:grid;
  grid-template-columns:22px 1fr auto;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border:1px solid rgba(236,230,244,.95);
  border-radius:14px;
  background:#fff;
}
.rank .pos{
  width:22px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#f5f3ff;
  color:var(--accent);
  font-weight:700;
  font-size:12px;
}
.rank .name{font-size:14px}
.rank .val{
  font-size:13px;
  color:var(--muted);
}
.empty{
  color:var(--muted);
  font-size:12px;
}

body:not(.home) .btn,
body:not(.home) a.btn,
body:not(.home) button.btn{
  background:linear-gradient(135deg,var(--accent),#a855f7) !important;
  color:#fff !important;
  border-radius:14px !important;
  border:0 !important;
  box-shadow:0 12px 24px rgba(124,58,237,.20);
}
body:not(.home) .btnLight{
  background:#fff !important;
  color:var(--ink) !important;
  border:1px solid rgba(236,230,244,.95) !important;
  border-radius:14px !important;
  box-shadow:0 8px 18px rgba(36,18,61,.04);
}
body:not(.home) label.small{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
body:not(.home) input:not([type="checkbox"]):not([type="radio"]),
body:not(.home) select,
body:not(.home) textarea{
  width:100%;
  min-height:44px;
  padding:11px 13px;
  border:1px solid rgba(236,230,244,.95);
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
body:not(.home) textarea{
  min-height:110px;
  resize:vertical;
}
body:not(.home) input:focus,
body:not(.home) select:focus,
body:not(.home) textarea:focus{
  outline:none;
  border-color:var(--accent2);
  box-shadow:0 0 0 4px rgba(184,140,255,.18);
  background:#fff;
}
body:not(.home) .toolbar-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
body:not(.home) .status-note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-size:13px;
}
body:not(.home) .status-note.ok{
  border-color:var(--ok-line);
  background:var(--ok-bg);
  color:var(--ok-ink);
}
body:not(.home) .status-note.err{
  border-color:var(--danger-line);
  background:var(--danger-bg);
  color:var(--danger-ink);
}
body:not(.home) .choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  max-height:190px;
  overflow:auto;
  background:#fff;
}
body:not(.home) .choice-option{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8fafc;
  color:var(--ink);
  font-weight:600;
}
body:not(.home) .choice-option input{
  width:auto;
  min-height:0;
  padding:0;
}
body:not(.home) .inline-form{
  display:inline;
}
@media (max-width:700px){
  body:not(.home) .choice-grid{
    grid-template-columns:1fr;
  }
}

body:not(.home) table{
  width:100%;
  border-collapse:collapse;
}
body:not(.home) .tableWrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
body:not(.home) table{
  min-width:640px;
}
body:not(.home) th{
  background:#faf8fd !important;
  color:#625772;
}
body:not(.home) th,
body:not(.home) td{
  padding:10px !important;
  border-bottom:1px solid var(--line) !important;
}

body:not(.home) .small{color:var(--muted) !important}
body:not(.home) .muted{color:var(--muted) !important}

.card.card-narrow{
  max-width:820px;
  margin:18px auto;
}
.card.card-medium{
  max-width:1100px;
  margin:18px auto;
}
.card.card-small{
  max-width:650px;
  margin:18px auto;
}
.card.card-tiny{
  max-width:600px;
  margin:32px auto;
}

body:not(.home) form.form-stack label{
  display:block;
  margin-top:12px;
  font-weight:700;
  font-size:13px;
  color:var(--ink);
}
body:not(.home) form.form-stack input:not([type="checkbox"]):not([type="radio"]),
body:not(.home) form.form-stack select,
body:not(.home) form.form-stack textarea{
  width:100%;
  padding:10px 12px;
  margin-top:6px;
  border-radius:10px;
  border:1px solid var(--line);
  font-size:13px;
  background:#fff;
}
body:not(.home) form.form-stack textarea{resize:vertical}

body:not(.home) input:not([type="checkbox"]):not([type="radio"]),
body:not(.home) select,
body:not(.home) textarea{
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 12px;
  font-size:13px;
  background:#fff;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width:720px){ .form-row{grid-template-columns:1fr;} }

.btnPrimary{
  background:var(--accent);
  color:#fff;
  border:0;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
}
.btnPrimary:hover{filter:brightness(0.95)}
.btnDanger{
  background:#dc2626;
  color:#fff;
  border:0;
  padding:8px 12px;
  border-radius:10px;
  cursor:pointer;
}
.btnDanger:hover{background:#b91c1c}

.msg{
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  border:1px solid var(--line);
  background:#f8fafc;
}
.msg.ok{border-color:#a7f3d0;background:#ecfdf5;color:#065f46}
.msg.err{border-color:#fecaca;background:#fef2f2;color:#7f1d1d}
.ok{
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  color:#065f46;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
}
.error,
.err{
  background:#fee2e2;
  border:1px solid #fecaca;
  color:#7f1d1d;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
}

.responsive-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
@media (max-width:720px){
  .responsive-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .responsive-actions > *{
    width:100%;
  }
  .responsive-actions label{
    width:100%;
  }
  .responsive-actions input,
  .responsive-actions select,
  .responsive-actions textarea,
  .responsive-actions button{
    width:100%;
  }
}

/* Tablet-first adjustments */
body.is-tablet{
  font-size:17px !important;
}
body.is-tablet .wrap{
  max-width:1280px;
  padding:0 22px !important;
}
body.is-tablet .card{
  border-radius:20px !important;
}
body.is-tablet .btn,
body.is-tablet button,
body.is-tablet a.btn,
body.is-tablet .btnPrimary,
body.is-tablet .btnLight,
body.is-tablet .btnDanger{
  min-height:46px;
  padding:12px 16px !important;
  font-size:15px !important;
  border-radius:12px !important;
}
body.is-tablet input:not([type="checkbox"]):not([type="radio"]),
body.is-tablet select,
body.is-tablet textarea{
  min-height:46px;
  font-size:16px !important;
}
body.is-tablet .topbar-shared{
  gap:20px;
}
body.is-tablet .topbar-shared .nav a{
  padding:9px 10px;
  border-radius:10px;
}
body.is-tablet .tableWrap{
  border-radius:14px;
}
body.is-tablet th,
body.is-tablet td{
  padding:12px !important;
  font-size:14px;
}

@media (min-width:768px) and (max-width:1366px){
  .insights{
    grid-template-columns:1fr !important;
  }
  body:not(.home) .wrap{
    margin-top:16px;
  }
}

.topbar-shared{
  max-width:1200px;
  margin:18px auto 0 auto;
  padding:16px 18px 18px;
  background:
    radial-gradient(420px 140px at 0% 0%, rgba(196,154,58,.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(247,250,253,.95));
  border:1px solid rgba(223,229,236,.95);
  border-radius:28px;
  box-shadow:0 22px 48px rgba(11,31,51,.10);
  backdrop-filter:blur(10px);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  grid-template-areas:
    "left user menu"
    "nav nav nav";
  align-items:center;
  gap:16px 14px;
  position:relative;
  z-index:220;
  overflow:visible;
  isolation:isolate;
}
.topbar-shared .left{
  grid-area:left;
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.topbar-shared .back-btn{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  font-weight:700;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(11,31,51,.05);
}
.topbar-shared .back-btn:hover{
  background:#f8fafc;
  text-decoration:none;
}
.topbar-shared .brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  font-weight:700;
}
.topbar-shared .brand-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.topbar-shared .brand-text > span{
  font-size:18px;
  font-weight:800;
  letter-spacing:.01em;
  line-height:1.05;
}
.topbar-shared .topbar-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  border-radius:18px;
  border:1px solid rgba(223,229,236,.92);
  background:#fff;
  box-shadow:0 10px 22px rgba(11,31,51,.06);
  flex:0 0 auto;
}
.topbar-shared .topbar-logo img{
  width:42px;
  height:auto;
  display:block;
  object-fit:contain;
}
.topbar-shared .brand small{
  color:var(--muted);
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.topbar-shared .nav{
  grid-area:nav;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  font-size:13px;
  color:var(--muted);
  width:100%;
  justify-content:flex-start;
  align-items:center;
  position:relative;
  padding:14px 12px 0;
  border-top:1px solid rgba(223,229,236,.9);
  margin-top:4px;
  overflow:visible;
  z-index:230;
}
.menu-toggle{
  grid-area:menu;
  display:none;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  font-size:0;
  position:relative;
  box-shadow:0 8px 18px rgba(11,31,51,.05);
}
.menu-toggle::before{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  top:12px;
  height:2px;
  background:var(--ink);
  box-shadow:0 7px 0 var(--ink), 0 14px 0 var(--ink);
}
.topbar-shared .nav a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 15px;
  border-radius:14px;
  border:1px solid transparent;
  white-space:nowrap;
  font-weight:700;
}
.topbar-shared .nav a.is-main{
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border-color:rgba(223,229,236,.95);
  color:var(--ink);
  box-shadow:0 8px 18px rgba(11,31,51,.05);
}
.topbar-shared .nav a.is-main:hover{
  border-color:var(--accent2);
  background:#fff;
  text-decoration:none;
  transform:translateY(-1px);
}
.topbar-shared .nav a:hover{
  border-color:var(--line);
  background:#fff;
  text-decoration:none;
  transform:translateY(-1px);
}
.topbar-shared .nav .nav-group{
  position:relative;
  align-self:stretch;
  z-index:240;
}
.topbar-shared .nav .nav-group summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:42px;
  padding:8px 15px;
  border-radius:14px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  color:var(--ink);
  font-weight:700;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(11,31,51,.05);
}
.topbar-shared .nav .nav-group summary::-webkit-details-marker{
  display:none;
}
.topbar-shared .nav .nav-group summary::after{
  content:"";
  width:8px;
  height:8px;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:rotate(45deg) translateY(-1px);
  transition:transform .18s ease;
}
.topbar-shared .nav .nav-group[open] summary{
  background:#fff;
  border-color:var(--accent2);
  box-shadow:0 14px 28px rgba(11,31,51,.10);
}
.topbar-shared .nav .nav-group[open] summary::after{
  transform:rotate(-135deg) translate(-1px, 1px);
}
.topbar-shared .nav .nav-links{
  position:absolute;
  top:calc(100% + 12px);
  left:0;
  transform:none;
  min-width:240px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  box-shadow:0 26px 48px rgba(11,31,51,.14);
  display:grid;
  gap:10px;
  z-index:320;
}
.topbar-shared .nav .nav-group--mega{
  margin-left:auto;
}
.topbar-shared .nav .nav-links--mega{
  min-width:560px;
  max-width:min(720px, calc(100vw - 64px));
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 16px;
  left:auto;
  right:0;
}

@media (min-width:1025px){
  .topbar-shared{
    overflow:visible;
  }
  .topbar-shared .nav{
    position:static;
    overflow:visible;
  }
  .topbar-shared .nav .nav-group--mega{
    position:static;
    margin-left:auto;
  }
  .topbar-shared .nav .nav-group--mega .nav-links--mega{
    position:absolute;
    top:calc(100% - 4px);
    right:18px;
    left:auto;
    width:min(720px, calc(100vw - 64px));
    min-width:620px;
    z-index:500;
  }
}
.topbar-shared .nav .nav-section{
  display:grid;
  gap:8px;
  align-content:start;
  padding:10px;
  border-radius:16px;
  background:linear-gradient(180deg,#f9fbfd,#ffffff);
  border:1px solid rgba(223,229,236,.7);
}
.topbar-shared .nav .nav-section strong{
  display:block;
  padding:0 8px 4px;
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.topbar-shared .nav .nav-links a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:10px 12px;
  border-radius:12px;
  color:var(--ink);
  border:1px solid transparent;
  background:rgba(255,255,255,.72);
}
.topbar-shared .nav .nav-links a:hover{
  background:#f7fafc;
  border-color:var(--line);
  transform:translateY(-1px);
}
.topbar-shared .user{
  grid-area:user;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  text-align:right;
  width:auto;
}
.topbar-shared .pill{
  padding:7px 11px;
  border-radius:12px;
  font-size:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  box-shadow:0 6px 14px rgba(11,31,51,.04);
}
.topbar-shared .logout{
  padding:9px 14px;
  border-radius:12px;
  background:var(--accent);
  color:#fff;
  font-size:12px;
  font-weight:800;
}
.topbar-shared .logout:hover{text-decoration:none;opacity:.92}

@media (max-width:1024px){
  body:not(.home) .wrap{padding:0 14px}
  body:not(.home) .card{padding:16px !important}
  .topbar-shared{margin:12px 12px 0 12px}
  .topbar-shared .topbar-logo{width:50px;height:50px}
  .topbar-shared .topbar-logo img{width:38px}
}

@media (max-width:1024px){
  body:not(.home) .wrap{margin:16px auto 24px auto; padding:0 12px}
  body:not(.home) .card{padding:14px !important}
  body:not(.home) table{
    min-width:520px;
    display:block;
    overflow-x:auto;
    white-space:nowrap;
    -webkit-overflow-scrolling:touch;
  }
  .topbar-shared{
    display:grid;
    grid-template-columns:1fr auto;
    grid-template-areas:
      "left menu"
      "user user"
      "nav nav";
    align-items:center;
    gap:12px;
  }
  .topbar-shared .left{grid-area:left; width:100%}
  .topbar-shared .brand{gap:10px}
  .topbar-shared .user{grid-area:user; justify-content:center; text-align:center}
  .menu-toggle{grid-area:menu; display:inline-flex; justify-self:end}
  .topbar-shared .nav{
    display:none !important;
    flex-direction:column;
    gap:6px;
    width:100%;
    justify-content:flex-start;
    align-items:stretch;
    padding-top:0;
    border-top:0;
  }
  .topbar-shared .nav.is-open{display:flex !important}
  .topbar-shared .nav a,
  .topbar-shared .nav .nav-group summary{
    width:100%;
    justify-content:space-between;
    padding:11px 13px;
    border-radius:14px;
  }
  .topbar-shared .nav .nav-group{
    width:100%;
  }
  .topbar-shared .nav .nav-links{
    position:static;
    min-width:0;
    margin-top:8px;
    box-shadow:none;
    border-radius:16px;
    background:#f8fafc;
  }
  .topbar-shared .nav .nav-group--mega{
    margin-left:0;
  }
  .topbar-shared .nav .nav-links--mega{
    min-width:0;
    max-width:none;
    grid-template-columns:1fr;
    gap:8px;
  }
  .topbar-shared .user{justify-content:flex-start; text-align:left}
}

@media (max-width:600px){
  body:not(.home) table{min-width:480px}
  .topbar-shared{padding:14px 14px 16px}
  .topbar-shared .brand-text > span{font-size:16px}
  .topbar-shared .nav a{padding:5px 8px}
}

/* Topbar especial para operador en tablet */
.topbar-tablet{
  max-width:1200px;
  margin:14px auto 0 auto;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow:var(--shadow);
  display:grid;
  gap:12px;
}
.topbar-tablet__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.topbar-tablet__brand{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.topbar-tablet__brand .brand-title{
  font-size:16px;
  font-weight:800;
  letter-spacing:.02em;
}
.topbar-tablet__brand small{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.topbar-tablet__quick{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:8px;
}
.topbar-tablet__quick a{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  text-align:center;
  padding:8px;
}
.topbar-tablet__quick a.is-primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.topbar-tablet__quick a:hover{
  text-decoration:none;
  transform:translateY(-1px);
}
.topbar-tablet__user{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.topbar-tablet .pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  font-size:12px;
}
.topbar-tablet .logout{
  padding:9px 12px;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
}
.topbar-tablet .logout:hover{
  text-decoration:none;
  opacity:.92;
}

@media (max-width:980px){
  .topbar-tablet{
    margin:12px 12px 0 12px;
  }
  .topbar-tablet__quick{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width:560px){
  .topbar-tablet__quick{
    grid-template-columns:1fr;
  }
}
