:root {
  color-scheme: light;
  --cream: #f8f5ed;
  --paper: #fffdf8;
  --sand: #eee8dc;
  --line: #ded6c8;
  --ink: #211c18;
  --coal: #151210;
  --muted: #645a50;
  --orange: #ff793e;
  --rust: #9d3a17;
  --focus: #af4c22;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(22px, 5vw, 76px);
  --section: clamp(64px, 7.2vw, 108px);
  --radius: 5px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.65 var(--font); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.17; }
h1, h2 { letter-spacing: -.045em; }
html[lang="zh-CN"] :is(h1, h2) { letter-spacing: -.055em; }
img, video { max-width: 100%; display: block; }
svg { display: block; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.hero :focus-visible, .site-footer :focus-visible, .studio-sidebar :focus-visible { outline-color: var(--orange); }
.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--section); }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; z-index: 15; top: 12px; left: 12px; background: var(--paper); padding: 10px 14px; }
.eyebrow { color: var(--rust); font-size: .875rem; font-weight: 730; letter-spacing: .14em; line-height: 1.5; }
.eyebrow i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 11px; vertical-align: 2px; }

.site-header { background: var(--cream); position: relative; z-index: 5; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: clamp(14px, 2.4vw, 38px); }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; line-height: 1.17; white-space: nowrap; }
.brand strong { display: block; font-size: 1.07rem; letter-spacing: -.035em; font-weight: 770; }
.brand small { display: block; margin-top: 5px; font: 750 .69rem/1.1 var(--font); letter-spacing: .095em; }
.site-nav { display: flex; gap: clamp(13px, 2.15vw, 34px); align-items: center; position: relative; }
.site-nav a { display: flex; position: relative; align-items: center; min-height: 44px; white-space: nowrap; font-size: .91rem; font-weight: 630; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--rust); }
.site-nav a[aria-current]::after { content: ""; position: absolute; height: 2px; bottom: 1px; inset-inline: 0; background: var(--orange); }
.header-actions { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 23px); }
.locale-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.locale-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; background: none; border: 0; padding: 9px; color: inherit; }
.header-actions .button { min-height: 43px; padding: 8px 17px; font-size: .875rem; white-space: nowrap; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: var(--radius); font-weight: 740; font-size: .9375rem;
  text-align: center; line-height: 1.35; transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.button--primary { color: var(--coal); background: var(--orange); }
.button--primary:hover { background: #ff945f; }
.button--inverse { border-color: #c4b1a2; color: var(--cream); background: rgba(21, 18, 16, .2); }
.button--inverse:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.button--outline { border-color: var(--ink); color: var(--ink); }
.button--outline:hover { background: var(--ink); color: var(--cream); }
.button--dark { color: var(--cream); background: var(--ink); }
.button--dark:hover { background: #42332a; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 740; color: var(--rust); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: #c58e72; }
.text-link:hover { text-decoration-color: currentColor; }

.hero { position: relative; isolation: isolate; min-height: clamp(540px, 46vw, 690px); display: grid; align-items: center; overflow: hidden; background: #13100e; color: var(--cream); }
.hero-image { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 78%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #13100e 12%, rgba(19, 16, 14, .96) 24%, rgba(19, 16, 14, .66) 39%, rgba(19, 16, 14, .15) 62%, transparent 83%), linear-gradient(0deg, rgba(19, 16, 14, .67), transparent 23%); }
.hero-inner { padding-block: 72px 85px; }
.hero-kicker { color: var(--cream); display: flex; align-items: center; gap: 12px; font-weight: 660; }
.hero-kicker span { width: 23px; height: 2px; background: var(--orange); }
.hero h1 { margin-block: 26px 23px; font-size: clamp(3.65rem, 6.4vw, 6.5rem); font-weight: 850; line-height: 1.07; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-description { color: #e8dfd5; max-width: 395px; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.72; }
.hero .button-row { margin-top: 31px; }
.hero-credit { position: absolute; bottom: 20px; left: 0; right: 0; text-align: right; color: #e5d8c9; font-size: .75rem; letter-spacing: .04em; }

.intro { display: grid; grid-template-columns: 1fr .87fr .65fr; align-items: center; gap: clamp(24px, 3vw, 62px); }
.intro h2 { font-size: clamp(2.05rem, 3.8vw, 3.65rem); margin-top: 13px; font-weight: 810; }
.intro-copy { padding-top: 18px; }
.intro-copy p { color: var(--muted); line-height: 1.8; }
.intro-copy .text-link { margin-top: 7px; }
.waveform { width: 100%; height: auto; color: #bf542b; }

.selected { background: #f1ebdf; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: clamp(25px, 3.2vw, 43px); }
.section-heading h2, .inline-cta h2 { font-size: clamp(2.05rem, 4vw, 4rem); margin-top: 9px; font-weight: 810; }
.work-grid, .team-grid, .media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.1vw, 30px); }
.work-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); }
.work-card a { display: block; height: 100%; }
.work-image { aspect-ratio: 1.55; position: relative; overflow: hidden; background: var(--coal); }
.work-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transition: transform .4s ease; }
.work-card a:hover img { transform: scale(1.04); }
.image-tag { position: absolute; top: 13px; left: 13px; color: var(--cream); background: #211b16e8; padding: 3px 9px; font-size: .75rem; }
.work-content { padding: clamp(17px, 2.25vw, 29px); }
.work-content h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-block: 9px 10px; }
.work-card a:hover h3 { color: var(--rust); }
.work-content p, .service-card p, .event-row p, .info-card p { color: var(--muted); }
.work-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--rust); font-size: .85rem; font-weight: 700; }
.work-meta span { color: var(--muted); }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { display: flex; flex-direction: column; align-items: start; min-width: 0; gap: 19px; background: var(--paper); padding: clamp(22px, 3vw, 39px); transition: background-color .24s ease; }
.service-card:hover { background: #fce7d8; }
.service-card:focus-visible { position: relative; z-index: 2; outline-offset: -2px; }
.service-card h3, .info-card h3 { font-size: clamp(1.22rem, 1.7vw, 1.5rem); margin-bottom: 7px; }
.service-icon { display: inline-grid; width: 48px; height: 48px; place-items: center; flex: none; background: #f8e5d8; color: var(--rust); border-radius: 50%; }

.events { background: #f1ebdf; }
.event-list { border-top: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: minmax(140px, 1fr) 3fr minmax(115px, auto); gap: 18px; align-items: center; border-bottom: 1px solid var(--line); padding: 22px 12px; }
.event-row:hover { background: var(--paper); }
.event-row h3 { font-size: 1.29rem; margin-bottom: 7px; }
.event-date { display: inline-flex; align-items: center; gap: 9px; color: var(--rust); font-size: .91rem; font-weight: 720; }
.event-date small { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.event-place { color: var(--muted); font-size: .91rem; text-align: right; }

.closing { background: var(--orange); overflow: hidden; }
.closing-inner { min-height: 320px; padding-block: clamp(46px, 6vw, 84px); position: relative; isolation: isolate; }
.closing h2 { font-size: clamp(2.3rem, 5.7vw, 5.4rem); }
.closing p { margin-block: 15px 21px; font-weight: 570; }

.site-footer { background: var(--coal); color: var(--cream); }
.footer-main { padding-block: 57px 33px; display: grid; grid-template-columns: 1.2fr 1fr .55fr; gap: 27px; }
.footer-main p { color: #c3b8ad; margin-top: 11px; }
.footer-main nav { display: flex; flex-wrap: wrap; align-content: start; gap: 9px 22px; }
.footer-main nav a { font-size: .91rem; min-height: 35px; display: inline-flex; align-items: center; }
.footer-main nav a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #483b32; padding-block: 10px; color: #cbbfb4; }

.page-heading { background: var(--coal); color: var(--cream); border-bottom: 4px solid var(--orange); padding-block: clamp(58px, 8vw, 114px); }
.page-heading .eyebrow { color: var(--orange); }
.page-heading h1 { margin-block: 12px 17px; font-size: clamp(2.6rem, 6.1vw, 5.9rem); overflow-wrap: anywhere; }
.page-heading p { max-width: 710px; color: #e4d9cb; font-size: clamp(1rem, 1.5vw, 1.22rem); }
.about-feature, .detail-grid, .contact-layout { display: grid; align-items: start; gap: clamp(25px, 6vw, 85px); }
.about-feature, .detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.about-feature figure img, .detail-photo img { width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; background: var(--sand); }
figcaption { margin-top: 7px; font-size: .85rem; color: var(--muted); }
.about-copy h2, .detail-copy h2, .contact-layout aside h2, .service-aside h2 { font-size: clamp(1.55rem, 2.6vw, 2.35rem); margin-bottom: 13px; }
.about-copy p, .detail-copy p, .contact-layout aside p, .service-aside p { color: var(--muted); }
.about-copy h2:not(:first-child), .detail-copy h2:not(:first-child) { margin-top: 29px; }
.info-card, .media-item, .service-aside { padding: clamp(20px, 3vw, 37px); border: 1px solid var(--line); background: var(--paper); }
.info-card .service-icon { margin-bottom: 18px; }
.info-card small { display: block; margin-top: 14px; color: var(--rust); }
.info-card .button, .detail-copy .button, .service-aside .button, .contact-layout aside .button { margin-top: 22px; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.inline-cta h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: clamp(29px, 4vw, 53px); }
.filters a { padding: 9px 16px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 690; }
.filters a:hover, .filters a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.catalog-group + .catalog-group { margin-top: clamp(45px, 6vw, 80px); }
.catalog-group h2 { margin-bottom: 20px; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.facts { margin-block: 21px 25px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding-block: 11px; }
.facts dt { font-weight: 720; }
.facts dd, .media-item p { color: var(--muted); }
.media-item { min-width: 0; }
.media-item h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.media-item audio, .media-item video { width: 100%; }
.empty-note { color: var(--muted); padding: 13px 0; }

.contact-layout { grid-template-columns: minmax(215px, .71fr) minmax(0, 1.6fr); }
.form-wrap { max-width: 820px; }
.form-panel, .form-success { background: var(--paper); border: 1px solid var(--line); padding: clamp(19px, 4vw, 46px); scroll-margin-top: 18px; }
.form-panel h2, .form-success h2 { font-size: clamp(1.62rem, 3.2vw, 2.55rem); margin-bottom: 13px; }
.form-success .service-icon { margin-bottom: 14px; }
.form-success .button { margin-top: 12px; }
.receipt { color: var(--muted); margin-block: 10px; overflow-wrap: anywhere; }
.required-note, .privacy-note { color: var(--muted); font-size: .875rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 21px; margin-block: 19px; }
.form-field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.form-field label { display: block; color: var(--ink); font-weight: 690; margin-bottom: 5px; }
.form-field label span, .field-error { color: var(--rust); }
.form-field :is(input, select, textarea) { display: block; width: 100%; min-height: 46px; border: 1px solid #ae9f8f; border-radius: var(--radius); padding: 8px 11px; color: var(--ink); background-color: var(--paper); }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23645a50' stroke-width='1.6'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-position: right 10px center; background-size: 18px; background-repeat: no-repeat; padding-right: 34px; }
.form-field textarea { resize: vertical; }
.form-field [aria-invalid="true"] { border-color: var(--rust); }
.form-field small { display: block; color: var(--muted); margin-top: 5px; font-size: .85rem; }
.field-error { font-size: .875rem; font-weight: 680; margin-top: 3px; }
.form-alert { background: #f9e5d9; color: var(--rust); padding: 9px 12px; margin-bottom: 14px; }
.form-panel button { margin-top: 12px; }

.platform-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.platform-header .wrap, .studio-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 69px; }
.platform-main { padding-block: clamp(30px, 5vw, 71px); }
.platform-main h1 { font-size: clamp(2rem, 4.6vw, 3.65rem); margin-bottom: 9px; }
.platform-main > .eyebrow { display: block; margin-bottom: 10px; }
.platform-main > p, .platform-card p, .platform-empty p { color: var(--muted); }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 25px; }
.platform-card, .platform-empty { background: var(--paper); border: 1px solid var(--line); padding: clamp(15px, 2.4vw, 25px); border-radius: var(--radius); }
.platform-card:hover { border-color: var(--rust); }
.platform-card .service-icon { width: 40px; height: 40px; margin-bottom: 13px; }
.platform-card h2, .platform-empty h2 { font-size: 1.25rem; margin-bottom: 6px; letter-spacing: -.03em; }
.platform-card p { font-size: .91rem; }
.platform-empty { margin-top: 25px; }
.platform-empty .button { margin-top: 14px; }
.member-shell { min-height: 100svh; padding-bottom: calc(75px + env(safe-area-inset-bottom)); }
.member-shell .wrap { width: min(780px, calc(100% - var(--gutter) * 2)); }
.member-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 2; display: flex; justify-content: center; border-top: 1px solid var(--line); background: var(--paper); padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); }
.member-nav a { flex: 1; max-width: 143px; min-height: 54px; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 3px; font-size: .8rem; text-align: center; }
.member-nav a:hover, .member-nav a[aria-current] { color: var(--rust); background: #f9e7db; border-radius: var(--radius); }
.studio-shell { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100svh; }
.studio-sidebar { background: var(--coal); color: var(--cream); padding: 26px 17px; }
.studio-sidebar nav { display: grid; gap: 3px; margin-block: 33px 25px; }
.studio-sidebar nav a { display: flex; gap: 10px; align-items: center; min-height: 43px; padding: 7px 10px; border-radius: var(--radius); font-size: .915rem; }
.studio-sidebar nav a:hover, .studio-sidebar nav a[aria-current] { color: var(--orange); background: #35261e; }
.studio-public { display: inline-flex; padding: 7px 10px; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.studio-header { border-bottom: 1px solid var(--line); background: var(--paper); font-weight: 700; }
.studio-body > * { padding-inline: clamp(20px, 4.5vw, 64px); }
.studio-body .platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-summary { list-style: none; max-width: 450px; padding: 0; }
.content-summary li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.content-summary a { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1120px) {
  .topbar { gap: 12px; }
  .site-nav { gap: 13px; }
  .header-actions { gap: 10px; }
}
@media (max-width: 900px) {
  .topbar { min-height: 69px; flex-wrap: wrap; }
  .menu-toggle { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
  .site-nav { width: 100%; order: 3; gap: 0; flex-wrap: wrap; padding-bottom: 9px; }
  .site-nav a { padding: 0 14px; }
  .topbar:has(.menu-toggle:not([hidden])) .site-nav { display: none; }
  .topbar:has(.menu-toggle:not([hidden])) .site-nav.is-open {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: absolute; background: var(--cream);
    top: 100%; left: 0; padding: 12px var(--gutter) 15px; border-top: 1px solid var(--line); box-shadow: 0 12px 30px #241a1930;
  }
  .site-nav a[aria-current]::after { inset-inline: 14px; }
  .intro { grid-template-columns: 1fr 1fr; }
  .waveform { display: none; }
  .studio-body .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .header-actions .button { display: none; }
  .hero { min-height: 620px; align-items: end; }
  .hero-image { width: 100%; object-position: 62% 15%; height: 73%; }
  .hero::before { background: linear-gradient(0deg, #13100e 13%, rgba(19, 16, 14, .95) 32%, rgba(19, 16, 14, .51) 67%, rgba(19, 16, 14, .14) 97%); }
  .hero-inner { padding-block: 150px 73px; }
  .hero h1 { font-size: clamp(3rem, 10.7vw, 4.9rem); margin-block: 20px 18px; }
  .hero .button-row { margin-top: 22px; }
  .hero-description { max-width: 345px; }
  .hero-credit { bottom: 13px; }
  .intro { grid-template-columns: 1fr; gap: 15px; }
  .intro-copy { padding-top: 0; }
  .work-grid, .service-grid, .team-grid, .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding-inline: 8px; }
  .event-row div { grid-column: 1 / -1; grid-row: 2; }
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: 40px 25px; }
  .footer-main > div { grid-column: 1 / -1; }
  .about-feature, .detail-grid, .contact-layout { grid-template-columns: 1fr; }
  .contact-layout aside { order: 2; }
  .studio-shell { grid-template-columns: 1fr; }
  .studio-sidebar { padding: 12px var(--gutter); }
  .studio-sidebar nav { display: flex; overflow-x: auto; gap: 4px; margin-block: 10px 5px; }
  .studio-sidebar nav a { white-space: nowrap; }
}
@media (max-width: 450px) {
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .work-grid, .team-grid, .media-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { padding: 16px 13px; gap: 11px; }
  .service-card p { font-size: .94rem; }
  .inline-cta { align-items: start; flex-direction: column; }
  .hero .button { padding-inline: 13px; }
  .page-heading h1 { overflow-wrap: normal; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .hero-image { width: 88%; }
  .hero::before { background: linear-gradient(90deg, #13100e 5%, rgba(19, 16, 14, .92) 22%, rgba(19, 16, 14, .5) 58%, rgba(19, 16, 14, .12) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Account and talent workspaces */
.auth-main { width: min(480px, calc(100% - var(--gutter) * 2)); padding-block: clamp(42px, 8vw, 100px); }
.auth-card, .portal-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.auth-card { padding: clamp(22px, 5vw, 42px); }
.auth-card h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 22px; }
.auth-card .privacy-note { margin: 10px 0; }
.auth-card form > .button { margin-top: 18px; }
.auth-card .button-row > form > .button { margin-top: 0; }
.auth-card > p + .button-row { margin-top: 16px; }
.field-stack { display: grid; gap: 13px; }
.account-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
.account-links a, .platform-actions > a:not(.locale-link), .record-links a, .record-list li > a:not(.button), .table-scroll th a, .category-pills a:hover {
  color: var(--rust); text-decoration: underline; text-underline-offset: 4px;
}
.auth-intro { color: var(--muted); }
.invite-email, .account-email { overflow-wrap: anywhere; margin-block: 8px 14px; }
.account-notice { background: #e9f1e4; color: #29532d; padding: 10px 13px; margin-bottom: 14px; }
.phase2-main > p + .portal-panel, .phase2-main > p + .editor-stack { margin-top: 20px; }
.platform-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.platform-actions > a { font-size: .875rem; font-weight: 680; }
.platform-actions .button { min-height: 36px; font-size: .85rem; padding: 7px 10px; }
.phase2-main h1 { overflow-wrap: anywhere; }
.portal-panel { min-width: 0; margin-top: 17px; padding: clamp(17px, 2.6vw, 28px); }
.portal-panel h2 { font-size: clamp(1.21rem, 2vw, 1.6rem); margin-bottom: 12px; }
.portal-panel > p:not(.empty-note, .form-alert), .record-list p, .member-intro p { color: var(--muted); }
.portal-panel > p + .button-row { margin-top: 11px; }
.portal-panel .form-grid { margin-block: 12px 16px; }
.portal-panel .empty-note { padding: 4px 0; }
.editor-stack > .button-row, .portal-panel > .tool-row { margin-top: 15px; }
.editor-stack { margin-bottom: 20px; }
.check-group { margin: 0; min-width: 0; padding: 0; border: none; }
.check-group legend { margin: 0 0 5px; padding: 0; font-weight: 690; }
.check-group > div { display: flex; flex-wrap: wrap; gap: 6px; }
.check-group label {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; min-height: 38px;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem;
}
.check-group label:has(:checked) { background: #f9e6d6; border-color: #d7a68b; }
.check-group input { accent-color: var(--rust); margin: 0; }
.person-avatar {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden; color: var(--rust); background: #f8e5d8; font-weight: 750;
}
.person-avatar--large { width: 64px; height: 64px; font-size: 1.55rem; }
.person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.directory-person, .attachment-avatar { display: flex; align-items: center; gap: 11px; min-width: 0; }
.directory-person > div, .directory-person p { overflow-wrap: anywhere; }
.directory-person p { color: var(--muted); font-size: .9rem; }
.directory-person h3 { font-size: 1.15rem; margin-bottom: 4px; }
.person-heading, .member-intro { margin-block: 16px; }
.member-intro h2 { margin-bottom: 4px; }
.attachment-avatar { margin-bottom: 13px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 17px; }
.tool-row .button, .view-switch a, .record-list .button { min-height: 40px; padding: 8px 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 21px; }
.stat-card { padding: 15px 17px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
a.stat-card:hover { border-color: var(--rust); }
.stat-card span { display: block; font-size: .875rem; color: var(--muted); }
.stat-card strong { display: block; margin-top: 2px; color: var(--ink); font-size: 2rem; line-height: 1.2; }
.talent-filter { margin-block: 14px 18px; }
.talent-filter .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; }
.talent-filter .form-field:first-child { grid-column: span 2; }
.results-bar { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: space-between; margin-block: 22px 12px; }
.results-bar small { font-size: .875rem; color: var(--muted); }
.view-switch { margin: 0; gap: 5px; }
.directory-grid, .record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.record-grid .portal-panel { margin: 0; }
.record-grid { margin-top: 15px; }
.directory-card { min-width: 0; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.directory-card:hover { border-color: var(--rust); }
.chips, .category-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0; list-style: none; }
.chips li, .category-pills a, .status-pill { background: #f4e9dd; border-radius: var(--radius); color: #78432c; padding: 3px 7px; font-size: .82rem; overflow-wrap: anywhere; }
.status-pill { display: inline-block; }
.directory-card > .status-pill { margin-top: 9px; }
.category-pills a { display: block; }
.table-scroll { overflow-x: auto; margin-block: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 460px; background: var(--paper); text-align: left; }
.table-scroll th, .table-scroll td { padding: 10px 13px; border-bottom: 1px solid var(--line); }
.table-scroll thead { background: var(--sand); font-size: .875rem; }
.table-scroll tbody tr:last-child > * { border-bottom: none; }
.pager { margin-top: 13px; }
.record-list, .record-links { list-style: none; padding: 0; margin-block: 8px; }
.record-list li { border-top: 1px solid var(--line); padding-block: 11px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.record-list li:first-child { border-top: 0; }
.record-list li > div, .record-list li > a { min-width: 0; overflow-wrap: anywhere; }
.record-list small { color: var(--muted); }
.record-list .button { white-space: nowrap; }
.record-facts { display: grid; gap: 8px; }
.record-facts div { display: grid; grid-template-columns: minmax(82px, .4fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); gap: 11px; padding-block: 5px; }
.record-facts div:last-child { border-bottom: 0; }
.record-facts dt { color: var(--muted); font-weight: 660; }
.record-facts dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.record-facts .record-links { margin: 0; }
.asset-form { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 6px; }
.invite-panel { border-color: var(--orange); margin-bottom: 14px; }
.invite-panel .form-field { margin-block: 8px; }
.invite-panel .privacy-note { margin-top: 6px; }
.account-search { display: flex; gap: 8px; align-items: end; margin-bottom: 8px; }
.permission-list li { align-items: start; flex-wrap: wrap; }
.permission-list form { display: flex; flex-wrap: wrap; align-items: end; gap: 7px; }
.csv-legend .chips { margin: 7px 0; }
@media (max-width: 1020px) {
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talent-filter .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-grid, .directory-grid { grid-template-columns: 1fr; }
  .talent-filter .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-header .platform-actions { gap: 7px; }
  .platform-actions .locale-link { min-height: 34px; }
}
@media (max-width: 450px) {
  .platform-header .wrap { flex-wrap: wrap; gap: 0 5px; padding-block: 5px; }
  .platform-header .platform-actions { gap: 7px; }
  .record-facts div { grid-template-columns: minmax(65px, .55fr) minmax(0, 1fr); }
  .auth-card { padding: 20px; }
}

/* Seasons, activity calendar and participation */
.season-card { display: block; padding: 16px; }
.season-card img { width: 100%; height: 148px; object-fit: cover; margin-bottom: 12px; border-radius: var(--radius); }
.season-card h3 { margin-block: 9px 6px; }
.season-card p { color: var(--muted); font-size: .9rem; }
.season-cover { width: 100%; max-height: 290px; object-fit: cover; border-radius: var(--radius); }
.program-chooser { margin-block: 5px 12px; }
.program-chooser .form-field { margin-bottom: 8px; max-width: 420px; }
.program-chooser fieldset > div { max-height: 220px; overflow: auto; padding: 3px; }
.program-chooser fieldset label { min-height: 38px; }
.program-calendar-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 11px; margin-bottom: 14px; }
.program-calendar-tools h2 { margin: 0 7px 0 0; min-width: 120px; }
.program-calendar-tools .button { min-height: 40px; padding: 8px 11px; }
.program-calendar-filter { display: flex; align-items: end; gap: 11px; flex-wrap: wrap; }
.program-calendar-filter .form-field { min-width: min(168px, 100%); flex: 0 1 195px; }
.calendar-table-wrap { margin-bottom: 0; }
.table-scroll .calendar-table { table-layout: fixed; min-width: 555px; }
.calendar-table th { text-align: center; }
.calendar-table td { height: 91px; padding: 5px; border-inline-end: 1px solid var(--line); vertical-align: top; }
.calendar-table td:last-child { border-inline-end: 0; }
.calendar-table time { display: inline-grid; place-items: center; width: 26px; height: 26px; font-size: .86rem; }
.calendar-table .calendar-outside { color: var(--muted); background: #f5f1e8; }
.calendar-table .calendar-today time { background: var(--orange); border-radius: 50%; color: var(--ink); font-weight: 750; }
.calendar-slot { display: block; margin-top: 4px; border-radius: 4px; padding: 3px 5px; background: #f4e8d6; font-size: .8rem; line-height: 1.4; overflow-wrap: anywhere; }
.calendar-slot--regular { background: #f9e2d2; }
.calendar-slot--concert { background: #ece5f1; }
.calendar-slot:hover { text-decoration: underline; }
.calendar-slot small { font-weight: 700; }
.program-list { list-style: none; padding: 0; margin: 12px 0 0; }
.program-list li { border-top: 1px solid var(--line); }
.program-list li a { display: grid; padding: 11px 2px; }
.program-list strong { font-size: 1.05rem; }
.program-list li a:hover strong, .record-list a:hover strong { color: var(--rust); }
.program-list span { font-size: .9rem; color: var(--muted); }
.next-rehearsal { background: #fff1e5; border-color: #e6bc9e; }
.next-rehearsal > h3 { font-size: 1.45rem; }
.next-rehearsal-facts { margin-block: 13px 17px; padding: 0; list-style: none; }
.next-rehearsal-facts li { display: flex; align-items: center; gap: 8px; margin-block: 6px; overflow-wrap: anywhere; }
.repertoire-list { margin-block: 7px 0; padding-inline-start: 1.4em; }
.participation-action { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 14px; scroll-margin-top: 12px; }
.participation-action .form-grid { max-width: 520px; }
#code { font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: .18em; }
.qr-display { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 23px; margin: 12px 0 16px; }
.qr-display img { background: white; border: 1px solid var(--line); box-sizing: content-box; height: auto; max-width: min(216px,100%); border-radius: var(--radius); }
.qr-display strong { display: block; color: var(--rust); font-size: clamp(1.8rem,5vw,3.25rem); font-variant-numeric: tabular-nums; letter-spacing: .13em; }
.qr-display p, .muted-live { color: var(--muted); }
[data-live-roster] .stats-grid { grid-template-columns: repeat(5,minmax(0,1fr)); margin-bottom: 11px; }
.photo-heading { margin-top: 17px; }
.program-files div { width: 100%; }
.program-files img { width: min(300px,100%); max-height: 190px; object-fit: cover; margin-bottom: 5px; border-radius: var(--radius); }
.program-files a { color: var(--rust); text-decoration: underline; text-underline-offset: 4px; }
.analytics-filters .form-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.analytics-note, .chart-key { font-size: .9rem; color: var(--muted); margin-top: 9px; }
.chart-frame svg { width: 100%; min-height: 145px; }
.chart-line { fill: none; stroke: #b5411c; stroke-width: 3.5px; stroke-linejoin: round; stroke-linecap: round; }
.chart-line--secondary { stroke: #a39783; stroke-dasharray: 7 6; stroke-width: 2px; }
.chart-dot { fill: #b5411c; }
.chart-grid { stroke: var(--line); stroke-width: 1px; }
.chart-label { fill: var(--muted); font-size: 13px; }
.chart-data { color: var(--muted); margin: 5px 0 10px; }
.chart-data summary { cursor: pointer; font-weight: 650; color: var(--rust); }
.chart-data ul { max-height: 220px; overflow: auto; }
.chart-bars { margin-top: 12px; }
.chart-bar-row { display: grid; align-items: center; gap: 7px; grid-template-columns: minmax(26px, .2fr) 1fr minmax(45px, auto); margin-bottom: 5px; font-size: .85rem; }
.chart-bar-row svg { width: 100%; height: 22px; justify-self: start; overflow: visible; }
.chart-bar-planned { fill: #cdb9a4; }
.chart-bar-checked { fill: #c14a20; }
.chart-subhead { margin-top: 19px; font-size: 1.05rem; }
.heatmap { margin-top: 13px; }
.heatmap table { width: 100%; border-spacing: 4px; font-size: .87rem; }
.heatmap td { padding: 6px 4px; text-align: center; border-radius: 4px; }
.heat-0 { background: var(--sand); }
.heat-1 { background: #f9dac6; }
.heat-2 { background: #f2b88f; }
.heat-3 { background: #da7b4b; }
.heat-4 { background: #a43d18; color: white; }
@media (max-width: 1050px) {
  .analytics-filters .form-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  [data-live-roster] .stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .analytics-filters .form-grid, [data-live-roster] .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .program-calendar-filter .form-field { min-width: 130px; flex: 1; }
  .next-rehearsal .button-row { gap: 7px; }
  .next-rehearsal .button { padding-inline: 10px; }
}

.official-mark {
  position: relative;
  display: inline-block;
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  overflow: hidden;
  border-radius: 50%;
  background: #f8efe3;
}
.official-mark img {
  position: absolute;
  width: 260%;
  max-width: none;
  height: auto;
  left: -27.5%;
  top: -36.7%;
}
.closing-mascot {
  width: clamp(115px, 24vw, 270px);
  height: auto;
  border-radius: 18%;
}
.about-official-logo {
  display: block;
  width: min(100%, 480px);
  height: auto;
  margin-top: 22px;
  border-radius: 12px;
}
.member-account-hero .account-mascot {
  order: 3;
  width: 58px;
  height: 58px;
  border-radius: 10px;
}

.closing-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.recruitment-mascot { display: block; width: min(100%, 180px); height: auto; border-radius: 16px; margin-bottom: 22px; }
