:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: #182a3e;
  background: #f5f7fa;
  font-size: 15px;
  font-synthesis: none;
  --ink: #182a3e;
  --muted: #50647b;
  --blue: #245ac8;
  --blue-dark: #1948a7;
  --pale: #ecf3ff;
  --line: #dce5ef;
  --card: #fff;
  --radius: 22px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; min-height: 66vh; padding-block: 45px 64px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .56; cursor: wait; }
:focus-visible { outline: 3px solid #618be7; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; letter-spacing: -.045em; }
h2 { font-size: 1.31rem; line-height: 1.4; letter-spacing: -.015em; }
h3 { font-size: 1rem; }
p { line-height: 1.7; }
small { font-size: .83rem; }
ul, ol, dl { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
.frame, .nav-frame { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.topbar { background: #ffffffed; border-bottom: 1px solid #e1e8f2; }
.nav-frame { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: .02em; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; display: inline-grid; place-items: center; background: #245ac8; border-radius: 9px; position: relative; flex-shrink: 0; }
.brand-mark::before, .brand-mark::after { content: ""; display: block; position: absolute; border: 1.5px solid #fff; border-radius: 3px; width: 10px; height: 12px; }
.brand-mark::before { transform: translate(-3px, -2px); opacity: .55; }
.brand-mark::after { transform: translate(3px, 3px); background: #245ac8; }
#navigation, .actions, .inline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.nav-link { padding: 8px 12px; border-radius: 9px; color: var(--muted); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--pale); color: var(--blue-dark); }
.nav-button { border: 0; background: transparent; }
.footer { border-top: 1px solid #e1e8f2; color: var(--muted); font-size: .8rem; }
.footer .frame { padding-block: 19px; display: flex; gap: 20px; justify-content: space-between; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 5; padding: 10px 16px; background: #fff; border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.loading { padding: 28px; color: var(--muted); }
.hero { position: relative; min-height: 318px; overflow: hidden; isolation: isolate; display: grid; align-items: center; grid-template-columns: 1.3fr .7fr; gap: 20px; padding: 48px 52px; border-radius: 28px; background: radial-gradient(ellipse at 84% 76%, #254981, transparent 52%), linear-gradient(122deg, #122842, #18355e 66%, #244c85); color: #fff; box-shadow: 0 17px 38px #18314d19; }
.hero::before { position: absolute; inset: 0; content: ""; pointer-events: none; z-index: -1; background: linear-gradient(90deg, #bdcfff13 1px, transparent 1px), linear-gradient(#bdcfff13 1px, transparent 1px); background-size: 35px 35px; mask-image: linear-gradient(90deg, transparent 35%, black); }
.hero p { color: #d4e3fc; margin-top: 16px; max-width: 37ch; font-size: 1.01rem; }
.hero-art { min-height: 190px; position: relative; display: grid; place-items: center; }
.art-card { width: clamp(130px, 20vw, 245px); height: 145px; position: absolute; border: 1px solid #c7ddff53; border-radius: 20px; background: linear-gradient(125deg, #416caa, #294b7f); box-shadow: 0 15px 38px #05193358; transform: rotate(-10deg) translate(-22px, -13px); }
.art-card.front { background: linear-gradient(145deg, #e6f0ff, #b8d0f8); transform: rotate(8deg) translate(24px, 18px); display: flex; flex-direction: column; justify-content: center; gap: 11px; padding: 21px; }
.art-card.front .icon { width: 35px; height: 35px; border-radius: 9px; padding: 7px; background: #245ac8; color: #fff; }
.art-card.front .art-line { height: 5px; width: 72%; background: #3e6bbd58; border-radius: 4px; }
.art-card.front .art-line:last-child { width: 52%; }
.panel { min-width: 0; padding: 25px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 23px #243e6010; }
.panel-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 17px; }
.panel-head p { margin-top: 3px; }
.panel-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: var(--pale); }
.panel-icon .icon { width: 20px; height: 20px; }
.icon { width: 1.1em; height: 1.1em; flex: 0 0 auto; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.guest-grid { margin-top: 25px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: stretch; }
.login { max-width: 520px; margin: 34px auto 0; }
.login form { margin-top: 22px; }
.guest-intro { align-content: center; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font-weight: 650; font-size: .9rem; }
.field .required { font-size: .75rem; color: #a72a3b; margin-left: 5px; }
input:not([type="checkbox"]), textarea, select { width: 100%; padding: 11px 13px; border: 1px solid #cfdae8; border-radius: 11px; background: #fff; color: var(--ink); min-height: 44px; }
input::placeholder, textarea::placeholder { color: #61748b; }
input[readonly] { background: #f6f9fd; color: #405774; }
textarea { resize: vertical; min-height: 100px; }
.form-stack { display: grid; gap: 16px; }
.join-form { display: grid; gap: 11px; grid-template-columns: 1fr auto; align-items: end; }
.btn { min-height: 42px; padding: 10px 15px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; border-radius: 11px; border: 1px solid transparent; background: var(--blue); color: #fff; font-weight: 690; font-size: .9rem; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.btn:hover { background: var(--blue-dark); }
.btn.secondary { color: var(--blue-dark); background: #ecf3ff; border-color: #d9e6fc; }
.btn.secondary:hover { background: #e2edff; }
.btn.plain { background: #fff; color: #344c68; border-color: #d5e0ed; }
.btn.plain:hover { background: #f1f5fb; }
.btn.compact { min-height: 34px; font-size: .8rem; padding: 6px 10px; }
.activity { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatars { display: flex; align-items: center; padding-left: 5px; }
.avatar { width: 34px; height: 34px; margin-left: -5px; border: 2px solid #fff; background: #dce8fd; color: #4c6da9; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.avatar:nth-child(3n+2) { background: #d8f2ea; color: #316f60; }
.avatar:nth-child(3n+3) { background: #ebe3ff; color: #6f55ac; }
.avatar .icon { width: 15px; height: 15px; }
.activity strong { font-size: .95rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.page-head h1 { overflow-wrap: anywhere; }
.page-head p { margin-top: 8px; }
.private-strip { margin-bottom: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; background: #eef4ff; border: 1px solid #dbe6fb; border-radius: 16px; padding: 14px 16px; }
.private-strip .description { flex: 1 1 165px; }
.private-strip .description p { margin-top: 2px; font-size: .83rem; }
.private-strip input { flex: 1 1 280px; }
.workspace-grid { display: grid; grid-template-columns: .94fr 1.06fr; gap: 22px; align-items: start; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 7px; text-align: center; padding: 23px 12px; border: 1px dashed #9db7e1; border-radius: 15px; background: #f7faff; }
.dropzone.dragging { border-color: var(--blue); background: #eaf2ff; }
.dropzone > .icon { color: var(--blue); width: 29px; height: 29px; }
.file-input { position: absolute; inline-size: 1px !important; block-size: 1px; min-height: 0 !important; opacity: 0; padding: 0 !important; overflow: hidden; clip-path: inset(50%); }
.file-status { min-height: 1.55em; font-size: .85rem; overflow-wrap: anywhere; }
.list { margin-top: 12px; }
.list-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #e8eef5; }
.list-item .meta { font-size: .8rem; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.list-item strong { overflow-wrap: anywhere; }
.file-line { display: flex; gap: 9px; align-items: center; min-width: 0; }
.file-line .icon { color: var(--blue); }
.versions-title { margin-top: 20px; }
.empty { color: var(--muted); padding: 16px 0 3px; font-size: .88rem; }
.status { font-size: .85rem; min-height: 1.35em; line-height: 1.55; margin-top: 4px; }
.status.error { color: #a52839; }
.status.success { color: #226e55; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field.wide { grid-column: 1 / -1; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 21px; }
.stat { padding: 17px; border-radius: 17px; border: 1px solid var(--line); background: #fff; display: grid; gap: 8px; }
.stat strong { font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .inline { gap: 7px; color: var(--muted); font-size: .86rem; }
.stat .icon { color: var(--blue); }
.admin-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 20px; align-items: start; }
.aside { display: grid; gap: 20px; }
.table-wrap { overflow-x: auto; margin-inline: -4px; padding-inline: 4px; }
table { width: 100%; border-collapse: collapse; min-width: 465px; font-size: .9rem; }
th { color: var(--muted); font-weight: 650; text-align: left; }
th, td { padding: 11px 9px; border-bottom: 1px solid #e6edf5; }
td:first-child { overflow-wrap: anywhere; max-width: 190px; }
td:last-child { text-align: right; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 7px; background: #eef2f7; color: #475e78; border-radius: 7px; font-size: .75rem; white-space: nowrap; }
.pill.done { background: #e4f5ed; color: #256b54; }
.panel-controls { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px; }
.panel-controls .panel-head { margin-bottom: 0; }
.panel-controls + .table-wrap { margin-top: 12px; }
.detail { width: min(600px, calc(100% - 28px)); max-height: min(88vh, 850px); overflow: auto; padding: 23px; border: 1px solid var(--line); border-radius: 21px; background: #fff; color: var(--ink); box-shadow: 0 18px 80px #152c5480; }
.detail::backdrop { background: #14274375; }
.detail .panel-head { margin-bottom: 10px; }
.detail-title { overflow-wrap: anywhere; }
.detail dl { padding: 12px 0; display: grid; grid-template-columns: minmax(75px, .35fr) 1fr; gap: 7px 12px; }
.detail dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail dt { color: var(--muted); }
.toast { position: fixed; bottom: 20px; right: 20px; max-width: min(390px, calc(100vw - 40px)); z-index: 4; background: #18314f; color: #fff; border-radius: 13px; padding: 12px 17px; box-shadow: 0 12px 38px #19375848; font-size: .89rem; line-height: 1.5; }
@media (max-width: 850px) {
  .hero { padding: 38px 32px; min-height: 285px; }
  .admin-grid { grid-template-columns: 1fr; }
  .aside { grid-template-columns: 1fr 1fr; }
  .panel { padding: 20px; }
}
@media (max-width: 660px) {
  .frame, .nav-frame { width: min(100% - 28px, 1120px); }
  main { padding-block: 26px 40px; }
  .nav-frame { min-height: 57px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 32px 25px; }
  .hero-art { display: none; }
  .guest-grid, .workspace-grid, .aside { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .join-form { grid-template-columns: 1fr; }
  .join-form .btn { justify-self: start; }
}
@media (max-width: 420px) {
  .field-grid { grid-template-columns: 1fr; }
  .nav-link { padding-inline: 7px; }
  .brand { gap: 7px; font-size: .92rem; }
  .brand-mark { width: 26px; height: 26px; }
  .btn { padding-inline: 11px; }
  .panel { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.detail-section { margin-top: 20px; }
.detail-section .private-strip { margin: 10px 0 0; }
.detail-section > .muted { margin-top: 5px; font-size: .83rem; }
.invite-links { display: grid; justify-items: start; gap: 8px; margin-top: 12px; }
.action-spacing { margin-top: 14px; }
#dashboard-status:empty { display: none; }

