/* Orderflow.lk identity. Presentation only: no workflow or status changes. */
html:root {
  --brand-purple: #6c2bdb;
  --brand-purple-light: #8f5bff;
  --brand-yellow: #ffc928;
  --brand-navy: #0f172a;
  --brand-gray: #f3f4f6;
  --purple: #6c2bdb;
  --ink: #0f172a;
  --bg: #f3f4f6;
  --muted: #667085;
  --line: #e5e7ee;
}
body.of-workspace {
  background: radial-gradient(ellipse at 100% 0%, #eee5ff 0, transparent 34%), #f3f4f6;
  color: var(--brand-navy);
}
body .brand .logo {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border-radius: 28%;
  object-fit: cover;
  background: var(--brand-purple);
  transform: none;
  box-shadow: 0 6px 18px #6c2bdb29;
}
body.of-workspace .side {
  background: linear-gradient(180deg, #0f172a 0%, #14172d 100%);
  border-right: 1px solid #ffffff0d;
}
body.of-workspace .side .brand {gap: 11px; padding: 0 5px 28px;}
body.of-workspace .brand b {font-size: 17px; letter-spacing: -.5px;}
body.of-workspace .brand small {color: #b7bfd2; font-size: 8px; letter-spacing: .07em; margin-top: 5px;}
body.of-workspace .user {background: #14172d; border-color: #ffffff14;}
body.of-workspace .nav button {color: #b7bfd2; border-radius: 11px;}
body.of-workspace .nav button:hover {background: #ffffff09; color: #fff;}
body.of-workspace .nav button.active {
  background: linear-gradient(100deg, #6c2bdb, #5121a7);
  color: #fff;
  box-shadow: 0 5px 18px #00000020;
}
body.of-workspace .nav > button.active::before {background: #ffc928; box-shadow: none;}
body.of-workspace .nav-group.open {background: #ffffff05;}
body.of-workspace .nav .subnav button.active {color: #ffc928 !important; background: transparent; box-shadow: none;}
body.of-workspace .nav em {background: #ffffff16; color: #eee8ff;}
body.of-workspace .title h1 {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #0f172a;
  letter-spacing: -.7px;
}
body.of-workspace .top::after {background: linear-gradient(90deg, #6c2bdb20, #e5e7ee, transparent);}
body.of-workspace :is(.panel, .metric, .summary-card, .integration-card, .owner-panel, .owner-metric) {
  border-color: #e5e7ee;
  border-radius: 16px;
  box-shadow: 0 4px 20px #0f172a04;
}
body.of-workspace :is(.panel, .metric, .summary-card, .integration-card):hover {
  border-color: #d8c9f3;
  box-shadow: 0 9px 28px #6c2bdb09;
}
body.of-workspace .metric-icon {background: #f0e8fc; color: #6c2bdb;}
body.of-workspace .mini-avatar {background: #f0e8fc; color: #6c2bdb;}
body.of-workspace .metric strong {color: #0f172a; letter-spacing: -.7px;}
body.of-workspace .btn {border-radius: 10px;}
body.of-workspace .primary {
  background: linear-gradient(115deg, #6c2bdb, #7b3ce8);
  color: #fff;
  box-shadow: 0 5px 14px #6c2bdb22;
}
body.of-workspace .primary:hover {filter: brightness(.96); box-shadow: 0 7px 18px #6c2bdb30;}
body.of-workspace .secondary {background: #f3f4f6; color: #344054;}
body.of-workspace .outline {border-color: #d5dae4; color: #344054; background: #fff;}
body.of-workspace .app-version {background: #fff6d8; color: #715200; border-color: #ffe28b; box-shadow: none;}
body.of-workspace .bar {background: linear-gradient(#a47de8, #6c2bdb);}
body.of-workspace .table-wrap tbody tr:hover {background: #faf7ff;}
body.of-workspace .table-wrap th {color: #667085; background: #fafbfc;}
body.of-workspace .owner-shell {background: #f8f7fc; border-color: #e5e0ef;}
body.of-workspace .owner-hero {background: linear-gradient(115deg, #0f172a, #29174b 70%, #472184);}
body.of-workspace .owner-hero::after {background: linear-gradient(145deg, #8f5bff44, #ffc92822);}
body.of-workspace .owner-shop-avatar {background: linear-gradient(135deg, #8f5bff, #6c2bdb);}
body.of-workspace .modal {border-radius: 20px; box-shadow: 0 28px 90px #0f172a33;}
body.of-workspace :is(input, select, textarea):focus-visible,
body.of-auth :is(input, select, textarea):focus-visible {
  outline: 2px solid #6c2bdb;
  outline-offset: 2px;
}
body.of-workspace button:focus-visible, body.of-auth button:focus-visible,
body.of-workspace a:focus-visible, body.of-auth a:focus-visible {
  outline: 3px solid #8f5bff;
  outline-offset: 3px;
}
/* Keep auth forms and their validation unchanged; only skin the existing layout. */
body.of-auth {background: radial-gradient(ellipse at 90% 0%, #e9dcff, transparent 50%), #f3f4f6; color: #0f172a;}
body.of-auth .brand {display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.5px;}
body.of-auth .wrap {border-color: #e5e7ee; box-shadow: 0 24px 75px #0f172a12; border-radius: 24px;}
body.of-auth .wrap > .intro {background: linear-gradient(150deg, #0f172a, #211339); overflow: hidden;}
body.of-auth .intro::after {border-color: #8f5bff; opacity: .28;}
body.of-auth .points span::before {background: #ffc928; color: #0f172a;}
body.of-auth .login button, body.of-auth .submit,
body.of-auth button[type=submit], body.of-auth .primary {
  background: linear-gradient(110deg, #6c2bdb, #8f5bff);
  border-color: #6c2bdb;
  color: #fff;
  box-shadow: 0 6px 18px #6c2bdb22;
}
body.of-auth .login button:hover, body.of-auth .submit:hover {filter: brightness(.96);}
body.of-auth .card {border-color: #e5e7ee; box-shadow: 0 22px 75px #0f172a14;}
body.of-auth .brand > .logo + span {min-width: 0;}
body.of-auth .orb {opacity: .22;}
body.of-auth:has(#ownerLogin) {background: radial-gradient(ellipse at 10% 0%, #321957, transparent 60%), #0f172a; color: #fff;}
body.of-auth:has(#ownerLogin) .card {background: #141d30; border-color: #ffffff16;}
body.of-auth:has(#ownerLogin) .brand {color: #fff;}
body.of-auth:has(#registerForm) .brand {color: #0f172a;}
body.of-auth:has(#registerForm) .brand {display: block; text-align: center;}
body.of-auth:has(#registerForm) .brand .logo {margin: 0 auto 14px;}
body.of-auth:has(#registerForm) .brand > p {color: #667085;}
body.of-auth:has(#registerForm) .panel {border-color: #e5e7ee; background: #fff; color: #0f172a; box-shadow: 0 12px 40px #0f172a08;}
body.of-auth:has(#registerForm) .muted {color: #667085;}
body.of-auth:has(#registerForm) .field label {color: #475467;}
body.of-auth:has(#registerForm) :is(.choice, .courier-choices, .courier-choices label) {color: #475467;}
body.of-auth:has(#registerForm) .courier-choices {border-color: #d5dae4;}
body.of-auth:has(#registerForm) .plan .badge {background: #f0e8fc; color: #5920b7;}
body.of-auth:has(#registerForm) input[type=checkbox] {accent-color: #6c2bdb;}
body.of-auth:has(#registerForm) .error {color: #b4233c;}
body.of-auth:has(#registerForm) .success {color: #12754f;}
body.of-auth:has(#registerForm) .field :is(input,select) {background: #f9fafb; color: #0f172a; border-color: #d5dae4;}
body.of-auth:has(#registerForm) .plan {background: #fff; color: #0f172a; border-color: #e5e7ee;}
body.of-auth:has(#registerForm) .plan p {color: #667085;}
body.of-auth:has(#registerForm) .login {border-color: #e5e7ee; color: #667085;}
body.of-auth:has(#registerForm) .login a {color: #6c2bdb;}
@media(prefers-reduced-motion:reduce) {
  body.of-workspace *, body.of-auth * {scroll-behavior: auto;}
}
@media print {
  body.of-workspace, body.of-auth {background: #fff;}
}
