  :root {
    --bg: #1a1410;
    --bg-card: #2a2118;
    --bg-elevated: #352a1f;
    --cream: #f5ebe0;
    --cream-muted: #c4b5a5;
    --accent: #c87941;
    --accent-hover: #d9925a;
    --green: #8b5a2b;
    --occupied-spring: #a8e6a0;
    --occupied-bg-mix: #263828;
    --amber: #ffd84d;
    --red: #c45c5c;
    --border: rgba(245, 235, 224, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --radius: 12px;
    --radius-sm: 8px;
    --font: "DM Sans", system-ui, sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
    --header-height: 72px;
    --touch-min: 44px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
  }

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

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--cream);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.5;
    overflow-x: hidden;
    background-image:
      radial-gradient(ellipse 80% 50% at 50% -20%, rgba(200, 121, 65, 0.15), transparent),
      radial-gradient(ellipse 60% 40% at 100% 100%, rgba(107, 155, 110, 0.08), transparent);
  }

  body.panel-scroll-lock {
    overflow: hidden;
  }

  .hidden {
    display: none !important;
  }

  /* Header */
  .header {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: calc(0.75rem + var(--safe-top)) 1rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: rgba(26, 20, 16, 0.92);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .header-row--main {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    max-width: 100%;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  .brand:hover {
    opacity: 0.85;
  }

  .brand-icon {
    font-size: 2rem;
    line-height: 1;
  }

  .brand h1 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .subtitle {
    font-size: 0.8rem;
    color: var(--cream-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-stats {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    font-size: 0.8rem;
    color: var(--cream-muted);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .header-stats::-webkit-scrollbar {
    display: none;
  }

  .header-stats .stat {
    flex: 1 0 auto;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.65rem;
    white-space: nowrap;
  }

  .header-stats strong {
    color: var(--accent);
    font-weight: 600;
    display: block;
    font-size: 0.95rem;
  }

  .stat-label {
    font-size: 0.7rem;
    opacity: 0.9;
  }

  @media (min-width: 901px) {
    .header {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 1rem 1.5rem;
      padding: 1rem 1.5rem;
    }

    .header-row--main {
      flex: 1 1 auto;
      gap: 1rem 1.5rem;
    }

    .header-stats {
      flex: 1 1 100%;
      order: 3;
      gap: 1.5rem;
      overflow: visible;
      padding-bottom: 0;
    }

    .header-stats .stat {
      flex: 0 1 auto;
      background: none;
      border: none;
      padding: 0;
      white-space: normal;
    }

    .header-stats strong {
      display: inline;
      font-size: inherit;
    }

    .stat-label {
      font-size: inherit;
    }
  }

  @media (min-width: 1100px) {
    .header {
      flex-wrap: nowrap;
    }

    .header-stats {
      flex: 1 1 auto;
      order: unset;
      margin-left: auto;
      justify-content: flex-end;
    }
  }

  /* Panel backdrop (mobile) */
  .panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 55;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }

  .panel-backdrop:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
  }

  /* Layout */
  .layout {
    display: grid;
    grid-template-columns: 1fr min(420px, 40vw);
    gap: 0;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(var(--app-height, 100dvh) - var(--header-height));
  }

  .tables-section {
    padding: 1.5rem;
    overflow-y: auto;
  }

  .section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .legend {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
  }

  .legend-item {
    font-size: 0.8rem;
    color: var(--cream-muted);
    padding-left: 1.25rem;
    position: relative;
  }

  .legend-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 3px;
  }

  .legend-item.available::before {
    background: var(--green);
  }

  .legend-item.occupied::before {
    background: var(--occupied-spring);
  }

  .legend-item.billing::before {
    background: var(--amber);
  }

  .tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }

  .table-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    text-align: center;
    position: relative;
    min-height: var(--touch-min);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

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

  .table-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
  }

  .table-card.available {
    border-color: rgba(139, 90, 43, 0.6);
    background: linear-gradient(145deg, var(--bg-card), #3b2a1c);
  }

  .table-card.occupied {
    border-color: rgba(168, 230, 160, 0.65);
    background: linear-gradient(145deg, var(--bg-card), var(--occupied-bg-mix));
  }

  .table-card.billing {
    border-color: rgba(255, 216, 77, 0.85);
    background: linear-gradient(145deg, var(--bg-card), #4a3f12);
    animation: pulse 2s ease-in-out infinite;
  }

  /* Chế độ chuyển bàn trực quan */
  .table-card.transfer-source {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: pulse-source 1.5s ease-in-out infinite;
    z-index: 2;
  }

  .table-card.transfer-target-highlight {
    border-color: #8bba5c;
    background: linear-gradient(145deg, var(--bg-card), #1b3815);
    box-shadow: 0 0 8px rgba(139, 186, 92, 0.3);
    animation: pulse-target 1.5s ease-in-out infinite;
    transform: scale(1.02);
  }

  .table-card.transfer-target-highlight:hover {
    border-color: #a8e6a0;
    box-shadow: 0 0 16px rgba(168, 230, 160, 0.7);
    transform: scale(1.05);
  }

  @keyframes pulse {
    0%,
    100% {
      box-shadow: 0 0 0 0 rgba(255, 216, 77, 0.35);
    }
    50% {
      box-shadow: 0 0 0 6px rgba(255, 216, 77, 0);
    }
  }

  @keyframes pulse-source {
    0%, 100% {
      box-shadow: 0 0 4px var(--accent);
      border-color: var(--accent);
    }
    50% {
      box-shadow: 0 0 16px rgba(200, 121, 65, 0.8);
      border-color: var(--accent-hover);
    }
  }

  @keyframes pulse-target {
    0%, 100% {
      box-shadow: 0 0 4px rgba(139, 186, 92, 0.3);
      border-color: #8bba5c;
    }
    50% {
      box-shadow: 0 0 16px rgba(139, 186, 92, 0.7);
      border-color: #a8e6a0;
    }
  }

  .table-card .table-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
  }

  .table-card .table-meta {
    font-size: 0.75rem;
    color: var(--cream-muted);
    margin-top: 0.35rem;
  }

  .table-card .table-total {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.5rem;
  }

  .table-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
  }

  .panel-sheet-handle {
    display: none;
  }

  /* Order panel */
  .order-panel {
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(var(--app-height, 100dvh) - var(--header-height));
    position: sticky;
    top: var(--header-height);
  }

  .panel-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--cream-muted);
    text-align: center;
  }

  .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }

  .panel-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-elevated);
  }

  .panel-header-info {
    flex: 1;
    min-width: 0;
  }

  .btn-back-to-tables {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--touch-min);
    min-width: var(--touch-min);
    height: var(--touch-min);
    padding: 0;
    font-family: var(--font-body);
    color: var(--cream);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }

  .btn-back-icon {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
  }

  .btn-back-to-tables:hover,
  .btn-back-to-tables:active {
    color: var(--accent-hover);
    background: rgba(200, 121, 65, 0.15);
    border-color: var(--accent);
  }

  .panel-header h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
  }

  .panel-status {
    font-size: 0.75rem;
    color: var(--cream-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .btn-close {
    background: none;
    border: none;
    color: var(--cream-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .btn-close:hover {
    color: var(--cream);
  }

  /* Tabs */
  .tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }

  .tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--cream-muted);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all 0.15s;
    min-height: 32px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .tab:hover {
    color: var(--cream);
    border-color: var(--cream-muted);
  }

  .tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    font-weight: 600;
  }

  .history-summary {
    padding: 0.75rem 1rem;
    color: var(--cream-muted);
    font-size: 0.95rem;
  }

  .history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 360px;
    overflow-y: auto;
  }

  .history-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    margin: 0.5rem 1rem;
  }

  .history-item-heading {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.45rem;
    font-weight: 600;
  }

  .history-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: var(--cream-muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
  }

  .history-item-note {
    color: var(--cream);
    font-size: 0.85rem;
  }

  .empty-row {
    padding: 1rem;
    color: var(--cream-muted);
    text-align: center;
  }

  /* Menu grid */
  .menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    max-height: 220px;
    overflow-y: auto;
    flex-shrink: 0;
  }

  .menu-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
    transition: background 0.15s, border-color 0.15s;
    min-height: var(--touch-min);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .menu-item:hover {
    background: var(--bg);
    border-color: var(--accent);
  }

  .menu-item .name {
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
  }

  .menu-item .price {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.2rem;
  }

  /* Current order */
  .current-order {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
    border-top: 1px solid var(--border);
  }

  .current-order--leading {
    border-top: none;
  }

  .btn-add-more {
    margin: 0 1rem 0.75rem;
    flex-shrink: 0;
    background: rgba(201, 162, 39, 0.15) !important;
    border: 2px solid var(--accent) !important;
    color: var(--accent) !important;
    font-weight: 700 !important;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.2);
    transition: all 0.2s ease;
  }

  .btn-add-more:hover {
    background: rgba(201, 162, 39, 0.25) !important;
    box-shadow: 0 6px 16px rgba(201, 162, 39, 0.3);
    transform: translateY(-1px);
  }

  .menu-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex-shrink: 0;
  }

  .menu-section.hidden {
    display: none;
  }

  .current-order h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cream-muted);
    padding: 0.75rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .badge {
    background: var(--accent);
    color: var(--bg);
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-weight: 700;
  }

  .order-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
  }

  .order-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
  }

  .order-item .info {
    flex: 1;
    min-width: 0;
  }

  .order-item .name {
    font-size: 0.9rem;
    font-weight: 500;
  }

  .order-item .sub {
    font-size: 0.75rem;
    color: var(--cream-muted);
  }

  .order-item .line-total {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    min-width: 70px;
    text-align: right;
  }

  .qty-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--cream);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

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

  .qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
  }

  .order-empty {
    color: var(--cream-muted);
    font-size: 0.875rem;
    padding: 1rem 0;
    text-align: center;
  }

  /* Panel footer */
  .panel-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
    /* Nền đặc (= bg-elevated tối 20%) để che phần menu cuộn bên dưới */
    background: #2a2219;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 3;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.3);
  }

  .total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
  }

  .total-row strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
  }

  .note-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--cream);
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    font-size: 0.85rem;
    resize: none;
    margin-bottom: 0.75rem;
  }

  .note-input:focus {
    outline: none;
    border-color: var(--accent);
  }

  .table-note-box {
    margin-bottom: 0.75rem;
  }

  .table-note-box .note-input {
    margin-bottom: 0.4rem;
  }

  .note-charger {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    cursor: pointer;
    user-select: none;
  }

  .note-charger input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .actions.actions--single {
    grid-template-columns: 1fr;
  }

  .table-tools {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
  }

  .btn-transfer {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
  }

  .transfer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
    max-height: min(40vh, 280px);
    overflow-y: auto;
  }

  .transfer-target {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.75rem 0.35rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--cream);
    cursor: pointer;
    min-height: var(--touch-min);
    transition: border-color 0.15s, background 0.15s;
  }

  .transfer-target:hover {
    border-color: var(--accent);
    background: rgba(201, 162, 39, 0.12);
  }

  /* Tách bill */
  .split-step-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cream-muted);
    margin: 0.9rem 0 0.4rem;
  }

  .split-items {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: min(32vh, 260px);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  .split-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .split-item:last-child {
    border-bottom: none;
  }

  .split-item.active {
    background: rgba(201, 162, 39, 0.1);
  }

  .split-item .info {
    flex: 1;
    min-width: 0;
    cursor: pointer;
  }

  .split-item .name {
    font-size: 0.9rem;
    font-weight: 500;
  }

  .split-item .sub {
    font-size: 0.75rem;
    color: var(--cream-muted);
  }

  .split-item .qty-value {
    min-width: 40px;
  }

  .split-item .qty-btn:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .split-targets {
    margin-top: 0;
    max-height: min(26vh, 200px);
  }

  .split-targets .transfer-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.5rem 0.35rem;
  }

  .split-targets .transfer-target small {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--cream-muted);
  }

  .split-targets .transfer-target.busy {
    border-color: var(--occupied-spring);
  }

  .split-targets .transfer-target.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg);
  }

  .split-targets .transfer-target.selected small {
    color: var(--bg);
  }

  .split-summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--cream-muted);
  }

  .split-summary strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--accent);
  }

  /* Checkout note items with checkboxes */
  .checkout-note-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.05rem;
    color: var(--cream);
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0.65rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(201, 162, 39, 0.3);
    transition: all 0.2s ease;
  }

  .checkout-note-item:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(201, 162, 39, 0.5);
  }

  .checkout-note-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
  }

  .checkout-note-item.checked {
    opacity: 0.7;
    text-decoration: line-through;
    background: rgba(201, 162, 39, 0.1);
  }

  .checkout-note-item.checked input[type="checkbox"] {
    accent-color: #4ade80;
  }

  .checkout-note-item label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
  }

  /* Buttons */
  .btn {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .btn-icon {
    min-width: var(--touch-min);
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .btn:active {
    transform: scale(0.98);
  }

  .btn-primary {
    background: var(--accent);
    color: var(--bg);
  }

  .btn-primary:hover {
    background: var(--accent-hover);
  }

  .btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--cream);
  }

  .btn-outline:hover {
    border-color: var(--cream-muted);
  }

  .btn-ghost {
    background: transparent;
    color: var(--cream-muted);
    border: 1px solid var(--border);
  }

  .btn-ghost:hover {
    color: var(--cream);
  }

  .btn-danger-text {
    width: 100%;
    background: none;
    border: none;
    color: var(--red);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.5rem;
    font-family: inherit;
  }

  .btn-danger-text:hover {
    text-decoration: underline;
  }

  .btn-sm {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Panel order gọn: font & khoảng cách nhỏ lại để các nút cuối panel không bị che */
  .order-panel .panel-header {
    padding: 0.5rem 0.85rem;
  }

  .order-panel .panel-header h2 {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .order-panel .panel-status {
    font-size: 0.68rem;
  }

  .order-panel .btn-back-to-tables {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .order-panel .btn-back-icon {
    font-size: 1.25rem;
  }

  .order-panel .btn-close {
    min-width: 36px;
    min-height: 36px;
    font-size: 1.3rem;
  }

  .order-panel .current-order {
    padding: 0 0.85rem;
    min-height: 7.5rem;
  }

  .order-panel .current-order h3 {
    font-size: 0.72rem;
    padding: 0.5rem 0 0.3rem;
  }

  .order-panel .order-item {
    padding: 0.35rem 0;
    gap: 0.4rem;
  }

  .order-panel .order-item .name {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .order-panel .order-item .sub {
    font-size: 0.68rem;
  }

  .order-panel .order-item .line-total {
    font-size: 0.8rem;
    min-width: 60px;
  }

  .order-panel .qty-btn {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .order-panel .qty-value {
    font-size: 0.82rem;
    min-width: 20px;
  }

  .order-panel .btn-add-more {
    margin: 0 0.85rem 0.5rem;
    min-height: 36px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .order-panel .menu-item {
    padding: 0.5rem 0.6rem;
    min-height: 40px;
  }

  .order-panel .menu-item .name {
    font-size: 0.8rem;
  }

  .order-panel .menu-item .price {
    font-size: 0.7rem;
  }

  .order-panel .panel-footer {
    padding: 0.6rem 0.85rem;
  }

  .order-panel .total-row {
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
  }

  .order-panel .total-row strong {
    font-size: 1.2rem;
  }

  .order-panel .note-input {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.45rem;
  }

  .order-panel .table-note-box {
    margin-bottom: 0.45rem;
  }

  .order-panel .table-note-box .note-input {
    margin-bottom: 0.3rem;
  }

  .order-panel .panel-footer .btn {
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .order-panel .panel-footer .btn-sm {
    min-height: 34px;
    font-size: 0.75rem;
  }

  .order-panel .actions {
    gap: 0.4rem;
    margin-bottom: 0.4rem;
  }

  .order-panel .table-tools {
    gap: 0.4rem;
  }

  .order-panel .btn-danger-text {
    padding: 0.35rem;
    font-size: 0.75rem;
  }

  /* Modal */
  .modal {
    border: none;
    padding: 0;
    /* Reset margin: 0 toàn cục làm mất căn giữa mặc định của <dialog> */
    margin: auto;
    background: transparent;
    max-width: 90vw;
  }

  .modal::backdrop {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
  }

  .modal-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    min-width: 320px;
    color: var(--cream);
  }

  .modal-box h3 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
  }

  .modal-table {
    color: var(--cream-muted);
    font-size: 0.9rem;
  }

  .modal-total {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent);
    margin: 1rem 0 1.25rem;
  }

  .modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
  }

  .modal-wide {
    min-width: min(480px, 92vw);
    max-height: 85vh;
    overflow-y: auto;
  }

  .modal-hint {
    font-size: 0.85rem;
    color: var(--cream-muted);
    margin-bottom: 1rem;
  }

  .settlement-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .settlement-summary span {
    display: block;
    font-size: 0.8rem;
    color: var(--cream-muted);
  }

  .settlement-summary strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--accent);
  }

  .settlement-details {
    margin: 0.75rem 0;
    font-size: 0.875rem;
  }

  .settlement-details summary {
    cursor: pointer;
    color: var(--cream-muted);
    margin-bottom: 0.5rem;
  }

  .settlement-list {
    list-style: none;
    max-height: 160px;
    overflow-y: auto;
    font-size: 0.85rem;
  }

  .settlement-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
  }

  /* ===== Tồn kho nguyên liệu (smart inventory) ===== */
  .inventory-modal {
    min-width: min(720px, 94vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
  }

  .inv-summary {
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    margin: 0.5rem 0 0.75rem;
    line-height: 1.9;
  }

  .inv-summary.warn {
    background: rgba(196, 92, 92, 0.14);
    border: 1px solid rgba(196, 92, 92, 0.4);
  }

  .inv-summary.ok {
    background: rgba(139, 90, 43, 0.18);
    border: 1px solid var(--border);
    color: var(--cream-muted);
  }

  .inv-summary-lead {
    margin-right: 0.25rem;
  }

  .inv-chip {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
  }

  .inv-chip.out {
    background: rgba(196, 92, 92, 0.3);
    color: #ffd9d9;
  }

  .inv-chip.low {
    background: rgba(255, 216, 77, 0.22);
    color: var(--amber);
  }

  .inv-chip:hover {
    border-color: var(--cream-muted);
  }

  .inv-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
  }

  .inv-search {
    flex: 1 1 180px;
    min-width: 140px;
  }

  .inv-search,
  .inv-cat-filter,
  .inv-field input,
  .inv-field select {
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--cream);
    font-family: inherit;
    font-size: 0.85rem;
  }

  .inv-lowonly {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--cream-muted);
    cursor: pointer;
    white-space: nowrap;
  }

  .inv-groups {
    flex: 1;
    overflow-y: auto;
    min-height: 120px;
  }

  .inv-group {
    margin-bottom: 1rem;
  }

  .inv-group-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3rem;
    margin-bottom: 0.4rem;
  }

  .inv-group-count {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--cream-muted);
  }

  .inv-group-low {
    color: var(--red);
  }

  .inv-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 140px 36px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
  }

  .inv-row:hover {
    background: rgba(245, 235, 224, 0.04);
  }

  .inv-row.status-out {
    border-left-color: var(--red);
    background: rgba(196, 92, 92, 0.1);
  }

  .inv-row.status-low {
    border-left-color: var(--amber);
    background: rgba(255, 216, 77, 0.08);
  }

  .inv-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
  }

  .inv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--occupied-spring);
    flex-shrink: 0;
  }

  .status-out .inv-dot {
    background: var(--red);
  }

  .status-low .inv-dot {
    background: var(--amber);
  }

  .inv-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .inv-note {
    cursor: help;
    font-size: 0.75rem;
  }

  .inv-badge {
    font-size: 0.68rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    flex-shrink: 0;
  }

  .inv-badge.out {
    background: var(--red);
    color: #fff;
  }

  .inv-badge.low {
    background: var(--amber);
    color: #3a2c00;
  }

  .inv-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .inv-step {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--cream);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }

  .inv-step:hover {
    background: var(--accent);
    color: #fff;
  }

  .inv-qty {
    width: 58px;
    text-align: center;
    padding: 0.35rem 0.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--cream);
    font-family: inherit;
    font-size: 0.9rem;
  }

  .inv-unit {
    font-size: 0.78rem;
    color: var(--cream-muted);
    min-width: 32px;
  }

  .inv-thr {
    font-size: 0.72rem;
    color: var(--cream-muted);
    text-align: right;
  }

  .inv-edit {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    opacity: 0.55;
    padding: 0.2rem;
  }

  .inv-edit:hover {
    opacity: 1;
  }

  .inv-empty {
    color: var(--cream-muted);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
  }

  .inv-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--cream-muted);
    margin-bottom: 0.75rem;
  }

  .inv-form-actions {
    align-items: center;
  }

  .inv-form-spacer {
    flex: 1;
  }

  .btn-danger {
    background: var(--red);
    color: #fff;
    border: 1px solid var(--red);
  }

  .btn-danger:hover {
    filter: brightness(1.1);
  }

  /* ===== Định mức (recipe) ===== */
  .recipe-menu-select {
    width: 100%;
    padding: 0.6rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--cream);
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .recipe-lines {
    list-style: none;
    max-height: 46vh;
    overflow-y: auto;
    margin-bottom: 0.75rem;
  }

  .recipe-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px auto 32px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border);
  }

  .recipe-line:hover {
    background: rgba(245, 235, 224, 0.04);
  }

  .recipe-ing-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .recipe-amount {
    width: 100%;
    text-align: center;
    padding: 0.35rem 0.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--cream);
    font-family: inherit;
  }

  .recipe-unit {
    font-size: 0.78rem;
    color: var(--cream-muted);
    min-width: 34px;
  }

  .recipe-remove {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 0.95rem;
    opacity: 0.7;
  }

  .recipe-remove:hover {
    opacity: 1;
  }

  .recipe-empty {
    color: var(--cream-muted);
    font-size: 0.88rem;
    padding: 1.25rem 0;
    text-align: center;
  }

  .recipe-add {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border);
  }

  .recipe-add select {
    flex: 1 1 160px;
    min-width: 140px;
    padding: 0.5rem 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--cream);
    font-family: inherit;
    font-size: 0.85rem;
  }

  .recipe-add input {
    width: 100px;
    padding: 0.5rem 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--cream);
    font-family: inherit;
  }

  /* Toast */
  .toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 200;
    pointer-events: none;
  }

  .toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  /* Responsive — tablet & phone */
  @media (max-width: 1100px) {
    .subtitle {
      display: none;
    }
  }

  @media (max-width: 900px) {
    :root {
      --header-height: 118px;
    }

    .header-row--main {
      grid-template-columns: 1fr;
    }

    .header-actions {
      justify-content: flex-start;
      width: 100%;
    }

    .layout {
      grid-template-columns: 1fr;
      min-height: auto;
    }

    .tables-section {
      padding: 1rem;
      padding-bottom: 1.5rem;
    }

    .tables-grid {
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 0.65rem;
    }

    .table-card {
      padding: 0.85rem 0.5rem;
    }

    .table-card .table-num {
      font-size: 1.2rem;
    }

    .order-panel {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      top: auto;
      max-height: min(92dvh, 720px);
      border-left: none;
      border-top: 1px solid var(--border);
      border-radius: 16px 16px 0 0;
      z-index: 60;
      box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
      transform: translateY(100%);
      visibility: hidden;
      transition: transform 0.28s ease, visibility 0.28s;
      padding-bottom: var(--safe-bottom);
    }

    .layout.panel-open .order-panel {
      top: var(--app-top, 0px);
      bottom: auto;
      height: 100vh;
      height: var(--app-height, 100dvh);
      max-height: none;
      border-radius: 0;
      padding-top: var(--safe-top);
      transform: translateY(0);
      visibility: visible;
      display: flex;
      flex-direction: column;
      z-index: 110;
    }

    .layout.panel-open .order-panel .panel-content {
      flex: 1;
      min-height: 0;
      overflow-x: hidden;
      overflow-y: auto;
    }

    .layout.panel-open .order-panel .panel-empty {
      display: none;
    }

    .order-panel:not(.has-content) {
      pointer-events: none;
    }

    .layout.panel-open .order-panel {
      pointer-events: auto;
    }

    .panel-sheet-handle {
      display: block;
      width: 40px;
      height: 4px;
      background: var(--border);
      border-radius: 4px;
      margin: 0.5rem auto 0;
      flex-shrink: 0;
    }

    .panel-header {
      position: sticky;
      top: 0;
      z-index: 2;
      padding: 0.65rem 1rem;
      margin-top: 0;
      border-bottom: 1px solid var(--border);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .btn-back-to-tables {
      width: 48px;
      min-width: 48px;
      height: 48px;
      background: rgba(200, 121, 65, 0.2);
      border-color: var(--accent);
      color: var(--accent-hover);
    }

    .btn-back-icon {
      font-size: 1.75rem;
    }

    .panel-header h2 {
      font-size: 1.2rem;
    }

    .tab {
      min-height: 36px;
      padding: 0.3rem 0.55rem;
      font-size: 0.7rem;
    }

    .tabs {
      gap: 0.25rem;
      padding: 0.4rem 0.6rem;
    }

    .menu-grid {
      max-height: min(28vh, 200px);
      grid-template-columns: repeat(2, 1fr);
    }

    .panel-footer {
      padding-bottom: calc(1rem + var(--safe-bottom));
    }

    .panel-empty {
      display: none;
    }

    .modal-box {
      width: 100%;
      max-width: 100%;
      margin: 0 auto;
    }

    .modal-wide {
      min-width: 0;
      width: min(100%, 520px);
    }

    .settlement-summary {
      grid-template-columns: 1fr;
    }

    .inventory-modal {
      min-width: 0;
      width: min(100%, 560px);
    }

    .inv-row {
      grid-template-columns: minmax(0, 1fr) auto 36px;
      grid-template-areas:
        "info controls edit"
        "thr  thr      thr";
      row-gap: 0.2rem;
    }

    .inv-info {
      grid-area: info;
    }

    .inv-controls {
      grid-area: controls;
    }

    .inv-edit {
      grid-area: edit;
    }

    .inv-thr {
      grid-area: thr;
      text-align: left;
    }
  }

  @media (max-width: 480px) {
    :root {
      --header-height: 128px;
    }

    .brand h1 {
      font-size: 1.15rem;
    }

    .subtitle {
      display: none;
    }

    .header-actions .btn-label {
      display: none;
    }

    .tables-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.5rem;
    }

    .table-card .table-meta {
      font-size: 0.65rem;
    }

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

    .menu-grid {
      grid-template-columns: 1fr;
      max-height: min(32vh, 240px);
    }

    .modal-actions {
      flex-direction: column-reverse;
    }

    .modal-actions .btn {
      width: 100%;
    }

    .toast {
      left: 1rem;
      right: 1rem;
      transform: translateY(100px);
      text-align: center;
    }

    .toast.show {
      transform: translateY(0);
    }
  }

  @media (max-width: 480px) {
    .tab {
      min-height: 30px;
      padding: 0.2rem 0.45rem;
      font-size: 0.65rem;
    }

    .tabs {
      gap: 0.2rem;
      padding: 0.35rem 0.5rem;
    }
  }

  @media (max-width: 400px) {
    .tab {
      min-height: 28px;
      padding: 0.15rem 0.4rem;
      font-size: 0.6rem;
    }

    .tabs {
      gap: 0.15rem;
      padding: 0.3rem 0.4rem;
    }

    .table-tools .btn-sm {
      padding-left: 0.35rem;
      padding-right: 0.35rem;
      font-size: 0.75rem;
    }
  }

  @media (min-width: 901px) {
    .panel-backdrop {
      display: none !important;
    }
  }

  /* Auth */
  .user-pill {
    display: none;
    align-items: center;
    max-width: 8rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--cream-muted);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  @media (min-width: 520px) {
    .user-pill {
      display: inline-flex;
    }
  }

  .login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.25rem;
  }

  .login-card {
    width: min(100%, 400px);
    padding: 2rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .login-brand {
    text-align: center;
    margin-bottom: 1.75rem;
  }

  .login-brand h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-top: 0.5rem;
  }

  .login-brand .subtitle {
    color: var(--cream-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
  }

  .login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .login-form .field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .login-form .field span {
    font-size: 0.85rem;
    color: var(--cream-muted);
  }

  .login-form input {
    min-height: var(--touch-min);
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--cream);
    font: inherit;
  }

  .login-form input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
  }

  .login-error {
    color: var(--red);
    font-size: 0.9rem;
  }

  .btn-block {
    width: 100%;
    min-height: var(--touch-min);
  }

  /* User Management Modal Styles */
  .user-create-form {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .user-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) auto;
    gap: 0.65rem;
    align-items: center;
  }

  @media (max-width: 600px) {
    .user-form-row {
      grid-template-columns: 1fr;
    }
    .user-form-row .btn {
      width: 100%;
    }
  }

  .user-form-row input,
  .user-form-row select {
    min-height: 38px;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--cream);
    font: inherit;
    font-size: 0.85rem;
  }

  .user-form-row input:focus,
  .user-form-row select:focus {
    outline: 1px solid var(--accent);
  }

  .user-list {
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.1);
  }

  .user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .user-row:last-child {
    border-bottom: none;
  }

  @media (max-width: 600px) {
    .user-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
    }
    .user-actions {
      width: 100%;
      justify-content: flex-end;
    }
  }

  .user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .user-info strong {
    font-size: 0.95rem;
    color: var(--cream);
  }

  .user-meta {
    font-size: 0.75rem;
    color: var(--cream-muted);
  }

  .user-actions {
    display: flex;
    gap: 0.4rem;
  }

