#at-sakura {
  --at-paper: #fcf8f4;
  --at-ink: #382e37;
  --at-wine: #89405a;
  --at-rose: #bd647f;
  --at-muted: #736872;
  --at-line: #e1d7d5;
  --at-serif: "Baskervville", "Baskerville Old Face", Baskerville, Georgia, serif;
  --at-cn-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --at-sans: "Inter", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  width: 100%;
  min-width: 0;
  color: var(--at-ink);
  font: 14px/1.5 var(--at-sans);
  text-align: left;
  color-scheme: light;
  container-type: inline-size;
  isolation: isolate;
}
#at-sakura *, #at-sakura *::before, #at-sakura *::after { box-sizing: border-box; }
#at-sakura [hidden] { display: none !important; }
#at-sakura :where(figure,h1,h2,h3,p,ul) { margin: 0; padding: 0; }
#at-sakura :where(button,input) { font: inherit; color: inherit; }
#at-sakura button { border: 0; background: none; margin: 0; text-transform: none; }
#at-sakura button:not(:disabled), #at-sakura summary { cursor: var(--cursor-interaction, pointer); }
#at-sakura :where(button,summary):focus-visible { outline: 3px solid #a34b70; outline-offset: 3px; }
#at-sakura :where(button,summary) { -webkit-tap-highlight-color: transparent; }
#at-sakura :where(svg.lucide, i[data-lucide]) { display: block; width: 19px; height: 19px; flex: none; stroke-width: 1.65; }
#at-sakura .at-window {
  position: relative;
  overflow: clip;
  border: 1px solid #ddd3d2;
  border-radius: 22px;
  background: var(--at-paper);
  box-shadow: 0 20px 60px -32px #55374555;
}
.at-entry { display: grid; grid-template-columns: 53% minmax(0,1fr); min-height: clamp(620px, 59.5cqw, 760px); padding: 11px; }
.at-poster, .at-cover { position: relative; isolation: isolate; overflow: hidden; border-radius: 14px; background: #d8bbc5; }
.at-poster { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.at-scene, .at-plane, .at-painting, .at-wind, .at-petals, .at-poster-veil, .at-cover-veil { position: absolute; inset: 0; pointer-events: none; }
.at-scene { overflow: hidden; z-index: 0; }
.at-plane { overflow: hidden; width: 100%; height: 100%; }
.at-painting, .at-wind img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.at-wind { overflow: hidden; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; }
.at-wind img { transform: translateZ(0); }
.at-petals { display: block; width: 100%; height: 100%; }
.at-poster-veil { z-index: 1; background: linear-gradient(180deg, #322a3742 0, transparent 19%, transparent 57%, #352b4026 70%, #34243ecc 100%); }
.at-poster-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 24px 26px 0; position: relative; z-index: 2; color: white; }
.at-editorial-brand { display: inline-flex; align-items: center; gap: 10px; font: 650 11px/1 var(--at-sans); letter-spacing: .19em; color: #fffaf4; text-shadow: 0 1px 7px #372535a6; }
.at-seal { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #fff8; border-radius: 50%; background: #39223b48; font: 19px/1 Georgia,serif; letter-spacing: 0; }
#at-sakura .at-motion {
  position: relative; display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 1px solid #fff9;
  border-radius: 50%; background: #352d3a70; backdrop-filter: blur(5px); color: #fffaf5; transition: background .2s, transform .2s;
}
#at-sakura .at-motion:hover { background: #392c42bb; transform: translateY(-1px); }
#at-sakura .at-motion .lucide { width: 14px; height: 14px; stroke-width: 2; }
.at-poster-caption { position: relative; z-index: 2; margin: 0 7% 7.2%; color: #fffaf1; }
.at-scene-title { display: block; font: 400 clamp(56px, 7.75cqw, 109px)/.99 var(--at-serif); letter-spacing: -.064em; white-space: nowrap; text-shadow: 0 2px 18px #49394838; }
.at-scene-title em { margin-inline-start: .035em; font-family: "Baskervville", Baskerville, Georgia, serif; font-weight: 400; }
.at-poster-zh { display: flex; align-items: center; gap: 12px; margin: 16px 0 0 4px; font-size: 13px; letter-spacing: .27em; font-weight: 500; }
.at-poster-zh b { width: 32px; height: 1px; background: #fff7efc7; }
.at-access { position: relative; display: grid; align-items: center; min-width: 0; padding: 66px clamp(30px,4.25cqw,66px) 71px; }
.at-access-inner { position: relative; z-index: 1; width: 100%; max-width: 372px; margin: auto; }
.at-emboss { position: absolute; inset: -58px -24px auto auto; width: 160px; height: 180px; opacity: .69; pointer-events: none; }
.at-emboss b { position: absolute; top: 7px; left: 56px; width: 52px; height: 122px; transform-origin: 0 100%; transform: rotate(17deg); border: 1px solid #e9dadd; border-radius: 95% 8% 94% 12%; }
.at-emboss b:nth-child(2) { transform: rotate(56deg) scale(.95); }
.at-emboss b:nth-child(3) { transform: rotate(91deg) scale(.75); }
#at-sakura .at-lockup { display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(28px,3.2cqw,45px); }
.at-lockup img { width: clamp(78px,8.5cqw,116px); height: auto; display: block; }
.at-lockup span, .at-side-brand span { font: 650 10px/1.1 var(--at-sans); letter-spacing: .21em; color: #725666; }
.at-lockup span { border-left: 1px solid #d8c6cb; padding: 6px 0 6px 16px; }
#at-sakura .at-auth-heading h2, #at-sakura .at-main-head h2, #at-sakura .at-dialog h2 {
  font: 650 clamp(29px,3cqw,39px)/1.27 var(--at-cn-serif); letter-spacing: .01em; color: var(--at-ink);
}
#at-sakura .at-auth-heading p { margin: 9px 0 0; color: var(--at-muted); font-size: 13px; line-height: 1.65; }
#at-auth-form { display: grid; gap: 19px; margin: 27px 0 0; }
.at-field { min-width: 0; }
.at-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; margin-bottom: 7px; }
.at-label-row label { color: #473d46; font-size: 13px; font-weight: 600; }
#at-sakura .at-text-btn { display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 0; color: var(--at-wine); font-size: 12px; line-height: 1.5; font-weight: 600; }
#at-sakura .at-text-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
#at-sakura .at-muted-btn { color: #746772; font-weight: 500; }
.at-input-wrap { display: flex; align-items: center; gap: 11px; min-height: 47px; padding: 0 13px; border: 1px solid #dbd1d1; border-radius: 8px; background: #fffdfb; color: #8b7984; transition: border-color .18s, box-shadow .18s; }
.at-input-wrap:focus-within { border-color: var(--at-rose); box-shadow: 0 0 0 3px #c9678720; }
.at-input-wrap:has(input[aria-invalid="true"]) { border-color: #b84458; }
#at-sakura .at-input-wrap > .lucide { width: 17px; height: 17px; }
#at-sakura .at-input-wrap input { appearance: none; display: block; width: 100%; min-width: 0; border: 0; padding: 10px 0; outline: 0; border-radius: 0; background: transparent; color: var(--at-ink); font-size: 14px; }
#at-sakura input::placeholder { color: #8e8389; opacity: 1; }
#at-sakura input::-ms-reveal { display: none; }
#at-sakura .at-eye, #at-sakura .at-icon-btn { display: grid; flex: none; place-items: center; width: 31px; height: 33px; margin-right: -5px; padding: 0; border-radius: 6px; color: #7c6975; }
#at-sakura .at-eye:hover, #at-sakura .at-icon-btn:hover { background: #f2e8e9; }
#at-sakura .at-eye .lucide { width: 17px; height: 17px; }
#at-sakura .at-primary {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 49px;
  padding: 0 19px; border-radius: 8px; background: var(--at-wine); color: #fff9f6; font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 11px -7px #713248c2; transition: background .2s, box-shadow .2s, transform .2s;
}
#at-sakura .at-primary:hover { background: #77334d; box-shadow: 0 7px 15px -7px #74384d8f; transform: translateY(-1px); }
#at-sakura .at-primary:active, #at-sakura .at-launch:active { transform: translateY(1px); }
#at-sakura .at-primary .lucide { width: 19px; height: 19px; transition: transform .22s ease; }
#at-sakura .at-primary:hover .lucide { transform: translateX(3px); }
.at-auth-alternate { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; justify-content: center; margin-top: 19px; color: var(--at-muted); font-size: 13px; }
#at-sakura .at-auth-alternate .at-text-btn { font-size: 13px; }
#at-sakura .at-auth-alternate .lucide { width: 14px; height: 14px; }
#at-sakura .at-error, #at-sakura .at-notice { margin: -5px 0 -4px; color: #9b344c; font-size: 12px; line-height: 1.55; }
#at-sakura .at-notice { color: #446958; }
.at-access-foot { position: absolute; bottom: 18px; left: 11%; right: 6%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.at-local { display: inline-flex; align-items: center; gap: 7px; color: #73646d; font-size: 11px; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.at-local b { width: 7px; height: 7px; border: 1px solid #af697e; background: #e5b1bb; border-radius: 50%; }
.at-stitch { width: 41px; height: 4px; background: repeating-linear-gradient(118deg,transparent 0 3px,#d3bfc5 3.2px 4.3px,transparent 4.5px 7px); }

.at-desk { display: grid; grid-template-columns: clamp(155px,17cqw,225px) minmax(0,1fr); min-height: clamp(620px,59.5cqw,760px); }
.at-side { display: flex; flex-direction: column; min-width: 0; padding: clamp(25px,3.4cqw,48px) 13px 20px; background: linear-gradient(162deg,#f5eeec 15%,#f3e9e9 100%); border-right: 1px solid var(--at-line); }
.at-side-brand { display: grid; justify-items: start; gap: 5px; margin: 0 0 clamp(32px,4.5cqw,65px) 14px; }
.at-side-brand img { display: block; width: clamp(64px,6.4cqw,84px); }
.at-side-brand span { padding-left: 3px; font-size: 9px; }
.at-nav { display: grid; gap: 8px; }
#at-sakura .at-nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 46px; padding: 0 14px; border-radius: 8px; text-align: left; font-size: 14px; font-weight: 520; color: #675a64; transition: background .22s,color .22s; }
#at-sakura .at-nav-item:hover { background: #eadfe0; }
#at-sakura .at-nav-item[aria-current="page"] { color: #873e58; background: #edd9df; font-weight: 650; }
.at-nav-item[aria-current="page"]::after { content:""; margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #a25570; }
.at-userbar { margin-top: auto; padding: 17px 3px 1px; border-top: 1px solid #ddcfd2; display: flex; align-items: center; gap: 9px; min-width: 0; }
.at-avatar { width: 34px; height: 34px; display: grid; flex: none; place-items: center; border-radius: 11px; color: #7a3f56; background: #e9cdd7; font: italic 20px/1 Georgia, serif; }
.at-who { display: grid; gap: 2px; min-width: 0; flex: 1; }
.at-who small { font-size: 10px; color: #7d6c77; }
.at-who strong { font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.at-main { min-width: 0; padding: clamp(25px,3.7cqw,51px) clamp(24px,3.6cqw,52px) 30px; }
.at-main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; }
.at-cover { height: clamp(266px,29cqw,387px); border-radius: 13px; display: flex; align-items: end; }
.at-cover-veil { background: linear-gradient(90deg,#33283bd4 0%,#392d3e95 32%,#3c2b3a22 62%,transparent 83%),linear-gradient(0deg,#3b303a4d,transparent 43%); }
#at-sakura .at-cover-motion { position: absolute; z-index: 2; right: 16px; top: 16px; }
.at-feature { position: relative; z-index: 1; display: grid; justify-items: start; padding: 29px clamp(22px,3cqw,45px); color: #fff8f0; }
.at-feature-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #fff4ef; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.at-feature-tag b { width: 19px; height: 1px; background: #edb8c5; }
#at-sakura .at-feature h3 { font: 650 clamp(36px,4.25cqw,60px)/1.2 var(--at-cn-serif); letter-spacing: .025em; color: #fff9ef; }
#at-sakura .at-feature p { margin-top: 3px; font: italic clamp(21px,2.15cqw,30px)/1.15 Georgia,var(--at-serif); color: #fff1ef; }
#at-sakura .at-launch { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 41px; margin-top: 23px; padding: 0 19px; border-radius: 7px; color: #613a4d; background: #fff6f0; font-size: 14px; font-weight: 650; transition: transform .2s, background .2s; }
#at-sakura .at-launch:hover { transform: translateY(-2px); background: #fff; }
#at-sakura .at-launch .lucide { width: 14px; height: 14px; fill: currentColor; }
.at-cover.at-short-cover { height: clamp(118px,14cqw,170px); }
.at-short-cover .at-cover-veil { background: linear-gradient(90deg,#4d344f25, transparent 70%); }
.at-panel { margin-top: clamp(20px,2.5cqw,34px); }
.at-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
#at-sakura .at-section-head h3 { color: var(--at-ink); font-size: 17px; font-weight: 650; letter-spacing: .015em; line-height: 1.4; }
.at-section-head > span { color: var(--at-muted); font-size: 12px; }
.at-program-tile { position: relative; display: grid; place-items: center; overflow: hidden; flex: none; width: 50px; height: 50px; border-radius: 8px; background: linear-gradient(140deg,#744b63,#a2657a 63%,#c68a93); color: #fff7ef; font: italic 600 19px/1 var(--at-serif); letter-spacing: -.06em; }
.at-program-tile::after { content:""; position: absolute; width: 41px; height: 50px; border: 1px solid #f9d3df65; border-radius: 90% 0 90% 0; right: -20px; top: -19px; }
.at-story { background: #fffaf7; border: 1px solid var(--at-line); border-radius: 10px; padding: 17px 19px; }
.at-story summary { list-style: none; display: flex; align-items: center; gap: 11px; }
.at-story summary::-webkit-details-marker { display: none; }
.at-story summary strong { flex: 1; font-size: 15px; font-weight: 620; }
.at-story summary > .lucide { transition: transform .2s; }
.at-story[open] summary > .lucide { transform: rotate(180deg); }
.at-story-icon, .at-modal-symbol { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; color: var(--at-wine); background: #f2e0e6; }
#at-sakura .at-story p { margin: 11px 29px 3px 45px; color: var(--at-muted); font-size: 14px; line-height: 1.8; }
#at-sakura .at-empty { padding: 14px 0; color: var(--at-muted); }
.at-dialog { width: min(370px,calc(100% - 32px)); padding: 0; inset: 0; margin: auto; border: 1px solid #e6d2d8; border-radius: 15px; color: var(--at-ink); background: var(--at-paper); box-shadow: 0 19px 65px #321d3740; }
.at-dialog::backdrop { background: #39273864; backdrop-filter: blur(3px); }
.at-dialog-inner { padding: 28px; }
.at-modal-symbol { width: 42px; height: 42px; margin-bottom: 17px; }
#at-sakura .at-dialog h2 { margin-bottom: 12px; font-size: 26px; }
.at-dialog strong { font-size: 15px; }
#at-sakura .at-dialog p { margin: 7px 0 22px; font-size: 13px; color: var(--at-muted); line-height: 1.7; }
.at-entering { animation: at-content-in .36s cubic-bezier(.19,.78,.3,1) both; }
@keyframes at-content-in { from { transform: translateY(9px); opacity: .36; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #at-sakura *, #at-sakura *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
@container (max-width: 900px) {
  .at-entry { grid-template-columns: 49% minmax(0,1fr); }
  .at-access { padding-inline: clamp(22px,3.2cqw,34px); }
  .at-desk { grid-template-columns: 148px minmax(0,1fr); }
  .at-main { padding-inline: 24px; }
  .at-side { padding-inline: 9px; }
  #at-sakura .at-nav-item { gap: 10px; padding-inline: 10px; }
  .at-scene-title { font-size: 6.8cqw; }
}
@container (max-width: 690px) {
  #at-sakura .at-window { border-radius: 14px; }
  .at-entry { grid-template-columns: 1fr; padding: 7px; min-height: 0; }
  .at-poster { min-height: clamp(160px,34cqw,212px); border-radius: 9px; }
  .at-poster-top { margin: 12px 15px 0; }
  .at-poster-caption { margin: 0 21px 16px; }
  .at-scene-title { font-size: clamp(44px,9cqw,60px); }
  .at-poster-zh { gap: 8px; margin: 7px 0 0 2px; font-size: 11px; }
  .at-poster-zh b { width: 21px; }
  .at-access { padding: 29px 22px 50px; }
  #at-sakura .at-lockup { margin-bottom: 18px; }
  .at-lockup img { width: 72px; }
  .at-emboss { display: none; }
  .at-access-foot { bottom: 9px; left: 22px; right: 20px; }
  #at-auth-form { margin-top: 19px; gap: 14px; }
  .at-auth-alternate { margin-top: 14px; }
  .at-desk { grid-template-columns: 66px minmax(0,1fr); min-height: 540px; }
  .at-side { padding: 24px 5px 12px; }
  .at-side-brand { justify-items: center; margin: 0 0 25px; }
  .at-side-brand img { width: 43px; }
  .at-side-brand span { padding: 0; font-size: 7px; letter-spacing: .08em; }
  #at-sakura .at-nav-item { height: 54px; flex-direction: column; justify-content: center; gap: 4px; padding: 0; font-size: 10px; }
  .at-nav-item[aria-current="page"]::after { display: none; }
  .at-userbar { flex-direction: column; padding: 13px 0 0; gap: 7px; }
  .at-who { display: none; }
  #at-sakura .at-userbar .at-icon-btn { margin: 0; }
  .at-main { padding: 21px 16px; }
  .at-main-head { margin-bottom: 15px; }
  #at-sakura .at-main-head h2 { font-size: 28px; }
  .at-cover { height: clamp(224px,41cqw,266px); border-radius: 9px; }
  .at-cover.at-short-cover { height: 105px; }
  .at-feature { padding: 17px; }
  #at-sakura .at-feature h3 { font-size: clamp(28px,6cqw,38px); }
  #at-sakura .at-feature p { font-size: 19px; }
  .at-feature-tag { margin-bottom: 6px; }
  #at-sakura .at-cover-motion { top: 9px; right: 9px; }
  #at-sakura .at-launch { margin-top: 15px; min-height: 38px; }
  .at-program-tile { width: 38px; height: 40px; font-size: 16px; }
  .at-section-head { margin-bottom: 9px; }
  .at-story { padding: 12px; }
  #at-sakura .at-story p { margin: 9px 0 0; font-size: 13px; }
}
@container (max-width: 420px) {
  .at-desk { grid-template-columns: 53px minmax(0,1fr); }
  .at-main { padding: 19px 10px; }
  .at-avatar { width: 30px; height: 30px; }
  .at-section-head > span, .at-local { font-size: 11px; }
  #at-sakura .at-section-head h3 { font-size: 15px; }
  .at-story-icon { display: none; }
}
@media (pointer: coarse) {
  #at-sakura .at-motion, #at-sakura .at-eye, #at-sakura .at-icon-btn { min-width: 44px; min-height: 44px; }
  #at-sakura .at-label-row .at-text-btn, #at-sakura .at-auth-alternate .at-text-btn { min-height: 44px; }
  #at-sakura .at-input-wrap input { font-size: 16px; }
}

/* Program selector and independently rendered program pages. */
.at-main-head { margin-bottom: 19px; }
.at-shelf { margin-bottom: 17px; min-width: 0; }
#at-sakura .at-shelf .at-section-head { align-items: center; margin-bottom: 7px; min-height: 26px; }
#at-sakura .at-shelf h3 { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.at-shelf h3 small { font-size: 11px; font-weight: 500; color: var(--at-muted); }
.at-shelf-actions { display: flex; gap: 4px; align-items: center; }
#at-sakura .at-shelf-actions .at-icon-btn { width: 27px; height: 27px; margin: 0; }
#at-sakura .at-shelf-actions .lucide { width: 15px; height: 15px; }
#at-sakura button:disabled { opacity: .5; cursor: default; }
#at-program-list { display: flex; width: 100%; min-width: 0; align-items: stretch; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #cca9b5 transparent; padding: 3px 2px 6px; }
#at-sakura .at-program-tab { display: flex; align-items: center; gap: 10px; flex: none; min-width: 155px; max-width: min(252px,90%); min-height: 56px; padding: 7px 16px 7px 8px; border: 1px solid var(--at-line); border-radius: 9px; background: #fffaf7; text-align: left; color: var(--at-ink); scroll-snap-align: start; }
#at-sakura .at-program-tab[aria-selected="true"] { border-color: #bb8097; background: #f6e7eb; box-shadow: inset 0 -2px #aa667f; }
#at-sakura .at-program-tab:hover { border-color: var(--at-rose); }
#at-sakura .at-program-tab:focus-visible { outline-offset: -2px; }
.at-program-tab .at-program-tile { height: 37px; width: 39px; font-size: 16px; }
.at-tab-name { min-width: 0; display: grid; gap: 1px; }
.at-tab-name strong, .at-tab-name small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.at-tab-name strong { font-size: 13px; }.at-tab-name small { font-size: 10px; color: var(--at-muted); }
#at-sakura[data-page="library"] .at-cover { height: clamp(200px,19.3cqw,272px); }
#at-sakura[data-page="library"] .at-feature { padding-block: 17px; }
#at-sakura[data-page="library"] .at-feature h3 { font-size: clamp(31px,3.55cqw,48px); overflow-wrap: anywhere; }
#at-sakura[data-page="library"] .at-feature p { font-size: clamp(19px,1.9cqw,26px); }
#at-sakura[data-page="library"] .at-launch { margin-top: 14px; min-height: 37px; }
.at-feature { max-width: 95%; }
#at-library.at-panel { margin-top: 15px; }
#at-sakura .at-program-description { font-size: 14px; line-height: 1.7; margin-bottom: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.at-resource-summary { display: flex; align-items: start; flex-wrap: wrap; gap: 12px clamp(15px,4cqw,65px); padding: 7px 0 15px; }
.at-resource-summary div { display: grid; gap: 3px; }.at-resource-summary small { color: var(--at-muted); font-size: 12px; }
.at-resource-summary strong { font: 550 clamp(18px,1.85cqw,25px)/1.16 var(--at-sans); font-variant-numeric: tabular-nums; color: var(--at-ink); }
.at-fold { border-top: 1px solid var(--at-line); }
.at-fold:last-child { border-bottom: 1px solid var(--at-line); }
.at-fold summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.at-fold summary::-webkit-details-marker { display: none; }
.at-fold summary strong { flex: 1; font-size: 14px; }.at-fold summary span { color: var(--at-muted); font-size: 12px; }
.at-fold summary b { width: 16px; text-align:center; color: var(--at-wine); font-size: 17px; transition: transform .17s; }.at-fold[open] summary b{transform:rotate(180deg)}
.at-map-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,232px),1fr)); gap: 6px; }
.at-map-choice { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--at-line); border-radius: 6px; min-width:0; }
.at-map-choice input { accent-color: var(--at-wine); }.at-map-choice span { display: grid; min-width: 0; }.at-map-choice strong { font-size: 12px; font-weight: 570; }.at-map-choice small { font-size: 10px; color: var(--at-muted); }.at-map-status { margin-left:auto;text-align:right; }
#at-sakura .at-map-tally, #at-sakura .at-info-line { color:var(--at-muted); font-size:12px; line-height:1.7; padding:8px 0; overflow-wrap:anywhere; }
.at-kv { display: grid; grid-template-columns: minmax(70px,.6fr) minmax(0,1.7fr); margin: 2px 0 12px; gap: 5px 12px; font-size: 12px; line-height: 1.65; }
.at-kv dt { color: var(--at-muted); }.at-kv dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.at-fingerprint { padding: 9px 0; border-top:1px dashed var(--at-line); }
.at-file-head { display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px; }
.at-file-head strong { font-size:13px; }.at-file-head span { font-size:11px;color:var(--at-wine); }
.at-fingerprint .at-kv { grid-template-columns:minmax(70px,110px) minmax(0,1fr);margin:4px 0 0; }
.at-fingerprint dd,.at-map-hashes dd { font:12px/1.65 "IBM Plex Mono",Consolas,monospace;user-select:all; }
#at-sakura .at-dialog p { margin-bottom: 12px; }.at-dialog .at-kv { margin: 6px 0 17px; }
.at-settings { min-width: 0; }
#at-sakura .at-settings .at-section-head { align-items:center; gap:10px; margin-bottom:15px; }
#at-sakura .at-settings .at-section-head p,.at-setting-row small { margin-top:4px; color:var(--at-muted); font-size:12px; line-height:1.6; }
#at-sakura .at-secondary { display:inline-flex; align-items:center; justify-content:center; flex:none; gap:8px; min-height:36px; padding:0 12px; background:var(--at-wine); color:#fffaf6; border:1px solid transparent; border-radius:7px; font-size:13px; font-weight:600; }
#at-sakura .at-secondary .lucide { width:15px;height:15px; }
.at-skin-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(185px,100%),1fr)); gap:12px; }
#at-sakura .at-skin-card { position:relative; align-self:start; padding:0; min-width:0; overflow:hidden; background:#fffaf7; color:var(--at-ink); border:1px solid var(--at-line); border-radius:10px; text-align:left; }
#at-sakura .at-skin-card[aria-pressed="true"] { border-color:var(--at-rose); box-shadow:0 0 0 1px var(--at-rose); }
.at-skin-card img { display:block; width:100%; aspect-ratio:2.1; object-fit:cover; }.at-skin-caption { display:flex; align-items:baseline; justify-content:space-between; gap:5px; padding:9px 10px; }
.at-skin-caption strong { min-width:0; overflow-wrap:anywhere; font-size:13px; }.at-skin-caption small { color:var(--at-muted);font-size:10px; }
.at-skin-active { position:absolute;right:7px;top:7px;padding:2px 6px;border-radius:5px;color:#fff;background:#503445cf;font:600 10px/1.6 var(--at-sans); }
.at-skin-help,.at-backend-link,.at-setting-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.at-skin-help { flex-wrap:wrap; margin-top:13px; font-size:12px; color:var(--at-muted); }
#at-sakura a { color:var(--at-wine); text-underline-offset:3px; }
.at-pref-group { margin:27px 0 18px; }
#at-sakura .at-pref-group h3 { margin:0 0 10px; font-size:16px; }
.at-setting-row { border-top:1px solid var(--at-line); border-bottom:1px solid var(--at-line); padding:13px 0; }
.at-setting-row label,.at-setting-row small { display:block; }.at-setting-row label { font-weight:600; font-size:13px; }
.at-setting-row select { color:var(--at-ink); min-height:35px; border:1px solid var(--at-line); background:var(--at-paper); border-radius:6px; font:inherit; font-size:12px; padding:4px 5px; }
.at-backend-link { font-size:12px; color:var(--at-muted); }
/* The DreamSkin renderer owns its DSH variables. The launcher consumes the
   matching roles on its own controls and uses the author's background focus. */
#at-sakura[data-custom-skin] {
  --at-paper:var(--at-skin-base,var(--ds-theme-color-background,#fcf8f4)); --at-ink:var(--ds-theme-color-text,var(--at-skin-ink,#382e37));
  --at-muted:var(--ds-theme-color-muted,var(--at-skin-muted,#736872)); --at-wine:var(--ds-theme-color-accent,var(--at-skin-accent,#89405a));
  --at-rose:var(--ds-theme-color-accent-alt,var(--at-wine)); --at-line:var(--ds-theme-color-line,var(--at-skin-line,#e1d7d5));
  --at-panel:var(--at-skin-panel,var(--at-paper)); --at-alt:var(--at-skin-panel-alt,var(--at-panel));
}
#at-sakura[data-custom-skin] .at-window { border-color:var(--at-line); }
#at-sakura[data-custom-skin] .at-side, #at-sakura[data-custom-skin] .at-dialog { background:var(--at-panel); border-color:var(--at-line); }
#at-sakura[data-custom-skin] .at-poster, #at-sakura[data-custom-skin] .at-cover { background:var(--at-paper); }
#at-sakura[data-custom-skin] :is(.at-poster,.at-cover)::before { content:""; position:absolute; inset:0; pointer-events:none; background:var(--at-custom-art) var(--at-custom-position)/cover no-repeat; filter:blur(var(--at-custom-blur)); opacity:var(--at-custom-opacity); }
#at-sakura[data-custom-skin] .at-cover::before { opacity:var(--at-custom-cover-opacity); }
#at-sakura[data-custom-skin] :is(.at-scene,.at-motion,.at-emboss) { display:none; }
#at-sakura[data-custom-skin] .at-scene-title { white-space:normal; overflow-wrap:anywhere; font-size:clamp(36px,5.3cqw,72px); }
#at-sakura[data-custom-skin] :is(.at-input-wrap,.at-program-tab,.at-skin-card,.at-story) { background:var(--at-panel);border-color:var(--at-line);color:var(--at-ink); }
#at-sakura[data-custom-skin] :is(.at-nav-item,.at-label-row label,.at-side-brand span,.at-lockup span,.at-local,.at-who small,.at-story p,.at-input-wrap input,.at-eye,.at-icon-btn,.at-muted-btn) { color:var(--at-ink); }
#at-sakura[data-custom-skin] .at-input-wrap input::placeholder { color:var(--at-muted); }
#at-sakura[data-custom-skin] :is(.at-nav-item[aria-current="page"],.at-program-tab[aria-selected="true"],.at-nav-item:hover,.at-eye:hover,.at-icon-btn:hover,.at-modal-symbol,.at-story-icon,.at-avatar) { background:var(--at-alt);color:var(--at-wine); border-color:var(--at-wine); }
#at-sakura[data-custom-skin] :is(.at-primary,.at-secondary) { background:var(--at-wine); color:var(--at-paper); }
#at-sakura[data-custom-skin] :is(.at-side-brand img,.at-lockup img) { object-position: 0 -999px; background: linear-gradient(105deg,var(--at-ink) 0 77%,var(--at-rose) 81%); mask: url("assets/at-logo.svg") center / contain no-repeat; }
#at-sakura[data-custom-skin] .at-userbar { border-color:var(--at-line); }
@container(max-width:690px) {
  .at-main-head{margin-bottom:12px}.at-shelf{margin-bottom:10px}
  #at-sakura .at-program-tab{min-width:135px;min-height:47px;padding:5px 8px}
  .at-program-tab .at-program-tile{width:30px;height:32px;font-size:13px}
  #at-sakura[data-page="library"] .at-cover{height:195px}
  .at-resource-summary{gap:9px 15px}.at-resource-summary small,.at-fold summary span,.at-settings .at-section-head p{font-size:11px}
  .at-kv{grid-template-columns:minmax(61px,.7fr) minmax(0,1.45fr)}
  .at-setting-row{flex-wrap:wrap}.at-skin-grid{grid-template-columns:repeat(auto-fill,minmax(min(154px,100%),1fr))}
}
.at-update-banner, .at-release { display:flex; align-items:baseline; flex-wrap:wrap; gap:7px 17px; padding:12px 16px; border:1px solid var(--at-line); background:var(--at-paper); color:var(--at-ink); font-size:13px; }
.at-update-banner { border-width:0 0 1px; }
.at-release { border-radius:8px; margin:8px 0 14px; }
.at-release small, .at-update-banner small { color:var(--at-muted); user-select:all; }
#at-sakura .at-release p { flex-basis:100%; margin:0; color:var(--at-muted); white-space:pre-wrap; overflow-wrap:anywhere; }
#at-update-info > p { margin:8px 0; font-size:12px; color:var(--at-muted); }
.at-update-link { font-weight:620; }
.at-release details { flex-basis:100%; font-size:12px; color:var(--at-muted); }
.at-release code { overflow-wrap:anywhere; user-select:all; }
.at-program-actions {display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:13px}
#at-sakura .at-program-actions #at-run-preview {margin:0;min-width:94px;background:#236c64;color:#fff;border:1px solid #dbefe9a6}
#at-sakura .at-program-actions #at-run-preview[data-state="active"] {background:#a3374c;color:#fff;border-color:#f9d7dfba}
.at-action-shape {display:block;width:12px;height:12px;background:currentColor;clip-path:polygon(15% 0,100% 50%,15% 100%)}
[data-state="active"]>.at-action-shape {clip-path:inset(0 round 2px)}
#at-sakura .at-program-actions .at-review {padding:6px 12px;min-height:35px;color:white;background:#19272cd9;border:1px solid #ffffff80;border-radius:7px;font-size:13px}
#at-run-note {display:inline-block;margin-top:6px;padding:1px 6px;border-radius:4px;background:#17262bd6;color:#fff;font-size:11px}
