:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --input-focus: rgba(37, 99, 235, 0.15);
    
    /* Status Colors */
    --color-pending: #d97706;
    --bg-pending: #fef3c7;
    --border-pending: #fde68a;
    
    --color-active: #4f46e5;
    --bg-active: #e0e7ff;
    --border-active: #c7d2fe;
    
    --color-success: #16a34a;
    --bg-success: #dcfce7;
    --border-success: #bbf7d0;
    
    --color-failed: #dc2626;
    --bg-failed: #fee2e2;
    --border-failed: #fecaca;
    
    /* Shadows & Radius */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    padding: 24px;
}

/* Container */
.admin-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.admin-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.admin-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Stats Overview */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1;
}

/* Style specific stat cards */
.stat-card.total .stat-icon { background: #eff6ff; color: #2563eb; }
.stat-card.pending .stat-icon { background: #fffbeb; color: #d97706; }
.stat-card.active .stat-icon { background: #e0e7ff; color: #4f46e5; }
.stat-card.success .stat-icon { background: #dcfce7; color: #16a34a; }
.stat-card.failed .stat-icon { background: #fee2e2; color: #dc2626; }

/* Charts Dashboard Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .charts-section {
        grid-template-columns: 1fr 2fr;
    }
}

.chart-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.chart-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}

.chart-container {
    position: relative;
    height: 240px;
    width: 100%;
}

/* Controls Card */
.controls-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .controls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .controls-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-wrapper input {
    padding-left: 42px !important;
}

input[type="text"], select, textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
    transition: all 0.2s ease;
    color: var(--text-main);
}

textarea {
    resize: vertical;
}

.admin-textarea {
    min-height: 120px;
    line-height: 1.6;
    padding: 12px 16px;
}

input[type="text"]:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--input-focus);
}

/* Requests List */
.requests-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.requests-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.requests-card .card-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.count-badge {
    background-color: #f1f5f9;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.table-responsive {
    overflow-x: auto;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.requests-table th, .requests-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.requests-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
}

.requests-table tbody tr {
    transition: background-color 0.15s ease;
}

.requests-table tbody tr:hover {
    background-color: #fafafa;
}

.requests-table td {
    color: var(--text-main);
    vertical-align: middle;
}

.loading-placeholder {
    text-align: center;
    padding: 40px !important;
    color: var(--text-muted);
    font-style: italic;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}

.status-badge.pending { background: var(--bg-pending); color: var(--color-pending); border-color: var(--border-pending); }
.status-badge.can_proceed { background: var(--bg-active); color: var(--color-active); border-color: var(--border-active); }
.status-badge.cannot_proceed { background: var(--bg-failed); color: var(--color-failed); border-color: var(--border-failed); }

.status-badge.result-pending { background: #f1f5f9; color: var(--text-muted); border-color: #e2e8f0; }
.status-badge.result-fixed { background: var(--bg-success); color: var(--color-success); border-color: var(--border-success); }
.status-badge.result-cannot_fix { background: var(--bg-failed); color: var(--color-failed); border-color: var(--border-failed); }

/* Manage action button */
.manage-btn {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.manage-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Mobile responsive list styles */
.mobile-requests-list {
    display: none;
    flex-direction: column;
}

/* Modal Dialog */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}

.modal-container {
    background: var(--card-bg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
}

/* Modal Info View */
.info-section {
    margin-bottom: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-group label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.info-group p {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

.info-group.full-width {
    grid-column: 1 / -1;
}

.text-block {
    background-color: #f8fafc;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-weight: 400 !important;
    white-space: pre-wrap;
}

/* Modal form controls */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.action-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
}

.action-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 8px;
}

.form-group-radio {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    font-weight: 500;
}

.radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.radio-label:hover input ~ .custom-radio {
    border-color: var(--primary-color);
}

.radio-label input:checked ~ .custom-radio {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-radio:after {
    content: "";
    position: absolute;
    display: none;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.radio-label input:checked ~ .custom-radio:after {
    display: block;
}

.conditional-field {
    animation: fadeIn 0.2s ease forwards;
    margin-top: 12px;
}

.conditional-field label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

/* Dynamic Materials */
.materials-section label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.materials-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.material-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.material-row input {
    padding: 8px 12px;
    font-size: 13px;
}

.remove-row-btn {
    background: none;
    border: none;
    color: var(--color-failed);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.remove-row-btn:hover {
    background-color: var(--bg-failed);
}

.add-material-btn {
    background: none;
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    transition: all 0.2s ease;
    font-family: 'Prompt', sans-serif;
}

.add-material-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.02);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background-color: #fafafa;
}

.cancel-btn, .save-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    transition: all 0.2s ease;
}

.cancel-btn {
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.cancel-btn:hover {
    background-color: #f1f5f9;
}

.save-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.save-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Mobile responsive for main layout and lists */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .back-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Hide table, show cards on mobile */
    .table-responsive {
        display: none;
    }
    
    .mobile-requests-list {
        display: flex;
        padding: 12px;
        gap: 12px;
    }
    
    .mobile-request-card {
        background: #fff;
        border: 1px solid var(--border-color);
        padding: 16px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .card-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
    }
    
    .card-row.title {
        font-weight: 600;
        font-size: 15px;
        color: var(--text-main);
    }
    
    .card-detail {
        font-size: 13px;
        color: var(--text-muted);
    }
    
    .card-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 4px;
    }
    
    .card-actions .manage-btn {
        width: 100%;
        text-align: center;
        padding: 8px;
    }
}

/* Image Gallery in Admin Modal */
.admin-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.admin-gallery-item {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.admin-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Staff dashboard: compact overview, clear work queue and accessible actions. */
.admin-container { gap: 20px; }
.admin-header { border-top: 4px solid #4f46e5; gap: 20px; }
.page-eyebrow { display: block; color: #4f46e5; font-size: 11px; font-weight: 600; letter-spacing: .08em; margin-bottom: 8px; }
.admin-header h1 { font-size: clamp(22px, 3vw, 28px); }
.admin-header .data-status { font-size: 12px; margin-top: 10px; color: #475569; }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #818cf8; outline-offset: 3px; }
.stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat-card { padding: 16px; gap: 12px; min-width: 0; }
.stat-icon { width: 40px; height: 40px; }
.stat-value { font-size: 28px; font-variant-numeric: tabular-nums; }
.dashboard-details { border: 1px solid var(--border-color); border-radius: 16px; background: white; overflow: hidden; }
.dashboard-details summary { cursor: pointer; padding: 16px 20px; font-size: 14px; font-weight: 500; color: #334155; }
.dashboard-details summary span { font-size: 12px; color: #64748b; font-weight: 400; margin-left: 12px; }
.dashboard-details .chart-card { border: 0; box-shadow: none; border-radius: 0; min-width: 0; }
.section-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-toolbar h2 { font-size: 17px; font-weight: 600; }
.section-toolbar p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.text-button { border: 0; background: transparent; color: #4338ca; font-size: 13px; min-height: 44px; padding: 8px; flex-shrink: 0; }
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.quick-filters button { border: 1px solid var(--border-color); background: #fff; color: #475569; border-radius: 999px; font-size: 13px; padding: 8px 16px; min-height: 40px; }
.quick-filters button[aria-pressed="true"] { background: #eef2ff; color: #4338ca; border-color: #a5b4fc; font-weight: 600; }
.control-group, .search-wrapper { min-width: 0; }
.control-group select, .control-group input { min-height: 44px; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: #64748b; }
.list-tools select { width: auto; padding: 8px 28px 8px 10px; font-size: 12px; }
.requests-table th, .requests-table td { padding: 14px 16px; }
.requests-table td:nth-child(3), .requests-table td:nth-child(4), .requests-table td:nth-child(5) { white-space: normal; min-width: 140px; overflow-wrap: anywhere; }
.requests-table td:last-child { white-space: nowrap; }
.manage-btn { min-height: 40px; background: #4f46e5; color: white; border-color: #4f46e5; }
.manage-btn.print-btn { background: white; color: #475569; border-color: #cbd5e1; }
.manage-btn.print-btn:hover { background: #f1f5f9; }
.pagination { padding: 16px 20px; border-top: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #64748b; }
.pagination > div { display: flex; gap: 8px; }
.pagination .back-btn { min-height: 42px; font-size: 12px; padding: 8px 14px; }
.error-placeholder { color: #b91c1c; }
.modal-container { max-height: 92dvh; }
.modal-body { overscroll-behavior: contain; }
.close-btn { min-width: 44px; min-height: 44px; flex-shrink: 0; }
.info-group p { overflow-wrap: anywhere; }
.radio-label { min-height: 32px; }
.radio-label input:focus-visible ~ .custom-radio { outline: 3px solid #818cf8; outline-offset: 3px; }
.material-row input { min-width: 0; }
.remove-row-btn { min-width: 40px; min-height: 40px; }
.modal-footer { position: sticky; bottom: -24px; margin: 20px -24px -24px; z-index: 1; }
.save-btn { gap: 8px; }
.loader { width: 20px; height: 20px; border: 2px solid #ffffff60; border-top-color: white; border-radius: 50%; animation: adminSpin .8s linear infinite; }
.toast-notification { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px); opacity: 0; background: #0f172a; color: white; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); max-width: min(540px, calc(100vw - 32px)); width: max-content; z-index: 1100; transition: opacity .2s, transform .2s; font-size: 14px; }
.toast-notification.show { opacity: 1; transform: translate(-50%, 0); }
.toast-icon { display: flex; flex-shrink: 0; }
.toast-icon.success { color: #86efac; }
.toast-icon.error { color: #fca5a5; }
@keyframes adminSpin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) and (min-width: 769px) {
    .stat-card { flex-direction: column; align-items: flex-start; }
    .admin-header { flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .admin-container { gap: 16px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-card { padding: 14px 12px; gap: 10px; }
    .stat-card.total { grid-column: 1 / -1; }
    .stat-content h3 { font-size: 12px; }
    .stat-icon { width: 34px; height: 34px; }
    .stat-value { font-size: 24px; }
    .header-actions { flex-wrap: nowrap; }
    .header-actions .back-btn { padding: 10px; font-size: 12px; }
    .dashboard-details summary span { display: block; margin: 4px 0 0 18px; }
    .controls-card { padding: 16px; }
    .controls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .control-group.search { grid-column: 1 / -1; }
    .control-group:last-child { grid-column: 1 / -1; }
    .control-group label { font-size: 12px; }
    .quick-filters { gap: 6px; }
    .quick-filters button { font-size: 12px; padding: 7px 12px; }
    .requests-card .card-header { padding: 16px; flex-wrap: wrap; gap: 12px; }
    .list-tools { width: 100%; }
    .list-tools .count-badge { margin-right: auto; }
    .card-row { gap: 10px; flex-wrap: wrap; }
    .card-row.title { align-items: flex-start; }
    .card-row.title > span:first-child { flex: 1; min-width: 120px; overflow-wrap: anywhere; }
    .card-row.title > span:last-child { font-size: 11px; font-weight: 400; color: #64748b; }
    .card-detail { overflow-wrap: anywhere; line-height: 1.8; }
    .card-actions { gap: 8px; }
    .card-actions .manage-btn { flex: 1; width: auto; min-height: 44px; }
    .pagination { flex-wrap: wrap; padding: 16px; }
    .pagination > div { margin-left: auto; }
    .pagination .back-btn { width: auto; }
    .modal-backdrop { padding: 8px; }
    .modal-header { padding: 12px 16px; gap: 8px; }
    .modal-header h2 { font-size: 16px; }
    .modal-body { padding: 16px; }
    .action-card { padding: 16px; }
    .modal-footer { bottom: -16px; margin: 16px -16px -16px; padding: 12px 16px; }
    .modal-footer button { flex: 1; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
