.owner-frame, .ow-login {
  --ow-ink: #182b40;
  --ow-muted: #52657a;
  --ow-brand: #234f80;
  --ow-tint: #e9f0f8;
  --ow-line: #dce3ea;
  --brand: var(--ow-brand);
  --el-color-primary: var(--ow-brand);
  --el-color-primary-dark-2: #173958;
  --el-color-primary-light-9: #eef3f9;
  color: var(--ow-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.owner-frame {
  height: 100vh; height: 100dvh; display: grid; grid-template-columns: 224px minmax(0, 1fr);
  background: #f5f7fa; overflow: hidden; line-height: 1.5;
}
.owner-frame.owner-rail { grid-template-columns: 68px minmax(0, 1fr); }
.ow-side { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; border-inline-end: 1px solid var(--ow-line); }
.ow-brand { min-height: 78px; flex: none; display: flex; gap: 10px; align-items: center; padding: 0 24px; }
.ow-brand img { flex: none; object-fit: contain; }
.ow-brand strong { font-size: 18px; font-weight: 650; }
.ow-links { min-height: 0; overflow-y: auto; padding: 5px 14px 28px; scrollbar-width: thin; }
.ow-link { display: flex; align-items: center; gap: 12px; min-height: 43px; margin-block: 2px; padding: 8px 14px;
  color: #344a60; text-decoration: none; border-radius: 7px; font-size: 14px; font-weight: 500; }
.ow-link svg { flex: none; color: #597086; }
.ow-link:hover { background: #f1f4f7; }
.ow-link[aria-current=page] { color: var(--ow-brand); background: var(--ow-tint); font-weight: 650; }
.ow-link[aria-current=page] svg { color: inherit; }
.ow-group + .ow-group { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ow-line); }
.ow-group-name { margin: 0 12px 5px; font-size: 12px; font-weight: 650; color: #5b6a78; }
.owner-rail .ow-brand { padding: 0; justify-content: center; }
.owner-rail .ow-links { padding-inline: 10px; }
.owner-rail .ow-link { justify-content: center; padding: 8px; }
.ow-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ow-bar { min-height: 78px; flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 32px 10px 21px;
  background: white; border-bottom: 1px solid var(--ow-line); }
.ow-bar h1 { min-width: 0; margin: 0; font-size: 23px; line-height: 1.4; font-weight: 650; color: var(--ow-ink); }
.ow-bar h1:focus { outline: none; }
.ow-bar > .el-dropdown { margin-inline-start: auto; flex: none; }
.ow-icon, .ow-account, .ow-password-eye { border: 0; background: transparent; color: var(--ow-muted); cursor: pointer;
  font: inherit; display: inline-flex; align-items: center; justify-content: center; }
.ow-account { min-height: 42px; padding: 5px 9px; border-radius: 7px; gap: 8px; font-size: 14px; }
.ow-icon { width: 44px; min-height: 44px; border-radius: 7px; flex: none; }
.ow-account:hover, .ow-icon:hover, .ow-password-eye:hover { color: var(--ow-brand); background: var(--ow-tint); }
.ow-content { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.ow-page { width: 100%; max-width: 1540px; margin: 0 auto; padding: 28px 32px 48px; }
.ow-page-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-block-end: 16px; }
.ow-parent-link {
  display: inline-flex; align-items: center; flex: none; gap: 7px; min-height: 36px;
  padding: 5px 11px; color: var(--ow-brand); background: white; border: 1px solid var(--ow-line);
  border-radius: 7px; font-weight: 600; font-size: 13px; text-decoration: none;
}
.ow-parent-link:hover { background: var(--ow-tint); }
.ow-crumb { min-width: 0; font-size: 13px; color: var(--ow-muted); }
.ow-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 9px; margin: 0; padding: 0; }
.ow-crumb li { display: flex; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.ow-crumb li + li::before { content: "/"; flex: none; color: #8391a1; }
.ow-crumb a { color: var(--ow-brand); text-underline-offset: 3px; }
.ow-crumb [aria-current=location] { color: var(--ow-ink); font-weight: 600; }
.ow-scope-status, .ow-account-count { padding: 10px 14px; color: var(--ow-muted); }
.ow-account-count { margin: 0 0 12px; background: white; border: 1px solid var(--ow-line); border-radius: 8px; }
.ow-account-count strong { color: var(--ow-ink); margin-inline-start: 6px; }
.ow-account-identity { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; }
.ow-builtin-badge {
  display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--ow-tint);
  color: var(--ow-brand); font-size: 11px; font-weight: 650; line-height: 1.5; white-space: nowrap;
}
.ow-skip { position: fixed; top: 8px; left: 8px; z-index: 3000; padding: 10px 16px; transform: translateY(-150%);
  background: white; border: 1px solid var(--ow-brand); border-radius: 7px; }
.ow-skip:focus { transform: none; }
.owner-frame :is(a, button):focus-visible, .ow-login button:focus-visible { outline: 2px solid #3269a7; outline-offset: 2px; }
.ow-login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #f5f7fa; }
.ow-login-form { width: min(100%, 406px); display: grid; padding: 36px; border: 1px solid var(--ow-line); border-radius: 14px; background: white; }
.ow-login-logo { display: block; width: 150px; height: auto; object-fit: contain; margin-bottom: 24px; }
.ow-login h1 { font-size: 23px; margin: 0 0 22px; }
.ow-login label { margin: 0 0 7px; font-size: 14px; font-weight: 550; }
.ow-login .el-input { margin-bottom: 18px; }
.ow-password-eye { padding: 5px; min-height: 36px; }
.ow-login .ow-login-submit { margin: 5px 0 0; min-height: 44px; font-size: 15px; }
.ow-login-error { margin: 0 0 12px; color: #a33237; font-size: 14px; }
@media(max-width: 900px) {
  .owner-frame, .owner-frame.owner-rail { grid-template-columns: minmax(0, 1fr); }
  .ow-side { position: fixed; inset: 0 auto 0 0; z-index: 1101; width: min(292px, calc(100% - 52px)); transform: translateX(-100%); visibility: hidden; }
  .ow-side.ow-open { transform: none; visibility: visible; }
  .ow-scrim { position: fixed; inset: 0; background: rgb(17 35 52 / 36%); z-index: 1100; }
  .ow-close { margin-inline-start: auto; }
  .ow-brand { padding: 0 14px 0 21px; }
  .ow-link { min-height: 44px; }
  .ow-bar { min-height: 64px; padding: 7px 14px; gap: 7px; }
  .ow-bar h1 { font-size: 21px; }
  .ow-page { padding: 20px 18px 34px; }
  .ow-content { scrollbar-gutter: auto; }
}
@media(max-width: 520px) {
  .ow-bar { gap: 3px; padding-inline: 7px 12px; }
  .ow-bar h1 { font-size: 19px; }
  .ow-page { padding: 14px 12px 28px; }
  .ow-account { min-height: 44px; padding-inline: 7px; }
  .ow-login-form { padding: 26px 22px; }
}
