:root { --bs-primary: #0e7c74; --bs-primary-rgb: 14, 124, 116; --bs-body-bg: #f3f6f6; --bs-body-color: #1c2430; --bs-link-color: #0e7c74; --bs-link-hover-color: #0a534d; }
body { background: var(--bs-body-bg); }
h1 { letter-spacing: -.02em; }
.muted { color: var(--bs-secondary-color); }
.app { min-height: 100vh; }
aside { width: 260px; position: sticky; top: 0; height: 100vh; flex: 0 0 260px; }
.menu-scroll { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.menu-foot { margin-top: auto; }
.brand small { letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.mark { width: 38px; height: 38px; place-items: center; }
aside .nav-link { color: #3c4656; border-radius: .65rem; }
aside .nav-link.active, aside .nav-link:hover { background: #e7f4f2; color: #0b5e58; }
button.nav-link { width: 100%; }
.workspace { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.workspace > header, .workspace > main { width: min(1120px, 100%); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.page-actions { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; min-width: 11rem; }
.page-actions .btn { width: 100%; justify-content: center; }
.card { padding: 1.15rem 1.25rem; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: #8ecfc9; }
.grid, .tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: .85rem; }
.tools { margin-bottom: 1rem; }
.tool { display: flex; flex-direction: column; gap: .35rem; background: #fff; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); padding: 1rem; text-decoration: none; color: inherit; min-height: 118px; }
.tool:hover { border-color: #8ecfc9; color: inherit; }
.tool span, .glyph + span { color: var(--bs-secondary-color); font-size: .875rem; }
.glyph, .kind { display: inline-grid; place-items: center; border-radius: .55rem; background: #e7f4f2; color: #0b5e58; font-size: .72rem; font-weight: 700; }
.glyph { width: 34px; height: 34px; }
.kind { width: 28px; height: 28px; margin-right: .4rem; vertical-align: middle; }
.kind.file { background: #f3eee6; color: #6d5b45; }
.stats, .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin: .75rem 0 1rem; }
.stat, .facts div { background: #fff; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); padding: .8rem 1rem; }
.stat small, .facts small { color: var(--bs-secondary-color); display: block; font-size: .75rem; }
.stat strong, .facts b { font-size: 1.25rem; }
label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .75rem; }
main input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), main select, main textarea,
.login-card input:not([type=checkbox]):not([type=hidden]) { display: block; width: 100%; margin-top: .35rem; padding: .5rem .75rem; border: var(--bs-border-width) solid var(--bs-border-color); border-radius: var(--bs-border-radius); background: #fff; }
main textarea { min-height: 6rem; }
main input:focus, main select:focus, main textarea:focus, .login-card input:focus { border-color: #8ecfc9; outline: 0; box-shadow: 0 0 0 .2rem rgba(14, 124, 116, .16); }
input[type=checkbox] { width: auto; margin: 0 .35rem 0 0; }
.btn { --bs-btn-color: #fff; --bs-btn-bg: #0e7c74; --bs-btn-border-color: #0e7c74; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #0b655e; --bs-btn-hover-border-color: #0b655e; --bs-btn-active-color: #fff; --bs-btn-active-bg: #095650; --bs-btn-active-border-color: #095650; --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #0e7c74; --bs-btn-disabled-border-color: #0e7c74; }
.btn.secondary { --bs-btn-color: #1c2430; --bs-btn-bg: #fff; --bs-btn-border-color: #ced4da; --bs-btn-hover-color: #1c2430; --bs-btn-hover-bg: #f8f9fa; --bs-btn-hover-border-color: #ced4da; --bs-btn-active-color: #1c2430; --bs-btn-active-bg: #f8f9fa; --bs-btn-active-border-color: #ced4da; }
.btn.small { --bs-btn-padding-y: .25rem; --bs-btn-padding-x: .6rem; --bs-btn-font-size: .8125rem; }
.nav-tabs .nav-link { color: var(--bs-secondary-color); }
.nav-tabs .nav-link.active { color: #0e7c74; font-weight: 650; }
.flash { border-radius: var(--bs-border-radius); padding: .75rem 1rem; margin-bottom: 1rem; }
.flash.ok { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.flash.error { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }
main table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--bs-border-radius-lg); overflow: hidden; }
main th, main td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--bs-border-color); vertical-align: middle; }
main th { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--bs-secondary-color); background: #f8f9fa; }
.sheet { background: #fff; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); overflow: hidden; }
.sheet + .card { margin-top: 1rem; }
.pathbar, .sheet .toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .75rem 1rem; border-bottom: 1px solid var(--bs-border-color); margin: 0; background: #f8f9fa; }
.pathbar input { width: 11rem; margin: 0; }
.files td input[type=checkbox] { width: 1rem; height: 1rem; margin: 0; }
.crumb { color: var(--bs-secondary-color); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0 0 1rem; }
.nav-tabs + .crumbs { margin-top: -1rem; }
.crumbs span { color: var(--bs-secondary-color); }
.files tr:last-child td { border-bottom: 0; }
.manager { display: grid; grid-template-columns: 220px minmax(0, 1fr); background: #fff; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); overflow: visible; min-height: 28rem; }
.tree { border-right: 1px solid var(--bs-border-color); background: #fbfcfc; padding: .4rem 0; overflow: auto; }
.tree a { display: block; padding: .38rem .85rem; color: #1c2430; text-decoration: none; white-space: nowrap; }
.tree a.current, .tree a:hover { background: #e7f4f2; color: #0b5e58; }
.manager-main { min-width: 0; }
.fm-bar { display: flex; align-items: center; gap: .5rem; padding: .65rem .75rem; border-bottom: 1px solid var(--bs-border-color); }
.fm-add, .fm-more { position: relative; }
.fm-add > summary, .fm-more > summary { list-style: none; cursor: pointer; }
.fm-add > summary::-webkit-details-marker, .fm-more > summary::-webkit-details-marker { display: none; }
.fm-add > summary { width: 2.15rem; height: 2.15rem; display: grid; place-items: center; background: #0e7c74; color: #fff; border-radius: .35rem; font-size: 1.35rem; line-height: 1; }
.fm-more > summary { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: .35rem; border: 1px solid var(--bs-border-color); background: #fff; color: #3c4656; font-size: 1.15rem; line-height: 1; }
.fm-more > summary::after { content: "\22EF"; }
.fm-menu { position: absolute; z-index: 5; top: calc(100% + .25rem); left: 0; min-width: 15rem; background: #fff; border: 1px solid var(--bs-border-color); border-radius: .5rem; box-shadow: 0 .4rem 1.2rem rgba(28, 36, 48, .12); padding: .75rem; }
.fm-more .fm-menu { left: auto; right: 0; }
.fm-menu form + form, .fm-menu a, .fm-choice { display: block; width: 100%; margin-top: .35rem; text-align: left; }
.fm-choice { border: 0; background: transparent; padding: .45rem .15rem; border-radius: .35rem; }
.fm-choice:hover { background: #e7f4f2; }
.fm-dialog { border: 0; padding: 0; width: min(440px, calc(100% - 2rem)); border-radius: .9rem; box-shadow: 0 1.2rem 3rem rgba(28, 36, 48, .28); }
.fm-dialog::backdrop { background: rgba(28, 36, 48, .45); }
.fm-dialog form { padding: 1.25rem 1.35rem 1.15rem; }
.fm-dialog h2 { margin: 0 0 .25rem; font-size: 1.35rem; }
.fm-dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.fm-dialog input[type=file] { display: block; width: 100%; margin-top: .35rem; }
.fm-menu label { margin-bottom: .45rem; }
.fm-empty { padding: 1rem; }
.sheet-scroll { overflow: visible; }
.manager .files { border-radius: 0; overflow: visible; min-width: 0; table-layout: fixed; width: 100%; }
.files .fm-pick { width: 2.4rem; padding-right: .2rem; }
.files .fm-when { width: 5.6rem; white-space: nowrap; }
.files .fm-size { width: 4.2rem; white-space: nowrap; }
.files .fm-act { width: 3.2rem; text-align: right; overflow: visible; }
.fm-name { display: flex; align-items: center; min-width: 0; gap: .35rem; }
.fm-name .kind { flex: 0 0 auto; margin-right: 0; }
.fm-namecell { overflow: hidden; max-width: 0; }
.fm-label { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pass-row { display: flex; gap: .5rem; align-items: center; margin-top: .35rem; flex-wrap: wrap; }
.pass-row input { margin: 0; width: auto; flex: 1; min-width: 12rem; }
.chooser { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.chooser-box { width: min(760px, 100%); }
body:has(.login-card) { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.login-card { width: min(440px, 100%); margin: 0; }
.login-card h1, .login-card > .muted, .login-card .trial { text-align: center; }
.login-card .btn { width: 100%; justify-content: center; }
.trial { margin-top: 1rem; margin-bottom: 0; }
.ssl-grid { display: grid; gap: .85rem; }
.ssl-grid .card { margin: 0; }
@media (min-width: 960px) { .ssl-grid { grid-template-columns: 1fr 1fr; align-items: start; } .ssl-grid .wide { grid-column: 1 / -1; } }
@media (max-width: 991px) {
  .app { flex-direction: column; }
  aside { width: 100%; height: auto; position: sticky; top: 0; z-index: 1030; flex: none; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
  .brand { padding-bottom: .35rem !important; }
  .menu-scroll { flex-direction: row; align-items: center; overflow-x: auto; gap: .25rem; }
  .menu-scroll > .nav, .menu-foot { flex-direction: row !important; flex-wrap: nowrap; margin-top: 0; width: auto; }
  aside .nav-link { white-space: nowrap; padding: .4rem .7rem; }
  .workspace > header, .workspace > main { padding-left: 1rem !important; padding-right: 1rem !important; }
  .page-head { flex-direction: column; align-items: center; text-align: center; }
  .page-actions { width: min(280px, 100%); }
  .pathbar, .sheet .toolbar { align-items: stretch; }
  .pathbar .row, .pathbar form { width: 100%; }
  .pathbar input { width: 100%; }
  .files td input[type=checkbox] { width: 1rem; }
  .sheet { overflow-x: auto; }
  .manager { grid-template-columns: 1fr; }
  .tree { border-right: 0; border-bottom: 1px solid var(--bs-border-color); max-height: 14rem; }
  main table { min-width: 640px; }
  .manager .files { min-width: 0; }
}
