:root {
  color-scheme: light;
  --bg: #eef2ec;
  --bg-strong: #e4ebe4;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.97);
  --surface-muted: rgba(245, 248, 244, 0.9);
  --ink: #18242c;
  --ink-soft: #263744;
  --muted: #657481;
  --muted-strong: #485866;
  --line: rgba(24, 36, 44, 0.1);
  --line-strong: rgba(24, 36, 44, 0.16);
  --accent: #0f766e;
  --accent-strong: #0b5e58;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --accent-warm: #b7791f;
  --accent-warm-soft: rgba(183, 121, 31, 0.12);
  --danger: #bb4d5c;
  --success: #1f7a63;
  --shadow-lg: 0 28px 70px rgba(22, 33, 41, 0.08);
  --shadow-md: 0 18px 38px rgba(22, 33, 41, 0.06);
  --shadow-sm: 0 10px 24px rgba(22, 33, 41, 0.05);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-base: "IBM Plex Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
    radial-gradient(circle at 90% 14%, rgba(183, 121, 31, 0.12), transparent 24%),
    linear-gradient(rgba(24, 36, 44, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 36, 44, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #f5f7f3 0%, var(--bg) 100%);
  background-size: auto, auto, 144px 144px, 144px 144px, auto;
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  appearance: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(15, 118, 110, 0.18);
}

.app-body {
  min-height: 100vh;
}

.surface-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.brand,
.brand-large {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.04)),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 118, 110, 0.12);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px rgba(15, 118, 110, 0.08);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow,
.panel-kicker,
.sidebar-label,
.metric-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-muted {
  color: var(--muted);
}

.page-title,
.section-title,
.auth-heading {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.05em;
}

.page-title {
  font-size: clamp(2.2rem, 3vw, 3.35rem);
  line-height: 0.98;
}

.section-title {
  font-size: 1.45rem;
  line-height: 1.08;
}

.auth-heading {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.02;
}

.page-subtitle,
.section-subtitle,
.auth-copy,
.auth-showcase-copy,
.field-help,
.empty-copy,
.notice-card p,
.rich-text p,
.timeline-item p,
.showcase-item p,
.site-message,
.copy-value.compact,
.form-note {
  color: var(--muted);
}

.page-subtitle,
.section-subtitle,
.auth-copy,
.auth-showcase-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
}

.section-subtitle {
  margin-top: 8px;
  font-size: 0.95rem;
}

.text-link,
.inline-link,
.micro-link,
.back-link {
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 600;
}

.text-link:hover,
.inline-link:hover,
.micro-link:hover,
.back-link:hover {
  color: var(--ink);
}

.inline-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-link::before {
  content: "<";
  color: var(--accent);
}

.message-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-message {
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-message.success {
  color: var(--success);
  border-color: rgba(31, 122, 99, 0.16);
  background: rgba(244, 252, 248, 0.96);
}

.site-message.error {
  color: var(--danger);
  border-color: rgba(187, 77, 92, 0.16);
  background: rgba(255, 247, 248, 0.96);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.18);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(15, 118, 110, 0.22);
}

.button.secondary,
.button.ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus-visible,
.button.ghost:hover,
.button.ghost:focus-visible {
  background: #ffffff;
  border-color: rgba(24, 36, 44, 0.22);
}

.button.small {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 0.9rem;
}

.button.block {
  width: 100%;
}

.button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-shell,
.workspace-shell,
.public-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 0 32px;
}

.auth-stage-panel,
.workspace-sidebar,
.workspace-topbar,
.hero-panel,
.metric-card,
.section-card,
.public-header {
  border-radius: var(--radius-xl);
}

