:root {
  --ink: #20342f;
  --muted: #798780;
  --green: #177c66;
  --line: #e6eae3;
  --paper: #fafbf7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 9px 16px;
  color: var(--ink);
}
button:hover {
  background: #eef5ee;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
a {
  color: inherit;
  text-decoration: none;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #192f29;
  color: #b2c2b9;
  padding: 35px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: 2px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  background: #b8dfbb;
  color: #203e30;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  text-align: center;
  line-height: 39px;
  font-size: 26px;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 2.5px;
  margin: 5px 0 43px 52px;
  color: #819a8b;
}
.nav {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 16px;
  margin: 4px 0;
  border-radius: 9px;
  font-size: 14px;
}
.nav.active {
  background: #315345;
  color: #def1df;
}
.nav-icon {
  font-size: 20px;
}
.aside-note {
  margin-top: auto;
  border-top: 1px solid #3b5145;
  padding-top: 24px;
  font-size: 12px;
  color: #8da395;
}
.aside-note strong {
  display: block;
  color: #c8dbcb;
  font-size: 13px;
  margin-bottom: 7px;
}
.main {
  margin-left: 240px;
  padding: 0 46px 40px;
  max-width: 1700px;
}
.topbar {
  height: 94px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-caption {
  color: var(--muted);
  font-size: 12px;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e3ecdd;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #47754e;
}
.account button {
  padding: 5px 9px;
  font-size: 12px;
  background: transparent;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 37px 0 25px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  font-weight: 650;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  line-height: 1.4;
  margin: 5px 0 6px;
}
p {
  margin: 0;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 10px;
}
.welcome {
  border: 1px solid #dce8d8;
  background: #edf4e8;
  border-radius: 13px;
  padding: 23px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.welcome h2 {
  font-size: 17px;
  margin: 0 0 5px;
}
.welcome p {
  font-size: 12px;
  color: #758571;
}
.welcome-art {
  font-size: 47px;
  color: #6e9874;
  padding-right: 17px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 17px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-weight: 600;
}
.crumbs a {
  color: var(--green);
}
.filters {
  display: flex;
  gap: 10px;
}
input,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  color: var(--ink);
}
.search {
  width: 220px;
}
.file-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.file-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.file-table th {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: #f6f8f3;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.file-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #eff1ec;
}
.file-table tr:last-child td {
  border: 0;
}
.file-table tbody tr:hover {
  background: #fafcf7;
}
.filename {
  display: flex;
  align-items: center;
  gap: 13px;
  word-break: break-all;
}
.file-icon {
  width: 36px;
  height: 39px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #edf1e9;
  color: #758a67;
  font-size: 20px;
  flex-shrink: 0;
}
.file-icon.folder {
  background: #f4edcf;
  color: #b29c47;
}
.file-icon.image {
  background: #e6eef4;
  color: #6d93a3;
}
.file-name {
  font-weight: 550;
}
.file-type {
  display: block;
  color: #9aa397;
  font-size: 10px;
  font-weight: 400;
}
.secondary {
  font-size: 12px;
  color: var(--muted);
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}
.row-actions button {
  border: 0;
  background: transparent;
  padding: 5px 7px;
  font-size: 12px;
  color: #748578;
}
.row-actions button:hover {
  background: #eaf2e7;
  color: var(--green);
}
.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 11px;
  color: #95a08f;
}
.empty {
  text-align: center;
  padding: 65px 15px;
  color: var(--muted);
}
.empty-icon {
  font-size: 40px;
  opacity: 0.5;
  margin-bottom: 12px;
}
.notice {
  padding: 11px 16px;
  border-radius: 8px;
  background: #e3f0df;
  color: #326a42;
  margin-bottom: 16px;
}
.notice.error {
  background: #fff0eb;
  color: #a84835;
}
.hidden {
  display: none !important;
}
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #eff2e9;
}
.login-card {
  width: min(420px, calc(100% - 40px));
  padding: 40px;
  background: white;
  border: 1px solid #dfe6d7;
  border-radius: 18px;
  box-shadow: 0 25px 90px #203a2510;
}
.login-card .brand {
  color: var(--ink);
  margin-bottom: 30px;
}
.login-card h1 {
  font-size: 24px;
}
.login-card label {
  display: block;
  margin-top: 20px;
  font-size: 12px;
}
.login-card input {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.login-card button {
  width: 100%;
  margin-top: 25px;
}
.login-foot {
  text-align: center;
  margin-top: 25px;
  font-size: 11px;
  color: #8a9784;
}
progress {
  width: 100%;
  height: 5px;
  accent-color: var(--green);
}
#upload-state {
  margin: 12px 0;
}
.mobile-brand {
  display: none;
}
@media (max-width: 900px) {
  aside {
    width: 195px;
    padding: 30px 18px;
  }
  .main {
    margin-left: 195px;
    padding: 0 25px;
  }
  .file-table th:nth-child(3),
  .file-table td:nth-child(3) {
    display: none;
  }
  .page-head {
    align-items: flex-start;
  }
  .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .filters {
    gap: 5px;
  }
  .search {
    width: 160px;
  }
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: auto;
    padding: 15px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-icon {
    width: 31px;
    height: 31px;
    line-height: 31px;
    font-size: 21px;
  }
  .brand-sub,
  .aside-note {
    display: none;
  }
  .nav {
    font-size: 12px;
    padding: 8px;
    margin: 0;
  }
  .nav-icon {
    display: none;
  }
  aside nav {
    display: flex;
    margin-left: auto;
  }
  .main {
    margin: 0;
    padding: 0 16px 25px;
  }
  .topbar {
    height: 68px;
  }
  .top-caption {
    font-size: 10px;
  }
  .account {
    gap: 5px;
  }
  .account > span:not(.avatar) {
    display: none;
  }
  .account button {
    font-size: 10px;
    padding: 4px;
  }
  .avatar {
    width: 27px;
    height: 27px;
  }
  .page-head {
    margin: 25px 0 20px;
    gap: 10px;
  }
  h1 {
    font-size: 25px;
  }
  .page-head p {
    font-size: 11px;
  }
  .actions {
    gap: 6px;
    max-width: 155px;
  }
  .actions button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .welcome {
    padding: 18px;
    margin-bottom: 22px;
  }
  .welcome h2 {
    font-size: 14px;
  }
  .welcome-art {
    font-size: 34px;
    padding: 0;
  }
  .welcome p {
    font-size: 10px;
    max-width: 220px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 13px;
  }
  .filters {
    width: 100%;
  }
  .search {
    flex: 1;
    min-width: 0;
  }
  .file-table th,
  .file-table td {
    padding: 12px 11px;
  }
  .file-table th:nth-child(2),
  .file-table td:nth-child(2) {
    display: none;
  }
  .file-icon {
    width: 29px;
    height: 33px;
    font-size: 16px;
  }
  .filename {
    gap: 8px;
    font-size: 12px;
  }
  .row-actions {
    gap: 0;
    flex-wrap: wrap;
    max-width: 105px;
  }
  .row-actions button {
    font-size: 10px;
    padding: 4px;
  }
  .footer {
    font-size: 10px;
  }
  .crumbs {
    font-size: 12px;
  }
  .file-type {
    font-size: 9px;
  }
  .eyebrow {
    font-size: 9px;
  }
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 30px;
  width: min(430px, calc(100% - 35px));
  color: var(--ink);
}
dialog::backdrop {
  background: #132c2666;
}
dialog h2 {
  margin: 0 0 8px;
}
dialog label {
  display: block;
  margin: 18px 0;
}
dialog input {
  display: block;
  width: 100%;
  margin-top: 5px;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 22px;
}
dialog p {
  font-size: 12px;
}
.align-right {
  text-align: right;
}
