/* [project]/packages/ui/src/styles.css [app-client] (css) */
:root {
  --bg: #f4f6f9;
  --surface: #fff;
  --surface-2: #f8fafc;
  --border: #e3e8ef;
  --text: #1a2233;
  --muted: #5d6b82;
  --primary: #1f6feb;
  --primary-ink: #fff;
  --primary-soft: #e8f0fe;
  --ok: #1a7f4b;
  --ok-soft: #e3f6ec;
  --warn: #9a6700;
  --warn-soft: #fff4d6;
  --danger: #c93c37;
  --danger-soft: #fdeceb;
  --sidebar: #0f1b33;
  --sidebar-ink: #c9d4ea;
  --sidebar-active: #1c2e54;
  --radius: 10px;
  --shadow: 0 1px 2px #1018280f, 0 4px 14px #1018280f;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0d1220;
  --surface: #151c2e;
  --surface-2: #1a2236;
  --border: #28324a;
  --text: #e8edf7;
  --muted: #94a3bd;
  --primary: #5b9bff;
  --primary-ink: #0a1020;
  --primary-soft: #1a2c52;
  --ok: #4cc38a;
  --ok-soft: #12301f;
  --warn: #e0b34a;
  --warn-soft: #3a2e0f;
  --danger: #ff7b72;
  --danger-soft: #3a1717;
  --sidebar: #0a0f1d;
  --sidebar-active: #172140;
  --shadow: 0 1px 2px #0006;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #0d1220;
    --surface: #151c2e;
    --surface-2: #1a2236;
    --border: #28324a;
    --text: #e8edf7;
    --muted: #94a3bd;
    --primary: #5b9bff;
    --primary-ink: #0a1020;
    --primary-soft: #1a2c52;
    --ok: #4cc38a;
    --ok-soft: #12301f;
    --warn: #e0b34a;
    --warn-soft: #3a2e0f;
    --danger: #ff7b72;
    --danger-soft: #3a1717;
    --sidebar: #0a0f1d;
    --sidebar-active: #172140;
    --shadow: 0 1px 2px #0006;
    --lightningcss-light: ;
    --lightningcss-dark: initial;
    color-scheme: dark;
  }
}

:root[data-density="compact"] {
  --pad-y: 7px;
}

:root[data-density="comfy"] {
  --pad-y: 15px;
}

:root[data-fs="sm"] body {
  font-size: 14px;
}

:root[data-fs="lg"] body {
  font-size: 17px;
}

:root[data-fs="xl"] body {
  font-size: 19px;
}

:root[data-density] th, :root[data-density] td {
  padding-top: var(--pad-y, 11px);
  padding-bottom: var(--pad-y, 11px);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  letter-spacing: -.01em;
  margin: 0 0 .4em;
  line-height: 1.25;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.2rem;
}

h3 {
  font-size: 1rem;
}

p {
  margin: 0 0 .8em;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: .85rem;
}

