:root {
  color-scheme: light;
  --ink: #17231c;
  --muted: #536055;
  --paper: #f3f6ed;
  --surface: #ffffff;
  --line: #d8e2d5;
  --pine: #163227;
  --accent: #cae58b;
  --leaf: #285f43;
  --radius: 18px;
  --wrap: 1180px;
  --focus: #2453dd;
  --warning: #6b471b;
  --danger: #a3342f;
  font-family: "Instrument Sans", "Inter", "PingFang SC", "Microsoft Yahei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
a { color: #24573c; text-underline-offset: .22em; }
a:hover { color: #102d1d; }
a, button { touch-action: manipulation; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
button[hidden], [hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { font-weight: 700; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.15rem, 4.15vw, 4.1rem); line-height: 1.13; letter-spacing: -.045em; }
h2 { font-size: clamp(1.3rem, 2.15vw, 1.82rem); line-height: 1.3; letter-spacing: -.024em; }
h3 { font-size: 1.17rem; line-height: 1.42; }
p { overflow-wrap: anywhere; }
small { color: var(--muted); }
ul, ol { padding-inline-start: 1.2rem; margin-block: .3rem 0; }
dl, dd, figure { margin: 0; }
select, input, textarea { min-width: 0; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0; min-width: 0; padding: .8rem 1rem 1rem; }
legend { padding: 0 .35rem; font-weight: 650; }
summary { cursor: pointer; font-weight: 650; }
video { min-height: 180px; margin: 1rem auto 0; max-height: 580px; border-radius: 12px; background: #131a16; }
.narrow { max-width: 660px; margin-inline: auto; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -150px; left: 12px; padding: .72rem 1rem; color: white; background: var(--pine); z-index: 8; }
.skip:focus { top: 12px; }

.site-header { background: #fbfcf8; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.15rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font-size: 1.28rem; font-weight: 750; white-space: nowrap; }
.brand small { display: block; color: var(--muted); font-size: .72rem; font-weight: 570; letter-spacing: .03em; line-height: 1.18; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 37px; height: 37px; color: var(--accent); border-radius: 11px; background: var(--pine); font-size: 1.2rem; line-height: 1; }
.primary-nav, .account-nav, .footer-inner nav { display: flex; align-items: center; gap: .65rem; }
.primary-nav a, .account-nav a, .account-nav button { border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .45rem .62rem; color: var(--ink); text-decoration: none; font-size: .91rem; white-space: nowrap; }
.primary-nav a[aria-current="page"] { color: #185536; background: #eaf3df; border-radius: 8px; font-weight: 720; }
.account-nav .account-link, .account-nav .ops-link { border: 1px solid var(--line); border-radius: 10px; }
.account-nav a:hover, .primary-nav a:hover, .account-nav button:hover { text-decoration: underline; }
#main-content { min-height: min(74vh, 750px); }
#main-content:focus { outline: none; }
.view, .screen-message { padding-block: 2rem 4.5rem; }

.hero { display: grid; grid-template-columns: 1fr .79fr; gap: clamp(1rem, 5vw, 5rem); align-items: center; padding: clamp(2rem, 6vw, 5.2rem); position: relative; background: #153427; color: #f7f8f0; border-radius: 20px; overflow: hidden; }
.hero::before { position: absolute; content: ""; inset: 0; background: radial-gradient(ellipse at 95% 0%, #36533a 0%, transparent 57%), linear-gradient(122deg, transparent 52%, #cce38a22 100%); pointer-events: none; }
.hero-copy, .hero-board { position: relative; }
.eyebrow { margin-bottom: .62rem; color: #426a4c; font-size: .84rem; font-weight: 650; letter-spacing: .085em; }
.hero .eyebrow { color: #d4e4c1; }
.hero h1 { line-height: 1.1; font-size: clamp(2.25rem, 5.1vw, 4.5rem); }
.hero-lead { max-width: 37ch; margin-block: 1.25rem 1.8rem; color: #e0e9dd; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero-board { align-self: stretch; display: grid; place-content: center stretch; }
.board-inner { background: #e9f0e3; color: var(--ink); border-radius: 16px; border: 1px solid #c9d8c7; padding: 1.05rem; box-shadow: 0 30px 60px #081d16aa; }
.board-top { display: flex; justify-content: space-between; align-items: center; padding: .35rem .35rem .85rem; gap: 1rem; }
.board-top span { font-size: 1.6rem; color: #4c6e3f; line-height: 1; }
.board-top h2 { font-size: 1.06rem; }
.board-inner > a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .65rem; align-items: center; border: 1px solid #d1ded0; background: #fcfdf9; padding: .8rem .65rem; border-radius: 10px; text-decoration: none; }
.board-inner > a + a { margin-top: .45rem; }
.board-inner > a:hover { background: #f0f8e9; }
.board-inner strong, .board-inner small { display: block; }
.board-inner small { margin-top: .1rem; font-size: .72rem; line-height: 1.35; }
.board-code { display: inline-grid; place-content: center; padding: .28rem .3rem; min-height: 36px; border-radius: 7px; background: #dceacb; color: #2a5340; font-size: .75rem; white-space: nowrap; font-weight: 700; }

.page-title { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; padding: 1.1rem 0 1.45rem; }
.page-title .lede { margin-top: .7rem; color: var(--muted); max-width: 62ch; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.section-heading a { white-space: nowrap; }
.journeys { margin-top: 2.4rem; }
.journeys > .section-heading, .journeys > h2 { margin-bottom: 1rem; }
.grid-3, .grid-2, .artworks { display: grid; gap: .85rem; }
.grid-3, .artworks { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.panel { min-width: 0; padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h2 + p, .panel h3 + p { margin-top: .48rem; }
.panel > p + p { margin-top: .5rem; }
.panel > h2 + .muted { margin-top: .55rem; }
.journey { display: flex; flex-direction: column; align-items: start; }
.journey > h3, .journey > h2 { margin: .55rem 0 .3rem; }
.journey > p { color: var(--muted); margin-bottom: .9rem; }
.journey > a { margin-top: auto; font-size: .9rem; font-weight: 650; }
.section-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: 1.3rem; border: 1px solid var(--line); background: #e7eee1; border-radius: 14px; }
.section-banner p { margin-top: .25rem; color: var(--muted); }

.button-row, .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.button, .text-button { min-height: 44px; border-radius: 9px; border: 1px solid transparent; background: none; text-align: center; color: currentColor; font-weight: 650; }
.button { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; padding: .55rem .88rem; text-decoration: none; font-size: .91rem; }
.text-button { padding: .4rem .5rem; text-decoration: underline; text-underline-offset: .2em; }
.button-primary { background: #27553d; color: #fff; border-color: #27553d; }
.button-primary:hover { background: #1c4732; color: #fff; }
.hero .button-primary { color: #1e2e21; border-color: var(--accent); background: var(--accent); }
.hero .button-primary:hover { background: #d9eda8; color: #1e2e21; }
.button-light { color: #f0f7ed; border-color: #90a993; background: #ffffff09; }
.button-light:hover { color: #fff; background: #ffffff14; }
.button-secondary { background: #fff; border-color: #a8beb0; color: #254b37; }
.button-secondary:hover { background: #edf6e8; }
.tag { display: inline-flex; align-items: center; padding: .24rem .56rem; background: #e7f0e1; color: #274c36; border-radius: 6px; font-size: .82rem; line-height: 1.45; font-weight: 670; white-space: nowrap; }
.tag-wait { background: #f6ebd5; color: var(--warning); }
.tag-ok { background: #daedcf; color: #235533; }

.split-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(245px,1fr); gap: .9rem; align-items: start; }
.split-layout > *, .feature-list > *, .field-2 > * { min-width: 0; }
.feature-list { display: grid; gap: .8rem; align-content: start; }
.feature-list > .button { justify-self: start; }
.summary { position: sticky; top: 1rem; }
.summary .button { margin-top: .6rem; }
.summary > :last-child { margin-bottom: 0; }
.spec-list { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: .35rem .8rem; margin: .6rem 0 .7rem; }
.spec-list dt { color: var(--muted); }
.spec-list dd { font-weight: 650; overflow-wrap: anywhere; }
.bank-credentials { padding-block: .55rem; border-block: 1px solid var(--line); }
.muted { color: var(--muted); }
.empty { padding: clamp(1.3rem, 4vw, 2.7rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.empty h2 { margin-bottom: .38rem; }
.empty p { color: var(--muted); margin-bottom: .7rem; }
.empty a + a { margin-left: .5rem; }
.notice { margin-block: .6rem; padding: .66rem .85rem; border-radius: 9px; background: #e9f1e6; color: #2d4f37; }
.notice-wait { color: var(--warning); background: #faf0e0; }
.notice-ok { color: #235533; background: #e5f4dc; }
.route-actions, .after-panel { margin-top: 1rem; }
.artwork-filter { margin-bottom: .75rem; }
.artwork-filter .muted { margin-top: .4rem; }
.filters, .field-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .55rem; }
.filters { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: .55rem; }
.artwork { padding: 0; overflow: hidden; }
.artwork > div:not(.artwork-no-image) { padding: .8rem; }
.artwork img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.artwork-no-image { display: grid; place-items: center; aspect-ratio: 4 / 5; background: #e9f0e4; color: var(--muted); text-align: center; padding: .55rem; }
.artwork p { margin-top: .28rem; font-size: .86rem; }
.artwork .button, .artwork .tag { margin-top: .5rem; }
.pagination { margin-top: .8rem; justify-content: end; }

.account-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px, .8fr); gap: clamp(1rem,5vw,3.8rem); align-items: stretch; }
.account-story { align-content: center; min-height: 360px; padding: clamp(1.2rem, 5vw, 3rem); background: #e0ecd8; border-radius: var(--radius); }
.account-story p:not(.eyebrow) { margin-top: .8rem; color: #3e5844; }
.form-panel > h2 { margin-bottom: .25rem; }
form { display: grid; gap: .8rem; justify-items: stretch; }
form > .button, form > .text-button { justify-self: start; }
form label, .filters label { display: grid; gap: .25rem; font-size: .91rem; font-weight: 650; }
.form-panel label span { font-weight: 400; }
label input, label textarea, label select { background: #fff; border: 1px solid #aabcad; border-radius: 8px; color: var(--ink); min-height: 43px; padding: .52rem .67rem; width: 100%; }
label textarea { resize: vertical; }
label input[type="file"] { white-space: normal; }
label.checkline { display: flex; align-items: start; gap: .55rem; font-weight: 470; }
.checkline input[type="checkbox"] { accent-color: #2a543e; align-self: start; flex: 0 0 auto; width: 1.1rem; height: 1.1rem; min-height: 0; margin: .23rem 0 0; }
.form-inner, .form-panel > form, .order-line a { margin-top: .7rem; }
.form-error { font-size: .88rem; font-weight: 600; color: var(--danger); }
.terms-list { list-style-type: square; color: var(--muted); font-size: .88rem; }

.checkout-line { display: flex; justify-content: space-between; gap: .8rem; align-items: center; }
.checkout-line h2, .order-line h2 { font-size: 1.24rem; margin-top: .18rem; }
.checkout-line .form-error { margin-top: .5rem; }
.line-actions { display: grid; justify-items: end; gap: .25rem; white-space: nowrap; }
.line-actions > strong { font-size: 1.17rem; }
.line-actions > div { display: flex; align-items: center; gap: .3rem; }
.line-actions .text-button { color: #6a4a2f; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .86rem; color: var(--muted); }
.messages article { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.messages article + article { border-top: 1px solid var(--line); }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.material-page { display: grid; margin-bottom: .55rem; gap: .3rem; padding: .55rem; border: 1px solid var(--line); border-radius: 8px; }
.material-summary li, .timeline li { margin-top: .45rem; }
.timeline li { display: flex; align-items: start; gap: .55rem; }
.timeline li .text-button { color: #284e38; }
.seller-events { padding-left: 0; list-style: none; }
.seller-events li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.timecodes, .file-links { margin-top: .65rem; }
.file-links li { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .4rem; }
.file-links { padding: 0; list-style: none; }
.announcement { display: none; position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: #1c3829; color: #fff; padding: .75rem 1rem; min-width: min(220px,90vw); max-width: min(640px,90vw); z-index: 9; border-radius: 11px; text-align: center; box-shadow: 0 15px 24px #0e201533; }
.announcement.is-visible { display: block; }

#site-footer { background: #fbfcf8; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 1rem; color: var(--muted); font-size: .84rem; }
.footer-inner nav { flex-wrap: wrap; gap: .8rem; }
.footer-inner a { padding-block: .5rem; text-decoration: none; }

@media (max-width: 870px) {
  .wrap { width: min(var(--wrap), calc(100% - 36px)); }
  .header-inner { flex-wrap: wrap; gap: .15rem .65rem; padding-block: .48rem; }
  .brand { order: 0; }
  .account-nav { order: 1; }
  .primary-nav { order: 2; width: 100%; }
  .hero { padding: clamp(1.3rem,4vw,2.2rem); gap: 1rem; }
  .artworks { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 610px) {
  .wrap { width: min(var(--wrap), calc(100% - 24px)); }
  .view { padding-block: 1.25rem 2.7rem; }
  .header-inner { gap: 0 .3rem; }
  .account-nav { gap: .04rem; }
  .brand { font-size: 1.1rem; gap: .45rem; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .brand small { display: none; }
  .primary-nav a, .account-nav a, .account-nav button { padding-inline: .45rem; font-size: .8rem; }
  .primary-nav { gap: .22rem; }
  .hero, .grid-3, .split-layout, .account-layout, .grid-2 { grid-template-columns: minmax(0,1fr); }
  .hero-copy { padding-block: .45rem; }
  .hero-lead { margin-block: .7rem .85rem; }
  .board-inner { padding: .65rem; }
  .board-top { padding-bottom: .5rem; }
  .board-inner > a { padding-block: .5rem; }
  .section-banner, .page-title { align-items: start; flex-direction: column; }
  .panel { padding: 1rem; }
  .artwork { padding: 0; }
  .summary { position: static; }
  .account-story { min-height: 210px; align-content: center; }
  .footer-inner { flex-wrap: wrap; min-height: 58px; padding-block: .55rem; }
  .messages article { align-items: start; flex-direction: column; }
  .checkout-line { align-items: start; flex-wrap: wrap; }
  .line-actions { justify-items: start; }
}
