:root {
  --bg: #f7f8f5;
  --surface: #fff;
  --sidebar: #fcfcfa;
  --ink: #26312a;
  --muted: #7b827a;
  --line: #e7eae3;
  --accent: var(--primary);
  --accent-soft: #eaf3ed;
  --hover: #f1f6ef;
  --danger: #b54f50;
  --shadow: 0 16px 65px #25332716;
  --serif: var(--sans);
  --sans: "Segoe UI", "Trebuchet MS", sans-serif;
  --radius: 8px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  letter-spacing: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: var(--accent);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.25;
  font-weight: normal;
}
h2 {
  font-size: 18px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
small {
  font-size: 12px;
}
svg.icon {
  width: 19px;
  height: 19px;
  flex: none;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  width: 242px;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 32px 19px 20px;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 8px 32px;
  background: none;
  text-align: left;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand strong {
  display: block;
  font: 21px/1.15 var(--serif);
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
  letter-spacing: 1.25px;
}
.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #969d91;
  padding: 18px 13px 9px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 11px 13px;
  border-radius: 6px;
  margin: 3px 0;
  text-align: left;
  font-size: 13px;
  color: #6f766c;
}
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.nav-item:hover {
  background: var(--hover);
}
.nav-item .count {
  margin-left: auto;
  font-size: 10px;
  min-width: 22px;
  text-align: center;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  padding: 1px 5px;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 24px;
}
.side-note {
  margin: 17px 13px 12px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.side-note strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}
.main-shell {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 81px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.global-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 505px;
  width: 100%;
  color: var(--muted);
}
.global-search input {
  border: 0;
  background: transparent;
  outline: 0;
  padding: 8px 0;
  color: var(--ink);
  width: 100%;
  font-size: 12px;
}
.search-key {
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10px;
  padding: 1px 5px;
  white-space: nowrap;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 17px;
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: transparent;
  min-width: 34px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--hover);
  color: var(--ink);
}
.notification-dot {
  position: absolute;
  top: 3px;
  right: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
}
.top-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}
.account-button {
  display: flex;
  gap: 10px;
  align-items: center;
  background: transparent;
  text-align: left;
  padding: 0;
}
.avatar {
  width: 34px;
  height: 34px;
  background: #e9e4d7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  color: #69634b;
  font-weight: 600;
  flex: none;
}
.avatar.large {
  width: 72px;
  height: 72px;
  font-size: 23px;
}
.account-name {
  font-weight: 600;
  font-size: 12px;
  display: block;
}
.account-role {
  font-size: 10px;
  color: var(--muted);
}
.mobile-menu {
  display: none;
}
.content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 40px 28px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}
.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 11px 0 26px;
}
.page-top p {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  min-height: 38px;
}
.button:hover {
  border-color: #b5c0ae;
  background: var(--hover);
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.button.primary:hover {
  filter: brightness(1.08);
}
.button.danger {
  color: var(--danger);
  border-color: #ecd1d1;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.text-button {
  font-size: 11px;
  font-weight: 600;
  background: none;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.text-button .icon {
  width: 14px;
  height: 14px;
}
.welcome-band {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 138px;
  background: #eaf0e5;
  border: 1px solid #e1e8da;
  border-radius: 8px;
  padding: 24px 29px;
  position: relative;
  overflow: hidden;
}
.welcome-copy {
  max-width: 520px;
  z-index: 1;
}
.welcome-copy .eyebrow {
  color: #6a7a60;
  font-size: 9px;
}
.welcome-copy h2 {
  font: 25px/1.3 var(--serif);
  margin: 7px 0;
  color: #35472f;
}
.welcome-copy p {
  font-size: 11px;
  color: #6d7b64;
  max-width: 400px;
  line-height: 1.7;
}
.welcome-art {
  width: 270px;
  height: 140px;
  position: absolute;
  right: 15px;
  bottom: -7px;
  color: #65815c;
  opacity: 0.9;
}
.welcome-cross {
  position: absolute;
  right: 41px;
  top: 21px;
  opacity: 0.32;
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 23px 0 25px;
  border-bottom: 1px solid var(--line);
  gap: 30px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat:not(:first-child) {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef1e9;
  color: #6d805e;
}
.stat:nth-child(2) .stat-icon {
  background: #f4ece1;
  color: #a38b5a;
}
.stat:nth-child(3) .stat-icon {
  background: #edeaf4;
  color: #8f7aa8;
}
.stat strong {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.stat-text {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.stat-text .pill {
  font-size: 9px;
  padding: 1px 5px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 25px 0 16px;
}
.section-heading h2 {
  font-size: 16px;
}
.section-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.view-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  gap: 2px;
}
.view-switch button {
  width: 29px;
  height: 26px;
  border-radius: 3px;
  background: none;
  color: #a0a49d;
  display: grid;
  place-items: center;
}
.view-switch button.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.view-switch .icon {
  width: 16px;
  height: 16px;
}
.section-controls {
  display: flex;
  gap: 16px;
  align-items: center;
}
.folder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.folder-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.folder-card:hover {
  transform: translateY(-3px);
  border-color: #b9c5b0;
}
.folder-picture {
  height: 103px;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--card-tint);
}
.folder-picture svg {
  width: 170px;
  height: 103px;
}
.folder-picture .folder-arrow {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #ffffff66;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.folder-card:hover .folder-arrow {
  opacity: 1;
}
.folder-arrow .icon {
  width: 13px;
  height: 13px;
}
.folder-info {
  padding: 14px 15px 12px;
}
.folder-info h3 {
  font-size: 12px;
  line-height: 1.4;
  min-height: 17px;
}
.folder-info p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin-top: 5px;
  min-height: 34px;
}
.folder-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  font-size: 9px;
  color: #969c90;
}
.folder-meta span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.folder-meta .icon {
  width: 12px;
  height: 12px;
}
.sage {
  --card-tint: #eef2e8;
  --card-stroke: #738660;
  --card-fill: #a4b591;
}
.lilac {
  --card-tint: #f0edf6;
  --card-stroke: #9d8aac;
  --card-fill: #c1b2ce;
}
.blue {
  --card-tint: #ebf2f6;
  --card-stroke: #7f9dad;
  --card-fill: #adc5d1;
}
.peach {
  --card-tint: #faf0e7;
  --card-stroke: #be9774;
  --card-fill: #ddbea1;
}
.rose {
  --card-tint: #f7eceb;
  --card-stroke: #b38a85;
  --card-fill: #d4aea8;
}
.gold {
  --card-tint: #f7f3e5;
  --card-stroke: #ae9b62;
  --card-fill: #d5c78e;
}
.mint {
  --card-tint: #eaf2ef;
  --card-stroke: #7b9d8c;
  --card-fill: #aac5b6;
}
.stone {
  --card-tint: #f0f0ed;
  --card-stroke: #8e9285;
  --card-fill: #b9beb0;
}
.folder-list {
  display: grid;
  gap: 8px;
}
.folder-list .folder-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  min-height: 94px;
}
.folder-list .folder-picture {
  height: 100%;
}
.folder-list .folder-picture svg {
  width: 100px;
  height: 90px;
}
.folder-list .folder-info p {
  min-height: 0;
}
.folder-list .folder-meta {
  margin-top: 5px;
}
.resources {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.resource-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  text-align: left;
}
.resource-table th {
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  background: #fbfcf9;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.65px;
}
.resource-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.resource-table tr:last-child td {
  border-bottom: 0;
}
.resource-table tbody tr:hover {
  background: var(--hover);
}
.resource-table .name-col {
  width: 45%;
}
.resource-name {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.file-icon {
  height: 35px;
  width: 29px;
  border: 1px solid #dce4d6;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #859c76;
  background: #f4f7f0;
  flex: none;
}
.file-icon .icon {
  width: 15px;
  height: 15px;
}
.file-icon small {
  font-size: 6px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.5;
}
.file-icon.pdf {
  color: #bc7972;
  background: #faf0ed;
  border-color: #f0dcd7;
}
.file-icon.pptx {
  color: #b79568;
  background: #faf4e9;
  border-color: #f0e5d0;
}
.file-icon.docx {
  color: #7f9bad;
  background: #edf4f9;
  border-color: #dae7ef;
}
.file-icon.mp4 {
  color: #aa90b5;
  background: #f6f0f9;
  border-color: #e9dcf0;
}
.resource-title {
  min-width: 0;
  max-width: 100%;
  text-align: left;
  background: transparent;
  padding: 0;
  color: var(--ink);
}
.resource-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
}
.resource-title small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.cell-author {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.cell-author .avatar {
  width: 23px;
  height: 23px;
  font-size: 8px;
  background: #ecefe5;
  color: #7a826d;
}
.cell-author span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cell-author .member-name-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-name-link {
  color: var(--accent);
  text-decoration: underline;
}
.muted {
  color: var(--muted);
}
.file-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.file-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  min-width: 0;
}
.file-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.file-card .resource-title strong {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.file-card p {
  color: var(--muted);
  font-size: 11px;
  margin: 9px 0 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 33px;
}
.file-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  background: var(--surface);
  white-space: nowrap;
}
.pill.green {
  background: #edf3e8;
  color: #6b805a;
  border-color: #e1e9d9;
}
.pill.amber {
  background: #faf3e4;
  color: #a3864d;
  border-color: #ede1c2;
}
.pill.red {
  background: #fbefec;
  color: #b0766c;
  border-color: #efdcd7;
}
.pill.blue {
  background: #eef3f8;
  color: #718da5;
  border-color: #dce7f0;
}
.pill.purple {
  background: #f3eef6;
  color: #9b7ea7;
  border-color: #e9dded;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #a0a69a;
  padding: 26px 0 4px;
  gap: 10px;
}
.footer div {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer .status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8ea478;
  margin-right: 5px;
}
.breadcrumb {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.breadcrumb button {
  background: none;
  color: var(--muted);
  padding: 0;
}
.breadcrumb button:hover {
  color: var(--accent);
}
.breadcrumb .icon {
  width: 12px;
  height: 12px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 19px 0;
}
.toolbar-left {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.field-search {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 7px 10px;
}
.field-search input {
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  width: 190px;
}
.field-search .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
select,
input,
textarea {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 10px;
  min-width: 0;
}
select {
  font-size: 12px;
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.chip {
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 12px;
  color: var(--muted);
}
.chip.active {
  background: var(--accent-soft);
  border-color: #c1cdb5;
  color: var(--accent);
}
.chip .icon {
  width: 12px;
  height: 12px;
}
.filter-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.filter-panel label,
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
}
.filter-panel select {
  width: 100%;
}
.active-filters {
  margin-bottom: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 11px;
  color: var(--muted);
}
.pagination-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state .icon {
  width: 36px;
  height: 36px;
  color: #a0ad96;
  margin-bottom: 14px;
}
.empty-state h3 {
  color: var(--ink);
  margin-bottom: 7px;
}
.empty-state p {
  font-size: 12px;
  max-width: 380px;
  margin: 0 auto;
}
.table-wrap {
  overflow-x: auto;
}
.queue-table {
  min-width: 700px;
}
.queue-table .name-col {
  width: 40%;
}
.tabs {
  display: flex;
  gap: 21px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow: auto;
}
.tab {
  padding: 11px 1px;
  font-size: 12px;
  background: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.tab span {
  margin-left: 5px;
  font-size: 10px;
  background: var(--hover);
  padding: 1px 5px;
  border-radius: 3px;
}
.queue-summary {
  display: flex;
  gap: 32px;
  margin: 6px 0 25px;
}
.queue-summary strong {
  display: block;
  font-size: 24px;
  font-family: var(--serif);
  font-weight: normal;
}
.queue-summary small {
  color: var(--muted);
  font-size: 11px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #17201660;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal {
  background: var(--surface);
  width: min(620px, 100%);
  max-height: calc(100dvh - 48px);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.wide {
  width: min(850px, 100%);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 19px 24px;
  gap: 15px;
}
.modal-head h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: normal;
}
.modal-body {
  padding: 23px 24px;
  overflow: auto;
  min-height: 0;
}
.modal-foot {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--sidebar);
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-size: 12px;
  font-weight: 400;
}
.form-field textarea {
  resize: vertical;
  min-height: 90px;
}
.form-field small {
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
}
.form-field .chips {
  margin: 2px 0;
}
.form-field input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}
.checkbox-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.callout {
  display: flex;
  gap: 11px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--accent);
  font-size: 11px;
  margin: 15px 0;
  line-height: 1.7;
}
.callout .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.callout.warning {
  background: #faf2e3;
  color: #967b45;
}
.form-errors {
  padding: 12px 15px;
  background: #fbefec;
  color: var(--danger);
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 15px;
}
.form-errors:empty {
  display: none;
}
.form-errors ul {
  margin: 0;
  padding-left: 18px;
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #b9c5b0;
  border-radius: 6px;
  padding: 26px 16px;
  background: var(--bg);
  cursor: pointer;
  text-align: center;
}
.dropzone .icon {
  height: 29px;
  width: 29px;
  color: var(--accent);
  margin-bottom: 9px;
}
.dropzone strong {
  font-size: 12px;
}
.dropzone small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.dropzone.dragover {
  background: var(--accent-soft);
  border-style: solid;
}
.selected-file {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.selected-file span {
  min-width: 0;
}
.selected-file small {
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}
.name-preview {
  font:
    11px/1.7 Consolas,
    monospace;
  overflow-wrap: anywhere;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 5px;
  color: var(--accent);
}
.detail-title {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 17px;
  overflow-wrap: anywhere;
}
.detail-title .file-icon {
  width: 43px;
  height: 53px;
}
.detail-title h3 {
  font-size: 17px;
  font-family: var(--serif);
  font-weight: normal;
  overflow-wrap: anywhere;
}
.detail-title small {
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.detail-description {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.detail-grid label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}
.detail-grid span {
  font-size: 12px;
}
.detail-grid .button {
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
}
.file-preview {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 125px;
  padding: 21px;
  text-align: center;
  margin-bottom: 17px;
}
.file-preview .icon {
  width: 38px;
  height: 38px;
  color: var(--muted);
  margin-bottom: 9px;
}
.file-preview p {
  font-size: 11px;
  color: var(--muted);
}
.file-preview img,
.file-preview video {
  max-width: 100%;
  max-height: 280px;
}
.file-preview pre {
  white-space: pre-wrap;
  text-align: left;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.notification-list {
  display: grid;
  gap: 9px;
}
.notification {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-align: left;
  position: relative;
}
.notification.unread {
  background: var(--accent-soft);
  border-color: #dce4d3;
}
.notification .notification-icon {
  padding: 9px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
}
.notification-content {
  flex: 1;
  min-width: 0;
}
.notification h3 {
  font-size: 12px;
}
.notification p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0;
}
.notification small {
  font-size: 10px;
  color: var(--muted);
}
.notification-actions {
  display: flex;
  gap: 5px;
}
.notification.unread:before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 12px;
  right: 13px;
}
.profile-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.profile-banner h2 {
  font: 27px var(--serif);
  margin-bottom: 6px;
}
.profile-form {
  max-width: 750px;
}
.profile-statistics {
  display: flex;
  gap: 45px;
  margin: 25px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-statistics strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
}
.profile-statistics small {
  font-size: 10px;
  color: var(--muted);
}
.help-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 32px;
  align-items: center;
  margin-bottom: 30px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(120deg, var(--accent-soft), var(--surface) 78%);
}
.help-intro-copy {
  max-width: 580px;
}
.help-eyebrow,
.help-section-label,
.help-menu-label {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.help-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.help-eyebrow .icon {
  width: 16px;
  height: 16px;
}
.help-intro h2 {
  margin: 12px 0 8px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.help-intro p {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.6;
}
.help-quick-links {
  display: grid;
  gap: 8px;
}
.help-quick-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  text-decoration: none;
}
.help-quick-links a:hover {
  border-color: var(--accent);
  background: var(--hover);
}
.help-quick-links a > span {
  flex: 1;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.help-quick-links small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.help-quick-links a > .icon:last-child {
  width: 16px;
  height: 16px;
}
.help-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.help-menu {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 3px;
  padding: 8px 0;
}
.help-menu-label {
  padding: 0 12px 10px;
}
.help-menu a {
  padding: 8px 12px;
  border-left: 2px solid var(--line);
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.help-menu a:hover {
  border-color: var(--accent);
  background: var(--hover);
  color: var(--accent);
}
.help-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.help-content .help-section {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  scroll-margin-top: 20px;
}
.help-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.help-section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.help-content h2 {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.3;
}
.help-content p,
.help-content li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.help-content p + p {
  margin-top: 10px;
}
.help-content strong {
  color: var(--ink);
}
.help-content ul,
.help-content ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}
.help-content p + ol {
  margin-top: 10px;
}
.help-content li::marker {
  color: var(--accent);
}
.help-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.help-roles div {
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
}
.help-roles strong,
.help-roles span {
  display: block;
  font-size: 12px;
}
.help-roles span {
  margin-top: 2px;
  color: var(--muted);
}
.help-example {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: var(--bg);
}
.help-example span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.help-example code {
  color: var(--accent);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.help-example small {
  color: var(--muted);
  font-size: 11px;
}
.help-seasons {
  margin-top: 18px;
}
.help-seasons h3 {
  font-size: 12px;
}
.help-content .chips {
  margin-top: 8px;
}
.account-menu {
  position: fixed;
  right: 32px;
  top: 70px;
  z-index: 50;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 10px;
}
.account-menu .nav-item {
  font-size: 12px;
}
.account-menu-head {
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 7px;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
}
.login-visual {
  background: #eaf0e5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #35472f;
}
.login-visual svg {
  width: min(460px, 100%);
  height: auto;
}
.login-visual h1 {
  font-size: 42px;
  max-width: 380px;
  margin-top: 30px;
  text-align: center;
}
.login-visual p {
  max-width: 300px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 18px;
  color: #6a7a60;
}
.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 440px;
  width: 100%;
  margin: auto;
  padding: 40px;
}
.login-form .brand {
  padding: 0;
  margin-bottom: 45px;
}
.login-form h2 {
  font: 30px var(--serif);
  margin-bottom: 9px;
}
.login-form > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.login-form .form-field {
  margin-bottom: 15px;
}
.google-mark {
  font: bold 18px var(--sans);
  color: #4285f4;
}
.demo-accounts {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 20px;
}
.demo-account {
  width: 100%;
  background: none;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  text-align: left;
  font-size: 12px;
}
.demo-account small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.demo-account .icon {
  margin-left: auto;
  color: var(--muted);
  width: 15px;
}
.startup {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.startup p {
  color: var(--muted);
  font-size: 12px;
}
.startup h1 {
  font-size: 27px;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 420px;
  padding: 15px 19px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 7px;
  box-shadow: var(--shadow);
  z-index: 200;
  font-size: 12px;
  animation: toast-in 0.2s ease-out;
}
.toast.error {
  background: var(--danger);
  color: white;
}
.toast.error .icon-button {
  color: inherit;
  width: 24px;
  min-width: 24px;
  height: 24px;
}
.toast.error .icon-button:hover {
  color: inherit;
  background: #0003;
}
.toast .icon {
  width: 17px;
}
.row-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.row-actions .icon-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
}
.scroll-text {
  overflow-wrap: anywhere;
}
.actions-group {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.fine-print {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.section-divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.progress-bar {
  height: 5px;
  background: var(--line);
  overflow: hidden;
  border-radius: 4px;
  margin-top: 8px;
}
.progress-bar div {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.2s;
}
.progress-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.member-link {
  background: none;
  padding: 0;
  text-align: left;
}
.member-link:hover {
  color: var(--accent);
}
.date-cell {
  white-space: nowrap;
}
.checkbox-field input {
  accent-color: var(--accent);
}
.gate-content {
  max-width: 750px;
  margin: 45px auto;
  padding: 25px;
}
.gate-content .brand {
  padding: 0;
  margin-bottom: 30px;
}
.gate-content h1 {
  margin: 12px 0;
}
.gate-content > p {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 12px;
}
.mobile-scrim {
  display: none;
}
.category-label {
  font-size: 9px;
  color: var(--muted);
}
.danger-text {
  color: var(--danger);
}
.local-badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
}
.local-badge .icon {
  width: 11px;
  height: 11px;
}
body.dark {
  --bg: #20251f;
  --surface: #292f28;
  --sidebar: #252b24;
  --ink: #e2e7dc;
  --muted: #a2aa9b;
  --line: #3b4236;
  --accent: #b4c69f;
  --accent-soft: #36412f;
  --hover: #333b2e;
  --shadow: 0 16px 65px #0004;
  color-scheme: dark;
}
body.dark .button.primary {
  background: #637c50;
  color: white;
  border-color: #637c50;
}
body.dark .welcome-band {
  background: #34402e;
  border-color: #424f39;
}
body.dark .welcome-copy h2 {
  color: #d2dfc1;
}
body.dark .welcome-copy p,
body.dark .welcome-copy .eyebrow {
  color: #adbea0;
}
body.dark .resource-table th {
  background: #262d23;
}
body.dark .nav-item {
  color: #a6ae9e;
}
body.dark .nav-item.active {
  color: var(--accent);
}
body.dark .folder-picture {
  filter: saturate(0.7) brightness(0.8);
}
body.dark .folder-info {
  background: var(--surface);
}
body.dark .callout.warning {
  background: #443b27;
  color: #ddc68f;
}
body.dark .form-errors {
  background: #4b2d28;
  color: #efb2a8;
}
body.dark .pill.green {
  background: #36432d;
  color: #bacda6;
  border-color: #4b5b3d;
}
body.dark .pill.amber {
  background: #433a28;
  color: #d8bd85;
  border-color: #594d35;
}
body.dark .pill.red {
  background: #49332d;
  color: #d9a99b;
  border-color: #66483e;
}
body.dark .pill.blue {
  background: #2b3c45;
  color: #a2bfce;
  border-color: #3a505b;
}
body.dark .pill.purple {
  background: #3d3346;
  color: #c2aacc;
  border-color: #56465f;
}
body.dark .stat-icon {
  filter: brightness(0.7);
}
body.dark .login-visual {
  background: #34402e;
  color: #d2dfc1;
}
body.dark .login-visual p {
  color: #b0c29f;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.content {
  animation: enter 0.25s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1600px) {
  .content {
    padding-top: 40px;
  }
  .folder-picture {
    height: 130px;
  }
  .folder-picture svg {
    height: 122px;
    width: 200px;
  }
  .folder-info {
    padding: 18px;
  }
  .folder-info h3 {
    font-size: 14px;
  }
  .folder-info p {
    font-size: 11px;
  }
  .folder-meta {
    font-size: 10px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 216px minmax(0, 1fr);
  }
  .sidebar {
    width: 216px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .folder-grid {
    gap: 12px;
  }
  .folder-info {
    padding: 12px;
  }
  .folder-info h3 {
    font-size: 11px;
  }
  .folder-info p {
    font-size: 9px;
  }
  .folder-meta {
    font-size: 8px;
  }
  .welcome-art {
    width: 225px;
    opacity: 0.7;
  }
  .welcome-copy {
    max-width: 420px;
  }
  .resource-table td,
  .resource-table th {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand strong {
    font-size: 19px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .top-actions {
    gap: 10px;
  }
}
@media (max-width: 1000px) {
  .folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .folder-info h3 {
    font-size: 13px;
  }
  .folder-info p {
    font-size: 11px;
    min-height: 0;
  }
  .folder-picture {
    height: 112px;
  }
  .folder-picture svg {
    height: 112px;
    width: 185px;
  }
  .folder-meta {
    font-size: 10px;
  }
  .welcome-art {
    width: 190px;
    right: 0;
    opacity: 0.45;
  }
  .welcome-copy {
    max-width: 340px;
  }
  .file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-key {
    display: none;
  }
  .account-name {
    display: none;
  }
  .account-role {
    display: none;
  }
  .filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .resource-table .name-col {
    width: 45%;
  }
  .resource-table .hide-tablet {
    display: none;
  }
  .stats-strip {
    gap: 15px;
  }
  .stat:not(:first-child) {
    padding-left: 16px;
  }
  .stat {
    gap: 8px;
  }
  .stat-icon {
    width: 30px;
    height: 30px;
  }
  .stat strong {
    font-size: 17px;
  }
  .stat-text {
    gap: 5px;
  }
  .help-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
  }
  .page-top h1 {
    font-size: 29px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 242px;
    overflow-y: auto;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-scrim.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #17201666;
    z-index: 29;
  }
  .main-shell {
    width: 100%;
  }
  .topbar {
    height: 66px;
    padding: 0 18px;
    gap: 12px;
  }
  .mobile-menu {
    display: flex;
    min-width: 28px;
    width: 28px;
  }
  .global-search {
    max-width: none;
    gap: 7px;
  }
  .global-search input {
    font-size: 11px;
  }
  .global-search > .icon {
    width: 16px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-divider {
    display: none;
  }
  .account-button {
    gap: 0;
  }
  .account-button > .icon {
    display: none;
  }
  .top-actions > .icon-button {
    width: 29px;
    min-width: 29px;
  }
  .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .content {
    padding: 22px 20px;
  }
  .page-top {
    margin: 9px 0 23px;
    align-items: flex-start;
    gap: 10px;
  }
  .page-top h1 {
    font-size: 28px;
  }
  .page-top p {
    font-size: 11px;
    max-width: 250px;
  }
  .page-top > .button {
    padding: 8px 10px;
    font-size: 11px;
    min-height: 35px;
  }
  .page-top > .button .icon {
    width: 14px;
  }
  .welcome-band {
    padding: 21px;
    min-height: 150px;
  }
  .welcome-copy h2 {
    font-size: 24px;
    max-width: 250px;
  }
  .welcome-copy p {
    max-width: 240px;
    font-size: 10px;
  }
  .welcome-art {
    right: -22px;
    width: 165px;
    opacity: 0.3;
  }
  .stats-strip {
    gap: 10px;
    padding: 20px 0;
  }
  .stat:not(:first-child) {
    padding-left: 12px;
  }
  .stat-icon {
    display: none;
  }
  .stat-text {
    display: block;
  }
  .stat-text .pill {
    display: none;
  }
  .stat strong {
    font-size: 20px;
  }
  .stat span {
    font-size: 9px;
  }
  .folder-grid {
    gap: 12px;
  }
  .folder-info {
    padding: 13px;
  }
  .folder-info h3 {
    font-size: 12px;
  }
  .folder-info p {
    font-size: 10px;
    min-height: 34px;
  }
  .folder-picture {
    height: 100px;
  }
  .folder-picture svg {
    width: 155px;
    height: 100px;
  }
  .folder-meta {
    font-size: 9px;
    margin-top: 10px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .section-controls {
    gap: 10px;
  }
  .resource-table .hide-mobile {
    display: none;
  }
  .resource-table .name-col {
    width: 75%;
  }
  .resource-table td {
    padding: 13px 11px;
  }
  .resource-table th {
    padding: 11px;
  }
  .resource-title strong {
    font-size: 10px;
  }
  .resource-title small {
    font-size: 8px;
  }
  .resource-name {
    gap: 9px;
  }
  .file-icon {
    width: 26px;
    height: 33px;
  }
  .resource-table td:last-child {
    padding-left: 3px;
  }
  .footer {
    font-size: 8px;
    align-items: flex-start;
  }
  .footer div {
    gap: 8px;
  }
  .toolbar {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .toolbar-left {
    width: 100%;
  }
  .field-search {
    flex: 1;
  }
  .field-search input {
    width: 100%;
  }
  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .file-card {
    padding: 13px;
  }
  .file-card .resource-title strong {
    font-size: 11px;
  }
  .file-card p {
    font-size: 10px;
  }
  .file-card-bottom .cell-author span:last-child {
    display: none;
  }
  .file-card-bottom .button {
    font-size: 10px;
    padding: 5px 8px;
    min-height: 30px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    max-height: calc(100dvh - 24px);
  }
  .modal-head,
  .modal-body {
    padding: 18px;
  }
  .modal-foot {
    padding: 14px 18px;
  }
  .form-grid {
    gap: 14px;
  }
  .modal-head h2 {
    font-size: 22px;
  }
  .notification {
    padding: 15px;
    gap: 10px;
  }
  .notification-actions {
    flex-direction: column;
  }
  .notification-icon {
    display: none;
  }
  .notification p {
    font-size: 11px;
  }
  .help-layout {
    display: block;
  }
  .help-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
  .help-menu {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 9px;
    margin-bottom: 16px;
    padding: 0 0 10px;
  }
  .help-menu-label {
    display: none;
  }
  .help-menu a {
    white-space: nowrap;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    font-size: 11px;
  }
  .help-content .help-section {
    padding: 20px;
  }
  .help-content h2 {
    font-size: 19px;
  }
  .help-roles {
    grid-template-columns: 1fr;
  }
  .help-roles div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .help-roles span {
    margin-top: 0;
  }
  .profile-statistics {
    gap: 25px;
  }
  .profile-banner {
    gap: 16px;
  }
  .profile-banner h2 {
    font-size: 25px;
  }
  .profile-form {
    max-width: none;
  }
  .account-menu {
    right: 15px;
    top: 60px;
  }
  .login {
    display: block;
  }
  .login-visual {
    display: none;
  }
  .login-form {
    min-height: 100dvh;
    padding: 30px;
  }
  .gate-content {
    margin: 10px auto;
    padding: 24px;
  }
  .queue-summary {
    gap: 28px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
  .pagination {
    font-size: 10px;
  }
  .pagination .button {
    padding: 6px 8px;
    font-size: 10px;
    min-height: 32px;
  }
  .local-badge {
    display: none;
  }
}
@media (max-width: 390px) {
  .content {
    padding: 19px 15px;
  }
  .page-top h1 {
    font-size: 25px;
  }
  .folder-info {
    padding: 11px;
  }
  .folder-info h3 {
    font-size: 11px;
  }
  .folder-info p {
    font-size: 9px;
  }
  .folder-meta {
    font-size: 8px;
  }
  .folder-picture svg {
    width: 140px;
  }
  .welcome-copy h2 {
    font-size: 22px;
  }
  .welcome-band {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: 1;
  }
  .file-grid {
    grid-template-columns: 1fr;
  }
  .top-actions {
    gap: 2px;
  }
  .global-search input {
    font-size: 10px;
  }
  .footer > span {
    max-width: 180px;
  }
  .section-controls {
    gap: 8px;
  }
}
.folder-card {
  padding: 0;
}
.profile-banner img.avatar {
  object-fit: cover;
}
.avatar {
  object-fit: cover;
}
.notification-content h3 {
  overflow-wrap: anywhere;
}
.modal-body .detail-description {
  white-space: pre-wrap;
}
.page-top > div:first-child {
  min-width: 0;
}
.page-top h1 {
  overflow-wrap: anywhere;
}
.profile-photo {
  position: relative;
  display: inline-flex;
  flex: none;
}
.profile-photo .avatar {
  width: 104px;
  height: 104px;
}
.profile-photo-edit {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.profile-photo-edit .icon {
  width: 20px;
  height: 20px;
}
.profile-photo-edit:hover {
  background: var(--accent-soft);
}
.profile-phone {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: var(--surface);
}
.profile-phone:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.form-field .profile-phone input {
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.form-field .profile-phone .phone-code {
  width: 76px;
  flex: 0 0 76px;
  border-right: 1px solid var(--line);
  background: var(--hover);
  text-align: center;
  font-weight: 600;
  padding: 10px 6px;
}
.profile-phone input[name="phone"] {
  flex: 1;
  width: 100%;
}
.profile-phone input:focus-visible {
  outline: none;
}
.profile-selected-photo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}
.profile-selected-photo[hidden] {
  display: none;
}
@media (max-width: 760px) {
  .page-top {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .page-top > .button,
  .page-top > .actions-group {
    align-self: flex-start;
  }
  .page-top p {
    max-width: none;
  }
  .welcome-art {
    display: none;
  }
  .welcome-copy,
  .welcome-copy p {
    max-width: none;
  }
}
body.dark {
  --bg: #1b1f22;
  --surface: #242a2d;
  --sidebar: #202629;
  --ink: #edf0e9;
  --muted: #b0b7b1;
  --line: #3a4143;
  --accent: var(--primary);
  --accent-soft: #243c2e;
  --hover: #2d3537;
}
body.dark .sage {
  --card-tint: #2e3b31;
  --card-stroke: #b6cba2;
  --card-fill: #718963;
}
body.dark .lilac {
  --card-tint: #383140;
  --card-stroke: #cbb9dc;
  --card-fill: #8e779e;
}
body.dark .blue {
  --card-tint: #293a43;
  --card-stroke: #b0cedc;
  --card-fill: #6c94a7;
}
body.dark .peach {
  --card-tint: #41362d;
  --card-stroke: #dfc0a2;
  --card-fill: #b28c69;
}
body.dark .rose {
  --card-tint: #403135;
  --card-stroke: #dbb4b3;
  --card-fill: #ac7d81;
}
body.dark .gold {
  --card-tint: #3d3929;
  --card-stroke: #d9ca97;
  --card-fill: #a99a60;
}
body.dark .mint {
  --card-tint: #2c3b36;
  --card-stroke: #afd2be;
  --card-fill: #719c88;
}
body.dark .stone {
  --card-tint: #353a37;
  --card-stroke: #c5cec0;
  --card-fill: #8a9883;
}
body.dark .folder-picture,
body.dark .stat-icon {
  filter: none;
}
body.dark .folder-card:hover {
  border-color: #839776;
}
body.dark .folder-meta,
body.dark .nav-item {
  color: var(--muted);
}
body.dark .nav-item.active {
  color: var(--accent);
}
body.dark .nav-item .count,
body.dark .notification-dot {
  color: #19201b;
}
body.dark input::placeholder,
body.dark textarea::placeholder {
  color: #a2ada6;
  opacity: 1;
}
body.dark .avatar,
body.dark .cell-author .avatar {
  background: #414540;
  color: #e5decb;
}
body.dark .stat-icon {
  background: #2e3b31;
  color: #b6cba2;
}
body.dark .stat:nth-child(2) .stat-icon {
  background: #413a2c;
  color: #dfc798;
}
body.dark .stat:nth-child(3) .stat-icon {
  background: #383140;
  color: #cbb9dc;
}
body.dark .file-icon {
  background: #2e3b31;
  border-color: #465b42;
  color: #b6cba2;
}
body.dark .file-icon.pdf {
  background: #403135;
  border-color: #65454a;
  color: #e0b0a7;
}
body.dark .file-icon.pptx {
  background: #41362d;
  border-color: #66503a;
  color: #dfc0a2;
}
body.dark .file-icon.docx {
  background: #293a43;
  border-color: #42606d;
  color: #b0cedc;
}
body.dark .file-icon.mp4 {
  background: #383140;
  border-color: #594666;
  color: #cbb9dc;
}
.file-icon {
  width: auto;
  height: 22px;
  flex-direction: row;
  padding: 3px 5px;
  color: #42633c;
  gap: 3px;
}
.file-icon .icon {
  width: 10px;
  height: 10px;
  flex: none;
}
.file-icon small {
  font-size: 10px;
  line-height: 1;
  margin: 0;
  color: inherit;
  white-space: nowrap;
}
.file-icon.pdf {
  color: #9f4138;
}
.file-icon.pptx {
  color: #815821;
}
.file-icon.docx {
  color: #356582;
}
.file-icon.mp4 {
  color: #775186;
}
.detail-title .file-icon {
  width: auto;
  height: 22px;
}
.detail-title .file-icon small {
  margin: 0;
}
body.dark .form-errors {
  background: #462e2d;
  color: #f1bcb3;
}
body.dark .dropzone {
  border-color: #73866c;
}
h1,
.brand strong,
.welcome-copy h2,
.modal-head h2,
.detail-title h3,
.profile-banner h2,
.help-content h2,
.login-form h2,
.queue-summary strong {
  font-weight: 600;
}
.nav-item {
  font-weight: 500;
}
.folder-picture .folder-arrow .icon {
  width: 13px;
  height: 13px;
}
.folder-list .folder-card {
  position: relative;
}
.folder-list .folder-picture {
  position: static;
}
.folder-list .folder-info h3 {
  padding-right: 32px;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px 7px 15px;
  margin-bottom: 22px;
}
.search-form > .icon {
  color: var(--muted);
}
.search-form input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 9px 0;
  font-size: 14px;
}
.search-form input::placeholder {
  color: var(--muted);
}
.search-form .button {
  flex: none;
  min-height: 38px;
}
:root {
  --primary: #267354;
  --primary-hover: #19573e;
  --primary-ink: #fff;
  --notice: #eef4ef;
  --muted: #5f6c63;
}
body.dark {
  --primary: #96d5af;
  --primary-hover: #b5e8c8;
  --primary-ink: #14231a;
  --notice: #293a31;
  --danger: #f0aaa5;
}
body.dark .button.danger {
  border-color: #65454a;
}
.button.primary,
body.dark .button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
  font-weight: 600;
}
.button.primary:hover,
body.dark .button.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  filter: none;
}
.page-top h1 {
  font-size: 30px;
  line-height: 1.3;
}
.page-top p {
  line-height: 1.65;
}
.actions-group {
  flex-wrap: wrap;
}
.section-heading h2 {
  font-size: 18px;
  font-weight: 600;
}
.section-heading p {
  font-size: 12px;
  line-height: 1.6;
}
.filter-panel label,
.form-field {
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
}
.filter-panel input,
.filter-panel select {
  min-width: 0;
}
.loading-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.startup.startup-loading {
  display: block;
  min-height: 100dvh;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: left;
}
.startup-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  margin-bottom: 48px;
}
.startup-brand img {
  flex: none;
  width: 42px;
  height: 42px;
  margin: 0;
}
.startup-brand h1 {
  font-size: 24px;
  overflow-wrap: anywhere;
}
.loading-skeleton[hidden] {
  display: none;
}
.loading-skeleton {
  display: grid;
  gap: 28px;
}
.skeleton {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}
.skeleton:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    var(--surface) 50%,
    transparent 80%
  );
  opacity: 0.65;
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}
.skeleton-heading {
  display: grid;
  gap: 14px;
}
.skeleton-title {
  width: 42%;
  max-width: 320px;
  height: 28px;
}
.skeleton-subtitle {
  width: 65%;
  max-width: 440px;
  height: 12px;
}
.skeleton-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.skeleton-toolbar .skeleton:first-child {
  width: 150px;
  height: 32px;
}
.skeleton-toolbar .skeleton:last-child {
  width: 96px;
  height: 32px;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.skeleton-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.skeleton-picture {
  height: 118px;
  border-radius: 0;
}
.skeleton-line {
  height: 12px;
  margin: 0 14px;
}
.skeleton-short {
  height: 10px;
  width: 52%;
  margin: 0 14px;
}
@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}
.refresh-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  background: var(--line);
  z-index: 100;
  overflow: hidden;
}
.refresh-progress[hidden] {
  display: none;
}
.refresh-progress:after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--primary);
  animation: refresh-slide 1.4s ease-in-out infinite alternate;
}
.refresh-error {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid var(--danger);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
}
.refresh-error > span {
  flex: 1;
  min-width: 120px;
}
.refresh-error > .icon {
  color: var(--danger);
}
button.is-loading {
  position: relative;
  color: transparent !important;
  cursor: wait;
  opacity: 0.8;
}
button.is-loading > * {
  visibility: hidden;
}
button.is-loading:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid var(--ink);
  border-right-color: transparent;
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}
button.primary.is-loading:after {
  border-color: #fff;
  border-right-color: transparent;
}
@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes refresh-slide {
  to {
    transform: translateX(150%);
  }
}
@media (max-width: 1000px) {
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .startup.startup-loading {
    padding: 28px 20px;
  }
  .startup-brand {
    margin-bottom: 32px;
  }
  .startup-brand h1 {
    font-size: 20px;
  }
  .skeleton-grid {
    gap: 12px;
  }
  .skeleton-picture {
    height: 100px;
  }
  .skeleton-title {
    width: 65%;
  }
  .skeleton-subtitle {
    width: 85%;
  }
}
.sidebar-attribution {
  grid-column: 1/-1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
}
.sidebar-attribution-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.sidebar-service {
  display: flex;
  align-items: center;
  flex: none;
  color: inherit;
  text-decoration: none;
}
.sidebar-service:hover .service-logo {
  box-shadow: 0 0 0 1px var(--accent);
}
.sidebar-service-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
}
.sidebar-service-copy:hover strong {
  text-decoration: underline;
}
.sidebar-service-copy strong {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-logo {
  display: block;
  width: 48px;
  height: 43px;
  object-fit: contain;
  flex: none;
  background: #fff;
  padding: 3px;
  border-radius: 4px;
}
.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  min-height: 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}
.developer-credit > .developer-heart {
  font-size: 9px;
  line-height: 1;
  flex: none;
}
.developer-credit strong {
  color: var(--primary);
  font-weight: 600;
}
.developer-credit:hover strong {
  text-decoration: underline;
}
.developer-profile {
  display: grid;
  gap: 20px;
}
.developer-identity {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.developer-photo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}
.developer-identity h3 {
  font-size: 20px;
  font-weight: 600;
}
.developer-identity p {
  font-size: 12px;
  margin-top: 4px;
}
.developer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.developer-links .button {
  text-decoration: none;
  white-space: normal;
}
.folder-picker {
  min-width: 0;
  width: 100%;
}
.folder-picker-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}
.folder-picker-trigger > .icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}
.folder-picker-value {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.folder-picker-trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.folder-picker-trigger[aria-invalid="true"] {
  border-color: var(--danger);
}
.folder-picker-error {
  color: var(--danger);
  font-size: 11px;
  font-weight: 400;
}
.folder-picker-error:not([hidden]) {
  display: block;
  margin-top: 5px;
}
.folder-tree [role="treeitem"]:focus {
  outline: none;
}
.folder-tree [role="treeitem"]:focus > .folder-tree-row {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.folder-picker-trigger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.folder-tree {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 4px;
  max-width: calc(100vw - 24px);
  max-height: 360px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 28px #0002;
  list-style: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.folder-tree::backdrop {
  background: transparent;
}
.folder-tree ul,
.folder-tree li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.folder-tree-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 3px 6px 3px calc(5px + var(--folder-depth) * 14px);
  border-radius: 3px;
  cursor: pointer;
}
.folder-tree-row > .icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted);
}
.folder-tree-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.folder-tree-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 16px;
  flex: none;
}
.folder-tree-toggle .icon {
  width: 14px;
  height: 14px;
}
.folder-tree
  [aria-expanded="true"]
  > .folder-tree-row
  .folder-tree-toggle
  .icon {
  transform: rotate(90deg);
}
.folder-tree-row:hover,
.folder-tree [role="treeitem"]:focus > .folder-tree-row {
  background: var(--notice);
}
.folder-tree [aria-selected="true"] > .folder-tree-row {
  background: var(--notice);
  color: var(--primary);
  font-weight: 600;
}
.folder-tree .folder-tree-check {
  opacity: 0;
  color: var(--primary);
}
.folder-tree [aria-selected="true"] > .folder-tree-row > .folder-tree-check {
  opacity: 1;
}
.folder-tree [aria-disabled="true"] > .folder-tree-row {
  opacity: 0.5;
  cursor: not-allowed;
}
.toolbar-left {
  min-width: 0;
  flex-wrap: wrap;
}
.toolbar [role="status"] {
  overflow-wrap: anywhere;
}
.text-button {
  font-weight: 600;
}
.home-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  margin-bottom: 22px;
  padding: 12px 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.saint-paul-art {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 320/340;
  justify-self: center;
}
.hero-verse {
  margin: 0;
  min-width: 0;
  padding: 14px 0;
}
.verse-eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}
.hero-verse blockquote {
  margin: 0;
  max-width: 44ch;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}
