:root {
  --ink: #203b48;
  --teal: #276d78;
  --muted: #697b84;
  --line: #dce5e8;
  --orange: #e5784d;
  --paper: #f4f7f8;
}
* {
  box-sizing: border-box;
}
.portal-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.portal-body a {
  color: var(--teal);
  text-underline-offset: 3px;
}
.portal-body h1,
.portal-body h2,
.portal-body h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.portal-body h1 {
  font-size: 32px;
  margin: 5px 0 20px;
}
.portal-body h2 {
  font-size: 21px;
  margin: 28px 0 18px;
}
.portal-body p {
  margin: 0 0 20px;
}
.portal-body button,
.portal-body input,
.portal-body select,
.portal-body textarea {
  font: inherit;
}
.portal-body button {
  border: 1px solid #becfd5;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}
.portal-body button:hover {
  background: #edf4f5;
}
.portal-body button:disabled {
  opacity: 0.4;
  cursor: default;
}
.portal-body .primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  padding: 11px 24px;
}
.portal-body .primary:hover {
  background: #1d5660;
}
.portal-body input:not([type="checkbox"]):not([type="radio"]),
.portal-body textarea,
.portal-body select {
  border: 1px solid #b9cbd2;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  max-width: 100%;
}
.portal-body input:focus,
.portal-body select:focus,
.portal-body textarea:focus,
.editor-visual:focus {
  outline: 2px solid #62a9b3;
  outline-offset: 2px;
}
.portal-body input[type="checkbox"],
.portal-body input[type="radio"] {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 22px;
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
}
.portal-body .hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 10px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 6px !important;
}
.portal-layout {
  display: flex;
  min-height: 100vh;
}
.portal-sidebar {
  background: white;
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: auto;
  z-index: 2;
}
.portal-brand {
  padding: 25px 20px 12px;
  display: block;
}
.portal-brand img {
  width: 100%;
  object-fit: contain;
}
.sidebar-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 0 24px 22px;
  color: var(--muted);
  font-weight: 700;
}
.portal-sidebar nav {
  padding: 0 12px;
  display: grid;
  gap: 3px;
}
.portal-sidebar nav a {
  text-decoration: none;
  color: #4b626e;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 14px;
}
.portal-sidebar nav a:hover {
  background: #f3f7f8;
}
.portal-sidebar nav a[aria-current] {
  background: #e8f2f3;
  color: #205e69;
  font-weight: 700;
}
.sidebar-account {
  margin-top: auto;
  padding: 25px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-direction: column;
  font-size: 13px;
  color: var(--muted);
}
.sidebar-account button {
  font-size: 12px;
  padding: 5px 12px;
}
.portal-workspace {
  margin-left: 248px;
  min-width: 0;
  width: calc(100% - 248px);
}
.test-banner {
  background: #fff3e8;
  color: #835231;
  font-size: 12px;
  text-align: center;
  padding: 9px 20px;
  border-bottom: 1px solid #f2dfcc;
}
.portal-topbar {
  padding: 16px 38px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.product-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.product-selector label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.product-selector select {
  width: 320px;
}
.portal-topbar > a {
  white-space: nowrap;
  font-size: 13px;
}
#portal-main {
  max-width: 1220px;
  margin: auto;
  padding: 36px 38px 50px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.score {
  font-size: 11px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  color: var(--muted);
}
.score strong {
  color: var(--teal);
  font-size: 14px;
  margin-left: 7px;
}
.portal-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 8px #203b4803;
}
.stack {
  max-width: 780px;
}
.stack > .primary {
  align-self: start;
}
.actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.notice {
  border: 1px solid #e8d8a8;
  background: #fff9e9;
  color: #795e23;
  padding: 13px 17px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 14px;
}
.notice.error {
  background: #fff1f0;
  color: #a0372c;
  border-color: #f0c4bf;
}
.notice.success {
  background: #eaf7f0;
  color: #236448;
  border-color: #bcdfce;
}
.editor {
  margin: 0 0 25px;
  border: 1px solid #b9cbd2;
  border-radius: 8px;
  overflow: hidden;
}
.editor-toolbar {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  padding: 9px;
  background: #f6f9fa;
  border-bottom: 1px solid var(--line);
}
.editor-toolbar button {
  font-size: 12px;
  padding: 4px 9px;
  background: transparent;
  border-color: transparent;
}
.editor-visual {
  display: none;
  min-height: 260px;
  padding: 18px 22px;
}
.editor-ready .editor-visual {
  display: block;
}
.editor-ready .editor-toolbar {
  display: flex;
}
.editor-source {
  display: block;
  font-size: 12px;
  padding: 10px;
}
.editor-source textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}
.editor-ready .editor-source {
  display: none;
}
.editor-ready.show-source .editor-source {
  display: block;
}
.editor-ready.show-source .editor-visual {
  display: none;
}
.editor .hint {
  margin: 0;
  padding: 8px 15px;
  border-top: 1px solid var(--line);
  background: #f9fbfc;
}
.usp-row {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #edf1f3;
  padding: 18px 0;
}
.usp-row .field {
  flex: 1;
  margin: 0;
}
.usp-list {
  margin-bottom: 22px;
}
.row-number {
  font-size: 12px;
  color: var(--muted);
  width: 15px;
}
.portal-body .danger-link {
  border: 0;
  color: #a94a38;
  padding: 5px 8px;
  font-size: 12px;
  background: transparent;
}
.section-divider {
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.media-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.media-image {
  height: 160px;
  background: #f7fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
.media-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-caption {
  padding: 15px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.media-actions {
  border-top: 1px solid var(--line);
  padding: 10px;
  display: flex;
  gap: 7px;
}
.media-actions button {
  padding: 4px 10px;
}
.media-actions .danger-link {
  margin-left: auto;
}
.upload-zone {
  border: 1px dashed #95b7c0;
  background: #f8fbfc;
  padding: 25px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  margin-bottom: 20px;
  gap: 10px;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 25px;
}
.spec-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f3;
  font-size: 13px;
}
.spec-field input {
  width: 100%;
}
.check-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.check-field input {
  width: 18px;
}
.extra-specs {
  margin: 25px 0;
}
.portal-body summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  color: var(--teal);
}
.portal-body fieldset {
  margin: 0;
  border: 0;
  padding: 0;
  min-width: 0;
}
.portal-body legend {
  font-weight: 600;
  margin: 12px 0;
}
.include-field {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
[data-extra-field] {
  padding: 15px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
[data-extra-field] fieldset:disabled {
  opacity: 0.45;
}
.sticky-save {
  position: sticky;
  bottom: 0;
  background: #fffffff0;
  padding: 18px 0 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
}
.metrics > div {
  background: #f0f7f8;
  border: 1px solid #d9e9ec;
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metrics > div:first-child {
  background: #fff4ed;
  border-color: #f6e1d6;
}
.metrics span {
  font-size: 13px;
  color: var(--muted);
}
.metrics strong {
  font-size: 40px;
  line-height: 1.2;
}
.report-chart {
  width: 100%;
  max-height: 300px;
}
.portal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.portal-body th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
}
.portal-body th,
.portal-body td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.table-scroll {
  overflow-x: auto;
}
.outbox {
  border-top: 1px solid var(--line);
  margin-top: 35px;
}
.outbox ul {
  padding: 0;
  list-style: none;
}
.outbox li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f3;
  gap: 15px;
  font-size: 13px;
}
.outbox li span {
  color: var(--muted);
}
.message {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px 18px;
  margin-bottom: 14px;
}
.message summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.message time {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.message-compose {
  background: #f6fafb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 20px;
}
.recipient-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 15px 0;
}
.recipient-list label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 7px;
}
.recipient-list select {
  width: 100%;
  font-size: 12px;
}
.profile-details {
  display: grid;
  grid-template-columns: 140px 1fr;
  font-size: 14px;
}
.profile-details dt {
  color: var(--muted);
}
.profile-details dd {
  margin: 0 0 12px;
}
.preview-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
}
.preview-specs dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.preview-image {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.portal-prose {
  overflow-wrap: anywhere;
}
.portal-prose table {
  height: auto !important;
}
.portal-footer {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 0 25px 30px;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: #205766;
  color: white;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story > img {
  background: white;
  border-radius: 8px;
  padding: 12px;
  width: 255px;
}
.login-story h1 {
  font-size: 50px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.login-story p {
  max-width: 410px;
  color: #d2e4e9;
}
.login-story .eyebrow {
  color: #92c7d1;
}
.login-story > p {
  font-size: 12px;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 50px;
}
.login-card {
  width: 100%;
  max-width: 390px;
}
.login-card > p {
  color: var(--muted);
}
.login-card .primary {
  width: 100%;
  margin: 6px 0 22px;
}
.login-card > a {
  font-size: 13px;
}
.login-card > .hint {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link {
  position: fixed;
  left: 10px;
  top: -100px;
  z-index: 20;
  background: white;
  padding: 15px;
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .portal-sidebar {
    width: 210px;
  }
  .portal-workspace {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  .portal-topbar {
    padding: 15px 24px;
  }
  .product-selector select {
    width: 240px;
  }
  #portal-main {
    padding: 28px 24px;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .score {
    display: none;
  }
  .portal-topbar > a {
    display: none;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 42px;
  }
}
@media (max-width: 760px) {
  .portal-layout {
    display: block;
  }
  .portal-sidebar {
    position: relative;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .portal-brand {
    padding: 15px 20px 3px;
    width: 205px;
  }
  .sidebar-label {
    display: none;
  }
  .portal-sidebar nav {
    display: flex;
    overflow-x: auto;
    padding: 8px 12px;
    gap: 0;
  }
  .portal-sidebar nav a {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 12px;
  }
  .sidebar-account {
    position: absolute;
    top: 18px;
    right: 15px;
    padding: 0;
    margin: 0;
  }
  .sidebar-account > span {
    display: none;
  }
  .portal-workspace {
    width: 100%;
    margin: 0;
  }
  .test-banner {
    font-size: 11px;
    padding: 7px 18px;
  }
  .portal-topbar {
    padding: 12px 18px;
  }
  .product-selector {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }
  .product-selector select {
    flex: 1;
    min-width: 0;
    width: auto;
  }
  .product-selector label {
    display: none;
  }
  #portal-main {
    padding: 25px 15px;
  }
  .portal-panel {
    padding: 20px 17px;
  }
  .portal-body h1 {
    font-size: 27px;
  }
  .portal-body h2 {
    font-size: 19px;
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .media-grid {
    gap: 12px;
  }
  .media-image {
    height: 115px;
  }
  .media-actions {
    flex-wrap: wrap;
    padding: 7px;
    gap: 4px;
  }
  .media-actions .danger-link {
    margin-left: 0;
  }
  .media-caption {
    padding: 10px;
  }
  .usp-row {
    gap: 9px;
    flex-wrap: wrap;
  }
  .usp-row .danger-link {
    margin-left: 24px;
  }
  .metrics {
    gap: 12px;
  }
  .metrics > div {
    padding: 17px;
  }
  .metrics strong {
    font-size: 32px;
  }
  .recipient-list {
    grid-template-columns: 1fr;
  }
  .message summary {
    display: block;
  }
  .message time {
    display: block;
    margin-top: 7px;
  }
  .outbox li {
    display: block;
    overflow-wrap: anywhere;
  }
  .outbox li span {
    display: block;
  }
  .login-layout {
    display: block;
  }
  .login-story {
    display: none;
  }
  .login-main {
    padding: 55px 25px;
    min-height: 100vh;
  }
  .actions {
    gap: 15px;
    font-size: 13px;
    flex-wrap: wrap;
  }
  .preview-specs {
    grid-template-columns: 1fr;
  }
  .preview-specs dd {
    margin-bottom: 12px;
  }
}
.spec-group {
  border: 1px solid var(--line, #d8e2e5);
  border-radius: 10px;
  margin: 12px 0;
  background: #fff;
}
.spec-group > summary {
  padding: 16px;
  font-weight: 650;
  cursor: pointer;
}
.spec-group > summary > span {
  float: right;
  color: #6a7b84;
  font-size: 13px;
  font-weight: 400;
}
.spec-group > .spec-grid {
  padding: 0 16px 16px;
}
.preview-video {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  margin: 20px 0;
}
.portal-prose {
  overflow-wrap: anywhere;
}
