  :root {
    --bg: #0a0f1a;
    --bg-card: #1a2744;
    --bg-hover: #243352;
    --border: #3d5a80;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
    --purple: #8b5cf6;
    --radius: 12px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
  }
  /* ヘッダー */
  .header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
  }
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
  }
  .logo .icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }
  .qr-wrap {
    position: relative;
    cursor: pointer;
  }
  .qr-wrap img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid var(--border);
    transition: transform 0.2s;
  }
  .qr-wrap:hover img {
    transform: scale(1.1);
    border-color: var(--accent);
  }
  .qr-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .qr-modal.active {
    display: flex;
  }
  .qr-modal img {
    width: 280px;
    height: 280px;
    border-radius: 16px;
    border: 3px solid #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .qr-modal .qr-url {
    position: absolute;
    bottom: 40px;
    color: #fff;
    font-size: 14px;
    background: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 8px;
  }
  .gps-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
  }
  .gps-btn:hover { border-color: var(--green); color: var(--green); }
  .gps-btn.active { border-color: var(--green); color: var(--green); background: rgba(16,185,129,0.1); }
  .gps-btn .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
  }
  .gps-btn.active .dot {
    background: var(--green);
    animation: pulse 1.5s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }
  .gps-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
  }
  .stats-bar {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
  }
  .stats-bar .stat strong {
    color: var(--text);
    font-size: 18px;
    display: block;
  }
  /* フィルター */
  .filters {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }
  .profile-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px 8px;
  }
  .profile-bar-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }
  .profile-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .profile-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    min-width: 140px;
  }
  .profile-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
  }
  .profile-card.active {
    background: var(--bg-card-hover, #1e293b);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  .profile-card.deleted {
    opacity: 0.4;
    cursor: not-allowed;
  }
  .profile-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
  }
  .profile-card-count {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
  }
  .profile-card-badges {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
  }
  .profile-badge {
    font-size: 10px;
    background: rgba(255,255,255,0.08);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--text-muted);
  }
  .profile-card-wrap { position: relative; }
  .profile-card-menu {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    line-height: 1;
    padding: 0;
    display: none;
  }
  .profile-card:hover .profile-card-menu { display: block; }
  .profile-card-menu:hover { background: rgba(255,255,255,0.1); color: var(--text); }
  /* モバイル: ホバーがないため常時表示 */
  @media (max-width: 768px) {
    .profile-card-menu { display: block; }
    .profile-card { padding-right: 34px; }
  }
  .profile-card-dropdown {
    position: absolute;
    top: 32px;
    right: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    z-index: 50;
    min-width: 120px;
    display: none;
    overflow: hidden;
  }
  .profile-card-dropdown.open { display: block; }
  .profile-card-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 14px;
    border: none;
    background: none;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
  }
  .profile-card-dropdown button:hover { background: rgba(255,255,255,0.08); }
  .profile-card-dropdown button.danger { color: var(--danger); }
  .profile-card-add {
    background: var(--bg-card);
    border: 1.5px dashed var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
  }
  .profile-card-add:hover { border-color: var(--accent); color: var(--accent); }
  /* プロファイル編集モーダル */
  .pm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px; }
  .pm-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
  }
  .pm-form input, .pm-form select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
  }
  .pm-form input[type="color"] { height: 38px; padding: 2px; cursor: pointer; }
  .pm-form input[type="checkbox"] { width: auto; }
  .pm-footer {
    display: flex;
    gap: 8px;
    padding: 0 24px 24px;
    flex-wrap: wrap;
  }
  .pm-suggest {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
  }
  .filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .filter-group label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  select, input[type="number"] {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
  }
  select:hover, input:hover { border-color: var(--accent); }
  select:focus, input:focus { outline: none; border-color: var(--accent); }
  .btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
  }
  .btn:hover { background: var(--accent-hover); }
  .btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
  }
  .btn-secondary:hover { background: var(--bg-hover); }
  /* メイン */
  .main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
  }
  .results-count {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
  }
  .results-count strong { color: var(--text); }
  /* カードグリッド */
  .car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
  }
  .car-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  .car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59,130,246,0.2);
    border-color: var(--accent);
  }
  .car-card.recommended {
    border-color: var(--green);
    box-shadow: 0 0 20px rgba(16,185,129,0.1);
  }
  .car-card.recommended::before {
    content: "おすすめ";
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 10;
  }
  .car-card.sold { opacity: 0.5; }
  .car-card.sold::before {
    content: "売却済";
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 10;
  }
  /* 画像 */
  .car-image {
    width: 100%;
    height: 220px;
    background: #0d1424;
    overflow: hidden;
    position: relative;
  }
  .car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }
  .car-card:hover .car-image img { transform: scale(1.05); }
  .car-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 14px;
  }
  .image-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
  }
  .car-id-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.65);
    color: #ffd54f;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    font-family: 'Menlo', 'Consolas', monospace;
  }
  .car-history {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
  }
  .car-history-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 2px;
  }
  .car-history-item {
    font-family: 'Menlo', 'Consolas', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .car-history-item.initial {
    color: var(--green);
  }
  .history-mark {
    color: var(--green);
    margin-right: 4px;
    font-size: 8px;
    vertical-align: middle;
  }
  /* カード本体 */
  .car-body { padding: 16px; }
  .car-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
  }
  .model-code {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
  }
  .car-grade {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
  }
  .car-distance {
    font-size: 12px;
    color: var(--green);
    margin-top: 8px;
  }
  .car-distance .approx {
    color: var(--orange);
    font-size: 11px;
  }
  .car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }
  .spec-chip {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--text-muted);
  }
  .spec-chip strong { color: var(--text); }
  .price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
  }
  .price-total {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
  }
  .price-total .unit { font-size: 14px; font-weight: 600; }
  .price-vehicle {
    font-size: 13px;
    color: var(--text-muted);
  }
  .price-vehicle .val { color: var(--text); font-weight: 600; }
  .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
  }
  .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 12px;
  }
  .badge-green { background: rgba(16,185,129,0.15); color: var(--green); }
  .badge-orange { background: rgba(245,158,11,0.15); color: var(--orange); }
  .badge-blue { background: rgba(59,130,246,0.15); color: var(--accent); }
  .badge-red { background: rgba(239,68,68,0.15); color: var(--red); }
  .badge-purple { background: rgba(139,92,246,0.15); color: var(--purple); }
  .badge-gray { background: var(--bg-hover); color: var(--text-muted); }
  .dealer {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .dealer .region {
    background: var(--bg-hover);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--text);
  }
  /* モーダル */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 200;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
  }
  .modal-overlay.active { display: flex; }
  .modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    margin: 20px auto;
    overflow: hidden;
  }
  .modal-close {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
  }
  .modal-close button {
    background: var(--bg-hover);
    border: none;
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-close button:hover { background: var(--red); }
  .modal-images {
    display: flex;
    overflow-x: auto;
    background: #0d1424;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .modal-images::-webkit-scrollbar { height: 6px; }
  .modal-images::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  .modal-images img {
    height: 300px;
    width: auto;
    flex-shrink: 0;
    object-fit: cover;
  }
  .modal-body { padding: 24px; }
  .modal-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
  }
  .modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
  }
  .modal-section {
    margin-bottom: 20px;
  }
  .modal-section h3 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }
  .modal-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  .modal-spec {
    background: var(--bg);
    border-radius: 8px;
    padding: 10px 12px;
  }
  .modal-spec .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
  }
  .modal-spec .value {
    font-size: 15px;
    font-weight: 600;
    margin-top: 2px;
  }
  .modal-price {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px;
    background: var(--bg);
    border-radius: 10px;
  }
  .modal-price .box .label {
    font-size: 12px;
    color: var(--text-muted);
  }
  .modal-price .box .value {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
  }
  .modal-price .box.vehicle .value { color: var(--text); font-size: 22px; }
  .modal-price .box.expenses .value { color: var(--text-muted); font-size: 18px; }
  .equipment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .equipment-list .eq {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
  }
  .dealer-info {
    background: var(--bg);
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
  }
  .dealer-info p { margin: 4px 0; }
  .dealer-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
  }
  .dealer-info a:hover { text-decoration: underline; }
  .pr-box {
    background: rgba(245,158,11,0.08);
    border-left: 3px solid var(--orange);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: var(--text);
  }
  /* ローディング */
  .loading {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
  }
  .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  /* AIチャットパネル */
  .ai-toggle {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border: none; color: #fff; font-size: 24px; cursor: pointer;
    box-shadow: 0 4px 20px rgba(59,130,246,0.4); z-index: 150;
    transition: transform 0.2s;
  }
  .ai-toggle:hover { transform: scale(1.1); }
  .ai-panel {
    display: none; position: fixed; bottom: 90px; right: 24px;
    width: 400px; max-width: calc(100vw - 48px);
    height: 520px; max-height: calc(100vh - 120px);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; flex-direction: column; z-index: 150;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); overflow: hidden;
  }
  .ai-panel.active { display: flex; }
  .ai-header {
    padding: 14px 18px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
  }
  .ai-header .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
  .ai-tabs { display: flex; border-bottom: 1px solid var(--border); }
  .ai-tab {
    flex: 1; padding: 8px; text-align: center; font-size: 12px;
    color: var(--text-muted); cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.2s;
  }
  .ai-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
  .ai-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  }
  .ai-messages::-webkit-scrollbar { width: 4px; }
  .ai-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
  .ai-msg {
    max-width: 85%; padding: 10px 14px; border-radius: 12px;
    font-size: 14px; line-height: 1.6; white-space: pre-wrap;
  }
  .ai-msg.user { align-self: flex-end; background: var(--accent); color: #fff; }
  .ai-msg.bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); }
  .ai-typing {
    align-self: flex-start; background: var(--bg); border: 1px solid var(--border);
    padding: 12px 16px; border-radius: 12px; color: var(--text-muted); font-size: 13px;
  }
  .ai-typing .dots { animation: blink 1.4s infinite; }
  @keyframes blink { 0%,100%{opacity:.3} 50%{opacity:1} }
  @keyframes verifySpin { to { transform: rotate(360deg); } }
  @keyframes verifyShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
  .ai-input-area { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
  .ai-input {
    flex: 1; background: var(--bg); border: 1px solid var(--border);
    color: var(--text); padding: 10px 14px; border-radius: 10px;
    font-size: 14px; resize: none; height: 42px;
  }
  .ai-input:focus { outline: none; border-color: var(--accent); }
  .ai-send {
    background: var(--accent); border: none; color: #fff;
    width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
    font-size: 16px; display: flex; align-items: center; justify-content: center;
  }
  .ai-send:hover { background: var(--accent-hover); }
  .ai-send:disabled { opacity: 0.5; cursor: not-allowed; }
  .ai-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--border); }
  .ai-quick button {
    background: var(--bg); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 11px; padding: 4px 10px;
    border-radius: 12px; cursor: pointer;
  }
  .ai-quick button:hover { border-color: var(--accent); color: var(--accent); }
  .recommend-banner {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 20px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 16px; cursor: pointer;
  }
  .recommend-banner:hover { border-color: var(--accent); }
  .recommend-banner .icon { font-size: 28px; }
  .recommend-banner .text { flex: 1; font-size: 14px; color: var(--text-muted); }
  .recommend-banner .text strong { color: var(--text); }
  .recommend-banner .btn {
    background: var(--accent); color: #fff; border: none;
    padding: 8px 16px; border-radius: 8px; cursor: pointer;
    font-size: 13px; font-weight: 600;
  }
  /* レスポンシブ */
  @media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .stats-bar { flex-wrap: wrap; gap: 12px; }
    .car-grid { grid-template-columns: 1fr; }
    .filters { flex-direction: column; align-items: stretch; gap: 8px; }
    .filter-group { width: 100%; flex-wrap: nowrap; }
    .filter-group label { flex-shrink: 0; white-space: nowrap; }
    .filter-group select { flex: 1; min-width: 0; width: auto; }
    .ai-panel { width: calc(100vw - 32px); right: 16px; bottom: 80px; }
    .ai-toggle { right: 16px; bottom: 16px; }
    .qr-wrap img { width: 32px; height: 32px; }
    .logo { font-size: 18px; gap: 8px; }
    .logo .icon { width: 30px; height: 30px; font-size: 16px; }
  }
