:root {
  color-scheme: light;
  --blue: #3158ed;
  --ink: #192239;
  --muted: #647089;
  --line: #e5e9f2;
  --bg: #f4f6fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  background: #eaf0ff;
  color: var(--blue);
  padding: 11px 16px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #90a9ff;
  outline-offset: 3px;
}
input,
select {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f9fc;
  color: var(--ink);
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
label input,
label select {
  margin-top: 6px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 0 0 8px;
}
h2 {
  font-size: 20px;
  margin: 0 0 14px;
}
p,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
a {
  color: var(--blue);
  overflow-wrap: anywhere;
}
.primary {
  background: var(--blue);
  color: white;
  border-radius: 12px;
  padding: 12px 18px;
  border: 0;
}
.login-card {
  width: min(400px, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 24px 70px #15295614;
  text-align: center;
}
.app-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #c8d4ff;
  border-radius: 12px;
  background: #eaf0ff;
  color: var(--blue);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.app-download-link:hover {
  background: #dfe7ff;
}
.login-download {
  display: flex;
  width: 100%;
  margin: 0 0 18px;
}
.login-card img {
  width: 190px;
  max-width: 100%;
}
.login-card label {
  text-align: left;
  margin: 14px 0;
}
.login-card button {
  width: 100%;
  margin: 10px 0 18px;
}
.login-card h1 {
  font-size: 26px;
}
.login-card p {
  margin: 0 0 20px;
}
#login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 15% 20%, #7587ff35, transparent 55%),
    radial-gradient(ellipse at 90% 85%, #76caff40, transparent 50%);
}
#workspace {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: #eef1f8;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.brand {
  font-size: 25px;
  letter-spacing: -1px;
  padding: 0 12px;
  font-weight: 600;
}
.brand span {
  font-weight: 400;
  color: var(--blue);
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  background: none;
  color: var(--muted);
  text-align: left;
}
nav button.active {
  background: white;
  box-shadow: 0 3px 10px #00000006;
  color: var(--blue);
}
.storage {
  margin-top: auto;
  padding: 12px;
}
progress {
  display: block;
  width: 100%;
  height: 7px;
  margin: 12px 0;
  accent-color: var(--blue);
}
main {
  padding: 40px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.pill {
  font-size: 12px;
  background: #eaf0ff;
  color: var(--blue);
  padding: 7px 12px;
  border-radius: 20px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  flex-wrap: wrap;
}
.toolbar input {
  flex: 1;
  min-width: 180px;
}
.upload {
  cursor: pointer;
  white-space: nowrap;
}
#dropzone {
  border: 1px dashed #bdc9ed;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  margin: 20px 0;
  background: #f9faff;
}
#dropzone p {
  margin: 0 0 5px;
}
#dropzone.drag {
  background: #e4ebff;
  border-color: var(--blue);
}
.list {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin: 22px 0;
}
.entry {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  overflow-wrap: anywhere;
}
.entry:last-child {
  border: 0;
}
.entry > div {
  min-width: 0;
}
.entry small {
  display: block;
  margin-top: 4px;
}
.entry .actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.empty {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid h2 {
  grid-column: 1/-1;
}
.form-grid button {
  justify-self: start;
}
#notice {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #172342;
  color: white;
  padding: 14px 24px;
  overflow-wrap: anywhere;
}
dialog {
  max-width: 450px;
  width: calc(100% - 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  color: var(--ink);
}
dialog::backdrop {
  background: #10193670;
  backdrop-filter: blur(5px);
}
[hidden] {
  display: none !important;
}
@media (max-width: 750px) {
  #workspace {
    grid-template-columns: 1fr;
  }
  aside {
    padding: 18px;
    gap: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .storage {
    margin: 0;
  }
  .brand {
    padding: 0;
  }
  main {
    padding: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .entry {
    align-items: flex-start;
    flex-direction: column;
  }
  .entry .actions {
    flex-wrap: wrap;
  }
  .login-card {
    padding: 24px;
  }
  h1 {
    font-size: 26px;
  }
}
:root textarea {
  font: inherit;
  width: 100%;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f9fc;
  color: var(--ink);
  margin-top: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
}
.brand-mark {
  display: block;
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 70px;
  overflow: hidden;
  mix-blend-mode: multiply;
}
.brand-mark img {
  position: absolute;
  display: block;
  width: 170px;
  height: auto;
  max-width: none;
  left: -31.8px;
  top: -15.4px;
}
.brand-name {
  font-size: 23px;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.upload-options {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 16px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--blue);
}
.wide {
  grid-column: 1/-1;
}
.wide-dialog {
  max-width: 850px;
  max-height: 90vh;
  overflow: auto;
}
.wide-dialog h2 {
  margin: 0;
  overflow-wrap: anywhere;
}
.check-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 18px 0;
  padding: 16px;
}
.entry .actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 1;
  max-width: 52%;
}
.entry > div:first-child {
  flex: 1;
}
.announcement {
  border: 1px solid #cbd7fb;
  border-radius: 18px;
  background: #eef3ff;
  margin: 16px 0;
}
.announcement.emergency {
  background: #fff0ed;
  border-color: #f0b8aa;
}
.announcement.important {
  background: #fff8e8;
  border-color: #ead79e;
}
#push-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
#push-state {
  flex-basis: 100%;
}
#version-form button {
  margin-top: 14px;
}
#folder-breadcrumb {
  font-size: 13px;
}
#settings-form {
  max-width: 650px;
}
.toolbar input {
  min-width: 0;
}
small {
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  main {
    padding: 24px;
  }
  .entry {
    flex-direction: column;
    align-items: stretch;
  }
  .entry .actions {
    max-width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 600px) {
  .upload-options,
  .stat-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  main {
    padding: 18px;
  }
  .toolbar {
    align-items: stretch;
  }
  .toolbar > input {
    flex-basis: 100%;
  }
  .toolbar > label {
    flex: 1;
    min-width: 120px;
  }
  .entry {
    padding: 16px;
  }
  .entry .actions button {
    padding: 9px 12px;
  }
  dialog {
    padding: 20px;
  }
  .wide-dialog {
    width: calc(100% - 20px);
  }
  nav button {
    overflow-wrap: anywhere;
  }
  .wide-dialog .toolbar h2 {
    font-size: 18px;
  }
}
@media (max-width: 750px) {
  aside {
    gap: 12px;
  }
  nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 0 10px;
    scrollbar-width: thin;
  }
  nav button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .storage {
    padding: 0 8px;
  }
  .storage progress {
    margin: 7px 0;
  }
  #logout {
    align-self: flex-start;
    padding: 8px 16px;
  }
}
aside {
  min-width: 0;
}
nav {
  min-width: 0;
}
@media (max-width: 750px) {
  #workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  nav {
    max-width: 100%;
  }
}
.form-error {
  color: #ad3434;
  grid-column: 1/-1;
  overflow-wrap: anywhere;
}
.form-error:empty {
  display: none;
}
.secret {
  display: block;
  overflow-wrap: anywhere;
  user-select: all;
  padding: 16px;
  background: #eef2ff;
  border-radius: 12px;
  font-size: 16px;
  margin: 16px 0;
}
#mfa-recovery-codes {
  user-select: all;
  font-size: 15px;
  line-height: 1.8;
}
#scan-counts {
  margin: 20px 0;
}
#mfa-error {
  color: #ad3434;
}
#mfa-setup p {
  font-size: 13px;
}

