/* ORYX Control Center. Look approved 31 Oct 2026 (product/oryx-control-center/preview); tokens from the ORYX Console. */
  :root {
    --bg:#F7F8FB; --surface:#fff; --ink:#172033; --ink-2:#3A4453; --muted:#6B7280; --muted-2:#9AA1AC;
    --line:#E8EDF8; --line-2:#EEF1F7;
    --brand:#E55A33; --brand-hover:#D44E2A; --brand-soft:#FEF3EF;
    --navy:#172033; --navy-2:#20315F; --nav-muted:#9FB0D6; --nav-line:#2A3A5E;
    --blue:#3E5BA9; --blue-soft:#E8EDF8;
    --green:#2F8A5D; --green-dot:#6AC393; --green-soft:#EAF8F1;
    --amber:#9A7B16; --amber-soft:#FFF6DC; --amber-dot:#ECC03B;
    --danger:#9C3A22; --danger-soft:#FDEBE5;
    --shadow-card:0 8px 24px -18px rgba(23,32,51,.4);
    --gradient:linear-gradient(90deg,#3E5BA9 0%,#6AC393 35%,#F7CF56 65%,#E55A33 100%);
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Arial, sans-serif; background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
  button { font-family: inherit; }
  a { color: var(--blue); }

  .app { display: flex; min-height: 100vh; }

  /* Sidebar */
  .sidebar { width: 252px; flex: none; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
  .brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
  .mark { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(from 90deg,#DA3322,#E96A35,#F4A93E,#F7CF56,#ABCF72,#6AC393,#4BA6A5,#3E5BA9,#6E8BC8,rgba(110,139,200,0) 270deg,transparent 332deg,#DA3322); position: relative; flex: none; }
  .mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--navy); }
  .brand-name { font-weight: 800; font-size: 17px; letter-spacing: .02em; line-height: 1.1; }
  .brand-sub { font-size: 11.5px; font-weight: 700; color: var(--nav-muted); letter-spacing: .08em; text-transform: uppercase; }
  .navgroup { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--nav-muted); padding: 14px 10px 6px; opacity: .8; }
  .navitem { display: flex; align-items: center; gap: 11px; width: 100%; border: none; background: transparent; color: #D7DEEE; font-size: 14px; font-weight: 600; padding: 9px 10px; border-radius: 11px; cursor: pointer; text-align: left; }
  .navitem svg { width: 18px; height: 18px; flex: none; opacity: .85; }
  .navitem:hover { background: rgba(255,255,255,.06); color: #fff; }
  .navitem.active { background: #fff; color: var(--navy); }
  .navitem.active svg { opacity: 1; }
  .navbadge { margin-left: auto; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
  .navitem.active .navbadge { background: var(--brand); }
  .side-foot { margin-top: auto; border-top: 1px solid var(--nav-line); padding-top: 14px; display: flex; align-items: center; gap: 10px; }
  .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
  .me-name { font-weight: 700; font-size: 13.5px; }
  .me-role { font-size: 12px; color: var(--nav-muted); }

  /* Main */
  .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .menu-btn { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; width: 38px; height: 38px; align-items: center; justify-content: center; cursor: pointer; }
  .preview-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
  .topbar .spacer { flex: 1; }
  .viewas { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
  .seg { display: inline-flex; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
  .seg button { border: none; background: transparent; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
  .seg button.active { background: var(--navy); color: #fff; }

  .page { padding: 30px 28px 60px; }
  .page-inner { max-width: 1120px; margin: 0 auto; }
  .eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
  h1 { font-size: 28px; line-height: 1.2; margin: 6px 0 6px; font-weight: 800; letter-spacing: -.01em; }
  .lead { color: var(--muted); margin: 0; max-width: 64ch; }
  .head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
  h2 { font-size: 16.5px; margin: 0; font-weight: 800; }
  .muted { color: var(--muted); }
  .small { font-size: 12.5px; }

  /* Buttons */
  .btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
  .btn svg { width: 16px; height: 16px; }
  .btn-primary { background: var(--brand); color: #fff; }
  .btn-primary:hover { background: var(--brand-hover); }
  .btn-ghost { background: var(--surface); color: var(--blue); border-color: var(--line); }
  .btn-ghost:hover { border-color: var(--blue); }
  .btn-danger { background: var(--surface); color: var(--danger); border-color: #F0A78F; }
  .btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
  .btn[disabled] { opacity: .45; cursor: not-allowed; }
  .lock { font-size: 11.5px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }

  /* Cards */
  .grid { display: grid; gap: 16px; }
  .kpis { grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: 18px; }
  .stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-card); }
  .stat.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
  .stat.primary .stat-label, .stat.primary .stat-sub { color: var(--nav-muted); }
  .stat-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
  .stat-num { font-size: 28px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
  .stat-sub { font-size: 12.5px; color: var(--muted); }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow-card); min-width: 0; }
  .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .two { grid-template-columns: 1.5fr 1fr; }
  .halves { grid-template-columns: 1fr 1fr; }
  .stack { display: flex; flex-direction: column; gap: 16px; }

  /* Tables */
  .table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
  table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
  th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
  tr:last-child td { border-bottom: none; }
  td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  tr.click { cursor: pointer; }
  tr.click:hover td { background: #FAFBFD; }
  .cname { font-weight: 800; }
  .csub { font-size: 12px; color: var(--muted); }

  /* Pills */
  .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
  .p-green { background: var(--green-soft); color: var(--green); }
  .p-amber { background: var(--amber-soft); color: var(--amber); }
  .p-red { background: var(--danger-soft); color: var(--danger); }
  .p-blue { background: var(--blue-soft); color: var(--blue); }
  .p-grey { background: var(--line-2); color: var(--muted); }
  .chips { display: flex; gap: 5px; flex-wrap: wrap; }
  .chip { font-size: 11.5px; font-weight: 700; border-radius: 8px; padding: 2px 7px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
  .chip.off { background: var(--line-2); color: var(--muted-2); text-decoration: line-through; }

  /* Meters */
  .meter { min-width: 140px; }
  .meter-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }
  .meter-top .of { color: var(--muted); font-weight: 600; }
  .bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; position: relative; }
  .bar span { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
  .bar span.warn { background: var(--amber-dot); }
  .bar span.over { background: var(--brand); }
  .meter-note { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
  .meter-note.over { color: var(--brand); font-weight: 700; }
  .meter.big .meter-top { font-size: 14px; }
  .meter.big .bar { height: 12px; }

  /* Alerts list */
  .alert { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
  .alert:last-child { border-bottom: none; }
  .alert-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
  .alert-ic svg { width: 17px; height: 17px; }
  .alert-title { font-weight: 700; }
  .alert-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
  .sent { display: inline-flex; gap: 4px; align-items: center; }

  /* Chart */
  .chart { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding-top: 10px; }
  .chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
  .chart .bars { display: flex; gap: 4px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
  .chart .b { width: 40%; max-width: 22px; border-radius: 6px 6px 2px 2px; }
  .chart .b.earn { background: var(--blue); }
  .chart .b.cost { background: #F0A78F; }
  .chart .lbl { font-size: 11.5px; color: var(--muted); font-weight: 700; }
  .legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
  .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

  /* Tabs */
  .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
  .tab { border: none; background: transparent; padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
  .tab.active { color: var(--ink); border-bottom-color: var(--brand); }

  /* Rows / settings */
  .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
  .row:last-child { border-bottom: none; }
  .row-l { min-width: 0; }
  .row-t { font-weight: 700; }
  .row-d { font-size: 12.5px; color: var(--muted); }
  .switch { width: 42px; height: 24px; border-radius: 999px; background: #D5DBE8; position: relative; border: none; cursor: pointer; flex: none; }
  .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
  .switch.on { background: var(--green-dot); }
  .switch.on::after { left: 21px; }
  .switch[disabled] { opacity: .5; cursor: not-allowed; }
  .who { display: inline-flex; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
  .who button { border: none; background: transparent; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
  .who button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(23,32,51,.15); }
  .who button[disabled] { cursor: not-allowed; }

  .note { display: flex; gap: 10px; background: var(--blue-soft); color: var(--navy-2); border-radius: 14px; padding: 12px 14px; font-size: 13px; }
  .note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
  .note.warn { background: var(--amber-soft); color: #6B550F; }

  .door { background: var(--navy); color: #fff; border-radius: 20px; padding: 22px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .door p { margin: 4px 0 0; color: var(--nav-muted); font-size: 13px; max-width: 60ch; }
  .door .btn-primary { flex: none; }
  .door-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 10px; margin-top: 14px; }
  .door-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13px; }
  .door-item b { display: block; font-size: 13.5px; }

  .pkg { display: flex; flex-direction: column; gap: 12px; }
  .pkg.featured { border: 2px solid var(--blue); }
  .pkg-price { font-size: 28px; font-weight: 800; }
  .pkg-price small { font-size: 13px; color: var(--muted); font-weight: 600; }
  .pkg ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
  .pkg li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
  .pkg li span:last-child { font-weight: 700; text-align: right; }
  .kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; }
  .kv dt { color: var(--muted); font-weight: 600; }
  .kv dd { margin: 0; font-weight: 700; }

  /* Modal */
  .scrim { position: fixed; inset: 0; background: rgba(23,32,51,.45); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 100; }
  .scrim.open { display: flex; }
  .modal { background: var(--surface); border-radius: 24px; padding: 24px; width: 100%; max-width: 460px; box-shadow: 0 30px 80px -30px rgba(23,32,51,.6); }
  .modal h3 { margin: 0 0 6px; font-size: 19px; }
  .field { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .inp { height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font-family: inherit; font-size: 14px; color: var(--ink); background: var(--surface); }
  .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
  .toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 13.5px; opacity: 0; transition: .25s; pointer-events: none; z-index: 120; max-width: calc(100% - 32px); }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  .scrim-nav { display: none; }

  @media (max-width: 980px) {
    .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .two, .halves { grid-template-columns: 1fr; }
  }
  @media (max-width: 760px) {
    .sidebar { position: fixed; z-index: 90; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .25s ease; }
    .app[data-nav="open"] .sidebar { transform: none; }
    .app[data-nav="open"] .scrim-nav { display: block; position: fixed; inset: 0; background: rgba(23,32,51,.4); z-index: 80; }
    .menu-btn { display: inline-flex; }
    .topbar { padding: 10px 16px; flex-wrap: wrap; }
    .viewas .label-long { display: none; }
    .page { padding: 22px 16px 50px; }
    h1 { font-size: 23px; }
    .kpis { gap: 10px; }
    .stat { padding: 14px; }
    .stat-num { font-size: 22px; }
    .card { padding: 16px; }
    .table-wrap { margin: 0 -16px; padding: 0 16px; }
  }

  /* Sign-in */
  .login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--navy); }
  .login { background: var(--surface); border-radius: 28px; padding: 30px 28px; width: 100%; max-width: 400px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
  .login .brand { padding: 0 0 18px; }
  .login .mark::after { background: var(--surface); }
  .login .brand-name { color: var(--ink); }
  .login .brand-sub { color: var(--muted); }
  .login h1 { font-size: 22px; margin: 0 0 4px; }
  .login .btn { width: 100%; justify-content: center; margin-top: 16px; height: 44px; }
  .login .err { color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 10px; min-height: 18px; }
  .login .qr { display: block; margin: 14px auto 6px; width: 200px; height: 200px; border-radius: 12px; border: 1px solid var(--line); }
  .login .secret { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--bg); border-radius: 10px; padding: 8px 10px; word-break: break-all; text-align: center; }
  .login .code { letter-spacing: .4em; font-size: 20px; text-align: center; font-weight: 700; }
  .empty { text-align: center; padding: 30px 10px; color: var(--muted); }
  .empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
  .done-btn { margin-left: auto; align-self: center; }
  .alert.resolved { opacity: .55; }
  .side-foot .signout { margin-left: auto; border: none; background: transparent; color: var(--nav-muted); cursor: pointer; font-size: 12.5px; font-weight: 700; }
  .side-foot .signout:hover { color: #fff; }
  .loading { padding: 40px 0; color: var(--muted); text-align: center; }

/* Team page: alert settings */
.person .row { gap: 12px; }
.wa-num { margin-top: 8px; max-width: 240px; height: 38px; }
table.prefs td, table.prefs th { vertical-align: middle; }
.ctr { text-align: center; width: 96px; }
.tick { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.col-off .tick { opacity: .35; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
