.portal-login-body{
  margin:0;
  min-height:100vh;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(67,124,255,.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(31,122,140,.16), transparent 30%),
    linear-gradient(135deg, #0f1f36 0%, #16304d 48%, #102742 100%);
  color:#182433;
}

.portal-login-shell{
  width:min(1060px, calc(100% - 40px));
  margin:0 auto;
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(360px, .88fr) minmax(400px, .78fr);
  gap:70px;
  align-items:center;
}

.portal-login-brand{
  color:#fff;
  padding:28px 12px 28px 0;
}

.portal-login-tag,
.portal-eyebrow{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.portal-login-tag{
  background:rgba(255,255,255,.12);
  color:#fff;
  margin-bottom:18px;
}

.portal-login-brand h1{
  margin:0 0 16px;
  font-size:58px;
  letter-spacing:-.04em;
  line-height:.98;
}

.portal-login-brand p{
  max-width:460px;
  margin:0;
  color:rgba(255,255,255,.78);
  font-size:17px;
  line-height:1.75;
}

.portal-login-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:30px;
}

.portal-login-meta span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.88);
  font-size:13px;
  font-weight:700;
}

.portal-login-card{
  background:rgba(255,255,255,.98);
  border:1px solid rgba(214,222,232,.9);
  border-radius:28px;
  box-shadow:0 26px 70px rgba(7,18,37,.22);
  padding:34px 30px 28px;
}

.portal-login-card__head h2{
  margin:0 0 8px;
  font-size:28px;
  letter-spacing:-.03em;
}

.portal-login-card__head p{
  margin:0 0 22px;
  color:#6c7a91;
}

.portal-login-form{
  display:grid;
  gap:16px;
}

.portal-field{
  display:grid;
  gap:8px;
}

.portal-field span{
  font-size:13px;
  font-weight:700;
  color:#46576f;
}

.portal-field input,
.portal-field select,
.portal-field textarea{
  width:100%;
  border:1px solid #d5deea;
  border-radius:14px;
  padding:13px 14px;
  font-size:14px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}

.portal-field input:focus,
.portal-field select:focus,
.portal-field textarea:focus{
  border-color:#206bc4;
  box-shadow:0 0 0 4px rgba(32,107,196,.12);
}

