:root {
  --ink: #293f4a;
  --ink-soft: #6b7e89;
  --lake: #1768e5;
  --sky: #1768e5;
  --pine: #3e7e3c;
  --sand: #cd7847;
  --cloud: #ffffff;
  --white: #ffffff;
  --line: #d8e3e8;
  --danger: #b84444;
  --warning: #9b6721;
  --shadow: 0 18px 45px rgba(41, 63, 74, 0.11);
  --radius: 15px;
  --font-display: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-data: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lake); }
a:hover { color: var(--sky); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sky) 45%, transparent);
  outline-offset: 2px;
}

.app-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: auto 1fr auto;
  min-height: 74px;
  padding: 0 4vw;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand-mark {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: -0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark > span:last-child span { color: var(--sky); }

.signal-beacon {
  align-items: center;
  background: color-mix(in srgb, var(--sky) 14%, white);
  border-radius: 50%;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
}

.signal-beacon::before,
.signal-beacon::after {
  border: 2px solid var(--sky);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  position: absolute;
  transform: rotate(-45deg);
}

.signal-beacon::before { height: 19px; width: 19px; }
.signal-beacon::after { height: 10px; width: 10px; }
.signal-beacon i { background: var(--lake); border-radius: 50%; height: 4px; margin-top: 18px; width: 4px; }

.app-nav { align-items: stretch; display: flex; gap: 4px; height: 74px; }
.nav-link { align-items: center; border-bottom: 3px solid transparent; color: var(--ink-soft); display: flex; font-size: 13px; font-weight: 700; padding: 3px 13px 0; text-decoration: none; }
.nav-link:hover { background: var(--cloud); color: var(--ink); }
.nav-link.is-active { border-bottom-color: var(--sky); color: var(--lake); }

.account-menu { align-items: center; display: flex; gap: 14px; }
.account-menu > span { display: grid; line-height: 1.25; text-align: right; }
.account-menu small { color: var(--ink-soft); font-size: 11px; }

.app-main { margin: 0 auto; max-width: 1500px; padding: 38px 4vw 70px; }
.auth-main { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 24px; }

.page-header { align-items: end; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 28px; }
.page-header h1, .section-header h2, .auth-card h1 { font-family: var(--font-display); letter-spacing: -0.035em; margin: 0; }
.page-header h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1; }
.page-header p { color: var(--ink-soft); margin: 8px 0 0; max-width: 680px; }
.page-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; }

.eyebrow { color: var(--lake); font-family: var(--font-data); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; margin: 0 0 8px; text-transform: uppercase; }

.button {
  align-items: center;
  background: var(--lake);
  border: 1px solid var(--lake);
  border-radius: 9px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  gap: 7px;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  text-decoration: none;
}

.button:hover { background: #0b4964; color: white; }
.button--secondary { background: white; border-color: var(--line); color: var(--ink); }
.button--secondary:hover { background: var(--cloud); color: var(--lake); }
.button--quiet { background: transparent; border-color: transparent; color: var(--ink-soft); }
.button--quiet:hover { background: var(--cloud); color: var(--ink); }
.button--small { font-size: 12px; min-height: 34px; padding: 6px 10px; }
.button--danger { background: var(--danger); border-color: var(--danger); }

.summary-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 28px; }
.summary-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); min-height: 122px; padding: 20px; position: relative; }
.summary-card::after { background: var(--sky); border-radius: 8px; content: ""; height: 5px; position: absolute; right: 18px; top: 18px; width: 24px; }
.summary-card--pine::after { background: var(--pine); }
.summary-card--sand::after { background: var(--sand); }
.summary-card--muted::after { background: #9babb3; }
.summary-card span { color: var(--ink-soft); display: block; font-size: 12px; font-weight: 700; margin-bottom: 9px; text-transform: uppercase; }
.summary-card strong { display: block; font-family: var(--font-display); font-size: 37px; letter-spacing: -0.04em; line-height: 1; }
.summary-card small { color: var(--ink-soft); display: block; margin-top: 9px; }

.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(16, 42, 58, 0.02); overflow: hidden; }
.panel + .panel { margin-top: 20px; }
.panel__header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 18px 20px; }
.panel__header h2 { font-family: var(--font-display); font-size: 23px; letter-spacing: -0.025em; margin: 0; }
.panel__body { padding: 22px; }

