:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #eeede7;
  --ink: #191a17;
  --muted: #70726b;
  --line: #deddd6;
  --accent: #ff5b35;
  --accent-dark: #db3f1e;
  --lime: #c8f169;
  --navy: #202b3c;
  --success: #267a54;
  --warning: #b96a0b;
  --danger: #b33a34;
  --shadow-sm: 0 8px 24px rgba(30, 30, 24, 0.06);
  --shadow-lg: 0 26px 80px rgba(30, 30, 24, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { overflow-y: scroll; scrollbar-gutter: stable; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); }
body.modal-open, body.search-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
::selection { background: var(--lime); color: var(--ink); }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.page { padding: 38px 0 80px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section { padding: 68px 0; }
.section-tight { padding: 44px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-title { margin: 0; font-size: clamp(28px, 4vw, 43px); line-height: 1.1; letter-spacing: -.045em; }
.section-note { max-width: 520px; margin: 8px 0 0; color: var(--muted); line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--ink); font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(222,221,214,.82); background: rgba(245,244,239,.9); backdrop-filter: blur(16px); }
.header-inner { height: 74px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 36px; height: 36px; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; border-radius: 11px; background: var(--ink); transform: rotate(-2deg); }
.brand-mark i { border-radius: 50%; background: var(--lime); }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: var(--accent); }
.brand-text { display: flex; align-items: baseline; gap: 6px; font-size: 21px; font-weight: 900; letter-spacing: -.04em; }
.brand-text small { color: var(--muted); font-size: 9px; letter-spacing: .18em; }
.main-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav-link { padding: 9px 12px; border-radius: 9px; color: #575952; font-size: 14px; font-weight: 650; transition: .2s ease; }
.nav-link:hover, .nav-link.active { background: var(--surface); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: .18s ease; }
.icon-btn:hover { transform: translateY(-1px); border-color: #bbb; box-shadow: var(--shadow-sm); }
.icon-btn.active { border-color: var(--ink); background: var(--ink); color: white; }
.icon-btn svg { width: 18px; height: 18px; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; cursor: pointer; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--navy); color: white; font-size: 12px; font-weight: 800; }
.avatar.lg { width: 66px; height: 66px; border-radius: 20px; font-size: 23px; }
.user-chip span { max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.mobile-toggle { display: none; }

/* global search */
.global-search-backdrop { position: fixed; inset: 74px 0 0; z-index: 39; overflow-y: auto; background: rgba(25,26,23,.48); backdrop-filter: blur(5px); animation: fadeIn .18s ease; }
.global-search-panel { min-height: 100%; padding: 24px 0 64px; background: var(--bg); box-shadow: 0 24px 70px rgba(25,26,23,.18); animation: searchDrop .22s ease; }
.global-search-bar { height: 62px; display: flex; align-items: center; gap: 12px; padding: 8px 9px 8px 20px; border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-sm); }
.global-search-bar > svg { width: 21px; height: 21px; flex: none; color: var(--muted); }
.global-search-bar input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.global-search-clear { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.global-search-clear svg { width: 15px; height: 15px; }
.global-search-results { padding-top: 25px; }
.global-search-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.global-search-summary strong { font-size: 14px; }
.global-search-summary span { color: var(--muted); font-size: 11px; }
.global-search-group { padding-top: 30px; }
.global-search-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.global-search-heading .eyebrow { margin-bottom: 5px; font-size: 9px; }
.global-search-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.global-search-heading > small { color: var(--muted); font-size: 10px; }
.global-search-tool-grid .resource-card-cover { height: 130px; }
.global-search-tool-grid .resource-logo { width: 60px; height: 60px; border-radius: 18px; font-size: 20px; }
.global-search-tool-grid .resource-body { padding: 16px; }
.global-search-tool-grid .resource-desc { display: none; }
.global-search-tool-grid .resource-meta { margin-top: 13px; }
.global-search-article-list { display: grid; gap: 8px; }
.global-search-article { min-width: 0; padding: 19px 21px; display: grid; grid-template-columns: minmax(0,1fr) 180px; gap: 24px; align-items: center; border-radius: 16px; background: var(--surface); cursor: pointer; transition: .18s ease; }
.global-search-article:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.global-search-article > div > span { color: var(--accent-dark); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.global-search-article h3 { margin: 6px 0; font-size: 18px; letter-spacing: -.025em; }
.global-search-article p { margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.65; text-overflow: ellipsis; white-space: nowrap; }
.global-search-article aside { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; color: var(--muted); }
.global-search-article aside strong { color: var(--ink); font-size: 11px; }
.global-search-article aside small { font-size: 10px; }
.global-search-article aside svg { width: 17px; height: 17px; grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.global-search-empty { padding: 28px; border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 13px; text-align: center; }
.global-search-idle { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); text-align: center; }
.global-search-idle svg { width: 30px; height: 30px; color: var(--ink); }
.global-search-idle h2 { margin: 2px 0 0; color: var(--ink); font-size: 22px; letter-spacing: -.035em; }
.global-search-idle p { max-width: 450px; margin: 0; font-size: 12px; line-height: 1.7; }
@keyframes searchDrop { from { opacity: 0; transform: translateY(-12px); } }

/* buttons and forms */
.btn { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; background: var(--ink); color: white; font-size: 14px; font-weight: 750; cursor: pointer; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .72; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:disabled { border-color: #deded7; background: #eeeeea; color: #92948d; }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: #fff1ef; color: var(--danger); border-color: #f0cac6; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 12px; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 750; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); outline: none; transition: .18s ease; }
.input, .select { height: 46px; padding: 0 14px; }
.textarea { min-height: 112px; padding: 12px 14px; resize: vertical; line-height: 1.65; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25,26,23,.07); }
.field-hint { margin: -2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.check-row { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.check-row input { margin-top: 2px; accent-color: var(--accent); }

/* home hero */
.hero { position: relative; overflow: hidden; padding: 86px 0 66px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; top: -230px; right: -170px; width: 680px; height: 680px; border: 1px solid #d8d7d0; border-radius: 50%; box-shadow: inset 0 0 0 92px var(--bg), inset 0 0 0 93px #d8d7d0, inset 0 0 0 180px var(--bg), inset 0 0 0 181px #d8d7d0; opacity: .8; }
.hero-grid { position: relative; display: block; }
.hero h1 { max-width: none; margin: 0; white-space: nowrap; font-size: clamp(44px, 5.6vw, 78px); line-height: .98; letter-spacing: -.065em; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-copy { margin: 28px 0 34px; max-width: 600px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-search { max-width: 690px; height: 62px; display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 19px; background: var(--surface); border: 1px solid #d7d6cf; border-radius: 17px; box-shadow: var(--shadow-sm); }
.hero-search:focus-within { border-color: var(--ink); }
.hero-search svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 15px; background: transparent; }
.hero-search .btn { min-height: 46px; }
.hero-search .btn svg { color: #fff; }
.hot-searches { margin-top: 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.hot-pill { padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.65); cursor: pointer; }
.hot-pill:hover { color: var(--accent); }
/* categories */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card { min-height: 190px; padding: 22px; position: relative; overflow: hidden; border: 0; border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; transition: .24s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card:nth-child(2) { background: var(--navy); color: white; }
.category-card:nth-child(3) { background: var(--lime); }
.category-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); }
.category-card:nth-child(2) .category-icon { background: rgba(255,255,255,.12); }
.category-card:nth-child(3) .category-icon { background: rgba(255,255,255,.5); }
.category-icon svg { width: 22px; height: 22px; }
.category-card h3 { margin: 28px 0 7px; font-size: 20px; letter-spacing: -.03em; }
.category-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.category-card:nth-child(2) p { color: #b9c1ce; }
.category-count { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 800; }

/* resource cards */
.resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.resource-card { min-width: 0; position: relative; overflow: hidden; border: 0; border-radius: var(--radius-lg); background: var(--surface); transition: .24s ease; }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.resource-card-cover { height: 178px; position: relative; overflow: hidden; display: grid; place-items: center; background: var(--card-bg, #dfe7fb); cursor: pointer; }
.resource-card-cover::before, .resource-card-cover::after { content: ""; position: absolute; border: 1px solid rgba(0,0,0,.12); border-radius: 50%; }
.resource-card-cover::before { width: 220px; height: 220px; top: -115px; right: -60px; }
.resource-card-cover::after { width: 130px; height: 130px; left: -40px; bottom: -80px; }
.resource-logo { position: relative; z-index: 1; width: 74px; height: 74px; display: grid; place-items: center; border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 16px 40px rgba(0,0,0,.12); color: var(--logo-color, var(--ink)); font-size: 25px; font-weight: 900; letter-spacing: -.05em; }
.resource-logo-image { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 10px; display: block; object-fit: contain; border-radius: inherit; background: rgba(255,255,255,.96); opacity: 0; transition: opacity .15s ease; }
.resource-logo-image.loaded { opacity: 1; }
.resource-logo-fallback { position: relative; z-index: 0; line-height: 1; }
.resource-rank { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 9px; border-radius: 999px; background: rgba(25,26,23,.86); color: white; font-size: 10px; font-weight: 800; backdrop-filter: blur(8px); }
.resource-body { padding: 19px 20px 18px; }
.resource-card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.resource-card h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; letter-spacing: -.035em; cursor: pointer; }
.score { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12px; font-weight: 800; }
.score svg { width: 14px; height: 14px; fill: #f4aa2d; color: #f4aa2d; }
.resource-desc { min-height: 44px; margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 8px; border: 0; border-radius: 999px; color: #62645d; background: #f5f4ef; font-size: 10px; font-weight: 700; }
.tag.primary { background: #fff0ec; color: var(--accent-dark); }
.resource-meta { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.resource-meta span { display: inline-flex; align-items: center; gap: 5px; }
.resource-meta svg { width: 14px; height: 14px; }
.load-more { display: flex; justify-content: center; margin-top: 34px; }

/* curated band */
.curated { background: var(--ink); color: white; }
.curated-eyebrow { color: var(--lime); }
.curated .section-note { color: #a9aba5; }
.collection-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 14px; }
.collection-card { min-height: 290px; position: relative; overflow: hidden; padding: 24px; border: 0; border-radius: var(--radius-lg); background: #242620; cursor: pointer; }
.collection-card:first-child { background: var(--accent); }
.collection-card:nth-child(2) { background: var(--lime); color: var(--ink); }
.collection-card h3 { position: relative; z-index: 2; max-width: 300px; margin: 75px 0 10px; font-size: 29px; line-height: 1.14; letter-spacing: -.05em; }
.collection-card p { position: relative; z-index: 2; max-width: 330px; margin: 0; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.7; }
.collection-card:nth-child(2) p { color: #505444; }
.collection-index { position: relative; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.collection-circle { position: absolute; width: 220px; height: 220px; right: -55px; bottom: -60px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: inset 0 0 0 38px transparent, inset 0 0 0 39px rgba(255,255,255,.18), inset 0 0 0 77px transparent, inset 0 0 0 78px rgba(255,255,255,.18); }
.collection-card:nth-child(2) .collection-circle { border-color: rgba(0,0,0,.15); box-shadow: inset 0 0 0 38px transparent, inset 0 0 0 39px rgba(0,0,0,.12), inset 0 0 0 77px transparent, inset 0 0 0 78px rgba(0,0,0,.12); }

/* list */
.channel-main { padding-top: 36px; }
.result-count { padding: 8px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 750; }
.filters { position: static; padding: 0; border: 0; background: transparent; }
.filter-bar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: flex-start; gap: 12px; }
.filter-bar-single { grid-template-columns: minmax(0,1fr); }
.filter-chips { min-width: 0; display: flex; justify-content: flex-start; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filter-bar-single .filter-chips { max-width: 100%; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip { flex: none; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: #666860; font-size: 12px; font-weight: 700; cursor: pointer; }
.filter-chip.active { background: var(--ink); color: white; border-color: var(--ink); }
.sort-select { width: 140px; height: 40px; padding: 0 44px 0 12px; appearance: none; border: 1px solid var(--line); border-radius: 10px; background-color: var(--surface); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23666960' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; font-size: 12px; font-weight: 700; }

/* learning resources */
.learning-layout { padding-top: 38px; padding-bottom: 82px; display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 34px; align-items: start; }
.article-feed { min-width: 0; }
.feed-head { min-height: 46px; margin-bottom: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.feed-head h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.feed-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.article-list-item { position: relative; padding: 22px 0; display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 24px; border-bottom: 1px solid var(--line); }
.article-list-item:first-of-type { border-top: 1px solid var(--line); }
.article-list-cover, .article-cover, .article-cover-wide { position: relative; overflow: hidden; background: var(--article-cover, #e7e7e1); }
.article-list-cover { min-height: 160px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 18px; }
.article-preview.has-image { padding: 0; }
.article-preview.has-image::after { display: none; }
.article-preview-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.article-list-cover::after, .article-cover::after, .article-cover-wide::after { content: ""; position: absolute; width: 150px; height: 150px; right: -55px; bottom: -70px; border: 1px solid rgba(0,0,0,.15); border-radius: 50%; box-shadow: inset 0 0 0 28px transparent, inset 0 0 0 29px rgba(0,0,0,.1); }
.article-list-cover > *, .article-cover > *, .article-cover-wide > * { position: relative; z-index: 1; }
.article-list-cover > span, .article-cover > span, .article-cover-wide > span { font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.article-list-cover > strong, .article-cover > strong, .article-cover-wide > strong { font-size: 36px; line-height: .8; letter-spacing: -.07em; }
.article-list-cover > strong small, .article-cover > strong small, .article-cover-wide > strong small { margin-left: 5px; font-size: 8px; letter-spacing: .08em; }
.article-list-main { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.article-byline { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 10px; }
.article-list-main h2 { margin: 10px 0 8px; font-size: 24px; line-height: 1.25; letter-spacing: -.035em; }
.article-list-main h2 a:hover, .article-card h3 a:hover { color: var(--accent-dark); }
.article-list-main > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-list-bottom { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.read-link { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 11px; font-weight: 800; }
.read-link svg { width: 14px; height: 14px; }
.learning-sidebar { position: sticky; top: 150px; }
.learning-sidebar-panel { padding: 22px; border-radius: 20px; background: #eeede7; }
.sidebar-section + .sidebar-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(25,26,23,.1); }
.sidebar-heading { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-heading span { font-size: 14px; font-weight: 850; }
.sidebar-heading small { color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.recommend-list { display: grid; gap: 20px; }
.recommend-list > a { display: block; }
.recommend-list strong { display: block; font-size: 13px; line-height: 1.55; }
.recommend-list small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud .tag.active { background: var(--ink); border-color: var(--ink); color: white; }
.sidebar-community { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(25,26,23,.1); }
.sidebar-community h3 { margin: 0 0 8px; font-size: 17px; }
.sidebar-community > p:not(.eyebrow) { margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.sidebar-community .text-link { font-size: 11px; }
.home-learning { border-top: 1px solid var(--line); background: #efeee8; }
.home-article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.article-card { position: relative; overflow: hidden; border: 0; border-radius: var(--radius-lg); background: var(--surface); transition: .22s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-cover { height: 180px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.article-card-body { padding: 20px; }
.article-card h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.3; letter-spacing: -.03em; }
.article-card-body > p { min-height: 64px; margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.7; }

/* article reading */
.article-page { background: var(--surface); }
.article-detail-shell { padding-top: 32px; padding-bottom: 86px; }
.article-header { width: min(100%, 820px); margin: 58px auto 42px; text-align: center; }
.article-header h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(40px, 6vw, 68px); font-weight: 700; line-height: 1.15; letter-spacing: -.05em; }
.article-deck { width: min(100%, 700px); margin: 22px auto; color: var(--muted); font-size: 17px; line-height: 1.8; }
.article-meta { display: inline-flex; align-items: center; gap: 10px; text-align: left; }
.article-meta strong, .article-meta small { display: block; }
.article-meta strong { font-size: 12px; }
.article-meta small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.article-meta-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 24px; }
.article-save-btn { min-height: 36px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 800; cursor: pointer; }
.article-save-btn svg { width: 16px; height: 16px; }
.article-save-btn.active { border-color: rgba(255,91,53,.32); color: #ff5b35; }
.article-save-btn.active svg { fill: currentColor; }
.article-reading-layout { width: min(100%, 820px); margin: 0 auto; display: block; }
.article-content { padding: 0; background: var(--surface); }
.article-cover-wide { height: 360px; margin: 0 0 44px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 24px; }
.article-cover-wide::after { width: 330px; height: 330px; right: -100px; bottom: -150px; }
.article-cover-wide > strong { font-size: 68px; }
.article-hero-figure { margin: 0 0 44px; overflow: hidden; border-radius: 24px; background: var(--surface-2); }
.article-hero-figure img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.article-content > p { margin: 0 0 24px; color: #3f423b; font-family: Georgia, "Songti SC", serif; font-size: 17px; line-height: 2.05; }
.article-content > p.article-intro { color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.9; }
.article-inline-figure { margin: 34px 0; }
.article-inline-figure img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 18px; background: var(--surface-2); }
.article-inline-figure figcaption { margin-top: 9px; color: var(--muted); font-size: 10px; text-align: center; }
.article-end { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.article-end > span { color: var(--muted); font-size: 9px; letter-spacing: .2em; }
.article-end > p { margin: 12px 0 20px; color: var(--muted); font-size: 12px; }
.article-end .detail-actions { justify-content: center; }
.article-report-link { margin: 20px auto 0; padding: 0; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font-size: 10px; cursor: pointer; }
.article-report-link:hover { color: var(--danger); }
.article-report-link svg { width: 13px; height: 13px; }
.related-articles { padding-top: 68px; }
.related-title { font-size: 32px; }

/* detail */
.back-row { margin-bottom: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.back-link svg { width: 16px; height: 16px; }
.detail-hero { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 48px; padding: 34px; border: 0; border-radius: 28px; background: var(--surface); }
.detail-cover { min-height: 310px; position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 22px; background: var(--card-bg); }
.detail-cover::before { content: ""; position: absolute; width: 320px; height: 320px; top: -170px; right: -100px; border: 1px solid rgba(0,0,0,.16); border-radius: 50%; box-shadow: inset 0 0 0 60px transparent, inset 0 0 0 61px rgba(0,0,0,.12); }
.detail-cover .resource-logo { width: 104px; height: 104px; border-radius: 29px; font-size: 34px; }
.detail-main { display: flex; flex-direction: column; justify-content: center; }
.detail-main h1 { margin: 14px 0 12px; font-size: clamp(38px,5vw,58px); line-height: 1; letter-spacing: -.055em; }
.detail-lead { max-width: 680px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.detail-stats { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 12px; }
.detail-stats span { display: inline-flex; align-items: center; gap: 6px; }
.detail-stats svg { width: 16px; height: 16px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.favorite-action.active { border-color: rgba(255,91,53,.32); color: #ff5b35; }
.favorite-action.active svg { fill: currentColor; }
.detail-layout { margin-top: 24px; display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 24px; align-items: start; }
.content-card { padding: 30px; border: 0; border-radius: var(--radius-lg); background: var(--surface); }
.content-card + .content-card { margin-top: 18px; }
.content-card h2 { margin: 0 0 18px; font-size: 25px; letter-spacing: -.035em; }
.content-card h3 { margin: 24px 0 12px; font-size: 17px; }
.rich-copy { color: #555850; font-size: 14px; line-height: 1.9; }
.inline-link { display: inline-flex; align-items: baseline; gap: 4px; color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.inline-link:hover { color: var(--ink); }
.inline-link svg { width: 13px; height: 13px; flex: none; }
.detail-url { max-width: 100%; margin-top: 13px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.detail-url:hover { color: var(--accent-dark); }
.detail-url svg { width: 13px; height: 13px; flex: none; }
.feature-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.feature-item { padding: 14px; display: flex; align-items: flex-start; gap: 10px; border-radius: 13px; background: #f6f6f1; color: #464840; font-size: 13px; line-height: 1.55; }
.feature-check { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--lime); }
.feature-check svg { width: 12px; height: 12px; }
.steps { counter-reset: step; display: grid; gap: 12px; }
.step { position: relative; padding: 14px 16px 14px 48px; border-left: 2px solid var(--accent); background: #fff7f4; border-radius: 0 12px 12px 0; color: #5b514d; font-size: 13px; line-height: 1.6; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 15px; top: 14px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-size: 10px; font-weight: 800; }
.side-card { padding: 22px; border: 0; border-radius: var(--radius-lg); background: var(--surface); }
.side-card + .side-card { margin-top: 16px; }
.side-card h3 { margin: 0 0 14px; font-size: 17px; }
.detail-info-card { grid-column: 1 / -1; }
.detail-scenarios { margin-top: 24px; }
.detail-scenarios h4 { margin: 0 0 10px; font-size: 12px; }
.detail-info-card .report-link { margin-top: 24px; padding: 14px; display: flex; align-items: flex-start; gap: 8px; border-radius: 12px; background: var(--surface-2); line-height: 1.6; }
.info-list { display: grid; gap: 13px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #ecebe5; font-size: 12px; }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row span:first-child { color: var(--muted); }
.info-row strong { text-align: right; }
.report-link { width: 100%; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; text-align: left; cursor: pointer; }
.report-link:hover { color: var(--danger); }
.report-link svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.rating-input { display: flex; gap: 4px; }
.star-btn { padding: 0; border: 0; background: none; color: #c8c8c0; cursor: pointer; }
.star-btn svg { width: 25px; height: 25px; fill: currentColor; }
.star-btn.active { color: #f4aa2d; }
.comment-form { display: grid; gap: 12px; padding: 18px; border-radius: 16px; background: #f6f6f1; }
.comment-section-head { margin-bottom: 20px; }
.content-card h2.flush-title { margin: 0; }
.comment-list { display: grid; gap: 0; margin-top: 20px; }
.comment { padding: 19px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.comment-user { display: flex; align-items: center; gap: 10px; }
.comment-user .avatar { width: 35px; height: 35px; }
.comment-user strong { display: block; font-size: 13px; }
.comment-user small { color: var(--muted); font-size: 10px; }
.comment p { margin: 12px 0; color: #565851; font-size: 13px; line-height: 1.75; }
.comment-actions { display: flex; gap: 14px; }
.comment-action { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 11px; cursor: pointer; }
.comment-action svg { width: 14px; height: 14px; }

/* auth */
.auth-page { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { min-width: 0; min-height: 660px; position: relative; overflow: hidden; padding: 70px clamp(36px, 6vw, 96px); display: flex; flex-direction: column; justify-content: space-between; background: var(--navy); color: white; }
.auth-aside::after { content: ""; position: absolute; width: 560px; height: 560px; right: -230px; bottom: -250px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: inset 0 0 0 90px transparent, inset 0 0 0 91px rgba(255,255,255,.14), inset 0 0 0 180px transparent, inset 0 0 0 181px rgba(255,255,255,.14); }
.auth-aside h1 { position: relative; z-index: 2; max-width: 590px; margin: 0; font-size: clamp(40px,4.2vw,60px); line-height: 1.08; letter-spacing: -.06em; }
.auth-aside h1 span { display: block; white-space: nowrap; }
.auth-aside h1 em { color: var(--lime); font-style: normal; }
.auth-kicker { margin: 0 0 22px; color: #aeb8c8; font-size: 10px; font-weight: 850; letter-spacing: .2em; }
.auth-testimonial { position: relative; z-index: 2; max-width: 430px; }
.auth-testimonial p { font-family: Georgia, "Songti SC", serif; font-size: 18px; line-height: 1.7; }
.auth-testimonial small { color: #aeb8c8; }
.auth-panel { padding: 48px; display: grid; place-items: center; background: #f8f7f3; }
.auth-card { width: min(100%, 460px); padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.auth-card h2 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
.auth-card > p { margin: 10px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 22px; border-radius: 12px; background: var(--surface-2); }
.auth-tab { height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; cursor: pointer; }
.auth-tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 4px 15px rgba(0,0,0,.06); }
.auth-form { display: grid; gap: 16px; }
.auth-code-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.auth-code-row .btn { min-width: 112px; }
.auth-forgot-row { display: flex; justify-content: flex-end; }
.demo-box { margin-top: 18px; padding: 14px; border-radius: 12px; background: #f5f5f0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.demo-box strong { color: var(--ink); }

/* profile */
.profile-head { padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.profile-head-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.profile-person { display: flex; align-items: center; gap: 18px; }
.profile-person h1 { margin: 0 0 5px; font-size: 28px; letter-spacing: -.04em; }
.profile-person p { margin: 0; color: var(--muted); font-size: 13px; }
.role-badge { display: inline-flex; margin-top: 8px; padding: 4px 8px; border-radius: 999px; background: #edf6d9; color: #567120; font-size: 10px; font-weight: 800; }
.profile-layout { margin-top: 20px; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 20px; align-items: start; }
.profile-nav { position: sticky; top: 98px; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.profile-nav button { width: 100%; height: 43px; padding: 0 12px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; }
.profile-nav button svg { width: 17px; height: 17px; }
.profile-nav button:hover, .profile-nav button.active { background: var(--surface-2); color: var(--ink); }
.profile-nav button.logout { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--danger); }
.profile-panel { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.profile-panel h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.04em; }
.panel-subtitle { margin: 0 0 24px; color: var(--muted); font-size: 12px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.summary-card { padding: 18px; border-radius: 15px; background: #f4f4ef; }
.summary-card strong { display: block; font-size: 27px; letter-spacing: -.04em; }
.summary-card span { color: var(--muted); font-size: 11px; }
.compact-list { display: grid; gap: 10px; }
.compact-item { padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 13px; }
.compact-main { min-width: 0; display: flex; align-items: center; gap: 12px; }
.mini-logo { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--card-bg); font-size: 13px; font-weight: 900; }
.mini-logo svg { width: 18px; height: 18px; }
.compact-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.compact-title-link:hover { color: var(--accent-dark); }
.compact-main small { color: var(--muted); font-size: 10px; }
.notice-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.profile-security { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.profile-recent-title { margin: 28px 0 14px; }

/* submission */
.submit-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 24px; align-items: start; }
.publish-hero { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.publish-type-tabs { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.publish-type-tabs button { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.publish-type-tabs button svg { width: 16px; height: 16px; }
.publish-type-tabs button.active { background: var(--ink); color: white; }
.channel-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.channel-switch button { height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.channel-switch button.active { background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.textarea.compact { min-height: 88px; }
.article-editor { min-height: 360px; }
.article-upload-zone { min-height: 96px; padding: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px dashed #bbbcb4; border-radius: 14px; background: #f8f8f4; color: var(--muted); cursor: pointer; transition: .18s ease; }
.article-upload-zone:hover { border-color: var(--ink); background: var(--surface-2); color: var(--ink); }
.article-upload-zone > svg { width: 24px; height: 24px; }
.article-upload-zone span { display: grid; gap: 4px; }
.article-upload-zone strong { color: var(--ink); font-size: 13px; }
.article-upload-zone small { font-size: 10px; }
.article-image-preview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.article-image-preview figure { min-width: 0; position: relative; margin: 0; }
.article-image-preview img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.article-image-preview button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 8px; background: rgba(25,26,23,.82); color: white; cursor: pointer; }
.article-image-preview button svg { width: 13px; height: 13px; }
.article-image-preview figcaption { margin-top: 5px; color: var(--muted); font-size: 9px; text-align: center; }
.image-preview-empty { grid-column: 1/-1; margin: 0; padding: 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 10px; text-align: center; }
.publish-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.publish-actions > span { color: var(--muted); font-size: 11px; }
.submit-intro { padding: 30px; position: sticky; top: 98px; overflow: hidden; border-radius: var(--radius-lg); background: var(--lime); }
.submit-intro h2 { margin: 0 0 12px; font-size: 28px; letter-spacing: -.045em; }
.submit-intro p { color: #505444; font-size: 13px; line-height: 1.75; }
.submit-intro .publish-eyebrow { color: #41511e; }
.guide-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.guide-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.55; }
.guide-num { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 10px; font-weight: 800; }

/* admin */
.admin-shell { display: grid; grid-template-columns: 240px minmax(0,1fr); min-height: calc(100vh - 74px); }
.admin-sidebar { padding: 30px 18px; border-right: 1px solid var(--line); background: var(--surface); }
.admin-title { padding: 0 11px; margin-bottom: 24px; }
.admin-title h2 { margin: 0; font-size: 20px; }
.admin-title p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav button { height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; }
.admin-nav button svg { width: 17px; height: 17px; }
.admin-nav button:hover, .admin-nav button.active { background: var(--ink); color: white; }
.admin-content { min-width: 0; padding: 34px; }
.admin-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-head h1 { margin: 0; font-size: 32px; letter-spacing: -.045em; }
.admin-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { padding: 20px; border: 0; border-radius: var(--radius-md); background: var(--surface); }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #f1f1ec; color: var(--accent); }
.metric-icon svg { width: 17px; height: 17px; }
.metric-card strong { display: block; margin: 20px 0 4px; font-size: 27px; letter-spacing: -.045em; }
.metric-card span { color: var(--muted); font-size: 11px; }
.chart-card { margin-top: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.chart-card h3 { margin: 0 0 22px; font-size: 17px; }
.bar-chart { height: 190px; display: flex; align-items: end; gap: 12px; padding-top: 12px; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 8px; }
.bar { width: min(100%, 44px); min-height: 4px; border-radius: 8px 8px 0 0; background: var(--accent); }
.bar-col:nth-child(even) .bar { background: var(--navy); }
.bar-col span { margin-bottom: -24px; color: var(--muted); font-size: 9px; }
.admin-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid #ecebe5; text-align: left; font-size: 12px; }
.admin-table th { background: #f7f7f3; color: var(--muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.admin-table tr:last-child td { border-bottom: 0; }
.table-resource { display: flex; align-items: center; gap: 10px; }
.table-resource .mini-logo { width: 36px; height: 36px; }
.status { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #e9f5ee; color: var(--success); font-size: 10px; font-weight: 800; }
.status.pending { background: #fff3dd; color: var(--warning); }
.status.offline, .status.rejected, .status.banned { background: #fff0ee; color: var(--danger); }
.table-actions { display: flex; gap: 6px; }
.modal-form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.admin-description { min-height: 150px; }
.report-queue { margin-top: 0; }
.report-item { align-items: flex-start; }
.report-item .compact-main { align-items: flex-start; flex: 1; }
.report-item .compact-main small { display: block; margin-top: 5px; white-space: normal; line-height: 1.6; }
.report-item .metric-icon { flex: none; }

/* generic */
.empty-state { padding: 70px 24px; grid-column: 1/-1; text-align: center; border: 1px dashed #c8c7c0; border-radius: var(--radius-lg); }
.compact-empty-state { padding: 40px 20px; }
.admin-empty-state { padding: 46px 20px; }
.empty-icon { width: 60px; height: 60px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-2); }
.empty-icon svg { width: 25px; height: 25px; }
.empty-state h3 { margin: 0 0 7px; font-size: 20px; }
.empty-state p { max-width: 420px; margin: 0 auto 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.skeleton { position: relative; overflow: hidden; background: #e8e7e1; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* footer */
.footer { padding: 54px 0 28px; border-top: 1px solid var(--line); background: #eeede7; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .65fr); gap: 40px; }
.footer-brand p { max-width: 390px; margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.footer-col h4 { margin: 0 0 14px; font-size: 12px; }
.footer-col a { display: block; margin: 9px 0; color: var(--muted); font-size: 11px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #d5d4ce; display: flex; justify-content: space-between; color: #94968f; font-size: 10px; }

/* modal + toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 20px; display: grid; place-items: center; background: rgba(20,22,19,.55); backdrop-filter: blur(5px); animation: fadeIn .18s ease; }
.modal { width: min(100%, 560px); max-height: calc(100vh - 40px); overflow: auto; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); animation: rise .22s ease; }
.modal.wide { width: min(100%, 760px); }
.modal-head { padding: 22px 24px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.modal-close { width: 34px; height: 34px; border: 0; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); cursor: pointer; }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: 24px; }
.modal-actions { padding: 16px 24px 24px; display: flex; justify-content: flex-end; gap: 9px; }
#toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: grid; gap: 9px; }
.toast { width: min(360px, calc(100vw - 44px)); padding: 13px 15px; display: flex; align-items: center; gap: 10px; border-radius: 13px; background: var(--ink); color: white; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; font-size: 12px; line-height: 1.5; }
.toast.success svg { color: var(--lime); }
.toast.error svg { color: #ff8a72; }
.toast svg { width: 18px; height: 18px; flex: none; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: 74px 0 auto; padding: 14px 20px 20px; display: none; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px; }
  .mobile-toggle { display: inline-grid; }
  .header-inner { gap: 14px; }
  .header-actions { margin-left: auto; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-article-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .collection-grid { grid-template-columns: 1fr 1fr; }
  .collection-card:first-child { grid-column: 1/-1; }
  .detail-hero { grid-template-columns: 270px minmax(0,1fr); gap: 30px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .side-card + .side-card { margin-top: 0; }
  .learning-layout { grid-template-columns: 1fr; }
  .learning-sidebar { position: static; }
  .learning-sidebar-panel { display: grid; grid-template-columns: 1.3fr .9fr .9fr; gap: 22px; }
  .sidebar-section + .sidebar-section, .sidebar-community { margin: 0; padding: 0 0 0 22px; border-top: 0; border-left: 1px solid rgba(25,26,23,.1); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { min-height: 360px; padding: 50px 40px; }
  .auth-aside h1 { max-width: 620px; font-size: clamp(40px, 7vw, 58px); }
  .auth-testimonial { max-width: 560px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .admin-shell { grid-template-columns: 190px minmax(0,1fr); }
  .admin-content { padding: 26px 22px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .site-header .btn-light { display: none; }
  .brand-text small, .user-chip > span:not(.avatar) { display: none; }
  .header-inner { height: 66px; }
  .main-nav { top: 66px; }
  .global-search-backdrop { inset: 66px 0 0; }
  .global-search-panel { padding: 15px 0 46px; }
  .global-search-bar { height: 56px; padding-left: 15px; gap: 8px; }
  .global-search-bar .btn { min-height: 38px; padding: 0 13px; }
  .global-search-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .global-search-article { grid-template-columns: 1fr; gap: 12px; padding: 17px; }
  .global-search-article p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .global-search-article aside { grid-template-columns: auto 1fr auto; align-items: center; }
  .global-search-article aside svg { grid-column: 3; grid-row: 1; }
  .global-search-article aside small { grid-column: 2; grid-row: 1; }
  .hero { padding: 58px 0 46px; }
  .hero::before { width: 420px; height: 420px; right: -250px; }
  .hero h1 { font-size: clamp(21px, 6.8vw, 34px); }
  .hero-copy { font-size: 15px; }
  .hero-search { height: 58px; padding-left: 14px; }
  .hero-search .btn { padding: 0 14px; }
  .section { padding: 48px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head .text-link { display: inline-flex; }
  .category-grid, .resource-grid { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card:first-child { grid-column: auto; }
  .page { padding-top: 24px; }
  .result-count { display: inline-flex; margin-top: 14px; }
  .learning-layout { padding-top: 24px; }
  .article-list-item { grid-template-columns: 1fr; gap: 16px; }
  .article-list-cover { min-height: 190px; }
  .article-list-main h2 { font-size: 22px; }
  .learning-sidebar-panel { display: block; }
  .sidebar-section + .sidebar-section, .sidebar-community { margin-top: 22px; padding: 22px 0 0; border-top: 1px solid rgba(25,26,23,.1); border-left: 0; }
  .home-article-grid { grid-template-columns: 1fr; }
  .article-header { margin: 40px auto 30px; text-align: left; }
  .article-deck { margin-left: 0; }
  .article-meta-row { align-items: flex-start; justify-content: flex-start; flex-direction: column; }
  .article-content { padding: 0 0 32px; }
  .article-cover-wide { height: 250px; margin: 0 0 30px; padding: 24px; }
  .article-hero-figure { margin-bottom: 30px; border-radius: 18px; }
  .article-content > p, .article-content > p.article-intro { font-size: 16px; line-height: 1.9; }
  .detail-hero { grid-template-columns: 1fr; padding: 18px; }
  .detail-cover { min-height: 240px; }
  .detail-main { padding: 4px 4px 10px; }
  .detail-layout { margin-top: 14px; }
  .content-card { padding: 21px; }
  .feature-list { grid-template-columns: 1fr; }
  .detail-sidebar { grid-template-columns: 1fr; }
  .auth-aside { min-height: 330px; padding: 45px 24px; }
  .auth-aside h1 { font-size: 38px; }
  .auth-testimonial { display: none; }
  .auth-panel { padding: 42px 22px 70px; }
  .auth-card { padding: 25px; }
  .profile-head { align-items: flex-start; flex-direction: column; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-nav { position: static; display: flex; overflow-x: auto; }
  .profile-nav button { width: auto; flex: none; }
  .profile-nav button.logout { margin: 0; border: 0; border-radius: 10px; }
  .profile-panel { padding: 20px; }
  .submission-item { flex-direction: column; }
  .submission-item .compact-main, .submission-item .table-actions { width: 100%; }
  .submission-item .table-actions { flex-wrap: wrap; }
  .submission-item .table-actions .btn { flex: 1; }
  .summary-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .submit-layout { grid-template-columns: 1fr; }
  .submit-intro { position: static; grid-row: 1; }
  .publish-hero { align-items: flex-start; flex-direction: column; }
  .publish-type-tabs { width: 100%; }
  .publish-actions { align-items: stretch; flex-direction: column; }
  .article-image-preview { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-title { display: none; }
  .admin-nav { display: flex; overflow-x: auto; }
  .admin-nav button { flex: none; }
  .admin-content { padding: 24px 14px 60px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-head { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 430px) {
  .global-search-bar input { font-size: 14px; }
  .global-search-bar .btn { padding: 0 10px; }
  .auth-aside { min-height: 300px; padding: 40px 20px; }
  .auth-aside h1 { font-size: clamp(30px, 9.5vw, 38px); letter-spacing: -.05em; }
  .hero-search input { font-size: 13px; }
  .hero-search .btn span { display: none; }
  .detail-actions .btn { flex: 1; }
  .metric-grid { grid-template-columns: 1fr; }
  .compact-item { align-items: flex-start; }
  .auth-code-row { grid-template-columns: 1fr; }
  .auth-code-row .btn { width: 100%; }
  .article-list-bottom { align-items: flex-start; flex-direction: column; }
  .report-item { flex-direction: column; }
  .modal-backdrop { padding: 10px; }
}

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