:root {
  --bg: #060b14;
  --panel: rgba(10, 18, 32, 0.78);
  --panel-strong: rgba(13, 24, 42, 0.92);
  --line: rgba(106, 144, 190, 0.32);
  --line-bright: rgba(91, 190, 255, 0.58);
  --gold: #f2c14e;
  --gold-dark: #9b6716;
  --blue: #46b9ff;
  --green: #63d884;
  --red: #ff6d62;
  --purple: #b56aff;
  --text: #f4f8ff;
  --muted: #a7b3c7;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(70, 185, 255, 0.18), transparent 36rem),
    linear-gradient(135deg, #020710, #0b1220 55%, #05070d);
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 15, 28, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card img {
  max-width: 86px;
  max-height: 62px;
  object-fit: contain;
}

.login-card h1,
.login-card p {
  margin: 0;
}

.login-card form {
  display: grid;
  gap: 12px;
}

.login-card small,
.login-card p {
  color: var(--muted);
}

.login-error {
  padding: 10px 12px;
  border: 1px solid rgba(255, 109, 98, 0.62);
  border-radius: 12px;
  color: #ffd2ce;
  background: rgba(255, 109, 98, 0.11);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(3, 7, 14, 0.98), rgba(4, 10, 18, 0.78)),
    radial-gradient(circle at 65% 12%, rgba(70, 185, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 80% 88%, rgba(242, 193, 78, 0.12), transparent 28rem),
    url("Orange.png") center / cover fixed,
    var(--bg);
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.portal-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 16px;
  background: linear-gradient(180deg, rgba(7, 14, 25, 0.96), rgba(3, 8, 15, 0.98));
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 50px rgba(0, 0, 0, 0.42);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 18px;
}

.brand-mark {
  width: 58px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(242, 193, 78, 0.55);
}

.brand-mark img {
  max-width: 52px;
  max-height: 42px;
  object-fit: contain;
}

.brand strong { display: block; font-size: 15px; }
.brand small { display: block; color: var(--muted); margin-top: 3px; }

.side-nav { display: grid; gap: 5px; }

.side-separator {
  display: block;
  height: 1px;
  margin: 9px 10px;
  background: linear-gradient(90deg, transparent, rgba(242, 193, 78, 0.78), transparent);
  box-shadow: 0 0 16px rgba(242, 193, 78, 0.22);
}

.side-separator.warranty-separator {
  height: 2px;
  margin: 10px 4px;
  background: linear-gradient(90deg, transparent 4%, rgba(242, 193, 78, 0.95) 22%, rgba(255, 235, 150, 0.95) 50%, rgba(242, 193, 78, 0.95) 78%, transparent 96%);
  box-shadow: 0 0 18px rgba(242, 193, 78, 0.5);
}

.side-group {
  display: grid;
  gap: 5px;
}

.side-group-toggle {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  color: #f1f6ff;
  border: 1px solid rgba(242, 193, 78, 0.4);
  border-radius: 10px;
  background: rgba(242, 193, 78, 0.08);
  font-weight: 800;
}

.side-group-toggle > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.side-group-caret {
  color: var(--gold);
  font-size: 17px;
  line-height: 1;
}

.side-group.collapsed .side-group-items { display: none; }

.side-group-items {
  display: grid;
  gap: 5px;
  padding-left: 6px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #dce8fb;
  text-decoration: none;
  border: 1px solid transparent;
}

.side-link:hover,
.side-link.active {
  border-color: rgba(242, 193, 78, 0.68);
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.18), rgba(70, 185, 255, 0.09));
  box-shadow: 0 0 28px rgba(242, 193, 78, 0.12);
}

.side-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  border: 1px solid rgba(91, 190, 255, 0.42);
  color: var(--blue);
  font-size: 0;
  font-weight: 800;
}

.side-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-icon-blue {
  color: var(--blue);
  border-color: rgba(91, 190, 255, 0.5);
}

.side-icon-green {
  color: var(--green);
  border-color: rgba(99, 216, 132, 0.58);
}