.data-table { border-collapse: collapse; width: 100%; }
.data-table th { color: var(--ink-soft); font-family: var(--font-data); font-size: 10px; letter-spacing: 0.08em; padding: 12px 18px; text-align: left; text-transform: uppercase; }
.data-table td { border-top: 1px solid var(--line); padding: 16px 18px; vertical-align: middle; }
.data-table tbody tr:hover { background: #f8fbfc; }
.data-table a.primary-link { color: var(--ink); font-weight: 750; text-decoration: none; }
.data-table a.primary-link:hover { color: var(--lake); text-decoration: underline; }
.subtext { color: var(--ink-soft); display: block; font-size: 12px; margin-top: 3px; }
.data { font-family: var(--font-data); font-size: 12px; }
.number { font-family: var(--font-display); font-size: 23px; font-weight: 750; }

.status-badge { align-items: center; background: #edf2f4; border-radius: 999px; color: var(--ink-soft); display: inline-flex; font-size: 11px; font-weight: 800; gap: 6px; padding: 5px 9px; text-transform: uppercase; white-space: nowrap; }
.status-badge::before { background: currentColor; border-radius: 50%; content: ""; height: 6px; width: 6px; }
.status-badge--online, .status-badge--authorized { background: #e5f5ef; color: var(--pine); }
.status-badge--offline, .status-badge--failed { background: #faeaea; color: var(--danger); }
.status-badge--pending { background: #fff3df; color: var(--warning); }

.split-layout { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr); }
.detail-list { display: grid; gap: 0; margin: 0; }
.detail-row { border-bottom: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 155px 1fr; padding: 13px 0; }
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.detail-row dd { margin: 0; overflow-wrap: anywhere; }

.empty-state { color: var(--ink-soft); padding: 48px 24px; text-align: center; }
.empty-state strong { color: var(--ink); display: block; font-family: var(--font-display); font-size: 24px; margin-bottom: 6px; }

.form-shell { margin: 0 auto; max-width: 820px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 750; }
.field small { color: var(--ink-soft); }
.field input, .field select, .field textarea {
  background: white;
  border: 1px solid #bdcdd5;
  border-radius: 9px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}
.field input[type="color"] { padding: 5px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 18%, transparent); outline: 0; }
.form-actions { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; padding-top: 20px; }
.form-errors { background: #fff1f1; border: 1px solid #efbcbc; border-radius: 10px; color: #8d3030; margin-bottom: 20px; padding: 14px 16px; }
.form-errors ul { margin: 7px 0 0; padding-left: 20px; }

.portal-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.portal-card__stripe { background: var(--portal-card-color); height: 7px; }
.portal-card__body { padding: 21px; }
.portal-card__header { align-items: center; display: flex; gap: 14px; justify-content: space-between; }
.portal-card h2 { font-family: var(--font-display); font-size: 25px; margin: 0; }
.portal-card p { color: var(--ink-soft); }
.portal-card__footer { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin: 18px -21px -21px; padding: 13px 21px; }
.color-chips { display: flex; gap: 5px; }
.color-chip { border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); height: 18px; width: 18px; }

.filter-bar { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(200px, 1fr) minmax(180px, 0.5fr) auto; margin-bottom: 18px; }

.flash-stack { left: 50%; max-width: 520px; position: fixed; top: 86px; transform: translateX(-50%); width: calc(100% - 32px); z-index: 50; }
.flash { background: var(--ink); border-radius: 9px; box-shadow: var(--shadow); color: white; padding: 12px 16px; text-align: center; }
.flash--alert { background: var(--danger); }

.auth-card { background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-width: 430px; padding: 34px; width: 100%; }
.auth-card .brand-mark { margin-bottom: 28px; }
.auth-card h1 { font-size: 36px; }
.auth-card > p { color: var(--ink-soft); margin: 6px 0 25px; }
.auth-card .field + .field { margin-top: 15px; }
.auth-card .button { margin-top: 20px; width: 100%; }
.auth-card__footer { border-top: 1px solid var(--line); font-size: 13px; margin-top: 24px; padding-top: 18px; text-align: center; }

.token-box { background: #102a3a; border-radius: 10px; color: #e8f7fb; font-family: var(--font-data); font-size: 12px; overflow-wrap: anywhere; padding: 15px; }
.warning-box { background: #fff7e9; border: 1px solid #efd39e; border-radius: 10px; color: #76511f; padding: 14px 16px; }
.code-block { background: #102a3a; border-radius: 10px; color: #dcecf2; font-family: var(--font-data); font-size: 12px; overflow-x: auto; padding: 18px; white-space: pre; }

.portal-body { background: #edf4f6; min-height: 100vh; }
.portal-stage { display: grid; min-height: 100vh; padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); place-items: center; position: relative; }
.portal-stage::before { background: var(--portal-primary); clip-path: polygon(0 0, 100% 0, 100% 64%, 0 82%); content: ""; height: 48%; left: 0; position: absolute; top: 0; width: 100%; }
.portal-panel { background: white; border-radius: 22px; box-shadow: 0 22px 70px rgba(16, 42, 58, 0.2); max-width: 470px; overflow: hidden; position: relative; width: 100%; }
.portal-panel__masthead { background: color-mix(in srgb, var(--portal-primary) 6%, white); border-bottom: 1px solid #dce7eb; padding: 28px 30px 22px; text-align: center; }
.portal-logo { display: block; margin: 0 auto 18px; max-height: 72px; max-width: 210px; object-fit: contain; }
.portal-wordmark { align-items: center; color: var(--portal-primary); display: inline-flex; font-family: var(--font-display); font-size: 20px; font-weight: 800; gap: 8px; letter-spacing: -0.02em; text-transform: uppercase; }
.portal-wordmark .signal-beacon { background: color-mix(in srgb, var(--portal-primary) 12%, white); }
.portal-wordmark .signal-beacon::before, .portal-wordmark .signal-beacon::after { border-right-color: var(--portal-primary); border-top-color: var(--portal-primary); }
.portal-wordmark .signal-beacon i { background: var(--portal-primary); }
.portal-panel__body { padding: 28px 30px 30px; }
.portal-panel h1 { font-family: var(--font-display); font-size: 35px; letter-spacing: -0.04em; line-height: 1.05; margin: 0; text-align: center; }
.portal-welcome { color: var(--ink-soft); margin: 10px auto 23px; max-width: 350px; text-align: center; }
.property-label { color: var(--portal-primary); font-family: var(--font-data); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; margin-bottom: 8px; text-align: center; text-transform: uppercase; }
.portal-form { display: grid; gap: 14px; }
.portal-form .button { background: var(--portal-primary); border-color: var(--portal-primary); font-size: 16px; min-height: 51px; margin-top: 3px; }
.portal-form .field input { font-size: 16px; min-height: 49px; }
.portal-privacy { color: #70838d; font-size: 11px; margin: 18px 0 0; text-align: center; }
.portal-foot { color: rgba(255,255,255,.82); font-size: 11px; margin-top: 16px; position: relative; text-align: center; }
.portal-state { padding: 45px 30px; text-align: center; }
.portal-state h1 { margin-top: 18px; }
.portal-state p { color: var(--ink-soft); }
.state-icon { align-items: center; background: color-mix(in srgb, var(--portal-primary) 12%, white); border-radius: 50%; color: var(--portal-primary); display: inline-flex; font-size: 26px; height: 60px; justify-content: center; width: 60px; }

@media (max-width: 1020px) {
  .app-header { gap: 14px; grid-template-columns: auto 1fr; padding: 0 20px; }
  .app-nav { grid-column: 1 / -1; height: auto; margin: -7px -20px 0; overflow-x: auto; padding: 0 20px; }
  .nav-link { min-height: 45px; white-space: nowrap; }
  .account-menu { justify-self: end; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .app-main { padding: 26px 16px 50px; }
  .account-menu > span { display: none; }
  .page-header { align-items: start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .summary-grid, .portal-grid, .form-grid, .split-layout { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .panel { overflow-x: auto; }
  .data-table { min-width: 700px; }
  .filter-bar { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 3px; }
  .portal-panel__masthead, .portal-panel__body { padding-left: 22px; padding-right: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .portal-panel { animation: panel-arrival 380ms cubic-bezier(.2,.8,.2,1) both; }
  @keyframes panel-arrival { from { opacity: 0; transform: translateY(12px) scale(.99); } }
}

/* Admin UI: deliberately quiet, table-first property operations. */
.app-header {
  background: white;
  border-bottom: 1px solid var(--line);
  display: block;
  min-height: 0;
  padding: 28px 2vw 0;
  position: static;
}

.app-header__top { align-items: center; display: flex; justify-content: space-between; }
.app-header__top p { color: var(--ink-soft); font-size: 17px; margin: 0; }
.product-title { color: var(--ink); display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.08; text-decoration: none; }
.product-title:hover { color: var(--ink); }
.app-nav { align-items: stretch; display: flex; gap: 24px; height: auto; margin-top: 17px; overflow-x: auto; }
.nav-link { align-items: center; border-bottom: 4px solid transparent; color: var(--ink-soft); display: flex; font-size: 17px; font-weight: 700; min-height: 43px; padding: 0; text-decoration: none; white-space: nowrap; }
.nav-link:hover { background: transparent; color: var(--ink); }
.nav-link.is-active { border-bottom-color: var(--sky); color: var(--ink); }

.app-main { margin: 0 auto; max-width: 1800px; padding: 32px 2vw 70px; }
.button { border-radius: 999px; min-height: 48px; padding: 10px 22px; }
.button:hover { background: #0e5bcc; }
.button--secondary:hover { background: #fafcfb; color: var(--ink); }
.button--small { min-height: 36px; padding: 7px 13px; }

.summary-grid { gap: 18px; margin-bottom: 38px; }
.summary-card { background: #fdfefc; min-height: 143px; padding: 22px 24px; }
.summary-card::after { display: none; }
.summary-card strong { font-size: 36px; line-height: 1.1; }
.text-success { color: var(--pine); }
.panel { box-shadow: none; }
.data-table th { background: #fdfefc; color: #8a9aa3; font-family: var(--font-body); font-size: 12px; padding: 14px 22px; }
.data-table td { border-top-color: #e8ece9; padding: 18px 22px; }
.property-summary { align-items: center; display: flex; gap: 13px; }
.status-dot { background: #a6b2b8; border-radius: 50%; flex: 0 0 10px; height: 10px; width: 10px; }
.status-dot--online { background: #3b9b61; }
.status-dot--offline { background: #cf5044; }

.portal-grid { gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-card__stripe { align-items: center; background: color-mix(in srgb, var(--portal-card-color) 10%, white); display: flex; height: 128px; justify-content: center; }
.portal-card__monogram { align-items: center; background: var(--portal-card-color); border-radius: 18px; color: white; display: flex; font-size: 21px; font-weight: 800; height: 64px; justify-content: center; width: 64px; }
.portal-card--new { align-items: center; border-style: dashed; color: var(--ink-soft); display: flex; flex-direction: column; justify-content: center; min-height: 265px; text-decoration: none; }
.portal-card--new span { font-size: 33px; font-weight: 400; }
.portal-card--new:hover { background: #fafcfb; color: var(--lake); }
.table-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.row-actions { align-items: center; display: flex; gap: 6px; justify-content: flex-end; }
.text-danger { color: var(--danger); }
.back-link { color: var(--ink); display: inline-block; font-weight: 700; margin-bottom: 18px; text-decoration: none; }
.portal-editor { align-items: start; display: grid; gap: 50px; grid-template-columns: minmax(550px, 1.25fr) minmax(350px, .75fr); margin: 0 auto; max-width: 1450px; }
.portal-editor__form { box-shadow: 0 2px 0 #cfd8d2; }
.portal-editor__form h1 { font-size: 32px; letter-spacing: -.03em; margin: 8px 0 0; }
.portal-editor__form > .panel__body > .subtext { font-size: 15px; margin-bottom: 26px; }
.live-preview { position: sticky; text-align: center; top: 28px; }
.live-preview .eyebrow { color: var(--ink-soft); font-family: var(--font-body); font-size: 13px; }
.phone-frame { background: var(--ink); border-radius: 47px; margin: 14px auto 15px; max-width: 390px; padding: 13px; }
.phone-screen { background: white; border-radius: 35px; min-height: 620px; padding: 45px 30px 34px; }
.preview-monogram { align-items: center; background: var(--preview-color); border-radius: 19px; color: white; display: flex; font-size: 24px; font-weight: 800; height: 78px; justify-content: center; margin: 0 auto 27px; width: 78px; }
.phone-screen h2 { font-size: 25px; letter-spacing: -.03em; line-height: 1.2; margin: 0 0 10px; }
.phone-screen > p { color: #8798a2; margin: 0 auto 27px; max-width: 270px; }
.preview-input { border: 1px solid #d9e0db; border-radius: 15px; color: #899ba6; margin-top: 12px; padding: 16px; text-align: left; }
.preview-button { background: var(--preview-color); border-radius: 15px; color: white; font-size: 17px; font-weight: 800; margin-top: 15px; padding: 16px; }
.phone-screen small { color: #84959f; display: block; margin: 27px auto 0; max-width: 260px; }
.preview-link { font-size: 17px; font-weight: 800; text-decoration: none; }

@media (max-width: 980px) {
  .portal-editor { grid-template-columns: 1fr; }
  .live-preview { position: static; }
}

.portal-wordmark { align-items: center; background: var(--portal-primary); border-radius: 18px; color: white; display: inline-flex; font-size: 22px; height: 70px; justify-content: center; min-width: 70px; padding: 0 18px; }
.portal-foot a { color: inherit; font-weight: 700; }

.section-block { margin-top: 8px; }
.section-header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 10px; }
.section-header h2 { font-size: 22px; }
.section-header a { font-weight: 700; text-decoration: none; }
.activity-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.activity-row { align-items: center; color: var(--ink); display: grid; gap: 16px; grid-template-columns: 46px minmax(240px, 1fr) minmax(180px, .55fr) minmax(150px, .35fr); padding: 15px 22px; text-decoration: none; }
.activity-row + .activity-row { border-top: 1px solid #e8ece9; }
.activity-row:hover { background: #fafcfb; color: var(--ink); }
.activity-row time { color: #84959f; text-align: right; }
.activity-person { display: grid; line-height: 1.25; }
.activity-person small { color: #84959f; }
.avatar { align-items: center; background: #3f8745; border-radius: 50%; color: white; display: flex; font-size: 13px; font-weight: 800; height: 42px; justify-content: center; width: 42px; }
.avatar--1 { background: #cb7547; }
.avatar--2 { background: #885eb7; }
.avatar--3 { background: #1768e5; }
.avatar--4 { background: #2c756d; }
.alert-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); margin-top: 34px; }
.operation-alert { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.operation-alert--danger { background: #fff6f4; border-color: #f1cec8; }
.operation-alert h3 { margin: 0 0 7px; }
.operation-alert--danger h3 { color: #ab3f32; }
.operation-alert p { color: #465b67; margin: 0 0 14px; }
.operation-alert a { font-weight: 700; text-decoration: none; }

.connection-toggle { align-items: center; border: 1px solid var(--line); border-radius: 12px; display: flex; justify-content: space-between; padding: 15px 16px; }
.connection-toggle small { display: block; font-weight: 400; }
.connection-toggle input[type="checkbox"] { accent-color: var(--lake); min-height: 22px; width: 22px; }

.import-header { margin-bottom: 20px; }
.source-ribbon { align-items: center; background: #f5f8fb; border: 1px solid #dbe5eb; border-radius: var(--radius); display: grid; grid-template-columns: minmax(170px, auto) minmax(100px, 1fr) minmax(170px, auto); margin-bottom: 20px; overflow: hidden; padding: 14px; }
.source-ribbon__endpoint { background: white; border: 1px solid var(--line); border-radius: 11px; display: grid; line-height: 1.25; padding: 12px 15px; }
.source-ribbon__endpoint small { color: var(--ink-soft); font-size: 11px; }
.source-ribbon__endpoint--destination { box-shadow: inset 4px 0 0 var(--lake); }
.source-ribbon__line { align-items: center; display: flex; color: var(--lake); font-size: 20px; font-weight: 800; gap: 9px; justify-content: center; }
.source-ribbon__line::before, .source-ribbon__line::after { background: #b8cfec; content: ""; height: 2px; width: 34%; }
.source-picker { align-items: end; display: flex; gap: 10px; margin-bottom: 16px; max-width: 480px; }
.source-picker .field { flex: 1; }
.catalog-panel { overflow: visible; }
.catalog-list { display: grid; }
.catalog-row { align-items: center; cursor: pointer; display: grid; gap: 16px; grid-template-columns: 24px minmax(0, 1fr) auto; min-height: 76px; padding: 14px 20px; }
.catalog-row + .catalog-row { border-top: 1px solid #e8ece9; }
.catalog-row:hover { background: #f8fbfc; }
.catalog-row:has(input:checked) { background: #f0f6ff; box-shadow: inset 4px 0 0 var(--lake); }
.catalog-row--select-all { background: #fdfefc; min-height: 0; padding: 12px 20px; }
.catalog-row--select-all:has(input:checked) { background: #fdfefc; box-shadow: none; }
.catalog-row--select-all strong { font-size: 14px; }
.catalog-row input { accent-color: var(--lake); height: 20px; width: 20px; }
.catalog-row__body { display: grid; line-height: 1.35; }
.catalog-row__body strong { font-size: 16px; }
.catalog-row__body small { color: var(--ink-soft); }
.catalog-row__action { color: var(--lake); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.catalog-actions { align-items: center; background: #fdfefc; border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 16px 20px; }
.catalog-actions > span { color: var(--ink-soft); font-size: 13px; }

@media (max-width: 1020px) {
  .app-header { padding: 22px 20px 0; }
  .app-header__top { align-items: flex-start; gap: 18px; }
  .app-header__top .page-actions { justify-content: flex-end; }
  .app-header__top .button--secondary { display: none; }
  .app-nav { margin: 14px 0 0; padding: 0; }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .product-title { font-size: 31px; }
  .app-header__top p { font-size: 13px; }
  .app-header__top .page-actions { display: flex; }
  .app-header__top .page-actions > a { display: none; }
  .portal-grid, .alert-grid { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: 42px 1fr; }
  .activity-row > span:nth-child(3), .activity-row time { grid-column: 2; text-align: left; }
  .row-actions { align-items: stretch; flex-direction: column; }
  .source-ribbon { grid-template-columns: 1fr; }
  .source-ribbon__line { min-height: 42px; transform: rotate(90deg); }
  .catalog-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .catalog-row { grid-template-columns: 24px minmax(0, 1fr); }
  .catalog-row > :last-child { grid-column: 2; justify-self: start; }
}
