.portal-surface{
  --portal-ink: var(--ink);
  --portal-muted: var(--muted);
  --portal-line: var(--line);
  --portal-blue: var(--blue);
  --portal-blue-soft: var(--tint);
  --portal-plum: var(--blue);
  --portal-warm: var(--warn);
  --portal-warm-soft: var(--warn-bg);
  --portal-bad: var(--bad);
  --portal-bad-soft: var(--bad-bg);
  --portal-ok: var(--ok);
  --portal-ok-soft: var(--ok-bg);
  --portal-paper: var(--card);
  --portal-bg: var(--bg);
}.portal-surface *{
  box-sizing: border-box;
}.portal-surface{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: clip;
}.portal-surface .portal-topbar{
  height: var(--top);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--portal-line);
  background: #f8faffe6;
  backdrop-filter: saturate(180%) blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}.portal-surface .portal-brand{
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--portal-ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -0.03em;
  text-decoration: none;
}.portal-surface .portal-mark{
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 24%;
  background: var(--portal-ink);
  color: #fff;
  font: 700 13px/1 var(--sans);
}.portal-surface .portal-brand .quiet{
  font-family: var(--sans);
  font-weight: 400;
  color: var(--portal-muted);
}.portal-surface .topbar-spacer{
  flex: 1;
}.portal-surface .portal-main{
  width: 100%;
  min-width: 0;
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px clamp(16px, 2.4vw, 32px) 72px;
}.portal-surface .portal-heading,
.portal-surface .workspace,
.portal-surface .list-toolbar,
.portal-surface .list-controls,
.portal-surface .record-search{
  min-width: 0;
  max-width: 100%;
}.portal-surface .portal-heading{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}.portal-surface .eyebrow{
  margin: 0 0 5px;
  font: 600 11.5px/1 var(--sans);
  letter-spacing: 0.09em;
  color: var(--portal-blue);
}.portal-surface h1,
.portal-surface h2,
.portal-surface h3{
  font-family: var(--display);
  margin: 0;
}.portal-surface h1{
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}.portal-surface .lede{
  margin: 4px 0 0;
  color: var(--portal-muted);
  font-size: 13.5px;
  max-width: 64ch;
}.portal-surface .safety-note{
  max-width: 330px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--sh-hair);
  padding: 11px 14px;
  display: grid;
  gap: 5px;
}.portal-surface .safety-note strong{
  font-size: 13px;
}.portal-surface .safety-note span{
  font-size: 12px;
  line-height: 1.5;
  color: var(--portal-muted);
}.portal-surface .notice{
  min-height: 18px;
  margin: 0 0 10px;
  color: var(--portal-muted);
  font-size: 12px;
}.portal-surface .notice.error{
  color: var(--portal-bad);
}.portal-surface .pulse{
  display: grid;
  grid-template-columns: 1.25fr repeat(6, 1fr);
  gap: 14px;
  background: transparent;
  color: var(--ink);
  margin-bottom: 16px;
}.portal-surface .pulse-title,
.portal-surface .pulse-item{
  min-height: 84px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--card);
  box-shadow: var(--sh-card);
  color: inherit;
  text-align: left;
}.portal-surface .pulse-title span{
  font: 800 14px var(--display);
}.portal-surface .pulse-title small{
  margin-top: 6px;
  color: var(--faint);
}.portal-surface .pulse-item{
  cursor: pointer;
}.portal-surface .pulse-item:hover,
.portal-surface .pulse-item:focus-visible{
  background: #fafcff;
}.portal-surface .pulse-item b{
  font: 800 30px/1.05 var(--display);
  letter-spacing: -0.035em;
}.portal-surface .pulse-item span{
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
}.portal-surface .pulse-item.danger b{
  color: var(--bad);
}.portal-surface .pulse-item.warm b{
  color: var(--warn);
}.portal-surface .pulse-item.passive{
  cursor: default;
}.portal-surface .workspace{
  background: var(--portal-paper);
  border: 1px solid var(--portal-line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  overflow: hidden;
}.portal-surface .section-tabs{
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--portal-line);
  overflow: auto;
}.portal-surface .section-tabs button{
  border: 0;
  background: transparent;
  color: var(--portal-muted);
  font: 600 12.5px var(--sans);
  padding: 7px 12px;
  border-radius: 99px;
  white-space: nowrap;
  cursor: pointer;
}.portal-surface .section-tabs button[aria-current="page"]{
  background: var(--tint);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px #dbe5fb;
}.portal-surface .section-tabs button:focus-visible{
  outline: 2px solid var(--portal-blue);
  outline-offset: 1px;
}.portal-surface .list-toolbar{
  min-height: 78px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--portal-line);
}.portal-surface .list-toolbar h2{
  font-size: 19px;
}.portal-surface .list-toolbar p{
  margin: 4px 0 0;
  color: var(--portal-muted);
  font-size: 12px;
}.portal-surface .list-controls{
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
}.portal-surface .record-search{
  display: grid;
  gap: 6px;
}.portal-surface .record-search > label{
  color: var(--portal-muted);
  font-size: 11px;
}.portal-surface .record-search > div{
  display: flex;
  align-items: center;
  gap: 6px;
}.portal-surface .record-search input{
  width: min(300px, 30vw);
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
  font: 13px var(--sans);
}.portal-surface .record-search input:focus-visible,
.portal-surface .filter select:focus-visible{
  outline: 2px solid var(--portal-blue);
  outline-offset: 1px;
}.portal-surface .record-search .btn{
  height: 36px;
}.portal-surface .action-guidance{
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: var(--portal-bg);
  color: var(--portal-muted);
  font-size: 11px;
  line-height: 1.5;
}.portal-surface .filter{
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--portal-muted);
  font-size: 11px;
}.portal-surface .filter select{
  height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
}.portal-surface .record-list{
  min-height: 240px;
}.portal-surface .record{
  width: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(
      3,
      minmax(110px, 0.75fr)
    ) 28px;
  gap: 18px;
  align-items: center;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: #fff;
  color: var(--portal-ink);
  text-align: left;
  cursor: pointer;
}.portal-surface .record:hover{
  background: #fafcff;
}.portal-surface .record:focus-visible{
  outline: 2px solid var(--portal-blue);
  outline-offset: -2px;
}.portal-surface .record-primary{
  min-width: 0;
}.portal-surface .record-primary strong{
  font: 700 13.5px var(--display);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}.portal-surface .record-primary small,