.side-icon-gold {
  color: var(--gold);
  border-color: rgba(242, 193, 78, 0.68);
}

.side-icon-silver {
  color: #d9e3ef;
  border-color: rgba(217, 227, 239, 0.56);
}

.sidebar-help {
  margin-top: 145px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: block;
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.sidebar-help:hover {
  border-color: rgba(242, 193, 78, 0.76);
  background: rgba(242, 193, 78, 0.09);
  transform: translateY(-1px);
}

.sidebar-help strong,
.sidebar-help span { display: block; }
.sidebar-help span { color: var(--muted); margin-top: 4px; font-size: 13px; }

.main { min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 15, 28, 0.82);
  backdrop-filter: blur(18px);
}

.eyebrow {
  color: #54d8ff;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 11px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: 26px; }
.topbar p { margin-bottom: 0; color: var(--muted); }

.topbar-integrations {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.global-search {
  display: flex;
  align-items: center;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 7, 14, 0.68);
}

.global-search input {
  width: min(310px, 28vw);
  background: transparent;
  border: 0;
  color: var(--text);
  outline: 0;
  padding: 9px 12px;
}

.global-search button,
.top-btn,
.logout-link,
.mobile-menu {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 13px;
  text-decoration: none;
}

.global-search button,
.primary-btn {
  border-color: rgba(242, 193, 78, 0.74);
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.95), rgba(155, 103, 22, 0.95));
  color: #15110a;
  font-weight: 900;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.user-pill span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
}

.content { padding: 22px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.8fr);
  gap: 18px;
}

.panel,
.stat-strip,
.hero-panel,
.ticket-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.hero-panel:before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle, rgba(70, 185, 255, 0.16), transparent 16rem),
    radial-gradient(circle at 70% 45%, rgba(242, 193, 78, 0.18), transparent 14rem);
  pointer-events: none;
}

.hero-panel > * { position: relative; }
.hero-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero-actions {
  justify-content: flex-end;
  max-width: 520px;
}

.hero-panel h2 { font-size: clamp(24px, 2.35vw, 34px); line-height: 1.06; margin-bottom: 0; }
.hero-panel p { color: var(--muted); max-width: 650px; }

.quick-actions,
.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-integrations {
  display: flex;
  align-items: center;
  gap: 8px;
}

.integration-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid rgba(214, 222, 230, 0.92);
  border-radius: 50%;
  text-decoration: none;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.92), transparent 18%),
    linear-gradient(145deg, rgba(80, 160, 255, 0.94), rgba(12, 36, 148, 0.95));
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.36),
    inset 0 -8px 16px rgba(0, 0, 0, 0.32),
    0 0 12px rgba(70, 185, 255, 0.24);
}

.integration-button strong,
.integration-button small,
.integration-button > span:not(.integration-logo) { display: none; }

.integration-button small {
  color: var(--muted);
  display: none;
}

.integration-logo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-weight: 950;
  text-transform: lowercase;
  background: transparent !important;
  box-shadow: none;
}