.entry.scan-warning {
  border-left: 4px solid #c87b08;
  background: #fff8e8;
}
.entry.scan-warning small {
  color: #76500c;
}
.entry.scan-infected {
  border-left: 4px solid #c73535;
  background: #fff0f0;
}
.entry.scan-infected small {
  color: #9e2222;
}
/* Account cards: independent of generic file rows. */
#user-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  background: transparent;
  border: 0;
  overflow: visible;
  margin-top: 24px;
}
.user-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid #e1e7f1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 4px 18px #20345e05;
  color: #192239;
}
.user-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.user-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e5edff, #f2f5ff);
  color: #3158ed;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.user-card-identity {
  min-width: 0;
  padding-top: 1px;
}
.user-card h3 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
  letter-spacing: -0.25px;
}
.user-login {
  font-size: 12px;
  color: #7b879e;
  overflow-wrap: anywhere;
}
.user-badges {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.user-role,
.user-factor {
  font-size: 11px;
  line-height: 1.4;
  padding: 5px 9px;
  border-radius: 7px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.user-role {
  background: #f0f3f8;
  color: #536078;
}
.user-role.is-admin {
  background: #edf0ff;
  color: #4a5fc4;
}
.user-factor {
  color: #7b879e;
  background: #f7f8fa;
}
.user-departments {
  min-height: 60px;
  margin-bottom: 20px;
}
.user-field-label {
  display: block;
  color: #8c97aa;
  font-size: 10px;
  letter-spacing: 1.1px;
  font-weight: 600;
  margin-bottom: 8px;
}
.user-department-names {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.user-department {
  font-size: 12px;
  color: #536078;
  overflow-wrap: anywhere;
}
.user-department:not(:last-child)::after {
  content: ' ·';
  color: #b3bdce;
  margin-left: 5px;
}
.user-unassigned {
  font-size: 12px;
  color: #9aa4b5;
}
.user-storage {
  margin-top: auto;
}
.user-storage-heading,
.user-storage-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
  color: #738099;
}
.user-storage-heading strong {
  color: #263654;
  font-weight: 600;
  font-size: 13px;
}
.user-storage progress {
  display: block;
  width: 100%;
  height: 5px;
  margin: 10px 0 8px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #edf1f7;
  appearance: none;
}
.user-storage progress::-webkit-progress-bar {
  background: #edf1f7;
  border-radius: 8px;
}
.user-storage progress::-webkit-progress-value {
  background: #6a86ed;
  border-radius: 8px;
}
.user-storage progress::-moz-progress-bar {
  background: #6a86ed;
  border-radius: 8px;
}
.user-storage progress.quota-full::-webkit-progress-value {
  background: #da8d4a;
}
.user-storage progress.quota-full::-moz-progress-bar {
  background: #da8d4a;
}
.user-storage-foot {
  font-size: 11px;
  color: #909bb0;
}
.user-card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #f0f2f7;
  padding-top: 16px;
  margin-top: 20px;
}
.user-main-action {
  flex: 1;
  min-width: 0;
  text-align: center;
  background: #f0f4ff;
  color: #4666c6;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 8px;
  border-radius: 10px;
}
.user-more {
  width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  padding: 6px;
  color: #76849e;
  background: #f5f7fa;
  border-radius: 10px;
  letter-spacing: 2px;
}
.user-card-footer button:hover {
  background: #e5ecff;
}
.user-actions-heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}
.user-actions-heading h2 {
  margin: 0;
  line-height: 1.4;
  font-size: 19px;
  overflow-wrap: anywhere;
}
.user-actions-heading button {
  padding: 2px 10px;
  font-size: 24px;
  background: #f3f5fa;
  color: #6f7c94;
}
.user-actions-heading + p {
  font-size: 13px;
  margin: 5px 0 20px;
}
#user-actions-list {
  display: grid;
  gap: 8px;
}
#user-actions-list button {
  text-align: left;
  background: #f3f6fc;
  color: #415777;
  padding: 14px 16px;
  font-size: 14px;
}
#user-actions-list button:hover {
  background: #e9efff;
}
@media (max-width: 600px) {
  #user-list {
    gap: 14px;
  }
  .user-card {
    padding: 18px;
    border-radius: 20px;
  }
  .user-card h3 {
    font-size: 16px;
  }
  .user-departments {
    min-height: 0;
  }
  .user-card-footer {
    margin-top: 17px;
  }
}

