:root {
  color-scheme: light;
  font: 14px/1.55 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #292521;
  background: #f7f5f0;
  --ink: #292521;
  --muted: #635b53;
  --paper: #f7f5f0;
  --surface: #fffefa;
  --line: #e4ddd2;
  --rule: #eee8df;
  --accent: #90282e;
  --accent-dark: #741b23;
  --accent-wash: #f9eeee;
  --gold: #ad8048;
  --error: #9c352d;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden], .hidden { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:where(button, a, input, select, textarea, summary, .table-scroll):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  min-height: 40px;
  padding: 8px 14px;
  line-height: 1.4;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: #f5f0e8; border-color: #c8bbac; }
button:disabled { opacity: .6; cursor: default; }
.primary, a.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.danger, .error { color: var(--error); }
.ghost, .quiet { background: transparent; }
.quiet { color: var(--accent); }
.small { min-height: 34px; padding: 6px 10px; font-size: 12px; }
a { color: var(--accent); text-underline-offset: .15em; }
.muted, small { color: var(--muted); }
svg { display: block; }

.layout { display: grid; min-height: 100vh; grid-template-columns: 234px minmax(0, 1fr); }
.layout aside {
  position: sticky;
  top: 0;
  z-index: 6;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 24px 15px 14px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 11px;
  margin: 0 5px 15px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.brand strong { font-size: 16px; line-height: 1.25; white-space: nowrap; }
.brand-logo {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  background: #fff;
}
.brand-logo img { display: block; height: 42px; width: auto; }
.layout aside nav { flex: 1; min-height: 0; overflow: auto; padding: 3px; }
.navlabel { color: var(--muted); font-size: 12px; padding: 15px 10px 5px; }
.navbtn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 3px 0;
  background: transparent;
  text-align: left;
  border: 1px solid transparent;
  padding: 9px 10px;
  font-weight: 500;
}
.navbtn svg { width: 17px; height: 17px; flex: 0 0 17px; }
.navbtn:hover { color: var(--accent); background: var(--accent-wash); border-color: transparent; }
.navbtn.active { color: white; background: var(--accent); font-weight: 700; }
.asidefoot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  margin: 12px 4px 0;
  padding: 14px 5px 1px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.asidefoot small { font-size: 11px; }
.main { min-width: 0; }
.top {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 14px;
  padding: 7px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.top-left, .top-right, .row, .actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-left strong { font-size: 14px; }
.top-right { justify-content: flex-end; }
.top-right > button { white-space: nowrap; }
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  background: var(--accent-wash);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 700;
}
.userlabel { line-height: 1.3; overflow-wrap: anywhere; }
.userlabel small { display: block; font-size: 11px; margin-top: 3px; }
.net { font-size: 12px; color: #355e48; white-space: nowrap; margin-right: 6px; }
.net::before {
  display: inline-block;
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #3e7958;
}
.menu-toggle, .menu-backdrop, .drawer-close, .drawer-user { display: none; }
.content { max-width: 1520px; margin-inline: auto; padding: 33px 32px 46px; }
.content > .card + .card { margin-top: 18px; }
.notice {
  border: 1px solid #e5d1a9;
  border-left-width: 3px;
  color: #65451b;
  background: #fff8e9;
  padding: 11px 14px;
  border-radius: 5px;
  margin-bottom: 19px;
}
.title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.title-row h1, .desk-head h1 {
  margin: 0;
  font-family: "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  font-size: clamp(29px, 3.1vw, 44px);
  line-height: 1.2;
  letter-spacing: .035em;
  color: var(--ink);
}
.title-row p { color: var(--muted); margin: 8px 0 0; }
.actions { flex-wrap: wrap; gap: 8px; }


.desk-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 27px;
  margin-bottom: 20px;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
.desk-owner { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 600; }
.desk-owner span { color: var(--gold); }
.desk-welcome { margin: 11px 0 0; color: var(--muted); }
.shortcuts { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 28px; }
.shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  text-align: left;
}
.shortcut .resource-icon { width: 27px; height: 27px; background: transparent; }
.shortcut-arrow { margin-left: 8px; color: var(--muted); font-size: 18px; line-height: 1; }
.desk-sections { align-items: start; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.metric { padding: 16px; }
.metric b { display: block; font-size: 26px; margin: 4px 0 2px; overflow-wrap: anywhere; }
.metric small { font-size: 12px; }
.cardhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.cardhead h2 { margin: 0; font-size: 16px; }
.cardhead small { font-size: 12px; }
.cardhead .actions small { white-space: nowrap; }
.pad { padding: 16px 18px; }
.twocol { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.twocol.desk-sections { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.listrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule);
}
.listrow:last-child { border: 0; }
.listrow .actions { flex-shrink: 0; }
.listrow strong, .listrow small { display: block; }
.listrow small { margin-top: 4px; line-height: 1.4; }
.list-text, .resname { min-width: 0; overflow-wrap: anywhere; }
.resource-icon {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #f4eee6;
  color: #7b3b35;
}
.resource-icon svg { width: 18px; height: 18px; }
.details > .row { padding-bottom: 5px; align-items: flex-start; gap: 13px; }
.details > .row .resource-icon { width: 42px; height: 42px; }
.details > .row h3 { margin: 0 0 6px; }
.details h3 { font-size: 16px; margin: 16px 0 8px; overflow-wrap: anywhere; }
.details p { line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }

.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: -2px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; text-align: left; background: #f8f5ef; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfaf5; }
td .actions { flex-wrap: nowrap; }
td.wrap { white-space: normal; min-width: 150px; max-width: 340px; }
.resname { max-width: 340px; min-width: 135px; white-space: normal; font-weight: 650; }
.resname small, td > small { display: block; font-weight: 400; line-height: 1.5; margin-top: 4px; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  color: #594e43;
  background: #efeae2;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.pill.ok { color: #235a41; background: #e8f1e8; }
.pill.wait { color: #714b14; background: #f8ecd7; }
.pill.danger { color: #90312a; background: #f9e9e6; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.empty p { margin: 0; }
.empty button { margin-top: 12px; }
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.library-tools { margin: 0 0 13px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.toolbar label { font-size: 12px; margin: 0 0 6px; }
.toolbar .filter-search { flex: 1 1 220px; }
.filter-folder { max-width: 190px; min-width: 100px; }
.search-field { position: relative; }
.search-field svg { position: absolute; top: 12px; left: 11px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-field input { padding-left: 37px; }
input, select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 41px;
  padding: 8px 11px;
  border-radius: 6px;
  border: 1px solid #a49586;
  background: #fff;
  color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #756a61; opacity: 1; }
input[type="checkbox"], input[type="radio"] { min-height: auto; width: auto; }
input[type="file"] { color: var(--muted); }
input::file-selector-button {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 10px;
  margin-right: 8px;
  background: #f8f4ed;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
textarea { resize: vertical; min-height: 88px; }
label { display: block; margin: 12px 0 5px; font-weight: 600; }
label small { font-weight: 400; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 11px; }
.checkboxline { display: flex; align-items: center; gap: 8px; }
.inline-link { border: 1px solid transparent; background: transparent; color: var(--accent); text-decoration: none; }
.inline-link:hover { background: var(--accent-wash); border-color: transparent; text-decoration: underline; }
.footnote { color: var(--muted); font-size: 12px; line-height: 1.65; }
.card > .footnote, .card > .error { margin-inline: 18px; }
.sectiongap, .spaced { margin-top: 16px; }
.no-wrap { white-space: nowrap; }


.detail-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  margin: 14px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.detail-meta > div { background: #faf7f1; padding: 9px 11px; overflow-wrap: anywhere; }
.detail-meta small { display: block; font-size: 11px; margin-bottom: 2px; }
.progress { width: 100%; height: 10px; margin: 15px 0; accent-color: var(--accent); }
dialog {
  width: min(710px, calc(100% - 24px));
  max-height: calc(100% - 30px);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0;
  box-shadow: 0 24px 64px #2c231f40;
}
dialog::backdrop { background: #221b1ab0; }
#modal-inner { display: flex; flex-direction: column; max-height: min(810px, calc(100dvh - 32px)); }
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
dialog h2 { margin: 0; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
dialog header > button { flex-shrink: 0; }
.dialog-body { overflow: auto; min-height: 0; padding: 16px 20px; }
.dialog-body > :first-child { margin-top: 0; }
.dialog-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 7px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}
.dialog-foot a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 6px; }
.error { min-height: 20px; margin: 10px 0; }
.error:empty { min-height: 0; margin: 0; }
#toast {
  position: fixed;
  z-index: 30;
  bottom: 20px;
  right: 20px;
  padding: 12px 16px;
  max-width: min(440px, calc(100vw - 40px));
  border-radius: 7px;
  background: #362926;
  color: #fff;
  box-shadow: 0 10px 24px #2c231f38;
}
.preview img, .preview video { display: block; max-width: 100%; max-height: 460px; margin: auto; }
.preview video { width: 100%; }
.preview pre, pre.code {
  background: #f8f4ed;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 440px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.gate { max-width: 610px; margin: 7vh auto; padding: 16px; }
.gate .card { padding: 22px; }
.gate h1 { margin: 0; font-size: 22px; }
.gate .actions { margin-top: 12px; }

.login {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface);
}
.login-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 530px;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(42px, 6.7vw, 108px);
  color: #fffaf1;
  background: radial-gradient(ellipse at 11% 3%, #a7343e, #8e252d 40%, #6a1922 95%);
}
.cover-brand { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.cover-brand .brand-logo { padding: 7px 12px; border-radius: 5px; }
.cover-brand .brand-logo img { height: 49px; }
.login-cover h1 {
  position: relative;
  z-index: 1;
  margin: clamp(29px, 6vw, 92px) 0 19px;
  max-width: 11em;
  font-family: "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  font-size: clamp(36px, 4.4vw, 66px);
  letter-spacing: .065em;
  line-height: 1.28;
}
.login-cover h1::after { display: block; content: ""; width: 41px; height: 2px; margin-top: 19px; background: #d3a169; }
.cover-art {
  position: relative;
  align-self: flex-end;
  width: min(100%, 490px);
  aspect-ratio: 1.5;
  margin: auto -5% 0 0;
  pointer-events: none;
}
.cover-art i {
  position: absolute;
  inset: 11% 8% 12% 8%;
  border: 1px solid #d7a67c87;
  border-radius: 3px 8px 7px 3px;
  transform: rotate(-12deg) skewY(3deg);
}
.cover-art i:nth-child(1) { translate: 12% 14%; background: #621923; box-shadow: 0 21px 37px #430c16a8; }
.cover-art i:nth-child(2) { translate: 8% 10%; background: #a57061; }
.cover-art i:nth-child(3) {
  translate: 5% 7%;
  background: repeating-linear-gradient(0deg, #f8ead8 0 3px, #ebd9be 3px 4px);
  border-color: #d1a179;
}
.cover-art i:nth-child(4) { translate: 2% 4%; background: #a24448; }
.cover-art i:nth-child(5) { background: linear-gradient(135deg, #ae4a4d, #7e2836); }
.cover-art i:last-child::before {
  position: absolute;
  content: "";
  inset: 11% 8% 11% 13%;
  border: 1px solid #deb38b8c;
  border-radius: 2px;
}
.cover-art i:last-child::after {
  position: absolute;
  content: "";
  inset: 0 auto 0 8%;
  width: 1px;
  background: #dfb19775;
  box-shadow: -5px 0 0 #67172542;
}
.login-panel { display: grid; align-items: center; justify-items: center; padding: 32px clamp(25px, 5vw, 80px); }
.login-form { width: min(100%, 388px); }
.login-form h2 { margin: 0; font-size: 27px; line-height: 1.3; }
.login-form > p { margin: 8px 0 22px; color: var(--muted); }
.login-form > .footnote { margin: 19px 0 0; }
.login-form label { margin-top: 15px; }
.login-form input { min-height: 44px; }
.login-form .primary { width: 100%; min-height: 44px; margin-top: 16px; }


@media (max-width: 1080px) {
  .layout { grid-template-columns: 211px minmax(0, 1fr); }
  .top, .content { padding-inline: 23px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .twocol, .twocol.desk-sections { grid-template-columns: minmax(0, 1fr); }
  .title-row { flex-wrap: wrap; }
}
@media (max-width: 780px) {
  .layout { display: block; }
  body:has(.mobile-open) { overflow: hidden; }
  .layout aside {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 8;
    width: min(270px, calc(100% - 50px));
    padding-top: 14px;
  }
  .layout.mobile-open aside { display: flex; }
  .menu-toggle, .drawer-close { display: inline-block; }
  .drawer-close { align-self: flex-end; margin: 0 4px 4px 0; }
  .layout aside .brand { padding-bottom: 12px; margin-bottom: 7px; }
  .drawer-user { display: grid; gap: 8px; margin: 8px 7px 0; }
  .layout.mobile-open .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 7;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #241b19a1;
  }
  .top { min-height: 54px; padding-inline: 13px; gap: 8px; }
  .top-left, .top-right { gap: 6px; }
  .top-left strong { font-size: 13px; }
  .top-right .net, .top-right .avatar, .top-right .userlabel { display: none; }
  .content { padding: 24px 14px 32px; }
  .login { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .login-cover { min-height: 205px; padding: 23px 22px 30px; }
  .cover-brand .brand-logo { padding: 5px 8px; }
  .cover-brand .brand-logo img { height: 40px; }
  .login-cover h1 { margin: 25px 0 0; max-width: 100%; font-size: clamp(30px, 6vw, 46px); }
  .cover-art {
    position: absolute;
    right: 0;
    bottom: -26%;
    width: min(55%, 320px);
    opacity: .42;
  }
  .login-panel { padding: 27px 22px 40px; }
  .login-form h2 { font-size: 24px; }
}
@media (max-width: 460px) {
  .top { padding-inline: 9px; }
  .top-left .small, .top-right .small { padding-inline: 7px; }
  .desk-head { flex-wrap: wrap; padding-block: 17px; }
  .title-row { margin-bottom: 16px; }
  .shortcuts { margin-bottom: 18px; }
  .cardhead, .listrow { padding-inline: 12px; }
  .toolbar { padding: 12px; }
  .toolbar .filter-search { flex-basis: 100%; }
  .toolbar > :not(.filter-search) { min-width: 0; max-width: 100%; }
  .toolbar .filter-folder { flex: 1; }
  .filter-actions { width: 100%; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  dialog header, .dialog-body, .dialog-foot { padding-inline: 13px; }
  dialog header { padding-block: 10px; }
  .dialog-foot { padding-block: 9px; }
  .dialog-foot button, .dialog-foot a { font-size: 12px; min-height: 34px; padding: 6px 9px; }
}


.desk-actions, .desk-search, .resource-version { display: flex; align-items: center; gap: 8px; }
.desk-actions { flex-wrap: wrap; }
.desk-search > .search-field { flex: 1 1 242px; min-width: 0; }
.desk-search > button { flex-shrink: 0; }

.resource-link {
  display: inline-block;
  min-height: 0;
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--accent-dark);
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #b8847e;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}
.resource-link:hover { background: none; text-decoration-color: currentColor; }
.resource-version { gap: 7px; }

@media (max-width: 780px) {
  .desk-actions { width: 100%; }
  .desk-search { flex: 1 1 100%; }
  .library table, .library tbody { display: block; }
  .library thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .library tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 11px 13px;
    border-bottom: 1px solid var(--rule);
  }
  .library tbody tr:last-child { border: 0; }
  .library td { display: block; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .library td:first-child { flex: 0 0 100%; }
  .library td:nth-child(2) { padding-left: 44px; }
  .library td:last-child { margin-left: auto; }
  .library .resname { min-width: 0; max-width: none; }
  .resource-link { min-height: 29px; padding: 5px 0; }
}
@media (max-width: 460px) {
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .toolbar .filter-search, .toolbar .filter-folder { grid-column: 1 / -1; }
  .toolbar .filter-actions { display: contents; }
  .filter-actions .quiet { grid-column: 2; justify-self: end; }
}


.onboarding { margin-bottom: 18px; }
.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr));
  gap: 13px;
  margin: 0;
  padding: 14px 18px 16px;
  list-style: none;
}
.guide-steps li {
  min-width: 0;
  padding: 0 0 0 11px;
  border-left: 2px solid var(--line);
}
.guide-steps .inline-link { padding: 4px 5px; min-height: 31px; margin-left: -5px; text-align: left; }
.guide-steps p { color: var(--muted); margin: 3px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.dialog-body > .guide-steps { padding-inline: 0; }
.drawer-guide { display: none; }

.department-index { margin-bottom: 14px; }
.department-index > .actions { padding: 11px 18px; }
.department-index button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  overflow-wrap: anywhere;
}
.department-index button svg { width: 16px; height: 16px; flex-shrink: 0; }
.department-index button[aria-pressed="true"] {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.directory-path {
  display: block;
  max-width: 245px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.upload-rules {
  margin: 12px 0 8px;
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  background: #f7f2ea;
  color: var(--ink);
}
.upload-rules p { margin: 0; overflow-wrap: anywhere; }
.upload-rules p + p { margin-top: 5px; }
.upload-formats { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 12px; margin: 6px 0; }
.upload-formats dt { color: var(--muted); }
.upload-formats dd { margin: 0; overflow-wrap: anywhere; }
#file-errors ul { margin: 0; padding-left: 22px; overflow-wrap: anywhere; }
input[type="file"][aria-invalid="true"] { border-color: var(--error); }
@media (max-width: 780px) {
  .top-guide { display: none; }
  .drawer-guide { display: inline-block; justify-self: start; }
  .directory-path { max-width: none; }
}
@media (max-width: 460px) {
  .guide-steps { gap: 10px; padding-inline: 12px; }
  .department-index > .actions { padding-inline: 12px; }
  .upload-rules { padding-inline: 9px; }
}


.library tbody .versions-row td { padding: 15px 22px 22px; }
.version-panel { padding: 17px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.version-panel-head, .version-item { display: flex; justify-content: space-between; gap: 14px 22px; align-items: center; flex-wrap: wrap; }
.version-panel-head h3, .video-qr h3 { margin: 0; }
.version-list { list-style: none; margin: 13px 0 0; padding: 0; }
.version-item { border-top: 1px solid var(--rule); padding: 14px 0; }
.version-item:last-child { padding-bottom: 0; }
.version-name { display: grid; min-width: min(100%, 200px); flex: 1 1 240px; }
.version-name span { overflow-wrap: anywhere; }
.version-name small, .version-state small { color: var(--muted); }
.version-state { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.video-qr { text-align: center; }
.video-qr img { display: block; max-width: 100%; height: auto; margin: 12px auto; background: white; }
.video-qr label { text-align: left; }
@media (max-width: 780px) {
  .library tbody .versions-row td { flex: 0 0 100%; padding: 0; }
  .version-panel { padding: 12px; }
}

.resource-version { flex-wrap: wrap; }
