:root {
    color-scheme: light;
    font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
    line-height: 1.5;
    color: #102033;
    background: #eef2f7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

button,
input,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(35, 31, 32, 0.35), transparent 42%),
        linear-gradient(160deg, #0f172a 0%, #231f20 42%, #eef2f7 42%);
}

.login-card {
    width: min(100%, 420px);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.login-header {
    margin-bottom: 24px;
    text-align: center;
}

.login-header h1 {
    margin: 16px 0 4px;
    font-size: 1.75rem;
    color: #231f20;
}

.brand-logo {
    display: block;
    height: auto;
    object-fit: contain;
}

.brand-logo-login {
    width: min(100%, 220px);
    margin: 0 auto 4px;
}

.brand-logo-sidebar {
    width: 88px;
    flex-shrink: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #231f20;
    color: #fff;
    font-weight: 700;
}

.stack-form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

input,
select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

input:focus,
select:focus {
    outline: 2px solid rgba(37, 99, 235, 0.25);
    border-color: #2563eb;
}

.primary-button,
.ghost-button {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
}

.primary-button {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}

.ghost-button {
    width: 100%;
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(203, 213, 225, 0.35);
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 0 0 16px;
}

.alert.error {
    background: #fef2f2;
    color: #b91c1c;
}

.alert.success {
    background: #f0fdf4;
    color: #15803d;
}

.field-error {
    margin: -8px 0 0;
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 500;
}

.app-shell {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    overflow: hidden;
}

.sidebar {
    background: #0f172a;
    color: #e2e8f0;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.muted,
.sidebar p {
    color: #64748b;
}

.muted.small {
    font-size: 0.85rem;
    margin: -8px 0 0;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    color: inherit;
}

.brand:hover {
    color: inherit;
}

.brand-text strong {
    display: block;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.brand-text p {
    margin: 2px 0 0;
    font-size: 0.78rem;
}

.brand strong {
    display: block;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #cbd5e1;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(37, 99, 235, 0.18);
    color: #fff;
}

.nav-disabled-item,
.nav-disabled-item:hover {
    background: transparent;
    color: #64748b;
    cursor: default;
}

.nav-group {
    display: grid;
    gap: 4px;
    margin-top: 4px;
}

.nav-group-label {
    margin: 8px 14px 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.nav-sublink {
    padding-left: 22px;
    font-size: 0.92rem;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 12px;
}

.user-chip {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.user-chip.active {
    background: rgba(37, 99, 235, 0.18);
}

.user-chip small,
.user-role {
    display: block;
    color: #94a3b8;
}

.user-name {
    display: block;
    font-weight: 600;
}

.user-chip-link {
    display: inline-block;
    margin-top: 10px;
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-chip-link:hover,
.user-chip-link.active {
    color: #fff;
}

.content {
    padding: 32px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 100vh;
}

.page-header {
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
}

.panel {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.panel h2 {
    margin-top: 0;
}

.info-list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
}

code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 16px;
    margin-bottom: 24px;
    min-width: 0;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.stat-label {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.9rem;
}

.stat-value {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-actions {
    margin-bottom: 0;
}

.action-card {
    display: block;
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.action-card h2 {
    margin-top: 0;
}

.action-link {
    display: inline-block;
    margin-top: 12px;
    color: #2563eb;
    font-weight: 700;
}

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

.panel-header h2 {
    margin: 0;
}

.text-link {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-panel {
    margin-bottom: 20px;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    align-items: end;
}

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

.upload-stats {
    margin-bottom: 24px;
}

.upload-guide {
    margin-bottom: 24px;
}

.upload-batch {
    margin-bottom: 0;
}

.upload-steps {
    margin: 12px 0 0;
    padding-left: 1.25rem;
    color: #475569;
}

.upload-steps li {
    margin-bottom: 8px;
}

.upload-file-list {
    margin: 6px 0 0;
    padding-left: 1.1rem;
    color: #64748b;
    font-size: 0.85rem;
}

.upload-file-list li {
    margin-bottom: 4px;
}

.upload-file-list-inline {
    list-style: disc;
}

.typed-upload-section {
    display: block;
    margin-top: 28px;
    margin-bottom: 24px;
    clear: both;
}

.typed-upload-heading {
    margin: 0 0 16px;
}

.typed-upload-heading h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.typed-upload-heading .muted {
    margin: 0;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
    margin-bottom: 0;
}

.upload-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.upload-panel {
    position: relative;
    z-index: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-panel .upload-file-list {
    margin: 0;
    max-height: 160px;
    overflow-y: auto;
}

.upload-panel .stack-form {
    margin-top: auto;
}

.file-dropzone {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 18px 16px;
    border: 1.5px dashed #94a3b8;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.file-dropzone:hover,
.file-dropzone:focus-within {
    border-color: #2563eb;
    background: #f1f5f9;
}

.file-dropzone.is-dragover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.35);
}

.file-dropzone.has-files {
    border-style: solid;
    border-color: #64748b;
    background: #fff;
}

.file-dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-dropzone-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.file-dropzone-hint {
    margin: 0;
}

.file-dropzone-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 4px;
    max-height: 140px;
    overflow: auto;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
}

.file-dropzone-list li {
    word-break: break-all;
}

.upload-panel-disabled {
    opacity: 0.72;
}

.upload-panel-disabled .primary-button {
    display: none;
}

.dashboard-panels {
    display: grid;
    gap: 24px;
    min-width: 0;
    width: 100%;
}

.dashboard-channel-section,
.dashboard-recent-panel {
    min-width: 0;
    max-width: 100%;
}

.dashboard-channel-section h2 {
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.dashboard-actions {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.dashboard-actions .action-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.dashboard-recent-panel .table-wrap {
    max-width: 100%;
}

.channel-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 12px;
}

.channel-guide-grid h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.channel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.channel-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-weight: 600;
    font-size: 0.92rem;
}

.channel-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.channel-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.upload-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.upload-type-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
}

.upload-type-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.upload-type-tab.active {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
}

.stat-card-link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.stat-card-link:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.upload-panel h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.api-section {
    margin-top: 8px;
}

.api-section summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    padding: 4px 0;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 16px;
    background: #fff;
    color: #334155;
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
}

.material-stats {
    margin-bottom: 20px;
}

.material-tabs {
    margin: 0 0 1rem;
}

.material-nb-table {
    min-width: 2200px;
}

.material-sheet-tabs {
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 0;
    overflow-x: auto;
    background: #f1f5f9;
    padding: 0.25rem 0.35rem 0;
}

.material-closing-panel .material-sheet-tabs {
    margin-top: 0.25rem;
    border-bottom: 1px solid #cbd5e1;
}

.excel-workbook-panel {
    padding-bottom: 0;
    overflow: hidden;
}

.excel-sheet-viewport {
    border: 1px solid #cbd5e1;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #fff;
    margin-bottom: 0;
}

.excel-grid-wrap {
    max-height: 62vh;
    overflow: auto;
}

.excel-grid-table tbody tr.row-total td {
    background: #bfdbfe;
    font-weight: 700;
    border-top: 2px solid #60a5fa;
}

.excel-grid-table tbody tr.row-subtotal td {
    background: #f8fafc;
    color: #475569;
}

.excel-sheet-tab-bar {
    border: none;
    border-radius: 0;
}

.excel-sheet-tab {
    font-size: 0.78rem;
    padding: 0.45rem 0.85rem;
    border-radius: 6px 6px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    background: #e2e8f0;
    color: #334155;
    white-space: nowrap;
}

.excel-sheet-tab.active {
    background: #fff;
    border-color: #cbd5e1;
    font-weight: 700;
    color: #0f172a;
}

.material-adjustment-notes {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #fafafa;
}

.material-note-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.material-note-table th {
    width: 160px;
    text-align: left;
    padding: 0.4rem 0.65rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

.material-note-table td {
    padding: 0.4rem 0.65rem;
    border: 1px solid #e2e8f0;
}

.material-note-table td.note-desc {
    color: #64748b;
    font-size: 0.8rem;
}

.material-settlement-mini {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e2e8f0;
    overflow-x: auto;
}

.material-settlement-mini-table {
    min-width: 900px;
    font-size: 0.82rem;
}

.material-accounting-sections {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.material-accounting-title {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    color: #334155;
}

.material-accounting-table {
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 640px;
}

.material-accounting-table td {
    border: 1px solid #dbeafe;
    padding: 0.35rem 0.55rem;
    min-width: 100px;
}

.material-accounting-table td.num {
    text-align: right;
    background: #eff6ff;
}

.material-accounting-table td.label {
    background: #f8fafc;
    font-weight: 600;
}

.material-sheet-tabs .upload-type-tab {
    font-size: 0.82rem;
    padding: 0.55rem 0.75rem;
}

.material-footer-title {
    margin: 1.25rem 0 0.65rem;
    font-size: 0.95rem;
}

.material-footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
}

.material-footer-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.material-footer-band-table {
    border-collapse: collapse;
    font-size: 0.82rem;
    white-space: nowrap;
}

.material-footer-band-table th {
    background: #d8b4fe;
    color: #1e1b4b;
    font-weight: 700;
    border: 1px solid #c084fc;
    padding: 0.45rem 0.65rem;
    text-align: center;
}

.material-footer-band-table td {
    background: #bfdbfe;
    color: #0f172a;
    border: 1px solid #93c5fd;
    padding: 0.45rem 0.65rem;
    text-align: right;
}

.material-footer-band-table td.num,
.material-footer-band-table th.num {
    text-align: right;
}

.material-footer-wrap {
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
}

.material-footer-table th {
    width: 140px;
    text-align: left;
    background: #eff6ff;
}

.material-footer-table tr.footer-highlight {
    background: #e0f2fe;
    font-weight: 700;
}

.material-month {
    font-size: 1.1rem;
}

.material-summary-panel,
.material-detail-panel {
    margin-bottom: 24px;
}

.material-section-note {
    margin: -4px 0 16px;
}

.material-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: auto;
    background: #fff;
}

.summary-wrap {
    max-height: 360px;
}

.detail-wrap {
    max-height: 620px;
}

.compact-table {
    font-size: 0.86rem;
}

.compact-table th,
.compact-table td {
    padding: 9px 10px;
}

.sticky-head thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.material-summary-table {
    width: 100%;
    min-width: 720px;
    table-layout: fixed;
}

.material-summary-table col.col-product {
    width: 46%;
}

.material-summary-table col.col-qty,
.material-summary-table col.col-price {
    width: 12%;
}

.material-summary-table col.col-amount {
    width: 16%;
}

.material-summary-table col.col-flag {
    width: 96px;
}

.material-detail-table {
    min-width: 1280px;
}

.data-table th.cell-product,
.data-table td.cell-product {
    width: auto;
    min-width: 240px;
    max-width: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
    padding-right: 16px;
}

.material-summary-table th.num,
.material-summary-table td.num {
    width: 110px;
    white-space: nowrap;
    vertical-align: top;
    padding-left: 12px;
}

.material-summary-table th.cell-flag,
.material-summary-table td.cell-flag {
    width: 96px;
    white-space: nowrap;
    vertical-align: top;
}

.cell-id,
.cell-date {
    white-space: nowrap;
    vertical-align: top;
}

.material-detail-table {
    min-width: 1880px;
}

.own-order-table {
    min-width: 2100px;
}

.material-detail-table th,
.material-detail-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.cell-category {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
}

.data-table td.cell-price-qty {
    white-space: normal;
    min-width: 220px;
    line-height: 1.45;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.data-table th {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    background: #f8fafc;
}

.data-table td.num,
.data-table th.num {
    text-align: right;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-excel {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-api {
    background: #dcfce7;
    color: #15803d;
}

.badge-manual {
    background: #fef3c7;
    color: #b45309;
}

.reconciliation-controls {
    margin-bottom: 24px;
}

.reconciliation-period-form {
    margin-top: 12px;
}

.reconciliation-table {
    min-width: 960px;
}

.empty-state {
    margin: 0;
    padding: 32px 16px;
    text-align: center;
    color: #64748b;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.page-link {
    padding: 8px 14px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.page-link.disabled {
    pointer-events: none;
    opacity: 0.4;
}

.page-status {
    color: #64748b;
    font-size: 0.9rem;
}

.stat-card.stat-ok .stat-value {
    color: #15803d;
}

.stat-card.stat-warn .stat-value {
    color: #b45309;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #334155;
}

.status-badge.status-ok {
    background: #dcfce7;
    color: #166534;
}

.status-badge.status-warn,
.status-badge.status-order_missing,
.status-badge.status-settlement_missing,
.status-badge.status-deposit_diff,
.status-badge.status-manual_required,
.status-badge.status-fee_diff,
.status-badge.status-tax_diff {
    background: #ffedd5;
    color: #9a3412;
}

.reconciliation-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.reconciliation-status-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
}

.reconciliation-status-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.reconciliation-status-tab.active {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
}

.reconciliation-status-tab.tab-warn.active {
    background: #b45309;
    border-color: #b45309;
}

.alert.info {
    background: #eff6ff;
    color: #1d4ed8;
}

.empty-state {
    padding: 24px 0;
    text-align: center;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
}

.block-label {
    display: block;
    margin-top: 12px;
}

.code-area {
    display: block;
    width: 100%;
    margin-top: 8px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    resize: vertical;
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
        overflow: visible;
        max-width: 100%;
    }

    .sidebar {
        position: relative;
        height: auto;
        max-height: none;
    }

    .content {
        padding: 20px;
        max-height: none;
    }
}