.integration-logo.qbo { color: #dcffe0; font-size: 12px; }
.integration-logo.web { color: #ffffff; font-size: 10px; }
.integration-logo.fb { color: #ffffff; font-family: Arial, sans-serif; font-size: 26px; }
.integration-logo.ig { color: #fff0fb; font-size: 13px; }
.integration-logo.tk { color: #8bf8ff; font-size: 13px; }
.integration-logo.social { color: #ffffff; font-size: 15px; }

.dashboard-command-grid {
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) minmax(220px, 0.9fr);
  gap: 12px;
  align-items: stretch;
}

.dashboard-mini-calendar,
.dashboard-alert-box,
.dashboard-note-board {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(2, 8, 16, 0.48);
  padding: 14px;
}

.dashboard-mini-calendar {
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
}

.dashboard-mini-calendar strong {
  font-size: 48px;
  line-height: 1;
  color: var(--green);
}

.dashboard-mini-calendar small,
.storage-due-row span {
  color: var(--muted);
}

.storage-due-row {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid rgba(242, 193, 78, 0.28);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  background: rgba(242, 193, 78, 0.07);
}

.dashboard-note-board {
  display: grid;
  gap: 9px;
}

.dashboard-note-board textarea {
  min-height: 118px;
}

.action-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.action-btn.primary { border-color: rgba(242, 193, 78, 0.74); color: #15110a; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); font-weight: 900; }
.action-btn.blue { border-color: rgba(70, 185, 255, 0.7); color: #dff4ff; background: rgba(70, 185, 255, 0.12); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 0;
  margin: 10px 0 14px;
  overflow: hidden;
}

.stat-card {
  padding: 12px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.stat-card:last-child { border-right: 0; }
.stat-card span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 4px; font-size: 26px; }
.stat-card.open strong { color: var(--blue); }
.stat-card.closed strong { color: var(--green); }
.stat-card.warranty strong { color: var(--gold); }
.stat-card.emergency strong { color: var(--red); }
.stat-card.archived strong { color: var(--purple); }

.panel { padding: 16px; }
.panel-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.panel-header h2 { margin: 0; }
.muted { color: var(--muted); }

.collapsible-panel summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  list-style: none;
  cursor: pointer;
}

.collapsible-panel summary::-webkit-details-marker { display: none; }
.collapsible-panel summary strong { display: block; margin-top: 4px; font-size: 22px; }
.collapsible-panel[open] summary { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.compact-form-header { margin-bottom: 12px; }
.compact-form-header p { margin: 0; }

.list { display: grid; gap: 10px; }
.row-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(3, 9, 18, 0.45);
}

.row-item small { color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
}
.pill.Open { color: var(--blue); border-color: rgba(70, 185, 255, 0.7); }
.pill.Closed { color: var(--green); border-color: rgba(99, 216, 132, 0.7); }
.pill.Warranty { color: var(--gold); border-color: rgba(242, 193, 78, 0.7); }
.pill.Emergency { color: var(--red); border-color: rgba(255, 109, 98, 0.7); }
.pill.Unpaid { color: #fff; border-color: rgba(255, 109, 98, 0.85); background: rgba(255, 109, 98, 0.18); }

.chart {
  height: 145px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 8px;
  padding-top: 12px;
}

.bar {
  min-height: 8px;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, var(--blue), rgba(70, 185, 255, 0.12));
  box-shadow: 0 0 18px rgba(70, 185, 255, 0.25);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.form-grid .wide { grid-column: span 2; }
.form-grid .full { grid-column: 1 / -1; }

label { display: grid; gap: 6px; color: #dbe8fa; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(1, 7, 14, 0.64);
  padding: 11px 12px;
  outline: 0;
}

textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--line-bright); box-shadow: 0 0 0 3px rgba(70, 185, 255, 0.12); }

.ticket-card { padding: 16px; }
.ticket-card.ticket-warranty {
  border-color: rgba(242, 193, 78, 0.72);
  box-shadow: var(--shadow), inset 4px 0 0 rgba(242, 193, 78, 0.78), 0 0 22px rgba(242, 193, 78, 0.12);
}

.ticket-card.ticket-emergency {
  border-color: rgba(255, 109, 98, 0.82);
  box-shadow: var(--shadow), inset 4px 0 0 rgba(255, 109, 98, 0.86), 0 0 24px rgba(255, 109, 98, 0.14);
}

.ticket-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ticket-title { font-size: 18px; font-weight: 900; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.ticket-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}

.ticket-toolbar label {
  min-width: 190px;
}

.dashboard-ticket-body.collapsed { display: none; }

.panel-toggle {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.attention-list .row-item {
  border-color: rgba(255, 109, 98, 0.32);
}

.warranty-addon {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(242, 193, 78, 0.55);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(242, 193, 78, 0.12), rgba(70, 185, 255, 0.06)),
    rgba(4, 9, 18, 0.72);
  box-shadow: 0 0 28px rgba(242, 193, 78, 0.1);
}

.warranty-addon.active { display: block; }

.warranty-addon h3 { margin-bottom: 6px; }

.warranty-standalone {
  max-width: 1220px;
}

.warranty-gold-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 235, 150, 0.76);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(242, 193, 78, 0.2) 34%, rgba(5, 10, 18, 0.76) 74%),
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.42), transparent 28%),
    rgba(64, 43, 10, 0.74);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.48),
    0 0 46px rgba(242, 193, 78, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
}

