:root {
  --bg: #f4f9fb;
  --panel: #ffffff;
  --panel-soft: #eef8f9;
  --ink: #102333;
  --muted: #5f7585;
  --line: #d9e7ed;
  --blue: #0a83c6;
  --cyan: #12b5c3;
  --green: #24ad6a;
  --yellow: #d69e16;
  --red: #d94b4b;
  --gray: #758293;
  --shadow: 0 18px 45px rgba(25, 75, 100, 0.12);
  --radius: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 249, 251, 0.94)),
    repeating-linear-gradient(135deg, rgba(20, 159, 184, 0.05) 0 1px, transparent 1px 18px),
    var(--bg);
  color: var(--ink);
  font-family:
    Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(130deg, rgba(9, 126, 192, 0.92), rgba(20, 177, 195, 0.88) 58%, rgba(36, 173, 106, 0.78)),
    url("data:image/svg+xml,%3Csvg width='1200' height='800' viewBox='0 0 1200 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,.24)' stroke-width='2'%3E%3Cpath d='M80 146h260v168H80zM420 94h260v250H420zM760 176h320v204H760zM154 450h230v190H154zM500 430h240v230H500zM820 472h230v160H820z'/%3E%3Cpath d='M94 188h210M438 136h210M784 224h260M184 496h160M532 478h170M850 516h170'/%3E%3Cpath d='M126 622c140-62 231-62 374 0s235 62 374 0' stroke-linecap='round'/%3E%3Cpath d='M178 676c110-48 182-48 294 0s184 48 294 0' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

.login-card {
  align-self: center;
  width: min(100%, 480px);
  padding: 36px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-brand,
.brand-mark,
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.login-product,
.login-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-mini-art {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.login-title-block {
  margin-top: 32px;
}

.logo-lockup img {
  width: 118px;
  height: auto;
  display: block;
}

.brand-mark .logo-lockup img {
  width: 112px;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 800;
}

.login-card h1 {
  margin: 10px 0 0;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

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

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

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(18, 167, 184, 0.12);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.login-visual {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-board {
  width: min(680px, 100%);
  display: grid;
  gap: 14px;
}

.visual-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.8fr;
  gap: 14px;
}

.visual-card {
  min-height: 110px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  color: #103044;
  box-shadow: 0 24px 60px rgba(0, 54, 82, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(12px);
}

.visual-card strong {
  display: block;
  font-size: 28px;
  margin-top: 12px;
}

.visual-card.wide {
  min-height: 170px;
}

.bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 96px;
  margin-top: 18px;
}

.bars span {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--green));
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(18px);
  overflow-y: auto;
}

.brand-mark {
  padding: 0 8px 10px;
}

.brand-title {
  font-weight: 800;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
}

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

.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: #335066;
  border: 1px solid transparent;
  font-weight: 750;
}

.nav a.active,
.nav a:hover {
  background: var(--panel-soft);
  color: #075d8c;
  border-color: #d3edf4;
}

.nav-key {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #e6f5f6;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.user-chip {
  padding: 12px;
  background: var(--panel-soft);
  border-radius: var(--radius);
  border: 1px solid #d9edf0;
}

.user-chip strong {
  display: block;
}

.user-chip span {
  color: var(--muted);
  font-size: 12px;
}

.main-wrap {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  padding: 0 28px;
  background: rgba(244, 249, 251, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 229, 236, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

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

.content {
  padding: 28px;
}

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

.page-head h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

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

.panel,
.card,
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(28, 65, 91, 0.07);
}

.panel {
  padding: 18px;
}

.card {
  padding: 14px;
}

.metric {
  padding: 18px;
  min-height: 122px;
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
}

.metric small,
.muted {
  color: var(--muted);
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 31px;
  line-height: 1;
}

.metric .trend {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7f8f0;
  color: #10774b;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: #294557;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(24, 72, 94, 0.04);
}

.btn:hover {
  border-color: #b8d7e4;
  background: #f6fbfd;
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(10, 131, 198, 0.22);
}

.btn.success {
  background: var(--green);
  color: #fff;
  border-color: transparent;
}

.btn.warn {
  background: #fff8e7;
  color: #91630c;
  border-color: #f1d791;
}

.btn.danger {
  background: #fff0f0;
  color: #a53434;
  border-color: #f0b9b9;
}

.btn.small {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}

.btn.ghost {
  background: transparent;
}

.btn.full {
  width: 100%;
}

.chip,
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status.green {
  background: #e7f8f0;
  color: #0b7c4d;
}

.status.yellow {
  background: #fff6dd;
  color: #966812;
}

.status.red {
  background: #ffeded;
  color: #b53737;
}

.status.blue {
  background: #e7f5ff;
  color: #07699d;
}

.status.gray {
  background: #eef1f4;
  color: #596879;
}

.status.cyan {
  background: #e4f8fa;
  color: #087886;
}

.toolbar,
.filters,
.segmented {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.segmented {
  padding: 4px;
  background: #eaf2f6;
  border-radius: var(--radius);
}

.segmented .btn {
  border-color: transparent;
  background: transparent;
}

.segmented .btn.active {
  background: #fff;
  box-shadow: 0 4px 14px rgba(28, 65, 91, 0.08);
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  background: #f8fbfd;
}

tr:hover td {
  background: #fbfdff;
}

.chart {
  display: grid;
  gap: 9px;
}

.chart-row {
  display: grid;
  grid-template-columns: 82px 1fr 48px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar-track {
  height: 12px;
  background: #e6f0f4;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 999px;
}

.inbox-grid {
  display: grid;
  grid-template-columns: 310px minmax(360px, 1fr) 340px;
  gap: 14px;
  min-height: calc(100vh - 142px);
}

.conversation-list {
  display: grid;
  gap: 8px;
  max-height: 70vh;
  overflow: auto;
}

.conversation-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px;
  background: #fff;
  display: grid;
  gap: 7px;
}

.conversation-item.active {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(18, 167, 184, 0.1);
}

.conversation-item strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-window {
  height: 58vh;
  overflow: auto;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.9), rgba(239, 247, 250, 0.92)),
    repeating-linear-gradient(135deg, rgba(18, 181, 195, 0.05) 0 1px, transparent 1px 18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 7px 18px rgba(28, 65, 91, 0.05);
}

.message.customer {
  align-self: flex-start;
  border-bottom-left-radius: 8px;
}

.message.ai {
  align-self: flex-end;
  background: #e7f6ff;
  border-color: #c8eafe;
  border-bottom-right-radius: 8px;
}

.message.dispatcher,
.message.owner {
  align-self: flex-end;
  background: #eaf8ef;
  border-color: #cbeed9;
}

.message.system {
  align-self: center;
  background: #f1f3f5;
  color: var(--muted);
}

.message small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}

.reply-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

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

.side-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.detail-list {
  display: grid;
  gap: 8px;
}

.detail-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #edf2f5;
}