#new-user-dialog {
  max-width: 580px;
  max-height: 90vh;
  overflow: auto;
}
#new-user-dialog .toolbar {
  margin: 0;
}
#new-user-error {
  color: #ad3434;
  margin: 0;
}
#new-user-error:empty {
  display: none;
}
.organization-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.organization-grid .toolbar {
  justify-content: space-between;
  margin: 0;
}
.organization-grid h2 {
  margin: 0;
}
.organization-grid .list {
  margin-bottom: 0;
}
.user-position {
  display: block;
  font-size: 12px;
  color: #596d91;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
#group-dialog,
#position-dialog {
  max-height: 90vh;
  overflow: auto;
}
#group-error,
#position-error {
  color: #ad3434;
}
@media (max-width: 1050px) {
  .organization-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Compact account directory with a card alternative. */
.user-tools {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}
.user-tools label {
  font-size: 12px;
  margin: 0;
  min-width: 140px;
  flex: 1;
}
.user-tools .user-search {
  flex: 2;
  min-width: 220px;
}
.user-tools input,
.user-tools select {
  margin-top: 6px;
  height: 44px;
}
.user-view {
  display: flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  background: #edf1f8;
  border-radius: 12px;
}
.user-view button {
  padding: 8px 12px;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
}
.user-view button[aria-pressed='true'] {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 5px #1b315312;
}
#users-count {
  width: 100%;
  font-size: 12px;
  margin: 4px 0;
  color: var(--muted);
}
#user-list[data-view='list'] {
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  margin-top: 8px;
}
#user-list[data-view='list'] .user-card {
  display: grid;
  grid-template-columns:
    minmax(190px, 1.5fr) minmax(125px, 0.9fr) minmax(115px, 1fr) minmax(150px, 1fr)
    88px;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
