:root {
  color-scheme: dark;
  font-family: "DM Sans", "Prompt", sans-serif;
  background: #11131a;
  color: #f2f1f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --surface: #181a23;
  --surface-soft: #1d202a;
  --line: #2a2d38;
  --muted: #898b99;
  --accent: #c5f36b;
  --accent-dark: #273414;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #11131a; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 3; width: 232px; padding: 27px 15px 18px;
  display: flex; flex-direction: column; background: #15171e; border-right: 1px solid #252832;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 40px; color: inherit; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 12px; color: #13170c; font-weight: 800; font-size: 19px; background: var(--accent); transform: rotate(-5deg); }
.brand strong { display: block; font-size: 16px; letter-spacing: -.5px; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; letter-spacing: .3px; }
.workspace-label, .eyebrow, .summary-label { color: #797b89; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.workspace-label { padding: 0 12px 12px; }
.nav-link { width: 100%; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 9px; padding: 11px 12px; margin-bottom: 5px; background: transparent; color: #a9aab5; text-align: left; font-size: 12px; }
.nav-link:hover, .nav-link.active { background: #23262f; color: #f5f5f7; }
.nav-link.active { box-shadow: inset 2px 0 var(--accent); }
.nav-icon { width: 17px; color: #9da0ab; font-size: 16px; }
.nav-count { margin-left: auto; min-width: 22px; padding: 3px 6px; border-radius: 99px; background: #30333e; color: #bec0c8; text-align: center; font-size: 10px; }
.sidebar-bottom { margin-top: auto; display: flex; align-items: center; gap: 7px; padding: 12px 7px 0; border-top: 1px solid #292b35; color: #8e909b; font-size: 10px; }
.online-dot { width: 6px; height: 6px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #95d94b; box-shadow: 0 0 9px #95d94b77; }
.server-status { margin-left: auto; color: #b6e87a; font-size: 9px; }

.main-content { max-width: 1550px; margin-left: 232px; padding: 0 54px; }
.topbar { height: 72px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #232630; }
.breadcrumbs { color: #858794; font-size: 11px; }
.breadcrumbs span { margin: 0 8px; color: #4a4c57; }
.breadcrumbs strong { color: #dbdce1; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.saved-indicator { display: inline-flex; align-items: center; gap: 7px; color: #a7a9b3; font-size: 10px; }
.avatar { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #3c414d; border-radius: 50%; color: #c4f16d; font-size: 11px; font-weight: 700; }

.welcome { min-height: 358px; display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: center; gap: 35px; border-bottom: 1px solid #232630; overflow: hidden; }
.welcome-copy { padding: 47px 0 50px; }
.eyebrow { color: #a2c46b; }
.spark { margin-right: 6px; color: var(--accent); font-size: 14px; }
h1 { margin: 18px 0 13px; font-size: clamp(42px, 5vw, 65px); line-height: .99; letter-spacing: -3.2px; font-weight: 600; }
h1 span { color: var(--accent); }
.welcome-copy > p { max-width: 490px; margin: 0; color: #999ba6; font-family: "Prompt", sans-serif; font-size: 12px; line-height: 1.9; }
.welcome-actions { display: flex; align-items: center; gap: 17px; margin-top: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 7px; padding: 11px 15px; font-size: 11px; font-weight: 700; transition: transform .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #181d10; }
.button-primary:hover { background: #d3fa82; }
.button-primary:disabled { cursor: not-allowed; transform: none; opacity: .43; }
.button-quiet { border: 1px solid #353843; background: transparent; color: #b8bac3; }
.button-quiet:hover { background: #20232c; }
.subtle-copy { color: #767986; font-size: 10px; }

.welcome-art { height: 300px; position: relative; display: grid; place-items: center; }
.art-orbit { position: absolute; width: 310px; height: 195px; border: 1px solid #30333d; border-radius: 50%; transform: rotate(-22deg); }
.orbit-two { width: 275px; height: 224px; transform: rotate(38deg); border-color: #242832; }
.art-card { position: absolute; width: 190px; height: 230px; padding: 20px; border: 1px solid #42434d; border-radius: 17px; background: linear-gradient(145deg, #34303c, #1d1b25); box-shadow: 0 22px 65px #0008; }
.card-back { margin: 37px 0 0 -125px; transform: rotate(-12deg); opacity: .74; }
.card-back span { color: #f5d774; font-size: 9px; letter-spacing: 1px; }
.card-back b { position: absolute; right: 22px; bottom: 17px; color: #f5a4ce; font-size: 54px; }
.card-front { z-index: 1; margin: 0 0 0 39px; transform: rotate(7deg); background: linear-gradient(150deg, #35432d, #202a1c 60%, #29232b); }
.art-top { display: flex; justify-content: space-between; color: #becb98; font-size: 7px; font-weight: 700; letter-spacing: .5px; }
.art-emoji { margin: 18px 0 7px; font-size: 43px; }
.art-card strong { display: block; font-size: 18px; line-height: 1.1; letter-spacing: -.5px; }
.art-progress { height: 5px; margin-top: 20px; border-radius: 9px; background: #ffffff20; }
.art-progress i { width: 63%; height: 100%; display: block; border-radius: inherit; background: #d7ed6c; }
.art-card small { display: block; margin-top: 10px; color: #b1b8a2; font-size: 8px; }
.float-sticker { position: absolute; color: #c9ef74; font-size: 29px; }
.sticker-a { top: 38px; left: 67px; }
.sticker-b { top: 84px; right: 5px; color: #f59ccc; font-size: 34px; }
.sticker-c { bottom: 24px; left: 48px; color: #9bd9e7; }

.library-section, .project-section, .recent-section { padding-top: 43px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading h2 { margin: 8px 0 5px; font-size: 23px; letter-spacing: -.8px; font-weight: 600; }
.section-heading p { max-width: 700px; margin: 0; color: #858894; font-family: "Prompt", sans-serif; font-size: 11px; line-height: 1.7; }
.search-wrap { width: 225px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #333641; border-radius: 7px; color: #9698a3; }
.search-wrap > span { font-size: 18px; }
.search-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #e6e7ea; font-size: 10px; }
.search-wrap input::placeholder { color: #777a86; }
kbd { border: 1px solid #383b45; border-radius: 4px; padding: 2px 5px; color: #8d909b; font-size: 9px; }
.filter-row { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 15px; }
.filter-chips { display: flex; gap: 7px; overflow-x: auto; }
.filter-chip { white-space: nowrap; border: 1px solid #30333d; border-radius: 99px; padding: 7px 11px; background: transparent; color: #999ba6; font-size: 9px; }
.filter-chip:hover { border-color: #565b66; color: #eceef0; }
.filter-chip.selected { border-color: #badc70; background: #20291a; color: #d0f18b; }
.filter-chip span { margin-left: 6px; opacity: .68; }
.sort-label { color: #6f727f; font-size: 8px; letter-spacing: 1px; }
.sort-label strong { margin: 0 8px; color: #c1c3ca; font-size: 10px; letter-spacing: 0; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.template-card { min-width: 0; overflow: hidden; border: 1px solid #2a2d37; border-radius: 10px; background: #181a22; transition: border-color .2s, transform .2s, box-shadow .2s; }
.template-card:hover { transform: translateY(-2px); border-color: #555b66; box-shadow: 0 10px 30px #0002; }
.template-card.is-selected { border-color: #a6d45c; box-shadow: 0 0 0 1px #a6d45c33; }
.template-preview-screen { position: relative; height: 530px; overflow: hidden; border-bottom: 1px solid #e8e9f0; background: #f5f4fb; }
.template-preview-screen iframe { position: absolute; top: 0; left: 50%; width: 390px; height: 820px; border: 0; pointer-events: none; transform: translateX(-50%) scale(.62); transform-origin: top center; }
.preview-index { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 4px 6px; border: 1px solid #ffffff80; border-radius: 5px; background: #38354dbf; color: #fff; font-size: 8px; }
.card-content { padding: 15px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.category-tag { color: #a5c96b; font-size: 8px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.style-index { color: #777a85; font-size: 9px; }
.card-content h3 { margin: 7px 0 4px; overflow: hidden; color: #e9e9ed; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.card-content p { min-height: 30px; margin: 0; overflow: hidden; color: #888b97; font-family: "Prompt", sans-serif; font-size: 9px; line-height: 1.7; }
.card-button { width: 100%; margin-top: 12px; border: 1px solid #383b46; border-radius: 5px; padding: 9px 5px; background: #22242d; color: #d1d2d8; font-size: 9px; font-weight: 600; }
.card-button:hover { border-color: #626671; background: #292c36; }
.card-button.add { border-color: #556b37; background: #27331c; color: #d5f391; }
.card-button.add:hover { background: #354621; }
.loading-state, .empty-search { grid-column: 1 / -1; padding: 42px; border: 1px dashed #363943; border-radius: 9px; color: #8a8d98; text-align: center; font-size: 11px; }

.heading-counter { display: inline-grid; min-width: 24px; height: 24px; place-items: center; vertical-align: 3px; border-radius: 50%; background: #29321d; color: #d2f28d; font-size: 10px; letter-spacing: 0; }
.project-actions { display: flex; gap: 8px; }
.project-actions .button { padding: 10px 13px; font-size: 10px; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 15px; margin-top: 18px; }
.selected-pages { min-height: 180px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid #2a2d37; border-radius: 9px; background: #171920; }
.empty-selection { min-height: 154px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; color: #888b96; text-align: center; }
.empty-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px dashed #454852; border-radius: 9px; color: #b4d675; font-size: 17px; }
.empty-selection strong { color: #c5c6ce; font-size: 11px; }
.empty-selection > span:last-child { font-size: 9px; }
.selected-page { display: flex; align-items: center; gap: 11px; padding: 9px; border: 1px solid #2c2f39; border-radius: 7px; background: #1c1e27; }
.selected-thumb { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; background: linear-gradient(140deg, #374530, #25232d); font-size: 22px; }
.selected-page-copy { min-width: 0; flex: 1; }
.selected-page-copy strong { display: block; overflow: hidden; color: #e5e6e9; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.selected-page-copy small { display: block; margin-top: 5px; color: #878995; font-size: 9px; }
.move-controls { display: flex; gap: 3px; }
.icon-button { width: 25px; height: 25px; border: 1px solid #373a44; border-radius: 5px; background: transparent; color: #aaacb5; font-size: 11px; }
.icon-button:hover { border-color: #9abe62; color: #d6f194; }
.icon-button.remove:hover { border-color: #8c4d58; color: #f09bab; }
.project-summary { padding: 15px; border: 1px solid #2a2d37; border-radius: 9px; background: #191b23; }
.summary-label { margin-bottom: 17px; }
.field-label { display: block; margin-bottom: 7px; color: #aeb0b9; font-size: 9px; }
.project-input { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #363943; border-radius: 5px; outline: 0; background: #13151c; color: #eeeeef; font-size: 10px; }
.project-input:focus { border-color: #9cbe65; }
.project-input::placeholder { color: #6d707b; }
.summary-divider { height: 1px; margin: 16px 0 11px; background: #2d303a; }
.summary-line { display: flex; justify-content: space-between; margin: 9px 0; color: #92949e; font-size: 9px; }
.summary-line strong { color: #e1e2e5; font-size: 9px; font-weight: 600; }
.summary-note { display: flex; gap: 7px; margin-top: 16px; padding: 9px; border-radius: 6px; background: #23291b; color: #aebc8e; font-family: "Prompt", sans-serif; font-size: 8px; line-height: 1.6; }
.summary-note span { color: #d5f18e; font-size: 12px; }

.recent-section { padding-bottom: 45px; }
.compact-heading { align-items: end; }
.compact-heading h2 { margin-bottom: 0; }
.recent-list { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.recent-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #2b2e38; border-radius: 7px; background: #181a22; }
.recent-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: #28321f; color: #c7ec79; font-size: 13px; }
.recent-copy { min-width: 0; flex: 1; }
.recent-copy strong { display: block; overflow: hidden; color: #dfe0e4; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.recent-copy span { display: block; margin-top: 4px; color: #858894; font-size: 9px; }
.recent-time { color: #858894; font-size: 9px; }
.empty-recent { padding: 14px; border: 1px dashed #30333d; border-radius: 7px; color: #797c87; font-size: 10px; text-align: center; }
.page-footer { min-height: 55px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #242731; color: #777a85; font-size: 9px; }
.page-footer > span:first-child { display: flex; align-items: center; gap: 8px; }
.brand-mark.mini { width: 19px; height: 19px; border-radius: 6px; font-size: 11px; }

.toast { position: fixed; z-index: 10; right: 26px; bottom: 24px; max-width: min(390px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #4f6035; border-radius: 8px; background: #242d1b; color: #e2f5bf; box-shadow: 0 10px 32px #0007; font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
[hidden] { display: none !important; }
.feature-section { padding-top: 40px; }
.feature-availability { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #e3e5ed; border-radius: 99px; background: #fff; color: #777b8d; font-size: 9px; white-space: nowrap; }
.feature-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .9fr); gap: 0; margin-top: 18px; overflow: hidden; border: 1px solid #e3e4eb; border-radius: 11px; background: #fff; box-shadow: 0 8px 24px #30334a0b; }
.feature-selection-check { position: absolute; z-index: 4; top: 14px; right: 14px; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #6f5ce7; box-shadow: 0 2px 8px #25204b40; color: #fff; font-size: 16px; font-weight: 700; }
.feature-preview { position: relative; min-height: 360px; display: flex; justify-content: center; align-items: center; overflow: hidden; background: #f5f4fb; }
.feature-preview iframe { z-index: 1; width: 390px; height: 820px; flex: 0 0 auto; border: 1px solid #cbc9dc; border-radius: 22px; background: #0b0d14; box-shadow: 0 17px 38px #26243d25; pointer-events: none; transform: scale(.43); }
.feature-preview-label { position: absolute; z-index: 2; right: 15px; bottom: 13px; padding: 6px 8px; border: 1px solid #e4e1f4; border-radius: 5px; background: #ffffffeb; color: #6558cb; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 30px clamp(22px, 4vw, 46px); }
.feature-card-meta { width: 100%; display: flex; justify-content: space-between; gap: 8px; color: #8b8ea0; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.feature-status { color: #528b57; }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 25px 0 15px; border-radius: 12px; background: #f0efff; color: #7567e8; font-size: 21px; }
.feature-copy .category-tag { font-size: 9px; }
.feature-copy h3 { margin: 8px 0; color: #292b3e; font-size: 26px; letter-spacing: -.8px; }
.feature-copy h3 span { margin-left: 5px; color: #818496; font-family: "Prompt", sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.feature-copy > p { max-width: 430px; margin: 0; color: #777b8d; font-family: "Prompt", sans-serif; font-size: 11px; line-height: 1.9; }
.feature-stats { width: 100%; display: flex; gap: 0; margin: 21px 0 22px; padding: 13px 0; border-top: 1px solid #ececf2; border-bottom: 1px solid #ececf2; }
.feature-stats div { min-width: 75px; display: flex; flex-direction: column; gap: 4px; padding: 0 15px; border-left: 1px solid #ececf2; }
.feature-stats div:first-child { padding-left: 0; border-left: 0; }
.feature-stats strong { color: #34364a; font-size: 14px; }
.feature-stats span { color: #898c9b; font-size: 8px; }
.feature-open { font-family: "Prompt", sans-serif; }
.feature-footnote { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: #8b8e9d; font-family: "Prompt", sans-serif; font-size: 9px; }
.feature-footnote span { color: #7567e8; }
.back-feature { margin-right: 7px; color: #7567e8; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0; vertical-align: 3px; }
.back-feature:hover { color: #5142ca; }
@media (max-width: 1120px) {
  .main-content { padding: 0 32px; }
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome { grid-template-columns: minmax(0, 1fr) 300px; }
  .feature-card { grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); }
}
@media (max-width: 760px) {
  .sidebar { position: sticky; inset: 0 0 auto; width: 100%; height: 58px; flex-direction: row; align-items: center; padding: 0 14px; border-right: 0; border-bottom: 1px solid #252832; }
  .brand { padding: 0; }
  .brand-mark { width: 29px; height: 29px; }
  .brand strong { font-size: 13px; }
  .brand small, .workspace-label, .sidebar-bottom { display: none; }
  .sidebar .nav-link { width: auto; margin: 0 0 0 auto; padding: 8px 10px; font-size: 0; }
  .sidebar .nav-link + .nav-link { margin-left: 4px; }
  .nav-icon { width: auto; font-size: 15px; }
  .nav-count { min-width: 18px; padding: 2px 4px; font-size: 8px; }
  .main-content { margin: 0; padding: 0 17px; }
  .topbar { height: 50px; }
  .saved-indicator { font-size: 0; }
  .saved-indicator .online-dot { width: 7px; height: 7px; }
  .welcome { min-height: auto; grid-template-columns: 1fr; gap: 0; }
  .welcome-copy { padding: 34px 0 12px; }
  h1 { font-size: 49px; }
  .welcome-art { height: 225px; margin-top: -7px; }
  .art-card { transform: scale(.85) rotate(7deg); }
  .card-back { transform: scale(.85) rotate(-12deg); }
  .feature-section { padding-top: 30px; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-preview { min-height: 300px; }
  .feature-preview iframe { transform: scale(.34); }
  .feature-copy { padding: 22px; }
  .feature-icon { margin-top: 18px; }
  .feature-copy h3 { font-size: 23px; }
  .feature-copy h3 span { display: block; margin: 4px 0 0; }
  .feature-footnote { align-items: flex-start; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading h2 { font-size: 21px; }
  .search-wrap { width: 100%; }
  .filter-row { align-items: start; flex-direction: column; gap: 13px; }
  .filter-chips { max-width: 100%; }
  .sort-label { display: none; }
  .template-grid { grid-template-columns: 1fr; }
  .template-preview-screen { height: 600px; }
  .template-preview-screen iframe { transform: translateX(-50%) scale(.72); }
  .project-layout { grid-template-columns: 1fr; }
  .project-heading { flex-direction: column; align-items: stretch; }
  .project-actions { justify-content: flex-end; }
  .recent-time { display: none; }
  .page-footer { align-items: start; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 0; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .sidebar { width: 190px; }
  .main-content { margin-left: 190px; padding: 0 22px; }
  .welcome { grid-template-columns: 1fr 240px; }
  .welcome-art { transform: scale(.85); }
  .project-layout { grid-template-columns: 1fr; }
}

:root {
  color-scheme: light;
  background: #f5f6fa;
  color: #242637;
  --surface: #ffffff;
  --surface-soft: #f8f8fc;
  --line: #e6e7ef;
  --muted: #777b8d;
  --accent: #7567e8;
  --accent-dark: #f0efff;
}

body { background: #f5f6fa; color: #242637; }
.sidebar { background: #fff; border-color: #e8e9f0; box-shadow: 2px 0 12px #292d3a08; }
.brand-mark { color: #fff; background: #7567e8; transform: none; }
.brand strong { color: #252638; }
.brand small, .workspace-label, .subtle-copy { color: #85899a; }
.workspace-label, .eyebrow, .summary-label { color: #898ba0; }
.nav-link { color: #73778a; }
.nav-link:hover, .nav-link.active { background: #f1f0ff; color: #5345c7; }
.nav-link.active { box-shadow: inset 2px 0 #7567e8; }
.nav-icon { color: #777b91; }
.nav-count { background: #ecebfa; color: #6558cb; }
.sidebar-bottom { border-color: #ebecf2; color: #777b8d; }
.server-status { color: #4b8a52; }
.main-content { color: #252638; }
.topbar { border-color: #e5e6ed; }
.breadcrumbs { color: #85899a; }
.breadcrumbs span { color: #b7b9c5; }
.breadcrumbs strong { color: #383a4d; }
.saved-indicator { color: #777b8d; }
.avatar { border-color: #dedff0; background: #f0efff; color: #6558d4; }
.welcome { border-color: #e5e6ed; }
.eyebrow { color: #7567d8; }
.spark, .float-sticker { color: #7567e8; }
h1 { color: #26283b; }
h1 span { color: #7567e8; }
.welcome-copy > p, .section-heading p { color: #777b8d; }
.button-primary { background: #7567e8; color: #fff; }
.button-primary:hover { background: #6557d8; }
.button-primary:disabled { opacity: .42; }
.button-quiet { border-color: #dedfe8; background: #fff; color: #5e6274; }
.button-quiet:hover { background: #f4f3fc; }
.art-orbit { border-color: #e2e1f1; }
.orbit-two { border-color: #ecebf5; }
.art-card { border-color: #e5e3f2; background: linear-gradient(145deg, #fff, #f3f1ff); box-shadow: 0 22px 55px #4b477018; }
.card-front { background: linear-gradient(150deg, #e9e7ff, #f8f4ff 60%, #edfbf5); }
.art-top { color: #75728f; }
.art-card strong { color: #343148; }
.art-progress { background: #dad9e7; }
.art-progress i { background: #8d7cf3; }
.art-card small { color: #77778c; }
.sticker-b { color: #e98ab4; }
.sticker-c { color: #52a5b7; }
.section-heading h2 { color: #292b3e; }
.search-wrap { border-color: #dedfe8; background: #fff; color: #85899a; }
.search-wrap input { color: #303246; }
.search-wrap input::placeholder { color: #a0a3b0; }
kbd { border-color: #e0e1e9; color: #85899a; }
.filter-chip { border-color: #e0e1e9; background: #fff; color: #73778a; }
.filter-chip:hover { border-color: #c5c1ef; color: #5146ba; }
.filter-chip.selected { border-color: #c9c4fa; background: #f0efff; color: #5b4dcc; }
.sort-label { color: #9295a3; }
.sort-label strong { color: #4e5062; }
.template-card { border-color: #e5e6ed; background: #fff; box-shadow: 0 4px 14px #2c31500a; }
.template-card:hover { border-color: #c9c5eb; box-shadow: 0 12px 28px #2c315012; }
.template-card.is-selected { border-color: #887bea; box-shadow: 0 0 0 2px #887bea20; }
.template-preview-screen { border-color: #e9e7f2; background: #f7f6fc; }
.category-tag { color: #7567d8; }
.style-index { color: #979aa8; }
.card-content h3 { color: #35374a; }
.card-content p { color: #7d8090; }
.card-button { border-color: #e0e1e9; background: #fff; color: #5c6072; }
.card-button:hover { border-color: #c6c2ef; background: #f8f7ff; }
.card-button.add { border-color: #d3cff7; background: #f0efff; color: #5c4fc4; }
.card-button.add:hover { background: #e7e5ff; }
.loading-state, .empty-search { border-color: #dfe0e9; color: #7e8293; }
.heading-counter { background: #eeedff; color: #6254cd; }
.selected-pages { border-color: #e3e4eb; background: #fff; }
.empty-selection { color: #85899a; }
.empty-icon { border-color: #d8d8e7; color: #7567e8; }
.empty-selection strong { color: #4e5062; }
.selected-page { border-color: #e6e6ee; background: #fafaff; }
.selected-thumb { background: linear-gradient(140deg, #efedff, #f4f9fa); }
.selected-page-copy strong { color: #37394c; }
.selected-page-copy small { color: #85899a; }
.icon-button { border-color: #e0e1e9; color: #74788a; }
.icon-button:hover { border-color: #aaa1ef; color: #6556d0; background: #f5f3ff; }
.icon-button.remove:hover { border-color: #efc3cb; color: #c75e70; background: #fff5f6; }
.project-summary { border-color: #e3e4eb; background: #fff; }
.field-label { color: #626679; }
.project-input { border-color: #dfe0e8; background: #fbfbfd; color: #34364a; }
.project-input:focus { border-color: #9487ed; box-shadow: 0 0 0 3px #7567e81a; }
.project-input::placeholder { color: #a1a4b0; }
.summary-divider { background: #ebebf1; }
.summary-line { color: #777b8d; }
.summary-line strong { color: #3c3e50; }
.summary-note { background: #f2f0ff; color: #67608f; }
.summary-note span { color: #7567e8; }
.recent-item { border-color: #e5e6ed; background: #fff; }
.recent-icon { background: #efedff; color: #6658d4; }
.recent-copy strong { color: #3a3c4e; }
.recent-copy span, .recent-time { color: #85899a; }
.empty-recent { border-color: #dedfe8; color: #85899a; }
.page-footer { border-color: #e5e6ed; color: #85899a; }
.brand-mark.mini { color: #fff; background: #7567e8; }
.toast { border-color: #d9d3ff; background: #fff; color: #5145bb; box-shadow: 0 10px 32px #30334a1a; }

.profile-screen { min-height: 100vh; display: grid; place-items: center; padding: 48px 24px; background: #f7f8fc; }
.profile-shell { width: min(920px, 100%); text-align: center; }
.profile-brand { width: max-content; margin: 0 auto 52px; padding: 0 !important; color: #252638; text-align: left; }
.profile-brand .brand-mark { color: #fff; background: #7567e8; }
.profile-shell > .eyebrow { margin-bottom: 10px; }
.profile-shell > h1 { margin: 0; color: #252638; font-size: clamp(32px, 5vw, 42px); letter-spacing: -1.4px; }
.profile-shell > p { margin: 10px auto 0; color: #777b8d; font-family: "Prompt", sans-serif; font-size: 13px; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); justify-content: center; gap: 25px; margin: 42px auto 0; }
.profile-card { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 0 8px; border: 0; background: transparent; color: #252638; }
.profile-avatar { width: 180px; height: 180px; display: grid; place-items: center; border: 1px solid #e4e6f0; border-radius: 30px; background: linear-gradient(145deg, #f1efff, #fff); box-shadow: 0 14px 30px #33365312; color: #7567e8; font-size: 56px; font-weight: 600; transition: transform .18s ease, box-shadow .18s ease; }
.profile-card:hover .profile-avatar { transform: translateY(-3px); box-shadow: 0 18px 34px #33365320; }
.profile-card > strong { max-width: 100%; overflow: hidden; font-family: "Prompt", sans-serif; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.profile-card > small { color: #7d8294; font-family: "Prompt", sans-serif; font-size: 11px; }
.profile-card-add .profile-avatar { border: 1px dashed #cbd1e1; background: #fff; color: #78849f; font-size: 44px; font-weight: 400; }
.profile-card-add:hover .profile-avatar { border-color: #a9a0ef; background: #f8f7ff; color: #6558cb; }
.profile-footnote { margin-top: 40px; color: #969aaa; font-size: 10px; }
.profile-loading, .profile-empty { grid-column: 1 / -1; padding: 26px; color: #777b8d; font-family: "Prompt", sans-serif; font-size: 12px; }
.profile-dialog { width: min(430px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid #e1e2eb; border-radius: 13px; background: #fff; color: #292b3e; box-shadow: 0 24px 80px #292d3a33; }
.profile-dialog::backdrop { background: #27283a66; backdrop-filter: blur(4px); }
.profile-form { padding: 25px; }
.profile-form h2 { margin: 8px 0 20px; font-size: 23px; }
.profile-form label { display: block; margin-bottom: 7px; color: #626679; font-family: "Prompt", sans-serif; font-size: 11px; }
.profile-form input { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #dfe0e8; border-radius: 7px; outline: 0; background: #fbfbfd; color: #34364a; font-family: "Prompt", sans-serif; font-size: 13px; }
.profile-form input:focus { border-color: #9487ed; box-shadow: 0 0 0 3px #7567e81a; }
.profile-error { margin: 9px 0 0; color: #bf4051; font-family: "Prompt", sans-serif; font-size: 11px; }
.profile-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; }
.profile-switch { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e1e2eb; border-radius: 99px; padding: 5px 9px 5px 5px; background: #fff; color: #5d6072; font-size: 9px; }
.profile-switch:hover { border-color: #c9c4f2; background: #f8f7ff; }
.profile-switch-avatar { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #f0efff; color: #6558cb; font-weight: 700; }

@media (max-width: 760px) {
  .profile-screen { padding: 32px 18px; }
  .profile-brand { margin-bottom: 42px; }
  .profile-grid { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 20px 14px; margin-top: 32px; }
  .profile-avatar { width: min(100%, 155px); height: 155px; border-radius: 26px; font-size: 48px; }
  .profile-switch { gap: 5px; padding-right: 7px; }
  .profile-switch > span:nth-child(2) { max-width: 75px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile-switch > span:last-child { display: none; }
  .topbar-right { gap: 9px; }
}

.feature-card + .feature-card { margin-top: 14px; }
.feature-icon-layout { background: #eaf5fc; color: #2781b8; }
.feature-preview-layout { background: #f0f7fc; }
.feature-preview-layout .feature-preview-label { border-color: #d7e8f4; color: #2879a8; }
.template-preview-screen.layout-preview { background: #eaf3fa; }
.layout-card.is-selected { border-color: #5aa7d8; box-shadow: 0 0 0 2px #5aa7d820; }
.card-button:disabled { cursor: not-allowed; opacity: .7; }
#summary-template-types { max-width: 150px; text-align: right; }
.feature-preview-layout iframe { width: 375px; height: 812px; transform: scale(.44); }
.template-preview-screen.layout-preview iframe { width: 375px; height: 812px; transform: translateX(-50%) scale(.645); }
.template-preview-screen.has-selection .preview-index { right: auto; left: 10px; }
.selection-check { position: absolute; z-index: 3; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #6f5ce7; box-shadow: 0 2px 8px #25204b40; color: #fff; font-size: 15px; font-weight: 700; }

@media (max-width: 760px) {
  .feature-preview-layout iframe { transform: scale(.35); }
  .template-preview-screen.layout-preview iframe { transform: translateX(-50%) scale(.72); }
}
