:root {
  --cream: #fffdf5;
  --ink: #1e293b;
  --muted: #64748b;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --yellow: #fbbf24;
  --mint: #34d399;
  --sky: #7dd3fc;
  --white: #ffffff;
  --soft: #f1f5f9;
  --line: #1e293b;
  --border: 2px solid var(--line);
  --shadow-sm: 4px 4px 0 var(--line);
  --shadow-md: 7px 7px 0 var(--line);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  color: var(--ink);
  background: var(--cream);
  font-family: "Plus Jakarta Sans", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(30, 41, 59, .13) 1px, transparent 1px);
  background-size: 24px 24px;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
}

.site-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255, 253, 245, .96);
  border-bottom: var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: var(--white);
  border: var(--border);
  border-radius: 50% 50% 50% 8px;
  box-shadow: 3px 3px 0 var(--yellow);
  transform: rotate(-3deg);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.brand strong {
  display: block;
  font-family: "Arial Rounded MT Bold", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .04em;
}
.brand small { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.main-nav { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.main-nav a { padding: 10px 14px; border: 2px solid transparent; border-radius: 999px; transition: .2s var(--ease-pop); }
.main-nav a:hover, .main-nav a.active { background: var(--yellow); border-color: var(--line); transform: translateY(-2px) rotate(-1deg); }
.main-nav .nav-login { color: var(--white); background: var(--violet); border-color: var(--line); box-shadow: 3px 3px 0 var(--line); }
.main-nav .nav-login:hover { color: var(--ink); background: var(--mint); box-shadow: 5px 5px 0 var(--line); }
.menu-toggle { display: none; width: 44px; height: 44px; background: var(--yellow); border: var(--border); border-radius: 50%; box-shadow: 3px 3px 0 var(--line); font-size: 20px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  gap: clamp(42px, 7vw, 105px);
  align-items: center;
  min-height: 650px;
  padding: 76px clamp(22px, 8vw, 120px) 92px;
  overflow: hidden;
  background: var(--cream);
}
.hero > div { min-width: 0; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 430px;
  height: 430px;
  left: -130px;
  top: 60px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  left: 51%;
  bottom: -72px;
  background: var(--pink);
  border: var(--border);
  transform: rotate(24deg);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  color: var(--ink);
  background: var(--mint);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}
.eyebrow::before { content: "✦"; font-size: 13px; }
.hero h1, .page-title, .section h2, .workspace-top h1, .login-panel h1, .login-aside h2 {
  font-family: "Arial Rounded MT Bold", "Microsoft YaHei", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}
.hero h1 { max-width: 690px; margin: 24px 0 22px; font-size: clamp(45px, 5.6vw, 76px); line-height: 1.08; }
.hero h1 > span, .hero-copy > span { display: block; }
.hero h1::after { content: ""; display: block; width: 190px; height: 12px; margin: 14px 0 0 28%; background: var(--pink); border: var(--border); border-radius: 50%; transform: rotate(-3deg); }
.hero-copy { max-width: 560px; margin: 0; font-size: 17px; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 21px;
  border: var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  transition: transform .22s var(--ease-pop), box-shadow .22s var(--ease-pop), background .18s;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.button-primary { color: var(--white); background: var(--violet); box-shadow: var(--shadow-sm); }
.button-primary:hover { background: #7c4fe0; }
.button-secondary { background: var(--white); box-shadow: var(--shadow-sm); }
.button-secondary:hover { background: var(--yellow); }
.button-quiet { min-height: 36px; padding: 0 13px; background: var(--white); border-radius: 999px; box-shadow: 2px 2px 0 var(--line); }
.hero-note { display: flex; gap: 16px; margin-top: 42px; }
.hero-note > div { min-width: 142px; padding: 14px 16px; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 4px 4px 0 var(--sky); }
.hero-note > div:nth-child(2) { box-shadow-color: var(--pink); transform: rotate(2deg); }
.hero-note strong { display: block; font-size: 24px; line-height: 1.1; }
.hero-note span { color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-visual {
  position: relative;
  min-height: 470px;
  background: #dbeafe url("https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1200&q=85") center/cover;
  border: var(--border);
  border-radius: 44% 44% 8px 44%;
  box-shadow: 12px 12px 0 var(--pink);
}
.hero-logo {
  position: absolute;
  z-index: 3;
  left: -35px;
  bottom: 30px;
  width: 126px;
  height: 126px;
  overflow: hidden;
  background: var(--white);
  border: var(--border);
  border-radius: 32px;
  box-shadow: 7px 7px 0 var(--yellow);
  transform: rotate(-6deg);
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 120px;
  right: -55px;
  top: -40px;
  background-image: radial-gradient(var(--ink) 2px, transparent 2px);
  background-size: 14px 14px;
}
.hero-visual::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(30, 41, 59, .10); }
.visual-label { position: absolute; z-index: 2; left: -20px; top: 25px; padding: 8px 13px; background: var(--yellow); border: var(--border); border-radius: 999px; box-shadow: 3px 3px 0 var(--line); font-size: 11px; font-weight: 900; transform: rotate(-5deg); }
.visual-card { position: absolute; z-index: 2; right: -20px; bottom: 24px; width: min(300px, calc(100% - 40px)); padding: 20px; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 7px 7px 0 var(--mint); transform: rotate(2deg); }
.visual-card small { color: var(--violet); font-weight: 900; letter-spacing: .08em; }
.visual-card h3 { margin: 8px 0 10px; font-size: 24px; line-height: 1.25; }
.visual-card p { margin: 0; color: var(--muted); font-size: 13px; }

.section { position: relative; padding: 88px clamp(22px, 8vw, 120px); background: var(--cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section h2 { margin: 16px 0 0; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.1; }
.section-intro { max-width: 550px; margin: 13px 0 0; color: var(--muted); font-weight: 600; }
.section-link { padding: 0; color: var(--ink); background: transparent; border: 0; border-bottom: 3px solid var(--pink); font-size: 14px; font-weight: 900; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--yellow); border-block: var(--border); }
.stat { padding: 26px clamp(16px, 3vw, 42px); border-right: var(--border); }
.stat:last-child { border-right: 0; }
.stat:nth-child(2) { background: var(--pink); }
.stat:nth-child(3) { background: var(--mint); }
.stat:nth-child(4) { color: var(--white); background: var(--violet); }
.stat strong { display: block; font-size: 32px; font-weight: 900; line-height: 1.1; }
.stat span { font-size: 12px; font-weight: 800; }
.articles { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) minmax(0, .85fr); gap: 24px; min-width: 0; }
.article-card { display: flex; min-width: 0; flex-direction: column; min-height: 315px; overflow: hidden; padding: 24px; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 7px 7px 0 var(--soft); transition: .26s var(--ease-pop); }
.article-card:nth-child(2) { box-shadow-color: var(--yellow); transform: rotate(1deg); }
.article-card:nth-child(3) { box-shadow-color: var(--mint); transform: rotate(-1deg); }
.article-card:hover { transform: translate(-3px, -5px) rotate(-1deg) scale(1.01); box-shadow: 11px 11px 0 var(--pink); }
.article-card.featured { min-height: 365px; background: var(--violet); box-shadow-color: var(--pink); }
.article-card.featured, .article-card.featured p, .article-card.featured .article-foot { color: var(--white); }
.article-tag { align-self: flex-start; padding: 6px 10px; background: var(--yellow); border: var(--border); border-radius: 999px; font-size: 11px; font-weight: 900; }
.featured .article-tag { color: var(--ink); background: var(--mint); }
.article-card h3 { margin: 38px 0 12px; font-size: 25px; line-height: 1.3; overflow-wrap: anywhere; }
.article-card p { margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.article-card.featured .button-quiet { color: var(--ink); }
.article-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 12px; }
.article-public-toolbar { display: flex; min-width: 0; align-items: end; gap: 14px; margin: 30px 0 34px; padding: 16px; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 5px 5px 0 var(--yellow); }
.article-public-toolbar label { display: flex; flex-direction: column; gap: 5px; }
.article-public-toolbar label span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.article-public-toolbar input, .article-public-toolbar select { min-height: 42px; padding: 8px 12px; background: var(--white); border: var(--border); border-radius: 8px; }
.article-public-toolbar > strong { margin-left: auto; padding-bottom: 9px; font-size: 13px; }
.article-empty { grid-column: 1 / -1; }

.map-section { background: var(--ink); color: var(--white); overflow: hidden; }
.map-section::after { content: ""; position: absolute; width: 180px; height: 180px; right: 5%; top: -90px; background: var(--yellow); border: var(--border); border-radius: 50%; }
.map-section .section-intro { color: #cbd5e1; }
.map-section .eyebrow { color: var(--ink); }
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 42px; }
.map-item { min-height: 230px; padding: 26px; color: var(--ink); background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 7px 7px 0 var(--violet); }
.map-item:nth-child(2) { box-shadow-color: var(--pink); transform: translateY(16px) rotate(1deg); }
.map-item:nth-child(3) { box-shadow-color: var(--mint); }
.map-index { display: grid; place-items: center; width: 45px; height: 45px; background: var(--yellow); border: var(--border); border-radius: 50%; font-size: 18px; font-weight: 900; }
.map-item h3 { margin: 40px 0 8px; font-size: 24px; }
.map-item p { margin: 0; color: var(--muted); font-size: 14px; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.quote { position: relative; padding: 36px; background: var(--pink); border: var(--border); border-radius: 8px; box-shadow: 9px 9px 0 var(--line); transform: rotate(-2deg); }
.quote::before { content: "●"; position: absolute; right: 20px; top: -30px; color: var(--mint); -webkit-text-stroke: 2px var(--ink); font-size: 55px; }
.quote p { margin: 0; font-size: 27px; font-weight: 900; line-height: 1.45; }
.quote small { display: block; margin-top: 22px; font-weight: 700; }
.contact-band { background: var(--yellow); border-block: var(--border); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; max-width: 720px; margin-top: 30px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; color: var(--ink); background: var(--white); border: var(--border); border-radius: 8px; outline: none; transition: .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--violet); box-shadow: 4px 4px 0 var(--violet); }

.page { position: relative; min-height: 690px; padding: 68px clamp(22px, 7vw, 100px) 100px; background: var(--cream); overflow: hidden; }
.page::after { content: ""; position: absolute; z-index: 0; width: 130px; height: 130px; right: -55px; top: 100px; background: var(--mint); border: var(--border); border-radius: 50% 50% 8px 50%; transform: rotate(22deg); }
.page > * { position: relative; z-index: 1; }
.page-title { max-width: 850px; margin: 20px 0 12px; font-size: clamp(38px, 5vw, 62px); line-height: 1.12; }
.page-subtitle { max-width: 650px; margin: 0 0 38px; color: var(--muted); font-weight: 600; }
.public-boundary { display: flex; flex-direction: column; gap: 6px; padding: 17px; background: var(--yellow); border: var(--border); border-radius: 8px; box-shadow: 5px 5px 0 var(--line); }
.public-boundary span { color: #475569; font-size: 13px; font-weight: 700; }
.public-scope { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 7vw, 90px); align-items: center; background: var(--ink); color: var(--white); }
.public-scope .section-intro { color: #cbd5e1; }
.scope-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scope-list span { padding: 17px; color: var(--ink); background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 4px 4px 0 var(--mint); font-size: 13px; font-weight: 800; }
.scope-list span:nth-child(2) { box-shadow-color: var(--yellow); }
.scope-list span:nth-child(3) { box-shadow-color: var(--pink); }
.scope-list span:nth-child(4) { box-shadow-color: var(--violet); }
.boundary-note { max-width: 720px; margin: 20px 0 0; font-size: 12px; font-weight: 700; }
.consent-field { display: flex; grid-column: 1 / -1; align-items: flex-start; gap: 10px; padding: 12px 14px; background: rgba(255, 255, 255, .72); border: 1.5px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.consent-field input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet); }
.consent-field a { border-bottom: 2px solid var(--violet); }
.contact-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0 30px; }
.contact-details > div { display: flex; flex-direction: column; gap: 7px; padding: 18px; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 4px 4px 0 var(--mint); }
.contact-details > div:nth-child(2) { box-shadow-color: var(--yellow); }
.contact-details > div:nth-child(3) { box-shadow-color: var(--pink); }
.contact-details strong { font-size: 13px; }
.contact-details span, .contact-details a { color: var(--muted); font-size: 13px; line-height: 1.65; }
.contact-details a { width: fit-content; border-bottom: 2px solid var(--violet); }
.privacy-content { display: grid; gap: 16px; max-width: 880px; margin-bottom: 32px; }
.privacy-content section { padding: 22px; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 5px 5px 0 var(--sky); }
.privacy-content section:nth-child(2n) { box-shadow-color: var(--yellow); }
.privacy-content h2 { margin: 0 0 8px; font-size: 21px; }
.privacy-content p { margin: 0; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 60px; max-width: 1120px; }
.article-body { max-width: 760px; color: #475569; font-size: 16px; }
.article-body h2 { margin-top: 38px; color: var(--ink); font-size: 28px; line-height: 1.3; }
.article-body p { margin: 18px 0; }
.article-side { align-self: start; padding: 22px; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 7px 7px 0 var(--yellow); transform: rotate(1deg); }
.article-side strong { display: block; margin-bottom: 10px; }
.article-side p { margin: 6px 0; color: var(--muted); font-size: 13px; }
.article-preview-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px; }
.article-preview-meta span { padding: 5px 9px; color: var(--muted); background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 800; }
.article-preview-body { max-height: 42vh; overflow: auto; padding-right: 6px; }

.login-wrap { display: grid; grid-template-columns: 1fr 400px; gap: 58px; align-items: center; max-width: 1050px; margin: 0 auto; padding-top: 25px; }
.login-aside { position: relative; padding: 44px; color: var(--ink); background: var(--mint); border: var(--border); border-radius: 8px; box-shadow: 10px 10px 0 var(--pink); transform: rotate(-1deg); }
.login-aside::after { content: "✦"; position: absolute; right: 25px; bottom: 12px; color: var(--violet); font-size: 55px; }
.login-aside h2 { margin: 22px 0 16px; font-size: 36px; line-height: 1.25; }
.login-aside p { font-weight: 600; }
.login-panel { padding: 32px; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 9px 9px 0 var(--violet); }
.login-panel h1 { margin: 0 0 9px; font-size: 31px; }
.login-panel .hint { margin: 0 0 26px; color: var(--muted); font-size: 13px; }
.login-panel .field { margin-bottom: 16px; }
.login-panel .button { width: 100%; margin-top: 10px; }
.demo-note { margin-top: 18px; color: var(--muted); font-size: 12px; }

.workspace { display: grid; grid-template-columns: 235px minmax(0, 1fr); min-height: 735px; margin: -28px clamp(-100px, -7vw, -22px) -100px; }
.workspace-side { padding: 34px 18px; background: var(--ink); color: var(--white); border-right: var(--border); }
.workspace-side h2 { margin: 0 12px 30px; font-size: 21px; }
.internal-nav-note { margin: -18px 12px 24px; color: #cbd5e1; font-size: 11px; line-height: 1.55; }
.side-link { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 7px; padding: 11px 12px; color: #cbd5e1; background: transparent; border: 2px solid transparent; border-radius: 8px; text-align: left; font-weight: 700; }
.side-link:hover, .side-link.active { color: var(--ink); background: var(--yellow); border-color: var(--white); box-shadow: 3px 3px 0 var(--violet); }
.workspace-content { padding: 42px clamp(20px, 4vw, 58px); background: #f8fafc; }
.workspace-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 30px; }
.workspace-top h1 { margin: 0; font-size: 36px; }
.workspace-top p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.workspace-actions { display: flex; gap: 10px; }
.workspace-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 15px; margin-bottom: 30px; }
.dashboard-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.dashboard-panels > section { padding: 20px; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 5px 5px 0 var(--mint); }
.dashboard-panels > section:nth-child(2) { box-shadow-color: var(--pink); }
.dashboard-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dashboard-panel-head h2 { margin: 0; font-size: 22px; }
.dashboard-panels ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dashboard-panels li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e2e8f0; }
.dashboard-panels li:last-child { border-bottom: 0; }
.dashboard-panels li span { display: flex; min-width: 0; flex-direction: column; }
.dashboard-panels li strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-panels li small { color: var(--muted); font-size: 11px; }
.dashboard-empty { color: var(--muted); justify-content: center !important; }
.quick-links { display: flex; flex-wrap: wrap; gap: 12px; }
.quick-links a { padding: 11px 14px; color: var(--ink); background: var(--yellow); border: var(--border); border-radius: 999px; box-shadow: 3px 3px 0 var(--line); font-size: 13px; font-weight: 900; }
.quick-links a:nth-child(2n) { background: var(--mint); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.video-card { overflow: hidden; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 6px 6px 0 var(--sky); }
.video-card:nth-child(2n) { box-shadow-color: var(--pink); }
.video-card:nth-child(3n) { box-shadow-color: var(--yellow); }
.video-preview { position: relative; display: grid; place-items: center; min-height: 150px; background: var(--ink); color: var(--yellow); }
.video-preview span { display: grid; place-items: center; width: 58px; height: 58px; padding-left: 4px; color: var(--ink); background: var(--yellow); border: var(--border); border-radius: 50%; font-size: 25px; }
.video-preview small { position: absolute; right: 12px; bottom: 10px; padding: 4px 8px; color: var(--ink); background: var(--mint); border: 1.5px solid var(--line); border-radius: 999px; font-size: 10px; font-weight: 900; }
.video-card-body { padding: 18px; }
.video-meta { display: flex; justify-content: space-between; gap: 8px; }
.video-card h3 { margin: 18px 0 8px; font-size: 21px; line-height: 1.3; }
.video-card p { min-height: 48px; margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.video-card-body > small { display: block; color: var(--muted); font-size: 10px; }
.video-card .table-actions { margin-top: 18px; }
.compliance-note { display: flex; flex-direction: column; gap: 3px; margin-bottom: 22px; padding: 14px 16px; background: #fef3c7; border: var(--border); border-radius: 8px; box-shadow: 4px 4px 0 var(--yellow); }
.compliance-note span { color: #475569; font-size: 12px; font-weight: 700; }
.list-toolbar { display: flex; align-items: end; gap: 14px; margin-bottom: 16px; }
.list-toolbar label { display: flex; flex-direction: column; gap: 5px; }
.list-toolbar label span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.list-toolbar input, .list-toolbar select { min-height: 42px; padding: 8px 12px; background: var(--white); border: var(--border); border-radius: 8px; }
.search-box { flex: 1; max-width: 430px; }
.filter-box { width: 150px; }
.date-filter { width: 170px; }
.finance-toolbar { flex-wrap: wrap; }
.document-toolbar { flex-wrap: wrap; }
.document-toolbar .search-box { min-width: min(320px, 100%); }
.finance-toolbar .filter-reset { min-height: 42px; padding: 8px 12px; }
.finance-toolbar .filter-reset:disabled { cursor: not-allowed; opacity: .45; }
.finance-toolbar > strong.filter-error { color: #b91c1c; }
.list-toolbar > strong { margin-left: auto; padding-bottom: 9px; font-size: 13px; }
.finance-metrics { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 12px; margin-bottom: 30px; }
.finance-detail-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.finance-detail-summary > div { padding: 14px; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 3px 3px 0 var(--mint); }
.finance-detail-summary strong, .finance-detail-summary span { display: block; }
.finance-detail-summary strong { font-size: 22px; }
.finance-detail-summary span { color: var(--muted); font-size: 11px; font-weight: 800; }
.metric { padding: 18px; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 4px 4px 0 var(--sky); }
.metric:nth-child(2) { box-shadow-color: var(--pink); }
.metric:nth-child(3) { box-shadow-color: var(--mint); }
.metric strong { display: block; font-size: 27px; line-height: 1.15; }
.metric span { color: var(--muted); font-size: 12px; font-weight: 700; }
.table-wrap { overflow: auto; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 5px 5px 0 #cbd5e1; }
.doc-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.doc-table th, .doc-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.doc-table th { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; background: var(--soft); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table tbody tr:hover { background: #fffbeb; }
.doc-table td > small, .student-table td small { display: block; color: var(--muted); font-size: 10px; }
.student-table td:first-child strong { display: block; }
.doc-name { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.doc-name > span:last-child { display: flex; flex-direction: column; min-width: 180px; }
.doc-name small { color: var(--muted); font-size: 10px; font-weight: 600; }
.doc-icon { display: grid; place-items: center; width: 31px; height: 31px; background: var(--mint); border: 1.5px solid var(--line); border-radius: 50%; font-size: 10px; font-weight: 900; }
.badge { display: inline-flex; padding: 4px 9px; background: #d1fae5; border: 1.5px solid var(--line); border-radius: 999px; font-size: 10px; font-weight: 800; }
.badge.private { background: #fbcfe8; }
.badge.version { background: #ddd6fe; }
.version-button { cursor: pointer; }
.table-actions { display: flex; gap: 12px; white-space: nowrap; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 45px 20px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); font-size: 17px; }
.loading-state { display: grid; place-items: center; min-height: 420px; font-size: 18px; font-weight: 900; }

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(30, 41, 59, .72);
}
.modal-panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  background: var(--cream);
  border: var(--border);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--pink);
}
.modal-panel:has(.finance-detail-summary) { width: min(880px, 100%); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.modal-head h2 { margin: 14px 0 0; font-size: 25px; line-height: 1.3; }
.modal-close { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; background: var(--yellow); border: var(--border); border-radius: 50%; box-shadow: 3px 3px 0 var(--line); font-size: 24px; line-height: 1; }
.modal-panel .field { margin-bottom: 17px; }
.modal-panel .field small { color: var(--muted); font-size: 11px; }
.article-editor { min-height: 300px !important; line-height: 1.8; }
.internal-video-player { display: block; width: 100%; max-height: 58vh; background: var(--ink); border: var(--border); border-radius: 8px; }
.video-player-summary { margin: 16px 0 0; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 25px; padding-top: 20px; border-top: 2px dashed #cbd5e1; }
.member-picker { margin: 0 0 18px; padding: 15px; background: var(--white); border: var(--border); border-radius: 8px; }
.member-picker > strong { display: block; margin-bottom: 10px; }
.member-option { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e2e8f0; cursor: pointer; }
.member-option:last-child { border-bottom: 0; }
.member-option span { display: flex; flex-direction: column; font-weight: 800; }
.member-option small { color: var(--muted); font-weight: 600; }
.version-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.version-list li { padding: 14px; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 3px 3px 0 var(--sky); }
.version-list li div { display: flex; flex-direction: column; }
.version-list span { color: var(--muted); font-size: 12px; }
.account-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; background: var(--white); border: var(--border); border-radius: 8px; }
.account-form .field { margin: 0; }
.account-form .button { align-self: end; }
.modal-section-title { margin: 26px 0 12px; }
.account-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.account-lock { padding: 5px 9px; color: var(--ink) !important; background: var(--yellow); border: 1.5px solid var(--line); border-radius: 999px; font-weight: 800; }
.delete-account-button { background: #fee2e2; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.schedule-picker { max-height: 240px; overflow: auto; }
.schedule-conflict-note { margin-bottom: 14px; padding: 11px 13px; background: #d1fae5; border: 1.5px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 700; }
.danger-link { border-bottom-color: #ef4444; }
.knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.knowledge-card { display: flex; flex-direction: column; min-height: 250px; padding: 22px; background: var(--white); border: var(--border); border-radius: 8px; box-shadow: 6px 6px 0 var(--mint); }
.knowledge-card:nth-child(3n+2) { box-shadow-color: var(--yellow); }
.knowledge-card:nth-child(3n) { box-shadow-color: var(--pink); }
.knowledge-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.knowledge-card h3 { margin: 24px 0 10px; font-size: 22px; line-height: 1.3; }
.knowledge-card p { margin: 0; color: var(--muted); }
.knowledge-card .article-foot { margin-top: auto; }
.knowledge-reader { color: #475569; line-height: 1.85; }
.knowledge-summary { padding: 14px; color: var(--ink); background: var(--yellow); border: var(--border); border-radius: 8px; font-weight: 800; }
.message-cell { min-width: 260px; max-width: 560px; white-space: pre-wrap; }
.status-select { min-width: 105px; padding: 7px 9px; background: var(--white); border: 1.5px solid var(--line); border-radius: 8px; font-weight: 700; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 16px; }
.pagination > span { color: var(--muted); font-size: 12px; font-weight: 800; }
.pagination > div { display: flex; gap: 8px; }
.pagination button:disabled { cursor: not-allowed; opacity: .45; }
.audit-filter-form { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr 1fr; gap: 10px; padding: 16px; background: var(--white); border: var(--border); border-radius: 8px; }
.audit-filter-form .field { margin: 0; }
.audit-filter-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 10px; }
.audit-log-list { max-height: 45vh; overflow: auto; padding-right: 4px; }
.storage-panel { margin-top: 18px; padding: 20px; background: var(--white); border: var(--border); border-radius: 8px; }
.storage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.storage-grid > div { padding: 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; }
.storage-grid strong, .storage-grid span { display: block; }
.storage-grid strong { font-size: 1.2rem; color: var(--ink); }
.storage-grid span { margin-top: 4px; color: var(--muted); font-size: .82rem; }
.storage-note { margin: 14px 0 0; color: var(--muted); font-size: .78rem; }

.footer { display: flex; justify-content: space-between; gap: 20px; padding: 34px clamp(22px, 8vw, 120px); color: var(--white); background: var(--ink); border-top: var(--border); font-size: 12px; }
.footer-brand { color: var(--yellow); font-size: 15px; font-weight: 900; letter-spacing: .04em; }
.footer p { margin: 4px 0 0; color: #cbd5e1; }
.footer-meta { display: flex; flex-direction: column; gap: 5px; text-align: right; }
.footer-meta a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; z-index: 50; right: 22px; bottom: 22px; max-width: 340px; padding: 13px 16px; color: var(--ink); background: var(--yellow); border: var(--border); border-radius: 8px; box-shadow: var(--shadow-sm); transform: translateY(150%); transition: transform .26s var(--ease-pop); font-size: 13px; font-weight: 800; }
.toast.show { transform: translateY(0); }

@media (max-width: 1080px) {
  .main-nav { position: absolute; display: none; top: 82px; left: 0; right: 0; padding: 14px 20px 22px; background: var(--cream); border-bottom: var(--border); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 11px 14px; }
  .menu-toggle { display: block; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 56px; }
  .hero-visual { min-height: 400px; }
  .articles { grid-template-columns: 1fr; }
  .article-card, .article-card.featured { min-height: 270px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: var(--border); }
  .map-grid { grid-template-columns: 1fr; }
  .public-scope { grid-template-columns: 1fr; }
  .map-item:nth-child(2) { transform: none; }
  .split, .login-wrap { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 1fr; margin: -28px -22px -100px; }
  .workspace-side { border-right: 0; border-bottom: var(--border); }
  .workspace-side nav { display: flex; flex-wrap: wrap; gap: 5px; }
  .side-link { width: auto; margin-bottom: 0; }
}

@media (max-width: 560px) {
  .topbar { min-height: 74px; }
  .main-nav { top: 74px; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .brand-mark { width: 39px; height: 39px; }
  .hero { min-height: auto; padding-bottom: 70px; }
  .hero::before { width: 300px; height: 300px; left: -130px; }
  .hero { display: block; padding-inline: 20px; }
  .hero > div { width: 100%; min-width: 0; max-width: 100%; }
  .hero > div:first-child { overflow: hidden; }
  .hero h1 { max-width: 100%; font-size: 34px; line-height: 1.14; overflow-wrap: anywhere; word-break: break-all; }
  .hero-copy { max-width: 100%; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
  .hero-copy > span { display: inline; }
  .hero-actions { gap: 11px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; min-width: 0; flex: 0 0 auto; padding-inline: 12px; white-space: normal; text-align: center; }
  .hero-visual { min-height: 330px; border-radius: 38% 38% 8px 38%; box-shadow: 6px 6px 0 var(--pink); }
  .visual-label { left: 10px; }
  .visual-card { right: 10px; }
  .hero-note { gap: 10px; }
  .hero-note { width: 100%; flex-direction: column; }
  .hero-note > div { min-width: 0; flex: 1; padding-inline: 12px; overflow-wrap: anywhere; }
  .hero-note strong { font-size: 20px; }
  .hero-logo { left: -12px; width: 105px; height: 105px; }
  .hero-visual { width: 100%; margin-top: 52px; }
  .visual-card { right: 8px; width: calc(100% - 86px); padding: 17px; }
  .visual-card h3 { font-size: 20px; }
  .section-head, .workspace-top, .footer { align-items: start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: var(--border); }
  .stat:last-child { border-bottom: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .workspace-actions { width: 100%; }
  .workspace-actions .button { flex: 1; padding-inline: 10px; }
  .workspace-metrics { grid-template-columns: 1fr; }
  .dashboard-metrics { grid-template-columns: 1fr 1fr; }
  .dashboard-panels { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-metrics { grid-template-columns: 1fr 1fr; }
  .account-form { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .dashboard-metrics, .video-grid { grid-template-columns: 1fr; }
  .scope-list { grid-template-columns: 1fr; }
  .list-toolbar { align-items: stretch; flex-direction: column; }
  .article-public-toolbar { align-items: stretch; flex-direction: column; }
  .article-public-toolbar .search-box, .article-public-toolbar .filter-box { width: 100%; max-width: none; }
  .article-public-toolbar > strong { margin-left: 0; padding-bottom: 0; }
  .article-card { min-height: 280px; padding: 20px; }
  .article-card h3 { margin-top: 26px; font-size: 22px; }
  .article-foot { align-items: flex-start; flex-direction: column; }
  .article-body { font-size: 15px; line-height: 1.8; }
  .article-side { transform: none; }
  .page-title, .page-subtitle { overflow-wrap: anywhere; }
  .search-box, .filter-box { width: 100%; max-width: none; }
  .list-toolbar > strong { margin-left: 0; padding-bottom: 0; }
  .account-list li { align-items: stretch; flex-direction: column; }
  .account-list .table-actions { flex-wrap: wrap; white-space: normal; }
  .modal-panel { padding: 20px 16px; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .button { flex: 1; }
  .audit-filter-form { grid-template-columns: 1fr; }
  .audit-filter-actions { grid-column: auto; }
  .audit-filter-actions .button { flex: 1; }
  .storage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pagination { justify-content: space-between; }
  .footer-meta { text-align: left; }
}

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