/* ============================================================
   YouTube MP3 Engine — Server Panel Stylesheet
   Modern Glassmorphism & High-Density Forensic Audit UI
   ============================================================ */

:root {
    --bg-base: #060a12;
    --bg-surface: #0b1120;
    --bg-card: rgba(17, 26, 46, 0.72);
    --bg-card-hover: rgba(24, 37, 66, 0.82);
    --bg-elevated: #162035;

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(99, 102, 241, 0.4);

    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.35);

    --purple: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.3);

    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.3);

    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.3);

    --amber: #f59e0b;
    --rose: #f43f5e;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

body {
    background: radial-gradient(circle at 50% 0%, #111a33 0%, var(--bg-base) 75%);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Dashboard Layout */
.dashboard-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ============================================================
   Top Navigation
   ============================================================ */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-badge {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.brand-icon {
    font-size: 20px;
}

.brand-info h1 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.brand-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
}

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

/* Live Sync Indicator */
.live-indicator-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 5px 12px;
    border-radius: 20px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
}

.live-dot.pulse {
    box-shadow: 0 0 10px var(--emerald);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.live-text {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--emerald);
}

/* Server Health Chip */
.server-health-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
}

.server-health-chip.online {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--emerald);
}
.server-health-chip.online .chip-dot {
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
}

.server-health-chip.offline {
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--rose);
}
.server-health-chip.offline .chip-dot {
    background: var(--rose);
}

/* ============================================================
   KPI Metrics Grid
   ============================================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.kpi-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-glow-indigo:hover { box-shadow: 0 12px 30px var(--primary-glow); }
.card-glow-purple:hover { box-shadow: 0 12px 30px var(--purple-glow); }
.card-glow-cyan:hover   { box-shadow: 0 12px 30px var(--cyan-glow); }
.card-glow-emerald:hover{ box-shadow: 0 12px 30px var(--emerald-glow); }

.kpi-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.bg-indigo-subtle  { background: rgba(99, 102, 241, 0.15); color: var(--primary); }
.bg-purple-subtle  { background: rgba(168, 85, 247, 0.15); color: var(--purple); }
.bg-cyan-subtle    { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.bg-emerald-subtle { background: rgba(168, 85, 247, 0.15); color: var(--emerald); }

.kpi-content {
    flex: 1;
    min-width: 0;
}

.kpi-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.kpi-value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1.1;
}

.kpi-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.kpi-header-with-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.kpi-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}
.kpi-pill.success { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.kpi-pill.cyan    { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.kpi-pill.indigo  { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); }

/* Micro Button inside KPI */
.btn-micro {
    background: rgba(244, 63, 94, 0.15);
    color: var(--rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-micro:hover {
    background: var(--rose);
    color: white;
}

/* ============================================================
   Common Panel Card
   ============================================================ */
.panel-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 22px;
}

.panel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.title-with-pill {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-card-header h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.count-badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.header-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================
   Active Processing Queue Section
   ============================================================ */
.active-queue-section {
    border-left: 3px solid var(--primary);
}

.active-queue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.empty-queue-note {
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.active-queue-item {
    background: rgba(22, 32, 58, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.queue-thumb {
    width: 60px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-surface);
    flex-shrink: 0;
}

.queue-details {
    flex: 1;
    min-width: 0;
}

.queue-title-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.queue-title {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.queue-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ============================================================
   Download Audit Log Section (How, Where, When, What)
   ============================================================ */
.audit-toolbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.toolbar-title-box h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.toolbar-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Search Box */
.search-input-box {
    flex: 1;
    min-width: 260px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    font-size: 13px;
    opacity: 0.6;
    pointer-events: none;
}

.search-input-box input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 8px 32px 8px 34px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.btn-clear-search {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
}
.btn-clear-search.hidden { display: none; }

/* Filter Dropdown */
.filter-dropdown-box select {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.filter-dropdown-box select:focus {
    border-color: var(--primary);
}

/* Toolbar Buttons */
.toolbar-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.btn-danger-ghost {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--rose);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger-ghost:hover {
    background: var(--rose);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    box-shadow: 0 4px 14px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   Audit Table Styles (What, Where, When, How)
   ============================================================ */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.audit-table th {
    background: rgba(10, 15, 30, 0.95);
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.audit-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.audit-table tbody tr {
    transition: background 0.15s ease;
    cursor: pointer;
}

.audit-table tbody tr:hover {
    background: var(--bg-card-hover);
}

/* Table Cells Breakdown */
/* WHAT Column */
.what-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 380px;
}

.table-thumb {
    width: 64px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-surface);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.what-meta {
    flex: 1;
    min-width: 0;
}

.what-title {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.what-sub-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 11px;
    color: var(--text-muted);
}

.badge-bitrate {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* WHERE Column */
.where-cell {
    font-size: 11px;
}

.ip-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 2px 7px;
    border-radius: 6px;
    color: var(--text-primary);
    display: inline-block;
}

.where-agent {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* WHEN Column */
.when-cell {
    font-size: 11px;
}

.when-time {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
}

.when-relative {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.when-duration {
    font-size: 10px;
    color: var(--cyan);
    font-family: var(--font-mono);
}

/* HOW Column */
.how-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
}

.status-badge-lg.downloaded {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge-lg.ready {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.status-badge-lg.converting {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-badge-lg.failed {
    background: rgba(244, 63, 94, 0.15);
    color: var(--rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.temp-status-tag {
    font-size: 10px;
    color: var(--text-muted);
}
.temp-status-tag.cleaned {
    color: var(--text-dim);
}

/* Table Loading / Empty State */
.table-loading-cell, .table-empty-cell {
    text-align: center;
    padding: 40px !important;
    color: var(--text-muted);
}

.table-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 8px;
    animation: spin 0.8s linear infinite;
}

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

/* Actions Column */
.btn-table-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-table-action:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

/* ============================================================
   Table Pagination Footer
   ============================================================ */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    font-size: 11px;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-page {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-page:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-page:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.page-indicator {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 11px;
}

/* ============================================================
   Modals (Details Breakdown & Auth)
   ============================================================ */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hover);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card.auth-card {
    max-width: 440px;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}
.btn-close-modal:hover { color: var(--text-primary); }

.modal-body {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Modal Content Details */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px;
}

.detail-block.full-width {
    grid-column: span 2;
}

.detail-block h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
}
.detail-row:last-child { margin-bottom: 0; }

.detail-label { color: var(--text-muted); }
.detail-val {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}
.detail-val.mono { font-family: var(--font-mono); }

/* Form in Auth Modal */
.auth-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

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

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-family: var(--font-mono);
    outline: none;
}
.form-group input:focus { border-color: var(--primary); }

.auth-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-feedback {
    font-size: 11px;
    font-weight: 600;
}
.auth-feedback.error { color: var(--rose); }
.auth-feedback.success { color: var(--emerald); }

/* ============================================================
   Responsive Adjustments
   ============================================================ */
@media (max-width: 768px) {
    .dashboard-layout { padding: 14px; }
    .top-nav { flex-direction: column; align-items: flex-start; gap: 12px; }
    .kpi-grid { grid-template-columns: 1fr; }
    .toolbar-controls { flex-direction: column; align-items: stretch; }
    .search-input-box { width: 100%; min-width: 0; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-block.full-width { grid-column: span 1; }
}