.warranty-gold-panel:before {
  content: "";
  position: absolute;
  inset: -80% auto -80% -40%;
  width: 42%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: warrantyShimmer 4.2s infinite;
  pointer-events: none;
}

.warranty-gold-panel > * {
  position: relative;
  z-index: 1;
}

@keyframes warrantyShimmer {
  0% { left: -48%; }
  48%, 100% { left: 128%; }
}

.warranty-section-title {
  margin: 18px 0 10px;
  color: #fff2bc;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.warranty-parts-grid {
  display: grid;
  gap: 10px;
}

.warranty-part-row {
  display: grid;
  grid-template-columns: 1fr 1.45fr 0.7fr 0.85fr 0.95fr 0.95fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(255, 226, 125, 0.72);
  border-left: 7px solid var(--gold);
  border-radius: 12px;
  background: rgba(2, 8, 16, 0.52);
}

.warranty-part-row .wide {
  grid-column: span 1;
}

.qit-payout-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 149, 56, 0.75);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 149, 56, 0.18), rgba(242, 193, 78, 0.1)),
    rgba(3, 8, 16, 0.58);
}

.qit-payout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.qit-payout-tile {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(2, 8, 16, 0.54);
}

.qit-payout-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.qit-payout-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.qit-payout-source {
  border-color: rgba(255, 149, 56, 0.86) !important;
  background: linear-gradient(135deg, rgba(255, 149, 56, 0.24), rgba(255, 197, 82, 0.12)) !important;
  box-shadow: 0 0 24px rgba(255, 149, 56, 0.14);
}

.qit-payout-tile.total strong {
  color: var(--green);
}

.warranty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.inventory-compact { padding: 10px 12px; }
.inventory-compact .ticket-top { margin-bottom: 4px; }
.inventory-compact .ticket-title { font-size: 15px; }
.inventory-compact .ticket-meta { gap: 10px; font-size: 12px; }
.inventory-compact p { margin: 5px 0 0; font-size: 13px; }
.inventory-compact .ticket-actions { margin-top: 8px; }
.inventory-compact .ghost-btn { min-height: 32px; padding: 6px 10px; }

.storage-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.storage-card { padding: 10px; }

.storage-card-focused {
  border-color: rgba(241, 181, 52, 0.9);
  box-shadow:
    0 0 0 1px rgba(241, 181, 52, 0.35),
    0 0 28px rgba(241, 181, 52, 0.22),
    var(--shadow);
}

.storage-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px auto;
  align-items: center;
  gap: 10px;
}

.storage-card-main { min-width: 0; }

.storage-card-actions {
  justify-content: flex-end;
  align-items: center;
  margin-top: 0;
}

.storage-status-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.storage-status-button {
  min-width: 86px;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(4, 10, 18, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.consignment-star {
  width: 78px;
  height: 74px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 0;
  color: #1f1600;
  font-weight: 950;
  font-size: 10px;
  text-align: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.78), transparent 24%),
    linear-gradient(135deg, #fff0a6, #f4bf3b 42%, #af6d10);
  clip-path: polygon(50% 0%, 61% 32%, 95% 21%, 73% 49%, 98% 72%, 64% 67%, 50% 100%, 36% 67%, 2% 72%, 27% 49%, 5% 21%, 39% 32%);
  filter: drop-shadow(0 0 18px rgba(242, 193, 78, 0.55));
  animation: starShimmer 2.8s ease-in-out infinite;
}

@keyframes starShimmer {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(242, 193, 78, 0.4)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 18px rgba(255, 235, 150, 0.78)); transform: scale(1.03); }
}

.storage-status-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 9;
  display: none;
  min-width: 150px;
  transform: translateX(-50%);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 12, 24, 0.96);
  box-shadow: var(--shadow);
}