.detail-line span:first-child {
  color: var(--muted);
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow: auto;
}

.kanban-col {
  min-height: 200px;
  padding: 12px;
  background: #edf5f8;
  border: 1px solid #d7e8ef;
  border-radius: var(--radius);
}

.kanban-col h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.kanban-card {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

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

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

.conditional {
  display: none;
}

.conditional.show {
  display: grid;
}

.schedule-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.worker-column {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.worker-column header {
  padding: 12px;
  background: #eef7fb;
  font-weight: 800;
}

.slot-card {
  margin: 10px;
  padding: 12px;
  border-left: 4px solid var(--blue);
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px rgba(28, 65, 91, 0.06);
}

.slot-card.conflict {
  border-left-color: var(--red);
  background: #fff7f7;
}

.worker-app {
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.phone-frame {
  background: linear-gradient(160deg, #10212c, #1d4154);
  padding: 10px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.phone-screen {
  min-height: 720px;
  padding: 16px;
  background:
    linear-gradient(180deg, #f9fdff, #eef8f9),
    repeating-linear-gradient(135deg, rgba(18, 181, 195, 0.05) 0 1px, transparent 1px 16px);
  border-radius: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.worker-order {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

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

.photo-preview {
  width: 100%;
  min-height: 100px;
  display: grid;
  place-items: center;
  border: 1px dashed #b9ccd7;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: #f8fbfd;
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #e7f6ff;
  color: #075d8c;
  border: 1px solid #caeafb;
}

.notice.error {
  background: #fff0f0;
  border-color: #f0b9b9;
  color: #a53434;
}

.empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #cbd9e2;
  border-radius: var(--radius);
  background: #fff;
}

.rtl {
  direction: rtl;
  text-align: right;
}

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

.drawer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inbox-grid,
  .drawer-layout {
    grid-template-columns: 1fr;
  }
}

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

  .login-card {
    margin: 18px;
  }

  .login-visual {
    display: none;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

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

  .topbar {
    position: static;
    height: auto;
    padding: 18px;
    align-items: start;
    flex-direction: column;
  }

  .content {
    padding: 18px;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .kanban {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
  }
}

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

  .page-head {
    display: grid;
  }

  .action-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .message {
    max-width: 96%;
  }

  .phone-frame {
    border-radius: 16px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .phone-screen {
    min-height: auto;
    border-radius: var(--radius);
  }
}

/* ADRIS visual theme from the supplied reference screens. */
:root {
  --bg: #061112;
  --panel: rgba(13, 28, 29, 0.82);
  --panel-soft: rgba(22, 45, 46, 0.8);
  --ink: #f6faf8;
  --muted: #9aa8a7;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #0b6f78;
  --cyan: #67e5e3;
  --green: #35b97b;
  --yellow: #f0bf54;
  --red: #f06464;
  --gray: #7d8a8a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 28px;
  --radius-sm: 18px;
}

body {
  background:
    radial-gradient(circle at 14% 0%, rgba(23, 130, 136, 0.18), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(41, 168, 123, 0.1), transparent 34%),
    linear-gradient(180deg, #071919, #050d0f 58%, #071313);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(103, 229, 227, 0.2) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1.6px);
  background-size: 92px 92px, 137px 137px;
  background-position: 0 20px, 42px 0;
  opacity: 0.22;
  z-index: -1;
}

.login-screen {
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 12%, rgba(54, 174, 145, 0.12), transparent 28%),
    radial-gradient(circle at 16% 42%, rgba(0, 193, 203, 0.08), transparent 26%),
    linear-gradient(180deg, #082123 0%, #061213 54%, #050c0d 100%);
}

.login-card {
  max-width: 480px;
  width: min(480px, calc(100vw - 64px));
  margin: 0;
  background: rgba(11, 27, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.login-brand {
  margin-bottom: 0;
}

.logo-lockup img {
  width: 112px;
  image-rendering: auto;
}

.brand-mark .logo-lockup img {
  width: 112px;
}

.login-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  color: #c7d5d2;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.login-mini-art {
  width: 72px;
  height: 72px;
  opacity: 0.92;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}

.login-title-block {
  margin-top: 34px;
}

.login-kicker {
  color: #8da19d;
  font-size: 12px;
}

.login-card h1 {
  max-width: 420px;
  margin-top: 10px;
  font-size: 38px;
  line-height: 1.08;
  color: #fff;
}

.login-card p {
  max-width: 520px;
  color: #b4c0bd;
  line-height: 1.65;
}

.login-card .field {
  color: #b9c5c3;
}

.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
  color: #f8fffd;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7f8e8d;
}

.field select option {
  color: #102333;
}

.login-visual {
  position: relative;
  align-items: end;
  justify-content: center;
  padding: 72px 52px 0;
  overflow: hidden;
}

.login-visual::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(5, 12, 13, 0.8));
}

.login-hero-panel {
  position: relative;
  width: min(760px, 100%);
  min-height: 680px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.hero-art {
  position: absolute;
  bottom: -34px;
  right: 2%;
  width: min(780px, 112%);
  max-height: 86vh;
  object-fit: contain;
  filter: drop-shadow(0 36px 48px rgba(0, 0, 0, 0.4));
}

.hero-kpi-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.visual-card {
  min-height: 118px;
  background:
    linear-gradient(180deg, rgba(18, 36, 37, 0.78), rgba(14, 28, 29, 0.86)),
    radial-gradient(circle at 18% 18%, rgba(103, 229, 227, 0.12), transparent 35%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow);
}

.visual-card strong {
  color: #fff;
}

.shell {
  background:
    radial-gradient(circle at 78% 10%, rgba(43, 158, 139, 0.09), transparent 32%),
    linear-gradient(180deg, #071617, #050d0f);
}

.sidebar {
  background: rgba(5, 18, 19, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  scrollbar-color: rgba(103, 229, 227, 0.45) rgba(255, 255, 255, 0.04);
}

.brand-mark {
  min-height: 52px;
}

.nav a {
  color: #a9b7b5;
}

.nav a.active,
.nav a:hover {
  background: rgba(103, 229, 227, 0.09);
  color: #fff;
  border-color: rgba(103, 229, 227, 0.28);
}

.nav-key {
  background: rgba(103, 229, 227, 0.09);
  color: var(--cyan);
}

.user-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.topbar {
  background: rgba(5, 18, 19, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.topbar h1,
.page-head h2,
.panel h3,
.panel h4 {
  color: #fff;
}

.content {
  background: transparent;
}

.panel,
.card,
.metric,
.conversation-item,
.kanban-card,
.worker-column,
.worker-order {
  background:
    linear-gradient(180deg, rgba(17, 33, 34, 0.84), rgba(12, 25, 26, 0.92)),
    radial-gradient(circle at 12% 8%, rgba(103, 229, 227, 0.07), transparent 35%);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f6faf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 58px rgba(0, 0, 0, 0.22);
}

.panel,
.metric {
  position: relative;
  overflow: hidden;
}

.panel::before,
.metric::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(103, 229, 227, 0.22) 1px, transparent 1.8px);
  background-size: 94px 94px;
  opacity: 0.2;
}

.metric strong {
  color: #fff;
}

.metric .trend {
  background: rgba(103, 229, 227, 0.09);
  color: #c9fffa;
}

.muted,
.metric small,
.page-head p,
.brand-subtitle,
.user-chip span,
.detail-line span:first-child {
  color: var(--muted);
}

.btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  color: #f6faf8;
}

.btn:hover {
  background: rgba(103, 229, 227, 0.1);
  border-color: rgba(103, 229, 227, 0.3);
}

.btn.primary {
  background: linear-gradient(135deg, #004f5d, #077782);
  border-color: rgba(103, 229, 227, 0.38);
  box-shadow: 0 16px 36px rgba(6, 145, 154, 0.22);
}

.btn.success {
  background: linear-gradient(135deg, #158056, #23aa70);
}

.btn.warn {
  background: rgba(240, 191, 84, 0.12);
  color: #ffe0a0;
  border-color: rgba(240, 191, 84, 0.32);
}

.btn.danger {
  background: rgba(240, 100, 100, 0.12);
  color: #ffb4b4;
  border-color: rgba(240, 100, 100, 0.32);
}

.status.green {
  background: rgba(53, 185, 123, 0.13);
  color: #a5f0c9;
}

.status.yellow {
  background: rgba(240, 191, 84, 0.14);
  color: #ffe0a0;
}

.status.red {
  background: rgba(240, 100, 100, 0.14);
  color: #ffb4b4;
}

.status.blue,
.status.cyan {
  background: rgba(103, 229, 227, 0.12);
  color: #cdfdfa;
}

.status.gray {
  background: rgba(255, 255, 255, 0.08);
  color: #bcc8c5;
}

th {
  background: rgba(255, 255, 255, 0.05);
  color: #91a09f;
}

td,
th {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

tr:hover td {
  background: rgba(103, 229, 227, 0.04);
}

.bar-track {
  background: rgba(255, 255, 255, 0.08);
}

.bar-fill {
  background: linear-gradient(90deg, #1ad2da, #36c888);
}

.detail-line {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.chat-window,
.kanban-col,
.phone-screen {
  background:
    linear-gradient(180deg, rgba(8, 24, 25, 0.92), rgba(5, 16, 17, 0.98)),
    radial-gradient(circle at 20% 10%, rgba(103, 229, 227, 0.07), transparent 32%);
  border-color: rgba(255, 255, 255, 0.1);
}

.message {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f6faf8;
}

.message.ai {
  background: rgba(7, 119, 130, 0.28);
  border-color: rgba(103, 229, 227, 0.22);
}

.message.dispatcher,
.message.owner {
  background: rgba(35, 170, 112, 0.2);
  border-color: rgba(103, 229, 227, 0.18);
}

.message.system {
  background: rgba(255, 255, 255, 0.06);
}

.empty,
.photo-preview {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--muted);
}

.notice {
  background: rgba(103, 229, 227, 0.1);
  border-color: rgba(103, 229, 227, 0.24);
  color: #cdfdfa;
}

.notice.error {
  background: rgba(240, 100, 100, 0.12);
  border-color: rgba(240, 100, 100, 0.34);
  color: #ffd1d1;
}

.segmented {
  background: rgba(255, 255, 255, 0.06);
}

.segmented .btn.active {
  background: rgba(103, 229, 227, 0.13);
}

.worker-column header {
  background: rgba(103, 229, 227, 0.08);
}

.slot-card {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 860px) {
  .login-visual {
    display: flex;
    min-height: 420px;
    padding: 0 20px;
  }

  .login-hero-panel {
    min-height: 420px;
  }

  .hero-kpi-row {
    display: none;
  }

  .hero-art {
    right: auto;
    width: min(520px, 120%);
  }
}

@media (max-width: 1100px) {
  .login-screen {
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 28px;
  }

  .login-card {
    width: min(100%, 560px);
    margin: 0;
    justify-self: center;
  }

  .login-visual {
    display: none;
  }

  .login-card h1 {
    font-size: 38px;
  }
}

@media (max-width: 560px) {
  .login-screen {
    padding: 14px;
    align-items: start;
  }

  .login-card {
    padding: 24px;
    border-radius: 24px;
  }

  .login-brand {
    margin-bottom: 28px;
  }

  .login-card h1 {
    font-size: 32px;
    line-height: 1.1;
  }
}
