:root {
  --ink: #493c32;
  --muted: #786e60;
  --line: #e2d9cb;
  --primary: #5c4033;
  --sage: #8b9d77;
  --sage-dark: #516344;
  --sage-soft: #e7ebdf;
  --tan: #d4a373;
  --cream: #faf6f1;
  --paper: #fffdf9;
  --soft: #f1ece3;
  --organic: 25px 19px 26px 21px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream) url('/static/paper.svg'); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, .button, a, input { transition: background-color .5s ease-in-out, color .5s ease-in-out, border-color .5s ease-in-out, border-radius .5s ease-in-out, transform .5s ease-in-out; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 23px; min-height: 44px; border: 1px solid transparent; border-radius: var(--organic); line-height: 20px; white-space: nowrap; cursor: pointer; }
button { background: transparent; color: inherit; }
button:hover, .button:hover { border-radius: 19px 26px 20px 28px; }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .65; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; }
a:hover { color: var(--sage-dark); }
.primary { background: var(--primary); color: var(--cream); font-weight: 500; }
.primary:hover { background: #6c5142; color: var(--cream); }
.secondary { background: var(--paper); border-color: var(--line); }
.secondary:hover { background: #e9e3d8; color: var(--sage-dark); }
input:not([type=checkbox]):not([type=file]) { width: 100%; min-width: 0; height: 46px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 24px 20px 25px 22px; background: var(--paper); color: var(--ink); }
input:not([type=checkbox]):not([type=file]):hover { border-color: #b6ad9c; }
input:not([type=checkbox]):not([type=file]):focus { border-color: var(--sage); }
input::placeholder { color: #8a8073; }
input[type=checkbox] { accent-color: var(--sage-dark); width: 20px; height: 20px; cursor: pointer; }
label { display: flex; flex-direction: column; gap: 11px; font-weight: 500; min-width: 0; }
label+label { margin-top: 24px; }
h1, h2, p { margin: 0; }
h1, h2, .brand { font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", Georgia, serif; }
h1 { color: var(--primary); font-size: 30px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
h2 { font-size: 18px; font-weight: 600; }
.workspace { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { background: #f0ece2 url('/static/paper.svg'); border-right: 1px solid var(--line); padding: 32px 22px 22px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 24px; font-weight: 600; white-space: nowrap; color: var(--primary); }
.brand b { font-weight: 400; color: var(--muted); font-style: italic; }
.nav-label { font-size: 11px; color: var(--muted); margin: 48px 16px 16px; }
nav { display: grid; gap: 10px; }
nav a { display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 11px 16px; border-radius: 25px 20px 26px 21px; color: var(--muted); }
nav a span { font-size: 20px; line-height: 22px; width: 22px; text-align: center; }
nav a.selected { color: var(--sage-dark); background: #e0e5d5; font-weight: 600; }
nav a:hover { background: #e7e4d7; color: var(--sage-dark); border-radius: 18px 26px 21px 27px; }
.sidebar-bottom { margin-top: auto; }
.identity { display: flex; gap: 11px; align-items: center; padding: 20px 0 12px; border-top: 1px solid var(--line); min-width: 0; }
.identity>div { min-width: 0; }
.identity strong { display: block; overflow-wrap: anywhere; font-weight: 500; }
.identity small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }
.avatar { background: #dfe4d3; color: var(--sage-dark); width: 38px; height: 39px; border-radius: 47% 39% 46% 38%; display: grid; place-items: center; flex-shrink: 0; font-family: "Songti SC", serif; }
.logout { width: 100%; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 8px 0; }
.logout:hover { color: var(--sage-dark); }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 78px; padding: 0 44px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); gap: 16px; }
.divider { margin: 0 14px; color: #b7a997; }
.internal { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 11px; }
.internal i, .dot { display: inline-block; width: 7px; height: 8px; border-radius: 49% 35% 48% 39%; background: var(--sage); }
.main-content { padding: 44px; flex: 1; max-width: 1280px; width: 100%; margin: 0 auto; }
.eyebrow { color: var(--muted); font-size: 11px; margin-bottom: 9px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.heading-count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 28px; font: 12px Georgia, serif; vertical-align: middle; padding: 4px 9px; background: var(--soft); border-radius: 48% 37% 45% 36%; margin-left: 13px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 28px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.stats>div { padding-left: 32px; border-left: 1px solid var(--line); }
.stats>div:first-child { padding-left: 0; border: 0; }
.stats>div>span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.stats strong { font: 40px/1.2 "Iowan Old Style", Georgia, serif; display: block; margin-top: 16px; color: var(--primary); font-variant-numeric: tabular-nums; }
.stats small { font: 11px -apple-system, sans-serif; color: var(--muted); margin-left: 12px; }
.amber { background: #b58953; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 20px; }
.search { display: flex; align-items: center; width: 270px; border: 1px solid var(--line); border-radius: var(--organic); background: var(--paper); }
.search input:not([type=checkbox]) { border: 0; height: 42px; font-size: 12px; background: transparent; }
.search button { padding: 0; width: 44px; height: 44px; font-size: 23px; flex-shrink: 0; color: var(--muted); }
.search button:hover { color: var(--sage-dark); background: var(--soft); }
.table-scroll { overflow-x: auto; width: 100%; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; text-align: left; }
th { font-weight: 500; color: var(--muted); background: #eee9df; padding: 14px 16px; white-space: nowrap; }
th:first-child { border-radius: 21px 0 0 19px; }
th:last-child { border-radius: 0 19px 24px 0; }
td { padding: 23px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td:first-child, th:first-child { padding-left: 16px; }
.site-name { display: flex; gap: 15px; align-items: center; min-width: 200px; }
.file-symbol { width: 41px; height: 46px; display: grid; place-items: center; border: 1px solid #d1d9c4; border-radius: 16px 11px 17px 12px; font: 12px Georgia, serif; color: var(--sage-dark); background: #eaf0e1; flex-shrink: 0; }
.site-title { font-size: 14px; font-weight: 500; display: block; max-width: 350px; overflow-wrap: anywhere; }
.site-title:hover { color: var(--sage-dark); }
.site-owner { color: var(--muted); font-size: 11px; margin-top: 6px; max-width: 350px; overflow-wrap: anywhere; }
.site-url { display: block; color: var(--muted); font-size: 11px; margin-top: 7px; }
.badge { display: inline-block; padding: 5px 11px; border-radius: 14px 11px 15px 12px; font-size: 11px; white-space: nowrap; }
.online { background: var(--sage-soft); color: #46583a; }
.offline { background: #ece6dc; color: #756655; }
.permission, .date { white-space: nowrap; color: var(--muted); }
.date { font-size: 11px; font-variant-numeric: tabular-nums; }
.align-right { text-align: right; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.row-actions button, .icon-button { width: 44px; height: 44px; min-height: 44px; padding: 0; color: var(--muted); font-size: 19px; display: grid; place-items: center; border-radius: 17px 13px 18px 14px; }
.row-actions button:hover, .icon-button:hover { background: var(--sage-soft); color: var(--sage-dark); }
.row-actions .danger-icon:hover { color: #8b4c3e; background: #f2e2d7; }
footer { padding: 24px 44px; color: var(--muted); font-size: 11px; display: flex; gap: 16px; }
footer span { color: #857866; }
.empty { text-align: center; padding: 76px 16px 88px; border-top: 1px solid var(--line); }
.empty img { opacity: .75; margin-bottom: 24px; }
.empty h2 { margin-bottom: 28px; color: var(--muted); font-weight: 400; }
.notice { padding: 15px 22px; background: #e9eddf; color: #46583a; border: 1px solid #d7dfc9; border-radius: 22px 16px 24px 18px; margin-bottom: 28px; overflow-wrap: anywhere; }
.notice.error { background: #f4e7dd; border-color: #dfcbb8; color: #864f3b; }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.editor-form { max-width: 740px; }
.form-section { padding: 28px 0 34px; border-top: 1px solid var(--line); }
.form-section h2 { margin-bottom: 28px; }
.file-label { padding: 28px; border: 1px dashed #b9b69b; border-radius: 32px 24px 34px 25px; background: #f0f1e7 url('/static/paper.svg'); }
.file-label input { max-width: 100%; font-size: 12px; }
.file-label input::file-selector-button { min-height: 44px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px 17px 23px 18px; padding: 10px 18px; color: var(--ink); margin-right: 12px; cursor: pointer; }
.file-meta { color: var(--muted); font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.check-label { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.employee-create { padding-bottom: 34px; }
.create-user { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 20px; align-items: end; }
.create-user label+label { margin-top: 0; }
.reset-form { display: flex; gap: 8px; max-width: 260px; }
.reset-form input:not([type=checkbox]) { height: 44px; }
.reset-form button { padding: 9px 17px; }
.text-button { padding: 10px 12px; color: var(--sage-dark); font-size: 12px; }
.text-button:hover { background: var(--sage-soft); }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--cream); padding: 14px 26px; border-radius: 23px 18px 26px 19px; box-shadow: 0 3px 12px #5c403314; z-index: 2; white-space: nowrap; }
.auth-page { min-height: 100dvh; display: flex; align-items: center; flex-direction: column; padding: 60px 24px 28px; }
.auth-page .brand { font-size: 27px; }
.auth-form { margin: 80px 0 64px; width: 100%; max-width: 360px; }
.auth-form h1 { font-size: 30px; margin-bottom: 34px; }
.auth-form form label { font-size: 13px; }
.auth-form .full { margin-top: 32px; }
.full { width: 100%; justify-content: space-between; }
.auth-footer { margin-top: auto; font: italic 13px Georgia, serif; color: var(--muted); }
.share-title, .error-title { overflow-wrap: anywhere; }
.share-view { height: 100dvh; overflow: hidden; background: var(--cream); }
.share-view iframe { border: 0; width: 100%; height: 100%; display: block; background: var(--paper); }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding: 28px 17px; }
  .brand { font-size: 21px; }
  .main-content { padding: 34px 28px; }
  .topbar { padding: 0 28px; }
  .create-user { grid-template-columns: 1fr 1fr; }
  .create-user button { height: 46px; }
  footer { padding: 24px 28px; }
}
@media (max-width: 640px) {
  .workspace { display: block; }
  .sidebar { position: static; height: auto; padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 15px; }
  .sidebar .brand { font-size: 23px; }
  .sidebar .brand img { width: 32px; height: 32px; }
  .nav-label { display: none; }
  .sidebar nav { grid-row: 2; grid-column: 1 / -1; display: flex; gap: 12px; }
  .sidebar nav a { font-size: 12px; padding: 10px 16px; }
  .sidebar-bottom { grid-row: 1; grid-column: 2; margin: 0; display: flex; align-items: center; }
  .identity { border: 0; padding: 0; }
  .identity .avatar, .identity small { display: none; }
  .identity strong { font-size: 12px; max-width: 70px; }
  .logout { padding: 8px 0 8px 12px; font-size: 11px; }
  .logout span { display: none; }
  .topbar { height: 52px; padding: 0 20px; font-size: 10px; }
  .internal { font-size: 10px; }
  .main-content { padding: 30px 20px; }
  .page-heading { gap: 12px; margin-bottom: 28px; }
  h1 { font-size: 27px; }
  .page-heading .button { padding: 11px 17px; font-size: 12px; gap: 5px; }
  .stats { padding: 24px 0; }
  .stats>div { padding-left: 18px; }
  .stats strong { font-size: 34px; }
  .stats small { display: block; margin: 5px 0 0; font-size: 10px; }
  .stats>div>span { font-size: 11px; }
  .search { width: 185px; }
  .list-toolbar h2 { font-size: 17px; }
  .create-user { grid-template-columns: 1fr; gap: 24px; }
  .reset-form { min-width: 220px; }
  footer { padding: 24px 20px; font-size: 10px; flex-wrap: wrap; gap: 10px; }
  .auth-page { padding-top: 44px; }
  .auth-form { margin-top: 68px; }
  td, th { padding-left: 12px; padding-right: 12px; }
  .form-section { padding-top: 26px; }
  .file-label { padding: 24px; }
  .publications, .publications tbody { display: block; }
  .publications thead { display: none; }
  .publications tr { display: grid; grid-template-columns: minmax(0,1fr) auto; border-top: 1px solid var(--line); padding: 12px 0; }
  .publications td { display: block; border: 0; padding: 8px 0; }
  .publications td:first-child { grid-column: 1 / -1; padding: 12px 0; }
  .publications td:nth-child(3) { text-align: right; }
  .publications td:nth-child(4) { align-self: center; font-size: 10px; }
  .publications .site-name { min-width: 0; }
  .publications .site-title { max-width: none; }
  .publications .row-actions { gap: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