.row {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.row.between {
  justify-content: space-between;
}

.stack, .grid {
  gap: 16px;
  display: grid;
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.shell {
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  display: grid;
}

.sidebar {
  background: var(--sidebar);
  color: var(--sidebar-ink);
  flex-direction: column;
  gap: 6px;
  height: 100vh;
  padding: 20px 14px;
  display: flex;
  position: sticky;
  top: 0;
}

.brand {
  color: #fff;
  letter-spacing: -.02em;
  padding: 4px 10px 18px;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand span {
  color: #6aa5ff;
}

.brand small {
  color: var(--sidebar-ink);
  opacity: .8;
  letter-spacing: 0;
  font-size: .75rem;
  font-weight: 400;
  display: block;
}

.sidebar > .nav {
  scrollbar-width: thin;
  flex: 0 auto;
  min-height: 0;
  overflow-y: auto;
}

.nav a {
  color: var(--sidebar-ink);
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-weight: 500;
  display: flex;
}

.nav a:hover {
  background: var(--sidebar-active);
  color: #fff;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  background: var(--sidebar-active);
  color: #fff;
}

.sidebar .spacer {
  flex: 1;
}

.userbox {
  border-top: 1px solid #ffffff1a;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
  display: flex;
}

.userbox .who {
  min-width: 0;
}

.userbox .who strong {
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
  display: block;
  overflow: hidden;
}

.userbox .who span {
  opacity: .8;
  font-size: .78rem;
}

.main {
  width: 100%;
  max-width: 1240px;
  padding: 28px 32px 48px;
}

.page-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  display: flex;
}

.banner {
  border-radius: var(--radius);
  background: var(--warn-soft);
  color: var(--warn);
  margin-bottom: 18px;
  padding: 10px 16px;
  font-weight: 500;
}

.banner.system {
  color: #fff;
  background: #5a2d82;
}

.banner.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .shell > * {
    min-width: 0;
  }

  .sidebar {
    flex-flow: wrap;
    align-items: center;
    height: auto;
    padding: 12px;
    position: static;
  }

  .brand {
    flex: 100%;
    padding-bottom: 4px;
  }

  .nav {
    flex-wrap: wrap;
    flex: 100%;
    gap: 4px;
    display: flex;
  }

  .nav a {
    padding: 7px 10px;
  }

  .sidebar .spacer {
    display: none;
  }

  .userbox {
    border: 0;
    flex: auto;
    min-width: 0;
    margin: 0;
    padding: 4px 0;
  }

  .main {
    padding: 18px 16px 40px;
  }

  .page-head > .row {
    width: 100%;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.card h2, .card h3 {
  margin-bottom: .6em;
}

.stat .num {
  letter-spacing: -.02em;
  font-size: 2rem;
  font-weight: 700;
}

.stat .lbl {
  color: var(--muted);
  font-size: .85rem;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .93rem;
}

th, td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  padding: 11px 14px;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--surface-2);
}

.field {
  gap: 6px;
  margin-bottom: 14px;
  display: grid;
}

.field label {
  font-size: .88rem;
  font-weight: 600;
}

.field > * {
  min-width: 0;
}

select {
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
}

.field, .stack > *, .card {
  min-width: 0;
}

.field select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.field {
  overflow-clip-margin: 4px;
  overflow: clip;
}

.field .hint {
  color: var(--muted);
  font-size: .8rem;
}

.field .err {
  color: var(--danger);
  font-size: .82rem;
}

input, select, textarea {
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  padding: 9px 12px;
}

input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn {
  font: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.btn:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}

.btn.primary:hover {
  filter: brightness(1.08);
}

.btn.danger {
  color: var(--danger);
  border-color: var(--danger);
}

.btn.sm {
  padding: 5px 10px;
  font-size: .85rem;
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.chip {
  background: var(--primary-soft);
  color: var(--primary);
  white-space: nowrap;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: .78rem;
  font-weight: 600;
  display: inline-block;
}

.chip.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.chip.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.chip.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.chip.gray {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.avatar {
  object-fit: cover;
  background: var(--primary-soft);
  width: 36px;
  height: 36px;
  color: var(--primary);
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-weight: 700;
  display: inline-grid;
}

.avatar.lg {
  width: 56px;
  height: 56px;
  font-size: 1.2rem;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 36px 16px;
}

.error-box {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 10px 14px;
}

.ok-box {
  background: var(--ok-soft);
  color: var(--ok);
  word-break: break-all;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 10px 14px;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2));
  background-size: 200% 100%;
  border-radius: 6px;
  height: 1em;
  animation: 1.2s infinite sk;
}

@keyframes sk {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

.auth {
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
  display: grid;
}

.auth .hero {
  color: #fff;
  background-position: center;
  background-size: cover;
  align-items: flex-end;
  padding: 40px;
  display: flex;
  position: relative;
}

.auth .hero:after {
  content: "";
  background: linear-gradient(#0a14281a, #0a1428c7);
  position: absolute;
  inset: 0;
}

.auth .hero > div {
  z-index: 1;
  max-width: 460px;
  position: relative;
}

.auth .hero h2 {
  font-size: 1.7rem;
}

.auth .panel {
  background: var(--bg);
  place-items: center;
  padding: 32px 20px;
  display: grid;
}

.auth .panel .card {
  width: min(420px, 100%);
  padding: 28px;
}

.auth.solo {
  grid-template-columns: 1fr;
}

@media (max-width: 860px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .auth .hero {
    display: none;
  }
}

.steps {
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.steps li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  display: flex;
}

.steps .dot {
  background: var(--border);
  width: 22px;
  height: 22px;
  color: var(--muted);
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: .75rem;
  font-weight: 700;
  display: inline-grid;
}

.steps li.done .dot {
  background: var(--ok);
  color: #fff;
}

.steps li.running .dot {
  background: var(--primary);
  color: #fff;
}

.steps li.failed .dot {
  background: var(--danger);
  color: #fff;
}

.steps li.failed {
  border-color: var(--danger);
}

.overlay {
  z-index: 50;
  background: #080e1e8c;
  place-items: center;
  padding: 16px;
  display: grid;
  position: fixed;
  inset: 0;
}

.modal {
  background: var(--surface);
  border-radius: 12px;
  width: min(520px, 100%);
  max-height: 90vh;
  padding: 24px;
  overflow: auto;
  box-shadow: 0 20px 60px #00000059;
}

.perm {
  gap: 3px;
  display: inline-flex;
}

.perm i {
  background: var(--surface-2);
  width: 20px;
  height: 20px;
  color: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  place-items: center;
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
  display: inline-grid;
}

.perm i.on {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #0000;
}

.hero-img {
  border-radius: var(--radius);
  color: #fff;
  background-position: center;
  background-size: cover;
  align-items: flex-end;
  height: 170px;
  margin-bottom: 18px;
  padding: 18px 22px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero-img:after {
  content: "";
  background: linear-gradient(#0a14280d, #0a1428bf);
  position: absolute;
  inset: 0;
}

.hero-img > div {
  z-index: 1;
  position: relative;
}

.hero-img h1 {
  margin: 0;
}

.stack > *, .grid > *, .row > * {
  min-width: 0;
}

.split {
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  display: grid;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.seg {
  flex-wrap: wrap;
  gap: 8px;
  display: inline-flex;
}

.seg button {
  font: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 44px;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
}

.seg button.on {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}

.modes {
  flex-wrap: wrap;
  gap: 16px;
  display: flex;
}

.mode {
  font: inherit;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  border-radius: 12px;
  gap: 4px;
  width: 260px;
  max-width: 100%;
  padding: 10px;
  display: grid;
}

.mode.on {
  border: 3px solid var(--primary);
  padding: 8px;
}

.swatch {
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 110px;
  margin-bottom: 6px;
  display: flex;
  overflow: hidden;
}

.sw {
  flex: 1;
  display: flex;
}

.sw .rail {
  width: 26px;
  display: block;
}

.sw > div {
  flex: 1;
  align-content: start;
  gap: 6px;
  padding: 10px;
  display: grid;
}

.sw b, .sw u, .sw s {
  border-radius: 4px;
  text-decoration: none;
  display: block;
}

.sw b {
  width: 60%;
  height: 9px;
}

.sw u {
  border-radius: 6px;
  height: 30px;
}

.sw s {
  width: 30%;
  height: 9px;
}

.sw.l {
  background: #f4f6f9;
}

.sw.l .rail {
  background: #0f1b33;
}

.sw.l b {
  background: #1a2233;
}

.sw.l u {
  background: #fff;
  border: 1px solid #e3e8ef;
}

.sw.l s {
  background: #1f6feb;
}

.sw.d {
  background: #0d1220;
}

.sw.d .rail {
  background: #0a0f1d;
}

.sw.d b {
  background: #e8edf7;
}

.sw.d u {
  background: #151c2e;
  border: 1px solid #28324a;
}

.sw.d s {
  background: #5b9bff;
}

@media (max-width: 860px) {
  .sidebar {
    gap: 4px 8px;
    padding: 10px 12px;
  }

  .brand {
    flex: auto;
    padding: 0;
  }

  .brand small {
    display: none;
  }

  .sidebar > .nav {
    scrollbar-width: none;
    flex-wrap: nowrap;
    flex: 100%;
    order: 3;
    gap: 2px;
    padding-bottom: 2px;
    overflow-x: auto;
  }

  .sidebar > .nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar > .nav a {
    white-space: nowrap;
    flex: none;
  }

  .sidebar > .nav + .spacer + .nav {
    flex: 100%;
    order: 4;
  }

  .userbox {
    flex: 0 auto;
    order: 2;
  }

  .sidebar > .btn {
    order: 2;
  }

  h1 {
    font-size: 1.35rem;
  }

  .card {
    padding: 14px;
  }

  .modal {
    padding: 18px;
  }

  .grid.cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (pointer: coarse), (max-width: 860px) {
  .btn, .btn.sm, .seg button, .tabs button, select, input:not([type="range"]):not([type="checkbox"]):not([type="radio"]) {
    min-height: 44px;
  }

  .btn.sm {
    min-width: 44px;
    padding: 8px 14px;
  }

  .nav a {
    min-height: 44px;
  }

  .chipdrag, .legend button {
    min-height: 40px;
  }

  .tooth {
    padding: 4px 0 6px;
  }

  input[type="range"] {
    min-height: 44px;
  }
}

@media (max-width: 600px) {
  .main {
    padding: 14px 12px 32px;
  }

  .kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-wrap {
    margin: 0 -2px;
  }

  th, td {
    padding: 9px 10px;
  }

  .toast {
    text-align: center;
    width: calc(100% - 24px);
    bottom: 12px;
  }

  .tender {
    grid-template-columns: 110px 1fr;
  }

  .tender > span:last-child {
    grid-column: 1 / -1;
  }

  .modes {
    gap: 10px;
  }

  .mode {
    width: 100%;
  }
}

.toast {
  background: var(--text);
  color: var(--bg);
  z-index: 60;
  box-shadow: var(--shadow);
  border-radius: 10px;
  max-width: 90vw;
  padding: 10px 18px;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.toast .btn {
  color: inherit;
  background: none;
  border-color: currentColor;
}

.grip {
  color: var(--muted);
  letter-spacing: -2px;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.lane {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  align-content: start;
  gap: 8px;
  min-height: 90px;
  padding: 10px;
  display: grid;
}

.lane.drop-over, .drop-over {
  outline: 2px dashed var(--primary);
  outline-offset: -2px;
  background: var(--primary-soft);
}

.dcard {
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: grab;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  display: flex;
}

.dcard.dragging {
  opacity: .45;
}

.dcard .meta {
  flex: 1;
  min-width: 0;
}

.dcard .meta strong, .dcard .meta span {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.lanes {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  align-items: start;
  gap: 12px;
  display: grid;
}

.lanes > *, .lane, .lane > *, .dcard {
  min-width: 0;
}

.dcard > .btn, .dcard > select, .dcard > .chip {
  flex: none;
}

.lane {
  overflow: hidden;
}

.sr-only {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.sb-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  display: flex;
}

.sb-head .brand {
  padding-bottom: 14px;
}

.brand-mini {
  display: none;
}

.sb-toggle {
  color: #fff;
  cursor: pointer;
  background: #ffffff1a;
  border: 0;
  border-radius: 8px;
  flex: none;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  line-height: 1;
}

.sb-toggle:hover {
  background: var(--sidebar-active);
}

.sb-edit {
  font: inherit;
  color: var(--sidebar-ink);
  cursor: pointer;
  background: none;
  border: 1px dashed #ffffff40;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: .85rem;
  display: flex;
}

.sb-edit:hover {
  background: var(--sidebar-active);
  color: #fff;
}

.nav a, .sb-edit {
  position: relative;
}

.nav a .ico {
  text-align: center;
  width: 1.3em;
  display: inline-block;
}

.nav-edit {
  gap: 8px;
  display: grid;
}

.nav-edit .sb-hint {
  background: var(--sidebar-active);
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .78rem;
  line-height: 1.4;
}

.nav-edit ul {
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.nav-edit li {
  color: var(--sidebar-ink);
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 2px 6px;
  font-weight: 500;
  display: flex;
  position: relative;
}

.nav-edit li:focus-visible {
  outline: 2px solid #6aa5ff;
}

.nav-edit li.dragging {
  color: #fff;
  opacity: .85;
  background: #26407a;
  box-shadow: 0 8px 20px #0006;
}

.nav-edit li.drop-before:before, .nav-edit li.drop-after:after {
  content: "";
  background: #6aa5ff;
  border-radius: 2px;
  height: 3px;
  position: absolute;
  left: 6px;
  right: 6px;
}

.nav-edit li.drop-before:before {
  top: -2px;
}

.nav-edit li.drop-after:after {
  bottom: -2px;
}

.nav-edit .lbl {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nav-edit li button {
  width: 36px;
  height: 36px;
  color: inherit;
  cursor: pointer;
  background: #ffffff14;
  border: 0;
  border-radius: 6px;
  flex: none;
  font-size: .7rem;
}

.nav-edit li button:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.nav-edit li button:hover:not(:disabled) {
  background: #ffffff2e;
}

.nav-edit .grip {
  color: #8aa0c8;
}

.sb-actions {
  gap: 8px;
  display: flex;
}

.sb-actions .btn {
  flex: 1;
  justify-content: center;
}

.sb-actions .btn:not(.primary) {
  color: var(--sidebar-ink);
  background: none;
  border-color: #ffffff40;
}

.sb-backdrop {
  display: none;
}

@media (min-width: 861px) {
  :root[data-sb="collapsed"] .shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  :root[data-sb="collapsed"] .sidebar {
    align-items: center;
    padding: 18px 10px;
  }

  :root[data-sb="collapsed"] .sb-head {
    flex-direction: column;
    align-items: center;
  }

  :root[data-sb="collapsed"] .brand-full, :root[data-sb="collapsed"] .brand small, :root[data-sb="collapsed"] .nav .lbl, :root[data-sb="collapsed"] .sb-edit .lbl, :root[data-sb="collapsed"] .sidebar .userbox .who, :root[data-sb="collapsed"] .sidebar .btn .lbl {
    display: none;
  }

  :root[data-sb="collapsed"] .brand-mini {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: block;
  }

  :root[data-sb="collapsed"] .brand-mini span {
    color: #6aa5ff;
  }

  :root[data-sb="collapsed"] .brand {
    padding: 0 0 8px;
  }

  :root[data-sb="collapsed"] .nav {
    align-items: center;
    width: 100%;
  }

  :root[data-sb="collapsed"] .nav a, :root[data-sb="collapsed"] .sb-edit {
    justify-content: center;
    width: 48px;
    min-height: 44px;
    padding: 0;
  }

  :root[data-sb="collapsed"] .userbox {
    justify-content: center;
    padding: 10px 0;
  }

  :root[data-sb="collapsed"] .sidebar > .btn {
    justify-content: center;
    width: 44px;
    padding: 8px 0;
  }

  :root[data-sb="collapsed"] .nav a[data-tip]:hover:after, :root[data-sb="collapsed"] .nav a[data-tip]:focus-visible:after {
    content: attr(data-tip);
    white-space: nowrap;
    color: #fff;
    z-index: 30;
    pointer-events: none;
    background: #1a2233;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: .85rem;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    transform: translateY(-50%);
    box-shadow: 0 4px 14px #1018284d;
  }
}

@media (max-width: 860px) {
  .sb-toggle {
    display: none;
  }

  .sb-head {
    flex: auto;
  }

  .sb-edit .lbl {
    display: none;
  }

  .sb-edit {
    order: 2;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .sidebar.editing .nav-edit {
    z-index: 80;
    background: var(--surface);
    color: var(--text);
    border-radius: 18px 18px 0 0;
    max-height: 80vh;
    padding: 16px 16px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: auto;
    box-shadow: 0 -10px 30px #0000004d;
  }

  .sidebar.editing .sb-backdrop {
    z-index: 70;
    background: #080e1e8c;
    border: 0;
    display: block;
    position: fixed;
    inset: 0;
  }

  .sidebar.editing .nav-edit li {
    color: var(--text);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .sidebar.editing .nav-edit li button {
    background: var(--surface-2);
    width: 44px;
    height: 44px;
  }

  .sidebar.editing .nav-edit .sb-hint {
    background: var(--primary-soft);
    color: var(--text);
  }

  .sidebar.editing .sb-actions .btn:not(.primary) {
    color: var(--text);
    border-color: var(--border);
  }
}

.redbar {
  z-index: 15;
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  font-weight: 600;
  display: flex;
  position: sticky;
  top: 0;
}

.redbar small {
  opacity: .95;
  font-weight: 400;
}

.yellowbar {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-weight: 500;
}

.tabs {
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  display: flex;
}

.tabs button {
  font: inherit;
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 3px solid #0000;
  min-height: 44px;
  padding: 10px 14px;
  font-weight: 600;
}

.tabs button[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.chipbtn {
  border: 1px solid var(--border);
  font: inherit;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  font-size: .85rem;
  display: inline-flex;
}

.chipbtn[aria-pressed="true"], .chipbtn.on {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}

.chipbtn i {
  border-radius: 50%;
  width: 10px;
  height: 10px;
  display: inline-block;
}

@media (pointer: coarse), (max-width: 860px) {
  .chipbtn {
    min-width: 44px;
    min-height: 44px;
  }
}

.tagchip {
  color: #fff;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-size: .78rem;
  font-weight: 600;
  display: inline-flex;
}

.tagchip button {
  color: inherit;
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  padding: 0 2px;
  line-height: 1;
}

.rowcard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  display: grid;
}

.rowcard:hover {
  background: var(--surface-2);
}

.rowcard.drop-over {
  outline: 2px dashed var(--primary);
  background: var(--primary-soft);
}

.dl {
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 8px 14px;
  margin: 0;
  font-size: .92rem;
  display: grid;
}

.dl dt {
  color: var(--muted);
}

.dl dd {
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
}

@media (max-width: 600px) {
  .dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dl dt {
    margin-top: 8px;
  }
}

.side {
  position: sticky;
  top: 16px;
}

.layout-2 {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 16px;
  display: grid;
}

@media (max-width: 1000px) {
  .layout-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
  }
}

.arch {
  grid-template-columns: repeat(16, minmax(34px, 1fr));
  gap: 4px;
  display: grid;
}

.arch.primary {
  grid-template-columns: repeat(10, minmax(38px, 1fr));
}

.arch-gap {
  height: 6px;
}

.tooth {
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 8px;
  justify-items: center;
  gap: 2px;
  padding: 2px 0 4px;
  display: grid;
}

.tooth:hover {
  background: var(--surface-2);
}

.tooth[aria-pressed="true"] {
  outline: 2px solid var(--primary);
}

.tooth .fdi {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
}

.tooth .crown {
  border: 2px solid var(--border);
  color: #fff;
  border-radius: 6px;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: .6rem;
  font-weight: 800;
  display: grid;
}

.tooth.missing .crown {
  background: repeating-linear-gradient(45deg, var(--border), var(--border) 3px, transparent 3px, transparent 6px);
  color: var(--muted);
}

.tooth .dots {
  gap: 2px;
  min-height: 8px;
  display: flex;
}

.tooth .dots i {
  border-radius: 50%;
  width: 8px;
  height: 8px;
  display: block;
}

.legend {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.legend button {
  font: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: inherit;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 6px;
  font-size: .8rem;
  display: inline-flex;
}

.legend button[aria-pressed="true"] {
  outline: 2px solid var(--primary);
}

.legend i {
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-block;
}

.surfaces {
  gap: 6px;
  display: flex;
}

.surfaces button {
  font: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  width: 34px;
  height: 34px;
  color: inherit;
  border-radius: 6px;
  font-weight: 700;
}

.surfaces button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}

.timeline li {
  border-left: 3px solid var(--border);
  padding: 2px 0 2px 10px;
  font-size: .88rem;
}

.chipdrag {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 8px;
  font-size: .82rem;
  display: inline-flex;
}

.chipdrag i {
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: inline-block;
}

.hint {
  color: var(--primary);
  font-size: .82rem;
}

.armed-bar {
  z-index: 20;
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: var(--shadow);
  border-radius: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  display: flex;
  position: sticky;
  top: 0;
}

.armed-bar .btn {
  color: inherit;
  background: none;
  border-color: currentColor;
}

.chipdrag[aria-pressed="true"], .legend button[aria-pressed="true"] {
  outline: 3px solid var(--primary);
  background: var(--primary-soft);
}

button.chipdrag {
  font: inherit;
  color: inherit;
  cursor: pointer;
  font-size: .82rem;
}

.only-mobile {
  display: none;
}

@media (max-width: 1000px) {
  .only-mobile {
    display: block;
  }

  .only-desktop {
    display: none;
  }
}

.sched {
  grid-template-columns: 56px repeat(var(--cols), minmax(150px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  overflow-x: auto;
}

.sched .head {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  text-align: center;
  padding: 8px;
  font-size: .85rem;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.sched .head:first-child {
  border-left: 0;
}

.sched .hours {
  grid-auto-rows: var(--h, 56px);
  color: var(--muted);
  font-size: .75rem;
  display: grid;
}

.sched .hours div {
  border-top: 1px solid var(--border);
  padding: 2px 6px;
}

.sched .col {
  border-left: 1px solid var(--border);
  background-image: linear-gradient(var(--border) 1px, transparent 1px);
  background-size: 100% var(--h, 56px);
  position: relative;
}

.appt {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  font-size: .8rem;
  line-height: 1.3;
  font: inherit;
  color: inherit;
  border-left-width: 4px;
  border-radius: 8px;
  padding: 5px 8px;
  position: absolute;
  left: 4px;
  right: 4px;
  overflow: hidden;
}

.appt strong {
  font-size: .85rem;
  display: block;
}

.appt:hover, .appt[aria-pressed="true"] {
  outline: 2px solid var(--primary);
}

.appt.s-booked {
  border-left-color: var(--muted);
}

.appt.s-confirmed {
  border-left-color: var(--primary);
}

.appt.s-arrived {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.appt.s-in_progress {
  border-left-color: #8a4fff;
}

.appt.s-done {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.slot {
  height: 28px;
  position: absolute;
  left: 0;
  right: 0;
}

.agenda {
  display: none;
}

.agenda .item {
  text-align: left;
  font: inherit;
  color: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  border-left-width: 4px;
  border-radius: 10px;
  gap: 4px;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  display: grid;
}

.agenda .item[aria-pressed="true"] {
  outline: 2px solid var(--primary);
}

.agenda .item.s-booked {
  border-left-color: var(--muted);
}

.agenda .item.s-confirmed {
  border-left-color: var(--primary);
}

.agenda .item.s-arrived {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.agenda .item.s-in_progress {
  border-left-color: #8a4fff;
}

.agenda .item.s-done {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

@media (max-width: 700px) {
  .sched {
    display: none;
  }

  .agenda {
    gap: 10px;
    display: grid;
  }
}

.code-input {
  justify-content: center;
  gap: 8px;
  display: flex;
}

.code-input input {
  text-align: center;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border);
  background: var(--surface);
  width: 48px;
  height: 58px;
  color: var(--text);
  border-radius: 10px;
  padding: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.code-input input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 0;
  border-color: var(--primary);
}

.code-input.err input {
  border-color: var(--danger);
  background: var(--danger-soft);
}

@media (max-width: 420px) {
  .code-input {
    gap: 6px;
  }

  .code-input input {
    width: 44px;
    height: 52px;
  }
}

.rc-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.rc-tile {
  border: 1px solid var(--border);
  background: var(--surface-2);
  letter-spacing: .05em;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  display: flex;
}

.rc-tile button {
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: 0;
  min-height: 32px;
  padding: 0 6px;
  font-size: .8rem;
}

.switch {
  cursor: pointer;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 600;
  display: inline-flex;
}

.switch input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}

.switch .track {
  background: var(--border);
  border-radius: 999px;
  flex: none;
  width: 50px;
  height: 28px;
  transition: background .15s;
  position: relative;
}

.switch .track:after {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  transition: transform .15s;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 3px #0000004d;
}

.switch input:checked + .track {
  background: var(--ok);
}

.switch input:checked + .track:after {
  transform: translateX(22px);
}

.switch input:focus-visible + .track {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.meter {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.meter > i {
  background: var(--primary);
  border-radius: 999px;
  height: 100%;
  display: block;
}

.meter.ok > i {
  background: var(--ok);
}

.meter.warn > i {
  background: var(--warn);
}

.meter.danger > i {
  background: var(--danger);
}

.timeline {
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.timeline li {
  border-left: 2px solid var(--border);
  margin-left: 6px;
  padding: 0 0 14px 22px;
  position: relative;
}

.timeline li:before {
  content: "";
  background: var(--primary);
  border: 2px solid var(--surface);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  position: absolute;
  top: 3px;
  left: -7px;
}

.timeline li.warn:before {
  background: var(--warn);
}

.timeline li.danger:before {
  background: var(--danger);
}

.timeline li.ok:before {
  background: var(--ok);
}

.timeline li:last-child {
  border-left-color: #0000;
  padding-bottom: 0;
}

.bars {
  align-items: flex-end;
  gap: 3px;
  height: 72px;
  display: flex;
}

.bars span {
  background: var(--primary);
  opacity: .85;
  border-radius: 3px 3px 0 0;
  flex: 1;
  min-width: 4px;
}

.bars span.zero {
  background: var(--border);
}

.chip-pick {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.chip-pick button {
  font: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 44px;
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
}

.chip-pick button.on {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}

.role-cards {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  display: grid;
}

.role-card {
  text-align: left;
  font: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
  gap: 4px;
  padding: 12px 14px;
  display: grid;
}

.role-card.on {
  border-color: var(--primary);
  background: var(--primary-soft);
  outline: 1px solid var(--primary);
}

.role-card strong {
  font-size: 1rem;
}

.role-card span {
  color: var(--muted);
  font-size: .85rem;
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.check {
  cursor: pointer;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  display: flex;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
}

.stack > .btn.sm {
  justify-self: start;
}

.rc-tile span {
  white-space: nowrap;
}

/*# sourceMappingURL=packages_ui_src_styles_04lxbj7n6n0bj.css.map*/