.portal-login-btn{
  border:none;
  border-radius:14px;
  padding:13px 16px;
  background:linear-gradient(135deg, #206bc4, #1f7a8c);
  color:#fff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}

.portal-login-btn:hover{
  filter:brightness(1.02);
}

.portal-login-foot{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:20px;
  color:#6c7a91;
  font-size:13px;
}

.portal-alert{
  padding:12px 14px;
  border-radius:14px;
  margin-bottom:18px;
  font-size:13px;
}

.portal-alert--danger{
  background:#fdecec;
  border:1px solid #f2c1c1;
  color:#8b1d1d;
}

.portal-hero{
  display:grid;
  grid-template-columns:minmax(0, 1.35fr) minmax(260px, .65fr);
  gap:22px;
  padding:30px;
  border-radius:28px;
  color:#fff;
  box-shadow:0 24px 60px rgba(17,24,39,.12);
}

.portal-hero--main{
  background:linear-gradient(135deg, #17324d, #1f7a8c);
}

.portal-hero--sub{
  background:linear-gradient(135deg, #1c3f6e, #206bc4);
}

.portal-hero--super{
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.18), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(72,187,203,.22), transparent 30%),
    linear-gradient(135deg, #102842 0%, #173f59 48%, #0f6f7a 100%);
}

.portal-eyebrow{
  background:rgba(255,255,255,.12);
  color:#fff;
  margin-bottom:14px;
}

.portal-hero__title{
  margin:0 0 10px;
  font-size:36px;
  line-height:1.1;
}

.portal-hero__desc{
  margin:0;
  max-width:760px;
  color:rgba(255,255,255,.84);
  line-height:1.8;
}

.portal-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.portal-chip{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:13px;
  font-weight:700;
}

.portal-chip--success{background:rgba(47,179,68,.24)}
.portal-chip--warning{background:rgba(245,159,0,.24)}
.portal-chip--danger{background:rgba(214,57,57,.24)}
.portal-chip--info{background:rgba(32,107,196,.28)}

.portal-side-note{
  padding:18px;
  border-radius:20px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(10px);
}

.portal-side-note strong{
  display:block;
  margin-bottom:8px;
  font-size:14px;
}

.portal-side-note p{
  margin:0;
  color:rgba(255,255,255,.82);
  line-height:1.7;
  font-size:13px;
}

.portal-metrics{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}

.portal-metric-card{
  padding:22px 20px;
  border-radius:22px;
  background:#fff;
  border:1px solid #e6ebf1;
  box-shadow:0 14px 32px rgba(17,24,39,.06);
}

.portal-metric-card span{
  display:block;
  color:#6c7a91;
  font-size:13px;
}

.portal-metric-card strong{
  display:block;
  margin-top:8px;
  font-size:32px;
  line-height:1.1;
}

.portal-metric-card em{
  display:block;
  margin-top:10px;
  color:#46576f;
  font-style:normal;
  font-size:13px;
}

.portal-super-hero{
  position:relative;
  overflow:hidden;
}

.portal-super-hero::after{
  content:"";
  position:absolute;
  right:-80px;
  bottom:-120px;
  width:360px;
  height:360px;
  border-radius:50%;
  border:58px solid rgba(255,255,255,.06);
}

.portal-super-focus{
  position:relative;
  z-index:1;
  display:grid;
  gap:16px;
  padding:20px;
  border-radius:24px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(12px);
}

.portal-super-focus__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.portal-super-focus__head span{
  color:rgba(255,255,255,.78);
  font-size:13px;
  font-weight:700;
}

.portal-super-focus__head strong{
  font-size:40px;
  line-height:1;
}

.portal-super-focus__list{
  display:grid;
  gap:10px;
}

.portal-super-focus__list a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border-radius:16px;
  color:#fff;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.14);
}

.portal-super-focus__list span{
  color:rgba(255,255,255,.82);
  font-size:13px;
}

.portal-super-focus__list strong{
  font-size:20px;
}

.portal-super-metrics{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}

.portal-metric-card--accent{
  color:#fff;
  background:linear-gradient(135deg, #17324d, #1f7a8c);
  border-color:transparent;
}

.portal-metric-card--accent span,
.portal-metric-card--accent em{
  color:rgba(255,255,255,.82);
}

.portal-alert-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.portal-alert-card{
  display:block;
  padding:20px 18px;
  border-radius:22px;
  border:1px solid #e6ebf1;
  background:#fff;
  color:#182433;
  box-shadow:0 14px 32px rgba(17,24,39,.06);
}

.portal-alert-card strong{
  display:block;
  margin-bottom:8px;
  font-size:16px;
}

.portal-alert-card p{
  margin:0;
  color:#46576f;
  line-height:1.75;
  font-size:13px;
}

.portal-alert-card--success{
  background:linear-gradient(180deg, #ffffff, #f4fbf6);
  border-color:#d6ebdb;
}

.portal-alert-card--warning{
  background:linear-gradient(180deg, #ffffff, #fff9ef);
  border-color:#f3dfb3;
}

.portal-alert-card--danger{
  background:linear-gradient(180deg, #ffffff, #fff2f2);
  border-color:#f1c9c9;
}

.portal-alert-card--info{
  background:linear-gradient(180deg, #ffffff, #f4f9ff);
  border-color:#d7e5f3;
}

.portal-grid{
  display:grid;
  gap:18px;
}

.portal-grid--actions{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.portal-grid--split{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.portal-super-command{
  padding:22px;
  border-radius:28px;
  background:#fff;
  border:1px solid #e6ebf1;
  box-shadow:0 18px 48px rgba(17,24,39,.08);
}

.portal-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.portal-section-head span{
  display:block;
  margin-bottom:4px;
  color:#1f7a8c;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}

.portal-section-head h2{
  margin:0;
  font-size:22px;
}

.portal-section-head a,
.portal-row-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:#edf7fa;
  color:#0f6f7a;
  font-size:13px;
  font-weight:800;
}

.portal-command-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.portal-code-lookup{
  display:grid;
  grid-template-columns:minmax(260px, 1fr) minmax(280px, 380px) minmax(132px, auto);
  gap:16px;
  align-items:stretch;
  margin:0 0 18px;
  padding:18px;
  border-radius:26px;
  background:
    radial-gradient(circle at 0 0, rgba(31,122,140,.12), transparent 32%),
    linear-gradient(135deg, #f6fbfd, #fff 58%, #eef8fb);
  border:1px solid #d6e8ef;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86);
}

.portal-code-lookup__intro,
.portal-code-lookup__field,
.portal-code-result__body{
  display:block;
}

.portal-code-lookup__eyebrow{
  display:inline-flex;
  margin-bottom:8px;
  padding:5px 10px;
  border-radius:999px;
  background:#dff1f5;
  color:#0f6f7a;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}

.portal-code-lookup__intro strong{
  display:block;
  color:#17324d;
  font-size:20px;
  letter-spacing:-.02em;
}

.portal-code-lookup__intro p{
  margin:8px 0 0;
  color:#6c7a91;
  font-size:13px;
  line-height:1.7;
}

.portal-code-lookup__field span{
  display:block;
  margin:0 0 6px;
  color:#46576f;
  font-weight:800;
}

.portal-code-lookup__field input{
  width:100%;
  height:54px;
  border:1px solid #cbdde7;
  border-radius:18px;
  padding:0 16px;
  outline:none;
  background:#fff;
  color:#17324d;
  font-size:16px;
  font-weight:800;
  letter-spacing:.04em;
}

.portal-code-lookup__field input:focus{
  border-color:#1f7a8c;
  box-shadow:0 0 0 3px rgba(31,122,140,.12);
}

.portal-code-lookup button,
.portal-code-result a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 20px;
  border:0;
  border-radius:18px;
  background:linear-gradient(135deg, #0f6f7a, #2477d8);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(15,111,122,.18);
}

.portal-code-lookup button{
  flex-direction:column;
}

.portal-code-lookup button strong,
.portal-code-lookup button em{
  display:block;
}

.portal-code-lookup button em{
  margin-top:2px;
  opacity:.76;
  font-size:11px;
  font-style:normal;
}

.portal-code-result{
  display:flex;
  align-items:center;
  gap:16px;
  margin:0 0 18px;
  padding:16px;
  border-radius:24px;
  background:linear-gradient(135deg, #edf7fa, #fff);
  border:1px solid #cde6ed;
  box-shadow:0 14px 30px rgba(17,24,39,.05);
}

.portal-code-result__icon{
  flex:0 0 52px;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#0f6f7a;
  color:#fff;
  font-size:22px;
  font-weight:900;
}

.portal-code-result__body{
  flex:1 1 auto;
  min-width:0;
}

.portal-code-result span{
  display:block;
  color:#0f6f7a;
  font-size:12px;
  font-weight:900;
}

.portal-code-result strong{
  display:block;
  margin-top:4px;
  color:#17324d;
  font-size:20px;
}

.portal-code-result em{
  display:block;
  margin-top:4px;
  color:#46576f;
  font-size:13px;
  font-style:normal;
}

.portal-code-result--empty{
  background:#fff8e8;
  border-color:#ffe0a3;
}

.portal-code-result--empty .portal-code-result__icon{
  background:#b7791f;
}

.portal-command-group{
  display:grid;
  gap:12px;
  padding:16px;
  border-radius:22px;
  background:linear-gradient(180deg, #f8fbff, #fff);
  border:1px solid #dfe9f3;
}

.portal-command-group h3{
  margin:0;
  font-size:15px;
  color:#17324d;
}

.portal-command-list{
  display:grid;
  gap:10px;
}

.portal-command-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:16px;
  color:#182433;
  background:#fff;
  border:1px solid #e6ebf1;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.portal-command-item:hover{
  transform:translateY(-1px);
  border-color:#b8d8e4;
  box-shadow:0 12px 24px rgba(17,24,39,.07);
}

.portal-command-item span,
.portal-command-item strong,
.portal-command-item em{
  display:block;
}

.portal-command-item strong{
  font-size:14px;
}

.portal-command-item em{
  margin-top:4px;
  color:#6c7a91;
  font-style:normal;
  font-size:12px;
  line-height:1.45;
}

.portal-command-item b{
  flex:0 0 auto;
  padding:6px 8px;
  border-radius:999px;
  background:#edf7fa;
  color:#0f6f7a;
  font-size:11px;
}

.portal-super-card{
  overflow:hidden;
}

.portal-card-header--split{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.portal-card-header--split p{
  margin:6px 0 0;
  color:#6c7a91;
  font-size:13px;
}

.portal-card-header--split a:not(.btn){
  flex:0 0 auto;
  color:#0f6f7a;
  font-size:13px;
  font-weight:800;
}

.portal-table-sub{
  display:block;
  margin-top:4px;
  color:#6c7a91;
  font-size:12px;
}

.portal-inventory-hero .portal-hero__desc{
  max-width:680px;
}

.portal-inventory-panel{
  overflow:hidden;
}

.portal-inventory-list{
  display:grid;
}

.portal-inventory-list--cards{
  gap:12px;
  padding:16px;
}

.portal-inventory-item{
  display:grid;
  grid-template-columns:86px minmax(220px, 1fr) minmax(280px, .85fr) auto;
  gap:16px;
  align-items:center;
  padding:16px 18px;
  border:1px solid #e6ebf1;
  border-radius:20px;
  background:linear-gradient(180deg, #fff, #f8fbff);
}

.portal-inventory-item:first-child{
  border-top:1px solid #e6ebf1;
}

.portal-inventory-thumb{
  width:72px;
  height:72px;
}

.portal-inventory-thumb button,
.portal-inventory-thumb span{
  display:flex;
  width:72px;
  height:72px;
  padding:0;
  align-items:center;
  justify-content:center;
  border:1px solid #dbe6f2;
  border-radius:18px;
  overflow:hidden;
  background:#f6f9fc;
  color:#7a8899;
  font-size:12px;
  font-weight:800;
}

.portal-inventory-thumb__empty{
  line-height:1.35;
  text-align:center;
}

.portal-inventory-thumb button{
  cursor:zoom-in;
}

.portal-inventory-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-inventory-title{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.portal-inventory-title strong{
  font-size:16px;
}

.portal-inventory-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:9px;
  color:#6c7a91;
  font-size:13px;
}

.portal-inventory-stats{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.portal-inventory-stats span{
  display:grid;
  gap:4px;
  padding:10px 12px;
  border-radius:14px;
  background:#f8fbff;
  color:#6c7a91;
  font-size:12px;
}

.portal-inventory-stats strong{
  color:#17324d;
  font-size:14px;
}

.portal-inventory-actions{
  display:flex;
  justify-content:flex-end;
}

.portal-inventory-upload{
  display:grid;
  grid-template-columns:112px minmax(0, 1fr);
  gap:16px;
  align-items:center;
  padding:12px;
  border:1px solid #d5deea;
  border-radius:18px;
  background:linear-gradient(180deg, #fff, #f8fbff);
}

.portal-inventory-upload__thumb{
  position:relative;
  display:flex;
  width:112px;
  height:112px;
  padding:0;
  align-items:center;
  justify-content:center;
  border:1px dashed #bfd0e3;
  border-radius:20px;
  overflow:hidden;
  background:#f5f8fc;
  color:#6c7a91;
  font-size:13px;
  font-weight:800;
  text-align:center;
  cursor:pointer;
}

button.portal-inventory-upload__thumb{
  appearance:none;
  -webkit-appearance:none;
}

.portal-inventory-upload__thumb img{
  position:absolute;
  inset:0;
  display:none;
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-inventory-upload__thumb img.is-ready{
  display:block;
}

.portal-inventory-upload__thumb .is-hidden{
  display:none;
}

.portal-inventory-upload__input,
.portal-inventory-upload input[type="file"]{
  display:none!important;
}

.portal-inventory-upload__meta{
  display:grid;
  gap:10px;
  align-content:center;
}

.portal-detail-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
}

.portal-back-link{
  display:inline-flex;
  margin-bottom:12px;
  color:#0f6f7a;
  font-size:13px;
  font-weight:800;
}

.portal-detail-head h1{
  margin:0;
  font-size:32px;
}

.portal-detail-head p{
  margin:8px 0 0;
  color:#6c7a91;
}

.portal-detail-card{
  overflow:hidden;
}

.portal-detail-image{
  display:flex;
  width:min(100%, 420px);
  aspect-ratio:4 / 3;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid #dbe6f2;
  border-radius:22px;
  overflow:hidden;
  background:#f6f9fc;
  color:#6c7a91;
  font-weight:800;
  cursor:zoom-in;
}

.portal-detail-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-detail-image--empty{
  cursor:default;
}

.portal-image-replace-form{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.portal-image-replace-form.portal-inventory-upload{
  display:grid;
  grid-template-columns:112px minmax(0, 1fr);
  align-items:center;
  padding:12px;
}

.portal-image-replace-form input[type="file"]{
  flex:1 1 220px;
  border:1px solid #d5deea;
  border-radius:14px;
  padding:10px 12px;
  background:#fff;
}

.portal-detail-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  padding:18px;
}

.portal-detail-grid div{
  padding:14px 16px;
  border:1px solid #e6ebf1;
  border-radius:16px;
  background:#f8fbff;
}

.portal-detail-grid span{
  display:block;
  color:#6c7a91;
  font-size:12px;
  margin-bottom:6px;
}

.portal-detail-grid strong{
  color:#17324d;
}

.portal-detail-note{
  margin:0 18px 18px;
  padding:14px;
  border-radius:16px;
  background:#f8fbff;
  color:#46576f;
  line-height:1.7;
}

.portal-detail-actions{
  grid-column:1 / -1;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn-outline-danger{
  background:#fff;
  border-color:#f2c1c1;
  color:#b42318;
}

.portal-action-card{
  display:block;
  padding:22px 20px;
  border-radius:22px;
  background:#fff;
  border:1px solid #e6ebf1;
  color:#182433;
  box-shadow:0 14px 32px rgba(17,24,39,.06);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.portal-action-card:hover{
  transform:translateY(-2px);
  border-color:#bfd0e3;
  box-shadow:0 18px 36px rgba(17,24,39,.09);
}

.portal-action-card--primary{
  background:linear-gradient(135deg, #1c3f6e, #206bc4);
  color:#fff;
  border-color:transparent;
}

.portal-action-card--primary p{
  color:rgba(255,255,255,.85);
}

.portal-action-card--disabled{
  background:#f8fafc;
  border-style:dashed;
  color:#526173;
  cursor:default;
  box-shadow:none;
}

.portal-action-card--disabled:hover{
  transform:none;
  border-color:#d8e2ec;
  box-shadow:none;
}

.portal-action-card__title{
  font-size:18px;
  font-weight:700;
  margin-bottom:8px;
}

.portal-action-card p{
  margin:0;
  color:#6c7a91;
  line-height:1.7;
  font-size:13px;
}

.portal-account-form{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
  align-items:start;
}

.portal-field--wide,
.portal-account-form .portal-field--wide{
  grid-column:1 / -1;
}

.portal-account-form .portal-field{
  display:grid;
  gap:8px;
  align-content:start;
  color:#17324d;
  font-weight:700;
}

.portal-account-form .portal-field:nth-last-child(2),
.portal-account-form .portal-field:has(textarea){
  grid-column:1 / -1;
}

.portal-account-form input,
.portal-account-form select,
.portal-account-form textarea{
  width:100%;
  border:1px solid #d5deea;
  border-radius:14px;
  padding:12px 14px;
  background:#fff;
  color:#182433;
  font-size:14px;
  outline:none;
  min-height:48px;
}

.portal-account-form textarea{
  resize:vertical;
  min-height:106px;
}

.portal-account-form input:focus,
.portal-account-form select:focus,
.portal-account-form textarea:focus{
  border-color:#206bc4;
  box-shadow:0 0 0 4px rgba(32,107,196,.12);
}

.portal-account-form input[type="checkbox"]{
  width:auto;
  margin-right:8px;
}

.portal-account-form em{
  color:#6c7a91;
  font-size:12px;
  font-style:normal;
  line-height:1.6;
}

.portal-account-form .pod-image-uploader{
  margin-top:2px;
}

.portal-account-form .portal-login-btn{
  grid-column:1 / -1;
}

.portal-form-error{
  color:#b42318;
  font-size:12px;
  font-weight:700;
}

.portal-form-error-panel{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border:1px solid #f4b8b0;
  border-radius:16px;
  background:#fff4f2;
  color:#9f1f14;
}

.portal-form-error-panel strong{
  font-size:14px;
}

.portal-form-error-panel span{
  color:#b42318;
  font-size:12px;
  font-weight:700;
}

.portal-mode-guide{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.portal-mode-card{
  display:grid;
  gap:8px;
  padding:20px;
  border-radius:22px;
  background:linear-gradient(180deg, #fff, #f8fbff);
  border:1px solid #d8e4ef;
  color:#182433;
  box-shadow:0 16px 34px rgba(17,24,39,.06);
}

.portal-mode-card--active{
  background:linear-gradient(135deg, #17324d, #1f7a8c);
  color:#fff;
  border-color:transparent;
}

.portal-mode-card strong{
  font-size:18px;
}

.portal-mode-card span{
  color:#6c7a91;
  line-height:1.7;
  font-size:13px;
}

.portal-mode-card--active span{
  color:rgba(255,255,255,.84);
}

.portal-sku-form .is-muted{
  opacity:.48;
}

.portal-check{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:0 4px;
  color:#46576f;
  font-weight:700;
}

.portal-file-preview{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 112px;
  gap:14px;
  align-items:center;
}

.portal-file-preview__box{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:112px;
  aspect-ratio:1 / 1;
  padding:12px;
  border:1px dashed #bfd0e3;
  border-radius:18px;
  overflow:hidden;
  background:#f6f9fc;
  color:#7a8899;
  text-align:center;
  font-size:12px;
  cursor:zoom-in;
}

button.portal-file-preview__box{
  appearance:none;
  -webkit-appearance:none;
}

.portal-file-preview__box img{
  position:absolute;
  inset:0;
  display:none;
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-file-preview__box img.is-ready{
  display:block;
}

.portal-image-thumb{
  display:inline-flex;
  width:58px;
  height:58px;
  padding:0;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #d8e4ef;
  background:#f8fbff;
  cursor:zoom-in;
  vertical-align:middle;
}

.portal-image-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-proof-upload{
  display:grid;
  grid-template-columns:112px minmax(0, 1fr);
  gap:16px;
  align-items:center;
  padding:12px;
  border:1px solid #d5deea;
  border-radius:18px;
  background:linear-gradient(180deg, #fff, #f8fbff);
}

.portal-proof-upload > input[type="file"]{
  display:none!important;
  visibility:hidden!important;
  position:absolute!important;
  width:0!important;
  height:0!important;
  padding:0!important;
  margin:0!important;
  opacity:0!important;
  overflow:hidden!important;
  clip:rect(0, 0, 0, 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  pointer-events:none!important;
  border:0!important;
}

.portal-sku-upload > input[type="file"]{
  display:none!important;
  visibility:hidden!important;
  position:absolute!important;
  width:0!important;
  height:0!important;
  padding:0!important;
  margin:0!important;
  opacity:0!important;
  overflow:hidden!important;
  clip:rect(0, 0, 0, 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  pointer-events:none!important;
  border:0!important;
}

.portal-proof-upload__input{
  display:none!important;
  visibility:hidden!important;
  position:absolute!important;
  width:0!important;
  height:0!important;
  padding:0!important;
  margin:0!important;
  opacity:0!important;
  overflow:hidden!important;
  clip:rect(0, 0, 0, 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  pointer-events:none!important;
  border:0!important;
}

.portal-proof-upload__card{
  position:relative;
  width:112px;
  aspect-ratio:1 / 1;
  padding:0;
  border:1px dashed #bfd0e3;
  border-radius:20px;
  overflow:hidden;
  background:#f5f8fc;
  cursor:zoom-in;
}

.portal-proof-upload__card:hover{
  border-color:#206bc4;
  box-shadow:0 12px 28px rgba(32,107,196,.14);
}

.portal-proof-upload__image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-proof-upload__placeholder{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:16px;
  text-align:center;
  color:#6c7a91;
}

.portal-proof-upload__placeholder strong{
  color:#17324d;
  font-size:14px;
}

.portal-proof-upload__placeholder em{
  color:#6c7a91;
  font-size:12px;
  line-height:1.5;
}

.portal-proof-upload__meta{
  display:grid;
  gap:6px;
  color:#6c7a91;
  font-size:13px;
}

.portal-proof-upload__meta strong{
  color:#182433;
  font-size:14px;
}

.portal-form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.portal-form-field{
  display:grid;
  gap:8px;
  color:#17324d;
  font-weight:700;
}

.portal-form-field--wide{
  grid-column:1 / -1;
}

.portal-form-field small{
  color:#6c7a91;
  font-weight:500;
  line-height:1.5;
}

.portal-form-field input,
.portal-form-field select,
.portal-form-field textarea{
  width:100%;
  border:1px solid rgba(91,122,150,.28);
  border-radius:16px;
  padding:13px 15px;
  background:#fff;
  color:#17324d;
  outline:none;
  font-size:14px;
  min-height:48px;
}

.portal-form-field textarea{
  min-height:104px;
  resize:vertical;
}

.portal-form-field input[type="checkbox"]{
  width:auto;
  min-height:0;
}

.portal-form-field input:focus,
.portal-form-field select:focus,
.portal-form-field textarea:focus{
  border-color:#206bc4;
  box-shadow:0 0 0 4px rgba(32,107,196,.12);
}

.portal-form-field input:disabled,
.portal-form-field select:disabled,
.portal-form-field textarea:disabled{
  background:#f1f5f9;
  color:#7a8899;
  cursor:not-allowed;
}

.btn-outline-primary{
  background:#fff;
  border-color:#bfd0e3;
  color:#0f6f7a;
}

.btn-outline-primary:hover{
  background:#edf7fa;
}

.btn-outline-warning{
  background:#fff;
  border-color:#f3dfb3;
  color:#9a6700;
}

.btn-outline-success{
  background:#fff;
  border-color:#cdebd4;
  color:#1f6f35;
}

.portal-account-editor{
  display:grid;
  gap:18px;
}

.portal-editor-card{
  overflow:hidden;
}

.portal-card-header--split{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.portal-card-header--split p{
  margin:6px 0 0;
  color:#6c7a91;
  font-size:13px;
  line-height:1.6;
}

.portal-form-section{
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid #e6ebf1;
  border-radius:22px;
  background:linear-gradient(180deg, #fff, #f8fbff);
}

.portal-form-section + .portal-form-section{
  margin-top:16px;
}

.portal-form-section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  padding-bottom:12px;
  border-bottom:1px solid #e6ebf1;
}

.portal-form-section__head strong{
  color:#17324d;
  font-size:16px;
}

.portal-form-section__head span{
  color:#6c7a91;
  font-size:12px;
}

.portal-account-create{
  display:grid;
  gap:16px;
}

.portal-help-box{
  min-height:48px;
  display:flex;
  align-items:center;
  padding:13px 15px;
  border:1px solid #d8e4ef;
  border-radius:16px;
  background:#f8fbff;
  color:#46576f;
  line-height:1.6;
  font-weight:500;
}

.portal-form-field--muted span{
  color:#6c7a91;
}

.portal-toggle-card{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
  border:1px solid #d8e4ef;
  border-radius:18px;
  background:linear-gradient(180deg, #fff, #f8fbff);
  color:#17324d;
  cursor:pointer;
}

.portal-toggle-card input[type="checkbox"]{
  flex:0 0 auto;
  width:20px;
  height:20px;
  accent-color:#1f7a8c;
}

.portal-toggle-card span{
  display:grid;
  gap:4px;
}

.portal-toggle-card strong{
  font-size:14px;
}

.portal-toggle-card em{
  color:#6c7a91;
  font-size:12px;
  font-style:normal;
  line-height:1.55;
}

.portal-soft-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  padding:8px 12px;
  border-radius:999px;
  background:#edf7fa;
  color:#0f6f7a;
  font-size:12px;
  font-weight:800;
}

.portal-sticky-actions{
  position:sticky;
  bottom:18px;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border:1px solid #d8e4ef;
  border-radius:20px;
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 48px rgba(17,24,39,.12);
  backdrop-filter:blur(12px);
}

.portal-sticky-actions strong,
.portal-sticky-actions span{
  display:block;
}

.portal-sticky-actions strong{
  color:#17324d;
}

.portal-sticky-actions span{
  margin-top:3px;
  color:#6c7a91;
  font-size:12px;
}

.portal-account-list{
  display:grid;
}

.portal-account-row{
  display:grid;
  grid-template-columns:minmax(220px, .85fr) minmax(360px, 1.35fr) auto;
  gap:16px;
  align-items:center;
  padding:18px;
  border-top:1px solid #e6ebf1;
}

.portal-account-row:first-child{
  border-top:0;
}

.portal-account-row__title{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.portal-account-row__title strong{
  font-size:16px;
}

.portal-account-row__main p{
  margin:8px 0 0;
  color:#6c7a91;
  font-size:13px;
}

.portal-account-row__meta{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.portal-account-row__meta span{
  display:grid;
  gap:4px;
  padding:10px 12px;
  border-radius:14px;
  background:#f8fbff;
  border:1px solid #edf1f6;
}

.portal-account-row__meta em{
  color:#6c7a91;
  font-size:12px;
  font-style:normal;
}

.portal-account-row__meta strong{
  color:#17324d;
  font-size:13px;
}

.portal-account-row__actions{
  display:grid;
  gap:8px;
  justify-items:end;
}

.portal-empty-line{
  padding:24px 18px;
  color:#6c7a91;
}

.portal-inline-form{
  display:grid;
  grid-template-columns:86px 150px 96px 150px auto auto;
  gap:8px;
  align-items:center;
}

.portal-inline-form .form-control{
  min-height:38px;
  border-radius:10px;
}

.portal-inline-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:8px;
}

.portal-inline-size-form,
.portal-review-form{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr)) auto;
  gap:10px;
  align-items:end;
  margin-top:14px;
  padding:14px;
  border:1px solid #e1eaf3;
  border-radius:18px;
  background:#f8fbff;
}

.portal-inline-size-form label{
  display:grid;
  gap:6px;
  color:#46576f;
  font-size:12px;
  font-weight:800;
}

.portal-inline-size-form input,
.portal-review-form input{
  width:100%;
  min-height:40px;
  border:1px solid #d5deea;
  border-radius:12px;
  padding:9px 11px;
  background:#fff;
  color:#17324d;
  outline:none;
}

.portal-inline-size-form input:focus,
.portal-review-form input:focus{
  border-color:#206bc4;
  box-shadow:0 0 0 4px rgba(32,107,196,.1);
}

.portal-inline-size-form button,
.portal-review-form button{
  min-height:40px;
  border:0;
  border-radius:999px;
  padding:0 15px;
  background:linear-gradient(135deg, #206bc4, #1f7a8c);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.portal-review-form{
  grid-template-columns:110px 110px minmax(150px, 1fr) auto auto;
  padding:0;
  border:0;
  background:transparent;
  margin-top:0;
}

.portal-inline-link{
  justify-self:start;
  border:0;
  padding:0;
  background:transparent;
  color:#206bc4;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.portal-inline-link:hover{
  text-decoration:underline;
}

.is-hidden{
  display:none!important;
}

.portal-proof-thumb{
  display:inline-flex;
  width:58px;
  height:58px;
  padding:0;
  border:1px solid #dbe6f2;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  cursor:pointer;
  vertical-align:middle;
}

.portal-proof-thumb:hover{
  border-color:#206bc4;
  box-shadow:0 10px 22px rgba(32,107,196,.14);
}

.portal-proof-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-image-lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:28px;
}

.portal-image-lightbox.is-hidden{
  display:none!important;
}

.portal-image-lightbox__backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(9,18,32,.72);
  cursor:zoom-out;
}

.portal-image-lightbox__panel{
  position:relative;
  z-index:1;
  width:min(880px, 100%);
  max-height:90vh;
  border-radius:24px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}

.portal-image-lightbox__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-bottom:1px solid #e6ebf1;
}

.portal-image-lightbox__head button{
  border:0;
  border-radius:999px;
  padding:8px 12px;
  background:#eef5fb;
  color:#17324d;
  font-weight:700;
  cursor:pointer;
}

.portal-image-lightbox__panel img{
  display:block;
  width:100%;
  max-height:calc(90vh - 58px);
  object-fit:contain;
  background:#0f172a;
}

.portal-channel-list{
  display:grid;
  gap:14px;
  padding:18px;
}

.portal-channel-card{
  display:grid;
  grid-template-columns:96px minmax(0, 1fr);
  gap:14px;
  padding:14px;
  border:1px solid #e6ebf1;
  border-radius:18px;
  background:linear-gradient(180deg, #fff, #f8fbff);
}

.portal-channel-card__image{
  display:inline-flex;
  width:96px;
  height:96px;
  padding:0;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:14px;
  border:1px solid #dbe6f2;
  background:#fff;
  cursor:zoom-in;
}

.portal-channel-card__image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.portal-channel-card__placeholder{
  display:flex;
  width:96px;
  height:96px;
  align-items:center;
  justify-content:center;
  border:1px dashed #bfd0e3;
  border-radius:14px;
  background:#f5f8fc;
  color:#6c7a91;
  font-size:12px;
  line-height:1.45;
  text-align:center;
}

.portal-channel-card strong,
.portal-channel-card span{
  display:block;
}

.portal-channel-card span{
  margin-top:4px;
  color:#6c7a91;
  font-size:13px;
}

.portal-channel-card p{
  margin:10px 0 0;
  color:#46576f;
  font-size:13px;
  line-height:1.7;
}

.portal-flow{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
}

.portal-flow__item{
  padding:18px 16px;
  border-radius:20px;
  border:1px solid #dbe6f2;
  background:linear-gradient(180deg, #ffffff, #f7fbff);
}

.portal-flow__item strong{
  display:block;
  margin-bottom:8px;
  font-size:15px;
}

.portal-flow__item span{
  display:block;
  color:#6c7a91;
  line-height:1.7;
  font-size:13px;
}

.portal-empty-state{
  max-width:760px;
  margin:70px auto 20px;
  padding:42px 34px;
  border-radius:28px;
  background:#fff;
  border:1px solid #e6ebf1;
  text-align:center;
  box-shadow:0 20px 48px rgba(17,24,39,.08);
}

.portal-empty-state__tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:#eaf2ff;
  color:#206bc4;
  font-size:12px;
  font-weight:700;
}

.portal-empty-state h1{
  margin:18px 0 12px;
  font-size:34px;
}

.portal-empty-state p{
  margin:0 auto;
  max-width:580px;
  color:#6c7a91;
  line-height:1.8;
}

.portal-empty-state__actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}

.portal-grid-span-2{
  grid-column:1 / -1;
}

.portal-library-card{
  overflow:hidden;
}

.portal-code-search{
  display:grid;
  grid-template-columns:minmax(240px, 1fr) auto auto;
  align-items:end;
  gap:12px;
  padding:16px 18px 4px;
  border-top:1px solid #edf2f7;
}

.portal-code-search label{
  display:grid;
  gap:8px;
  margin:0;
  color:#51627a;
  font-size:13px;
  font-weight:800;
}

.portal-code-search input{
  width:100%;
  min-height:46px;
  padding:0 16px;
  border:1px solid #d5e3ef;
  border-radius:16px;
  background:#fff;
  color:#13243a;
  outline:none;
}

.portal-code-search input:focus{
  border-color:#1f7a8c;
  box-shadow:0 0 0 4px rgba(31,122,140,.12);
}

.portal-code-search button,
.portal-code-search a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border:0;
  border-radius:16px;
  text-decoration:none;
  font-weight:900;
}

.portal-code-search button{
  background:linear-gradient(135deg,#206bc4,#1f7a8c);
  color:#fff;
  cursor:pointer;
}

.portal-code-search a{
  background:#eef6f9;
  color:#0f6f7f;
}

.portal-code-library{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:14px;
  padding:18px;
}

.portal-code-card{
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid #dbe6f2;
  border-radius:22px;
  background:
    radial-gradient(circle at top right, rgba(31,122,140,.1), transparent 34%),
    linear-gradient(180deg, #fff, #f8fbff);
  box-shadow:0 14px 32px rgba(15,23,42,.06);
}

.portal-code-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.portal-code-card__head span{
  display:block;
  color:#6c7a91;
  font-size:12px;
  font-weight:700;
}

.portal-code-card__head strong{
  display:block;
  margin-top:4px;
  color:#13243a;
  font-size:24px;
  letter-spacing:.02em;
}

.portal-code-card__head em{
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:999px;
  background:#e8f7ee;
  color:#138344;
  font-size:12px;
  font-style:normal;
  font-weight:800;
}

.portal-code-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.portal-code-card__meta span{
  padding:7px 10px;
  border-radius:999px;
  background:#eef6f9;
  color:#39536d;
  font-size:12px;
  font-weight:700;
}

@media (max-width: 1080px){
  .portal-login-shell,
  .portal-hero,
  .portal-grid--split{
    grid-template-columns:1fr;
  }

  .portal-code-lookup,
  .portal-code-search{
    grid-template-columns:1fr;
  }

  .portal-code-result{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .portal-code-result a{
    width:100%;
  }

  .portal-grid--actions,
  .portal-super-metrics,
  .portal-command-grid,
  .portal-inventory-stats,
  .portal-metrics,
  .portal-alert-grid,
  .portal-flow,
  .portal-mode-guide{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .portal-login-brand{
    padding-right:0;
  }

  .portal-inventory-item{
    grid-template-columns:72px minmax(0, 1fr);
  }

  .portal-account-row{
    grid-template-columns:1fr;
    align-items:start;
  }

  .portal-account-row__actions{
    justify-items:start;
  }

  .portal-inventory-stats,
  .portal-inventory-actions{
    grid-column:1 / -1;
  }

  .portal-inventory-actions{
    justify-content:flex-start;
  }
}

@media (max-width: 720px){
  .portal-login-shell{
    width:min(100%, calc(100% - 24px));
    padding:24px 0;
    gap:22px;
  }

  .portal-login-brand h1{
    font-size:42px;
  }

  .portal-hero,
  .portal-grid--actions,
  .portal-super-metrics,
  .portal-command-grid,
  .portal-inventory-stats,
  .portal-metrics,
  .portal-alert-grid,
  .portal-flow,
  .portal-mode-guide,
  .portal-account-form,
  .portal-form-grid,
  .portal-inline-form,
  .portal-inline-size-form,
  .portal-review-form{
    grid-template-columns:1fr;
  }

  .portal-file-preview{
    grid-template-columns:1fr;
  }

  .portal-hero{
    padding:24px 20px;
  }

  .portal-detail-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .portal-detail-grid,
  .portal-inventory-upload{
    grid-template-columns:1fr;
  }

  .portal-channel-card{
    grid-template-columns:1fr;
  }

  .portal-proof-upload{
    grid-template-columns:1fr;
  }

  .portal-proof-upload__card{
    width:112px;
    max-width:none;
  }

  .portal-card-header--split,
  .portal-form-section__head,
  .portal-sticky-actions{
    align-items:flex-start;
    flex-direction:column;
  }

  .portal-account-row__meta{
    grid-template-columns:1fr;
  }
}
