:root {
  --bg: #e8eef2;
  --bg-deep: #d9e3ea;
  --ink: #12202b;
  --muted: #5a6b78;
  --line: #c5d0d8;
  --line-strong: #9aafbd;
  --surface: #f7fafc;
  --surface-2: #ffffff;
  --accent: #0b6e6a;
  --accent-2: #0f8a84;
  --accent-soft: #d7f0ee;
  --accent-ink: #064e4b;
  --warn: #b45309;
  --warn-soft: #fff4e5;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #0b6e6a;
  --shadow: 0 1px 0 rgba(18, 32, 43, 0.04), 0 10px 28px rgba(18, 32, 43, 0.06);
  --radius: 8px;
  --radius-sm: 6px;
  --font: "Manrope", "Bahnschrift", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --sidebar-w: 248px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(11, 110, 106, 0.12), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(15, 70, 110, 0.08), transparent 50%),
    linear-gradient(165deg, #f3f7f9 0%, var(--bg) 42%, var(--bg-deep) 100%);
  min-height: 100vh;
  line-height: 1.45;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; }

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

/* —— Sidebar —— */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px;
  background:
    linear-gradient(180deg, rgba(18, 32, 43, 0.96), rgba(18, 32, 43, 0.92));
  color: #e8eef2;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 40;
  animation: slide-in 0.45s var(--ease) both;
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #14a39c, #0b6e6a);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
}

.brand-meta {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(232, 238, 242, 0.55);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
  flex: 1;
  padding-right: 2px;
}

.nav-group {
  margin: 14px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 238, 242, 0.4);
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(232, 238, 242, 0.82);
  text-decoration: none;
  font-weight: 560;
  font-size: 14px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.side-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-decoration: none;
}

.side-nav a.active {
  background: linear-gradient(90deg, rgba(20, 163, 156, 0.28), rgba(20, 163, 156, 0.08));
  color: #fff;
  box-shadow: inset 3px 0 0 #14a39c;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(232, 238, 242, 0.28);
  flex-shrink: 0;
}
.side-nav a.active .nav-dot {
  background: #14a39c;
  box-shadow: 0 0 0 3px rgba(20, 163, 156, 0.22);
}

.sidebar-foot {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn.block { width: 100%; }

/* —— Main —— */
.main {
  min-width: 0;
  padding: 20px 22px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  animation: rise 0.4s var(--ease) both;
}

.topbar-text { flex: 1; min-width: 0; }
.page-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-toggle { display: none; }

.content.reveal {
  animation: rise 0.5s var(--ease) 0.05s both;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font: inherit;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  text-decoration: none;
  color: var(--ink);
}

.btn.primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #fff;
}

.btn.primary:hover { color: #fff; filter: brightness(1.05); }

.btn.ghost {
  background: transparent;
  box-shadow: none;
}

.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn[disabled], button[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* —— Surfaces —— */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat, .panel {
  background: var(--surface-2);
  border: 1px solid rgba(197, 208, 216, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat {
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(11, 110, 106, 0.12), transparent 70%);
  pointer-events: none;
}

.stat .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat .value {
  font-size: 30px;
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: -0.04em;
}

.panel {
  padding: 18px 18px 16px;
  margin-bottom: 16px;
}

.panel h2, .panel h3 {
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.panel-head h2 { margin: 0; }

/* —— Filters / forms —— */
.filters {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)) 1fr auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.9), rgba(232, 238, 242, 0.65));
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 110, 106, 0.15);
}

textarea { min-height: 90px; resize: vertical; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.form-grid .full { grid-column: 1 / -1; }

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  align-items: center;
}

/* —— Tables —— */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
}

th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf3f6;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr { transition: background 0.12s var(--ease); }
tbody tr:hover td { background: rgba(11, 110, 106, 0.05); }
tbody tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: rgba(180, 83, 9, 0.15);
}

.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.12);
}

