:root {
--ink: #27231d;
--muted: #766e63;
--paper: #f6f2ea;
--card: #fffdf8;
--line: #e4dbcf;
--gold: #ad7433;
--gold-dark: #83531f;
--green: #3f7658;
--red: #a14e48;
--blue: #4d6888;
--shadow: 0 18px 50px rgba(55, 40, 19, 0.09);
--radius: 16px;
}
* {
box-sizing: border-box;
}
html {
font-size: 16px;
}
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font:
1rem/1.55 Inter,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
}
button,
input,
select,
textarea {
font: inherit;
}
button {
color: inherit;
}
.hidden {
display: none !important;
}
.loading-screen,
.center-state {
min-height: 100vh;
display: grid;
place-items: center;
padding: 24px;
}
.loading-screen {
color: var(--muted);
}
.spinner {
width: 34px;
height: 34px;
border: 3px solid var(--line);
border-top-color: var(--gold);
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin: auto;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.auth-shell {
min-height: 100vh;
display: grid;
grid-template-columns: minmax(340px, 1fr) minmax(420px, 1fr);
}
.auth-brand {
background: #28231d;
color: #fff;
padding: 48px clamp(36px, 6vw, 90px);
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 100vh;
}
.brand {
display: inline-flex;
align-items: center;
gap: 10px;
color: inherit;
text-decoration: none;
font-family: Georgia, serif;
font-size: 1.25rem;
font-weight: 700;
}
.brand img {
width: 38px;
height: 38px;
border-radius: 9px;
}
.brand.small {
color: var(--ink);
}
.auth-brand h1 {
font:
600 clamp(2.6rem, 5vw, 4.8rem) / 1.02 Georgia,
serif;
letter-spacing: -0.035em;
margin: 12px 0 22px;
max-width: 720px;
}
.eyebrow {
font-size: 0.75rem;
font-weight: 800;
letter-spacing: 0.16em;
color: var(--gold);
margin: 0 0 6px;
}
.auth-intro {
color: #d3cbc1;
font-size: 1.1rem;
max-width: 520px;
}
.auth-foot {
color: #a99f93;
font-size: 0.875rem;
}
.auth-panel {
display: grid;
place-items: center;
padding: 32px;
}
.auth-card {
width: min(430px, 100%);
background: var(--card);
border: 1px solid var(--line);
border-radius: 20px;
padding: 30px;
box-shadow: var(--shadow);
}
.auth-tabs {
display: flex;
border-bottom: 1px solid var(--line);
margin-bottom: 26px;
}
.auth-tab {
flex: 1;
border: 0;
background: transparent;
padding: 12px;
border-bottom: 2px solid transparent;
cursor: pointer;
color: var(--muted);
font-weight: 700;
}
.auth-tab.active {
color: var(--ink);
border-color: var(--gold);
}
.form-stack {
display: grid;
gap: 16px;
}
.language-picker {
border: 0;
padding: 0;
margin: 0;
}
.language-picker legend {
font-size: 0.875rem;
font-weight: 700;
margin-bottom: 8px;
}
.language-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.language-chips label {
margin: 0;
cursor: pointer;
}
.language-chips input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.language-chips span {
display: block;
border: 1px solid var(--line);
border-radius: 999px;
background: #fff;
padding: 8px 13px;
color: var(--muted);
transition: 0.15s ease;
}
.language-chips input:checked + span {
border-color: var(--gold);
background: #f6eadb;
color: var(--gold-dark);
box-shadow: inset 0 0 0 1px var(--gold);
}
.language-chips input:focus-visible + span {
outline: 3px solid rgba(173, 116, 51, 0.22);
}
.other-language {
margin-top: 10px;
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
}
.span-2 {
grid-column: 1/-1;
}
label {
display: block;
font-size: 0.875rem;
font-weight: 700;
margin-bottom: 6px;
}
input,
select,
textarea {
width: 100%;
border: 1px solid var(--line);
background: #fff;
border-radius: 10px;
padding: 11px 12px;
color: var(--ink);
min-height: 44px;
}
textarea {
min-height: 110px;
resize: vertical;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible {
outline: 3px solid rgba(173, 116, 51, 0.22);
border-color: var(--gold);
}
button {
cursor: pointer;
}
.primary,
.secondary,
.text-button,
.icon-button {
border-radius: 10px;
border: 1px solid transparent;
min-height: 42px;
padding: 9px 15px;
font-weight: 700;
}
.primary {
background: var(--gold);
color: #fff;
}
.primary:hover {
background: var(--gold-dark);
}
.secondary {
background: var(--card);
border-color: var(--line);
}
.secondary:hover {
background: #eee7dc;
}
.wide {
width: 100%;
}
.text-button {
background: transparent;
color: var(--gold-dark);
}
.action-link {
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
margin-right: 8px;
}
.icon-button {
background: transparent;
padding: 7px 10px;
min-height: auto;
font-size: 1.15rem;
}
.message {
font-size: 0.875rem;
color: var(--muted);
min-height: 1.3em;
word-break: break-word;
}
.message.error {
color: var(--red);
}
.message.success {
color: var(--green);
}
.form-note,
.field-help,
.subtle {
color: var(--muted);
font-size: 0.875rem;
}
.state-card {
width: min(470px, 100%);
background: var(--card);
border: 1px solid var(--line);
border-radius: 20px;
padding: 32px;
box-shadow: var(--shadow);
}
.state-card h1 {
font:
600 2rem Georgia,
serif;
margin: 28px 0 8px;
}
.app-shell {
min-height: 100vh;
display: grid;
grid-template-columns: 250px minmax(0, 1fr);
}
.sidebar {
height: 100vh;
position: sticky;
top: 0;
background: #29241e;
color: #fff;
padding: 24px 18px;
display: flex;
flex-direction: column;
}
.sidebar nav {
display: grid;
gap: 5px;
margin-top: 34px;
}
.nav-item,
.nav-link {
border: 0;
background: transparent;
color: #c8c0b7;
display: flex;
align-items: center;
gap: 11px;
padding: 11px 13px;
border-radius: 10px;
text-align: left;
font-size: 0.9rem;
text-decoration: none;
}
.nav-item span,
.nav-link span {
width: 20px;
text-align: center;
color: #a99378;
}
.nav-item:hover,
.nav-link:hover,
.nav-item.active {
background: #3a332a;
color: #fff;
}
.sidebar-user {
display: flex;
align-items: center;
gap: 10px;
margin-top: auto;
padding-top: 18px;
border-top: 1px solid #463e34;
}
.avatar {
width: 36px;
height: 36px;
border-radius: 50%;
display: grid;
place-items: center;
background: #b47a38;
font-weight: 800;
}
.user-copy {
display: grid;
min-width: 0;
flex: 1;
}
.user-copy strong {
font-size: 0.85rem;
overflow: hidden;
text-overflow: ellipsis;
}
.user-copy span {
color: #aaa095;
font-size: 0.72rem;
text-transform: capitalize;
}
.sidebar .icon-button {
color: #c8c0b7;
}
.workspace {
min-width: 0;
padding: 38px clamp(22px, 4vw, 58px) 70px;
}
.mobile-header {
display: none;
}
.view {
display: none;
max-width: 1440px;
margin: auto;
}
.view.active {
display: block;
}
.page-head {
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: 20px;
margin-bottom: 24px;
}
.page-head h1 {
font:
600 clamp(2rem, 3vw, 2.7rem) Georgia,
serif;
letter-spacing: -0.025em;
margin: 0;
}
.page-head .subtle {
margin: 5px 0 0;
}
.stats-row {
display: grid;
grid-template-columns: repeat(4, minmax(100px, 1fr));
gap: 12px;
margin-bottom: 18px;
}
.stat {
background: var(--card);
border: 1px solid var(--line);
border-radius: 13px;
padding: 14px 16px;
}
.stat strong {
display: block;
font:
600 1.7rem Georgia,
serif;
}
.stat span {
font-size: 0.78rem;
color: var(--muted);
}
.filters {
display: flex;
gap: 10px;
margin-bottom: 18px;
}
.filters input {
flex: 1;
}
.filters select {
width: auto;
min-width: 150px;
}
.review-layout {
display: grid;
grid-template-columns: minmax(290px, 0.72fr) minmax(420px, 1.28fr);
gap: 16px;
align-items: start;
}
.item-list {
background: var(--card);
border: 1px solid var(--line);
border-radius: var(--radius);
overflow: hidden;
max-height: calc(100vh - 300px);
overflow-y: auto;
}
.queue-item {
display: block;
width: 100%;
border: 0;
border-bottom: 1px solid var(--line);
background: transparent;
padding: 16px;
text-align: left;
}
.queue-item:last-child {
border-bottom: 0;
}
.queue-item:hover,
.queue-item.active {
background: #f1eadf;
}
.queue-top {
display: flex;
justify-content: space-between;
gap: 10px;
}
.queue-title {
font-weight: 800;
}
.queue-snippet {
color: var(--muted);
margin: 7px 0;
font-size: 0.88rem;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.queue-meta {
font-size: 0.75rem;
color: var(--muted);
}
.badge {
display: inline-flex;
align-items: center;
border-radius: 999px;
padding: 4px 8px;
font-size: 0.7rem;
font-weight: 800;
white-space: nowrap;
}
.badge.pending {
background: #f4e7d4;
color: #895b22;
}
.badge.approved {
background: #deeee3;
color: var(--green);
}
.badge.needs_revision {
background: #e3eaf3;
color: var(--blue);
}
.badge.rejected {
background: #f3dfdd;
color: var(--red);
}
.detail-panel {
background: var(--card);
border: 1px solid var(--line);
border-radius: var(--radius);
min-height: 480px;
padding: 24px;
box-shadow: 0 8px 30px rgba(55, 40, 19, 0.04);
}
.empty-state {
text-align: center;
color: var(--muted);
padding: 80px 20px;
}
.empty-state span {
display: block;
font:
600 3rem Georgia,
serif;
color: #c9b89f;
}
.empty-state h2 {
color: var(--ink);
margin: 8px 0;
}
.detail-head {
display: flex;
justify-content: space-between;
gap: 14px;
border-bottom: 1px solid var(--line);
padding-bottom: 16px;
margin-bottom: 20px;
}
.detail-head h2 {
font:
600 1.45rem Georgia,
serif;
margin: 0;
}
.detail-meta {
font-size: 0.8rem;
color: var(--muted);
margin-top: 5px;
}
.content-block {
margin: 18px 0;
}
.content-label {
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.08em;
color: var(--muted);
text-transform: uppercase;
}
.chinese-copy {
font:
600 1.55rem/1.55 Georgia,
"Noto Serif SC",
serif;
margin: 5px 0;
}
.pinyin-copy {
color: var(--muted);
font-style: italic;
}
.translation-copy {
font-size: 1.1rem;
margin-top: 5px;
white-space: pre-wrap;
}
.context-copy {
padding: 12px;
background: #f5f0e8;
border-radius: 10px;
color: #5f574d;
}
.review-form {
border-top: 1px solid var(--line);
padding-top: 18px;
margin-top: 22px;
}
.review-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-top: 14px;
}
.review-actions button {
flex: 1;
}
.approve {
background: var(--green);
}
.revision {
background: var(--blue);
}
.reject {
background: var(--red);
}
.admin-assignment {
display: flex;
gap: 8px;
margin: 13px 0;
}
.admin-assignment select {
flex: 1;
}
.compact-panel {
max-width: 620px;
}
.compact-panel > .primary {
justify-self: start;
}
.number-field {
display: flex;
align-items: center;
gap: 10px;
}
.number-field input {
max-width: 130px;
}
.number-field span {
color: var(--muted);
}
.panel,
.table-card {
background: var(--card);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 22px;
}
.table-card {
padding: 0;
overflow: hidden;
}
.data-table {
width: 100%;
border-collapse: collapse;
}
.data-table th,
.data-table td {
text-align: left;
padding: 13px 15px;
border-bottom: 1px solid var(--line);
vertical-align: top;
}
.data-table th {
font-size: 0.75rem;
color: var(--muted);
letter-spacing: 0.04em;
}
.data-table tr:last-child td {
border-bottom: 0;
}
.table-main {
font-weight: 800;
}
.table-note {
font-size: 0.8rem;
color: var(--muted);
}
.rules-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
gap: 14px;
}
.rule-card {
background: var(--card);
border: 1px solid var(--line);
border-radius: 14px;
padding: 19px;
}
.rule-card h2 {
font:
600 1.15rem Georgia,
serif;
margin: 6px 0;
}
.rule-card p {
color: var(--muted);
margin-bottom: 0;
white-space: pre-wrap;
}
.rule-meta {
font-size: 0.72rem;
color: var(--gold-dark);
font-weight: 800;
}
.timeline {
display: grid;
gap: 10px;
}
.history-row {
background: var(--card);
border: 1px solid var(--line);
border-radius: 13px;
padding: 15px;
display: grid;
grid-template-columns: 140px 1fr auto;
gap: 16px;
align-items: center;
}
.history-action {
font-weight: 800;
text-transform: capitalize;
}
.history-copy {
font-size: 0.87rem;
color: var(--muted);
}
.history-time {
font-size: 0.76rem;
color: var(--muted);
}
.import-preview {
border: 1px dashed #cbbca8;
background: #faf7f1;
border-radius: 12px;
padding: 16px;
color: var(--muted);
}
.import-preview.ready {
border-style: solid;
color: var(--green);
background: #f3f8f4;
}
.team-layout {
display: grid;
grid-template-columns: minmax(300px, 0.75fr) minmax(380px, 1.25fr);
gap: 16px;
align-items: start;
}
.panel h2 {
font:
600 1.2rem Georgia,
serif;
margin-top: 0;
}
.team-list {
display: grid;
}
.team-row {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 0;
border-bottom: 1px solid var(--line);
}
.team-row:last-child {
border-bottom: 0;
}
.team-row .avatar {
color: #fff;
}
.team-copy {
display: grid;
flex: 1;
}
.team-copy span {
color: var(--muted);
font-size: 0.78rem;
}
.invite-box {
background: #f3ede3;
border-radius: 10px;
padding: 10px;
word-break: break-all;
margin-top: 8px;
}
dialog {
border: 0;
border-radius: 18px;
padding: 0;
background: transparent;
width: min(540px, calc(100% - 30px));
}
dialog::backdrop {
background: rgba(27, 23, 18, 0.55);
}
.dialog-card {
background: var(--card);
padding: 24px;
border-radius: 18px;
}
.dialog-head,
.dialog-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.dialog-head h2 {
font:
600 1.4rem Georgia,
serif;
margin: 0;
}
.dialog-actions {
justify-content: flex-end;
margin-top: 20px;
}
.toast {
position: fixed;
right: 22px;
bottom: 22px;
background: #29241e;
color: #fff;
padding: 11px 15px;
border-radius: 10px;
box-shadow: var(--shadow);
opacity: 0;
transform: translateY(12px);
pointer-events: none;
transition: 0.2s;
max-width: 390px;
}
.toast.show {
opacity: 1;
transform: none;
}
.toast.error {
background: var(--red);
}
.empty-list {
padding: 38px;
text-align: center;
color: var(--muted);
}
code {
font-size: 0.83em;
background: #eee7dc;
padding: 2px 5px;
border-radius: 5px;
}
@media (max-width: 960px) {
.app-shell {
grid-template-columns: 1fr;
}
.sidebar {
position: fixed;
z-index: 20;
width: 260px;
transform: translateX(-105%);
transition: 0.2s;
}
.sidebar.open {
transform: none;
}
.workspace {
padding: 20px;
}
.mobile-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 24px;
font-weight: 800;
}
.review-layout,
.team-layout {
grid-template-columns: 1fr;
}
.item-list {
max-height: 420px;
}
.stats-row {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 680px) {
.auth-shell {
grid-template-columns: 1fr;
}
.auth-brand {
min-height: 310px;
padding: 28px;
}
.auth-brand h1 {
font-size: 2.5rem;
}
.auth-panel {
padding: 18px;
}
.workspace {
padding: 16px;
}
.page-head {
align-items: flex-start;
}
.page-head h1 {
font-size: 2rem;
}
.filters {
display: grid;
}
.filters select {
width: 100%;
}
.form-grid {
grid-template-columns: 1fr;
}
.span-2 {
grid-column: auto;
}
.review-actions {
display: grid;
}
.history-row {
grid-template-columns: 1fr;
gap: 4px;
}
.data-table {
display: block;
overflow-x: auto;
}
.detail-panel {
padding: 17px;
}
}