#user-list[data-view='list'] .user-card:last-child {
  border-bottom: 0;
}
#user-list[data-view='list'] .user-card:hover {
  background: #fafbff;
}
#user-list[data-view='list'] .user-card h3 {
  font-size: 14px;
}
#user-list[data-view='list'] .user-avatar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  font-size: 12px;
  border-radius: 50%;
}
#user-list[data-view='list'] .user-badges {
  margin: 0;
  gap: 5px;
  align-items: flex-start;
  flex-direction: column;
}
#user-list[data-view='list'] .user-departments {
  min-height: 0;
  margin: 0;
}
#user-list[data-view='list'] .user-storage {
  margin: 0;
}
#user-list[data-view='list'] .user-field-label {
  font-size: 9px;
  margin-bottom: 5px;
}
#user-list[data-view='list'] .user-card-footer {
  margin: 0;
  padding: 0;
  border: 0;
  gap: 8px;
}
#user-list[data-view='list'] .user-main-action {
  flex: 0 0 40px;
  font-size: 21px;
  padding: 4px;
  height: 40px;
  background: transparent;
}
#user-list[data-view='list'] .user-more {
  background: transparent;
}
#user-actions-dialog {
  position: fixed;
  margin: 0;
  width: 310px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 12px 50px #17234225;
}
#user-actions-dialog::backdrop {
  background: #10193618;
  backdrop-filter: none;
}
#user-actions-dialog h2 {
  font-size: 16px;
}
#user-actions-list button {
  padding: 12px;
}
.profile-menu-wrap {
  position: relative;
  margin-left: auto;
}
#profile-menu-open {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 30px;
  color: var(--ink);
}
#profile-avatar {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  background: #eaf0ff;
  border-radius: 50%;
  color: var(--blue);
  font-weight: 650;
  font-size: 11px;
}
#profile-menu {
  position: fixed;
  left: 12px;
  top: 12px;
  width: 268px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 50px #19223920;
  border-radius: 18px;
  z-index: 10;
}
#profile-menu strong,
#profile-menu small {
  display: block;
  overflow-wrap: anywhere;
}
#profile-menu small {
  margin: 4px 0 12px;
}
#profile-shortcuts {
  display: grid;
  gap: 3px;
}
#profile-menu button {
  width: 100%;
  text-align: left;
  background: none;
  color: var(--ink);
  font-size: 14px;
  padding: 11px 12px;
  border-radius: 10px;
}
#profile-menu button:hover {
  background: #edf2ff;
  color: var(--blue);
}
#profile-menu #logout {
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin-top: 8px;
  color: #a13c42;
}
@media (max-width: 1250px) {
  #user-list[data-view='list'] .user-card {
    grid-template-columns: minmax(180px, 1.5fr) minmax(130px, 1fr) 88px;
    gap: 12px;
  }
  #user-list[data-view='list'] .user-card-head {
    grid-column: 1;
    grid-row: 1;
  }
  #user-list[data-view='list'] .user-badges {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
  }
  #user-list[data-view='list'] .user-departments {
    grid-column: 2;
    grid-row: 2;
  }
  #user-list[data-view='list'] .user-storage {
    grid-column: 2;
    grid-row: 1;
  }
  #user-list[data-view='list'] .user-card-footer {
    grid-column: 3;
    grid-row: 1/3;
  }
}
@media (max-width: 600px) {
  .user-tools {
    gap: 10px;
  }
  .user-tools .user-search {
    min-width: 100%;
  }
  .user-tools label {
    min-width: calc(50% - 10px);
  }
  .user-tools .user-view {
    width: 100%;
  }
  .user-view button {
    flex: 1;
  }
  #user-list[data-view='list'] .user-card {
    grid-template-columns: minmax(0, 1fr) 88px;
    padding: 16px;
    gap: 14px;
  }
  #user-list[data-view='list'] .user-card-head {
    grid-column: 1;
    grid-row: 1;
  }
  #user-list[data-view='list'] .user-card-footer {
    grid-column: 2;
    grid-row: 1;
  }
  #user-list[data-view='list'] .user-badges {
    grid-column: 1/-1;
    grid-row: 2;
  }
  #user-list[data-view='list'] .user-departments {
    grid-column: 1/-1;
    grid-row: 3;
  }
  #user-list[data-view='list'] .user-storage {
    grid-column: 1/-1;
    grid-row: 4;
  }
  .profile-menu-wrap {
    margin-left: 0;
  }
}
.new-user-quota {
  min-width: 0;
}
.quota-space {
  margin-top: 9px;
  padding: 12px;
  border: 1px solid #dce6f9;
  border-radius: 12px;
  background: #f1f5ff;
  overflow-wrap: anywhere;
}
.quota-space strong {
  display: block;
  color: #304f8c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.quota-space small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
}
.quota-space-update {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0;
}
.quota-space-update button {
  padding: 4px 7px;
  font-size: 11px;
  background: #e3ebff;
  border-radius: 6px;
}
.department-field {
  min-width: 0;
  margin: 6px 0;
}
.department-field select {
  margin-top: 6px;
}
.department-field > small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
}

