:root {
      --cream: #f5f7fa;
      --warm-white: #ffffff;
      --sand: #e8edf7;
      --tan: #d0d7e6;
      --brown: #8e99ab;
      --dark: #1a1f36;
      --mid: #4e5d78;
      --accent: #1a3c9e;
      --accent-light: #eef2fb;
      --accent-deep: #0f2b7a;
      --green: #1b8a4a;
      --green-light: #edf8f2;
      --red: #c62828;
      --red-light: #fdeaea;
      --blue: #1565c0;
      --blue-light: #e3f2fd;
      --shadow-sm: 0 1px 3px rgba(26, 60, 158, 0.06);
      --shadow-md: 0 4px 16px rgba(26, 60, 158, 0.08);
      --shadow-lg: 0 8px 32px rgba(26, 60, 158, 0.12);
      --radius: 8px;
      --radius-lg: 12px;
      --glass: #ffffff;
      --glass-border: #dce3f0;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', -apple-system, sans-serif;
      background: var(--cream);
      color: var(--dark);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    header {
      background: var(--accent-deep);
      border-bottom: 3px solid #3d5afe;
      padding: 0 32px;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .logo {
      font-family: 'Inter', sans-serif;
      font-size: 22px;
      font-weight: 900;
      color: #ffffff;
      letter-spacing: -0.5px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .logo-icon {
      color: #4facfe;
      width: 24px;
      height: 24px;
      filter: drop-shadow(0 0 8px rgba(79, 172, 254, 0.6));
    }

    .logo span {
      background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      font-weight: 800;
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .header-right .btn-secondary {
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .header-right .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.22);
    }

    .header-right .btn-primary {
      background: #3d5afe;
      box-shadow: 0 2px 8px rgba(61, 90, 254, 0.3);
    }

    .header-right .btn-primary:hover {
      background: #536dfe;
    }

    .api-badge {
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 20px;
      padding: 4px 12px;
      font-size: 12px;
      font-weight: 500;
      color: #ffffff;
      cursor: pointer;
      transition: all .2s;
    }

    .api-badge:hover {
      background: rgba(255, 255, 255, 0.25);
    }

    .api-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--green);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: .4
      }
    }

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

    aside {
      width: 220px;
      background: var(--warm-white);
      border-right: 1.5px solid var(--sand);
      padding: 24px 0;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .nav-section-label {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--tan);
      padding: 16px 20px 6px;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 20px;
      font-size: 14px;
      font-weight: 500;
      color: var(--mid);
      cursor: pointer;
      border-left: 3px solid transparent;
      transition: all .15s;
      text-decoration: none;
    }

    .nav-item:hover {
      background: var(--sand);
      color: var(--dark);
    }

    .nav-item.active {
      background: var(--accent-light);
      color: var(--accent-deep);
      border-left-color: var(--accent);
      font-weight: 600;
    }

    .nav-icon {
      font-size: 16px;
      width: 20px;
      text-align: center;
    }

    .nav-badge {
      margin-left: auto;
      background: var(--accent);
      color: white;
      border-radius: 10px;
      font-size: 11px;
      font-weight: 600;
      padding: 1px 7px;
    }

    .nav-badge.green {
      background: var(--green);
    }

    main {
      flex: 1;
      padding: 28px 32px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      height: calc(100vh - 64px);
    }

    .page-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 28px;
    }

    .page-title {
      font-family: 'Inter', sans-serif;
      font-size: 26px;
      font-weight: 700;
      color: var(--dark);
      line-height: 1.2;
    }

    .page-subtitle {
      font-size: 14px;
      color: var(--mid);
      margin-top: 4px;
      font-weight: 400;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 22px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      border: none;
      transition: all .25s cubic-bezier(0.2, 0.8, 0.2, 1);
      font-family: inherit;
    }

    .btn-primary {
      background: var(--accent);
      color: white;
      box-shadow: 0 2px 8px rgba(26, 60, 158, 0.2);
    }

    .btn-primary:hover {
      background: var(--accent-deep);
      box-shadow: 0 4px 12px rgba(26, 60, 158, 0.3);
      transform: translateY(-1px);
    }

    .btn-primary:disabled {
      opacity: .6;
      cursor: default;
      transform: none;
    }

    .btn-secondary {
      background: var(--warm-white);
      color: var(--dark);
      border: 1px solid var(--tan);
      box-shadow: var(--shadow-sm);
    }

    .btn-secondary:hover {
      background: var(--sand);
      transform: translateY(-1px);
    }

    .btn-sm {
      padding: 8px 16px;
      font-size: 13px;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
      margin-bottom: 32px;
    }

    .stat-card {
      background: var(--warm-white);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius);
      padding: 20px;
      position: relative;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      transition: transform .2s, box-shadow .2s;
    }

    .stat-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--accent);
      border-radius: 3px 3px 0 0;
    }

    .stat-card.green::before {
      background: var(--green);
    }

    .stat-card.blue::before {
      background: var(--blue);
    }

    .stat-card.red::before {
      background: var(--red);
    }

    .stat-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    .stat-label {
      font-size: 12px;
      color: var(--mid);
      font-weight: 500;
      letter-spacing: .3px;
    }

    .stat-value {
      font-family: 'Inter', sans-serif;
      font-size: 30px;
      font-weight: 700;
      color: var(--accent-deep);
      line-height: 1.1;
      margin: 6px 0 4px;
    }

    .stat-sub {
      font-size: 12px;
      color: var(--green);
      font-weight: 500;
    }

    .stat-sub.red {
      color: var(--red);
    }

    .gemini-section {
      background: var(--warm-white);
      border: 1.5px solid var(--sand);
      border-radius: var(--radius-lg);
      margin-bottom: 24px;
      overflow: hidden;
    }

    .gemini-header {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 16px 22px;
      background: var(--accent-light);
      border-bottom: 1px solid var(--sand);
    }

    .gemini-logo {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, var(--accent) 0%, #E8A060 100%);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      color: white;
      font-weight: 700;
    }

    .gemini-title {
      font-weight: 600;
      font-size: 15px;
    }

    .gemini-subtitle {
      font-size: 12px;
      color: var(--mid);
    }

    .gemini-body {
      padding: 20px 22px;
    }

    .gemini-messages {
      max-height: 280px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 16px;
    }

    .msg {
      max-width: 82%;
      padding: 10px 14px;
      border-radius: 12px;
      font-size: 14px;
      line-height: 1.6;
    }

    .msg.user {
      background: var(--accent);
      color: white;
      align-self: flex-end;
      border-bottom-right-radius: 4px;
    }

    .msg.ai {
      background: var(--sand);
      color: var(--dark);
      align-self: flex-start;
      border-bottom-left-radius: 4px;
    }

    .gemini-input-row {
      display: flex;
      gap: 10px;
    }

    .gemini-input {
      flex: 1;
      border: 1.5px solid var(--sand);
      border-radius: var(--radius);
      padding: 10px 14px;
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      background: var(--cream);
      color: var(--dark);
      outline: none;
      transition: border-color .2s;
    }

    .gemini-input:focus {
      border-color: var(--accent);
      background: white;
    }

    .gemini-input::placeholder {
      color: var(--tan);
    }

    .typing {
      display: flex;
      gap: 4px;
      align-items: center;
      padding: 4px 0;
    }

    .typing span {
      width: 6px;
      height: 6px;
      background: var(--brown);
      border-radius: 50%;
      animation: ty 1.2s infinite;
    }

    .typing span:nth-child(2) {
      animation-delay: .2s;
    }

    .typing span:nth-child(3) {
      animation-delay: .4s;
    }

    @keyframes ty {

      0%,
      100% {
        transform: translateY(0)
      }

      50% {
        transform: translateY(-5px)
      }
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px;
    }

    .section-title {
      font-family: 'Inter', sans-serif;
      font-size: 18px;
      font-weight: 600;
    }

    .filter-row {
      display: flex;
      gap: 8px;
    }

    .filter-chip {
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid #ccd5e2;
      background: white;
      color: var(--mid);
      transition: all .15s;
      white-space: nowrap;
    }

    .filter-chip.active {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
    }

    .filter-chip:hover:not(.active) {
      background: var(--cream);
      color: var(--dark);
    }

    .lots-table-wrap {
      background: var(--warm-white);
      border: 1.5px solid var(--sand);
      border-radius: var(--radius-lg);
      overflow: hidden;
    }

    .pagination-wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
      padding: 20px;
      flex-wrap: wrap;
    }

    .pagination-btn {
      min-width: 36px;
      height: 36px;
      padding: 0 10px;
      border: 1.5px solid var(--sand);
      background: var(--warm-white);
      border-radius: 6px;
      font-size: 13px;
      font-weight: 500;
      color: var(--mid);
      cursor: pointer;
      transition: all 0.15s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .pagination-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    .pagination-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: white;
    }

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

    .pagination-info {
      font-size: 13px;
      color: var(--brown);
      margin: 0 12px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
    }

    th {
      text-align: left;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .8px;
      text-transform: uppercase;
      color: var(--mid);
      padding: 12px 16px;
      background: var(--cream);
      border-bottom: 1.5px solid var(--sand);
    }

    td {
      padding: 13px 16px;
      font-size: 14px;
      border-bottom: 1px solid var(--sand);
      vertical-align: middle;
    }

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

    tr:hover td {
      background: var(--cream);
      cursor: default;
    }

    .lot-id {
      font-family: monospace;
      font-size: 11px;
      color: var(--tan);
    }

    .lot-name {
      font-weight: 600;
      color: var(--dark);
    }

    .lot-location {
      font-size: 12px;
      color: var(--mid);
      margin-top: 2px;
    }

    .price-start {
      font-weight: 600;
    }

    .price-market {
      font-size: 12px;
      color: var(--mid);
    }

    .delta-badge {
      display: inline-flex;
      align-items: center;
      background: var(--green-light);
      color: var(--green);
      font-weight: 700;
      font-size: 13px;
      padding: 3px 10px;
      border-radius: 20px;
    }

    .delta-badge.mid {
      background: var(--accent-light);
      color: var(--accent-deep);
    }

    .delta-badge.low {
      background: var(--red-light);
      color: var(--red);
    }

    .traffic-dots {
      display: flex;
      gap: 3px;
    }

    .traffic-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--sand);
    }

    .traffic-dot.on {
      background: var(--accent);
    }

    .traffic-dot.hi {
      background: var(--green);
    }

    .status-pill {
      display: inline-block;
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
    }

    .s-new {
      background: var(--blue-light);
      color: var(--blue);
    }

    .s-analyze {
      background: var(--accent-light);
      color: var(--accent-deep);
    }

    .s-hot {
      background: var(--green-light);
      color: var(--green);
    }

    .s-bid {
      background: var(--red-light);
      color: var(--red);
    }

    .icon-btn {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      border: 1.5px solid var(--sand);
      background: var(--warm-white);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      transition: all .15s;
    }

    .icon-btn:hover {
      background: var(--sand);
      transform: scale(1.1);
    }

    /* Kanban */
    .kanban-board {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 14px;
    }

    .k-col {
      background: var(--sand);
      border-radius: var(--radius-lg);
      padding: 14px;
      min-height: 380px;
    }

    .k-col-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .k-col-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--mid);
      text-transform: uppercase;
      letter-spacing: .8px;
    }

    .k-count {
      background: var(--warm-white);
      color: var(--mid);
      border-radius: 10px;
      font-size: 12px;
      font-weight: 700;
      padding: 1px 7px;
    }

    .k-card {
      background: var(--warm-white);
      border-radius: var(--radius);
      padding: 13px;
      margin-bottom: 9px;
      border: 1.5px solid var(--sand);
      box-shadow: var(--shadow-sm);
      transition: all .2s;
      cursor: grab;
    }

    .k-card:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
      border-color: var(--tan);
    }

    .k-card-title {
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 6px;
      color: var(--dark);
    }

    .k-tags {
      display: flex;
      gap: 5px;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }

    .k-tag {
      background: var(--cream);
      border: 1px solid var(--tan);
      border-radius: 6px;
      padding: 1px 6px;
      font-size: 11px;
      color: var(--mid);
    }

    .k-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .k-score {
      font-weight: 700;
      font-size: 13px;
      color: var(--green);
    }

    .k-score.mid {
      color: var(--accent);
    }

    .k-score.low {
      color: var(--red);
    }

    .k-date {
      font-size: 11px;
      color: var(--tan);
    }

    /* Analytics */
    .chart-card {
      background: var(--warm-white);
      border: 1.5px solid var(--sand);
      border-radius: var(--radius-lg);
      padding: 22px;
      margin-bottom: 20px;
    }

    .chart-card h3 {
      font-family: 'Inter', sans-serif;
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .mini-chart {
      display: flex;
      align-items: flex-end;
      gap: 10px;
      height: 120px;
      padding-bottom: 4px;
    }

    .bar-group {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
      flex: 1;
    }

    .bar {
      width: 100%;
      border-radius: 6px 6px 0 0;
      background: var(--accent);
      transition: height .8s ease;
    }

    .bar-label {
      font-size: 11px;
      color: var(--mid);
      text-align: center;
    }

    .map-mock {
      background: linear-gradient(135deg, #E8EFE4 0%, #F5F0E8 50%, #E4ECF0 100%);
      border-radius: var(--radius);
      height: 220px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: var(--mid);
      font-size: 14px;
      border: 1.5px solid var(--sand);
      position: relative;
      overflow: hidden;
    }

    .map-mock::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: linear-gradient(var(--tan) 1px, transparent 1px), linear-gradient(90deg, var(--tan) 1px, transparent 1px);
      background-size: 40px 40px;
      opacity: .25;
    }

    .map-pin {
      position: absolute;
      width: 20px;
      height: 20px;
      background: var(--accent);
      border-radius: 50% 50% 50% 0;
      transform: rotate(-45deg);
      border: 2px solid white;
      box-shadow: var(--shadow-md);
      cursor: pointer;
      transition: transform .2s;
    }

    .map-pin:hover {
      transform: rotate(-45deg) scale(1.4);
    }

    /* Settings */
    .settings-card {
      background: var(--warm-white);
      border: 1.5px solid var(--sand);
      border-radius: var(--radius-lg);
      padding: 24px;
      margin-bottom: 16px;
    }

    .settings-card h3 {
      font-family: 'Inter', sans-serif;
      font-size: 17px;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 16px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .form-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--mid);
      text-transform: uppercase;
      letter-spacing: .6px;
    }

    .form-input {
      border: 1.5px solid var(--sand);
      border-radius: var(--radius);
      padding: 10px 14px;
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      background: var(--cream);
      color: var(--dark);
      outline: none;
      transition: border-color .2s;
      width: 100%;
    }

    .form-input:focus {
      border-color: var(--accent);
      background: white;
    }

    .formula-box {
      background: var(--cream);
      border: 1.5px solid var(--sand);
      border-radius: var(--radius);
      padding: 18px;
      font-family: 'Courier New', monospace;
      font-size: 13px;
      color: var(--mid);
      line-height: 2;
    }

    .formula-box .var {
      color: var(--accent-deep);
      font-weight: 700;
    }

    .formula-box .op {
      color: var(--blue);
    }

    .formula-box .comment {
      color: var(--tan);
      font-style: italic;
    }

    /* Modal */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(44, 36, 22, .45);
      z-index: 200;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(4px);
    }

    .modal-overlay.show {
      display: flex;
    }

    .modal {
      background: var(--warm-white);
      border-radius: var(--radius-lg);
      padding: 28px;
      width: 480px;
      max-width: 92vw;
      box-shadow: var(--shadow-lg);
      animation: fadeUp .3s ease;
    }

    .modal h2 {
      font-family: 'Inter', sans-serif;
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-close {
      cursor: pointer;
      font-size: 20px;
      color: var(--mid);
      background: none;
      border: none;
    }

    .loader {
      display: inline-block;
      width: 14px;
      height: 14px;
      border: 2px solid rgba(255, 255, 255, .3);
      border-top-color: white;
      border-radius: 50%;
      animation: spin .6s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }


    ::-webkit-scrollbar {
      width: 5px;
    }

    ::-webkit-scrollbar-track {
      background: var(--cream);
    }

    ::-webkit-scrollbar-thumb {
      background: var(--tan);
      border-radius: 3px;
    }

    .page {
      display: none;
    }

    .page.active {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
      flex-direction: column;
      flex: 1;
    }

    .hint-chips {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .hint-chip {
      background: var(--cream);
      border: 1px solid var(--tan);
      border-radius: 20px;
      padding: 4px 12px;
      font-size: 12px;
      color: var(--accent-deep);
      cursor: pointer;
      transition: all .15s;
      font-weight: 500;
    }

    .hint-chip:hover {
      background: var(--accent-light);
      border-color: var(--accent);
    }

    /* Server Logs Modal */
    .terminal-modal {
      background: #1e1e1e;
      border-radius: var(--radius-lg);
      padding: 20px;
      width: 680px;
      max-width: 95vw;
      box-shadow: var(--shadow-lg);
      color: #d4d4d4;
      font-family: 'Courier New', Courier, monospace;
      display: flex;
      flex-direction: column;
      height: 500px;
      animation: fadeUp .3s ease;
    }

    .terminal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #333;
      padding-bottom: 12px;
      margin-bottom: 12px;
    }

    .terminal-title {
      font-weight: bold;
      color: #fff;
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .terminal-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #4caf50;
      animation: pulse 2s infinite;
    }

    .terminal-body {
      flex: 1;
      overflow-y: auto;
      font-size: 12px;
      line-height: 1.5;
      padding-right: 8px;
    }

    .terminal-line {
      margin-bottom: 4px;
      word-break: break-all;
    }

    .terminal-line.info {
      color: #569cd6;
    }

    .terminal-line.success {
      color: #4caf50;
    }

    .terminal-line.warning {
      color: #ce9178;
    }

    .terminal-line.error {
      color: #f44747;
    }

    /* Mobile Responsiveness */
    @media (max-width: 768px) {
      header {
        padding: 0 12px;
        height: 60px;
      }

      .logo {
        font-size: 18px;
      }

      .hide-mobile {
        display: none !important;
      }

      .header-right {
        gap: 6px;
      }

      .header-right .btn-sm {
        padding: 8px;
        gap: 0;
      }

      .api-badge {
        padding: 8px;
        border-radius: 50%;
      }

      .app {
        flex-direction: column;
      }

      aside {
        width: 100%;
        height: auto;
        position: static;
        padding: 16px;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--sand);
        gap: 8px;
      }

      .nav-section-label {
        display: none;
      }

      .nav-item {
        margin: 0;
        padding: 8px 12px;
        white-space: nowrap;
      }

      main {
        padding: 16px;
      }

      .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }

      .lots-table-wrap {
        border-radius: var(--radius);
        margin: 0 -16px;
        width: calc(100% + 32px);
      }

      .lots-table-wrap th,
      .lots-table-wrap td {
        padding: 12px;
      }

      .terminal-modal {
        width: 100%;
        height: 80vh;
      }

      .kanban-board {
        flex-direction: column;
        height: auto;
      }

      .k-col {
        min-height: 200px;
      }

      div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
      }

      .chart-card {
        padding: 16px;
      }
    }