.storage-status-menu.open {
  display: grid;
  gap: 6px;
}

.storage-status-menu button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.storage-status-menu button:hover {
  border-color: rgba(242, 193, 78, 0.68);
  background: rgba(242, 193, 78, 0.12);
}

.inventory-shelf-grid,
.inventory-unit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.inventory-shelf-column,
.inventory-unit-column {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 8, 16, 0.38);
}

.inventory-unit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(242, 193, 78, 0.28);
  color: var(--gold);
}

.inventory-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--text);
}

.inventory-unit-head span,
.inventory-shelf-head span {
  min-width: 28px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  border: 1px solid rgba(70, 185, 255, 0.45);
}

.inventory-shelf-row {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.inventory-unassigned {
  grid-column: 1 / -1;
}

.inventory-shelf-item .ticket-title {
  font-size: 13px;
  line-height: 1.25;
}

.customer-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-card-focused {
  border-color: rgba(241, 181, 52, 0.9);
  box-shadow:
    0 0 0 1px rgba(241, 181, 52, 0.35),
    0 0 28px rgba(241, 181, 52, 0.22),
    var(--shadow);
}

.followup-editor {
  margin-top: 16px;
}

.followup-row-grid {
  display: grid;
  gap: 10px;
}

.customer-followup-row {
  display: grid;
  grid-template-columns: 150px 160px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.customer-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.customer-followup-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(99, 216, 132, 0.45);
  border-radius: 999px;
  color: #d7ffe1;
  background: rgba(99, 216, 132, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.settings-integration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.settings-integration-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 8, 16, 0.38);
}

.schedule-calendar-shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
}

.schedule-date-card {
  min-height: 210px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(99, 216, 132, 0.4);
  border-radius: 18px;
  background: rgba(99, 216, 132, 0.08);
}

.schedule-date-card strong {
  font-size: 72px;
  line-height: 1;
  color: var(--green);
}

.page-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
}

.search-page-form {
  min-width: min(520px, 48vw);
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.search-result-row,
.team-member-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  color: var(--text);
  text-decoration: none;
  background: rgba(3, 9, 18, 0.48);
}

.search-result-row strong,
.search-result-row span,
.team-member-card strong,
.team-member-card span {
  display: block;
}

.search-result-row span,
.team-member-card span {
  color: var(--muted);
  margin-top: 3px;
  font-size: 13px;
}

.team-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.mobile-menu { display: none; }

@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .topbar { grid-template-columns: 1fr; }
  .topbar-integrations { flex-wrap: wrap; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .search-results-grid { grid-template-columns: 1fr; }
  .team-editor-grid { grid-template-columns: 1fr 1fr; }
  .inventory-unit-grid,
  .customer-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-followup-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .portal-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    z-index: 20;
    transform: translateX(-102%);
    transition: transform 0.18s ease;
    width: min(300px, 86vw);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-help { margin-top: 28px; }
  .mobile-menu { display: inline-flex; }
  .topbar { align-items: flex-start; grid-template-columns: 1fr; }
  .top-actions { width: 100%; flex-wrap: wrap; }
  .hero-topline { display: grid; }
  .hero-actions { justify-content: flex-start; max-width: none; }
  .global-search { width: 100%; }
  .global-search input { width: 100%; }
  .content { padding: 14px; }
  .hero-panel { padding: 22px; min-height: 260px; }
  .stat-strip { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .row-item { grid-template-columns: 1fr; }
  .warranty-part-row,
  .qit-payout-grid,
  .storage-card-grid,
  .storage-grid-two,
  .inventory-unit-grid,
  .customer-card-grid,
  .customer-followup-row,
  .inventory-shelf-grid,
  .settings-integration-grid,
  .dashboard-integrations,
  .team-editor-grid,
  .dashboard-command-grid,
  .schedule-calendar-shell { grid-template-columns: 1fr; }
  .storage-card-actions { justify-content: flex-start; }
  .consignment-star { width: 78px; height: 74px; }
}
