/* A quiet archive for the projects in the active workspace. */
.projects-page {
  --projects-ink: var(--studio-ink, #413c32);
  --projects-muted: var(--studio-muted, #7d7567);
  --projects-moss: var(--studio-accent, #617553);
  --projects-line: var(--studio-line, #e2ddd1);
  --projects-paper: var(--studio-paper, #fffdf7);
  width: 100%;
  max-width: 1312px;
  min-width: 0;
  margin: 0 auto;
  padding: 30px 36px 28px;
  color: var(--projects-ink);
  font-size: 14px;
  line-height: 1.65;
}
.projects-page *, .projects-page *::before, .projects-page *::after { box-sizing: border-box; }
.projects-page button, .projects-page a { -webkit-tap-highlight-color: #7d92542b; }
.projects-page button:focus-visible, .projects-page a:focus-visible,
.projects-page input:focus-visible, .projects-page select:focus-visible { outline: 2px solid var(--projects-moss); outline-offset: 4px; }
.projects-icon { display: inline-block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.projects-eyebrow { color: #7d896c; font: 10px/1.7 var(--mono, monospace); font-weight: 500; letter-spacing: 1.8px; }
.projects-page .projects-primary, .projects-page .projects-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid var(--projects-moss);
  border-radius: 9px;
  background: var(--projects-moss);
  color: #fffef8;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
.projects-page .projects-primary:hover { background: #536748; border-color: #536748; }
.projects-page .projects-secondary { color: var(--projects-moss); background: #fafbf3; border-color: #d3dcc6; }
.projects-page .projects-secondary:hover { background: #edf1e4; border-color: #bccbad; }
.projects-primary .projects-icon, .projects-secondary .projects-icon { width: 16px; height: 16px; }
.projects-page .projects-undo { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid #dde2cf; border-radius: 8px; background: #f8faf1; color: #899a73; }
.projects-page .projects-undo:hover:not(:disabled) { background: #eaf0df; color: #617b4b; border-color: #c6d4b5; }
.projects-page .projects-undo .projects-icon { width: 16px; height: 16px; }
.projects-detail-toolbar .projects-undo { width: 37px; height: 37px; }
.projects-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,1fr) 270px;
  align-items: center;
  column-gap: 32px;
  min-height: 282px;
  padding: 28px 40px;
  border: 1px solid var(--projects-line);
  border-radius: 21px;
  background: linear-gradient(110deg,#fffdf7 0%,#faf9f0 62%,#eff1e6 100%);
  box-shadow: inset 0 1px #ffffffaa, 0 7px 25px #534a3305;
}
.projects-hero-copy { min-width: 0; }
.projects-hero-copy > .projects-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 9px; letter-spacing: 2px; }
.projects-hero-copy > .projects-eyebrow::before { content: ''; width: 24px; height: 1px; background: #a4ae92; }
.projects-hero h1 { margin: 9px 0 7px; color: #484332; font: 600 33px/1.45 'Segoe UI','Microsoft YaHei',sans-serif; letter-spacing: 2px; }
.projects-hero-line { margin: 0 0 11px; color: #647653; font: 500 19px/1.65 Georgia,'Noto Serif SC','Microsoft YaHei',serif; letter-spacing: .4px; }
.projects-hero-description { margin: 0; color: var(--projects-muted); font-size: 12px; line-height: 1.9; }
.projects-hero-actions { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.projects-hero-actions > span { color: #948872; font-size: 11px; }
.projects-hero-art { position: relative; width: 245px; min-width: 0; height: 244px; margin: -10px 0 -12px; justify-self: center; }
.projects-hero-art::before { content: ''; position: absolute; z-index: -1; width: 184px; height: 184px; right: 0; top: 19px; border: 1px solid #c6cdb549; border-radius: 50%; background: #e6eadb6e; }
.projects-hero-art::after { content: ''; position: absolute; right: 1px; left: 4px; bottom: 24px; height: 1px; background: linear-gradient(90deg,transparent,#a6ac9059 24%,#a6ac9059 85%,transparent); }
.projects-hero-art img { position: absolute; z-index: 1; width: 180px; height: 220px; right: -6px; bottom: 19px; object-fit: contain; filter: drop-shadow(5px 9px 6px #5e583c18); }
.projects-art-note { position: absolute; display: block; width: 104px; height: 143px; top: 58px; left: 4px; padding: 28px 13px; border: 1px solid #ddd6c4; border-radius: 3px 9px 3px 3px; background: repeating-linear-gradient(0deg,#f1f0df 0,#f1f0df 22px,#dadac51f 23px,#f1f0df 24px); color: #9a8e72; font: 9px/1.8 var(--mono,monospace); letter-spacing: .4px; transform: rotate(-10deg); box-shadow: 3px 5px 0 -1px #f9f7ec, 3px 5px 0 0 #ded8c8; }
.projects-art-note::before { content: ''; position: absolute; left: 30px; top: -8px; width: 44px; height: 17px; background: #b3bd93a8; transform: rotate(5deg); }
.projects-art-note > span { display: block; padding-top: 10px; color: #9eaa7e; font: 22px/1 Georgia,serif; }
.projects-hero-art figcaption { position: absolute; left: 1px; right: 1px; bottom: 0; text-align: center; color: #9b8c72; font: italic 11px/1.7 Georgia,serif; letter-spacing: .4px; }
.projects-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 20px 0 31px; border: 1px solid var(--projects-line); border-radius: 15px; background: var(--projects-paper); overflow: hidden; }
.projects-stat { position: relative; min-width: 0; padding: 17px 22px 16px; }
.projects-stat + .projects-stat::before { content: ''; position: absolute; top: 19px; bottom: 19px; left: 0; width: 1px; background: var(--projects-line); }
.projects-stat > span { display: flex; align-items: center; gap: 8px; color: #7e7564; font-size: 11px; }
.projects-stat > span .projects-icon { width: 15px; height: 15px; color: #8b9976; }
.projects-stat > strong { display: block; color: #574e3d; margin-top: 7px; font: 500 29px/1.25 Georgia,'Segoe UI',serif; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.projects-stat > strong small { margin-left: 7px; color: #a1937c; font: 10px/1.5 'Segoe UI','Microsoft YaHei',sans-serif; }
.projects-stat > p { margin: 6px 0 0; color: #a0917a; font-size: 10px; line-height: 1.8; }
.projects-stat.stat-completed > strong { color: #697c56; }
.projects-stat.stat-active > strong { color: #a48054; }
.projects-stat.stat-paused > strong { color: #8a8a7e; }
.projects-page .projects-stat-open { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.projects-page .projects-stat-open:hover { background: #7c92500a; }
.projects-page .projects-stat-open:focus-visible { outline-offset: -4px; border-radius: 11px; }
.projects-collection-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 1px 18px; }
.projects-collection-head .projects-eyebrow { font-size: 8px; letter-spacing: 1.5px; }
.projects-collection-head h2 { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; font-size: 19px; font-weight: 500; letter-spacing: .5px; line-height: 1.5; }
.projects-collection-head h2 small { display: grid; place-items: center; min-width: 22px; padding: 1px 6px; border: 1px solid #dde2d0; border-radius: 6px; background: #edf0e5; color: #788768; font: 10px/1.6 var(--mono,monospace); }
.projects-collection-head > p { margin: 0 0 2px; color: #9a8c75; font-size: 11px; line-height: 1.7; text-align: right; }
.projects-filter-panel { display: flex; align-items: center; gap: 16px; padding: 13px 15px; border: 1px solid #e2e1d4; border-radius: 11px; background: #efefe5; }
.projects-search { display: flex; flex: 1 1 285px; min-width: 185px; align-items: center; gap: 8px; min-height: 39px; padding: 0 6px 0 12px; border: 1px solid #e0dfd0; border-radius: 8px; background: var(--projects-paper); }
.projects-search > .projects-icon { width: 16px; height: 16px; color: #929b83; }
.projects-search input { width: 100%; min-width: 0; border: 0; outline-offset: 2px; border-radius: 3px; background: transparent; color: #5b5749; padding: 8px 0; font-size: 12px; }
.projects-search input::placeholder { color: #aaa28f; }
.projects-page .projects-search button { min-width: 43px; min-height: 30px; padding: 5px 7px; border-radius: 5px; background: #f0f2e8; color: #79876a; font-size: 11px; }
.projects-page .projects-search button:hover { background: #e4ead8; color: #526947; }
.projects-filter-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; flex: 1.55 1 430px; min-width: 0; }
.projects-filter-fields > label { min-width: 0; }
.projects-filter-fields > label > span { display: none; }
.projects-filter-fields select { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 39px; padding: 8px 20px 8px 9px; border: 1px solid #dadfcd; border-radius: 7px; background: #fffef8; color: #7e7d67; font-size: 11px; text-overflow: ellipsis; }
.projects-results-line { display: flex; justify-content: space-between; gap: 14px; margin: 9px 2px 17px; color: #a2947e; font-size: 10px; }
.projects-results-line p { margin: 0; }
.projects-results-line > span { flex: none; color: #7f8c6c; }
.projects-active-filters { display: flex; align-items: flex-start; gap: 12px; margin: -2px 0 18px; }
.projects-active-filters > div { display: flex; align-items: center; flex: 1; min-width: 0; flex-wrap: wrap; gap: 7px; }
.projects-page .projects-filter-chip { display: inline-flex; align-items: center; max-width: 100%; min-height: 30px; gap: 9px; border: 1px solid #dce2cd; border-radius: 6px; padding: 5px 8px; color: #7c8868; background: #f5f7ed; font-size: 10px; }
.projects-filter-chip > span { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.projects-filter-chip .projects-icon { width: 11px; height: 11px; }
.projects-page .projects-clear { flex: none; min-height: 30px; padding: 5px 2px; color: #94866c; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.projects-page .projects-clear:hover { background: transparent; color: #606e4f; }
.projects-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }
.projects-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 256px; padding: 21px 22px 15px; border: 1px solid #e2ddcf; border-radius: 13px; background: #fffdf7; box-shadow: 0 3px 9px #574c3704; transition: transform .18s,box-shadow .18s,border-color .18s; }
.projects-card::before { content: ''; position: absolute; width: 44px; height: 4px; top: 0; left: 22px; border-radius: 0 0 4px 4px; background: #b7c29f; }
.projects-card:nth-child(3n+2)::before { background: #c7b896; }
.projects-card:nth-child(3n)::before { background: #b6c1b7; }
.projects-card:hover { border-color: #c9d0b7; box-shadow: 0 9px 25px #73653f0b; transform: translateY(-2px); }
.projects-card:focus-within { outline: 2px solid var(--projects-moss); outline-offset: 3px; }
.projects-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 23px; margin-bottom: 16px; }
.projects-card-category { min-width: 0; max-width: 60%; color: #99896e; font-size: 10px; line-height: 1.6; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.projects-status { display: inline-flex; align-items: center; flex: none; gap: 5px; max-width: 100%; padding: 2px 7px; border: 1px solid #e0e5d3; border-radius: 5px; background: #eef2e4; color: #7a8c63; font-size: 9px; line-height: 1.65; }
.projects-status > i { display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.projects-status.status-active { border-color: #ece2c8; background: #f6f0df; color: #a18c58; }
.projects-status.status-paused { border-color: #e3e1d7; background: #f0efe9; color: #969285; }
.projects-card-heading { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-bottom: 10px; }
.projects-card-number { flex: none; color: #c1b79e; font: 12px/1.7 Georgia,serif; }
.projects-card-heading h3 { min-width: 0; margin: 0; font-size: 16px; font-weight: 500; line-height: 1.6; letter-spacing: .2px; }
.projects-page .projects-card-open { display: block; padding: 0; text-align: left; font: inherit; color: #554b38; overflow-wrap: anywhere; }
.projects-page .projects-card-open::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 13px; }
.projects-page .projects-card-open:hover { background: transparent; color: #60794b; }
.projects-page .projects-card-open:focus-visible { outline: none; }
.projects-card-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; min-height: 61px; margin: 0 0 15px; color: #97886e; font-size: 11px; line-height: 1.85; overflow: hidden; overflow-wrap: anywhere; }
.projects-card-summary.is-empty { color: #b2a68f; }
.projects-card-tags, .projects-detail-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; }
.projects-card-tags { min-height: 22px; margin-bottom: 19px; }
.projects-tag { display: inline-block; max-width: 100%; min-width: 0; padding: 1px 6px; border: 1px solid #e7e6d8; border-radius: 4px; background: #f7f7ef; color: #969578; font-size: 9px; line-height: 1.7; overflow-wrap: anywhere; }
.projects-tag-more { color: #a8a085; font: 9px/1.7 var(--mono,monospace); }
.projects-card-foot { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #efe9dc; color: #aa9a7d; font-size: 9px; line-height: 1.6; }
.projects-card-foot time { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.projects-card-foot time .projects-icon { width: 11px; height: 11px; color: #afa890; }
.projects-card-resources { display: inline-flex; align-items: center; gap: 4px; color: #a6a88a; }
.projects-card-resources .projects-icon { width: 12px; height: 12px; }
.projects-card-resources small { font: 8px/1.5 var(--mono,monospace); }
.projects-card-turn { color: #9cab82; }
.projects-card-turn .projects-icon { width: 16px; height: 16px; }
.projects-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; grid-column: 1 / -1; min-height: 330px; padding: 39px 25px 43px; border: 1px dashed #d7daca; border-radius: 15px; background: #fbfcf4a6; text-align: center; }
.projects-empty > .projects-icon { width: 36px; height: 36px; padding: 8px; box-sizing: content-box; margin-bottom: 15px; border-radius: 50%; background: #ecefdf; color: #9eac84; stroke-width: 1.3; }
.projects-empty > .projects-eyebrow { color: #a5af92; font-size: 8px; letter-spacing: 2px; }
.projects-empty h3, .projects-empty h1 { margin: 9px 0 8px; color: #7a7059; font-size: 16px; font-weight: 500; line-height: 1.7; }
.projects-empty p { max-width: 450px; margin: 0 0 22px; color: #a29377; font-size: 12px; line-height: 1.9; }
.projects-page-foot { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 30px; color: #aaa38c; font-size: 10px; line-height: 1.8; text-align: center; }
.projects-page-foot .projects-icon { width: 13px; height: 13px; color: #b3bc9d; }

/* The individual archive reads like a project notebook. */
.projects-detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.projects-detail-toolbar > div { display: flex; align-items: center; gap: 9px; }
.projects-page .projects-back { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 0; border-radius: 3px; background: transparent; color: #889370; font-size: 12px; }
.projects-back .projects-icon { width: 16px; height: 16px; }
.projects-page .projects-back:hover { color: #546d40; }
.projects-detail-toolbar .projects-secondary { min-height: 37px; padding: 7px 13px; font-size: 11px; }
.projects-page .projects-delete { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #e5ddd0; border-radius: 8px; background: #fbf8f0; color: #ad9a7d; }
.projects-page .projects-delete:hover { background: #f6e9df; color: #a86f4d; border-color: #e8d3c2; }
.projects-delete .projects-icon { width: 15px; height: 15px; }
.projects-detail-lead { position: relative; padding: 29px 34px 30px; margin-bottom: 22px; border: 1px solid var(--projects-line); border-radius: 17px; background: linear-gradient(112deg,#fffdf8,#f8f9ef); }
.projects-detail-lead::before { content: ''; position: absolute; width: 3px; top: 27px; bottom: 27px; left: 0; border-radius: 0 2px 2px 0; background: #b9c4a3; }
.projects-detail-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.projects-detail-kicker .projects-eyebrow { font-size: 9px; }
.projects-detail-category { padding-left: 12px; border-left: 1px solid #dce1cd; color: #9f9072; font-size: 11px; }
.projects-detail h1 { margin: 0 0 13px; color: #554b38; font-size: 29px; font-weight: 500; line-height: 1.6; letter-spacing: .8px; overflow-wrap: anywhere; }
.projects-detail h1:focus { outline: none; }
.projects-detail-summary { max-width: 820px; margin: 0; color: #95856c; font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.projects-detail-summary.is-empty { color: #afa187; }
.projects-detail-tags { margin-top: 20px; gap: 7px; }
.projects-detail-tags .projects-tag { padding: 3px 8px; color: #8a9572; border-color: #dce2cc; background: #f1f5e8; font-size: 10px; }
.projects-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,310px); align-items: start; gap: 22px; }
.projects-story { min-width: 0; padding: 24px 32px 15px; border: 1px solid var(--projects-line); border-radius: 15px; background: #fffdf7; }
.projects-story-intro { display: flex; align-items: center; gap: 7px; margin: 0; padding-bottom: 20px; border-bottom: 1px solid #ede8da; color: #a9a183; font-size: 10px; line-height: 1.8; }
.projects-story-intro .projects-icon { width: 14px; height: 14px; color: #aeb998; }
.projects-story-section { padding: 25px 0 28px; }
.projects-story-section + .projects-story-section { border-top: 1px solid #ede8da; }
.projects-story-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.projects-story-heading > span { color: #b4bb9e; font: 14px/1.5 Georgia,serif; }
.projects-story-heading h2 { margin: 0; color: #746447; font-size: 16px; font-weight: 500; line-height: 1.6; letter-spacing: .6px; }
.projects-story-text { margin: 0; color: #877a61; font-size: 13px; line-height: 2.1; white-space: pre-wrap; overflow-wrap: anywhere; }
.projects-story-text.is-empty { color: #b5a78b; font-size: 12px; }
.projects-detail-aside { display: grid; gap: 17px; min-width: 0; }
.projects-detail-aside > section { min-width: 0; padding: 22px; border: 1px solid var(--projects-line); border-radius: 13px; background: #fffdf7; }
.projects-detail-aside h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 18px; color: #857455; font-size: 13px; font-weight: 500; letter-spacing: .5px; line-height: 1.6; }
.projects-detail-aside h2 small { color: #b0aa8f; font: 10px/1.6 var(--mono,monospace); }
.projects-facts dl { margin: 0; }
.projects-facts dl > div + div { margin-top: 19px; }
.projects-facts dt { display: flex; align-items: center; gap: 7px; color: #aaa080; font-size: 10px; line-height: 1.6; }
.projects-facts dt .projects-icon { width: 12px; height: 12px; color: #a6b18e; }
.projects-facts dd { margin: 6px 0 0 19px; color: #908167; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.projects-facts dd.is-empty { color: #b9ad93; }
.projects-facts > p { margin: 21px 0 0; padding-top: 13px; border-top: 1px solid #eee9dc; color: #b4a88c; font-size: 9px; }
.projects-link-list { margin: -4px 0 0; padding: 0; list-style: none; }
.projects-link-list li + li { border-top: 1px solid #eeeadd; }
.projects-link-list a { display: flex; align-items: center; min-width: 0; gap: 10px; padding: 10px 0; color: #8b8c6c; text-decoration: none; }
.projects-link-list a:hover strong { color: #5c7746; text-decoration: underline; text-underline-offset: 3px; }
.projects-link-mark { display: grid; place-items: center; flex: none; width: 29px; height: 31px; border: 1px solid #e7e5d4; border-radius: 7px; color: #a5af8d; background: #f7f8ef; }
.projects-link-mark .projects-icon { width: 14px; height: 14px; }
.projects-link-list a > span:nth-child(2) { flex: 1; min-width: 0; }
.projects-link-list strong { display: block; color: #8a7b5d; font-size: 11px; font-weight: 400; line-height: 1.75; overflow-wrap: anywhere; }
.projects-link-list small { display: block; margin-top: 2px; color: #b2a88d; font-size: 9px; line-height: 1.7; overflow-wrap: anywhere; }
.projects-link-list a > .projects-icon { width: 12px; height: 12px; color: #bbc0a4; }
.projects-folder { margin-top: 17px; padding-top: 17px; border-top: 1px solid #e9e7d8; }
.projects-folder > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.projects-folder > div > span { display: flex; align-items: center; gap: 6px; color: #9b9374; font-size: 10px; }
.projects-folder > div > span .projects-icon { width: 12px; height: 12px; }
.projects-page .projects-copy { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 5px 6px; color: #9da884; background: #f4f7eb; border: 1px solid #e1e7d4; border-radius: 5px; font-size: 9px; }
.projects-copy .projects-icon { width: 10px; height: 10px; }
.projects-folder-path { display: block; width: 100%; min-width: 0; padding: 9px; border: 1px solid #e4e5d5; border-radius: 6px; background: #f7f8ef; color: #8e8e70; font: 10px/1.7 var(--mono,monospace); }
.projects-folder > p { margin: 9px 0 0; color: #b2a88d; font-size: 9px; line-height: 1.8; }
.projects-folder-hint { display: flex; align-items: flex-start; gap: 7px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #ede8da; }
.projects-folder-hint .projects-icon { width: 13px; height: 13px; margin-top: 3px; color: #b8b798; }
.projects-folder-hint p { margin: 0; color: #b3a78a; font-size: 10px; line-height: 1.8; }
.projects-side-empty { margin: 0; color: #b0a184; font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; }
.projects-detail-aside .projects-task-association { background: #f4f7eb; border-color: #dce4ce; }
.projects-task-association .projects-eyebrow { font-size: 7px; letter-spacing: 1px; color: #a2af8d; }
.projects-detail-aside .projects-task-association h2 { margin: 6px 0 12px; color: #8b966f; }
.projects-task-association > p:not(.projects-side-empty) { margin: 0 0 13px; color: #9a9a7b; font-size: 10px; overflow-wrap: anywhere; }
.projects-task-association > p strong { color: #8b9571; font-weight: 500; }
.projects-page .projects-task-open { display: flex; align-items: center; width: 100%; gap: 7px; min-height: 36px; border: 1px solid #d8e0c9; border-radius: 7px; background: #fbfdf5; color: #899a6e; padding: 7px 9px; font-size: 10px; }
.projects-task-open .projects-icon { width: 13px; height: 13px; }
.projects-task-open .projects-icon:last-child { margin-left: auto; }
.projects-page .projects-task-open:hover { color: #607c48; border-color: #c4d3af; background: #f0f6e5; }

/* A bounded scrolling form keeps the save action visible on small windows. */
dialog:has(.projects-form), dialog:has(.projects-delete-form) { width: min(760px,calc(100vw - 32px)); max-width: calc(100vw - 32px); }
dialog:has(.projects-form) { max-height: min(92dvh,1000px); overflow: hidden; }
.projects-form { min-width: 0; color: #7f745f; }
.projects-form-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: -4px 0 15px; color: #9a8a6e; font-size: 12px; line-height: 1.8; }
.projects-form-intro > span { flex: none; color: #b2a489; font-size: 10px; }
.projects-form-scroller { max-height: min(calc(92dvh - 240px),700px); min-height: 100px; padding: 1px 12px 5px 1px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #d0d5be transparent; }
.projects-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.projects-form fieldset + fieldset { margin-top: 16px; padding-top: 21px; border-top: 1px solid #e6e3d5; }
.projects-form legend { display: flex; align-items: baseline; gap: 10px; width: 100%; margin-bottom: 17px; padding: 0; color: #83916b; font-size: 13px; font-weight: 500; line-height: 1.6; letter-spacing: .5px; }
.projects-form legend > span { color: #adb997; font: 12px/1.6 Georgia,serif; }
.projects-form .field { min-width: 0; margin-bottom: 14px; }
.projects-form .field input, .projects-form .field select, .projects-form .field textarea { min-width: 0; width: 100%; min-height: 42px; border-color: #dedbcb; background: #fffef8; font-size: 12px; }
.projects-form .field textarea { resize: vertical; line-height: 1.85; max-height: 45vh; }
.projects-form .field input::placeholder, .projects-form .field textarea::placeholder { color: #b5a98e; }
.projects-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.projects-form-help { margin: -6px 0 15px; color: #aaa184; font-size: 10px; line-height: 1.8; }
.projects-form > .form-error { margin: 11px 0; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.projects-form > .form-error:empty { margin: 0; }
.projects-form .dialog-actions { margin-top: 15px; }
.projects-form[aria-busy=true] button[type=submit] { min-width: 104px; }
.projects-delete-form { color: #8f8167; font-size: 13px; line-height: 1.9; }
.projects-delete-mark { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 16px; border: 1px solid #e4e1d0; border-radius: 11px; background: #f2f2e7; color: #a1aa86; }
.projects-delete-mark .projects-icon { width: 21px; height: 21px; }
.projects-delete-form > p { overflow-wrap: anywhere; }
.projects-delete-form strong { color: #7d7157; font-weight: 500; }
.projects-delete-help { color: #a69779; font-size: 11px; }

@media (max-width: 1120px) {
  .projects-page { padding-inline: 27px; }
  .projects-hero { grid-template-columns: minmax(0,1fr) 220px; gap: 15px; padding-inline: 29px; }
  .projects-hero-art { transform: scale(.94); transform-origin: center; }
  .projects-hero-actions { gap: 11px; }
  .projects-hero-actions > span { font-size: 10px; }
  .projects-filter-panel { flex-wrap: wrap; gap: 11px; }
  .projects-search { flex-basis: 100%; }
  .projects-filter-fields { flex-basis: 100%; }
  .projects-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .projects-detail-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 17px; }
  .projects-story { padding-inline: 24px; }
}
@media (max-width: 760px) {
  .projects-page { padding: 23px 18px 24px; }
  .projects-hero { grid-template-columns: minmax(0,1fr) 170px; min-height: 268px; padding: 23px 24px; column-gap: 4px; border-radius: 17px; }
  .projects-hero h1 { font-size: 28px; margin-top: 8px; letter-spacing: 1px; }
  .projects-hero-line { font-size: 16px; }
  .projects-hero-description { font-size: 11px; }
  .projects-hero-actions { flex-wrap: wrap; gap: 10px; margin-top: 17px; }
  .projects-hero-actions > span { display: none; }
  .projects-hero-art { width: 170px; height: 220px; margin: 0; }
  .projects-hero-art img { width: 144px; height: 194px; right: -13px; }
  .projects-hero-art::before { width: 145px; height: 145px; top: 36px; }
  .projects-art-note { top: 65px; width: 84px; height: 125px; padding: 24px 8px; font-size: 7px; }
  .projects-art-note::before { left: 22px; width: 35px; }
  .projects-hero-art figcaption { font-size: 9px; }
  .projects-stats { margin: 17px 0 27px; border-radius: 13px; }
  .projects-stat { padding: 16px 12px 15px; }
  .projects-stat > span { gap: 6px; font-size: 10px; }
  .projects-stat > span .projects-icon { width: 13px; height: 13px; }
  .projects-stat > strong { font-size: 26px; }
  .projects-stat > p { display: none; }
  .projects-collection-head { margin-bottom: 15px; }
  .projects-collection-head > p { max-width: 190px; font-size: 10px; }
  .projects-collection-head h2 { font-size: 17px; }
  .projects-filter-panel { padding: 11px; border-radius: 10px; }
  .projects-filter-fields { gap: 8px; }
  .projects-filter-fields select { min-height: 44px; font-size: 11px; padding-inline: 7px 18px; }
  .projects-search { min-height: 44px; }
  .projects-search input { min-height: 42px; font-size: 12px; }
  .projects-page .projects-search button { min-width: 44px; min-height: 38px; font-size: 11px; }
  .projects-page :is(.projects-primary,.projects-secondary,.projects-back,.projects-delete,.projects-undo,.projects-copy,.projects-task-open,.projects-clear,.projects-filter-chip) { min-height: 44px; }
  .projects-page .projects-undo { min-width: 44px; }
  .projects-delete { min-width: 44px; }
  .projects-results-line { margin-bottom: 16px; font-size: 9px; }
  .projects-grid { gap: 15px; }
  .projects-card { min-height: 258px; padding: 19px 18px 15px; }
  .projects-card::before { left: 18px; }
  .projects-card-heading h3 { font-size: 15px; }
  .projects-card-summary { font-size: 11px; }
  .projects-card-foot { font-size: 8px; gap: 7px; }
  .projects-detail-toolbar { margin-bottom: 16px; }
  .projects-detail-toolbar .projects-secondary { padding-inline: 10px; }
  .projects-detail-layout { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .projects-detail-lead { padding: 24px; margin-bottom: 17px; border-radius: 14px; }
  .projects-detail h1 { font-size: 25px; }
  .projects-detail-summary { font-size: 12px; }
  .projects-detail-aside { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
  .projects-detail-aside .projects-materials { grid-row: span 2; }
  .projects-detail-aside > section { padding: 20px; }
  .projects-link-list a { min-height: 52px; }
  .projects-folder-path { min-height: 44px; }
  .projects-page-foot { margin-top: 25px; font-size: 9px; }
  .projects-form-intro { flex-direction: column; gap: 2px; margin-bottom: 12px; font-size: 11px; }
  .projects-form-scroller { max-height: calc(92dvh - 240px); padding-right: 5px; }
  .projects-form .field input,.projects-form .field select { min-height: 44px; }
  .projects-form .dialog-actions button { min-height: 44px; }
}
@media (max-width: 560px) {
  .projects-page { padding: 20px 14px 23px; }
  .projects-hero { grid-template-columns: minmax(0,1fr) 106px; min-height: 260px; gap: 0; padding: 22px 19px; overflow: hidden; }
  .projects-hero h1 { font-size: 26px; margin-bottom: 6px; }
  .projects-hero-line { max-width: 210px; font-size: 15px; line-height: 1.8; }
  .projects-hero-copy > .projects-eyebrow { gap: 7px; font-size: 7px; letter-spacing: 1px; }
  .projects-hero-copy > .projects-eyebrow::before { width: 13px; }
  .projects-hero-description { max-width: 230px; font-size: 10px; line-height: 1.9; }
  .projects-hero-art { width: 124px; height: 210px; align-self: end; justify-self: end; margin: 0 -14px -6px 0; }
  .projects-hero-art img { width: 128px; height: 171px; right: -10px; bottom: 22px; }
  .projects-art-note { top: 72px; left: 3px; width: 64px; height: 103px; padding: 23px 7px; font-size: 5px; }
  .projects-art-note::before { width: 29px; height: 13px; left: 16px; }
  .projects-art-note > span { font-size: 15px; padding-top: 5px; }
  .projects-hero-art::before { width: 115px; height: 115px; top: 51px; }
  .projects-hero-art figcaption { font-size: 7px; letter-spacing: 0; }
  .projects-hero-actions { position: relative; z-index: 2; }
  .projects-hero-actions .projects-primary { padding: 10px 13px; font-size: 12px; }
  .projects-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .projects-stat { padding: 15px 19px; }
  .projects-stat:nth-child(3), .projects-stat:nth-child(4) { border-top: 1px solid var(--projects-line); }
  .projects-stat:nth-child(3)::before { content: none; }
  .projects-stat::before { top: 16px; bottom: 16px; }
  .projects-stat > span { font-size: 10px; }
  .projects-stat > strong { font-size: 27px; margin-top: 6px; }
  .projects-stat > strong small { font-size: 9px; }
  .projects-collection-head { align-items: center; }
  .projects-collection-head > p { max-width: 118px; font-size: 9px; }
  .projects-collection-head .projects-eyebrow { font-size: 6px; letter-spacing: .8px; }
  .projects-collection-head h2 { margin-top: 5px; font-size: 16px; }
  .projects-filter-panel { gap: 10px; }
  .projects-filter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .projects-filter-fields > label > span { display: block; margin: 0 0 4px 2px; color: #a3a28a; font-size: 9px; }
  .projects-filter-fields select { width: 100%; padding-left: 10px; }
  .projects-results-line { align-items: baseline; gap: 9px; font-size: 8px; }
  .projects-results-line p { max-width: 174px; }
  .projects-active-filters { align-items: flex-start; gap: 8px; }
  .projects-page .projects-filter-chip { font-size: 9px; padding-inline: 7px; }
  .projects-page .projects-clear { max-width: 61px; padding-inline: 3px; font-size: 9px; text-align: center; }
  .projects-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .projects-card { min-height: 246px; padding: 21px 23px 16px; }
  .projects-card::before { left: 23px; }
  .projects-card-category { font-size: 10px; }
  .projects-card-heading h3 { font-size: 17px; }
  .projects-card-summary { font-size: 12px; }
  .projects-card-tags { margin-bottom: 18px; }
  .projects-card-foot { font-size: 9px; }
  .projects-status { font-size: 9px; }
  .projects-empty { min-height: 316px; padding: 32px 17px 37px; }
  .projects-empty h3 { font-size: 15px; }
  .projects-empty p { font-size: 11px; }
  .projects-page-foot { font-size: 8px; gap: 5px; align-items: flex-start; }
  .projects-page-foot .projects-icon { margin-top: 2px; width: 11px; height: 11px; }
  .projects-detail-toolbar { gap: 8px; }
  .projects-detail-toolbar > div { gap: 7px; }
  .projects-page .projects-back { font-size: 11px; gap: 6px; }
  .projects-detail-toolbar .projects-secondary { font-size: 10px; gap: 6px; padding-inline: 10px; }
  .projects-detail-lead { padding: 21px; }
  .projects-detail-kicker { gap: 8px 10px; }
  .projects-detail-kicker > .projects-eyebrow { flex-basis: 100%; font-size: 7px; margin-bottom: 2px; }
  .projects-detail-category { padding-left: 0; border: 0; font-size: 10px; overflow-wrap: anywhere; }
  .projects-detail h1 { font-size: 23px; line-height: 1.7; letter-spacing: .4px; }
  .projects-detail-summary { font-size: 12px; }
  .projects-detail-tags { margin-top: 16px; }
  .projects-story { padding: 21px 22px 6px; border-radius: 13px; }
  .projects-story-intro { font-size: 9px; padding-bottom: 17px; }
  .projects-story-section { padding: 23px 0 26px; }
  .projects-story-heading { margin-bottom: 13px; gap: 10px; }
  .projects-story-heading h2 { font-size: 15px; }
  .projects-story-text { font-size: 12px; line-height: 2; }
  .projects-story-text.is-empty { font-size: 11px; }
  .projects-detail-aside { grid-template-columns: minmax(0,1fr); }
  .projects-detail-aside .projects-materials { grid-row: auto; }
  .projects-facts dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .projects-facts dl > div + div { margin-top: 0; }
  .projects-facts dd { margin-left: 0; font-size: 11px; }
  .projects-detail-aside h2 { margin-bottom: 15px; }
  .projects-facts > p { margin-top: 17px; }
  .projects-link-list strong { font-size: 12px; }
  .projects-link-list small { font-size: 10px; }
  .projects-folder > div > span { font-size: 11px; }
  .projects-page .projects-copy { padding-inline: 9px; font-size: 10px; }
  .projects-folder-path { font-size: 11px; }
  .projects-side-empty { font-size: 11px; }
  .projects-task-association > p:not(.projects-side-empty) { font-size: 11px; }
  .projects-page .projects-task-open { font-size: 11px; }
  dialog:has(.projects-form), dialog:has(.projects-delete-form) { width: calc(100vw - 20px); max-width: calc(100vw - 20px); }
  .projects-form-scroller { max-height: calc(92dvh - 243px); min-height: 70px; }
  .projects-form-grid { gap: 0 12px; }
  .projects-form .field { font-size: 11px; margin-bottom: 13px; }
  .projects-form .field input,.projects-form .field select,.projects-form .field textarea { font-size: 12px; padding: 10px; }
  .projects-form .field input[type=date] { padding-inline: 5px; font-size: 11px; }
  .projects-form legend { font-size: 12px; margin-bottom: 14px; }
  .projects-form-help { font-size: 9px; }
  .projects-form .dialog-actions { margin-top: 12px; }
}
@media (max-width: 360px) {
  .projects-page { padding-inline: 11px; }
  .projects-hero { grid-template-columns: minmax(0,1fr) 76px; padding-inline: 16px; }
  .projects-hero-line { font-size: 14px; }
  .projects-hero-art { margin-right: -23px; transform: scale(.88); transform-origin: bottom right; }
  .projects-hero-description { font-size: 9px; }
  .projects-filter-panel { padding: 9px; }
  .projects-collection-head > p { max-width: 93px; }
  .projects-form-grid { grid-template-columns: minmax(0,1fr); }
  .projects-form .field input[type=date] { padding-inline: 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .projects-card, .projects-page button { transition: none; }
  .projects-card:hover { transform: none; }
}
