@media screen {
  :root {
    --ui-bg:#0b1020;
    --panel:#131c30;
    --surface:#182238;
    --input:#0f1729;
    --text:#eef2fc;
    --muted:#a6b3cc;
    --line:#29364e;
    --accent:#b5a2ff;
    --soft:#a48aff16;
    --ui-sidebar:#10182b;
    --ui-shadow:0 10px 32px #00000018;
    --ui-field:#8292b312;
    --ui-danger:#f291a4;
    --ui-success:#71d8b0;
    color: var(--text);
    background: var(--ui-bg);
    font-size: 14px;
    line-height: 1.5;
    font-feature-settings:
      "cv02",
      "cv03",
      "cv04",
      "cv11";
    -webkit-font-smoothing: antialiased;
  }
  html[data-theme=light] {
    --ui-bg:#f4f6fc;
    --panel:#ffffff;
    --surface:#f8f9fd;
    --input:#ffffff;
    --text:#18223b;
    --muted:#5d6b83;
    --line:#e1e6f0;
    --accent:#6440d6;
    --soft:#724ade0d;
    --ui-sidebar:#ffffff;
    --ui-shadow:0 6px 28px #25376008;
    --ui-field:#f7f9fd;
    --ui-danger:#b8284b;
    --ui-success:#157553;
    color: var(--text);
    background: var(--ui-bg);
  }
  body {
    background:
      radial-gradient(
        ellipse at 90% 0%,
        #7971ec0b,
        transparent 50%),
      var(--ui-bg);
    min-height: 100dvh;
  }
  h1,
  h2,
  h3,
  h4 {
    font-weight: 700;
    text-wrap: balance;
    line-height: 1.25;
  }
  h2 {
    font-size: 21px;
    letter-spacing: -.55px;
  }
  h3 {
    font-size: 15px;
  }
  p {
    line-height: 1.65;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 750;
  }
  .muted {
    font-size: 13px;
  }
  .subtle {
    font-size: 12px;
    line-height: 1.65;
  }
  html[data-theme] .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 72px;
    height: auto;
    padding: 16px 28px;
    gap: 18px;
    background: var(--ui-sidebar);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 16px #00000005;
  }
  .brand {
    font-size: 24px;
  }
  .mark {
    border-radius: 12px;
    box-shadow: 0 5px 15px #7855d328;
  }
  .badge {
    border-radius: 7px;
    font-size: 10px;
    letter-spacing: .3px;
  }
  html[data-theme] .badge {
    background: var(--soft);
    border-color: var(--line);
    color: var(--accent);
  }
  #account-email {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #workspace {
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: calc(100dvh - 72px);
  }
  html[data-theme] #workspace > aside {
    position: sticky;
    top: 76px;
    height: calc(100dvh - 76px);
    align-self: start;
    overflow-y: auto;
    background: var(--ui-sidebar);
    padding: 24px 16px;
    border-right: 1px solid var(--line);
  }
  .content {
    padding: 30px clamp(20px, 3vw, 44px) 80px;
    max-width: 1560px;
    margin-block: 0;
    min-width: 0;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: clamp(23px, 2.4vw, 30px);
    letter-spacing: -.9px;
  }
  .sidebar-label {
    font-size: 10px;
    font-weight: 700;
  }
  .sidebar-footer {
    margin-top: 30px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  #company-status {
    line-height: 1.65;
  }
  html[data-theme] nav {
    gap: 5px;
  }
  html[data-theme] nav button {
    position: relative;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--muted);
    background: transparent;
    font-size: 13px;
    font-weight: 550;
    transition: background .16s, color .16s;
  }
  html[data-theme] nav button:hover {
    background: var(--ui-field);
    color: var(--text);
  }
  html[data-theme] nav button.active {
    background: var(--soft);
    border-color: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent);
  }
  nav button.active:before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    bottom: 13px;
    width: 3px;
    border-radius: 4px;
    background: var(--accent);
  }
  html[data-theme] :is(.panel, .stat, .login-card) {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--ui-shadow);
  }
  .panel {
    padding: clamp(18px, 2.1vw, 28px);
    margin-bottom: 20px;
  }
  .panel:last-child {
    margin-bottom: 0;
  }
  .panel .panel {
    box-shadow: none;
    border-radius: 14px;
  }
  .stat {
    padding: 22px;
    min-width: 0;
  }
  .stat strong {
    font-size: clamp(22px, 2.4vw, 30px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.8px;
  }
  .stat small {
    font-size: 12px;
    line-height: 1.6;
  }
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    gap: 16px;
    margin: 22px 0;
  }
  html[data-theme] button {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    min-height: 40px;
    border-radius: 10px;
    transition:
      background .16s,
      border-color .16s,
      box-shadow .16s,
      transform .16s;
    line-height: 1.35;
  }
  html[data-theme] :is(.primary, .secondary, .ghost, .danger-button, .google-button) {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    text-decoration: none;
    white-space: normal;
  }
  html[data-theme] .primary {
    border: 1px solid transparent;
    background:
      linear-gradient(
        110deg,
        #7851df,
        #536fe3);
    color: #fff;
    box-shadow: 0 4px 12px #7150de24;
  }
  html[data-theme] .primary:hover:not(:disabled) {
    filter: none;
    box-shadow: 0 6px 20px #7150de35;
    transform: translateY(-1px);
  }
  html[data-theme] :is(.secondary, .google-button) {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    box-shadow: 0 1px 2px #00000005;
  }
  html[data-theme] .ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
  }
  html[data-theme] :is(.secondary, .ghost, .google-button):hover:not(:disabled) {
    background: var(--soft);
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  }
  html[data-theme] .danger {
    color: var(--ui-danger);
  }
  html[data-theme] .danger-button {
    background: #b62b4c;
    border: 1px solid #b62b4c;
    color: white;
  }
  html[data-theme] .text-button {
    background: none;
    border: 0;
    min-height: 32px;
    color: var(--accent);
    padding: 4px 0;
  }
  button:disabled {
    opacity: .46;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
  }
  button[aria-busy=true] {
    cursor: progress;
    opacity: .7;
  }
  button[aria-busy=true]:before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ui-spin .75s linear infinite;
  }
  :is(button, input, select, textarea, a, summary):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
    outline-offset: 3px;
  }
  html[data-theme] label {
    font-size: 13px;
    font-weight: 550;
    color: var(--text);
    line-height: 1.6;
    margin: 12px 0 8px;
  }
  html[data-theme] :is(input, select, textarea) {
    font-size: 14px;
    line-height: 1.45;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--input);
    color: var(--text);
    padding: 11px 13px;
    margin-top: 7px;
    box-shadow: 0 1px 2px #00000003;
    transition: border-color .16s, box-shadow .16s;
  }
  html[data-theme] :is(input, select, textarea):focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
    outline: none;
  }
  html[data-theme] :is(input, textarea)::placeholder {
    color: var(--muted);
    opacity: .8;
  }
  input:disabled,
  select:disabled {
    opacity: .55;
    cursor: not-allowed;
  }
  textarea {
    min-height: 100px;
  }
  html[data-theme] select {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23838fa6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: right 11px center;
  }
  select option {
    background: var(--panel);
    color: var(--text);
  }
  html[data-theme] input:is([type=checkbox], [type=radio]) {
    appearance: auto;
    accent-color: #7955df;
    box-shadow: none;
    min-height: 18px;
    height: 18px;
    width: 18px;
    flex: 0 0 18px;
    margin: 0;
    padding: 0;
    cursor: pointer;
  }
  .inline-check {
    align-items: flex-start;
    gap: 10px;
  }
  .inline-check input {
    margin-top: 3px !important;
  }
  .grid2,
  .grid3 {
    gap: 16px;
  }
  fieldset {
    min-width: 0;
    border-color: var(--line);
  }
  html[data-theme] :is(input, select, textarea)[aria-invalid=true] {
    border-color: var(--ui-danger);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-danger) 9%, transparent);
  }
  .field-error {
    display: block;
    color: var(--ui-danger);
    font-size: 12px;
    font-weight: 500;
    margin-top: 7px;
    line-height: 1.5;
  }
  .search-form {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-form :is(input, select) {
    margin-top: 0;
    min-width: 0;
    flex: 1;
  }
  .search-form input {
    width: min(300px, 100%);
  }
  .toolbar {
    align-items: center;
    gap: 16px;
  }
  .actions {
    gap: 8px;
  }
  .form-actions {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 20px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .form-actions .primary {
    margin-left: auto;
  }
  .period-form {
    gap: 12px;
    align-items: end;
  }
  .period-form label {
    margin: 0;
  }
  .period-form button {
    min-height: 44px;
  }
  html[data-theme] .table-wrap {
    border-radius: 16px;
    overflow: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .panel.table-wrap {
    padding: 6px 12px 12px;
  }
  table {
    font-size: 13px;
    border-spacing: 0;
  }
  html[data-theme] th {
    background: var(--surface);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    padding: 15px 14px;
    white-space: nowrap;
  }
  html[data-theme] td {
    color: var(--text);
    padding: 17px 14px;
    border-bottom: 1px solid var(--line);
    line-height: 1.55;
  }
  tbody tr:last-child td {
    border-bottom: 0;
  }
  tbody tr:hover {
    background: var(--soft);
  }
  td.right {
    font-variant-numeric: tabular-nums;
  }
  html[data-theme] td .ghost {
    font-size: 12px;
    min-height: 34px;
    padding: 7px 10px;
  }
  td .actions {
    min-width: max-content;
  }
  .pagination {
    justify-content: space-between;
    margin: 18px 0 8px;
    gap: 10px;
  }
  .pagination button {
    min-height: 38px;
  }
  .master-contact {
    font-size: 11px;
    line-height: 1.5;
  }
  html[data-theme] .pill {
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    border-color: var(--line);
    color: var(--accent);
    background: var(--soft);
    padding: 5px 10px;
  }
  html[data-theme] .pill.approved {
    background: #26a87e14;
    border-color: #26a87e35;
    color: var(--ui-success);
  }
  html[data-theme] :is(.notice, .stock-low) {
    color: var(--text);
    background: var(--soft);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.7;
  }
  #global-message:not(:empty) {
    margin: 0 0 20px;
    padding: 15px 18px;
    border-radius: 12px;
  }
  html[data-theme] #global-message[data-feedback=success] {
    border-color: #26a87e40;
    background: #26a87e0e;
    color: var(--ui-success);
  }
  html[data-theme] #global-message[data-feedback=error] {
    border-color: #dc547440;
    background: #dc54740c;
    color: var(--ui-danger);
  }
  #global-message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  html[data-theme] dialog {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 30px 100px #00000048;
    max-height: calc(100dvh - 40px);
    max-width: min(680px, calc(100vw - 32px));
    overflow: auto;
    scrollbar-width: thin;
  }
  dialog::backdrop {
    background: #070d2070;
    backdrop-filter: blur(5px);
  }
  dialog h2 {
    margin-bottom: 14px;
  }
  .dialog-copy {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    white-space: pre-wrap;
  }
  .dialog-heading {
    gap: 16px;
    align-items: start;
  }
  .dialog-heading button {
    flex-shrink: 0;
  }
  dialog form > h2 {
    margin-top: 0;
  }
  .dialog-error,
  .deletion-error,
  .stock-error,
  .comms-error {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  details {
    border-radius: 12px;
  }
  details > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: var(--accent);
    padding: 14px 0;
  }
  details > summary::-webkit-details-marker {
    display: none;
  }
  details > summary:after {
    content: "\2304";
    font-size: 18px;
    line-height: 1;
    transition: transform .2s;
  }
  details[open] > summary:after {
    transform: rotate(180deg);
  }
  .editor-options {
    border: 1px solid var(--line);
    padding: 0 16px;
    margin: 16px 0;
    background: var(--ui-field);
  }
  .editor-options[open] {
    padding-bottom: 16px;
  }
  html[data-theme] .auth-tabs {
    background: var(--ui-field);
    border-color: var(--line);
    padding: 5px;
    border-radius: 12px;
  }
  .auth-tabs button {
    min-height: 42px;
  }
  html[data-theme] .auth-tabs button[aria-pressed=true] {
    color: var(--accent);
    background: var(--panel);
    box-shadow: 0 2px 8px #0000000c;
  }
  .login-card {
    border-radius: 24px !important;
  }
  .login-layout {
    gap: clamp(32px, 6vw, 85px);
    margin-top: 50px;
  }
  .auth-description {
    line-height: 1.8;
  }
  .password-control > button {
    min-height: 34px;
  }
  html[data-theme] .entry-card {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    text-align: left;
    box-shadow: none;
  }
  .entry-card:hover {
    transform: translateY(-2px);
  }
  html[data-theme] .entry-card.selected {
    background: var(--soft);
    border-color: var(--accent);
  }
  .role-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--soft);
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .role-symbol svg {
    width: 22px;
    height: 22px;
  }
  .entry-card strong {
    font-size: 16px;
  }
  .entry-card > span:last-child {
    font-size: 13px;
    line-height: 1.65;
  }
  .order-board {
    gap: 18px;
  }
  .order-column {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--ui-field);
  }
  .order-column h3 {
    margin: 2px 0 18px;
  }
  .order-card {
    background: var(--panel);
    box-shadow: 0 3px 12px #00000006;
    border-color: var(--line);
    border-left-width: 4px;
    border-radius: 14px;
    padding: 18px;
  }
  .order-card h4 {
    line-height: 1.45;
    font-size: 15px;
  }
  .order-card p {
    font-size: 13px;
  }
  .order-card .order-clock {
    font-size: 12px;
    font-weight: 650;
  }
  .order-controls select {
    margin-top: 0;
  }
  .queue-summary {
    background:
      linear-gradient(
        100deg,
        var(--soft),
        var(--panel)) !important;
  }
  .queue-summary h2 {
    margin-bottom: 6px;
  }
  .queue-summary p {
    margin: 0;
  }
  .stock-heading .actions {
    gap: 10px;
  }
  .stock-event p {
    margin: 8px 0;
  }
  .card-fields {
    max-width: 700px;
    border-radius: 14px;
    background: var(--ui-field);
  }
  .site-footer {
    padding: 24px 80px 30px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
  }
  .empty {
    padding: 48px 20px;
    font-size: 14px;
  }
  .empty:before {
    content: "\25c7";
    display: block;
    font-size: 32px;
    opacity: .4;
    margin-bottom: 12px;
  }
  #theme-widget {
    z-index: 50;
  }
  #theme-toggle {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--ui-shadow);
    color: var(--muted);
  }
  html[data-theme] #theme-menu {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 50px #00000025;
    padding: 6px;
  }
  #theme-menu button {
    width: 100%;
    justify-content: flex-start;
    background: transparent;
    border: 0;
    padding: 10px 14px;
    color: var(--text);
  }
  #theme-menu button[aria-checked=true] {
    background: var(--soft);
    color: var(--accent);
    border-radius: 9px;
  }
  .mobile-menu-button,
  .sidebar-close,
  .mobile-menu-backdrop {
    display: none;
  }
  @keyframes ui-spin {
    to {
      transform: rotate(360deg);
    }
  }
  @media (max-width: 1100px) {
    #workspace {
      grid-template-columns: 220px minmax(0, 1fr);
    }
    .content {
      padding-inline: 22px;
    }
    .topbar {
      padding-inline: 22px;
    }
    .grid3 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 900px) {
    #workspace {
      display: block;
    }
    .content {
      padding: 24px 20px 88px;
      max-width: 100%;
    }
    html[data-theme] #workspace > aside {
      display: block;
      position: fixed;
      z-index: 75;
      left: 0;
      top: 0;
      height: 100dvh;
      width: min(300px, 86vw);
      padding: 20px 18px;
      transform: translateX(-104%);
      visibility: hidden;
      transition: transform .2s, visibility .2s;
      border-radius: 0 22px 22px 0;
      box-shadow: 24px 0 80px #00000030;
    }
    html[data-theme] body.nav-open #workspace > aside {
      transform: translateX(0);
      visibility: visible;
    }
    .nav-open {
      overflow: hidden;
    }
    .mobile-menu-button {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      width: 40px;
      flex: 0 0 40px;
      padding: 8px !important;
    }
    .mobile-menu-button svg {
      width: 20px;
      height: 20px;
    }
    .sidebar-close {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      margin: 0 0 20px auto;
      font-size: 23px !important;
      float: right;
    }
    .mobile-menu-backdrop:not([hidden]) {
      display: block;
      position: fixed;
      inset: 0;
      z-index: 70;
      border: 0;
      border-radius: 0 !important;
      background: #070d2070;
      backdrop-filter: blur(3px);
      width: 100%;
      height: 100%;
      padding: 0;
    }
    .sidebar-footer {
      clear: both;
    }
    .topbar {
      gap: 12px !important;
    }
    #account-email {
      display: none;
    }
    .topbar .badge {
      display: none;
    }
    .search-form {
      width: 100%;
    }
    .search-form input {
      width: auto;
      min-width: 120px;
    }
    .order-board {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 600px) {
    html[data-theme] .topbar {
      padding: 12px 14px;
      gap: 10px !important;
      min-height: 66px;
    }
    .brand {
      font-size: 20px;
    }
    .mark {
      width: 30px;
      height: 30px;
      font-size: 20px;
      margin-right: 7px;
    }
    #account-bar {
      gap: 6px;
      margin-left: auto;
    }
    #account-bar button {
      font-size: 11px;
      min-height: 36px;
      padding: 8px;
    }
    #account-bar [data-nav=account] {
      display: none;
    }
    .content {
      padding: 22px 14px 85px;
    }
    .panel {
      padding: 18px;
      border-radius: 16px !important;
    }
    .page-heading {
      align-items: start;
      margin-bottom: 18px;
    }
    .page-heading h1 {
      font-size: 24px;
    }
    .stats {
      gap: 12px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stat {
      padding: 17px;
      border-radius: 15px !important;
    }
    .stat strong {
      font-size: 23px;
    }
    .stat small {
      font-size: 11px;
    }
    .grid2,
    .grid3 {
      grid-template-columns: 1fr;
    }
    .period-form {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .period-form button {
      width: 100%;
    }
    .toolbar > .primary {
      width: 100%;
    }
    .actions button {
      min-height: 40px;
    }
    .table-wrap {
      margin-inline: 0;
    }
    table {
      font-size: 12px;
    }
    td,
    th {
      padding: 13px 10px !important;
    }
    .order-board {
      grid-template-columns: 1fr;
    }
    .order-column {
      padding: 14px;
    }
    .queue-summary {
      align-items: stretch;
    }
    .queue-summary button {
      width: 100%;
    }
    .role-cards {
      grid-template-columns: 1fr !important;
      gap: 12px;
    }
    .role-cards .entry-card {
      padding: 18px;
    }
    .login-layout {
      margin: 16px auto;
      padding: 14px;
      display: block;
    }
    .login-card {
      padding: 24px !important;
    }
    .login-layout > section:first-child {
      display: none;
    }
    .form-actions {
      gap: 10px;
    }
    .form-actions button {
      flex: 1;
      min-height: 44px;
    }
    .form-actions .primary {
      margin-left: 0;
    }
    html[data-theme] dialog {
      padding: 22px 18px;
      max-height: calc(100dvh - 24px);
      border-radius: 20px;
      width: calc(100vw - 24px);
      max-width: calc(100vw - 24px);
    }
    input,
    select,
    textarea {
      font-size: 16px !important;
    }
    .site-footer {
      padding: 24px 60px 32px;
    }
    .model-choices {
      grid-template-columns: 1fr;
    }
    .plan-grid {
      grid-template-columns: 1fr;
    }
    .stock-heading .actions {
      width: 100%;
    }
    .stock-heading .actions button {
      flex: 1;
    }
    .sidebar-footer {
      margin-top: 24px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
      scroll-behavior: auto !important;
      transition: none !important;
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}
@media screen {
  .view-loading {
    display: grid;
    gap: 18px;
    padding: 8px 0;
  }
  .skeleton {
    display: block;
    border: 1px solid var(--line);
    background:
      linear-gradient(
        100deg,
        var(--panel) 20%,
        var(--surface) 45%,
        var(--panel) 70%);
    background-size: 220% 100%;
    height: 145px;
    border-radius: 20px;
    animation: skeleton-light 1.7s ease infinite;
  }
  .skeleton-title {
    height: 36px;
    width: 45%;
    max-width: 340px;
    border-radius: 10px;
  }
  @keyframes skeleton-light {
    to {
      background-position: -220% 0;
    }
  }
  #document-page .paper th {
    background: var(--brand-tint);
    padding: 14px 12px;
    font-size: 10px;
  }
  #document-page .paper td {
    padding: 14px 12px;
  }
  #document-page .paper tbody tr:hover {
    background: transparent;
  }
}
@media screen {
  html[data-theme] :is(.mobile-menu-button, .sidebar-close) {
    display: none;
  }
  .empty:before {
    content: "";
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--ui-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%238794b0' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M4 7l8-4 8 4v10l-8 4-8-4zM4 7l8 4 8-4M12 11v10'/%3E%3C/g%3E%3C/svg%3E") center/25px no-repeat;
    opacity: .8;
  }
  @media (max-width: 900px) {
    html[data-theme] :is(.mobile-menu-button, .sidebar-close) {
      display: inline-flex;
    }
  }
  html[data-theme] .mobile-menu-button[hidden] {
    display: none !important;
  }
}
@media screen {
  .team-form,
  #invite-create {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .team-form > p,
  #invite-create > label:not(.inline-check),
  #invite-create > button {
    grid-column: 1/-1;
  }
  .team-form > .inline-check,
  #invite-create > .inline-check {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--ui-field);
    min-height: 66px;
    font-size: 13px;
  }
  .team-form > button {
    margin-top: 8px;
  }
  .team-form > input[type=hidden] {
    display: none;
  }
  @media (max-width: 650px) {
    .team-form,
    #invite-create {
      grid-template-columns: 1fr;
    }
  }
}
@media screen and (max-width: 600px) {
  html[data-theme] #account-bar [data-nav=account] {
    display: inline-flex !important;
    font-size: 0 !important;
    width: 36px;
    min-width: 36px;
    padding: 8px;
  }
  #account-bar [data-nav=account]:before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%238794b0' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  }
}
@media screen {
  :root {
    scrollbar-gutter: stable;
  }
  body:has(dialog[open]) {
    overflow: hidden;
  }
  html[data-theme] dialog {
    overscroll-behavior: contain;
  }
  @media (max-width: 600px) {
    html[data-theme] td .ghost,
    html[data-theme] .actions button {
      min-height: 42px;
    }
  }
}
@media screen {
  .profile-access26 {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
  }
  .order-board {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
  .order-card label {
    display: block;
    margin: 12px 0;
  }
  .order-card select {
    width: 100%;
  }
  .app-dialog p {
    white-space: pre-line;
  }
}
@media screen {
  html[data-theme] .password-control {
    display: flex;
    align-items: center;
    background: var(--ui-field);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    gap: 0;
    width: 100%;
    min-width: 0;
  }
  html[data-theme] .password-control:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  html[data-theme] .password-control input {
    background: transparent !important;
    color: var(--text) !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    min-width: 0;
    flex: 1;
    width: 0;
    margin: 0;
  }
  html[data-theme] .password-control button {
    position: static;
    flex: 0 0 auto;
    color: var(--accent);
    background: transparent !important;
    border: 0;
    margin: 4px 6px;
    padding: 8px 12px;
    min-height: 38px;
  }
  .notification-panel27 {
    position: fixed;
    z-index: 1001;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 18px 60px #0004;
    padding: 18px;
  }
  .customer-inbox27 {
    right: 20px;
    top: 72px;
    width: min(420px, calc(100vw - 24px));
  }
  .notification-panel27 .comms-content {
    max-height: min(470px, 70vh);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .notification-panel27 h2 {
    font-size: 18px;
  }
  .notification-panel27 .notification-item {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    margin: 10px 0;
    white-space: normal;
    min-height: 0;
  }
  .notification-panel27 time {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
  }
  .notification-panel27 p {
    font-size: 13px;
    line-height: 1.6;
    margin: 7px 0;
  }
  .notification-panel27 .actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .admin-inbox27 {
    right: 0;
    top: 0;
    height: 100dvh;
    width: min(430px, 100vw);
    border-radius: 18px 0 0 18px;
  }
  .admin-inbox27 .comms-content {
    max-height: calc(100dvh - 90px);
  }
  .notification-panel27 .comms-error:empty {
    display: none;
  }
  @media (max-width: 600px) {
    .customer-inbox27 {
      right: 12px;
      top: 65px;
    }
    .notification-panel27 .comms-content {
      max-height: 60dvh;
    }
  }
}
@media screen {
  html[data-theme] .product-report {
    font-size: 11px !important;
    padding: 4px 6px !important;
    min-height: 30px !important;
    line-height: 1.4;
    color: var(--muted) !important;
    opacity: .85;
  }
  html[data-theme] .product-report:hover {
    color: var(--text) !important;
    opacity: 1;
  }
  .product-photo29 {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--ui-field);
  }
  .gallery-grid29 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin: 16px 0;
  }
  .gallery-grid29 figure {
    margin: 0;
  }
  .gallery29 {
    width: min(800px, 95vw);
    max-height: 90dvh;
    overflow: auto;
  }
  .gallery29 .image-error {
    color: var(--ui-danger);
  }
  .gallery-upload29 {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 16px;
  }
  .catalogue-product-art .product-photo29 {
    height: 100%;
    object-fit: contain;
  }
  .gallery-grid29 a {
    font-size: 12px;
  }
}
@media screen {
  #support-link {
    display: none !important;
  }
}
@media screen {
  .supplier-hero30 {
    margin-bottom: 14px !important;
  }
  .supplier-actions30 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 22px;
  }
  .supplier-actions30 .supplier-add-primary30 {
    min-height: 50px;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 13px;
  }
  .supplier-add-primary30 svg {
    width: 20px;
    height: 20px;
    flex: none;
  }
  .supplier-add.panel {
    margin-bottom: 20px;
  }
  .supplier-add.panel summary {
    font-size: 17px;
    font-weight: 650;
  }
  .supplier-settings30 {
    margin-top: 20px;
  }
  .supplier-settings30 > summary {
    font-size: 14px;
    color: var(--muted);
  }
  .supplier-settings30[open] > summary {
    margin-bottom: 20px;
  }
  .supplier-quotes30 > summary {
    font-size: 17px;
    font-weight: 650;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
  }
  .supplier-quotes30[open] > summary {
    margin-bottom: 16px;
  }
  .supplier-quotes30 .supplier-lead > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
  }
  .supplier-quotes30 .supplier-lead[open] > summary {
    margin-bottom: 12px;
  }
  #supplier-add30,
  #supplier-quotes30 {
    scroll-margin-top: 90px;
  }
  .danger-zone {
    margin-top: 24px;
  }
  @media (max-width: 600px) {
    .supplier-actions30 {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }
    .supplier-actions30 button {
      width: 100%;
      min-height: 46px;
    }
    .supplier-quotes30 .supplier-lead > summary {
      align-items: flex-start;
      flex-direction: column;
    }
  }
}
@media screen {
  .supplier-tabs31 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 6px;
    border: 1px solid currentColor;
    border-radius: 14px;
  }
  .supplier-tabs31 button {
    flex: 1;
    min-width: 150px;
  }
}
@media screen {
  .supplier-sponsored32 {
    border-color: #8b5cf6;
    position: relative;
  }
  .sponsored-badge32 {
    display: inline-flex;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #6d28d9;
    border-radius: 20px;
    padding: 5px 10px;
    margin-bottom: 8px;
  }
}
@media screen {
  .app-loading33 {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: var(--ui-bg,#0c1020);
    color: var(--text,#edf0fa);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }
  .app-loading33[hidden] {
    display: none !important;
  }
  .loading-mark33 {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #6d28d9;
    color: white;
    font-size: 30px;
    font-weight: 800;
  }
  .app-loading33 p {
    font-size: 14px;
    color: var(--muted);
  }
  #app-loading:not([hidden]) ~ #workspace,
  #app-loading:not([hidden]) ~ #login-page {
    visibility: hidden;
  }
  #view .catalogue-products {
    grid-template-columns: repeat(auto-fill, minmax(min(205px, 100%), 1fr));
    gap: 12px;
  }
  #view .catalogue-product-content {
    padding: 13px;
    gap: 8px;
  }
  #view .catalogue-product h3 {
    font-size: 14px;
  }
  #view .catalogue-value strong {
    font-size: 21px;
  }
  #view .catalogue-product-art {
    height: 85px;
  }
  #view .product-photo29 {
    height: 85px;
    max-height: 85px;
    object-fit: contain;
    width: 100%;
  }
  #view .catalogue-product-content button,
  #view .catalogue-product-content .whatsapp-button {
    font-size: 12px;
    padding: 8px 10px;
    min-height: 36px;
  }
  #view .supplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(215px, 100%), 1fr));
    gap: 12px;
  }
  #view .supplier-card {
    padding: 14px;
    border-radius: 14px;
    margin: 0;
  }
  #view .supplier-card .supplier-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-radius: 10px;
    margin-bottom: 8px;
  }
  #view .supplier-card h3 {
    font-size: 15px;
    margin: 8px 0;
  }
  #view .supplier-card p {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #view .supplier-card button {
    font-size: 12px;
    min-height: 36px;
    padding: 8px 10px;
  }
  .backup-settings33 {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: end;
  }
  .backup-settings33 label {
    flex: 1;
    min-width: 130px;
  }
  .backup-history33 small {
    display: block;
    color: var(--muted);
    font-size: 11px;
  }
  @media (max-width: 500px) {
    #view .catalogue-products,
    #view .supplier-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    #view .catalogue-product-content {
      padding: 10px;
    }
    #view .catalogue-product-content button {
      width: 100%;
    }
    #view .supplier-card {
      padding: 11px;
    }
    #view .catalogue-value strong {
      font-size: 18px;
    }
  }
}
@media screen {
  .finance-tabs35 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
  }
  .finance-tabs35 button {
    flex: 1;
    min-width: 160px;
  }
  .finance-chart35 {
    width: 100%;
    overflow: auto;
    margin: 18px 0;
  }
  .finance-chart35 svg {
    display: block;
    width: 100%;
    height: auto;
    min-width: 400px;
    max-height: 350px;
  }
  .finance-grid35 {
    stroke: var(--line);
    stroke-width: 1;
  }
  .finance-axis35 {
    fill: var(--muted);
    font-size: 12px;
  }
  .finance-legend35 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 12px;
    color: var(--muted);
    padding-bottom: 16px;
  }
  .finance-legend35 span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
  .finance-legend35 i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
  }
  .finance-company35 {
    background: #8b5cf6;
  }
  .finance-supplier35 {
    background: #3b82f6;
  }
  .finance-empty35 {
    padding: 36px 18px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    margin: 16px 0;
  }
  .finance-supplier-offer35 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .finance-supplier-offer35 > strong {
    align-self: center;
  }
  @media (max-width: 700px) {
    .finance-supplier-offer35 {
      grid-template-columns: 1fr 1fr;
    }
    .finance-supplier-offer35 > strong,
    .finance-supplier-offer35 > button {
      grid-column: 1/-1;
    }
    .finance-tabs35 button {
      min-width: 130px;
    }
    .finance-chart35 svg {
      min-width: 400px;
    }
  }
}
#app-loading {
  gap: 20px;
  background:
    radial-gradient(
      ellipse at 50% 44%,
      #6e1dc61c,
      transparent 55%),
    var(--ui-bg,#0c1020);
  padding: 24px;
  text-align: center;
}
#app-loading[hidden] {
  display: none !important;
}
.loading-stage352 {
  position: relative;
  display: block;
  width: 100px;
  height: 126px;
  flex: none;
}
.loading-logo352 {
  position: absolute;
  left: 10px;
  top: 28px;
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  transform-origin: 50% 100%;
  animation: maelos-jump352 1.8s cubic-bezier(.35, 0, .65, 1) infinite;
  will-change: transform;
}
.loading-shadow352 {
  position: absolute;
  bottom: 3px;
  left: 20px;
  width: 60px;
  height: 9px;
  border-radius: 50%;
  background: #6e1dc64d;
  filter: blur(3px);
  animation: maelos-shadow352 1.8s ease-in-out infinite;
}
#app-loading p {
  margin: 0;
  color: var(--muted,#c5cbe0);
  font: 500 14px/1.6 system-ui, sans-serif;
}
.loading-dots352 {
  display: flex;
  gap: 9px;
  height: 12px;
  align-items: center;
}
.loading-dots352 i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9b69e6;
  animation: maelos-dot352 1.05s ease-in-out infinite;
}
.loading-dots352 i:nth-child(2) {
  animation-delay: .15s;
}
.loading-dots352 i:nth-child(3) {
  animation-delay: .3s;
}
@keyframes maelos-jump352 {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  12% {
    transform: translateY(3px) scale(1.12, .85);
  }
  45% {
    transform: translateY(-34px) scale(.96, 1.04);
  }
  74% {
    transform: translateY(0) scale(1.13, .84);
  }
  86% {
    transform: translateY(-7px) scale(.97, 1.03);
  }
  96% {
    transform: translateY(0) scale(1);
  }
}
@keyframes maelos-shadow352 {
  0%, 100% {
    transform: scaleX(1);
    opacity: .6;
  }
  48% {
    transform: scaleX(.55);
    opacity: .2;
  }
  74% {
    transform: scaleX(1.2);
    opacity: .7;
  }
}
@keyframes maelos-dot352 {
  0%, 65%, 100% {
    opacity: .25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-logo352,
  .loading-shadow352,
  .loading-dots352 i {
    animation: none;
    will-change: auto;
  }
}
@media screen and (max-width: 900px) {
  html[data-theme] #workspace {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }
  html[data-theme] #workspace > aside {
    right: auto;
    max-width: 86vw;
    box-sizing: border-box;
  }
  html[data-theme] #workspace > aside nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: hidden;
  }
  html[data-theme] #workspace > aside nav button {
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .content {
    min-width: 0;
  }
}
@media screen and (max-width: 600px) {
  html[data-theme] .content {
    padding: 18px 12px 88px;
  }
  html[data-theme] .topbar {
    padding-inline: 12px;
    gap: 8px;
  }
  html[data-theme] .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  html[data-theme] .page-heading h1 {
    font-size: 24px;
    overflow-wrap: anywhere;
  }
  html[data-theme] .search-form {
    width: 100%;
    flex-wrap: wrap;
  }
  html[data-theme] .search-form input {
    min-width: 0;
    flex: 1 1 160px;
  }
  html[data-theme] .grid2,
  html[data-theme] .grid3 {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-theme] input,
  html[data-theme] select,
  html[data-theme] textarea {
    font-size: 16px;
    max-width: 100%;
  }
  html[data-theme] dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  html[data-theme] .panel {
    padding: 16px;
    min-width: 0;
  }
  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
  .actions {
    flex-wrap: wrap;
  }
  html[data-theme] .brand {
    font-size: 22px;
  }
  html[data-theme] .site-footer {
    padding-inline: 20px;
  }
}