.portal-surface .datum small{
  display: block;
  color: var(--portal-muted);
  font-size: 11.5px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}.portal-surface .datum b{
  display: block;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}.portal-surface .chevron{
  font-size: 18px;
  color: var(--faint);
}.portal-surface .pill{
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid #e2e8f4;
  background: #eef2fa;
  color: var(--muted);
  font: 600 11.5px var(--sans);
}.portal-surface .pill.active,
.portal-surface .pill.paid,
.portal-surface .pill.claimed,
.portal-surface .pill.delivered,
.portal-surface .pill.completed{
  background: var(--portal-ok-soft);
  color: var(--portal-ok);
  border-color: #c9e9d9;
}.portal-surface .pill.failed,
.portal-surface .pill.bounced,
.portal-surface .pill.frozen,
.portal-surface .pill.rejected{
  background: var(--portal-bad-soft);
  color: var(--portal-bad);
  border-color: #f4d3d0;
}.portal-surface .pill.review,
.portal-surface .pill.hold,
.portal-surface .pill.pending,
.portal-surface .pill.open{
  background: var(--portal-warm-soft);
  color: var(--portal-warm);
  border-color: #f0e0bf;
}.portal-surface .empty{
  padding: 64px 22px;
  text-align: center;
  color: var(--portal-muted);
  font-size: 13px;
}.portal-surface .pager{
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}.portal-surface .pager span{
  font-size: 11px;
  color: var(--portal-muted);
}.portal-surface button:disabled{
  cursor: not-allowed;
  opacity: 0.45;
}.portal-surface .scope-note{
  margin: 18px 3px 0;
  max-width: 105ch;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--portal-muted);
}.portal-surface .drawer-scrim{
  position: fixed;
  inset: 0;
  background: #05041433;
  backdrop-filter: blur(2px);
  z-index: 70;
}.portal-surface .portal-drawer{
  position: fixed;
  z-index: 75;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100dvh;
  background: #fff;
  border-left: 1px solid var(--portal-line);
  box-shadow: var(--sh-float);
  overflow: auto;
  padding-bottom: 40px;
}.portal-surface .drawer-head{
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 18px 14px 22px;
  background: #fff;
  border-bottom: 1px solid var(--portal-line);
}.portal-surface .drawer-head h2{
  font-size: 19px;
  letter-spacing: -0.028em;
}.portal-surface .drawer-body{
  padding: 18px 22px 40px;
}.portal-surface .detail-grid{
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 11px 18px;
}.portal-surface .detail-grid dt{
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}.portal-surface .detail-grid dd{
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  overflow-wrap: anywhere;
}.portal-surface .detail-section{
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--portal-line);
}.portal-surface .detail-section h3{
  font: 600 12px var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 11px;
}.portal-surface .mini-list{
  display: grid;
  gap: 8px;
}.portal-surface .mini-row{
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 12px;
  display: grid;
  gap: 4px;
}.portal-surface .mini-row strong{
  font-size: 13.5px;
}.portal-surface .message{
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--portal-bg);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}.portal-surface .message.support{
  background: var(--portal-blue-soft);
}.portal-surface .message small{
  display: block;
  margin-top: 8px;
  color: var(--portal-muted);
}.portal-surface .drawer-actions{
  padding: 17px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}.portal-surface .drawer-actions:empty{
  display: none;
}.portal-surface .btn-danger{
  color: var(--portal-bad);
  border-color: #f0cfcc;
  background: #fff;
}.portal-surface .confirm-box,
.portal-surface .stepup-box,
.portal-surface .uncertain{
  margin: 0 22px;
  padding: 19px;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: var(--portal-bg);
}.portal-surface .confirm-box h3{
  font-size: 16px;
}.portal-surface .stepup-box h3{
  font-size: 16px;
}.portal-surface .stepup-box > p{
  color: var(--portal-muted);
  font-size: 12px;
  line-height: 1.5;
}.portal-surface .stepup-verify{
  margin-top: 14px;
}.portal-surface .stepup-verify .field{
  margin-bottom: 0;
}.portal-surface .stepup-verify input{
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #fff;
  font: 600 18px/1.2 var(--mono);
  letter-spacing: 0.16em;
}.portal-surface .confirm-box > p{
  font-size: 12px;
  line-height: 1.5;
  color: var(--portal-muted);
}.portal-surface .confirm-box .field{
  display: grid;
  gap: 7px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--portal-muted);
}.portal-surface .confirm-box textarea{
  width: 100%;
  resize: vertical;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #fff;
  padding: 11px;
  font: 13.5px/1.55 var(--sans);
  color: var(--portal-ink);
}.portal-surface .refund-fields{
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fff;
}.portal-surface .refund-fields > p{
  margin: 0 0 12px;
  color: var(--portal-muted);
  font-size: 12px;
  line-height: 1.5;
}.portal-surface .refund-fields fieldset{
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}.portal-surface .refund-fields legend{
  margin-bottom: 7px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}.portal-surface .refund-slot{
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--portal-ink);
  font-size: 12px;
  font-weight: 600;
}.portal-surface .refund-slot input{
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--cta);
}.portal-surface .claimed-confirm input{
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--portal-bad);
  border-radius: 10px;
  background: #fff;
}.portal-surface .confirm-actions{
  display: flex;
  gap: 8px;
  margin-top: 14px;
}.portal-surface .action-status{
  min-height: 18px;
  margin-bottom: 0 !important;
  color: var(--portal-bad) !important;
}.portal-surface .uncertain{
  border-color: #f0e0bf;
  background: var(--portal-warm-soft);
  font-size: 12px;
}.portal-surface .uncertain p{
  line-height: 1.5;
}.portal-surface .icon-btn{
  border: 1px solid transparent;
}.portal-surface .portal-drawer[hidden],
.portal-surface .drawer-scrim[hidden]{
  display: none;
}
@media (max-width: 950px) {.portal-surface .pulse{
    grid-template-columns: repeat(3, 1fr);
  }.portal-surface .pulse-title{
    grid-column: 1/-1;
    min-height: 60px;
  }.portal-surface .pulse-item{
    min-height: 76px;
  }.portal-surface .record{
    grid-template-columns: minmax(170px, 1.5fr) repeat(
        2,
        minmax(100px, 0.8fr)
      ) 25px;
  }.portal-surface .record .datum:nth-of-type(4){
    display: none;
  }
}
@media (max-width: 650px) {.portal-surface .portal-topbar{
    padding: 0 12px;
    height: var(--top);
  }.portal-surface .portal-topbar .btn{
    padding-left: 11px;
    padding-right: 11px;
  }.portal-surface .portal-brand .quiet,
.portal-surface .portal-topbar #refresh{
    display: none;
  }.portal-surface .portal-main{
    padding: 20px 12px 50px;
  }.portal-surface .portal-heading{
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }.portal-surface .safety-note{
    max-width: none;
  }.portal-surface h1{
    font-size: 26px;
  }.portal-surface .pulse{
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }.portal-surface .pulse-title{
    grid-column: 1/-1;
  }.portal-surface .pulse-item{
    min-height: 74px;
  }.portal-surface .workspace{
    border-radius: 18px;
  }.portal-surface .section-tabs{
    padding: 8px;
  }.portal-surface .list-toolbar{
    align-items: flex-start;
    flex-direction: column;
    padding: 17px;
  }.portal-surface .list-controls{
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }.portal-surface .record-search input{
    width: 100%;
    min-width: 0;
  }.portal-surface .record-search > div{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }.portal-surface .filter{
    width: 100%;
    justify-content: space-between;
  }.portal-surface .filter select{
    min-width: 150px;
  }.portal-surface .record{
    grid-template-columns: minmax(0, 1fr) 95px 20px;
    gap: 10px;
    padding: 12px 14px;
  }.portal-surface .record .datum:nth-of-type(3),
