:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #192b3a;
  background: #f5f7f9;
  font-synthesis: none;
  --ink: #172d3d;
  --muted: #6c7b89;
  --accent: #177c77;
  --border: #e1e7eb;
  --soft: #eef6f4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #54b6ad;
  outline-offset: 3px;
}
button {
  border: 1px solid var(--border);
  background: white;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #f0f4f5;
}
button.primary {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}
button.primary:hover {
  background: #116a65;
}
button.quiet {
  background: transparent;
  border-color: transparent;
}
button.danger {
  color: #b03e3e;
}
button.small {
  padding: 7px 10px;
  font-size: 12px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  font-weight: 650;
  line-height: 1.25;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.65;
}
input,
select,
textarea {
  border: 1px solid #cdd7de;
  border-radius: 7px;
  padding: 11px 12px;
  width: 100%;
  background: white;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #97a1a9;
}
textarea {
  resize: vertical;
  min-height: 84px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field {
  margin-bottom: 18px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 6px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  text-transform: uppercase;
}
.boot {
  padding: 15vh 10vw;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}
.brand-mark {
  flex-shrink: 0;
  width: 30px;
  height: 36px;
  border-radius: 17px 17px 17px 4px;
  background: #64c2b4;
  transform: rotate(18deg);
  box-shadow: inset -9px 0 0 #45a99d;
}
.brand-text {
  white-space: nowrap;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.brand-text span {
  font-weight: 350;
  color: #91abae;
}
.shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #142e3a;
  color: #b4c5cc;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 20px;
  overflow: auto;
}
.sidebar .brand {
  padding: 0 9px 35px;
}
.sidebar-section {
  margin: 16px 10px 12px;
  color: #839fa9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.nav-button {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 11px;
  align-items: center;
  border: 0;
  color: #becdd3;
  background: transparent;
  padding: 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  margin: 2px 0;
}
.nav-button:hover {
  background: #203e4a;
}
.nav-button.selected {
  color: #f5fcfa;
  background: #28514f;
}
.nav-button .count {
  margin-left: auto;
  font-size: 11px;
  color: #a9c3c0;
}
.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67b7ac;
  flex: none;
}
.nav-icon {
  font-size: 18px;
  line-height: 1;
  width: 18px;
  text-align: center;
  color: #9bbabf;
}
.sidebar .add {
  border: 1px dashed #3b555f;
  color: #a9c7c7;
  margin: 12px 2px 20px;
  padding: 11px;
  font-size: 12px;
  width: calc(100% - 4px);
  background: transparent;
}
.sidebar-footer {
  border-top: 1px solid #35505b;
  margin-top: auto;
  padding: 20px 2px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #385361;
  color: #d5e9e9;
  font-size: 12px;
  border-radius: 50%;
  flex: none;
}
.identity {
  min-width: 0;
  flex: 1;
}
.identity strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e7f0f1;
}
.identity small {
  font-size: 10px;
  display: block;
  margin-top: 4px;
  color: #8fa8b3;
}
.sidebar-footer button {
  color: #bccfd5;
  padding: 5px;
  font-size: 17px;
}
.main {
  min-width: 0;
  padding: 0 44px 40px;
}
.topbar {
  height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  gap: 15px;
}
.topbar .path {
  display: flex;
  gap: 12px;
  align-items: center;
}
.topbar .path strong {
  font-weight: 550;
  color: #3b4f5f;
}
.private-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c7b80;
  font-size: 11px;
}
.private-label .dot {
  width: 6px;
  height: 6px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 36px 0 27px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 9px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 30px;
}
.stat {
  background: white;
  border: 1px solid var(--border);
  padding: 22px 24px;
  border-radius: 10px;
  position: relative;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}