.badge.ok {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.deadline-date { display: block; margin-top: 4px; white-space: nowrap; font-size: 11px; }
.summary-line { display: flex; gap: 16px 28px; flex-wrap: wrap; margin: 16px 0; }
.login-screen { max-width: 400px; margin: 12vh auto; padding: 24px; }
.login-screen form { display: grid; gap: 16px; }
.sidebar-foot .btn.ghost { color: #e8eef2; margin-bottom: 8px; }
.topbar { flex-wrap: wrap; }
.topbar-text { min-width: 180px; }
.dashboard-breakdown { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 720px) { .dashboard-breakdown { grid-template-columns: 1fr; } }
.csv-table { margin: 16px 0; max-height: 65vh; min-height: 260px; }
.file-cell { min-width: 280px; max-width: 460px; overflow-wrap: anywhere; }
.file-cell summary { cursor: pointer; font-weight: 600; }
.error-details { padding-left: 20px; max-height: 320px; overflow: auto; }
.error-details code { white-space: pre-wrap; overflow-wrap: anywhere; }
.danger-stat .value { color: var(--danger); }
.warn-stat .value { color: var(--warn); }
.ok-stat .value { color: var(--ok); }
.brand-mark { object-fit: contain; flex: 0 0 40px; }
tr.row-danger td:first-child { border-left: 4px solid var(--danger); }
tr.row-warn td:first-child { border-left: 4px solid var(--warn); }

.row-warn td { background: rgba(180, 83, 9, 0.05); }
.row-danger td { background: rgba(180, 35, 24, 0.06); }
.row-ok td { background: rgba(11, 110, 106, 0.04); }

a.stat.link-stat {
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

a.stat.link-stat:hover {
  transform: translateY(-2px);
  text-decoration: none;
  border-color: rgba(11, 110, 106, 0.35);
}

.stat-hint {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
}

.warn-stat { border-color: rgba(180, 83, 9, 0.35); }
.danger-stat { border-color: rgba(180, 35, 24, 0.35); }

.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 110, 106, 0.22);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(215, 240, 238, 0.75), rgba(247, 250, 252, 0.9));
}

.bulk-bar label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.bulk-bar input, .bulk-bar select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.item-warn { border-color: rgba(180, 83, 9, 0.4); background: linear-gradient(180deg, #fffaf3, #fff); }
.item-danger { border-color: rgba(180, 35, 24, 0.4); background: linear-gradient(180deg, #fff7f6, #fff); }

.dict-list { list-style: none; padding: 0; margin: 16px 0 0; }
.dict-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.dict-row { display: flex; gap: 8px; flex: 1; min-width: 180px; }
.dict-row input { flex: 1; }
.dict-inactive { opacity: 0.55; }

.inline-edit { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-edit input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  min-width: 90px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tabs a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}

.tabs a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.flash {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 16px;
  border: 1px solid rgba(11, 110, 106, 0.18);
  animation: flash-in 0.35s var(--ease) both;
  font-weight: 600;
}

.flash.error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.18);
}

.row-has-errors td { background: rgba(180, 35, 24, 0.05); }
.import-errors-row td {
  padding-top: 0;
  background: rgba(180, 35, 24, 0.03);
}

.import-errors {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--danger);
  background: var(--danger-soft);
  border-radius: 0 10px 10px 0;
  color: var(--ink);
}

.import-errors summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 6px;
}

.import-errors-list {
  margin: 8px 0 0 1.2em;
  padding: 0;
}

.import-errors-list li {
  margin: 6px 0;
  line-height: 1.4;
}

.import-errors-fallback {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }

.item-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(18, 32, 43, 0.03);
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.item-card:hover {
  border-color: var(--line-strong);
}

.sidebar-backdrop {
  display: none;
}

/* —— Busy —— */
.busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 32, 43, 0.48);
  backdrop-filter: blur(3px);
}

.busy-overlay.show { display: flex; }

.busy-card {
  width: min(420px, calc(100vw - 32px));
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
  animation: rise 0.3s var(--ease) both;
}

.busy-card h3 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.busy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.busy-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: busy-spin 0.75s linear infinite;
}