.auth-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.showcase-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.showcase-stat,
.showcase-item,
.mini-panel,
.metric-card,
.action-tile,
.notice-card,
.recent-item,
.timeline-item,
.copy-block,
.document-section,
.sidebar-callout {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.showcase-stat {
  padding: 20px 22px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-stat span,
.mini-panel span {
  color: var(--muted);
  font-size: 0.84rem;
}

.showcase-stat strong,
.mini-panel strong {
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.showcase-stat p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
}

.showcase-item strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.showcase-item p {
  margin: 6px 0 0;
  line-height: 1.7;
}

.showcase-index,
.timeline-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-stage {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.auth-action-links,
.topbar-actions,
.footer-links,
.auth-inline-panels,
.hero-actions,
.chip-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-stage-panel {
  width: min(560px, 100%);
  padding: 30px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 247, 0.96) 100%);
}

.auth-utility-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.auth-footer {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.auth-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.auth-footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-footer-links a:hover {
  color: var(--ink);
}

.auth-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.auth-panel-head > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.auth-inline-panels {
  margin: 4px 0 2px;
}

.auth-inline-panels.compact {
  margin-bottom: 8px;
}

.mini-panel {
  flex: 1 1 0;
  padding: 16px 18px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(222, 230, 224, 0.6);
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.tab.active {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(24, 36, 44, 0.08);
  box-shadow: var(--shadow-sm);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form {
  gap: 20px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.checkbox-row {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="url"],
input[type="datetime-local"],
input[type="file"],
textarea,
select {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input[type="file"] {
  padding: 14px 16px;
}

textarea {
  min-height: 132px;
  padding: 16px 18px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(101, 116, 129, 0.78);
}

input:focus,
textarea:focus,
select:focus,
.button:focus-visible,
.tab:focus-visible,
.sidebar-link:focus-visible,
.action-tile:focus-visible,
.notice-card:focus-visible,
.public-nav a:focus-visible,
.sidebar-link-stack a:focus-visible {
  outline: none;
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow:
    0 0 0 4px rgba(15, 118, 110, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.inline-action,
.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.65;
  color: var(--muted);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  padding: 0;
  accent-color: var(--accent);
  box-shadow: none;
}

.checkbox-row a {
  color: var(--ink);
}

.field-help,
.form-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form-actions {
  gap: 14px;
  margin-top: 6px;
}

.auth-action-links {
  justify-content: space-between;
  flex-wrap: wrap;
}

.field-errors,
.message-list {
  margin: 0;
  padding-left: 18px;
  color: var(--danger);
  font-size: 0.84rem;
  line-height: 1.6;
}

.message-list {
  padding: 14px 18px 14px 34px;
  border-radius: 16px;
  background: rgba(187, 77, 92, 0.07);
  border: 1px solid rgba(187, 77, 92, 0.12);
}

.code-status {
  min-height: 18px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.code-status.success {
  color: var(--success);
}

.code-status.error {
  color: var(--danger);
}

.workspace-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  min-height: calc(100vh - 56px);
  padding: 24px 0 32px;
}

.workspace-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  color: var(--muted-strong);
  border: 1px solid transparent;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.sidebar-link span {
  font-weight: 700;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.sidebar-link.active {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 60%),
    rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.sidebar-callout {
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(183, 121, 31, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(246, 249, 246, 0.98), rgba(240, 246, 243, 0.94));
}

.sidebar-callout strong {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.03em;
}

.sidebar-callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.sidebar-link-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-link-stack a {
  color: var(--muted-strong);
  font-size: 0.94rem;
}

.sidebar-link-stack a:hover {
  color: var(--ink);
}

.workspace-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  min-width: 0;
}

.workspace-topbar {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.topbar-title {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.topbar-actions {
  margin-left: auto;
  flex-wrap: wrap;
}

.inline-form {
  margin: 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted-strong);
  font-size: 0.9rem;
  white-space: nowrap;
}

.workspace-content,
.public-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.workspace-content {
  flex: 1 1 auto;
}

.workspace-footer,
.public-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 2px 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.workspace-footer {
  margin-top: auto;
}

.public-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: calc(100vh - 56px);
  padding: 24px 0 32px;
}

.public-content {
  flex: 1 1 auto;
}

.page-header-card {
  gap: 10px;
}

.hero-panel,
.section-card {
  padding: 28px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.82fr);
  gap: 20px;
  align-items: stretch;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(183, 121, 31, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(252, 252, 250, 0.98), rgba(244, 247, 243, 0.96));
}

.hero-main,
.hero-aside,
.section-header {
  display: flex;
  flex-direction: column;
}

.hero-main {
  gap: 14px;
}

.hero-aside {
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.hero-aside strong {
  font-size: 1.12rem;
  line-height: 1.55;
  letter-spacing: -0.03em;
}

.hero-aside p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions,
.chip-row {
  flex-wrap: wrap;
}

.info-chip,
.badge-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.info-chip,
.status-pill {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-chip {
  background: var(--accent-warm-soft);
  color: var(--accent-warm);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 20px 22px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-value {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.metric-meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.dashboard-grid,
.detail-layout,
.document-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.92fr);
}

.detail-layout,
.document-grid {
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.78fr);
}

.section-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: var(--radius-xl);
}

.section-card.wide {
  min-width: 0;
}

.section-header {
  gap: 4px;
}

.notice-stack,
.notice-board,
.copy-stack,
.timeline-list,
.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.notice-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.16);
  box-shadow: var(--shadow-md);
}

.notice-card.board {
  min-height: 144px;
}

.notice-card-body {
  min-width: 0;
}

.notice-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.notice-card h3 {
  margin: 10px 0 8px;
  font-size: 1.22rem;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.notice-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.75;
}

.notice-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.notice-link::after {
  content: ">";
  margin-left: 8px;
}

.action-grid {
  display: grid;
  gap: 14px;
}

.action-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.action-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.16);
  box-shadow: var(--shadow-md);
}

.action-tile span {
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.action-tile strong {
  font-size: 1.06rem;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.action-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-row:first-child {
  padding-top: 0;
}

.info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-row span {
  color: var(--muted);
}

.info-row strong {
  text-align: right;
  font-weight: 700;
}

.copy-block {
  padding: 18px 20px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.copy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.copy-value {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(247, 250, 246, 0.92);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.copy-value.compact {
  align-items: flex-start;
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
}

.timeline-item strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.timeline-item p {
  margin: 6px 0 0;
  line-height: 1.7;
}

.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
}

.recent-item strong {
  display: block;
  margin-bottom: 4px;
}

.recent-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.task-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: flex-start;
}

.task-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.task-summary strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.task-meta,
.task-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.task-meta span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.task-cover-link,
.task-detail-cover {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 42%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(238, 244, 241, 0.95));
}

.task-cover-link {
  display: block;
  width: 200px;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-sm);
}

.task-cover-image,
.task-detail-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.task-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.task-cover-fallback-large {
  min-height: 280px;
  font-size: 1.2rem;
}

.task-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.task-review-alert {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(223, 159, 64, 0.3);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 249, 235, 0.96), rgba(255, 244, 220, 0.92));
}

