:root {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  color: #29364d;
  background: #f5f8fd;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --blue: #5579e8;
  --blue-dark: #3f64d2;
  --ink: #29364d;
  --muted: #7c8aa0;
  --line: #e6ebf3;
  --panel-shadow: 0 2px 10px rgba(48, 74, 125, .035);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { min-width: 320px; margin: 0; background: #f5f8fd; font-size: 15px; line-height: 1.6; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(85, 121, 232, .4); outline-offset: 3px; }
[hidden] { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; height: 68px; padding: 0 max(28px, calc((100vw - 1380px) / 2)); background: #fff; border-bottom: 1px solid #e8edf5; box-shadow: 0 1px 3px rgba(34, 57, 97, .025); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 320px; height: 100%; font-size: 17px; font-weight: 700; letter-spacing: .2px; color: #425a9d; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #fff; background: #6383ec; }
.brand-mark svg { width: 27px; height: 27px; }
.topnav { display: flex; align-self: stretch; gap: 32px; }
.topnav a { position: relative; display: grid; min-width: 52px; place-items: center; color: #6e7b91; font-size: 15px; transition: color .15s ease; }
.topnav a:hover { color: var(--blue); }
.topnav a.active { color: var(--blue); font-weight: 700; }
.topnav a.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: #5a7dec; content: ""; }
.page { width: min(100% - 64px, 1320px); margin: 0 auto; }

/* 首页 */
.home-intro { display: grid; grid-template-columns: 1fr 380px; align-items: center; min-height: 212px; margin: 30px 0 33px; padding: 28px 48px; overflow: hidden; border: 1px solid #e6ebf4; border-radius: 13px; background: #fff; box-shadow: var(--panel-shadow); }
.eyebrow, .section-kicker { margin: 0; color: #7184b8; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .2px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #72b98f; box-shadow: 0 0 0 4px #ecf7ef; }
.home-intro h1 { margin: 12px 0 7px; color: #273650; font-size: 29px; line-height: 1.3; letter-spacing: .2px; }
.intro-copy { margin: 0; color: #76849a; font-size: 16px; }
.intro-illustration { position: relative; display: flex; justify-content: center; align-items: center; height: 154px; }
.intro-illustration img { z-index: 1; width: 245px; height: 146px; border: 7px solid white; border-radius: 15px; object-fit: cover; box-shadow: 0 8px 24px rgba(54, 73, 104, .12); transform: rotate(2deg); }
.illustration-note { position: absolute; top: 0; right: 5px; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid #e8edf5; border-radius: 20px; background: #fff; color: #64738b; font-size: 11px; box-shadow: 0 3px 10px rgba(59, 81, 123, .07); }
.note-icon { color: #edb657; font-size: 15px; }
.illustration-leaf { position: absolute; width: 40px; height: 17px; border-radius: 100% 0 100% 0; background: #acd3b8; opacity: .8; }
.leaf-one { right: 20px; bottom: 21px; transform: rotate(-33deg); }
.leaf-two { right: 48px; bottom: 11px; transform: rotate(16deg); }
.content-section { margin: 0 0 34px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 0 16px; }
.section-heading h2 { margin: 3px 0 0; color: #2f3d56; font-size: 22px; line-height: 1.4; }
.section-count { padding: 5px 11px; border: 1px solid #e5eaf2; border-radius: 20px; background: #fff; color: #7c8899; font-size: 12px; }
.section-count b { margin: 0 3px; color: var(--blue); }
.project-card { display: grid; grid-template-columns: minmax(330px, 39%) 1fr; min-height: 272px; padding: 17px; border: 1px solid #e3e9f2; border-radius: 13px; background: #fff; box-shadow: var(--panel-shadow); }
.project-card-image { position: relative; min-height: 238px; overflow: hidden; border-radius: 9px; background: #f3eee5; }
.project-card-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .3s ease; }
.project-card-image:hover img { transform: scale(1.025); }
.image-caption { position: absolute; bottom: 12px; left: 13px; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .65); border-radius: 16px; background: rgba(255, 255, 255, .9); color: #596981; font-size: 11px; }
.caption-sparkle { margin-right: 4px; color: #d7a63d; }
.project-card-content { display: flex; flex-direction: column; justify-content: center; padding: 7px 24px 5px 29px; }
.project-title-row { display: flex; align-items: flex-start; justify-content: space-between; }
.project-label { color: #8493b2; font-size: 11px; }
.project-card h3 { margin: 3px 0 0; color: #456cda; font-size: 21px; }
.project-number { color: #e7ebf2; font-size: 29px; font-weight: 700; }
.project-description { max-width: 620px; margin: 10px 0 15px; color: #748198; font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span { padding: 4px 10px; border: 1px solid #edf0f5; border-radius: 5px; background: #fafbfe; color: #687890; font-size: 11px; }
.tag-row span:first-child { border-color: #dbeee1; background: #f0f8f2; color: #5d9c70; }
.project-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #eff2f6; }
.duration { display: flex; align-items: center; gap: 6px; color: #7d899c; font-size: 12px; }
.duration svg { width: 17px; height: 17px; fill: none; stroke: #9ca8ba; stroke-width: 1.5; stroke-linecap: round; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 700; transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { border-color: #5b7ee7; background: #5b7ee7; color: #fff; box-shadow: 0 2px 4px rgba(67, 100, 204, .13); }
.button-primary:hover:not(:disabled) { border-color: #4569d5; background: #4569d5; box-shadow: 0 4px 9px rgba(67, 100, 204, .2); }
.button-outline { border-color: #dce4f0; background: #fff; color: #65758f; }
.button-outline:hover:not(:disabled) { border-color: #aabbe6; background: #f7f9ff; color: #4869c8; }
.button:disabled { transform: none; cursor: not-allowed; border-color: #e4e8ef; background: #eff1f5; color: #a7afbc; box-shadow: none; }
.steps-section { margin: 0 0 34px; }
.compact-heading { margin-bottom: 13px; }
.compact-heading h2 { font-size: 19px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card { position: relative; min-height: 144px; padding: 17px 20px 17px 78px; border: 1px solid #e5eaf2; border-radius: 10px; background: #fff; box-shadow: var(--panel-shadow); }
.step-number { position: absolute; top: 11px; right: 14px; color: #e6eaf1; font-size: 19px; font-weight: 700; }
.step-icon { position: absolute; top: 20px; left: 20px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; }
.step-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-eye { background: #edf3ff; color: #6280d8; }
.step-tag { background: #f1efff; color: #8773d0; }
.step-spark { background: #fff6df; color: #d3a343; }
.step-card h3 { margin: 4px 0; font-size: 15px; }
.step-card p { margin: 0; color: #8792a4; font-size: 12px; }
.site-footer, .project-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 62px; margin-top: 19px; border-top: 1px solid #e7ebf2; color: #98a3b4; font-size: 11px; }

/* 项目页 */
.project-page { width: min(100% - 40px, 1440px); }
.project-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; gap: 20px; padding: 21px 0 30px; }
.project-sidebar { position: sticky; top: 88px; min-height: calc(100vh - 112px); padding: 18px 14px; border: 1px solid #e5eaf2; border-radius: 11px; background: #fff; box-shadow: var(--panel-shadow); }
.back-home { display: inline-flex; align-items: center; gap: 7px; color: #71809a; font-size: 13px; }
.back-home:hover { color: var(--blue); }
.sidebar-project { display: flex; align-items: center; gap: 10px; margin: 20px 0 21px; padding: 13px 10px; border: 1px solid #e9edf4; border-radius: 8px; background: #f9fbff; }
.sidebar-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: #fff6dc; font-size: 20px; }
.sidebar-project b { display: block; color: #3c4d69; font-size: 12px; }
.sidebar-project small { display: block; margin-top: 2px; color: #94a0b3; font-size: 10px; }
.sidebar-heading { margin: 0 0 8px 8px; color: #a0aaba; font-size: 11px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 39px; padding: 0 10px; border-radius: 6px; color: #6d7c93; font-size: 13px; transition: background .14s ease, color .14s ease; }
.side-nav a span { width: 21px; color: #b2bdce; font-size: 10px; }
.side-nav a:hover { background: #f5f7fc; color: var(--blue); }
.side-nav a.active { background: #eef3ff; color: #4b70dd; font-weight: 700; }
.side-nav a.active span { color: #6b87e0; }
.sidebar-tip { display: flex; gap: 9px; margin-top: 28px; padding: 11px 10px; border: 1px solid #f0e8d4; border-radius: 7px; background: #fffcf4; }
.tip-star { color: #dbb359; }
.sidebar-tip p { margin: 0; color: #9a8b68; font-size: 10px; line-height: 1.7; }
.sidebar-tip b { color: #84744f; font-size: 11px; }
.project-main { min-width: 0; }
.project-mobile-tools { display: none; }
.project-heading-card { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: center; gap: 23px; min-height: 224px; margin-bottom: 14px; padding: 20px 25px; border: 1px solid #e4eaf3; border-radius: 11px; background: #fff; box-shadow: var(--panel-shadow); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #98a4b5; font-size: 11px; }
.breadcrumb a { color: #6780ca; }
.breadcrumb b { color: #61718a; font-weight: 500; }
.heading-kicker { display: flex; align-items: center; gap: 6px; margin-top: 15px; color: #8190aa; font-size: 11px; }
.heading-kicker-icon { color: #e1b951; }
.project-heading-copy h1 { margin: 3px 0 5px; color: #33445f; font-size: 27px; line-height: 1.35; }
.project-heading-copy > p { max-width: 700px; margin: 0; color: #79869a; font-size: 14px; }
.heading-facts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; color: #8793a5; font-size: 11px; }
.heading-facts span { display: inline-flex; align-items: center; gap: 5px; }
.fact-icon { display: inline-grid; width: 19px; height: 19px; place-items: center; border-radius: 5px; background: #f1f4fa; color: #8392aa; font-size: 13px; font-style: normal; }
.heading-photo { position: relative; height: 158px; overflow: hidden; border-radius: 8px; background: #f2eee5; }
.heading-photo img { width: 100%; height: 100%; object-fit: cover; }
.heading-photo span { position: absolute; right: 10px; bottom: 9px; padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 4px; background: rgba(255, 255, 255, .92); color: #738097; font-size: 10px; }
.panel { margin-bottom: 14px; padding: 21px 23px 22px; border: 1px solid #e4eaf3; border-radius: 11px; background: #fff; box-shadow: var(--panel-shadow); scroll-margin-top: 88px; }
.panel-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.heading-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 8px; font-size: 13px; font-weight: 700; }
.icon-blue { background: #edf3ff; color: #6583da; }
.icon-amber { background: #fff5dd; color: #d4a744; }
.icon-purple { background: #f2efff; color: #8a7bd0; }
.icon-teal { background: #e9f7f5; color: #559e92; }
.icon-rose { background: #fff0ed; color: #d48675; }
.panel-heading .section-kicker { margin-bottom: 1px; font-size: 9px; letter-spacing: .9px; }
.panel-heading h2 { margin: 0; color: #34425b; font-size: 17px; line-height: 1.45; }
.panel-side-note { margin-left: auto; color: #a0aabb; font-size: 11px; }
.intro-paragraph { margin: 0; color: #68778e; font-size: 13px; line-height: 1.9; }
.intro-paragraph strong { color: #576780; }
.learning-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 16px; }
.learning-goals > div { display: flex; align-items: center; gap: 9px; min-height: 56px; padding: 9px 11px; border: 1px solid #edf0f5; border-radius: 7px; background: #fbfcfe; }
.goal-number { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: #edf3ff; color: #7890d2; font-size: 11px; font-weight: 700; }
.learning-goals b { display: block; color: #5a6980; font-size: 11px; }
.learning-goals small { display: block; margin-top: 1px; color: #9aa5b4; font-size: 10px; }
.section-lead { margin: -4px 0 14px; color: #79869a; font-size: 12px; }
.maturity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.maturity-card { overflow: hidden; border: 1px solid #e9edf3; border-radius: 8px; background: #fff; }
.maturity-image { position: relative; height: clamp(120px, 13vw, 170px); overflow: hidden; background: #f5f1e9; }
.maturity-image img { width: 100%; height: 100%; object-fit: cover; }
.maturity-symbol { position: absolute; top: 9px; left: 10px; display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid rgba(255, 255, 255, .75); border-radius: 50%; background: rgba(255, 255, 255, .92); color: #5d6b7f; font-size: 11px; font-weight: 700; }
.maturity-copy { padding: 10px 12px 12px; }
.maturity-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.maturity-copy h3 { margin: 0; color: #485971; font-size: 14px; }
.maturity-color { display: inline-flex; align-items: center; gap: 4px; color: #8793a4; font-size: 10px; }
.maturity-color i { width: 7px; height: 7px; border-radius: 50%; background: #85b987; }
.maturity-yellow .maturity-color i { background: #e4bd50; }
.maturity-brown .maturity-color i { background: #a7794d; }
.maturity-copy p { margin: 5px 0 0; color: #7f8b9c; font-size: 11px; line-height: 1.7; }
.cannot-judge-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 11px 13px; border: 1px solid #e9edf4; border-radius: 7px; background: #f9fbfd; }
.cannot-icon { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #e9edf4; color: #79879c; font-size: 13px; font-weight: 700; }
.cannot-judge-note b { color: #68768b; font-size: 12px; }
.cannot-judge-note p { margin: 2px 0 0; color: #8793a4; font-size: 11px; }
.safety-note { margin: 10px 0 0; color: #9b8b67; font-size: 10px; }
.safety-note span { margin-right: 3px; color: #c6a852; font-size: 13px; }
.subsection-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.subsection-title h3 { display: flex; align-items: center; gap: 7px; margin: 0; color: #475771; font-size: 14px; }
.subsection-title p { margin: 4px 0 0 27px; color: #8b97a9; font-size: 11px; }
.method-number { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 6px; background: #fff3dc; color: #c79a39; font-size: 10px; }
.method-blue { background: #edf3ff; color: #6c87d3; }
.selection-count { flex: 0 0 auto; padding: 4px 9px; border: 1px solid #e7edf5; border-radius: 14px; background: #f9fbff; color: #6d80aa; font-size: 10px; }
.sample-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 9px; }
.sample-hint { display: flex; align-items: center; gap: 6px; color: #9aa5b4; font-size: 10px; }
.hint-dot { width: 6px; height: 6px; border-radius: 50%; background: #8dbb94; }
.text-button { padding: 2px 5px; border: 0; background: transparent; color: #6680c9; cursor: pointer; font-size: 11px; }
.text-button:hover { color: #3d60c6; text-decoration: underline; }
.toolbar-divider { color: #d0d6e0; font-size: 10px; }
.sample-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sample-card { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #e5eaf2; border-radius: 7px; background: #f7f4ed; cursor: pointer; text-align: left; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.sample-card:hover { transform: translateY(-2px); border-color: #b6c7ed; box-shadow: 0 4px 10px rgba(67, 96, 156, .1); }
.sample-card:focus-visible { outline: 3px solid rgba(85, 121, 232, .35); outline-offset: 2px; }
.sample-card.selected { border: 2px solid #6685e7; box-shadow: 0 0 0 2px rgba(102, 133, 231, .14); }
.sample-card img { display: block; width: 100%; aspect-ratio: 1.43; object-fit: cover; }
.sample-card-foot { display: flex; align-items: center; justify-content: space-between; min-height: 30px; padding: 4px 8px; background: #fff; color: #78869b; font-size: 10px; }
.sample-check { display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid #d6deea; border-radius: 5px; background: #fff; color: transparent; font-size: 11px; font-weight: 700; }
.sample-card.selected .sample-check { border-color: #6685e7; background: #6685e7; color: #fff; }
.upload-block { margin-top: 23px; padding-top: 19px; border-top: 1px solid #edf0f5; }
.upload-title { margin-bottom: 12px; }
.upload-drop { display: flex; align-items: center; gap: 13px; min-height: 92px; padding: 14px 18px; border: 1px dashed #cbd7e8; border-radius: 8px; background: #fbfcff; transition: border-color .15s ease, background .15s ease; }
.upload-drop.dragging { border-color: #6485e4; background: #f2f6ff; }
.upload-icon { display: grid; flex: 0 0 39px; width: 39px; height: 39px; place-items: center; border-radius: 10px; background: #edf3ff; color: #6886df; }
.upload-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.upload-drop > div { flex: 1; }
.upload-drop b { color: #51627d; font-size: 12px; }
.upload-drop p { margin: 1px 0 0; color: #9aa4b3; font-size: 10px; }
.upload-drop .button { min-height: 34px; padding: 0 12px; font-size: 11px; }
.privacy-hint { margin: 7px 1px 0; color: #9aa4b2; font-size: 10px; }
.privacy-hint span { margin-right: 4px; color: #7e9b83; }
.upload-preview-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 11px; }
.upload-preview { position: relative; min-width: 0; overflow: hidden; border: 1px solid #e5eaf2; border-radius: 7px; background: #fff; }
.upload-preview img { display: block; width: 100%; aspect-ratio: 1.43; object-fit: cover; background: #f5f5f5; }
.upload-preview figcaption { overflow: hidden; padding: 5px 7px; color: #78869b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.remove-upload { position: absolute; top: 5px; right: 5px; display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid rgba(255, 255, 255, .9); border-radius: 50%; background: rgba(255, 255, 255, .94); color: #748197; cursor: pointer; line-height: 1; }
.remove-upload:hover { background: #fff0ee; color: #c76153; }
.prepare-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 17px; padding: 13px 14px; border: 1px solid #e9edf5; border-radius: 8px; background: #f9fbfe; }
.prepare-status { display: flex; align-items: center; gap: 9px; min-width: 0; }
.prepare-status b { display: block; color: #687790; font-size: 11px; }
.prepare-status small { display: block; color: #98a3b2; font-size: 10px; }
.status-pulse { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #d4a94e; box-shadow: 0 0 0 4px #fbf5e6; }
.status-pulse.ready { background: #6db58b; box-shadow: 0 0 0 4px #eaf6ee; }
.status-pulse.error { background: #d58074; box-shadow: 0 0 0 4px #fbefed; }
.button-large { min-height: 42px; padding: 0 18px; }
.inline-notice { margin-top: 10px; padding: 9px 12px; border: 1px solid #f0dfbd; border-radius: 6px; background: #fffaf0; color: #937642; font-size: 11px; }
.inline-notice.error { border-color: #f0d6d2; background: #fff7f6; color: #a75c53; }
.batch-ready { display: flex; align-items: center; gap: 11px; margin-top: 10px; padding: 13px 14px; border: 1px solid #dcefe2; border-radius: 8px; background: #f4fbf6; }
.batch-check { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #deefe3; color: #50936a; font-size: 15px; font-weight: 700; }
.batch-ready > div { flex: 1; }
.batch-ready b { color: #53785f; font-size: 12px; }
.batch-ready p { margin: 2px 0 0; color: #7f9886; font-size: 10px; }
.batch-ready .button { min-height: 34px; padding: 0 12px; font-size: 11px; }
.annotation-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.annotation-steps > div { display: flex; align-items: center; gap: 9px; min-height: 51px; padding: 8px 10px; border: 1px solid #edf0f5; border-radius: 7px; background: #fbfcfe; }
.annotation-steps > div > span { display: grid; flex: 0 0 23px; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #edf3ff; color: #6e88d7; font-size: 10px; font-weight: 700; }
.annotation-steps p { margin: 0; color: #78869b; font-size: 10px; }
.annotation-callout { display: flex; gap: 9px; margin-top: 11px; padding: 10px 12px; border: 1px solid #f0e8d4; border-radius: 7px; background: #fffdf7; }
.callout-icon { color: #d6ad4f; }
.annotation-callout p { margin: 0; color: #897b5d; font-size: 10px; }
.annotation-callout b { color: #776744; }
.annotation-actions { display: flex; align-items: center; gap: 9px; margin-top: 13px; }
.annotation-actions .button { min-height: 36px; font-size: 11px; }
.annotation-hint { margin-left: auto; color: #9aa5b4; font-size: 10px; }
.export-button { min-height: 32px; margin-left: auto; padding: 0 10px; font-size: 10px; }
.result-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.result-stat { position: relative; min-height: 76px; padding: 10px 12px; border: 1px solid #edf0f5; border-radius: 7px; background: #fbfcfe; }
.result-stat small { display: block; color: #8d99aa; font-size: 10px; }
.result-stat > b { display: inline-block; margin-top: 5px; color: #52647e; font-size: 22px; line-height: 1; }
.result-stat > span { margin-left: 4px; color: #9da8b7; font-size: 10px; }
.result-progress-stat > b { font-size: 18px; }
.progress-track { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 5px; background: #e9edf4; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #6d8ae5; transition: width .2s ease; }
.label-counts { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 12px; }
.count-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 0 9px; border: 1px solid #e9edf3; border-radius: 15px; color: #7d899b; font-size: 10px; }
.count-pill i { width: 7px; height: 7px; border-radius: 50%; background: #75ad7e; }
.count-pill b { color: #56667f; font-size: 10px; }
.count-yellow i { background: #e0bb4c; }
.count-brown i { background: #a7794d; }
.count-gray i { background: #aeb8c6; }
.results-area { min-height: 128px; border: 1px solid #edf0f5; border-radius: 7px; background: #fcfdff; }
.empty-results { display: flex; min-height: 126px; flex-direction: column; align-items: center; justify-content: center; padding: 15px; text-align: center; }
.empty-illustration { display: grid; width: 32px; height: 32px; place-items: center; margin-bottom: 6px; border-radius: 9px; background: #eff3fa; color: #96a6bf; font-size: 19px; }
.empty-results b { color: #748197; font-size: 11px; }
.empty-results p { margin: 2px 0 0; color: #a0aaba; font-size: 10px; }
.result-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 10px; }
.result-item { min-width: 0; overflow: hidden; border: 1px solid #e9edf3; border-radius: 7px; background: #fff; }
.result-item img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; background: #f5f4ef; }
.result-item-info { padding: 7px 8px 8px; }
.result-item-info > div { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.result-item-info b { overflow: hidden; color: #718097; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.result-item-info p { margin: 4px 0 0; color: #9ba5b3; font-size: 9px; }
.result-label { padding: 2px 6px; border-radius: 9px; background: #f1f4f9; color: #8793a3; font-size: 9px; white-space: nowrap; }
.result-label.done-green { background: #eef7ef; color: #62916a; }
.result-label.done-yellow { background: #fff8e5; color: #a28434; }
.result-label.done-brown { background: #f8f0e8; color: #9a7046; }
.result-label.done-gray { background: #f0f2f5; color: #788596; }
.result-rule { margin: 9px 0 0; color: #98a2af; font-size: 10px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 40; max-width: min(390px, calc(100vw - 36px)); padding: 11px 15px; transform: translateY(12px); border: 1px solid #dfe6f1; border-radius: 8px; background: #fff; color: #596a83; font-size: 12px; opacity: 0; pointer-events: none; box-shadow: 0 8px 26px rgba(39, 58, 94, .14); transition: opacity .18s ease, transform .18s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.toast.error { border-color: #f0d6d2; color: #a75c53; }
.spinner { width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
.spinner-blue { display: inline-block; border-color: #d7e0f2; border-top-color: #6583db; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1600px) {
  .page { width: min(100% - 88px, 1400px); }
  .home-intro { min-height: 230px; }
  .project-page { width: min(100% - 72px, 1500px); }
  .project-layout { grid-template-columns: 244px minmax(0, 1fr); gap: 23px; }
  .project-heading-card { grid-template-columns: minmax(0, 1fr) 320px; }
  .heading-photo { height: 175px; }
  .panel { padding: 24px 28px; }
}
@media (max-width: 1080px) {
  .page { width: min(100% - 40px, 1320px); }
  .project-page { width: min(100% - 32px, 1440px); }
  .project-layout { grid-template-columns: 218px minmax(0, 1fr); gap: 13px; }
  .project-heading-card { grid-template-columns: minmax(0, 1fr) 220px; padding: 18px; }
  .heading-photo { height: 145px; }
  .panel { padding: 18px; }
  .sample-grid, .upload-preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .learning-goals { gap: 7px; }
  .learning-goals > div { padding: 8px; }
}
@media (max-width: 860px) {
  .topbar { height: 62px; padding: 0 18px; }
  .brand { min-width: auto; margin-right: auto; font-size: 15px; }
  .topnav { gap: 18px; }
  .page, .project-page { width: min(100% - 28px, 720px); }
  .home-intro { grid-template-columns: 1fr 260px; padding: 24px 26px; }
  .intro-illustration img { width: 205px; height: 127px; }
  .project-layout { display: block; padding-top: 12px; }
  .project-sidebar { display: none; position: static; min-height: 0; margin-bottom: 10px; }
  .project-sidebar.open { display: block; }
  .project-mobile-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
  .mobile-menu-button { padding: 6px 10px; border: 1px solid #e3e9f2; border-radius: 6px; background: #fff; color: #6d7b91; cursor: pointer; font-size: 11px; }
  .mobile-menu-button span { margin-left: 5px; color: #8290a5; }
  .sidebar-project { margin: 14px 0; }
  .sidebar-tip { display: none; }
  .side-nav { grid-template-columns: repeat(5, 1fr); }
  .side-nav a { justify-content: center; gap: 5px; padding: 0 4px; font-size: 11px; }
  .side-nav a span { width: auto; }
  .sidebar-heading { margin-top: 15px; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .topbar { padding: 0 13px; }
  .brand { gap: 8px; font-size: 13px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .topnav { gap: 11px; }
  .topnav a { min-width: 42px; font-size: 12px; }
  .page, .project-page { width: calc(100% - 24px); }
  .home-intro { grid-template-columns: 1fr; min-height: auto; margin: 14px 0 23px; padding: 22px 18px 13px; }
  .home-intro h1 { font-size: 24px; }
  .intro-copy { font-size: 13px; }
  .intro-illustration { height: 130px; margin-top: 6px; }
  .intro-illustration img { width: 215px; height: 121px; }
  .illustration-note { top: 3px; right: calc(50% - 136px); }
  .section-heading h2 { font-size: 19px; }
  .section-count { font-size: 10px; }
  .project-card { grid-template-columns: 1fr; padding: 10px; }
  .project-card-image { min-height: 194px; }
  .project-card-content { padding: 13px 7px 6px; }
  .project-card h3 { font-size: 18px; }
  .project-description { font-size: 12px; }
  .project-card-bottom { margin-top: 13px; padding-top: 11px; }
  .steps-grid { grid-template-columns: 1fr; gap: 8px; }
  .step-card { min-height: 90px; padding-left: 74px; }
  .step-icon { top: 22px; }
  .site-footer, .project-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding: 11px 0; }
  .project-layout { padding-top: 10px; }
  .project-heading-card { grid-template-columns: 1fr; gap: 14px; padding: 15px; }
  .project-heading-copy h1 { font-size: 23px; }
  .project-heading-copy > p { font-size: 12px; }
  .heading-facts { gap: 9px; margin-top: 12px; }
  .heading-photo { height: 145px; }
  .panel { padding: 15px 13px; }
  .panel-heading { gap: 8px; }
  .heading-icon { flex-basis: 30px; width: 30px; height: 30px; }
  .panel-heading h2 { font-size: 15px; }
  .panel-side-note { max-width: 100px; text-align: right; font-size: 9px; }
  .learning-goals { grid-template-columns: 1fr; }
  .learning-goals > div { min-height: 47px; }
  .maturity-grid { grid-template-columns: 1fr; gap: 8px; }
  .maturity-card { display: grid; grid-template-columns: 116px 1fr; min-height: 95px; }
  .maturity-image { height: 100%; min-height: 95px; }
  .maturity-copy { display: flex; flex-direction: column; justify-content: center; padding: 9px 11px; }
  .maturity-copy > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .maturity-copy p { font-size: 10px; }
  .subsection-title { align-items: flex-start; flex-direction: column; gap: 7px; }
  .subsection-title p { font-size: 10px; }
  .selection-count { align-self: flex-start; margin-left: 27px; }
  .sample-grid, .upload-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .sample-card-foot { min-height: 27px; padding: 3px 5px; font-size: 9px; }
  .sample-check { width: 15px; height: 15px; }
  .upload-drop { display: grid; grid-template-columns: 40px 1fr; gap: 9px; padding: 12px; }
  .upload-drop .button { grid-column: 2; justify-self: start; }
  .prepare-bar { align-items: stretch; flex-direction: column; padding: 11px; }
  .prepare-bar > .button { width: 100%; }
  .batch-ready { align-items: flex-start; flex-wrap: wrap; }
  .batch-ready > .button { flex: 1 1 100%; }
  .annotation-steps { grid-template-columns: 1fr; gap: 6px; }
  .annotation-hint { margin-left: 0; }
  .annotation-actions { align-items: stretch; flex-wrap: wrap; }
  .annotation-actions .button { flex: 1; }
  .annotation-hint { flex-basis: 100%; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .result-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .export-button { min-height: 29px; padding: 0 8px; }
  .side-nav { grid-template-columns: repeat(2, 1fr); }
  .side-nav a { justify-content: flex-start; padding: 0 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