.stat-value {
  font-size: 26px;
  font-weight: 620;
  letter-spacing: -0.7px;
}
.stat-note {
  font-size: 10px;
  color: #86959e;
  margin-left: 10px;
}
.stat-glyph {
  position: absolute;
  right: 22px;
  top: 24px;
  color: #88b8b0;
  font-size: 22px;
}
.panel {
  border: 1px solid var(--border);
  background: white;
  border-radius: 11px;
  overflow: hidden;
}
.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--border);
}
.panel-toolbar h3 {
  font-size: 14px;
  white-space: nowrap;
}
.search {
  width: 280px;
  padding: 9px 12px;
  font-size: 12px;
  background: #f9fafb;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  color: #83919b;
  background: #fbfcfd;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 20px 22px;
  border-bottom: 1px solid #edf0f3;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: #fcfdfd;
}
.file-cell {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 230px;
}
.file-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 42px;
  background: #eef5f4;
  border: 1px solid #d6e6e2;
  color: #387f74;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.3px;
  flex: none;
}
.file-icon.zip {
  background: #f4f0fb;
  color: #8c70b0;
  border-color: #e8dff4;
}
.file-icon.pdf {
  background: #fff2ed;
  color: #bd785b;
  border-color: #f0dfd5;
}
.file-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  color: #243b48;
  overflow-wrap: anywhere;
}
.file-description {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #85939b;
  line-height: 1.6;
  margin-top: 3px;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-group {
  display: none;
}
.files-table {
  table-layout: fixed;
}
.files-table th:first-child {
  width: 37%;
}
.files-table th:nth-child(2) {
  width: 21%;
}
.files-table th:nth-child(3) {
  width: 10%;
}
.files-table th:nth-child(4) {
  width: 14%;
}
.files-table th:last-child {
  width: 160px;
}
.files-table .file-cell {
  min-width: 0;
}
.files-table .file-cell > div:last-child {
  min-width: 0;
}
.files-table .tag {
  white-space: normal;
  line-height: 1.5;
}
.files-table .file-description {
  max-width: 100%;
}
@media (max-width: 1250px) {
  .files-table th:nth-child(4),
  .files-table td:nth-child(4) {
    display: none;
  }
  .files-table th:first-child {
    width: auto;
  }
  .files-table th:nth-child(2) {
    width: 24%;
  }
  .files-table th:nth-child(3) {
    width: 75px;
  }
  .files-table th:last-child {
    width: 145px;
  }
}
@media (max-width: 1100px) {
  .files-table th:nth-child(2),
  .files-table td:nth-child(2),
  .files-table th:nth-child(3),
  .files-table td:nth-child(3) {
    display: none;
  }
  .compact-group {
    display: block;
    font-size: 10px;
    color: #65857f;
    margin-top: 3px;
  }
  .brand-text {
    font-size: 19px;
  }
}
@media (max-width: 480px) {
  .files-table .file-icon {
    display: none;
  }
  .files-table td,
  .files-table th {
    padding-left: 12px;
    padding-right: 12px;
  }
  .files-table th:last-child {
    width: 135px;
  }
  .files-table .row-actions {
    gap: 0;
  }
  .files-table .download {
    padding: 7px;
    font-size: 10px;
  }
  .files-table .file-description {
    white-space: normal;
  }
}
.tag {
  display: inline-block;
  background: #f0f5f5;
  border: 1px solid #e4ecec;
  color: #5a737b;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10px;
  white-space: nowrap;
}
.tag.owner,
.tag.administrator {
  background: #eaf5ef;
  border-color: #d7eadd;
  color: #397a58;
}
.tag.disabled {
  background: #f9ecec;
  color: #a86464;
  border-color: #f0dddd;
}
.date {
  font-size: 11px;
  color: #748692;
  white-space: nowrap;
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.download {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 7px 9px;
  border: 1px solid #d6e6e3;
  border-radius: 6px;
}
.download:hover {
  background: #eff8f5;
}
.more {
  font-size: 16px;
  padding: 4px 8px;
  letter-spacing: 1px;
  background: transparent;
  border-color: transparent;
}
.panel-footer {
  border-top: 1px solid var(--border);
  padding: 14px 22px;
  color: #88969e;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.empty {
  text-align: center;
  padding: 65px 25px;
}
.empty-mark {
  font-size: 36px;
  opacity: 0.45;
  margin-bottom: 18px;
}
.empty h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 390px;
  margin: 0 auto 20px;
}
.notice {
  padding: 13px 16px;
  border-radius: 7px;
  background: #eef5f3;
  color: #4e756d;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 22px;
}
.error {
  background: #fff0ee;
  color: #a73f35;
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0;
}
.error[hidden] {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 13px 22px;
  border-radius: 8px;
  color: white;
  background: #21463e;
  box-shadow: 0 6px 28px #102c3b22;
  font-size: 13px;
  max-width: calc(100vw - 40px);
}
#toast.bad {
  background: #863f37;
}
dialog {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 25px 100px #112f3944;
  width: min(540px, calc(100vw - 30px));
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #102d3d66;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 23px 27px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.modal-head button {
  font-size: 20px;
  padding: 0 5px;
}
.modal-body {
  padding: 24px 27px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 19px;
  margin-top: 23px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
}
.check input {
  width: auto;
}
.link-box {
  font-family: Consolas, monospace;
  font-size: 11px;
  margin: 18px 0;
  resize: none;
  min-height: 90px;
}
.member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.member strong {
  font-size: 12px;
  display: block;
}
.member small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.member-list {
  margin: 10px 0 25px;
  max-height: 240px;
  overflow: auto;
}
.section-rule {
  margin: 26px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.detail-grid {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 13px;
  font-size: 12px;
}
.detail-grid dt {
  color: var(--muted);
}
.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.checksum {
  font-family: Consolas, monospace;
  line-height: 1.7;
  font-size: 11px;
}
progress {
  width: 100%;
  height: 8px;
  accent-color: var(--accent);
  margin-top: 20px;
}
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-art {
  background: #142e3a;
  color: #ecf6f4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 65px 70px;
  position: relative;
  overflow: hidden;
}
.auth-art:after {
  content: "";
  position: absolute;
  right: -150px;
  top: 27%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid #39535b;
  box-shadow:
    0 0 0 65px #223f4933,
    0 0 0 130px #28464f22;
  pointer-events: none;
}
.auth-copy {
  z-index: 1;
  max-width: 410px;
  margin: 60px 0;
}
.auth-copy h1 {
  font-size: 50px;
  letter-spacing: -1.8px;
  line-height: 1.16;
  font-weight: 450;
}
.auth-copy p {
  margin-top: 25px;
  color: #9ebcbe;
  font-size: 15px;
  max-width: 300px;
}
.auth-art .eyebrow {
  color: #75999e;
}
.auth-form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.auth-card {
  width: 100%;
  max-width: 355px;
}
.auth-card h2 {
  font-size: 27px;
}
.auth-card > p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  margin-bottom: 30px;
}
.auth-card .primary {
  width: 100%;
  padding: 13px;
}
.auth-footer {
  margin-top: 22px;
  font-size: 11px;
  color: #8a969e;
  text-align: center;
  line-height: 1.8;
}
.inline-link {
  background: transparent;
  border: 0;
  font-size: 12px;
  padding: 0;
  color: var(--accent);
  font-weight: 500;
}
.setup-note {
  margin: 20px 0;
}
.upload-zone {
  padding: 23px;
  border: 1px dashed #a5c9c1;
  border-radius: 9px;
  background: #f6fbf9;
}
.upload-zone input {
  border: 0;
  padding: 10px 0;
  background: transparent;
  font-size: 12px;
}
.upload-zone label {
  color: #497e70;
}
.role-note {
  font-size: 11px;
  color: #8b999f;
  margin: 20px 3px;
}
.mobile-brand {
  display: none;
}
footer.page-foot {
  padding: 23px 1px;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  color: #8e9aa1;
}
.loading {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .main {
    padding-left: 64px;
    padding-right: 64px;
  }
  .page-heading {
    padding-top: 48px;
  }
  .stats {
    gap: 24px;
  }
  .stat {
    padding: 25px 28px;
  }
  td {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .main {
    padding: 0 25px 30px;
  }
  .sidebar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 27px;
  }
  .stat {
    padding: 20px 16px;
  }
  .stat-note {
    display: none;
  }
  .stat-glyph {
    right: 16px;
  }
  .auth-art {
    padding: 45px;
  }
  .auth-copy h1 {
    font-size: 42px;
  }
  .search {
    width: 230px;
  }
  td,
  th {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px;
  }
  .sidebar .brand {
    padding: 0 0 15px;
  }
  .sidebar-section,
  .sidebar-footer,
  .role-note {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 8px;
    padding-top: 8px;
  }
  .nav-button {
    width: auto;
    flex-shrink: 0;
    padding: 9px 12px;
  }
  .sidebar .add {
    width: auto;
    margin: 8px 0 0;
    padding: 7px;
  }
  .main {
    padding: 0 18px 20px;
  }
  .topbar {
    height: 60px;
  }
  .private-label {
    display: none;
  }
  .page-heading {
    padding: 25px 0 20px;
    flex-wrap: wrap;
  }
  .stats {
    gap: 8px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 15px 12px;
  }
  .stat-value {
    font-size: 22px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat-glyph {
    display: none;
  }
  .panel-toolbar {
    padding: 15px;
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
  }
  .panel-toolbar form {
    width: 100%;
  }
  .auth {
    display: block;
  }
  .auth-art {
    min-height: 250px;
    padding: 28px;
  }
  .auth-art:after {
    width: 300px;
    height: 300px;
  }
  .auth-copy {
    margin: 28px 0 0;
  }
  .auth-copy h1 {
    font-size: 32px;
  }
  .auth-copy p,
  .auth-art > .eyebrow {
    display: none;
  }
  .auth-form {
    padding: 35px 25px;
  }
  .panel-footer {
    padding: 12px 15px;
  }
  .stat-note {
    display: none;
  }
  .page-heading p {
    font-size: 12px;
  }
  h1 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
/* Mail status remains readable in the narrow account dialog. */
.mail-item {
  padding: 16px 0;
  border-bottom: 1px solid #e1e7eb;
  overflow-wrap: anywhere;
}
.mail-item p {
  margin: 8px 0;
}
.mail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