.task-review-alert strong {
  margin: 0;
  color: #9a5b00;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.task-review-alert p {
  margin: 0;
  color: #7a5a20;
  font-size: 0.92rem;
  line-height: 1.65;
}

.task-review-alert-inline {
  margin-top: 2px;
}

.task-review-alert-detail {
  box-shadow: var(--shadow-sm);
}

.task-status-stack {
  justify-content: flex-end;
  min-width: 156px;
}

.task-status-stack-sidebar {
  justify-content: flex-start;
  min-width: 0;
}

.task-detail-cover {
  min-height: 280px;
  box-shadow: var(--shadow-sm);
}

.task-action-panel {
  gap: 16px;
}

.submission-form-card,
.submission-record-card {
  gap: 18px;
}

.submission-gallery-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.submission-gallery-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.submission-gallery-meta strong {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.submission-gallery-meta span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.submission-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.submission-gallery-item {
  display: flex;
  flex: 0 0 140px;
  flex-direction: column;
  gap: 8px;
  width: 140px;
  padding: 10px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.submission-gallery-item:hover,
.submission-gallery-item:focus-visible {
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: 0 12px 22px rgba(91, 140, 255, 0.12);
  transform: translateY(-1px);
}

.submission-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
}

.submission-gallery-item span {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
}

.detail-article,
.document-card {
  min-width: 0;
}

.detail-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-sidebar,
.document-index {
  align-self: start;
  position: sticky;
  top: 24px;
}

.rich-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rich-text p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.85;
}

.document-section {
  padding: 22px 24px;
  border-radius: 22px;
}

.document-section + .document-section {
  margin-top: 6px;
}

.document-section .section-title {
  margin-bottom: 12px;
}

.empty-state {
  padding: 12px 0 0;
}

.public-header {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.public-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.public-nav a:hover,
.public-nav a.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1240px) {
  .workspace-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-sidebar,
  .detail-sidebar,
  .document-index {
    position: static;
  }
}

@media (max-width: 980px) {
  .hero-panel,
  .dashboard-grid,
  .detail-layout,
  .document-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-topbar,
  .public-header,
  .auth-panel-head,
  .copy-header,
  .recent-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-topbar,
  .public-header,
  .auth-panel-head,
  .recent-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions,
  .auth-footer-links {
    justify-content: flex-start;
  }

  .task-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-cover-link {
    width: 100%;
    max-width: 280px;
  }

  .task-status-stack {
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .auth-shell,
  .workspace-shell,
  .public-shell {
    width: min(100%, calc(100% - 24px));
  }

  .auth-shell,
  .workspace-shell,
  .public-shell {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .auth-stage-panel,
  .workspace-sidebar,
  .workspace-topbar,
  .hero-panel,
  .section-card,
  .public-header {
    border-radius: 24px;
  }

  .auth-stage-panel,
  .workspace-sidebar,
  .hero-panel,
  .section-card {
    padding: 22px;
  }

  .showcase-stat-grid,
  .form-grid.two-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-inline-panels,
  .copy-row,
  .inline-action {
    flex-direction: column;
  }

  .auth-inline-panels,
  .hero-actions,
  .chip-row,
  .topbar-actions {
    flex-wrap: wrap;
  }

  .copy-row,
  .inline-action {
    display: flex;
    align-items: stretch;
  }

  .page-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}

@media (max-width: 560px) {
  .button,
  .button.small {
    width: 100%;
  }

  .public-nav {
    justify-content: flex-start;
  }

  .footer-links,
  .workspace-footer,
  .public-footer,
  .auth-action-links {
    flex-direction: column;
    align-items: center;
  }

  .topbar-actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