.password-field {
  display: block;
  position: relative;
  margin-top: 6px;
}
.login-card .password-field input {
  margin-top: 0;
  padding-right: 52px;
}
.login-card .password-toggle {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 10px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.password-toggle:hover {
  color: var(--blue);
}
.password-eye-slash {
  display: none;
}
.password-toggle[aria-pressed='true'] .password-eye-slash {
  display: block;
}

.login-card .password-label {
  margin-bottom: 6px;
}

#login {
  grid-template-rows: 1fr auto;
  gap: 24px;
}
.login-motto {
  max-width: 100%;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: break-word;
  padding: 8px 12px;
}
.login-motto span {
  font-weight: 600;
  color: var(--ink);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  padding: 20px 24px;
  border-top: 1px solid #e0e5f3;
  background: #eff1fc;
  color: #607296;
  font:
    12px/1.6 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}
.site-footer span:last-child {
  flex-basis: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#workspace {
  flex: 1;
  min-height: calc(100vh - 90px);
}
#login {
  min-height: calc(100vh - 90px);
  flex: 1;
}
body > .site-footer {
  margin-top: auto;
}
#workspace > aside {
  min-width: 0;
}
#workspace > main {
  min-width: 0;
}
#file-navigation {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.document-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 8px;
}
.document-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 8px 0;
}
.document-search input::-webkit-search-cancel-button {
  display: none;
}
.document-search > span {
  order: -1;
  font-size: 23px;
  color: var(--muted);
}
.document-search button {
  padding: 4px 8px;
  background: transparent;
  font-size: 22px;
}
#file-navigation button {
  max-width: 100%;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
#file-views,
#shared-view-buttons {
  display: grid;
  gap: 4px;
}
#file-navigation button.active {
  background: var(--blue);
  color: white;
}
#file-navigation summary {
  cursor: pointer;
  padding: 10px 8px;
  border-radius: 10px;
}
#file-navigation summary:hover {
  background: #e9edfb;
}
#file-tree-items {
  max-height: 320px;
  overflow: auto;
}
#file-tree-items details {
  margin-left: 10px;
  border-left: 1px solid var(--line);
}
#file-tree-items summary {
  padding: 2px 0;
}
#file-tree-items button {
  padding: 5px 8px;
  background: transparent;
  font-size: 13px;
}
#shared-view-buttons {
  padding-left: 16px;
}
.file-nav-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 4px;
}
#file-tag-label {
  font-size: 12px;
  margin: 8px;
}
.file-star {
  font-size: 20px;
  padding: 6px 10px;
}
.file-star[aria-pressed='true'] {
  color: #996100;
  background: #fff3cd;
}
.file-tag-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.file-tag-chips span {
  font-size: 12px;
  background: #eef1ff;
  color: #4255a0;
  border-radius: 8px;
  padding: 2px 7px;
}
@media (max-width: 750px) {
  #file-navigation {
    width: 100%;
    gap: 4px;
  }
  #file-views {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #file-tree-items {
    max-height: 180px;
  }
  .site-footer {
    padding: 16px;
    font-size: 11px;
  }
}

.responsibles-options {
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  margin: 12px 0;
}
.responsible-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}
.responsible-option:hover {
  background: #edf2ff;
}
.responsible-option input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
}
.responsible-option span {
  min-width: 0;
}
.responsible-option strong,
.responsible-option small {
  display: block;
  overflow-wrap: anywhere;
}
.user-responsibles {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 5px;
}
