@font-face { font-family: 'Changxi Headline'; font-weight: 600; font-style: normal; font-display: swap; src: url(data:font/ttf;base64,AAEAAAARAQAABAAQR1BPU0R0THUAAAFsAAAAHkdTVUJtIlkQAAACeAAAAEBPUy8yoIuPWAAAArgAAABgU1RBVHmiauUAAAIUAAAAKmNtYXAEVKqBAAADGAAAAGxnYXNwAAAAEAAAASQAAAAIZ2x5ZpFjULAAAAWwAAAJFmhlYWQsSlg7AAACQAAAADZoaGVhDAQH6AAAAcwAAAAkaG10eAkkASYAAAFUAAAAGGxvY2EH3Ao1AAABLAAAABRtYXhwAEkCawAAAYwAAAAgbmFtZSzTTnMAAAOEAAACLHBvc3T/uAAyAAABrAAAACBwcmVwaAaMhQAAARwAAAAHdmhlYQyLFxcAAAHwAAAAJHZtdHgHvwClAAABQAAAABS4Af+FsASNAAABAAH//wAPAAAAKwArAKQBGwGiAooDOQQMBIsD6AAAA3AAJgAjADIAHwAlACUAKAPoAGQA/QAAA+gAJQAZAFgAGwAZACMALAABAAAACgAcABwAAURGTFQACAAEAAAAAP//AAAAAAAAAAEAAAAJAmoAPwAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAP+1ADIAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAEf/7iAAALuPwT/UoLbwABAAAAAAAAAAAAAAAAAAAAAwABEAAB9P4MAAALuP8k/VILbwAAAAEAAAAAAAAAAAAAAAAAAQABAAEACAABAAAAFAABAAAAHAACd2dodAEBAAAAAgABAAAAAAESAlgAAAAAAAEAAAACAMVXDuqiXw889QADA+gAAAAA4segvAAAAADi6HLf/BP76QtvBw8AAAAGAAIAAAAAAAAAAQAAAAoAPgA+AAZERkxUACpjeXJsACZncmVrACZoYW5pACZrYW5hACZsYXRuACYAAAAAAAQAAAAA//8AAAAAAAQD4QJYAAUAAAKKAlgAAABLAooCWAAAAV4AMgE0AAACAgIAAAAAAAAAIAAAgyrfPBAAAAAWAAAAAEdPT0cAQAAgi6kDcP+IAAAEfwEeYAYBB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w4EBwYGFxQeAgcGBiMiJic2NiYnJiYnNTAyMgMeAwYGJy4CJzceAwYGJy4CJwK2BB4YHhdHVVgoATQEHBIvGQccQD0wDeQwpM9uAU79ngFHARAUX5ZSYzEIGCsbByEsMBenFSIlDwQY/XMIAgsLFSEjDgQX/eoIAZn9YwoKCAUJDxorQzAQDSEjHxcEBwoBCw4KAgEmIQ8aBAkCCwwLGBESFzI8SiIDFiYWByAnFFlATiMDFycXCCErFAE2CgkKBiBMTUUZDC0zB3cGBhVLWlYi/r0BCQ8JEBU9IANrCg4D/lIB1v2pKFZSRCoHFSRPT0ke6REcHg4QHQE5EBsdDhAd/lcFEAoSHzpilm0EKGZrYUkRGTIUEyMoMSEjKxkaNFk7BwgGARUBjgUfKigdBg0YMSwP6AciLSseBg4aNS8RAAgALP/eA8gDSAAGABEAHAAmADQAPgBKAE4AAAEGBgcRIxEBMB4CFwYjISchEzAeAhcGIyEnMwE+AjcXDgIHExcRBzcWBgYHJzY2NRE3NxcGBgc3FSM1Ax4DBgYnLgInExUjJwKjAg8UYgFEFSEjDwQY/YQIAgAZFB8iDgQY/sgIwv1/F1JnNQcTQFIwKhZRKgoIFAtCGxABLFQEFhQIWzRFVioGFCcZCyszGH2vCQM1Cg8D/NcDU/0NERwgDhAdAj4RGh4OEB3+UQwxQSILF0pcLwItDf48IiUeLx4GahASEAGjHy1GBgsCCSxPAQwNLTQvIgkOHkE9Fv77HR0AAA==) format('truetype'); }
/* Approved editorial homepage. The document and paper scroll as one surface. */
/* Keep the body's paper color inside its isolated layer for the headline blend. */
html:has(.headline-lettering) { background-color: var(--paper); }
:root { --paper-grain-opacity: .18; }
body:not(.chat-mode) .composer textarea { overflow-y: hidden; }
body:not(.chat-mode) header { width: min(1400px, calc(100% - 96px)); height: 68px; }
.brand-lockup { display: flex; align-items: center; gap: 17px; color: var(--ink); text-decoration: none; }
.brand-lockup .brand { width: 52px; height: 52px; }
.brand-english { font: 10px/1.5 Georgia, serif; letter-spacing: .14em; }
.brand-caption { display: grid; gap: 2px; }
.brand-definition { color: var(--muted); font-size: 12px; line-height: 1.45; letter-spacing: .06em; white-space: nowrap; }
body:not(.chat-mode) main { width: min(1400px, calc(100% - 96px)); margin-top: 23px; }
body:not(.chat-mode) .intro { margin-bottom: 24px; padding: 5px 0 7px; }
body:not(.chat-mode) h1 { display: flex; align-items: baseline; gap: 26px; font-family: 'Changxi Headline', var(--display); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.headline-lead { font-size: clamp(26px, 2.6vw, 36px); }
.headline-main { font-size: clamp(42px, 4.8vw, 66px); }
.headline-accent { color: var(--accent); margin-left: .07em; }
body:not(.chat-mode) .composer { width: min(870px, 100%); margin: 0 0 25px; padding: 0; border: 0; background: transparent; display: block; }
body:not(.chat-mode) .composer textarea { border: 1px solid #8c8980; border-radius: 14px; padding: 17px 76px 17px 20px; height: 62px; min-height: 62px; max-height: 180px; line-height: 1.7; font-size: 16px; }
body:not(.chat-mode) .composer:has(textarea:focus-visible) { outline: none; }
body:not(.chat-mode) .composer textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body:not(.chat-mode) .model-toolbar { position: static; margin-top: 12px; min-height: 44px; gap: 15px; }
body:not(.chat-mode) .model-toolbar .send { position: absolute; top: 9px; right: 9px; width: 44px; height: 44px; }
body:not(.chat-mode) .toolbar-control > summary { gap: 10px; min-height: 40px; padding: 5px 17px; font-size: 13px; }
#control-ratio, #control-output { display: none !important; }
.inspiration-jump { border: 1px solid var(--line); border-radius: 24px; min-height: 40px; padding: 5px 17px; font-size: 13px; }
.inspiration-jump span { margin-left: 8px; }
.creation-mode { font-size: 12px; color: var(--muted); padding-left: 18px; border-left: 1px solid var(--line); }
.inspiration-selection { display: flex; align-items: center; gap: 12px; margin: -10px 0 24px; color: var(--muted); font-size: 12px; }
.inspiration-selection img { width: 34px; height: 44px; object-fit: cover; }
.inspiration-selection button { text-decoration: underline; font-size: 12px; }
.discovery { display: grid; grid-template-columns: .95fr 1.05fr; border-top: 1px solid #918d84; margin-top: 24px; }
.discovery-column { min-width: 0; padding: 23px 0 25px; }
.skill-column { padding-right: 28px; }
.inspiration-column { padding-left: 28px; border-left: 1px solid var(--line); }
.discovery-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.discovery-head h2 { font: 400 25px/1.4 var(--display); letter-spacing: -.02em; }
.discovery-head > span { font-size: 11px; color: var(--muted); }
.discovery-head a { margin-left: auto; font-size: 12px; color: var(--ink); text-decoration: none; padding: 8px 0; }
.discovery a:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog-filters { display: flex; gap: 7px; flex-wrap: wrap; min-height: 40px; margin-bottom: 14px; }
.catalog-filters button { border: 1px solid var(--line); border-radius: 20px; min-height: 32px; padding: 3px 16px; font-size: 11px; }
.catalog-filters button[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.skill-card { min-width: 0; padding: 0; border: 0; display: block; }
.skill-card.featured { display: block; padding: 0; }
.catalog-image { display: block; padding: 0; width: 100%; border-radius: 2px; overflow: hidden; background: #e7e3db; }
.catalog-image:hover { background: #e7e3db; }
.catalog-image img { display: block; width: 100%; height: 82px; object-fit: cover; transition: transform .2s ease; }
.catalog-image:hover img { transform: scale(1.025); }
.featured .catalog-image img { height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.skill-card h3, .inspiration-card h3 { font-size: 15px; font-weight: 500; margin: 0 0 4px; }
.featured h3 { font: 500 14px/1.5 var(--sans); }
.skill-copy { min-width: 0; }
.skill-copy { padding-top: 10px; }
.skill-copy p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.catalog-use { padding: 3px 0; min-height: 32px; color: var(--accent); font-size: 12px; text-decoration: underline; text-underline-offset: 5px; border-radius: 0; }
.catalog-use:hover { background: transparent; color: #8e261e; }
.catalog-use[aria-pressed=true] { text-decoration: none; font-weight: 600; }
.catalog-info { padding: 3px 0; min-height: 32px; font-size: 11px; color: var(--muted); }
.free-creation { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 16px; border: 1px solid var(--line); background: transparent; margin-top: 17px; }
.free-creation strong { font-size: 13px; font-weight: 500; }
.free-creation small { font-size: 11px; color: var(--muted); margin-left: 12px; }
.inspiration-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 12px; align-content: start; }
.inspiration-card { min-width: 0; }
.inspiration-card .catalog-image img { height: auto; aspect-ratio: auto; object-fit: contain; }
.inspiration-card h3 { margin-top: 10px; font-size: 13px; }
.inspiration-card p { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-empty, .gallery-status { color: var(--muted); font-size: 13px; }
.gallery-status { grid-column: 1 / -1; }
.gallery-status:empty { display: none; }
.month-overview { display: flex; gap: 25px; align-items: center; border-top: 1px solid #918d84; border-bottom: 1px solid var(--line); padding: 22px 0; }
.month-overview h2 { font: 400 27px/1.4 var(--display); white-space: nowrap; }
.month-overview > div > span { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.month-highlights { flex: 1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.month-highlights button { border-left: 1px solid var(--line); border-radius: 0; padding: 3px 10px; font-size: 12px; }
.month-highlights small { display: block; font-size: 11px; color: var(--muted); }
.month-overview > a { font-size: 12px; color: var(--ink); text-decoration: none; }
body:not(.chat-mode) .calendar { margin-top: 35px; scroll-margin-top: 25px; }
body:not(.chat-mode) .calendar-head .calendar-month { font-size: 42px; }
body:not(.chat-mode) .calendar-month .month-unit { font-size: 23px; }
body:not(.chat-mode) .calendar-year { font-size: 23px; }
body:not(.chat-mode) .day { min-height: 90px; }
.chat-mode .discovery, .chat-mode .month-overview { display: none; }
.chat-mode .inspiration-jump { display: none; }
.chat-mode .inspiration-selection { max-width: 800px; margin: 8px auto; }
.chat-mode .creation-mode { margin-right: auto; }
.catalog-detail { width: min(780px,calc(100% - 32px)); max-height: 88dvh; padding: 30px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-dialog); overflow: auto; }
.catalog-detail::backdrop { background: var(--backdrop); backdrop-filter: blur(3px); }
.catalog-detail-close { position: sticky; top: 0; float: right; font-size: 25px; width: 44px; background: var(--paper); }
.catalog-detail img { width: 100%; max-height: 420px; object-fit: contain; margin: 12px 0; }
.catalog-detail h2 { font: 400 26px/1.5 var(--display); margin: 8px 0; }
.catalog-detail p { font-size: 14px; line-height: 1.9; }
.catalog-detail .catalog-use { font-size: 14px; padding: 12px 0; }
.catalog-detail details { margin-top: 18px; font-size: 12px; }
.catalog-detail summary { cursor: pointer; padding: 12px 0; }
.catalog-detail pre { white-space: pre-wrap; font: 12px/1.9 var(--sans); }
.gallery-page .intro, .gallery-page #composer, .gallery-page #calendar, .gallery-page .month-overview, .gallery-page .inspiration-selection { display: none !important; }
.gallery-page .discovery { display: block; border-top: 0; margin-top: 0; }
.gallery-page[data-gallery-page=skills] .inspiration-column, .gallery-page[data-gallery-page=inspiration] .skill-column { display: none; }
.gallery-page .discovery-column { border: 0; padding: 0; }
.gallery-page .skill-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.gallery-page .skill-card { display: block; padding-top: 0; }
.gallery-page .skill-card .catalog-image img { height: auto; aspect-ratio: 3 / 2; }
.gallery-page .skill-copy { padding-top: 12px; }
.gallery-page .inspiration-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
.gallery-page .inspiration-card .catalog-image img { aspect-ratio: auto; }
.gallery-page .discovery-head a { display: none; }
.gallery-back { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 13px; text-decoration: none; }
.proposal-settings { padding: 16px 0; }
.proposal-settings label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.proposal-settings select { padding: 9px; min-height: 44px; max-width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); font: inherit; }
.proposal-setting-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.proposal-ratios { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.proposal-ratios button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 66px; min-height: 73px; padding: 8px; font-size: 11px; border: 1px solid var(--line); background: transparent; }
.ratio-shape { display: block; border: 1px solid currentColor; flex: none; }
.proposal-ratios button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); background: #b8322909; }
.proposal-save { border: 1px solid var(--ink); border-radius: 0; font-size: 12px; }
.proposal-error { color: #93251e; font-size: 12px; }
.proposal-note { font-size: 12px; color: var(--muted); margin: 9px 0; }
@media(max-width:1000px) {
  .discovery { grid-template-columns: 1fr 1fr; }
  .inspiration-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .skill-column { padding-right: 20px; }
  .inspiration-column { padding-left: 20px; }
  .discovery-head { gap: 6px 12px; }
  .discovery-head > span { display: none; }
}
@media(max-width:600px) {
  body:not(.chat-mode) header,body:not(.chat-mode) main { width: calc(100% - 36px); }
  body:not(.chat-mode) header { min-height: 64px; height: auto; }
  .brand-lockup { gap: 6px; }
  .brand-lockup .brand { width: 48px; height: 48px; }
  .brand-english { display: none; }
  .brand-definition { font-size: 11px; }
  body:not(.chat-mode) main { margin-top: 26px; }
  body:not(.chat-mode) h1 { font-size: clamp(30px,8.4vw,46px); letter-spacing: -.04em; white-space: nowrap; }
  body:not(.chat-mode) .composer { margin-bottom: 18px; }
  body:not(.chat-mode) .model-toolbar { flex-wrap: wrap; gap: 7px; }
  body:not(.chat-mode) .toolbar-control > summary,.inspiration-jump { padding: 6px 12px; min-height: 44px; font-size: 12px; }
  .creation-mode { padding-left: 9px; font-size: 10px; max-width: 90px; }
  .discovery { display: block; }
  .skill-column,.inspiration-column { padding: 20px 0; border: 0; }
  .inspiration-column { border-top: 1px solid var(--line); }
  .discovery-head h2 { font-size: 26px; }
  .catalog-filters button { min-height: 44px; }
  .catalog-use,.catalog-info { min-height: 44px; }
  .inspiration-gallery { gap: 24px 12px; }
  .month-overview { flex-wrap: wrap; gap: 18px; }
  .month-highlights { flex-basis: 100%; order: 2; grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 12px; }
  .month-overview > a { margin-left: auto; font-size: 11px; }
  .month-overview h2 { font-size: 24px; }
  body:not(.chat-mode) .days { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  body:not(.chat-mode) .day.empty { display: block; }
  body:not(.chat-mode) .day { min-height: 88px; }
  body:not(.chat-mode) .day.empty { border-right: 1px solid var(--line); }
  .gallery-page .skill-gallery,.gallery-page .inspiration-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
  .gallery-page .skill-actions { flex-wrap: wrap; gap: 4px 10px; }
  .catalog-detail { padding: 20px; }
  .proposal-setting-row { grid-template-columns: 1fr 1fr; }
  .proposal-setting-row label:first-child { grid-column: 1 / -1; }
  .proposal-ratios button { min-width: 60px; }
  .chat-mode .creation-mode { display: none; }
}

@media (max-width: 400px) {
  header:has(.brand-definition) { gap: 6px; }
  header:has(.brand-definition) .header-actions > button { padding-inline: 6px; }
}

@media (max-width: 375px) {
  .brand-lockup:has(.brand-definition) { flex-direction: column; gap: 0; }
  .brand-lockup:has(.brand-definition) .brand { width: 36px; height: 36px; }
  .brand-definition { letter-spacing: 0; }
}

/* Same bounded scrolling and preview action structure as E-C's home catalog. */
body:not(.gallery-page) .skill-gallery, body:not(.gallery-page) .inspiration-gallery { height: 320px; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; padding: 0 8px 12px 0; align-content: start; }
.skill-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; }
.free-creation { grid-column: 1 / -1; margin-top: 0; }
.skill-gallery, .inspiration-gallery { scrollbar-width: thin; scrollbar-color: #8c8a7f #e7e3db; }
.skill-gallery::-webkit-scrollbar, .inspiration-gallery::-webkit-scrollbar { width: 8px; }
.skill-gallery::-webkit-scrollbar-thumb, .inspiration-gallery::-webkit-scrollbar-thumb { background: #8c8a7f; border-radius: 6px; }
.skill-gallery::-webkit-scrollbar-track, .inspiration-gallery::-webkit-scrollbar-track { background: #e7e3db; border-radius: 6px; }
.catalog-preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #e7e3db; }
.catalog-preview .catalog-image { height: 100%; }
.catalog-preview .catalog-image img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.catalog-preview:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
@media(max-width:600px) {
  body:not(.chat-mode) header { min-height: 64px; }
  body:not(.chat-mode) .intro { padding-top: 0; margin-bottom: 22px; }
  body:not(.chat-mode) h1 { display: flex; gap: 7px; flex-direction: column; align-items: flex-start; }
  .headline-lead { font-size: 27px; }
  .headline-main { font-size: 45px; margin-left: 30px; }
  body:not(.gallery-page) .skill-gallery, body:not(.gallery-page) .inspiration-gallery { height: 285px; }
  .skill-actions { margin-top: 0; }
}

/* Calendar and Skill are the two homepage work areas. */
.home-workbench { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 30px; border-top: 1px solid #918d84; padding-top: 22px; align-items: start; }
body:not(.chat-mode) .home-workbench .calendar { margin-top: 0; min-width: 0; }
.home-workbench .discovery { border: 0; margin: 0; min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
body:not(.chat-mode) .home-workbench .discovery { display: block; }
.home-workbench .skill-column { padding: 0; }
.home-workbench .discovery-head { gap: 6px; margin-bottom: 10px; }
.home-workbench .discovery-head h2 { font-size: 23px; }
.home-workbench .discovery-head > span { display: none; }
.home-workbench .catalog-filters { margin-bottom: 10px; min-height: 32px; }
.style-gallery-head { align-items: center; }
body:not(.gallery-page) .style-gallery-head h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.style-gallery-head .catalog-filters { margin-bottom: 0; min-height: 32px; }
.style-gallery-head a.gallery-expand { display: grid; place-items: center; flex: 0 0 36px; height: 36px; padding: 0; border-radius: 50%; }
.gallery-expand:hover { background: var(--surface); color: var(--accent); }
.gallery-page .style-gallery-head h2 { flex-basis: 100%; }
.gallery-page .style-gallery-head a.gallery-expand { display: none; }
@media(max-width:600px) { .style-gallery-head a.gallery-expand { flex-basis: 44px; height: 44px; } }
.skill-card.is-selected .catalog-preview { outline: 2px solid var(--accent); outline-offset: -2px; }
.skill-card-mobile-cta { display: none; margin-top: 6px; padding: 5px 10px; min-height: 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 12px; }
.skill-card.is-selected .skill-card-mobile-cta { border-color: var(--accent); color: var(--accent); background: var(--wash); }
@media (max-width: 700px), (hover: none) { .skill-card-mobile-cta { display: inline-flex; align-items: center; } }
.skill-card.is-selected .system-direction { border-color: var(--accent); }
body:not(.gallery-page) .home-workbench .skill-gallery { grid-template-columns: 1fr; height: 420px; gap: 16px; }
body:not(.chat-mode) .home-workbench .calendar-head .calendar-month { font-size: 28px; }
body:not(.chat-mode) .home-workbench .calendar-year { font-size: 15px; }
body:not(.chat-mode) .home-workbench .calendar-head { margin-bottom: 6px; }
body:not(.chat-mode) .home-workbench .day { min-height: 54px; padding: 3px 4px; }
.home-workbench .festival-choice { font-size: 11px; padding: 1px 2px; min-height: 20px; line-height: 1.45; }
.home-workbench .date-number { font-size: 16px; height: 24px; min-height: 24px; width: 28px; padding: 0 3px; }
body:not(.chat-mode) .home-workbench .number { font-size: 17px; }
.home-workbench .day-heading { margin-bottom: 1px; }
body:not(.chat-mode) .home-workbench .weekdays span { padding: 2px 6px 5px; }
body:not(.chat-mode) .home-workbench .calendar-foot { margin-top: 6px; }
body:not(.chat-mode) .home-workbench .calendar-foot button { padding: 4px 12px; }
.skill-hover { position: fixed; z-index: 120; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.skill-hover h3 { font: 500 17px/1.5 var(--sans); margin: 0 0 12px; }
.skill-hover img { width: 100%; max-height: 190px; object-fit: contain; }
.skill-hover p { font-size: 13px; line-height: 1.8; margin: 12px 0; }
.skill-hover > div { display: flex; justify-content: space-between; gap: 16px; }
.chat-mode .home-workbench { display: contents; }
.gallery-page .home-workbench { display: block; border: 0; padding: 0; }
.gallery-page .home-workbench .discovery { border: 0; padding: 0; }
.gallery-page .home-workbench .skill-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); height: auto; }
@media(max-width:1000px) and (min-width:701px) {
 .home-workbench { grid-template-columns: minmax(0,1fr) 235px; gap: 18px; }
 .home-workbench .discovery { padding-left: 16px; }
 .home-workbench .calendar-count { padding-left: 8px; font-size: 10px; }
}
@media(max-width:700px) {
 .home-workbench { grid-template-columns: minmax(0,1fr); gap: 26px; padding-top: 18px; }
 .home-workbench .discovery { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
 body:not(.gallery-page) .home-workbench .skill-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); height: 300px; }
 body:not(.chat-mode) .home-workbench .day { min-height: 64px; }
 .home-workbench .festival-choice { min-height: 32px; font-size: 12px; }
 .home-workbench .date-number { height: 32px; min-height: 32px; width: 32px; }
 .gallery-page .home-workbench .skill-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.system-direction { padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.system-direction > span { font-size: 11px; color: var(--accent); }
.system-direction h3 { font: 400 21px/1.5 var(--display); margin: 10px 0; }
.system-direction + .skill-copy > h3 { display: none; }

/* One compact input surface, with upload and visual direction inside. */
body:not(.chat-mode) .intro { margin-bottom:18px; padding-bottom:0; }
.composer,body:not(.chat-mode) .composer,.chat-mode .composer { padding:0; border:0; gap:8px; }
body:not(.chat-mode) .composer { margin-bottom:20px; }
.composer-input { position:relative; display:grid; grid-template-columns:40px 40px minmax(0,1fr) auto 40px; align-items:center; column-gap:4px; padding:8px 10px; border:1px solid var(--line-strong); border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow-card); }
.composer:has(textarea:focus-visible),body:not(.chat-mode) .composer:has(textarea:focus-visible) { outline:none; }
.composer-input:has(textarea:focus-visible) { outline:2px solid var(--accent); outline-offset:3px; }
.composer-input #message-input { grid-column:3; grid-row:1; height:36px; min-height:36px; padding:3px 6px; border:0; border-radius:0; outline:none; background:transparent; font-size:16px; line-height:1.7; }
.composer-input #model-toolbar { display:contents; }
.composer-input #control-model { grid-column:1 / -1; grid-row:2; width:fit-content; max-width:100%; margin-top:4px; }
.composer-input #control-model > summary { min-height:32px; padding:3px 10px; border:1px solid var(--line); border-radius:16px; font-size:12px; }
.composer-input #control-model svg { width:16px; height:16px; }
.composer-input #composer-add > summary { grid-column:1; grid-row:1; width:40px; height:40px; min-height:40px; padding:0; border:0; border-radius:8px; font-size:24px; }
.composer-input #control-skill { grid-column:2; grid-row:1; }
.composer-input #control-skill > summary { display:flex; justify-content:center; width:40px; height:40px; min-height:40px; padding:8px; border:0; border-radius:8px; box-shadow:none; }
.composer-input #control-skill.has-selection > summary { color:var(--accent); background:#b832290b; box-shadow:none; }
.composer-input #skill-trigger-label,.composer-input #creation-mode { display:none; }
.composer-input #calendar-toggle { grid-column:4; grid-row:1; margin:0; }
#composer .composer-input .send { position:static; grid-column:5; grid-row:1; width:40px; height:40px; min-height:40px; margin:0; border-radius:50%; }
.composer-input #reference-previews { grid-column:1 / -1; grid-row:2; padding:10px 4px 2px; }
body:not(.chat-mode) .composer-input .toolbar-panel { top:calc(100% + 8px); bottom:auto; }
@media(max-width:640px) {
  body:not(.chat-mode) .intro { margin-bottom:14px; }
  .composer-input { grid-template-columns:36px 36px minmax(0,1fr) auto 40px; column-gap:3px; padding:8px; }
  .composer-input #composer-add > summary,.composer-input #control-skill > summary { width:36px; height:40px; min-height:40px; }
  .composer-input #control-skill > summary { padding:6px; }
  .composer-input #message-input { font-size:16px; padding:3px 4px; }
  #composer .composer-input .send { width:40px; height:40px; min-height:40px; }
}

/* Direct month selection stays within the calendar heading. */
.calendar-head { position:relative; }
#month-picker-trigger { display:inline-flex; align-items:baseline; gap:4px; min-height:44px; padding:0; border:0; border-radius:4px; color:inherit; background:transparent; }
#month-picker-trigger:hover,#month-picker-trigger[aria-expanded="true"] { color:var(--accent); }
.month-picker-chevron { align-self:center; width:14px; height:14px; margin-left:3px; fill:none; stroke:currentColor; stroke-width:1.5; }
.month-picker { position:absolute; top:calc(100% + 4px); left:0; z-index:30; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; width:244px; max-width:100%; padding:10px; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 8px 24px #29251f14; }
.month-picker[hidden] { display:none; }
.month-picker button { min-height:44px; padding:8px; border:0; border-radius:7px; background:transparent; font:400 14px/1.4 var(--sans); }
.month-picker button:hover { background:#b832290b; color:var(--accent); }
.month-picker button[aria-pressed="true"] { background:var(--accent); color:#fff; }

/* Mobile names the next holidays; the month grid remains an explicit view. */
.month-agenda,.agenda-more,.calendar-view-toggle,.calendar-dot { display:none; }
@media(max-width:700px) {
  body:not(.gallery-page):not(.chat-mode) .home-workbench #calendar { padding-top:0; border-top:0; }
  #calendar .calendar-head { gap:8px; margin-bottom:6px; flex-wrap:wrap; }
  #calendar .calendar-head h2 { flex-wrap:nowrap; gap:8px; max-width:none; margin-right:auto; }
  #calendar .calendar-count { display:none; }
  #calendar .calendar-head .calendar-month { font-size:28px; }
  #calendar .calendar-year { font-size:12px; }
  #calendar .calendar-month .month-unit { font-size:18px; }
  #calendar .month-nav { gap:4px; }
  #calendar .month-nav button { width:36px; min-width:36px; min-height:44px; height:44px; border:0; }
  #calendar .calendar-view-toggle { display:block; padding:4px 0; min-height:44px; font-size:12px; color:var(--muted); }
  #calendar .weekdays,#calendar .days { display:none; }
  #calendar .month-agenda { display:block; }
  .agenda-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:16px; }
  .agenda-item { display:flex; align-items:center; gap:8px; width:100%; min-width:0; min-height:44px; padding:6px 0; border:0; border-top:1px solid var(--line); border-radius:0; text-align:left; line-height:1.45; }
  .agenda-date { flex:0 0 29px; white-space:nowrap; font:400 18px/1.3 var(--display); color:var(--muted); }
  .agenda-date small { font:10px var(--sans); margin-left:2px; }
  .agenda-name { min-width:0; font-size:12px; overflow-wrap:anywhere; }
  .agenda-item.is-today .agenda-date { color:var(--accent); }
  .agenda-item:hover { color:var(--accent); }
  #calendar .agenda-more:not([hidden]) { display:block; width:100%; min-height:44px; padding:9px 0; border:0; border-top:1px solid var(--line); font-size:12px; color:var(--accent); text-align:left; }
  #calendar .calendar-foot > span { display:none; }
  #calendar .calendar-foot { justify-content:flex-end; }
  #calendar.mobile-month-grid .month-agenda,#calendar.mobile-month-grid .agenda-more { display:none; }
  #calendar.mobile-month-grid .weekdays,#calendar.mobile-month-grid .days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
  #calendar.mobile-month-grid .day { display:block; min-height:48px; padding:3px 1px; border-right:1px solid var(--line); }
  #calendar.mobile-month-grid .weekday { display:none; }
  #calendar.mobile-month-grid .festival-choice { display:block; font-size:11px; padding:3px 1px; overflow-wrap:anywhere; }
}

/* Pair the homepage title with the composer, leaving the calendar its own full row. */
@media (min-width: 1001px) {
  body:not(.chat-mode):not(.gallery-page) main {
    display: grid;
    grid-template-columns: minmax(300px, .85fr) minmax(0, 1.65fr);
    column-gap: clamp(36px, 5vw, 80px);
    align-items: start;
  }
  body:not(.chat-mode):not(.gallery-page) .intro {
    grid-column: 1; grid-row: 2 / 4;
    display: block; align-self: start; margin: 0 0 24px; padding: 0;
  }
  body:not(.chat-mode):not(.gallery-page) .brand-context { grid-column: 2; grid-row: 1; margin: 0; }
  body:not(.chat-mode):not(.gallery-page) .composer { grid-column: 2; grid-row: 2; width: 100%; margin: 0 0 26px; min-width: 0; }
  body:not(.chat-mode):not(.gallery-page) .home-workbench,
  body:not(.chat-mode):not(.gallery-page) .fine-print { grid-column: 1 / -1; }
  body:not(.chat-mode):not(.gallery-page) .home-workbench { grid-row: 4; }
  body:not(.chat-mode):not(.gallery-page) .fine-print { grid-row: 5; }
}
@media (min-width: 1001px) and (max-height: 800px) {
  body:not(.chat-mode):not(.gallery-page) main { margin-top: 16px; }
  body:not(.chat-mode):not(.gallery-page) .composer { margin-bottom: 18px; }
  body:not(.chat-mode):not(.gallery-page) .home-workbench { padding-top: 14px; }
}

/* Homepage title artwork: inlined in index.html from assets/changxi-title-blade-v5.webp (transparent; source and blade_tiqiankaichang_v5.py in output/2026-11-26-首页标题改版/gen).
   让想法 barely printed (pixel-exact ai3.png), 提前 half-inked, 开场 solid black; a knife cut slices 提前开场, red in the slit. */
body:not(.chat-mode):not(.gallery-page) h1.headline-lettering {
  display: block; width: auto; height: 140px; margin: 0; line-height: 1.2; font-size: 28px;
}
.headline-lettering img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: left top; }
@media (max-width: 1000px) {
  body:not(.chat-mode):not(.gallery-page) h1.headline-lettering { height: 128px; }
}

@media(max-width:700px) {
  body:not(.chat-mode) header { width: 100%; height: 60px; padding: 0 14px; gap: 8px; }
  .brand-lockup { gap: 8px; flex: none; }
  .brand-lockup .brand { width: 42px; height: 42px; }
  .brand-lockup .brand-caption { display: none; }
  body:not(.chat-mode):not(.gallery-page) main { margin-top:12px; }
  body:not(.chat-mode):not(.gallery-page) .intro { margin-bottom:12px; padding:0; }
  body:not(.chat-mode):not(.gallery-page) h1.headline-lettering { height:96px; }
  body:not(.chat-mode):not(.gallery-page) .composer { margin-bottom:8px; }
  body:not(.chat-mode):not(.gallery-page) .creation-tools { margin-bottom:10px; }
  body:not(.chat-mode):not(.gallery-page) .home-workbench { padding-top:10px; }
}
