/* The proprietor's product console is separate from the customer ERP.
   Screen-only: invoice and quotation print templates keep their own styles. */
@media screen {
  .owner-registered-heading { padding: 18px 22px; color: #38575e; font-weight: 650; background: #f8fbfb; border-block: 1px solid #dce7e8; }
  body.owner-console {
    color-scheme: light;
    --app-bg: var(--owner-background);
    --app-surface: var(--owner-paper);
    --app-surface-alt: #f4f7f6;
    --app-text: var(--owner-ink);
    --app-muted: var(--owner-muted);
    --app-border: var(--owner-border);
    --app-primary: var(--owner-primary);
    --app-primary-hover: var(--owner-primary-hover);
    --app-on-primary: #fff;
    --app-soft: var(--owner-soft);

    --owner-ink: #213c42;
    --owner-muted: #596e73;
    --owner-border: #dce7e8;
    --owner-paper: #ffffff;
    --owner-background: #f3f7f7;
    --owner-primary: #064a53;
    --owner-primary-hover: #033b43;
    --owner-soft: #e7f1f2;
    --ink: var(--owner-ink);
    --muted: var(--owner-muted);
    --line: var(--owner-border);
    --teal: var(--owner-primary);
    color-scheme: light;
    margin: 0;
    background: var(--owner-background);
    color: var(--owner-ink);
    font: 400 13px/1.55 var(--app-font, 'Fatoura Inter', 'Fatoura Arabic', 'Segoe UI', sans-serif);
    font-optical-sizing: auto;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
  }
  .owner-console :where(button, input, select, textarea, h1, h2, h3, h4) { font-family: inherit; }
  .owner-console :where(button, a, input, select, textarea):focus-visible { outline: 3px solid #62aeb5; outline-offset: 3px; }
  .owner-console :where(button, input, select, textarea):disabled { opacity: .5; cursor: not-allowed; }
  .owner-console p { color: var(--owner-muted); line-height: 1.65; }
  .owner-console .ui-icon { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: middle; pointer-events: none; }
  .owner-shell { min-height: 100vh; }
  .owner-sidebar {
    position: fixed; inset-block: 0; inset-inline: 0 auto; width: 244px;
    display: flex; flex-direction: column; padding: 29px 19px 20px;
    background: #063b43; color: #c2dcdf; border: 0; z-index: 5;
  }
  .owner-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 19px; line-height: 1.2; font-weight: 750; letter-spacing: -.65px; }
  .owner-logo > span:first-child, .owner-logo .owner-brandmark { width: 35px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #528d95; border-radius: 11px; background: #064a53; color: #fff; font-size: 21px; font-weight: 750; box-shadow: 0 5px 16px #0002; }
  .owner-logo small { display: block; margin-top: 5px; font-size: 9px; font-weight: 500; color: #93b9be; letter-spacing: 1.7px; text-transform: uppercase; }
  .owner-logo > div { min-width: 0; }
  .owner-logo > div > strong { display: block; font-weight: 720; }
  .owner-logo > div > strong small { display: inline; margin: 0; font-size: 12px; font-weight: 450; color: #b9d4d7; letter-spacing: -.3px; text-transform: none; }
  .owner-logo > div > span { display: block; margin-top: 6px; font-size: 8px; color: #a8c9cd; font-weight: 450; letter-spacing: .1px; white-space: nowrap; }
  .owner-sidebar-intro { margin: 1px 9px 24px; }
  .owner-sidebar-intro strong { display: block; color: #e4f0f1; font-size: 12px; font-weight: 550; margin-bottom: 7px; }
  .owner-sidebar-intro p { color: #a8c9cd; font-size: 10px; line-height: 1.8; }
  .owner-auth-aside { margin: 7px 8px; padding-top: 23px; border-top: 1px solid #2c5961; }
  .owner-auth-aside > .ui-icon { width: 19px; height: 19px; color: #8fc8cf; margin-bottom: 12px; }
  .owner-auth-aside strong { display: block; color: #d4e8ea; font-size: 12px; font-weight: 550; margin-bottom: 8px; }
  .owner-auth-aside p { color: #a8c9cd; font-size: 10px; line-height: 1.8; }
  .owner-spacebadge { margin: 29px 3px 25px; padding: 11px 12px; border: 1px solid #2c5961; border-radius: 10px; color: #c1dfe2; background: #ffffff04; font-size: 11px; display: flex; align-items: center; gap: 8px; }
  .owner-spacebadge .ui-icon { width: 15px; height: 15px; }
  .owner-nav { display: grid; gap: 6px; }
  .owner-nav button { display: flex; align-items: center; width: 100%; gap: 12px; margin: 0; padding: 12px 13px; text-align: start; border: 1px solid transparent; border-radius: 9px; color: #accbd0; background: transparent; font-size: 12px; font-weight: 500; transition: color .15s, background .15s, border-color .15s; }
  .owner-nav button .ui-icon { width: 18px; height: 18px; }
  .owner-nav button label, .owner-nav button > span:not(.ui-icon) { cursor: pointer; }
  .owner-nav button:hover { color: #fff; background: #ffffff09; }
  .owner-nav button.active { color: #fff; background: #064a53; border-color: #528d95; box-shadow: 0 5px 16px #062f3520; }
  .owner-nav button small { margin-inline-start: auto; min-width: 21px; padding: 1px 6px; border-radius: 5px; text-align: center; font-size: 10px; font-weight: 650; color: #e6f2f3; background: #ffffff18; }
  .owner-sidebar-bottom { margin-top: auto; padding-top: 28px; }
  .owner-private-note { display: flex; align-items: center; gap: 8px; margin: 0 7px 14px; color: #b7d2d6; font-size: 10px; }
  .owner-private-note .ui-icon { width: 13px; height: 13px; color: #8fc8cf; }
  .owner-sidebar-bottom p { font-size: 10px; color: #96bbc1; }
  .owner-sidebar-bottom > button, .owner-sidebar-bottom .owner-button { width: 100%; justify-content: flex-start; font-size: 11px; border-color: #325e66; background: transparent; color: #bdd5d9; }
  .owner-sidebar-bottom > button { display: flex; align-items: center; gap: 8px; text-align: start; border: 1px solid #325e66; border-radius: 8px; padding: 10px; line-height: 1.6; }
  .owner-sidebar-bottom > button .ui-icon { width: 15px; height: 15px; }
  .owner-sidebar-bottom > small { display: block; margin: 17px 7px 0; color: #a8c9cd; font-size: 9px; }
  .owner-sidebar-bottom > button:hover, .owner-sidebar-bottom .owner-button:hover { color: #fff; border-color: #5d9098; background: #ffffff08; }
  .owner-sidebar-bottom footer { margin-top: 20px; padding: 18px 6px 0; border-top: 1px solid #2c5961; font-size: 9px; color: #96bbc1; line-height: 1.9; }
  .owner-main { margin: 0; margin-inline-start: 244px; min-height: 100vh; min-width: 0; }
  body.owner-console.rtl .owner-main { margin: 0; margin-inline-start: 244px; }
  .owner-topbar { position: relative; height: 77px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #ffffffef; border: 0; border-bottom: 1px solid var(--owner-border); }
  .owner-topbar > div:first-child { font-size: 12px; color: var(--owner-muted); }
  .owner-topbar > div:first-child > span { display: block; color: #60777c; font-size: 9px; margin-bottom: 3px; }
  .owner-topbar > div:first-child > strong { display: block; }
  .owner-topbar strong { color: var(--owner-ink); font-size: 12px; font-weight: 600; }
  .owner-topbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
  .owner-topbar-actions .owner-button { font-size: 11px; min-height: 35px; padding: 8px 12px; }
  .owner-session { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #60777c; padding-inline-end: 12px; border-inline-end: 1px solid #dce7e8; }
  .owner-session .ui-icon { width: 14px; height: 14px; color: #547f87; }
  .owner-content { max-width: 1440px; padding: 31px 34px 40px; margin: 0 auto; }
  .owner-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
  .owner-page-heading h1, .owner-welcome h1 { font-size: 27px; line-height: 1.25; font-weight: 700; letter-spacing: -.8px; color: var(--owner-ink); margin: 4px 0 10px; }
  .owner-page-heading p { max-width: 710px; font-size: 12px; }
  .owner-page-heading > :last-child:not(:first-child), .owner-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .owner-eyebrow { color: #3c737d; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 8px; }
  .owner-button, .owner-console .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; border: 1px solid var(--owner-primary); border-radius: 8px; padding: 9px 14px; background: var(--owner-primary); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 2px 3px #064a530a; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
  .owner-button .ui-icon, .owner-console .btn .ui-icon { width: 16px; height: 16px; }
  .owner-button:hover, .owner-console .btn:hover { background: var(--owner-primary-hover); border-color: var(--owner-primary-hover); box-shadow: 0 4px 10px #064a5321; filter: none; }
  .owner-button:active { transform: translateY(1px); }
  .owner-button.secondary, .owner-console .btn.secondary { color: #38575e; background: #fff; border-color: #d4e2e4; box-shadow: 0 2px 3px #213c4203; }
  .owner-button.secondary:hover, .owner-console .btn.secondary:hover { background: #f3f7f7; color: #064a53; border-color: #a9cbd0; }
  .owner-button.ghost { color: #064a53; background: transparent; border-color: transparent; box-shadow: none; }
  .owner-button.ghost:hover { background: #e7f1f2; border-color: #e7f1f2; }
  .owner-button.danger { color: #b33d57; background: #fff4f6; border-color: #f0d5dc; box-shadow: none; }
  .owner-button.danger:hover { background: #fde8ed; border-color: #dca5b3; }
  .owner-button:disabled:hover { transform: none; box-shadow: none; }
  .owner-welcome { position: relative; overflow: hidden; padding: 26px 29px; margin-bottom: 23px; border: 1px solid #d2e4e6; border-radius: 14px; background: linear-gradient(110deg, #e7f1f2, #f5f9f9 58%, #edf6f6); }
  .owner-welcome { display: flex; align-items: center; justify-content: space-between; gap: 23px; }
  .owner-welcome .owner-eyebrow { color: #3c737d; }
  .owner-welcome h1 { font-size: 25px; }
  .owner-welcome h2 { margin: 7px 0 10px; color: #213c42; font-size: 23px; font-weight: 650; letter-spacing: -.65px; line-height: 1.35; }
  .owner-welcome p { max-width: 780px; color: #60777c; font-size: 12px; }
  .owner-welcome .owner-button { margin-top: 16px; }
  .owner-welcome > .owner-button { margin-top: 0; flex-shrink: 0; }
  .owner-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 23px; }
  .owner-metric { background: #fff; border: 1px solid var(--owner-border); border-radius: 11px; padding: 20px 21px; box-shadow: 0 2px 4px #213c4203; }
  .owner-metric > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #60777c; font-size: 11px; font-weight: 500; }
  .owner-metric > div:first-child > .ui-icon, .owner-metric > div:first-child > span:has(.ui-icon) { color: #397985; background: #e7f1f2; box-sizing: content-box; padding: 8px; border-radius: 9px; }
  .owner-metric > strong { display: block; font-size: 28px; line-height: 1.3; margin: 14px 0 8px; font-weight: 700; letter-spacing: -.8px; color: #213c42; }
  .owner-metric > strong small { display: inline; font-size: 12px; font-weight: 500; letter-spacing: 0; color: #60777c; }
  .owner-metric > small { display: block; font-size: 10px; color: #60777c; }
  .owner-metric small.positive { color: #2b8a6e; }
  .owner-metric small.warning { color: #ae7b30; }
  .owner-metric.positive > small { color: #28785e; }
  .owner-metric.warning > small { color: #946721; }
  .owner-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 23px; }
  .owner-panel { min-width: 0; background: #fff; border: 1px solid var(--owner-border); border-radius: 11px; box-shadow: 0 2px 4px #213c4203; overflow: hidden; margin-bottom: 23px; }
  .owner-grid > .owner-panel { margin-bottom: 0; }
  .owner-panel-head { position: static; height: auto; min-height: 78px; padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fff; border-bottom: 1px solid #e7eff0; }
  .owner-panel-head h2 { margin: 0; color: #294a52; font-size: 13px; font-weight: 650; letter-spacing: -.2px; }
  .owner-panel-head p { margin-top: 4px; font-size: 10px; color: #60777c; }
  .owner-panel-head > .owner-button { font-size: 10px; min-height: 31px; padding: 6px 9px; white-space: nowrap; }
  .owner-panel-body { padding: 23px; }
  .owner-chart { display: flex; gap: 15px; align-items: stretch; height: 200px; padding: 12px 0 0; background: repeating-linear-gradient(to top, transparent 0, transparent 38px, #edf3f4 39px, #edf3f4 40px); }
  .owner-chart-month { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; flex: 1 1 0; min-width: 0; }
  .owner-chart-bars { display: flex; flex: 1; align-items: flex-end; justify-content: center; gap: 5px; width: 100%; }
  .owner-chart-bar { display: block; width: 18px; max-width: 40%; height: var(--bar-height, 0%); min-height: 2px; background: #064a53; border-radius: 4px 4px 0 0; transition: height .25s; }
  .owner-chart-bar { position: relative; }
  .owner-chart-bar > span { position: absolute; inset-inline: -4px; bottom: calc(100% + 5px); font-size: 9px; color: #60777c; line-height: 1; text-align: center; }
  .owner-chart-bar.request { background: #a4c8ce; }
  .owner-chart-bar.activation { background: #064a53; }
  .owner-chart-month > small { height: 20px; font-size: 10px; color: #60777c; white-space: nowrap; }
  .owner-chart-legend, .owner-legend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; padding-top: 18px; font-size: 10px; color: #60777c; }
  .owner-chart-legend > span, .owner-legend > span { display: inline-flex; align-items: center; gap: 6px; }
  .owner-chart-legend i, .owner-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #064a53; }
  .owner-chart-legend i.request, .owner-legend i.request { background: #a4c8ce; }
  .owner-pipeline { display: grid; gap: 19px; }
  .owner-pipeline-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px 15px; font-size: 11px; color: #60777c; }
  .owner-pipeline-row strong { font-weight: 650; color: #38575e; }
  .owner-pipeline-bar { grid-column: 1 / -1; height: 6px; border-radius: 10px; background: #e7f1f2; overflow: hidden; }
  .owner-pipeline-bar i { display: block; height: 100%; max-width: 100%; background: #236c78; border-radius: inherit; }
  .owner-pipeline-row:nth-child(2) .owner-pipeline-bar i { background: #558f99; }
  .owner-pipeline-row:nth-child(3) .owner-pipeline-bar i { background: #7eacb4; }
  .owner-pipeline-row:nth-child(4) .owner-pipeline-bar i { background: #a7c8ce; }
  .owner-table-wrap { overflow-x: auto; overscroll-behavior-inline: contain; }
  .owner-table { width: 100%; border-collapse: collapse; text-align: start; font-size: 11px; }
  .owner-table th { padding: 12px 20px; background: #f8fbfb; border-bottom: 1px solid #e7eff0; color: #60777c; font-size: 9px; font-weight: 600; letter-spacing: .4px; white-space: nowrap; }
  .owner-table td { padding: 17px 20px; border-bottom: 1px solid #e7eff0; color: #60777c; vertical-align: middle; }
  .owner-table tr:last-child td { border-bottom: 0; }
  .owner-table tbody tr:hover { background: #f7fbfb; }
  .owner-table td > strong { color: #38575e; font-weight: 600; }
  .owner-table td > small { display: block; margin-top: 3px; font-size: 9px; color: #60777c; }
  .owner-companycell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
  .owner-companycell > span:first-child, .owner-avatar { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #e7f1f2; color: #397985; font-size: 11px; font-weight: 650; }
  .owner-companycell strong { display: block; color: #38575e; font-size: 11px; font-weight: 600; }
  .owner-companycell small { display: block; margin-top: 3px; color: #60777c; font-size: 9px; }
  .owner-badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border-radius: 5px; padding: 4px 8px; background: #edf3f4; color: #60777c; font-size: 9px; font-weight: 550; line-height: 1.4; }
  .owner-badge > i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
  .owner-badge.active, .owner-badge.approved, .owner-badge.won { background: #eaf6f1; color: #28785e; }
  .owner-badge.pending, .owner-badge.trial, .owner-badge.contacted, .owner-badge.qualified { background: #fff5e6; color: #946721; }
  .owner-badge.expired, .owner-badge.rejected, .owner-badge.suspended, .owner-badge.lost { background: #fff0f2; color: #ad4761; }
  .owner-badge.prospect, .owner-badge.new, .owner-badge.proposal { background: #e7f1f2; color: #3c737d; }
  .owner-table-actions { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
  .owner-table-actions .owner-button { min-height: 31px; padding: 6px 9px; font-size: 9px; }
  .owner-table-actions .ui-icon { width: 14px; height: 14px; }
  .owner-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 17px 22px; border-bottom: 1px solid #e7eff0; }
  .owner-toolbar input, .owner-toolbar select { width: auto; max-width: 100%; min-height: 37px; padding: 9px 12px; font-size: 11px; }
  .owner-toolbar input { flex: 1 1 220px; max-width: 420px; }
  .owner-toolbar select { min-width: 150px; }
  .owner-toolbar > span { margin-inline-start: auto; font-size: 10px; color: #60777c; }
  .owner-search { display: flex; align-items: center; flex: 1 1 230px; max-width: 430px; gap: 9px; min-width: 0; border: 1px solid #d4e2e4; background: #fff; border-radius: 7px; padding-inline: 12px; }
  .owner-search .ui-icon { width: 16px; height: 16px; color: #638991; }
  .owner-search:focus-within { outline: 3px solid #62aeb5; outline-offset: 2px; }
  .owner-console .owner-search input { flex: 1; min-width: 0; max-width: none; border: 0; box-shadow: none; border-radius: 0; padding-inline: 0; outline: 0; }
  .owner-toolbar > select { width: auto; }
  .owner-results-count { padding: 12px 21px; border-top: 1px solid #e7eff0; color: #60777c; background: #fbfdfd; font-size: 10px; }
  .owner-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 42px 24px; }
  .owner-empty > .ui-icon, .owner-empty > span:first-child:has(.ui-icon) { width: 26px; height: 26px; padding: 15px; box-sizing: content-box; border-radius: 15px; background: #e7f1f2; color: #397985; margin-bottom: 14px; }
  .owner-empty h3 { margin: 0 0 7px; font-size: 13px; font-weight: 600; color: #60777c; }
  .owner-empty p { font-size: 11px; max-width: 480px; color: #60777c; }
  .owner-empty .owner-button { margin-top: 18px; }
  .owner-note { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #dce7e8; border-radius: 9px; background: #edf5f6; color: #60777c; font-size: 10px; line-height: 1.7; padding: 13px 16px; margin-bottom: 22px; }
  .owner-note p { color: inherit; }
  .owner-note .ui-icon { width: 16px; height: 16px; margin-top: 1px; color: #638991; }
  .owner-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
  .owner-detailgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .owner-detailgrid > div { min-width: 0; }
  .owner-detailgrid > div > span { display: block; font-size: 10px; color: #60777c; margin-bottom: 5px; }
  .owner-detailgrid + .owner-panel { margin-top: 23px; box-shadow: none; }
  .owner-detailgrid + .owner-panel .owner-timeline { padding: 21px; }
  .owner-detailgrid small, .owner-detailgrid dt { display: block; color: #60777c; font-size: 10px; margin-bottom: 5px; }
  .owner-detailgrid strong, .owner-detailgrid dd { display: block; color: #46686f; font-size: 12px; font-weight: 550; margin: 0; overflow-wrap: anywhere; }
  .owner-followups { display: grid; gap: 0; }
  .owner-followups { padding-inline: 22px; }
  .owner-company-avatar { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #e7f1f2; color: #397985; font-size: 11px; font-weight: 650; }
  .owner-followup-item { display: flex; align-items: flex-start; gap: 11px; padding: 15px 0; border-bottom: 1px solid #e7eff0; }
  .owner-followup-item { width: 100%; text-align: start; align-items: center; }
  .owner-followup-item:hover { background: #f7fbfb; }
  .owner-followup-item > span:nth-child(2) { min-width: 0; flex: 1; }
  .owner-followup-item > span:nth-child(2) strong, .owner-followup-item > span:nth-child(2) small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
  .owner-followup-item > .ui-icon:last-child { background: transparent; color: #7fa7af; padding: 0; width: 14px; height: 14px; }
  .owner-followup-item:first-child { padding-top: 0; }
  .owner-followup-item:last-child { padding-bottom: 0; border-bottom: 0; }
  .owner-followup-item > .ui-icon { padding: 8px; box-sizing: content-box; background: #e7f1f2; color: #397985; border-radius: 9px; width: 15px; height: 15px; }
  .owner-followup-item > div { min-width: 0; flex: 1; }
  .owner-followup-item strong { display: block; color: #527179; font-size: 11px; font-weight: 550; }
  .owner-followup-item small, .owner-followup-item p { display: block; color: #60777c; font-size: 10px; margin-top: 4px; }
  .owner-followup-item .owner-button { min-height: 29px; padding: 5px 8px; font-size: 9px; }
  .owner-kpi-strip { display: flex; gap: 25px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--owner-border); background: #f8fbfb; }
  .owner-kpi-strip > div { min-width: 100px; flex: 1; }
  .owner-kpi-strip small { display: block; font-size: 10px; color: #60777c; }
  .owner-kpi-strip > div > span { display: block; font-size: 10px; color: #60777c; }
  .owner-kpi-strip strong { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.4px; color: #397985; margin-top: 4px; }
  .owner-form { padding: 23px; }
  .owner-form { display: grid; gap: 18px; align-content: start; }
  .owner-form > .owner-fields { margin-bottom: 0; }
  .owner-form > .owner-button { justify-self: start; }
  .owner-split > div > .owner-form { padding: 0; }
  .owner-approval > .owner-button { width: 100%; }
  .owner-approval > .owner-reject-form { margin-top: 24px; padding: 21px 0 0; border-top: 1px solid #dce7e8; }
  .owner-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
  .owner-field { display: block; font-size: 11px; color: #60777c; font-weight: 500; }
  .owner-field.full { grid-column: 1 / -1; }
  .owner-console :where(.owner-field input, .owner-field select, .owner-field textarea, .owner-toolbar input, .owner-toolbar select, .owner-gate input) { background: #fff; border: 1px solid #d4e2e4; border-radius: 7px; color: #46686f; width: 100%; outline-color: #62aeb5; box-shadow: 0 1px 2px #213c4202; }
  .owner-field input, .owner-field select, .owner-field textarea { display: block; min-height: 41px; padding: 10px 12px; margin-top: 7px; font-size: 12px; font-weight: 400; }
  .owner-field input::placeholder, .owner-field textarea::placeholder, .owner-toolbar input::placeholder { color: #71888d; opacity: 1; }
  .owner-field textarea { min-height: 100px; resize: vertical; }
  .owner-field > small { display: block; margin-top: 5px; color: #60777c; font-size: 9px; font-weight: 400; }
  .owner-form > .actions, .owner-form-actions { display: flex; gap: 9px; justify-content: flex-end; padding-top: 5px; }
  .owner-timeline { display: grid; gap: 0; }
  .owner-timeline { margin: 0; padding: 0; }
  .owner-timeline > div, .owner-timeline > li { position: relative; list-style: none; padding: 0 0 23px; padding-inline-start: 21px; border-inline-start: 1px solid #dce7e8; }
  .owner-timeline > div::before, .owner-timeline > li::before { content: ''; position: absolute; inset-block-start: 5px; inset-inline-start: -4px; width: 7px; height: 7px; background: #7caab2; border-radius: 50%; box-shadow: 0 0 0 4px #fff; }
  .owner-timeline > :last-child { padding-bottom: 0; }
  .owner-timeline strong { display: block; font-size: 11px; color: #60777c; font-weight: 550; }
  .owner-timeline p, .owner-timeline small { display: block; margin-top: 4px; color: #60777c; font-size: 10px; overflow-wrap: anywhere; }
  .owner-account-panel { max-width: 780px; }
  .owner-account-panel { display: flex; align-items: flex-start; gap: 15px; }
  .owner-account-panel > .ui-icon { width: 21px; height: 21px; padding: 10px; box-sizing: content-box; border-radius: 11px; background: #e7f1f2; color: #397985; }
  .owner-account-panel strong { display: block; color: #527179; font-size: 12px; font-weight: 550; margin-bottom: 7px; }
  .owner-account-panel p { color: #60777c; font-size: 11px; line-height: 1.8; }
  .owner-console-footer { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; color: #60777c; font-size: 9px; border-top: 1px solid #dce7e8; margin-top: 32px; padding-top: 17px; }
  .owner-console .owner-gate { max-width: 490px; margin: 40px auto; padding: 34px; border: 1px solid #dce7e8; border-radius: 14px; background: #fff; box-shadow: 0 10px 40px #213c4205; }
  .owner-console .owner-gate h2 { font-family: inherit; font-size: 21px !important; letter-spacing: -.6px; font-weight: 650; color: #294a52; margin: 19px 0 12px; }
  .owner-console .owner-gate p { color: #60777c; font-size: 12px; }
  .owner-console .owner-gate .small { color: #60777c; font-size: 10px; }
  .owner-console .owner-gate .owner-lock { padding: 14px; border-radius: 12px; background: #e7f1f2; color: #397985; }
  .owner-console .owner-gate .field { color: #60777c; font-size: 11px; }
  .owner-console .owner-gate .btn { min-height: 43px; }
  .owner-console .owner-error { display: block; background: #fff0f2; border: 1px solid #f2d4de; color: #ba6882; border-radius: 7px; padding: 11px 13px; font-size: 11px; margin: 15px 0; }
  .owner-console .owner-gate form { gap: 18px; margin-top: 24px; }
  .owner-console .owner-gate input { margin-top: 8px; min-height: 44px; }
  .owner-console #toast { background: #213c42; font: inherit; font-size: 12px; box-shadow: 0 5px 20px #063b432b; }
  .owner-console [hidden] { display: none !important; }
  .owner-console [dir="rtl"] .owner-chart, html[dir="rtl"] .owner-console .owner-chart { direction: rtl; }
  @media (min-width: 1600px) { .owner-content { padding-top: 35px; } .owner-metrics { gap: 22px; } }
  @media (max-width: 1120px) { .owner-content { padding-inline: 25px; } .owner-metrics { gap: 12px; } .owner-metric { padding: 17px; } .owner-metric > strong { font-size: 25px; } .owner-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 17px; } .owner-table th, .owner-table td { padding-inline: 16px; } .owner-table-actions { flex-wrap: wrap; } }
  @media (max-width: 960px) { .owner-sidebar { width: 220px; padding-inline: 15px; } .owner-main, body.owner-console.rtl .owner-main { margin-inline-start: 220px; } .owner-topbar { padding-inline: 24px; } .owner-logo { font-size: 17px; gap: 9px; } .owner-content { padding: 25px 22px; } .owner-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .owner-grid, .owner-split { grid-template-columns: minmax(0, 1fr); gap: 20px; } .owner-page-heading h1, .owner-welcome h1 { font-size: 24px; } .owner-panel { margin-bottom: 20px; } .owner-chart { height: 190px; } .owner-welcome { align-items: flex-start; flex-direction: column; gap: 17px; } }
  @media (max-width: 760px) {
    .owner-sidebar { position: relative; inset: auto; width: 100%; padding: 18px 20px 13px; border: 0; }
    .owner-logo { font-size: 19px; }
    .owner-logo small { font-size: 8px; }
    .owner-sidebar-intro, .owner-auth-aside { display: none; }
    .owner-spacebadge { display: inline-flex; align-self: flex-start; margin: 16px 0 13px; padding: 7px 10px; font-size: 10px; }
    .owner-nav { display: flex; gap: 5px; margin-inline: -5px; padding-inline: 5px; padding-bottom: 4px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #52848d transparent; }
    .owner-nav button { width: auto; flex: 0 0 auto; gap: 7px; padding: 10px; font-size: 10px; white-space: nowrap; }
    .owner-nav button .ui-icon { width: 15px; height: 15px; }
    .owner-nav button small { min-width: 17px; padding: 0 4px; font-size: 9px; }
    .owner-sidebar-bottom { display: none; }
    .owner-main, body.owner-console.rtl .owner-main { margin: 0; }
    .owner-topbar { height: auto; min-height: 64px; padding: 13px 20px; flex-wrap: wrap; gap: 12px; }
    .owner-topbar-actions { gap: 7px; flex-wrap: wrap; }
    .owner-topbar-actions .owner-button { min-height: 32px; font-size: 10px; padding: 7px 10px; }
    .owner-content { padding: 23px 20px 32px; }
    .owner-page-heading { align-items: flex-start; margin-bottom: 21px; flex-wrap: wrap; gap: 14px; }
    .owner-page-heading h1, .owner-welcome h1 { font-size: 23px; }
    .owner-page-heading p { font-size: 11px; }
    .owner-welcome { padding: 23px; border-radius: 11px; }
    .owner-metrics { gap: 12px; }
    .owner-metric { padding: 17px; }
    .owner-metric > div:first-child { font-size: 10px; }
    .owner-metric > div:first-child > .ui-icon, .owner-metric > div:first-child > span:has(.ui-icon) { padding: 6px; width: 16px; height: 16px; }
    .owner-metric > strong { font-size: 26px; margin-top: 12px; }
    .owner-metric > small { font-size: 9px; }
    .owner-panel-head { padding: 17px 19px; min-height: 71px; }
    .owner-panel-body, .owner-form { padding: 20px; }
    .owner-table { min-width: 600px; }
    .owner-table th, .owner-table td { padding: 14px 17px; }
    .owner-toolbar { padding: 15px 18px; gap: 9px; }
    .owner-toolbar input { max-width: none; flex: 1 1 100%; }
    .owner-search { max-width: none; flex: 1 1 100%; }
    .owner-toolbar .owner-search input { flex: 1 1 auto; }
    .owner-toolbar select { width: auto; flex: 1 1 130px; }
    .owner-fields { gap: 17px; }
    .owner-kpi-strip { gap: 18px; }
    .owner-kpi-strip > div { min-width: 100px; }
    .owner-followups { padding-inline: 18px; }
    .owner-followup-item { gap: 8px; }
    .owner-followup-item > span:nth-child(2) strong, .owner-followup-item > span:nth-child(2) small { max-width: 180px; }
    .owner-console-footer { margin-top: 25px; font-size: 8px; }
    .owner-console .owner-gate { margin: 18px auto; padding: 26px; }
  }
  @media (max-width: 420px) {
    .owner-sidebar { padding-inline: 16px; }
    .owner-topbar { padding-inline: 16px; }
    .owner-topbar-actions { width: 100%; justify-content: space-between; }
    .owner-content { padding: 21px 15px 30px; }
    .owner-page-heading h1 { font-size: 22px; }
    .owner-page-heading > :last-child:not(:first-child) { width: 100%; }
    .owner-welcome { padding: 20px; }
    .owner-welcome h1 { font-size: 22px; }
    .owner-metrics { gap: 10px; }
    .owner-metric { padding: 15px 13px; }
    .owner-metric > div:first-child { align-items: flex-start; gap: 6px; }
    .owner-metric > div:first-child > .ui-icon, .owner-metric > div:first-child > span:has(.ui-icon) { width: 14px; height: 14px; padding: 5px; border-radius: 7px; }
    .owner-metric > strong { font-size: 24px; }
    .owner-metric > strong small { font-size: 10px; }
    .owner-panel-head { padding: 17px; gap: 10px; }
    .owner-panel-head h2 { font-size: 12px; }
    .owner-panel-body, .owner-form { padding: 18px; }
    .owner-chart { gap: 11px; }
    .owner-chart-bars { gap: 4px; }
    .owner-chart-bar { width: 14px; }
    .owner-fields { grid-template-columns: minmax(0, 1fr); }
    .owner-detailgrid { gap: 17px; }
    .owner-console .owner-gate { padding: 24px 21px; }
  }
  @media (prefers-reduced-motion: reduce) { .owner-console *, .owner-console *::before, .owner-console *::after { transition: none !important; scroll-behavior: auto !important; } }
}
/* Grouped navigation and consistent action hierarchy. */
@media screen {
 .owner-sidebar {overflow-y:auto;scrollbar-width:thin}
 .owner-sidebar-intro {display:none}
 .owner-navigation {margin:12px 0 20px}
 .owner-navigation>summary {display:none}
 .owner-nav {display:grid;gap:18px}
 .owner-nav-group {display:grid;gap:4px}
 .owner-nav-label {padding:0 12px 5px;font-size:10px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:#8fb5ba}
 .owner-nav button {min-height:44px;font-size:12px;line-height:1.4}
 .owner-nav button span:not(.ui-icon) {flex:1}
 .owner-nav small:empty {display:none}
 .owner-content:has(>#modal.inline-form-host:not(:empty))>:not(#modal){display:none}
 .owner-action-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}
 .owner-action-card {display:flex;align-items:flex-start;gap:14px;text-align:start;padding:22px;border:1px solid var(--owner-border);border-radius:14px;background:#fff;color:var(--owner-ink);box-shadow:0 3px 12px #063b4305;transition:border-color .15s,background .15s}
 .owner-action-card:hover {border-color:#5d999e;background:#f3fafa}
 .owner-action-card>.ui-icon {width:22px;height:22px;color:var(--owner-primary);margin-top:2px}
 .owner-action-card strong {display:block;font-size:14px;margin-bottom:6px}
 .owner-action-card small {display:block;font-size:12px;line-height:1.6;font-weight:400;color:var(--owner-muted)}
 .owner-export-action {display:flex;justify-content:flex-end;margin:16px 0 24px}
 .owner-console .btn,.owner-console .owner-button {min-height:44px}
 .owner-console .dialog>.cardtitle {border-bottom:1px solid var(--owner-border);padding-bottom:18px;margin-bottom:24px}
 .owner-console .dialog>.cardtitle h2 {font-size:22px;line-height:1.35}
 .owner-console .close {min-width:44px;min-height:44px;border-radius:10px}
 @media(max-width:1100px){.owner-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
 @media(max-width:760px){
 .owner-sidebar {padding:14px 16px 10px;overflow:visible}
 .owner-spacebadge {display:none}
 .owner-navigation {margin:12px 0 0}
 .owner-navigation>summary {display:flex;align-items:center;gap:10px;cursor:pointer;min-height:44px;padding:10px 12px;border:1px solid #527980;border-radius:10px;font-weight:600;list-style:none}
 .owner-navigation>summary:after {content:'⌄';margin-inline-start:auto}
 .owner-navigation[open]>summary:after {content:'⌃'}
 .owner-navigation .owner-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;overflow:visible;margin:18px 0 4px;padding:0}
 .owner-nav-group {align-content:start;min-width:0}
 .owner-nav button {width:100%;min-width:0;white-space:normal;font-size:12px;padding:10px 8px}
 .owner-nav-label {padding-inline:8px;letter-spacing:.02em}
 .owner-topbar-actions .owner-button {min-height:44px;font-size:12px}
 .owner-topbar .owner-session {display:none}
 .owner-content {padding:20px 14px}
 .owner-console .dialog {padding:20px 16px}
 .owner-console .dialog>.cardtitle h2 {font-size:20px}
 .owner-action-grid {grid-template-columns:1fr;gap:10px}
 .owner-action-card {padding:18px}
 .owner-export-action .btn {width:100%}
 }
}

@media screen {
  .owner-console .dialog .plan-comparison { max-inline-size: 100%; overflow-x: auto; }
  .owner-console .dialog label.field:has(> input[type=checkbox]) { display: flex; gap: .6rem; align-items: center; min-height: 40px; }
  .owner-console .dialog label.field > input[type=checkbox] { width: 1.1rem; flex: none; }
  .owner-console .dialog :is(.owner-action-card, .saas-summary) { min-inline-size: 0; overflow-wrap: anywhere; }
  .owner-console .dialog > .btn + .btn { margin-inline-start: .5rem; }
}
