:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  color: #252923;
  background: #f5f4f0;
  --canvas: #f5f4f0;
  --paper: #fffefa;
  --text: #252923;
  --muted: #676b60;
  --line: #e4e3dc;
  --rail: #232921;
  --olive: #484e3a;
  --olive-light: #e7eadf;
  --accent: #af9576;
  --radius: 13px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
img { display: block; max-width: 100%; }
svg { display: block; width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #8b6d49; outline-offset: 3px; }
.workspace { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; align-self: start;
  display: flex; flex-direction: column; overflow-y: auto; padding: 32px 17px 18px;
  color: #d7d9cb; background: var(--rail);
}
.brand { display: flex; gap: 12px; align-items: center; margin: 0 0 47px 12px; width: fit-content; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #676e59; border-radius: 12px; color: #d6c5a8; background: #333a2c; }
.brand-mark svg { width: 24px; height: 24px; }
.brand strong { display: block; color: #f6f1e6; font-size: 1.1rem; letter-spacing: .1em; font-weight: 650; line-height: 1.4; }
.brand small { display: block; color: #bec2af; font-size: .76rem; letter-spacing: .08em; margin-top: 3px; }
.nav-label { font-size: .75rem; letter-spacing: .1em; color: #a8ab9a; padding-left: 13px; margin-bottom: 12px; }
.nav-second { margin-top: 34px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 0 13px; border-radius: 8px; margin-bottom: 5px; font-size: .92rem; }
.sidebar nav a svg { width: 18px; height: 18px; color: #bbc0ad; }
.sidebar nav a:hover { background: #323a2c; }
.sidebar nav a[aria-current="page"] { color: #fffdf4; background: #47513c; font-weight: 600; box-shadow: inset 0 0 0 1px #515b45; }
.sidebar nav a[aria-current="page"] svg { color: #e2c7a3; }
.nav-count { margin-left: auto; padding: 1px 6px; border-radius: 6px; font-size: .75rem; background: #22291f; color: #eee6d7; }
.storage-status { border-top: 1px solid #454b3e; display: flex; align-items: center; gap: 8px; padding: 19px 10px 0; margin: auto 2px 0; color: #c1c5b4; font-size: .78rem; }
.storage-status span { width: 7px; height: 7px; border-radius: 50%; background: #a3ad89; }
.workspace-content { min-width: 0; }
.topbar {
  min-height: 72px; padding: 10px 38px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #faf9f6; border-bottom: 1px solid #e9e7e1;
}
.breadcrumb { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: .86rem; }
.breadcrumb strong { color: var(--text); font-weight: 650; }
.crumb-divider { color: #828376; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border-radius: 8px; padding: 9px 14px; min-height: 38px; border: 1px solid transparent; white-space: nowrap; font-size: .87rem; font-weight: 600; }
.button svg { width: 17px; height: 17px; }
.button-outline { background: var(--paper); border-color: #d9dbd0; color: #343d2f; }
.button-outline:hover { border-color: #a8af99; background: #f0f1e9; }
.button-primary { background: #464f38; border-color: #464f38; color: #fffaf0; }
.button-primary:hover { background: #333f2c; }
.button-quiet { background: transparent; }
.button-quiet:hover { background: #f0f0e9; }
.button.danger { color: #893f37; }
#main { max-width: 1640px; margin: 0 auto; padding: 31px 38px 54px; }
.hero { display: flex; min-height: 224px; isolation: isolate; overflow: hidden; position: relative; border-radius: 17px; }
.hero-cover { min-height: clamp(250px, 22vw, 330px); background: #444a37; color: #fbf7ed; }
.hero-copy { position: relative; z-index: 1; padding: clamp(29px, 4vw, 57px) clamp(24px, 3.6vw, 55px); align-self: center; max-width: 640px; }
.hero-cover .hero-copy { width: 49%; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .77rem; font-weight: 650; letter-spacing: .12em; }
.hero-cover .hero-eyebrow { color: #e8d6b7; }
.hero-eyebrow span { width: 19px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; font-size: clamp(2rem, 3.15vw, 3.35rem); letter-spacing: .035em; line-height: 1.18; font-weight: 700; }
.hero-description { margin: 15px 0 0; max-width: 29em; color: var(--muted); font-size: .94rem; line-height: 1.8; }
.hero-cover .hero-description { color: #ebe8d9; max-width: 23em; }
.hero-button { display: inline-flex; margin-top: 22px; min-height: 38px; align-items: center; padding: 8px 15px; border: 1px solid #b0b39b; border-radius: 7px; color: #fffdf3; font-weight: 600; font-size: .85rem; }
.hero-button:hover { background: #eff1e917; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0 10px; }
.feature-link { display: inline-block; margin: 8px 0 0; color: #48583a; text-decoration: underline; text-underline-offset: 3px; }
.hero-photo { position: absolute; inset: 0 0 0 45%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #444a37 0%, #444a3755 9%, transparent 27%); pointer-events: none; }
.hero-photo > span { position: absolute; bottom: 13px; right: 13px; z-index: 1; display: block; color: #fffdf8; background: #2a2a21b8; padding: 5px 9px; border-radius: 5px; font-size: .72rem; }
.hero-plain { min-height: 183px; border: 1px solid #dce0d3; background: #e9ece2; }
.hero-plain .hero-copy { padding-top: 27px; padding-bottom: 28px; }
.hero-plain .hero-eyebrow { color: #586146; }
.hero-emblem { display: grid; place-items: center; align-self: center; margin-left: auto; margin-right: 7%; width: 105px; height: 105px; border: 1px solid #c7ceba; border-radius: 25px; background: #e1e6d8; color: #6a755c; transform: rotate(-9deg); }
.hero-emblem svg { width: 49px; height: 49px; stroke-width: 1.25; }
.toolbar { padding: 23px 0 0; }
.primary-directory { margin-bottom: 18px; }
.primary-directory h2 { margin: 0 0 10px; font-size: 1.13rem; font-weight: 680; }
.primary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(153px, 1fr)); gap: 8px; }
.primary-tile { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; min-height: 59px; padding: 8px 9px 8px 11px; border: 1px solid #dedfd5; border-radius: 9px; background: var(--paper); text-align: left; color: var(--text); }
.primary-tile > span { min-width: 0; }
.primary-tile strong { display: block; font-size: .86rem; line-height: 1.3; overflow-wrap: anywhere; }
.primary-tile small { display: block; margin-top: 3px; color: var(--muted); font-size: .74rem; }
.primary-tile img { width: 42px; height: 35px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.primary-tile:hover { border-color: #a6ad99; }
.primary-tile[aria-pressed="true"] { border-color: #95a287; background: #e8ede2; }
.primary-tile:focus-visible { outline: 2px solid #687958; outline-offset: 2px; }
.catalog-group + .catalog-group { margin-top: 26px; }
.group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 0 0 12px; }
.group-heading h3 { margin: 0; font-size: 1.02rem; }
.group-heading span { color: var(--muted); font-size: .78rem; }
@media (max-width: 460px) {
  .primary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.filter-row { display: flex; gap: 11px; }
.search, .select-wrap { display: flex; position: relative; align-items: center; border: 1px solid #dedfd6; background: var(--paper); color: #626a59; border-radius: 8px; height: 49px; }
.search { flex: 1; min-width: 0; padding-left: 14px; }
.search > svg { width: 18px; height: 18px; }
.search input, .select-wrap select { display: block; width: 100%; height: 100%; color: var(--text); border: 0; background: transparent; outline: 0; font-size: .88rem; }
.search input { padding: 0 12px; min-width: 0; }
.search input::placeholder { color: #666b5e; }
.search:focus-within, .select-wrap:focus-within { border-color: #8b967f; box-shadow: 0 0 0 2px #74886526; }
.select-wrap { min-width: 139px; }
.select-wrap select { appearance: none; padding: 0 32px 0 13px; color: #363e32; cursor: pointer; max-width: 225px; }
.select-wrap svg { width: 14px; height: 14px; position: absolute; right: 11px; pointer-events: none; }
.chip-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.chip { min-height: 35px; border-radius: 7px; padding: 4px 13px; border: 1px solid #e1e2da; background: #fbfaf6; font-size: .84rem; color: #575f50; }
.chip:hover { border-color: #a6ad99; }
.chip[aria-pressed="true"] { background: #e7ebdf; border-color: #c6cfba; color: #38452e; font-weight: 650; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 13px; }
.section-title h2 { margin: 0; font-size: 1.3rem; font-weight: 680; letter-spacing: .035em; }
.section-title > span { color: var(--muted); font-size: .81rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.card { min-width: 0; position: relative; border: 1px solid #e7e5de; border-radius: 12px; background: var(--paper); transition: border-color .18s, box-shadow .18s; box-shadow: 0 2px 5px #32312308; }
.card:hover { border-color: #c9cbbf; box-shadow: 0 5px 22px #34312612; }
.card-open { padding: 0; border: none; background: transparent; text-align: left; width: 100%; height: 100%; display: flex; flex-direction: column; border-radius: inherit; }
.card-photo { display: block; width: 100%; aspect-ratio: 1.65; overflow: hidden; position: relative; background: #e9e5dc; border-radius: 11px 11px 0 0; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.form-card .card-photo { aspect-ratio: 3 / 2; }
.card-open:hover .card-photo img { transform: scale(1.025); }
.image-tag { position: absolute; top: 11px; left: 11px; background: #fcfaf1; color: #3e4035; border-radius: 5px; padding: 4px 7px; font-size: .73rem; font-weight: 600; }
.photo-placeholder { display: grid; place-items: center; height: 100%; color: #757c6a; }
.photo-placeholder svg { width: 35px; height: 35px; }
.card-copy { flex: 1; width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 15px; }
.card-meta { color: #5a664c; min-height: 19px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; font-size: .79rem; font-weight: 650; }
.card-title { font-size: clamp(1rem,1.25vw,1.17rem); font-weight: 680; line-height: 1.4; }
.card-foot { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; color: #66695d; font-size: .81rem; line-height: 1.65; }
.swatches { display: flex; justify-content: flex-end; gap: 4px; flex: none; }
.swatches i, .palette-list i { display: block; width: 16px; height: 16px; background: var(--sample); border-radius: 50%; border: 1px solid #372c1d29; }
.icon-button { display: grid; place-items: center; width: 37px; height: 37px; padding: 0; color: #3f4438; border: 1px solid transparent; border-radius: 7px; background: #eeeee7; }
.icon-button:hover { background: #e3e8db; }
.icon-button svg { width: 18px; height: 18px; }
.card-save { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; background: #fdfbf1; }
.card-save svg { width: 16px; height: 16px; }
.card-save.is-saved { color: #f2eddc; background: #4a553e; }
.card-save.is-saved svg { fill: currentColor; }
.hardware-card .card-open { min-height: 156px; }
.hardware-card .card-photo { background: #efeee9; }
.hardware-card .card-photo img { display: block; object-fit: contain; }
.hardware-symbol { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 9px; margin: 14px 0 0 14px; background: #eef0e7; color: #677357; }
.hardware-symbol svg { width: 23px; height: 23px; }
.inline-tag { padding: 1px 6px; border-radius: 4px; background: #eef0e8; color: #515c45; font-size: .72rem; }
.empty { padding: 40px 20px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.empty svg { margin: 0 auto; width: 26px; height: 26px; color: #6d765f; }
.material-list { margin-top: 23px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.material-list summary { padding: 15px 17px; cursor: pointer; font-size: .92rem; font-weight: 640; }
.material-list summary span { float: right; font-size: .8rem; color: var(--muted); font-weight: 400; }
.material-list > p { margin: 0 17px 12px; color: var(--muted); font-size: .87rem; }
.material-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); }
.material-grid div { padding: 12px 17px; border-bottom: 1px solid #eeede7; }
.material-grid strong { font-size: .9rem; }
.material-grid p { margin: 4px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.cohort-note { margin: 15px 0 0; color: #465341; font-size: .92rem; line-height: 1.65; }
.style-comparison { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.comparison-heading { padding: 13px 15px; background: #edf0e6; border-bottom: 1px solid var(--line); }
.comparison-heading h3 { margin: 0; font-size: 1rem; }
.comparison-heading p, .comparison-choice p { margin: 5px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.comparison-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.comparison-choice { min-width: 0; padding: 10px 13px 12px; border-inline-end: 1px solid var(--line); }
.comparison-choice:last-child { border-inline-end: 0; }
.choice-heading { min-height: 30px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 7px; }
.choice-heading strong { font-size: .87rem; }
.choice-heading > span, .choice-heading .sample-link { font-size: .77rem; color: var(--muted); }
.choice-samples { display: grid; gap: 5px; margin-top: 4px; }
.choice-samples button { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 40px; padding: 4px; border: 1px solid #e9e7de; border-radius: 6px; background: #fbfaf6; text-align: start; font-size: .78rem; line-height: 1.3; }
.choice-samples button:hover { background: #e9eee2; border-color: #c7cfbc; }
.choice-samples img { width: 35px; height: 29px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.choice-samples small { display: block; color: var(--muted); font-size: .73rem; overflow-wrap: anywhere; }
.scene-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.room-shortcuts { margin-bottom: 10px; }
.scene-tabs .chip { display: inline-flex; align-items: center; }
.scene-tabs .chip[aria-current="page"] { background: #e7ebdf; border-color: #c6cfba; color: #38452e; font-weight: 650; }
.scene-brief { margin: -2px 0 15px; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.brand-comparison-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.brand-comparison-card { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.brand-comparison-card h3 { margin: 0 0 8px; font-size: .94rem; }
.brand-comparison-photo { width: 100%; padding: 0; position: relative; display: block; background: #e8e2d6; border: 0; border-radius: 6px; overflow: hidden; }
.brand-comparison-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.brand-comparison-photo span { position: absolute; right: 7px; bottom: 7px; padding: 3px 8px; border-radius: 4px; background: #2a2a21d9; color: #fffdf8; font-size: .76rem; }
.brand-comparison-card .choice-samples { margin-top: 8px; }
.scene-disclosure { margin-top: 13px; }
@media (max-width: 1240px) {
  .brand-comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .brand-comparison-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1150px) {
  .comparison-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .comparison-choice:nth-child(even) { border-inline-end: 0; }
  .comparison-choice:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  #browser[data-view="styles"] .filter-row { flex-wrap: wrap; }
  #browser[data-view="styles"] .search { flex-basis: 100%; }
}
@media (max-width: 440px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-choice { border-inline-end: 0; }
  .comparison-choice:nth-child(3) { border-bottom: 1px solid var(--line); }
}
.manage-actions { display: flex; gap: 9px; flex-wrap: wrap; margin: 0 0 15px; }
.manage-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.manage-item { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.manage-item + .manage-item { border-top: 1px solid var(--line); }
.manage-item p { color: var(--muted); margin: 2px 0 0; font-size: .84rem; }
.manage-buttons { display: flex; gap: 6px; align-items: center; }
.dialog { padding: 0; width: min(620px,calc(100% - 32px)); max-width: none; max-height: calc(100% - 36px); overflow: auto; border: 1px solid #e3e1d8; border-radius: 16px; background: var(--paper); color: var(--text); box-shadow: 0 20px 80px #201f1950; }
dialog::backdrop { background: #22271f9e; }
.dialog-top { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 17px; border-bottom: 1px solid var(--line); background: var(--paper); color: #4d5a43; font-size: .91rem; font-weight: 650; }
.detail-image { width: min(1110px,calc(100% - 32px)); }
.detail-content { display: grid; }
.detail-image .detail-content { grid-template-columns: minmax(0,1.55fr) minmax(280px,1fr); }
.detail-visual { display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 10px; padding: 15px; background: #efeee8; align-self: start; }
.detail-picture { position: relative; border: 0; padding: 0; display: grid; place-items: center; min-width: 0; min-height: 220px; background: #e2dfd5; border-radius: 8px; overflow: hidden; }
.detail-picture img { width: 100%; max-height: 62vh; max-height: 62dvh; object-fit: contain; }
.detail-picture svg { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; padding: 6px; border-radius: 6px; background: #252820ce; color: #fffaf1; }
.thumbs, .edit-images { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; }
.thumbs button[aria-pressed="true"] { border-color: #697858; }
.thumbs img, .edit-images img { width: 69px; height: 48px; object-fit: cover; }
.detail-copy { padding: 22px; }
.detail-copy h2 { margin: 0 0 15px; font-size: 1.4rem; }
.detail-copy h3 { margin: 16px 0 8px; font-size: .96rem; }
.detail-copy dl { display: grid; gap: 7px; margin: 0; font-size: .87rem; }
.detail-copy dl div { display: grid; grid-template-columns: 5.9em 1fr; gap: 7px; }
.detail-copy dt { color: var(--muted); }
.detail-copy dd { margin: 0; }
.palette-list { display: grid; gap: 5px; font-size: .86rem; }
.palette-list span { display: flex; align-items: center; gap: 7px; }
.sample-link { display: flex; gap: 7px; align-items: center; width: fit-content; padding: 4px 0; background: transparent; border: 0; text-align: left; color: #48583a; text-decoration: underline; text-underline-offset: 3px; }
.sample-link:hover { color: #27371e; }
.related-boards { display: grid; gap: 4px; font-size: .87rem; }
.detail-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.detail-nav .button { min-height: 30px; padding: 4px 8px; font-size: .79rem; }
.detail-note, .detail-source { color: var(--muted); line-height: 1.6; font-size: .87rem; white-space: pre-line; }
.source-link { color: #465739; border-bottom: 1px solid #a5b194; font-size: .86rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
#browser[data-view="forms"] .filter-row { flex-wrap: wrap; }
.card-grid + .form-related { margin-top: 24px; }
.detail-form .detail-picture { min-height: 0; }
.detail-form .detail-picture img { display: block; height: auto; max-height: none; }
.form-role-number, .form-position {
  display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-weight: 700;
}
.form-position {
  position: absolute; left: var(--x); top: var(--y); width: 24px; height: 24px;
  transform: translate(-50%, -50%); color: #292d22; background: #fffdf4;
  border: 1px solid #3e4336; box-shadow: 0 0 0 2px #f8f4e880; font-size: .78rem;
}
.form-brand-list {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(97px,1fr)); gap: 6px;
}
.form-brand {
  display: grid; gap: 2px; min-width: 0; padding: 7px 8px; border: 1px solid var(--line);
  border-radius: 7px; text-align: left; background: var(--paper); color: var(--text); font-size: .8rem;
}
.form-brand small { color: var(--muted); font-size: .72rem; }
.form-brand:hover { border-color: #a6ad99; }
.form-brand[aria-pressed="true"] { border-color: #91a082; background: #e8ede2; color: #38452e; }
.form-pairs { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.form-pair {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); gap: 10px;
  align-items: center; min-height: 58px; padding: 6px 0; border-bottom: 1px solid var(--line);
}
.form-role { display: flex; align-items: flex-start; gap: 6px; }
.form-role-number { width: 18px; height: 18px; background: #eeefe6; color: #46533e; font-size: .69rem; }
.form-role-name, .form-original > span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.form-role-name strong, .form-original strong { font-size: .81rem; line-height: 1.36; }
.form-role-name small, .form-original small, .form-missing { color: var(--muted); font-size: .72rem; }
.form-role-name small { display: flex; align-items: center; gap: 5px; }
.form-role-name i {
  display: inline-block; width: 16px; height: 11px; flex: 0 0 auto;
  border: 1px solid #3b342c33; border-radius: 3px; background: var(--sample);
}
.form-original {
  display: flex; align-items: center; gap: 7px; padding: 4px; min-width: 0; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 6px; color: #405235;
}
.form-original:hover { background: #f0f1e9; border-color: #dce0d3; }
.form-original img { width: 42px; height: 42px; flex: 0 0 auto; object-fit: cover; border-radius: 4px; border: 1px solid #31291e24; }
.form-original .form-near { color: #445937; }
.form-note { margin: 10px 0 0; font-size: .78rem; }
#editor { width: min(720px,calc(100% - 32px)); }
.edit-form { padding: 17px; display: grid; gap: 12px; font-size: .89rem; }
.edit-form label { display: grid; gap: 4px; color: #535d4d; }
.edit-form input:not([type="color"]), .edit-form select, .edit-form textarea { width: 100%; padding: 7px 9px; color: var(--text); background: white; border: 1px solid #dadcd1; border-radius: 6px; min-height: 35px; }
.edit-form textarea { resize: vertical; }
.edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.color-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.color-fields strong { grid-column: 1 / -1; }
.color-fields div { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px; }
.color-fields input[type="color"] { width: 32px; height: 35px; background: white; border-radius: 4px; border: 1px solid #dadcd1; padding: 3px; }
.input-note { color: var(--muted); font-size: .81rem; }
.edit-images > div { position: relative; }
.edit-images > div img { border-radius: 5px; }
.edit-images .icon-button { position: absolute; right: 1px; top: 1px; width: 22px; height: 22px; background: #f6f6ef; }
.edit-images .icon-button svg { width: 14px; height: 14px; }
#form-error { color: #8f3830; margin: 0; }
.presentation {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: clamp(12px,2vw,27px); border: 0; color: #faf6eb; background: #1d211a;
}
.presentation[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 11px; }
.show-top, .show-bottom, .show-controls { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.show-top { font-size: .86rem; color: #e6dbca; }
.show-close, .show-controls .icon-button { background: #30372b; border: 1px solid #626957; color: #fffdf5; }
.show-close:hover, .show-controls .icon-button:hover { background: #464e40; }
.show-stage { min-height: 0; display: grid; place-items: center; overflow: hidden; }
.show-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.show-bottom h2 { font-size: clamp(1.05rem,2vw,1.45rem); margin: 0 0 3px; }
.show-bottom p { margin: 0; font-size: .78rem; color: #d5d3c4; }
.show-controls { white-space: nowrap; font-size: .82rem; }
.toast { position: fixed; bottom: 20px; right: 20px; z-index: 10; max-width: min(390px,calc(100vw - 40px)); color: #fdfbf3; padding: 11px 15px; border-radius: 8px; background: #3e4a36; box-shadow: 0 4px 18px #22251c40; font-size: .88rem; }
.toast-error { background: #7e4039; }
@media (min-width: 1600px) {
  #main { padding-inline: 50px; }
}
@media (max-width: 1120px) {
  .workspace { grid-template-columns: 184px minmax(0,1fr); }
  .topbar, #main { padding-inline: 24px; }
  .hero-cover .hero-copy { width: 55%; }
  .hero-photo { left: 49%; }
  .card-grid { gap: 12px; }
  .card-copy { padding-inline: 11px; }
}
@media (max-width: 865px) {
  .workspace { grid-template-columns: 156px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .brand { gap: 7px; margin-left: 4px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand strong { font-size: .94rem; }
  .topbar, #main { padding-inline: 17px; }
  .hero-cover .hero-copy { width: 58%; }
  .hero-photo { left: 51%; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .material-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 659px) {
  .workspace { display: block; }
  .sidebar { height: auto; position: static; padding: 11px 13px 8px; }
  .brand { margin: 0 0 9px 1px; }
  .brand small { margin-top: 0; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar nav a { min-height: 35px; gap: 4px; padding: 0 7px; margin: 0; font-size: .78rem; }
  .sidebar nav a svg { width: 15px; height: 15px; }
  .nav-label, .storage-status { display: none; }
  .nav-count { padding-inline: 4px; }
  .topbar { min-height: 49px; padding-block: 6px; }
  .topbar .button { min-height: 34px; }
  #main { padding-block: 13px 35px; }
  .hero { min-height: 0; }
  .hero-cover { display: flex; flex-direction: column; }
  .hero-cover .hero-copy { width: 100%; }
  .hero-copy { padding: 22px 18px 19px; align-self: start; }
  .hero h1 { font-size: 1.85rem; }
  .hero-eyebrow { margin-bottom: 9px; }
  .hero-description { margin-top: 10px; font-size: .87rem; }
  .hero-button { margin-top: 12px; min-height: 34px; }
  .hero-photo { position: relative; inset: auto; height: 145px; }
  .hero-photo::after { display: none; }
  .hero-plain .hero-copy { padding: 20px 15px; }
  .hero-emblem { display: none; }
  .toolbar { padding-top: 15px; }
  .filter-row { flex-wrap: wrap; gap: 8px; }
  .search { flex-basis: 100%; }
  .select-wrap { min-width: min(135px,40%); flex: 1; }
  .select-wrap select { max-width: none; }
  .chip-row { gap: 6px; }
  .chip { padding-inline: 8px; min-height: 32px; }
  .section-title { margin-top: 20px; }
  .section-title h2 { font-size: 1.15rem; }
  .card-grid { gap: 9px; }
  .card-copy { padding: 10px 8px; gap: 4px; }
  .card-foot { display: block; }
  .swatches { justify-content: flex-start; margin-top: 3px; }
  .card-save { top: 5px; right: 5px; width: 27px; height: 27px; }
  .image-tag { top: 6px; left: 6px; font-size: .67rem; }
  .detail-image .detail-content { grid-template-columns: 1fr; }
  .detail-picture img { max-height: 43vh; }
  .detail-copy { padding: 14px; }
  .manage-item { align-items: start; flex-direction: column; gap: 7px; }
  .manage-buttons .button { min-height: 32px; padding-block: 4px; }
  .color-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
