:root {
    font-size: 14px;
    --bs-body-color: #162d28;
    --bs-body-bg: #f3f6f3;
    --bs-link-color: #215c48;
    --bs-link-hover-color: #173f32;
}
:focus-visible { outline: 3px solid #ae6e22; outline-offset: 3px; }
.btn-primary {
    --bs-btn-bg: #245d48;
    --bs-btn-border-color: #245d48;
    --bs-btn-hover-bg: #184433;
    --bs-btn-hover-border-color: #184433;
    --bs-btn-active-bg: #15342b;
    --bs-btn-active-border-color: #15342b;
    --bs-btn-focus-shadow-rgb: 72, 117, 99;
}
.shell { min-height: 100vh; display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); }
.sidebar { background: #15342b; color: #edf6ef; padding: 1.35rem 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.sidebar .brand { display: grid; place-items: center; background: #f6faf5; border-radius: .55rem; }
.sidebar .brand img { max-width: 100%; height: auto; }
.sidebar .nav-link { color: inherit; border-radius: .5rem; }
.sidebar .nav-link:hover, .sidebar .nav-link[aria-current] { background: #2d5042; }
.account { --bs-border-color: #426254; }
.account-toggle { color: inherit; border-color: #426254; background: #24473a; }
.account-toggle:hover, .account-toggle.show { color: #fff; background: #2d5042; border-color: #789487; }
.account-toggle::after { margin-left: auto; }
.avatar { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; flex: none; border-radius: 50%; background: #cce7b9; color: #173328; font-size: .75rem; font-weight: 750; }
.main { width: 100%; max-width: 78rem; padding: clamp(1rem, 3vw, 2.75rem); }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.15rem; }
h1 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); letter-spacing: -.035em; margin: 0; }
h2 { font-size: 1.05rem; }
.page-header p { color: #52675c; margin: .4rem 0 0; }
.panel, .login-card { background: #fff; border: 1px solid #dce6df; border-radius: .9rem; padding: clamp(1rem, 3vw, 1.6rem); }
.empty { border: 1px dashed #b9ccc0; border-radius: .65rem; padding: 1.5rem; color: #50645a; }
.empty p { margin: 0 0 .25rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; color: #52675c; margin-bottom: .7rem; overflow-wrap: anywhere; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: #eaf2ea; }
.login-card { width: min(100%, 26rem); }
.login-card h1 { font-size: 2.1rem; margin: 1rem 0; }
.stack { display: grid; gap: 1rem; }
.document-list { padding: 0; margin: 0; list-style: none; }
.document-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding: .8rem 0; border-top: 1px solid #dce6df; }
.document-list small { display: block; color: #52675c; }
.icon { display: inline-block; width: 1.15rem; height: 1.15rem; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.folder-icon { fill: #ffe9ac; stroke: #9d6720; }
.explorer { display: grid; grid-template-columns: minmax(10rem, 25%) minmax(0, 1fr); min-height: 24rem; border: 1px solid #d2ded6; border-radius: .65rem; background: #fff; }
.explorer-tree { min-width: 0; padding: .65rem .45rem; overflow: auto; background: #f8faf8; border-right: 1px solid #dbe5df; border-radius: .65rem 0 0 .65rem; }
.explorer-tree ul { margin: 0; padding-left: .8rem; list-style: none; }
.explorer-tree summary { display: flex; align-items: center; cursor: pointer; list-style: none; }
.explorer-tree summary::-webkit-details-marker { display: none; }
.explorer-tree summary > .chevron { width: .9rem; transform: rotate(-90deg); }
.explorer-tree details[open] > summary > .chevron { transform: none; }
.explorer-tree summary > a { flex: 1; }
.explorer-tree a { display: flex; align-items: center; gap: .35rem; padding: .32rem .28rem; border-radius: .3rem; color: #294538; text-decoration: none; white-space: nowrap; }
.explorer-tree a:hover, .explorer-tree [aria-current] { background: #e2efe5; }
.tree-leaf { margin-left: .9rem; }
.explorer-content { overflow: auto; }
.explorer-table { width: 100%; border-collapse: collapse; text-align: left; --bs-table-bg: transparent; }
.explorer-table th, .explorer-table td { padding: .35rem .7rem; border-bottom: 1px solid #e7eee8; }
.explorer-table th { background: #f8faf8; color: #4c6457; font-size: .85rem; font-weight: 650; }
.explorer-table td:nth-child(2) { color: #52675c; width: 6rem; white-space: nowrap; }
.explorer-table tbody tr:hover { background: #f2f7f3; }
.item-name { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; overflow-wrap: anywhere; }
a.item-name:hover { text-decoration: underline; }
.file-actions { width: 4.8rem; text-align: right; }
.icon-button { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .3rem; text-decoration: none; }
.icon-button:hover { background: #e2efe5; }
.explorer-empty { color: #52675c; margin: 1rem; }
.action-form { max-width: 36rem; }
.form-actions { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 650px) {
    .shell { display: block; }
    .sidebar { padding: .8rem 1rem; gap: .65rem; }
    .sidebar .brand { place-self: start; }
    .sidebar .brand img { width: 120px; }
    .sidebar .nav { flex-direction: row !important; }
    .account { align-self: flex-start; min-width: 9rem; }
    .explorer { grid-template-columns: 1fr; }
    .explorer-tree { border-right: 0; border-bottom: 1px solid #dbe5df; max-height: 12rem; border-radius: .65rem .65rem 0 0; }
    .explorer-table th, .explorer-table td { padding-inline: .45rem; }
}

.import-drop { border: 1px dashed #89a597; background: #f6faf7; }
.import-drop.is-dragging, .import-drop:focus-within { border-color: #245d48; background: #e8f4eb; outline: 2px solid #abc9b7; outline-offset: -2px; }
.import-drop-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .65rem; background: #e2efe5; color: #245d48; }
.import-drop-icon .icon { width: 1.45rem; height: 1.45rem; }
[data-import-files] .list-group-item { background: transparent; padding-inline: 0; overflow-wrap: anywhere; }