@keyframes busy-spin {
  to { transform: rotate(360deg); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease);
    animation: none;
  }
  .sidebar.open { transform: none; }
  .nav-toggle { display: inline-flex; }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 32, 43, 0.4);
    z-index: 35;
  }
  .sidebar-backdrop[hidden] { display: none; }
  .topbar { align-items: flex-start; }
  .topbar-actions { width: 100%; }
  .main { padding: 14px 12px 32px; }
}

@media (max-width: 720px) {
  .grid, .filters, .form-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 22px; }
}

/* —— Order stage colors —— */
.stage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.stage-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: -2px;
  border: 1px solid rgba(18, 32, 43, 0.12);
}
.stage-swatch.yellow { background: #f5d76e; }
.stage-swatch.blue { background: #7ec8e3; }
.stage-swatch.green { background: #7dcea0; }

tr.order-stage-yellow td { background: rgba(245, 215, 110, 0.28); }
tr.order-stage-blue td { background: rgba(126, 200, 227, 0.28); }
tr.order-stage-green td { background: rgba(125, 206, 160, 0.28); }

.badge.stage-yellow {
  background: #fff4c2;
  color: #8a6d00;
  border-color: rgba(138, 109, 0, 0.2);
}
.badge.stage-blue {
  background: #d9f1fa;
  color: #0b5f7a;
  border-color: rgba(11, 95, 122, 0.18);
}
.badge.stage-green {
  background: #d8f5e5;
  color: #1b6b3a;
  border-color: rgba(27, 107, 58, 0.18);
}

.stage-locked input:disabled {
  background: #eef2f4;
  color: var(--muted);
  cursor: not-allowed;
}
.stage-lock-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 650;
  color: var(--warn);
}

.declaration-box {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.declaration-box-empty {
  background: var(--warn-soft);
  border-color: rgba(180, 83, 9, 0.28);
}
.declaration-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.declaration-inline label {
  flex: 1 1 280px;
  margin: 0;
}

/* —— Item form field visibility —— */
.field-is-hidden {
  display: none !important;
}
.field-visibility-panel {
  margin-bottom: 14px;
}
.field-visibility summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.field-visibility summary::-webkit-details-marker { display: none; }
.field-visibility summary::before {
  content: "▸ ";
  color: var(--accent);
}
.field-visibility[open] summary::before { content: "▾ "; }
.field-visibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 14px;
  margin-top: 8px;
}
.field-visibility-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.field-visibility-item input {
  margin-top: 3px;
  width: auto;
}

/* —— Product suggest —— */
label.full { position: relative; }
.suggest-box {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow: auto;
  padding: 6px;
}
.suggest-item {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.suggest-item:hover,
.suggest-item:focus {
  background: var(--accent-soft);
  outline: none;
}

/* —— Help —— */
.help-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.help-toc {
  position: sticky;
  top: 16px;
}

.help-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.help-toc a:hover {
  background: var(--accent-soft);
  color: var(--accent-ink);
  text-decoration: none;
}

.help-section h2 {
  scroll-margin-top: 18px;
}

.help-section ol,
.help-section ul {
  padding-left: 1.25em;
  margin: 0 0 10px;
}

.help-section li { margin: 6px 0; }

.developer-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(215, 240, 238, 0.7), rgba(247, 250, 252, 0.95));
  border: 1px solid rgba(11, 110, 106, 0.18);
}

@media (max-width: 920px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-toc { position: static; }
  .developer-card { grid-template-columns: 1fr; }
}

/* legacy shell compatibility if used */
.shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.user-create { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; }
.user-create label { flex: 1 1 220px; min-width: 0; }
.user-create input, .account-password input, .user-password input { width: 100%; min-width: 0; }
.account-password { display: grid; gap: 18px; max-width: 460px; }
.account-password .btn { justify-self: start; white-space: normal; }
.user-actions { display: flex; align-items: start; flex-wrap: wrap; gap: 12px; }
.user-actions summary { cursor: pointer; padding: 9px 0; }
.user-password { display: grid; gap: 12px; max-width: 300px; padding-top: 12px; }
.account-name { overflow-wrap: anywhere; padding: 0 0 10px; font-weight: 600; }
.account-login { overflow-wrap: anywhere; max-width: 240px; }
