.owner-portal { min-height: 100svh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); }
.portal-header { display: flex; align-items: center; gap: 24px; min-height: 88px; padding: 12px 5%; border-bottom: 1px solid #ececef; background: #fff; }
.portal-header > span { color: #76747c; font-size: 11px; }
.portal-home { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.owner-portal main { flex: 1; }
.portal-entry { max-width: 460px; padding: 36px 24px 28px; margin: auto; text-align: center; }
.entry-art { width: 116px; height: 116px; object-fit: contain; margin: 0 auto 16px; animation: entry-arrive .7s ease both; }
.portal-entry h1 { margin: 8px 0 14px; font-size: 36px; line-height: 1.25; }
.portal-entry .eyebrow { font-size: 10px; color: var(--green); }
.entry-copy { font-size: 14px; color: #73717b; }
.code-form { text-align: left; display: grid; gap: 12px; margin: 32px 0 20px; }
.code-form > label { font-size: 13px; font-weight: 600; }
.code-form > input, .portal-filters input, .portal-filters select { min-height: 52px; width: 100%; border: 1px solid #dcdce3; border-radius: 8px; background: #fff; padding: 12px 16px; font: inherit; min-width: 0; }
.code-form > input { font-family: ui-monospace, monospace; font-size: 16px; }
.code-visibility { display: flex; gap: 8px; align-items: center; color: #73717b; min-height: 44px; }
.code-visibility input { width: 18px; height: 18px; accent-color: #b84572; }
.code-form .button { justify-content: center; width: 100%; min-height: 54px; background: var(--pink); color: #fff; border: 0; box-shadow: none; }
.code-form .button .icon { filter: invert(1); }
.entry-help { font-size: 12px; line-height: 1.9; color: #76747c; }
.entry-app { display: inline-flex; gap: 4px; align-items: center; color: #9b4267; font-size: 12px; min-height: 44px; }
.portal-workspace { max-width: 1240px; margin: auto; padding: 40px 40px 24px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.workspace-heading h1 { font-size: 32px; margin: 8px 0; line-height: 1.35; overflow-wrap: anywhere; }
.workspace-heading p { font-size: 13px; color: #73717b; }
.workspace-heading .eyebrow { font-size: 10px; color: #9b4267; }
.workspace-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.shop-status { border-radius: 20px; background: #eaf3ee; padding: 8px 12px; color: #386b54; font-size: 11px; }
.refresh-button { width: 44px; height: 44px; border: 1px solid #dcdce3; background: #fff; border-radius: 50%; font-size: 24px; cursor: pointer; }
.portal-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 32px 0; border-block: 1px solid #e4e4e9; }
.portal-metrics > div { padding: 24px; border-right: 1px solid #e4e4e9; }
.portal-metrics > div:last-child { border-right: 0; }
.portal-metrics span, .portal-metrics small { display: block; font-size: 12px; color: #73717b; }
.portal-metrics strong { display: block; font-size: 32px; margin: 8px 0; font-variant-numeric: tabular-nums; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e4e4e9; }
.workspace-toolbar > small { font-size: 11px; color: #73717b; }
.portal-tabs { display: flex; gap: 24px; }
.portal-tabs button { border: 0; border-bottom: 3px solid transparent; background: none; padding: 16px 0; font: inherit; font-size: 14px; color: #73717b; cursor: pointer; white-space: nowrap; }
.portal-tabs button[aria-selected="true"] { border-color: var(--pink); color: var(--pink); font-weight: 700; }
.portal-filters { display: flex; align-items: center; gap: 12px; padding: 20px 0; }
.portal-filters input { max-width: 320px; }
.portal-filters select { max-width: 180px; }
.portal-filters small { margin-left: auto; font-size: 11px; color: #73717b; white-space: nowrap; }
.portal-list-heading { display: flex; justify-content: space-between; gap: 12px; padding-top: 24px; }
.portal-list-heading h2 { margin: 0; font-size: 17px; }
.portal-list-heading small { color: #73717b; font-size: 12px; }
.portal-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); animation: entry-arrive var(--motion-feedback) var(--motion-ease) both; }
.portal-row strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.portal-row small { color: #73717b; font-size: 11px; line-height: 1.7; }
.portal-row .row-detail { text-align: right; font-size: 13px; }
.row-status { padding: 7px 12px; font-size: 11px; background: #f0f0f3; border-radius: 20px; white-space: nowrap; }
.row-status[data-pending="true"] { color: #9b4267; background: #fbeaf1; }
.portal-empty { color: #73717b; text-align: center; padding: 44px 16px; font-size: 14px; }
.workspace-note { margin-top: 24px; color: #73717b; font-size: 11px; line-height: 1.8; }
.portal-status { max-width: 460px; margin: 0 auto; padding: 0 24px 20px; text-align: center; color: #9b4267; font-size: 13px; line-height: 1.7; }
.portal-status:empty { padding: 0; }
.portal-footer { display: flex; justify-content: space-between; border-top: 1px solid #ececef; padding: 20px 5%; font-size: 11px; color: #76747c; }
.owner-portal button:disabled { opacity: .55; cursor: wait; }
.owner-portal :focus-visible { outline: 3px solid #c65b87; outline-offset: 4px; }
.owner-portal :is(input, select) { transition: border-color var(--motion-feedback), box-shadow var(--motion-feedback); }
.owner-portal :is(input, select):focus-visible { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink-light); }
@keyframes entry-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .portal-header { min-height: 72px; gap: 12px; }
  .portal-header > span { display: none; }
  .portal-entry { padding-top: 24px; }
  .portal-workspace { padding: 24px 20px; }
  .workspace-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .workspace-actions { width: 100%; }
  .workspace-actions .shop-status { margin-right: auto; }
  .workspace-heading h1 { font-size: 26px; }
  .portal-metrics { margin: 24px 0; }
  .portal-metrics > div { padding: 16px 10px; }
  .portal-metrics strong { font-size: 28px; }
  .portal-metrics small { font-size: 10px; }
  .workspace-toolbar { display: block; }
  .workspace-toolbar > small { display: block; margin-bottom: 8px; }
  .portal-tabs { justify-content: space-between; gap: 12px; }
  .portal-tabs button { font-size: 13px; }
  .portal-filters { flex-wrap: wrap; gap: 8px; }
  .portal-filters input { flex: 1; max-width: none; width: 55%; }
  .portal-filters select { width: 38%; }
  .portal-filters small { width: 100%; }
  .portal-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
  .portal-row .row-detail { grid-column: 1; text-align: left; grid-row: 2; }
  .row-status { grid-column: 2; grid-row: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) { .entry-art { animation: none; } }