.portal-surface .record .datum:nth-of-type(4){
    display: none;
  }.portal-surface .pager{
    justify-content: center;
  }.portal-surface .drawer-head,
.portal-surface .drawer-body{
    padding-left: 18px;
    padding-right: 18px;
  }.portal-surface .drawer-actions{
    padding-left: 18px;
    padding-right: 18px;
  }.portal-surface .confirm-box,
.portal-surface .stepup-box,
.portal-surface .uncertain{
    margin-left: 18px;
    margin-right: 18px;
  }.portal-surface .detail-grid{
    grid-template-columns: 105px minmax(0, 1fr);
  }.portal-surface .portal-drawer{
    border-left: 0;
  }.portal-surface .scope-note{
    font-size: 10px;
  }
}
@media (max-width: 420px) {.portal-surface .pulse{
    grid-template-columns: 1fr;
  }.portal-surface .pulse-title{
    grid-column: auto;
  }.portal-surface .record{
    grid-template-columns: minmax(0, 1fr) 82px 18px;
  }.portal-surface .record-search > div{
    grid-template-columns: minmax(0, 1fr) auto;
  }.portal-surface .record-search .clear-search:not([hidden]){
    grid-column: 1 / -1;
    justify-self: start;
  }
}
@media (prefers-reduced-motion: no-preference) {.portal-surface .portal-drawer{
    animation: drawer-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  @keyframes drawer-in {from{
      transform: translateX(18px);
      opacity: 0.7;
    }
  }
}.portal-surface .drawer-actions{
  padding: 17px 22px;
  border-bottom: 1px solid var(--portal-line);
}.portal-surface .confirm-box,
.portal-surface .stepup-box,
.portal-surface .uncertain{
  margin-bottom: 22px;
}
@media (max-width: 650px) {.portal-surface .drawer-actions{
    padding: 15px 18px;
  }
}

/* Shared admin navigation; all feature styles above stay inside its surface. */
.portal-subnav[hidden] { display:none; }
.portal-subnav { margin: 2px 0 8px 20px; padding-left: 10px; border-left: 1px solid var(--line); }
#nav .portal-subnav a { min-height: 36px; padding: 8px 12px; font-size: 13px; }
.portal-surface .portal-main { padding:0 0 40px; max-width:none; }
.portal-surface .pulse { grid-template-columns:repeat(3,minmax(0,1fr)); }
.portal-surface .pulse-title { display:none; }
.portal-surface .portal-heading { align-items:start; }
.portal-surface .portal-heading h1 { font-size:clamp(28px,3vw,40px); }
@media(max-width:650px) { .portal-surface .pulse { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .portal-surface .pulse-item { min-height:86px; } }