.hero-verse blockquote em {
  color: var(--primary);
  font-weight: 600;
  font-style: normal;
}
.hero-verse figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
}
.hero-verse figcaption::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--primary);
  flex: none;
}
.hero-verse cite {
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
@media (max-width: 1200px) {
  .home-hero {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
    padding: 12px 24px;
  }
  .saint-paul-art {
    width: 180px;
  }
  .hero-verse blockquote {
    font-size: 26px;
  }
}
@media (max-width: 760px) {
  .home-hero {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;
    padding: 16px 10px;
    margin-bottom: 18px;
  }
  .saint-paul-art {
    width: 100px;
  }
  .hero-verse {
    padding: 0;
  }
  .verse-eyebrow {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .hero-verse blockquote {
    font-size: 20px;
    line-height: 1.4;
  }
  .hero-verse figcaption {
    margin-top: 12px;
    gap: 8px;
  }
  .hero-verse cite {
    font-size: 10px;
  }
  .hero-verse figcaption::before {
    width: 16px;
  }
}
@media (max-width: 390px) {
  .home-hero {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 6px;
  }
  .saint-paul-art {
    width: 88px;
  }
}
.home-notice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 18px;
  background: var(--notice);
  border-left: 3px solid var(--primary);
}
.home-notice > .icon {
  color: var(--primary);
  margin-top: 3px;
}
.home-notice h2 {
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.home-notice small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.home-notice p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 4px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.home-notice .text-button {
  align-self: center;
  gap: 6px;
  display: inline-flex;
  align-items: center;
}
.stats-strip {
  padding: 20px 0;
}
@media (max-width: 760px) {
  .page-top h1 {
    font-size: 27px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .home-notice {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    padding: 15px;
  }
  .home-notice .text-button {
    grid-column: 2;
    justify-self: start;
  }
  .search-form {
    gap: 9px;
    padding-left: 12px;
  }
  .search-form input {
    font-size: 12px;
  }
  .search-form .button {
    font-size: 12px;
    padding: 9px 12px;
  }
}
.modal:has(.resource-detail, .request-detail) {
  width: min(1000px, 100%);
}
.modal-head h2 {
  font-size: 20px;
  line-height: 1.4;
}
.resource-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
}
.resource-preview,
.resource-info,
.request-summary,
.review-sidebar {
  min-width: 0;
}
.surface-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 14px;
}
.metadata-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin: 15px 0 7px;
}
.resource-preview .file-preview {
  min-height: 330px;
  margin: 0;
  padding: 22px;
  gap: 14px;
}
.resource-preview .file-preview > .icon {
  width: 36px;
  height: 36px;
}
.resource-preview .file-preview img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}
.resource-preview .file-preview pre {
  max-width: 100%;
  width: 100%;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
}
.resource-preview .name-preview {
  font-size: 11px;
  margin: 0;
  overflow-wrap: anywhere;
}
.resource-metadata .file-id {
  font:
    12px/1.5 Consolas,
    monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
.country-label {
  display: inline-flex;
  align-items: baseline;
  vertical-align: baseline;
  gap: 0.4em;
  line-height: 1.3;
  min-width: 0;
}
.country-label > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.country-flag {
  align-self: center;
  width: 1.33em;
  height: 1em;
  flex: none;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--line);
}
.country-select {
  position: relative;
  min-width: 0;
}
.country-select-trigger {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}
.country-select-trigger > .country-label {
  min-width: 0;
}
.country-select-trigger > .icon {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.country-select-trigger[aria-expanded="true"] {
  border-color: var(--accent);
}
.country-select-trigger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.country-select-placeholder {
  color: var(--muted);
}
.country-select-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9;
}
.country-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 400;
}
.country-search {
  width: 100%;
  margin: 0;
  min-width: 0;
}
.country-select-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}
.country-option {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 7px 8px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}
.country-option:hover,
.country-option:focus-visible {
  background: var(--accent-soft);
}
.country-option[aria-selected="true"] {
  color: var(--accent);
  font-weight: 600;
}
.country-select-empty {
  margin: 0;
  padding: 8px;
  color: var(--muted);
}
.detail-title {
  align-items: flex-start;
}
.detail-title > div {
  min-width: 0;
}
.detail-title h3 {
  font-size: 19px;
  line-height: 1.4;
}
.detail-description {
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.resource-metadata {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 15px 12px;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.resource-metadata dt {
  font-size: 11px;
  color: var(--muted);
}
.resource-metadata dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.resource-metadata .cell-author {
  padding: 0;
  text-align: left;
  white-space: normal;
}
.resource-metadata .cell-author span:last-child {
  overflow-wrap: anywhere;
}
.request-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(230px, 1fr);
  gap: 28px;
}
.request-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.request-heading > div {
  min-width: 0;
}
.request-heading h3 {
  font-size: 20px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.request-heading small {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.request-heading .pill {
  flex: none;
}
.review-sidebar {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.decision-actions {
  display: grid;
  gap: 9px;
}
.decision-actions .button {
  justify-content: flex-start;
  white-space: normal;
  text-align: left;
  min-height: 40px;
  font-size: 12px;
}
.request-history {
  margin-top: 26px;
}
.request-history:first-child {
  margin-top: 0;
}
.request-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.request-timeline li {
  position: relative;
  margin-left: 5px;
  padding: 0 0 22px 20px;
  border-left: 1px solid var(--line);
}
.request-timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.request-timeline li::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  left: -5px;
  top: 4px;
  border-radius: 50%;
  background: var(--primary);
}
.request-timeline strong {
  font-size: 12px;
  font-weight: 600;
}
.request-timeline p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.request-timeline small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.review-reason {
  padding: 8px 12px;
  border-left: 3px solid var(--primary);
  background: var(--notice);
  margin: 4px 0 16px;
}
.review-reason .surface-title {
  margin: 0 0 4px;
}
.review-reason blockquote {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.request-files {
  margin-top: 6px;
}
.request-files .selected-file {
  gap: 10px;
}
.request-files .file-icon small {
  margin-left: 0;
  color: inherit;
}
.request-files .resource-title {
  flex: 1;
  min-width: 0;
  white-space: normal;
}
.request-files .resource-title strong {
  overflow-wrap: anywhere;
}
.request-files .selected-file > small {
  flex: none;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .resource-detail,
  .request-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .resource-preview .file-preview {
    min-height: 220px;
    padding: 18px;
  }
  .review-sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }
  .resource-metadata {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 12px 10px;
  }
  .detail-title h3,
  .request-heading h3 {
    font-size: 18px;
  }
  .request-heading {
    flex-wrap: wrap;
  }
  .request-files .selected-file {
    flex-wrap: wrap;
  }
  .request-files .selected-file > small {
    margin-left: auto;
  }
  .modal-foot .button {
    font-size: 12px;
    min-height: 36px;
  }
  .resource-actions .button {
    font-size: 11px;
    min-height: 34px;
  }
}
.view-switch {
  flex-shrink: 0;
}
.view-switch button {
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
}
.section-heading > div:first-child {
  min-width: 0;
}
.queue-table:has(.table-actions-col) {
  min-width: 900px;
}
.resource-table.queue-table .name-col {
  width: 40%;
}
.resource-table .table-actions-col {
  width: 140px;
  white-space: nowrap;
}
.resource-table .table-actions-col.icon-actions-col {
  width: 72px;
  text-align: right;
}
.resource-table .resource-actions-col {
  width: 66px;
  text-align: right;
}
:root {
  --sidebar-width: 236px;
}
.shell {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}
.sidebar {
  width: var(--sidebar-width);
  height: 100dvh;
  padding: 0;
  overflow: hidden;
}
.sidebar .brand {
  flex: none;
  gap: 11px;
  width: 100%;
  padding: 25px 23px 22px;
  margin: 0;
}
.sidebar .brand img {
  width: 39px;
  height: 39px;
  flex: none;
}
.sidebar .brand strong {
  font: 600 16px/1.35 var(--sans);
}
.sidebar .brand small {
  font-size: 11px;
  letter-spacing: 0;
  margin-top: 3px;
}
.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 14px 16px;
  scrollbar-width: thin;
}
.sidebar .nav-label {
  font-size: 10px;
  letter-spacing: 0;
  color: var(--muted);
  padding: 18px 12px 8px;
}
.sidebar .nav-item {
  gap: 11px;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 5px;
  color: var(--muted);
}
.sidebar .nav-item.active {
  color: var(--accent);
  font-weight: 600;
}
.sidebar .nav-item > .icon {
  width: 17px;
  height: 17px;
}
.sidebar .nav-item > span:not(.count) {
  min-width: 0;
}
.sidebar .nav-item .count {
  flex: none;
  white-space: nowrap;
}
.sidebar-foot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  flex: none;
  margin: 0;
  padding: 12px 14px 13px;
  border-top: 1px solid var(--line);
}
.sidebar-account {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  background: transparent;
  padding: 2px 0;
  text-align: left;
  border-radius: 5px;
}
.sidebar-account:hover {
  background: var(--hover);
}
.sidebar-account > .avatar {
  width: 32px;
  height: 32px;
  flex: none;
}
.sidebar-account > span:not(.avatar) {
  flex: 1;
  min-width: 0;
}
.sidebar-account strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-account small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.sidebar-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sidebar-tools > .icon-button {
  width: 28px;
  height: 32px;
  min-width: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
}
.sidebar-tools > .icon-button:hover {
  background: var(--accent-soft);
}
.sidebar-tools > .icon-button .icon {
  width: 17px;
  height: 17px;
}
.upload-progress {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 16px rgb(37 51 39 / 0.05);
}
.upload-progress[hidden] {
  display: none;
}
.upload-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.upload-progress-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.upload-progress-step {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.upload-progress-title strong {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.upload-progress-percent {
  flex: none;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.upload-progress progress {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--line);
  accent-color: var(--primary);
}
.upload-progress progress::-webkit-progress-bar {
  background: var(--line);
  border-radius: 4px;
}
.upload-progress progress::-webkit-progress-value {
  background: var(--primary);
  border-radius: 4px;
}
.upload-progress progress::-moz-progress-bar {
  background: var(--primary);
  border-radius: 4px;
}
.upload-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.upload-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.upload-metrics .icon {
  width: 12px;
  height: 12px;
  flex: none;
}
.upload-metrics-elapsed {
  margin-left: auto;
}
.upload-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}
.upload-stages li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
}
.upload-stage-marker {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
}
.upload-stage-marker > .icon {
  width: 13px;
  height: 13px;
}
.upload-stages li[data-state="active"] .upload-stage-marker {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  animation: upload-pulse 1.4s ease-out infinite;
}
.upload-stages li[data-state="complete"] .upload-stage-marker {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.upload-stages li[data-state="active"] {
  color: var(--ink);
  font-weight: 600;
}
.upload-stages li[data-state="complete"] {
  color: var(--primary);
  font-weight: 600;
}
.upload-stages li[data-state="failed"],
.upload-progress[data-state="failed"] #upload-status {
  color: var(--danger);
}
.upload-spinner {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: upload-spin 0.8s linear infinite;
}
.upload-progress .upload-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.upload-progress .upload-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  flex: none;
  color: var(--accent);
}
#upload-form[aria-busy="true"] .dropzone {
  pointer-events: none;
  opacity: 0.65;
}
@keyframes upload-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes upload-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(38 115 84 / 0.35);
  }
  100% {
    box-shadow: 0 0 0 8px rgb(38 115 84 / 0);
  }
}
@media (max-width: 480px) {
  .upload-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .upload-spinner,
  .upload-stages li[data-state="active"] .upload-stage-marker {
    animation: none;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
  }
}
.sidebar .sidebar-search {
  flex: none;
  width: calc(100% - 28px);
  max-width: none;
  min-width: 0;
  height: 38px;
  margin: 0 14px 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 9px;
  gap: 7px;
  background: var(--surface);
}
.sidebar-search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sidebar-search > .icon {
  width: 16px;
  height: 16px;
}
.sidebar-search input {
  min-width: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.5;
}
.sidebar-search input:focus-visible {
  outline: none;
}
.sidebar-search-submit {
  width: 22px;
  height: 24px;
  flex: none;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 3px;
}
.sidebar-search-submit .icon {
  width: 14px;
  height: 14px;
}
.sidebar-tools .account-menu {
  position: absolute;
  top: auto;
  bottom: calc(100% + 8px);
  left: auto;
  right: 0;
  width: calc(var(--sidebar-width) - 28px);
  max-width: none;
  max-height: min(360px, calc(100dvh - 150px));
  overflow-y: auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.page-heading > div {
  min-width: 0;
}
.page-heading > .mobile-menu {
  display: none;
}
@media (min-width: 761px) and (max-width: 1200px) {
  :root {
    --sidebar-width: 226px;
  }
  .sidebar .brand {
    padding-left: 18px;
    padding-right: 18px;
  }
  .sidebar-nav {
    padding-left: 10px;
    padding-right: 10px;
  }
  .sidebar .nav-item {
    gap: 9px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .sidebar .nav-item .count {
    min-width: 18px;
    padding-left: 4px;
    padding-right: 4px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    width: 236px;
    overflow: hidden;
  }
  .page-heading > .mobile-menu {
    display: flex;
    flex: none;
    min-width: 32px;
    width: 32px;
    height: 34px;
    margin-top: 1px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 5px;
  }
  .page-top > .actions-group {
    margin-left: 44px;
    max-width: calc(100% - 44px);
  }
}

:root {
  --motion-fast: 140ms;
  --motion-normal: 220ms;
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
.content {
  animation: hub-fade-in 180ms ease-out;
}
.folder-grid > .folder-card,
.folder-list > .folder-card,
.file-grid > .file-card,
.stats-strip > .stat {
  animation: hub-item-in 280ms var(--motion-ease) backwards;
}
:is(.folder-grid, .folder-list, .file-grid, .stats-strip) > :nth-child(2) {
  animation-delay: 35ms;
}
:is(.folder-grid, .folder-list, .file-grid, .stats-strip) > :nth-child(3) {
  animation-delay: 70ms;
}
:is(.folder-grid, .folder-list, .file-grid, .stats-strip) > :nth-child(4) {
  animation-delay: 105ms;
}
:is(.folder-grid, .folder-list, .file-grid) > :nth-child(n + 5) {
  animation-delay: 120ms;
}
.welcome-band,
.profile-banner,
.empty-state {
  animation: hub-fade-in 280ms ease-out;
}
.folder-card,
.file-card {
  transition:
    transform var(--motion-normal) var(--motion-ease),
    border-color var(--motion-fast),
    box-shadow var(--motion-normal);
}
.folder-arrow {
  transition:
    opacity var(--motion-fast),
    translate var(--motion-normal) var(--motion-ease);
}
.button,
.icon-button,
.text-button,
.nav-item,
.chip,
.tab,
.view-switch button,
.sidebar-account,
.developer-credit {
  transition:
    background-color var(--motion-fast),
    border-color var(--motion-fast),
    color var(--motion-fast),
    box-shadow var(--motion-fast),
    scale var(--motion-fast) var(--motion-ease);
}
input,
select,
textarea,
.folder-picker-trigger,
.folder-tree-row {
  transition:
    border-color var(--motion-fast),
    background-color var(--motion-fast),
    box-shadow var(--motion-fast);
}
.folder-picker-trigger > .icon:last-child {
  transition: rotate var(--motion-normal) var(--motion-ease);
}
.folder-picker-trigger[aria-expanded="true"] > .icon:last-child {
  rotate: 180deg;
}
.modal-backdrop {
  animation: hub-fade-in 160ms ease-out;
}
.modal {
  animation: hub-dialog-in var(--motion-normal) var(--motion-ease);
}
.account-menu {
  transform-origin: bottom right;
  animation: hub-menu-in 160ms var(--motion-ease);
}
.folder-tree:popover-open {
  animation: hub-fade-in 140ms ease-out;
}
.toast {
  animation: hub-toast-in var(--motion-normal) var(--motion-ease);
}
.refresh-error {
  animation: hub-fade-in 180ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .folder-card:hover,
  .file-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 16px rgb(0 0 0 / 0.08);
  }
  .folder-card:hover .folder-arrow {
    translate: 2px 0;
  }
  .file-card:hover {
    border-color: var(--primary);
  }
  .button:not(:disabled):active,
  .icon-button:not(:disabled):active,
  .view-switch button:not(:disabled):active {
    scale: 0.97;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transition: transform 240ms var(--motion-ease);
  }
  .mobile-scrim.open {
    animation: hub-fade-in 180ms ease-out;
  }
}
@keyframes hub-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes hub-item-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes hub-dialog-in {
  from {
    opacity: 0;
    translate: 0 10px;
    scale: 0.985;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes hub-menu-in {
  from {
    opacity: 0;
    translate: 0 5px;
    scale: 0.98;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
/* Chips, status badges and file-type icons. Kept last so they supersede the earlier
   prototype rules for the same components. */
.pill {
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.3;
}
.pill .icon {
  width: 12px;
  height: 12px;
  flex: none;
}
.pill.neutral {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
}
body.dark .pill.neutral {
  background: var(--hover);
}
.chips {
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.chip:hover:not(:disabled) {
  color: var(--ink);
  border-color: #c1cdb5;
  transform: translateY(-1px);
}
.chip.active {
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #c1cdb5;
}
.chip .icon {
  width: 13px;
  height: 13px;
  flex: none;
}
.manage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.manage-head-text {
  flex: 1;
  min-width: 0;
}
.manage-head-text h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.manage-head-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.manage-head .pill {
  flex: none;
  align-self: center;
}
.modal-body .section-divider {
  margin: 16px 0;
}
.profile-hero {
  padding: 26px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 65%);
  box-shadow: 0 6px 24px rgb(37 51 39 / 0.06);
}
.profile-hero .avatar {
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--accent-soft);
}
.profile-hero h2 {
  margin-bottom: 4px;
}
.profile-hero p.muted {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 13px;
}
.profile-hero p.muted .icon {
  width: 13px;
  height: 13px;
  color: var(--accent);
  flex: none;
}
.profile-stats {
  margin: 0 0 26px;
}
.member-details-grid {
  display: grid;
  margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.member-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  min-width: 0;
}
.member-detail-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.member-detail-icon .icon {
  width: 18px;
  height: 18px;
}
.member-detail small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.member-detail strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.form-section {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.form-section:first-child {
  margin-top: 0;
}
.form-section .icon {
  width: 15px;
  height: 15px;
  flex: none;
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
.gate-card {
  max-width: 780px;
  margin: 48px auto;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.gate-card .gate-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.gate-card .gate-badge .icon {
  width: 26px;
  height: 26px;
}
.gate-card .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.gate-card .eyebrow .icon {
  width: 12px;
  height: 12px;
}
.resource-preview,
.resource-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.resource-info .detail-title {
  gap: 14px;
  align-items: center;
}
.resource-info .detail-title .file-icon {
  flex-direction: column;
  width: 52px;
  height: 58px;
  padding: 8px 4px;
  border-radius: 8px;
}
.resource-info .detail-title .file-icon .icon {
  width: 20px;
  height: 20px;
}
.resource-info .detail-title .file-icon small {
  font-size: 9px;
  line-height: 1.2;
}
.resource-info .detail-title h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.detail-meta-row .icon {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: -2px;
}
.resource-metadata {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.resource-metadata dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.resource-metadata dt .icon {
  width: 13px;
  height: 13px;
  color: var(--accent);
  flex: none;
}
.resource-metadata dd .chip {
  cursor: default;
  font-size: 12px;
}
.resource-metadata dd .chip:hover {
  transform: none;
}
.resource-actions {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.resource-actions-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.resource-actions-label .icon {
  width: 13px;
  height: 13px;
  color: var(--accent);
  flex: none;
}
.resource-actions .actions-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}/* The popover stays inside the sidebar (which clips overflow), so it can only grow to the sidebar's content width. */
.sidebar-tools .account-menu {
  width: calc(var(--sidebar-width) - 17px);
}
.account-menu-head {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.filter-row > .muted {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.empty-state > .icon {
  width: 52px;
  height: 52px;
  padding: 13px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.file-icon[class*="kind-"] {
  color: var(--kind);
  background: var(--kind-bg);
  border-color: var(--kind-line);
}
.file-icon.kind-pdf { --kind: #bc7972; --kind-bg: #faf0ed; --kind-line: #f0dcd7; }
.file-icon.kind-doc { --kind: #7f9bad; --kind-bg: #edf4f9; --kind-line: #dae7ef; }
.file-icon.kind-sheet { --kind: #7f9a6a; --kind-bg: #eef5e8; --kind-line: #dbe8cf; }
.file-icon.kind-slides { --kind: #b79568; --kind-bg: #faf4e9; --kind-line: #f0e5d0; }
.file-icon.kind-image { --kind: #5f9d98; --kind-bg: #eaf6f4; --kind-line: #cfe8e4; }
.file-icon.kind-video { --kind: #aa90b5; --kind-bg: #f6f0f9; --kind-line: #e9dcf0; }
.file-icon.kind-design { --kind: #b7839f; --kind-bg: #f8eef4; --kind-line: #eeddea; }
.file-icon.kind-text,
.file-icon.kind-other { --kind: #859c76; --kind-bg: #f4f7f0; --kind-line: #dce4d6; }
body.dark .file-icon.kind-pdf { --kind: #e0a39c; --kind-bg: #3a2a28; --kind-line: #54403d; }
body.dark .file-icon.kind-doc { --kind: #a9c2d2; --kind-bg: #263540; --kind-line: #3a4e5b; }
body.dark .file-icon.kind-sheet { --kind: #a9c99a; --kind-bg: #2a3626; --kind-line: #3f5039; }
body.dark .file-icon.kind-slides { --kind: #d6b98c; --kind-bg: #3a3224; --kind-line: #54492f; }
body.dark .file-icon.kind-image { --kind: #97cbc5; --kind-bg: #233a38; --kind-line: #37534f; }
body.dark .file-icon.kind-video { --kind: #cbb9dc; --kind-bg: #383140; --kind-line: #594666; }
body.dark .file-icon.kind-design { --kind: #d9b0c8; --kind-bg: #3a2b35; --kind-line: #574250; }
body.dark .file-icon.kind-text,
body.dark .file-icon.kind-other { --kind: #b4c69f; --kind-bg: #2e352b; --kind-line: #444d3f; }
.upload-file-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  align-items: stretch;
}
.upload-file-row textarea {
  min-height: 0;
  height: auto;
  flex: none;
}
#upload-form .checkbox-field {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--motion-fast), background-color var(--motion-fast);
}
#upload-form .checkbox-field:hover {
  border-color: #c1cdb5;
}
#upload-form .checkbox-field:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
#upload-form .checkbox-field input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
}
#upload-form .name-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  overflow-wrap: anywhere;
}
#upload-form .name-preview .icon {
  width: 16px;
  height: 16px;
  flex: none;
}
.upload-file-row > .form-field {
  min-width: 0;
}
.upload-file-row .dropzone {
  flex: 1 0 auto;
  /* Matches the three-row description box beside it. */
  min-height: 73px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 18px;
  text-align: left;
  transition: border-color var(--motion-fast), background-color var(--motion-fast);
}
.upload-file-row .dropzone:hover,
.upload-file-row .dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.upload-file-row .dropzone > .icon {
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 8px;
  box-sizing: content-box;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
}
.upload-file-row .dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.upload-file-row .dropzone-text small {
  color: var(--muted);
  margin: 0;
}
.upload-file-row .selected-file {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
@media (max-width: 760px) {
  .upload-file-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
@keyframes hub-toast-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .folder-card:hover,
  .file-card:hover {
    transform: none;
  }
  .folder-card:hover .folder-arrow {
    translate: none;
  }
  .button:not(:disabled):active,
  .icon-button:not(:disabled):active,
  .view-switch button:not(:disabled):active {
    scale: none;
  }
}

/* Blazor shell additions layered on the prototype design system. */
:root { --sidebar-width: 242px; }

body.modal-open { overflow: hidden; }

.sidebar { width: var(--sidebar-width); }
.shell { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }

.sidebar-nav a.nav-item { text-decoration: none; }
.sidebar-nav a.nav-item:visited { color: #6f766c; }
.sidebar-nav a.nav-item.active { color: var(--accent); }
body.dark .sidebar-nav a.nav-item:visited { color: var(--muted); }
body.dark .sidebar-nav a.nav-item.active { color: var(--accent); }

.account-menu form { margin: 0; }
.account-menu form .nav-item { width: 100%; }

.modal-open .mobile-scrim { display: none; }

.startup-note { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }

.file-card .resource-title { width: 100%; }
.file-card .file-card-bottom .icon-button { flex: none; }

.form-hint { font-weight: 400; font-size: 10px; color: var(--muted); margin-top: 4px; }
.required-mark { color: var(--danger); }

/* .callout already defaults to the info/success treatment (accent-soft on accent) and
   .callout.warning overrides it. The .info and .success names are aliases so a call site
   states which message it is instead of relying on the bare default. */
.callout.info,
.callout.success { background: var(--accent-soft); color: var(--accent); }

/* The login page has no intro paragraph any more: its callout sits directly under the
   heading, where 15px is too tight and the old 24px paragraph gap was too loose.
   .login-form is a flex column, so adjacent margins do not collapse - without the
   second rule an error above the callout leaves 15px + 15px of dead space. */
.login-form h2 + .callout { margin-top: 14px; }
.login-form h2 + .form-errors { margin-top: 6px; }
.login-form .form-errors + .callout { margin-top: 0; }
.login-form .callout { font-size: 11.5px; }
.login-form .callout strong { font-weight: 600; }

/* The design system leaves anchors underlined and only un-styles the ones it knows about
   (.folder-card, .breadcrumb a, sidebar links). A <a> that carries .button therefore
   rendered its label underlined, e.g. "Continue with Google" on the sign-in page. Buttons
   are not links for presentation purposes: no underline.
   Colour is intentionally not set here - the base rules above already declare
   `.button.primary, body.dark .button.primary { color: var(--primary-ink) }`, so the
   label stays white on green in light mode and dark ink on pale green in dark mode. */
a.button,
a.text-button { text-decoration: none; }

/* FocusOnNavigate (Routes.razor) moves focus to the page's h1 after navigation so
   screen readers announce it. Blazor gives that heading tabindex="-1", and Chromium
   then paints its default focus ring, which follows the Windows accent colour, so a
   gold border flashes on load. The heading is not a tab stop: keyboard users still
   get the green :focus-visible ring on every real control. */
h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus-visible,
[role="main"][tabindex="-1"]:focus,
[role="main"][tabindex="-1"]:focus-visible {
    outline: none;
}

.radio-chips .chip { cursor: pointer; }
.radio-chips .chip.active { background: var(--accent-soft); border-color: #c1cdb5; color: var(--accent); }

/* Avatar.razor draws the initials first and lays the picture over them, so a picture
   that fails to load falls back to the monogram instead of a broken-image icon.
   overflow:hidden keeps the cover-fitted image inside the circular frame. */
.avatar { position: relative; overflow: hidden; }
.avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: inherit; }

/* Email notifications are a switch, not a select. The select offered a third
   "Choose an option" state that the profile gate refused, and the setting is a plain
   yes/no that an invited member almost always wants left on.
   The base rules size every checkbox in a .form-field at 15px, so the track is styled on the
   input itself with a higher-specificity selector rather than on a wrapper element. */
.form-field .switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; }
.form-field .switch input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: none;
    width: 38px;
    height: 22px;
    margin: 0;
    border-radius: 999px;
    background: #d9ded6;
    cursor: pointer;
    transition: background var(--motion-fast) var(--motion-ease);
}
.form-field .switch input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px #25332733;
    transition: transform var(--motion-fast) var(--motion-ease);
}
.form-field .switch input[type="checkbox"]:checked { background: var(--accent); }
.form-field .switch input[type="checkbox"]:checked::after { transform: translateX(16px); }
.form-field .switch input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-state { font-size: 12px; color: var(--muted); }
body.dark .form-field .switch input[type="checkbox"] { background: #414540; }
body.dark .form-field .switch input[type="checkbox"]::after { background: #e5decb; }
body.dark .form-field .switch input[type="checkbox"]:checked { background: var(--accent); }

.modal .modal-body { overscroll-behavior: contain; }
.modal .form-errors:empty { display: none; }

.profile-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }

/* .profile-banner already closes with its own rule, and .detail-grid added a second
   border-top 24px lower, so the member profile showed two parallel lines under the
   role pill. Keep one divider. */
.detail-grid { border-top: 0; }

/* Same doubled line on the own-profile page: the banner's bottom rule sits directly
   above the statistics' top rule. */
.profile-statistics { border-top: 0; }

.tree-popover { position: relative; }
.folder-tree { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; max-height: 320px; }
.folder-tree[hidden] { display: none; }
.tree-spacer { width: 14px; flex: none; }
.tree-scrim { position: fixed; inset: 0; z-index: 59; background: transparent; }
.folder-card, .breadcrumb a { text-decoration: none; color: inherit; }
.folder-tree [role="treeitem"] { outline: none; }
.folder-tree [role="treeitem"]:focus-within > .folder-tree-row { outline: 2px solid var(--primary); outline-offset: -2px; }

.file-preview-frame { width: 100%; min-height: 320px; border: 0; border-radius: 4px; background: var(--surface); }
.file-preview-text { white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; font-size: 11px; margin: 0; }

.report-reason { white-space: pre-wrap; overflow-wrap: anywhere; }

.search-count { font-size: 11px; color: var(--muted); }
.search-filter-summary { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.visit-link { color: var(--accent); }
.no-wrap { white-space: nowrap; }
.center { text-align: center; }
.stack { display: grid; gap: 14px; }

.danger-zone { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }

.skeleton-page { display: grid; gap: 18px; padding-top: 8px; }
.skeleton-page .skeleton-heading { gap: 10px; }

/* Blazor's reconnection dialog. App.razor owns the markup; blazor.web.js only toggles
   `components-reconnect-*` classes on the outer element, so all visibility and state
   styling here is driven by those classes and nothing else runs client-side. */
.components-reconnect-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    place-items: center;
    padding: 24px;
    background: #17201660;
    backdrop-filter: blur(4px);
}

.components-reconnect-modal.components-reconnect-show,
.components-reconnect-modal.components-reconnect-retrying,
.components-reconnect-modal.components-reconnect-failed,
.components-reconnect-modal.components-reconnect-resume-failed,
.components-reconnect-modal.components-reconnect-paused,
.components-reconnect-modal.components-reconnect-rejected { display: grid; }

.reconnect-dialog {
    width: min(430px, 100%);
    padding: 26px 26px 24px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 3px);
    background: var(--surface);
    box-shadow: 0 1px 2px #1a241c14, 0 24px 60px #1a241c26;
    animation: reconnect-enter 240ms cubic-bezier(.2, .8, .3, 1) both;
}

body.dark .reconnect-dialog { box-shadow: 0 1px 2px #0003, 0 24px 60px #0006; }

@keyframes reconnect-enter {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: none; }
}

/* The icon and heading sit side by side so the dialog reads as a status card rather
   than a bare paragraph. */
.reconnect-head { display: flex; gap: 14px; align-items: center; }

.reconnect-badge {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--primary);
}

.reconnect-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid currentColor;
    opacity: .12;
}

.reconnect-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reconnect-icon-off { display: none; }
.reconnect-dot { fill: currentColor; stroke: none; }
.reconnect-slash { stroke-width: 1.9; }

.reconnect-heading { min-width: 0; }

.reconnect-eyebrow {
    margin: 0 0 3px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted);
}

.reconnect-dialog h2 { margin: 0; font-size: 16px; line-height: 1.35; }

.reconnect-message {
    margin: 12px 0 0;
    font-size: 11.5px;
    line-height: 1.65;
    color: var(--muted);
    overflow-wrap: anywhere;
}

/* One explanation at a time; the attempt line and the reload button only once the
   rejoin has actually started failing. */
.reconnect-message-failed,
.reconnect-message-paused,
.reconnect-attempt,
#components-reconnect-reload { display: none; }

.components-reconnect-modal.components-reconnect-failed .reconnect-message-retrying,
.components-reconnect-modal.components-reconnect-resume-failed .reconnect-message-retrying,
.components-reconnect-modal.components-reconnect-rejected .reconnect-message-retrying,
.components-reconnect-modal.components-reconnect-paused .reconnect-message-retrying { display: none; }

.components-reconnect-modal.components-reconnect-failed .reconnect-message-failed,
.components-reconnect-modal.components-reconnect-resume-failed .reconnect-message-failed,
.components-reconnect-modal.components-reconnect-rejected .reconnect-message-failed { display: block; }

/* A paused circuit is not a failure: nothing is being retried, so it gets its own
   explanation instead of the "still unreachable" one. */
.components-reconnect-modal.components-reconnect-paused .reconnect-message-paused { display: block; }

/* The framework writes the attempt numbers into these spans from its second try on. */
.components-reconnect-modal.components-reconnect-retrying .reconnect-attempt {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    font-size: 10.5px;
    line-height: 1.5;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.components-reconnect-modal.components-reconnect-retrying .reconnect-attempt span:not(.reconnect-pulse) {
    color: var(--ink);
    font-weight: 600;
}

.reconnect-pulse {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: reconnect-ping 1.5s ease-out infinite;
}

.reconnect-sep { font-weight: 400 !important; opacity: .6; }

@keyframes reconnect-ping {
    0% { box-shadow: 0 0 0 0 #26735459; }
    70% { box-shadow: 0 0 0 5px #26735400; }
    100% { box-shadow: 0 0 0 0 #26735400; }
}

.components-reconnect-modal.components-reconnect-failed #components-reconnect-reload,
.components-reconnect-modal.components-reconnect-resume-failed #components-reconnect-reload,
.components-reconnect-modal.components-reconnect-rejected #components-reconnect-reload {
    display: inline-flex;
    margin-top: 18px;
}

.reconnect-reload { gap: 8px; padding: 10px 16px; font-size: 12px; }
.reconnect-reload-icon {
    flex: none;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Retrying: the signal rings light up outward, one after another. */
.reconnect-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: reconnect-beacon 2s ease-in-out infinite;
}

.reconnect-ring-0 { animation-delay: 0s; }
.reconnect-ring-1 { animation-delay: .16s; }
.reconnect-ring-2 { animation-delay: .32s; }
.reconnect-ring-3 { animation-delay: .48s; }

@keyframes reconnect-beacon {
    0%, 100% { opacity: .28; }
    35% { opacity: 1; }
}

/* Failed, resume-failed and rejected: swap the beacon for the cut-signal icon and
   turn the badge into a warning tone. */
.components-reconnect-modal.components-reconnect-failed .reconnect-icon-live,
.components-reconnect-modal.components-reconnect-resume-failed .reconnect-icon-live,
.components-reconnect-modal.components-reconnect-rejected .reconnect-icon-live { display: none; }

.components-reconnect-modal.components-reconnect-failed .reconnect-icon-off,
.components-reconnect-modal.components-reconnect-resume-failed .reconnect-icon-off,
.components-reconnect-modal.components-reconnect-rejected .reconnect-icon-off { display: block; }

.components-reconnect-modal.components-reconnect-failed .reconnect-badge,
.components-reconnect-modal.components-reconnect-resume-failed .reconnect-badge,
.components-reconnect-modal.components-reconnect-rejected .reconnect-badge {
    background: #f8eceb;
    color: var(--danger);
}

body.dark .components-reconnect-modal.components-reconnect-failed .reconnect-badge,
body.dark .components-reconnect-modal.components-reconnect-resume-failed .reconnect-badge,
body.dark .components-reconnect-modal.components-reconnect-rejected .reconnect-badge {
    background: #3b2a2a;
}

/* Paused: the signal is neither lost nor being retried, so the badge goes quiet. */
.components-reconnect-modal.components-reconnect-paused .reconnect-badge {
    background: var(--hover);
    color: var(--muted);
}

.components-reconnect-modal.components-reconnect-paused .reconnect-ring { animation: none; opacity: .5; }

@media (prefers-reduced-motion: reduce) {
    .reconnect-dialog { animation: none; }
    .reconnect-ring,
    .reconnect-pulse { animation: none; }
    .reconnect-ring { opacity: .85; }
}

@media (max-width: 1200px) {
    :root { --sidebar-width: 226px; }
}

@media (max-width: 760px) {
    :root { --sidebar-width: 236px; }
    .shell { grid-template-columns: minmax(0, 1fr); }
    .sidebar { width: var(--sidebar-width); }
    .modal-backdrop { padding: 12px; }
    .modal { max-height: calc(100dvh - 24px); }
    .folder-tree { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; max-height: 60dvh; }
}

/* Admin operations dashboard */
.health-dashboard { display: grid; gap: 18px; padding-bottom: 30px; }
.health-dashboard h2, .health-dashboard h3, .health-dashboard p { margin: 0; }
.health-hero { position: relative; overflow: hidden; min-height: 213px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 30px 34px; border: 1px solid #d5e4d8; border-radius: 14px; background: linear-gradient(115deg, #edf5ed 0%, #e6f1e9 55%, #dcece3 100%); }
.health-hero-content { position: relative; z-index: 1; }
.health-eyebrow { color: #63846e; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
.health-live-dot, .health-status-pill span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4a9b71; margin-right: 5px; }
.health-hero h2 { margin-top: 11px; color: #254937; font-size: clamp(22px, 2.4vw, 29px); line-height: 1.24; font-weight: 650; letter-spacing: -.5px; }
.health-hero p { margin-top: 10px; color: #607d69; font-size: 12px; max-width: 410px; }
.health-hero-meta { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 20px; color: #61806b; font-size: 10px; }
.health-hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.health-hero-meta .icon { width: 14px; height: 14px; }
.health-orbit { position: absolute; width: 260px; right: 24%; top: 50%; transform: translateY(-50%); opacity: .8; pointer-events: none; }
.health-orbit-art { display: block; width: 100%; }
.health-orbit-ring { fill: none; stroke: #9dc9aa; stroke-width: 1; stroke-dasharray: 4 5; }
.health-orbit-ring.inner { stroke-dasharray: none; opacity: .7; }
.health-orbit-core { fill: #d3e8d8; stroke: #b5d8be; }
.health-orbit-wave, .health-orbit-spark { fill: none; stroke: #4d9b6e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.health-orbit-dot { fill: #78ba8e; }
.health-orbit-dot.soft { fill: #bedac2; }
.health-overall { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-width: 205px; padding: 16px 18px; background: #ffffffc9; border: 1px solid #ffffff; border-radius: 11px; box-shadow: 0 8px 26px #3d6c4a0d; }
.health-overall-icon, .health-check-icon, .health-metric-icon, .health-resource-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: #e6f3e9; color: #47865f; }
.health-overall-icon .icon, .health-check-icon .icon, .health-metric-icon .icon, .health-resource-icon .icon { width: 19px; height: 19px; }
.health-overall small, .health-overall strong, .health-overall div > span { display: block; }
.health-overall small { color: #7b8f80; font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.health-overall strong { color: #2e5740; font-size: 14px; margin: 3px 0; }
.health-overall div > span { color: #728b78; font-size: 10px; }
.health-overall.degraded .health-overall-icon, .health-check-card.degraded .health-check-icon { background: #fff3dc; color: #aa7a20; }
.health-overall.unhealthy .health-overall-icon, .health-check-card.unhealthy .health-check-icon { background: #fae9e7; color: #b4514d; }
.health-insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.health-metric-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.health-metric-card:hover { border-color: #9dbba5; transform: translateY(-2px); }
.health-metric-card > .icon:last-child { width: 15px; height: 15px; margin-left: auto; color: var(--muted); }
.health-metric-card:nth-child(2) .health-metric-icon { background: #f2edfa; color: #8d78ac; }
.health-metric-card:nth-child(3) .health-metric-icon { background: #fbf0df; color: #b18b49; }
.health-metric-card:nth-child(4) .health-metric-icon { background: #f9eae8; color: #bd7770; }
.health-metric-copy { min-width: 0; }
.health-metric-copy small, .health-metric-copy strong { display: block; }
.health-metric-copy small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.health-metric-copy strong { margin-top: 3px; font-size: 21px; line-height: 1.1; color: var(--ink); }
.health-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: 12px; }
.health-section-heading h2 { margin-top: 4px; font-size: 20px; }
.health-section-heading p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.health-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.health-note .icon { width: 14px; height: 14px; }
.health-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.health-resource-card { display: flex; align-items: center; justify-content: space-between; min-height: 135px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.health-resource-icon { width: 30px; height: 30px; border-radius: 8px; }
.health-resource-icon .icon { width: 15px; height: 15px; }
.health-resource-card h3 { margin-top: 11px; font-size: 12px; }
.health-resource-card p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.health-donut { position: relative; flex: none; width: 80px; height: 80px; display: grid; place-items: center; }
.health-donut svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.health-donut circle { fill: none; stroke-width: 7; }
.health-donut-track { stroke: #e8eee8; }
.health-donut-value { stroke: #65a97b; stroke-linecap: round; }
.health-resource-card.degraded .health-donut-value { stroke: #c99a3f; }
.health-resource-card.unhealthy .health-donut-value { stroke: #c46962; }
.health-resource-card.unknown .health-donut-value { stroke: #a6b0a7; }
.health-donut strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.health-check-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.health-check-card { display: flex; flex-direction: column; min-width: 0; min-height: 192px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.health-check-head { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.health-check-icon { width: 34px; height: 34px; border-radius: 9px; }
.health-check-icon .icon { width: 16px; height: 16px; }
.health-status-pill { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 20px; background: #eaf5ec; color: #4a8960; font-size: 9px; font-weight: 650; white-space: nowrap; }
.health-status-pill span { width: 5px; height: 5px; margin-right: 4px; }
.health-check-card.degraded .health-status-pill { background: #fff3dc; color: #997024; }
.health-check-card.degraded .health-status-pill span { background: #c99a3f; }
.health-check-card.unhealthy .health-status-pill { background: #fae9e7; color: #a64c49; }
.health-check-card.unhealthy .health-status-pill span { background: #c46962; }
.health-check-card h3 { margin-top: 13px; font-size: 12px; }
.health-check-card p { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.health-guidance { display: flex; align-items: start; gap: 5px; margin-top: 9px; color: #a4663b; font-size: 10px; line-height: 1.5; }
.health-guidance .icon { width: 13px; height: 13px; }
.health-check-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 9px; }
.health-check-foot strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.health-check-measurements { margin-top: 9px; font-size: 10px; }
.health-check-measurements summary { color: var(--accent); cursor: pointer; }
.health-check-measurements pre { max-height: 160px; overflow: auto; margin: 8px 0 0; padding: 8px; border-radius: 6px; background: var(--bg); color: var(--ink); font-size: 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.health-loading { display: flex; align-items: center; gap: 8px; padding: 24px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.health-log-panel, .health-panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.health-log-toolbar { display: flex; align-items: center; gap: 9px; padding: 14px; border-bottom: 1px solid var(--line); }
.health-log-toolbar label:not(.health-log-search) { flex: 0 1 auto; min-width: 0; }
.health-log-toolbar select, .health-log-search { height: 36px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 10px; }
.health-log-toolbar select { max-width: 185px; padding: 0 9px; }
.health-log-search { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 140px; padding: 0 10px; }
.health-log-search .icon { width: 15px; height: 15px; color: var(--muted); }
.health-log-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.health-log-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.health-log-notice { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #fbf3e3; color: #82612d; font-size: 11px; }
.health-log-notice.error { background: #fae9e7; color: #9e4b46; }
.health-log-notice .icon { width: 15px; height: 15px; }
.health-log-meta { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; color: var(--muted); font-size: 10px; }
.health-log-entry { border-top: 1px solid var(--line); }
.health-log-entry summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.health-log-entry summary::-webkit-details-marker { display: none; }
.health-log-entry summary:hover { background: var(--hover); }
.health-log-entry summary > .icon { width: 14px; height: 14px; color: var(--muted); }
.health-log-entry[open] summary > .icon { transform: rotate(180deg); }
.health-log-level { flex: none; min-width: 72px; padding: 4px 7px; border-radius: 5px; background: #edf2f0; color: #61776c; text-align: center; font-size: 9px; font-weight: 700; }
.health-log-level.warning { background: #fff3dc; color: #977125; }
.health-log-level.error { background: #fae9e7; color: #a64c49; }
.health-log-content { flex: 1; min-width: 0; }
.health-log-content strong, .health-log-content small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health-log-content strong { font-size: 10px; font-weight: 600; }
.health-log-content small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.health-log-entry time { flex: none; color: var(--muted); font-size: 9px; white-space: nowrap; }
.health-log-detail { display: grid; gap: 7px; padding: 4px 16px 16px 100px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.health-log-detail > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.health-log-detail strong { color: var(--ink); }
.health-log-detail pre { max-height: 260px; overflow: auto; padding: 10px; border-radius: 6px; background: var(--bg); color: var(--ink); font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.health-log-empty { display: grid; justify-items: center; gap: 7px; padding: 34px; color: var(--muted); font-size: 11px; }
.health-log-empty .icon { width: 24px; height: 24px; }
.health-log-empty strong { color: var(--ink); }
.health-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.health-panel { padding: 20px; }
.health-panel-title { display: flex; align-items: center; gap: 10px; }
.health-panel-title h2 { font-size: 14px; }
.health-panel-title p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.health-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 20px 0 0; font-size: 10px; }
.health-facts dt { color: var(--muted); }
.health-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.health-period { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.health-period select { max-width: 120px; padding: 4px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 10px; }
.health-version { font-family: Consolas, monospace; }
.health-panel-note { margin-top: 15px !important; color: var(--muted); font-size: 10px; line-height: 1.5; }
.health-help-panel ul { display: grid; gap: 12px; margin: 18px 0 0; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.health-help-panel strong { color: var(--ink); }
body.dark .health-hero { border-color: #344a3c; background: linear-gradient(115deg, #263d30, #1d3529); }
body.dark .health-hero h2 { color: #d6e8d9; }
body.dark .health-hero p, body.dark .health-hero-meta, body.dark .health-eyebrow { color: #a0bda6; }
body.dark .health-overall { background: #203529e8; border-color: #45634e; box-shadow: none; }
body.dark .health-overall strong { color: #d6e8d9; }
body.dark .health-overall small, body.dark .health-overall div > span { color: #abc0af; }
body.dark .health-metric-icon, body.dark .health-resource-icon, body.dark .health-check-icon, body.dark .health-overall-icon { background: #304b37; color: #a3d6ad; }
body.dark .health-metric-card:nth-child(n) .health-metric-icon { background: #304b37; color: #a3d6ad; }
body.dark .health-donut-track { stroke: #3a4a3e; }
body.dark .health-status-pill, body.dark .health-log-level { background: #304b37; color: #b4d7ba; }
body.dark .health-check-card.degraded .health-status-pill, body.dark .health-log-level.warning, body.dark .health-log-notice { background: #4a3d28; color: #f0d091; }
body.dark .health-check-card.unhealthy .health-status-pill, body.dark .health-log-level.error, body.dark .health-log-notice.error { background: #4c302d; color: #f2b1aa; }
body.dark .health-guidance { color: #e7bb8d; }
@media (max-width: 1280px) {
    .health-check-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .health-orbit { right: 26%; opacity: .45; }
}
@media (max-width: 900px) {
    .health-insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .health-resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .health-log-toolbar { flex-wrap: wrap; }
    .health-log-search { flex-basis: 100%; }
}
@media (max-width: 600px) {
    .health-hero { align-items: stretch; flex-direction: column; padding: 23px; }
    .health-orbit { right: -25px; top: 82px; width: 190px; }
    .health-overall { align-self: flex-start; }
    .health-insight-grid, .health-resource-grid, .health-check-grid, .health-bottom-grid { grid-template-columns: 1fr; }
    .health-section-heading { align-items: start; flex-direction: column; }
    .health-log-toolbar label:not(.health-log-search) { flex: 1 1 120px; }
    .health-log-toolbar select { width: 100%; max-width: none; }
    .health-log-entry summary { flex-wrap: wrap; gap: 8px; }
    .health-log-content { min-width: calc(100% - 115px); }
    .health-log-entry time { margin-left: 80px; }
    .health-log-detail { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .health-metric-card { transition: none; }
    .health-metric-card:hover { transform: none; }
}

/* Sign-in */
.login {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--surface);
}
.login-visual {
    position: relative;
    overflow: hidden;
    padding: 48px;
    background: radial-gradient(circle at 50% 40%, #f5f8ee 0, #e4eddd 48%, #d7e4d3 100%);
}
.login-visual::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid #718b6b40;
    border-radius: 4px;
    pointer-events: none;
}
.login-visual-label,
.login-visual-footer {
    color: #60795a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
}
.login-visual-label { display: flex; align-items: center; gap: 12px; }
.login-visual-label span { width: 30px; height: 1px; background: #91a689; }
.login-artwork {
    display: grid;
    place-items: center;
    width: min(390px, 85%);
    aspect-ratio: 1;
    margin-top: 20px;
    border: 1px solid #a6bba04d;
    border-radius: 50%;
    background: #ffffff40;
    box-shadow: 0 0 0 18px #ffffff24;
}
.login-visual .login-artwork svg { width: 130%; }
.login-visual h1 { margin-top: 30px; font-size: clamp(32px, 3vw, 42px); line-height: 1.15; }
.login-visual p { font-size: 14px; }
.login-visual-footer { margin-top: 36px; }
.login-visual-footer span { margin: 0 8px; color: #9aaf91; }
.login-form { max-width: 500px; padding: 50px; }
.login-form .brand { margin-bottom: 64px; }
.login-form .brand img { width: 48px; height: 48px; }
.login-heading { margin-bottom: 26px; }
.login-eyebrow { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.login-form .login-heading h2 { margin: 12px 0 10px; font-size: 36px; line-height: 1.15; }
.login-heading p { max-width: 320px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-form .callout { padding: 15px; border: 1px solid #8eae9d38; border-radius: 8px; }
.login-form .button.primary { min-height: 50px; border-radius: 8px; box-shadow: 0 5px 14px #1c5f4130; }
.login-form .button.primary:focus-visible,
.login-form .demo-account:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.login-form .demo-account { padding: 10px; border-radius: 8px; }
.login-form .demo-account:hover { background: var(--accent-soft); }
.login-footer { display: flex; align-items: center; gap: 10px; margin-top: 34px; color: var(--muted); font-size: 11px; }
.login-footer span { width: 24px; height: 1px; background: var(--line); }
body.dark .login-visual { background: radial-gradient(circle at 50% 40%, #455641, #293a2d); }
body.dark .login-visual-label, body.dark .login-visual-footer { color: #c1d0b8; }
body.dark .login-artwork { background: #ffffff0d; border-color: #c1d0b830; box-shadow: 0 0 0 18px #ffffff08; }
@media (max-width: 768px) {
    .login { display: block; }
    .login-visual { display: none; }
    .login-form { min-height: 100dvh; padding: 40px 28px; }
    .login-form .brand { margin-bottom: 50px; }
}
