@media screen {
/* Celestial design system. Layout hooks stay scoped to the public application. */
.celestial-site {
  --atlas-gold: #d9b67b;
  --atlas-line: rgba(180,139,80,.33);
  --atlas-glass: linear-gradient(125deg,rgba(255,251,240,.66),rgba(255,242,218,.32));
  --atlas-shadow: 0 12px 36px rgba(69,45,23,.09), inset 0 1px 0 rgba(255,255,255,.65);
  --atlas-radius: 18px;
  --atlas-font: 'Noto Serif SC','Songti SC',Georgia,serif;
}
.celestial-site *, .celestial-site *::before, .celestial-site *::after { box-sizing: border-box; }
.celestial-site :is(h1,h2,h3,h4) { font-family: var(--atlas-font); font-weight: 500; }
.celestial-site :is(a,button,input,textarea,select,summary):focus-visible { outline: 2px solid #a57635; outline-offset: 4px; }
.celestial-site a { text-underline-offset: 4px; }
.celestial-site :is(button,input,textarea,select) { font-family: inherit; }
.celestial-site :is(button,a) { -webkit-tap-highlight-color: transparent; }
.celestial-site [hidden] { display: none !important; }
/* The interior illustration carries the palette across long working pages. */
[data-theme='twilight'] .celestial-site:not(.celestial-home) {
  --text: #3d332e; --muted: #786853; --accent: #92672e; --accent-hover: #624118;
  --bg: #eee1ca; --bg-alt: #eaddc5; --surface: rgba(255,248,231,.59); --surface-solid: #fbf5e9;
  --border: var(--atlas-line); --header-bg: rgba(255,247,231,.67);
  color: var(--text); line-height: 1.75; font-family: 'DM Sans','Noto Serif SC',system-ui,sans-serif;
  background: linear-gradient(110deg,rgba(252,245,229,.85),rgba(245,229,203,.61)),url('celestial-interior.webp') center top / cover fixed;
}
.celestial-site:not(.celestial-home) .bg-decoration { display: none; }
.celestial-site:not(.celestial-home) :is(.tools-main,.ocr-shell,.uc-shell,.slides-shell) { position: relative; z-index: 1; }
.celestial-site:not(.celestial-home) .site-header { background: var(--header-bg); border-color: var(--border); }
.celestial-site:not(.celestial-home) .site-header .container { width: min(94%,1440px); }
.celestial-site:not(.celestial-home) .site-header .nav { min-height: 72px; padding-block: 12px; }
.celestial-site .site-header .nav-links a { border: 0; }
.celestial-site:not(.celestial-home) .tools-main { width: min(92%,1200px); max-width: 1200px; padding: 40px 0 64px; margin: auto; }
.celestial-site:not(.celestial-home) :is(.uc-shell,.slides-shell) { width: min(94%,1360px); gap: 26px; padding-block: 40px 64px; }
.celestial-site:not(.celestial-home) .ocr-shell { width: min(92%,1200px); padding-block: 40px 64px; }
.celestial-site :is(.uc-main,.slides-main,.notes-main,.slides-content,.uc-content) { min-width: 0; }
/* Every utility shares the same glass, typography, controls and borders. */
[data-theme='twilight'] .celestial-site :is(.tool-card,.tool-panel,.hub-aside,.hub-note,.tp-aside,.tp-side-card,.uc-card,.uc-sidebar,.uc-stat-card,.uc-hero-card,.uc-page-header--hero,.uc-friend-card,.slides-card,.slides-sidebar,.slides-deck-card,.slides-qs-card,.slides-meta-card,.ocr-card,.ocr-hero-card,.ocr-panel,.notes-side,.xfer-panel,.xfer-login,.slides-editor-pane) {
  background: var(--atlas-glass); border: 1px solid var(--atlas-line); border-radius: var(--atlas-radius);
  box-shadow: var(--atlas-shadow); backdrop-filter: blur(16px) saturate(1.12); -webkit-backdrop-filter: blur(16px) saturate(1.12);
}
.celestial-site :is(.tool-panel,.uc-card,.slides-card,.ocr-card,.tp-side-card) { padding: 26px; }
.celestial-site :is(.uc-card h2,.slides-card__title,.ocr-card__title,.tp-side-title,.t-section) { font-family: var(--atlas-font); font-size: 19px; letter-spacing: .02em; }
.celestial-site :is(.tp-hero,.hub-hero) { position: relative; padding: 30px 0 34px; gap: 40px; margin-bottom: 20px; }
.celestial-site :is(.tp-hero,.hub-hero)::before { content: '✦'; position: absolute; top: -4px; left: 0; color: #b58a4b; font-size: 15px; }
.celestial-site :is(.tp-hero-copy h1,.hub-hero h1) { font-family: var(--atlas-font); font-size: clamp(30px,3.3vw,48px); font-weight: 500; line-height: 1.4; letter-spacing: .025em; }
.celestial-site :is(.lead,.tp-aside-desc,.hub-aside-desc) { line-height: 1.85; }
.celestial-site :is(.tp-eyebrow,.hub-eyebrow) { color: #9b7139; font-size: 11px; letter-spacing: .22em; }
.celestial-site :is(.tp-crumb,.tp-stats,.hub-stats) { border-color: var(--atlas-line); }
.celestial-site :is(.tp-chip,.tool-chip,.slides-theme-chip,.slides-badge,.ocr-badge) { border-radius: 20px; padding: 3px 11px; }
[data-theme='twilight'] .celestial-site :is(.tp-chip--dark,.tool-chip--on-dark) { background: #e8d3ac; border-color: #b99562; color: #694b23; }
.celestial-site :is(.hub-section,.hub-promo,.tp-promo) { margin-top: 34px; }
.celestial-site :is(.tp-promo,.hub-promo) { padding: 28px; border: 1px solid #c6a676; border-radius: 18px; background: linear-gradient(110deg,rgba(255,240,208,.76),rgba(216,186,138,.4)); box-shadow: var(--atlas-shadow); }
.celestial-site :is(.tp-promo h2,.hub-promo h2) { font-family: var(--atlas-font); font-size: 24px; }
.celestial-site .tool-card { position: relative; padding: 26px; transition: transform .2s,box-shadow .2s; overflow: hidden; }
.celestial-site .tool-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px #8d683625,inset 0 1px #fff9; }
.celestial-site .tool-card-head { margin-bottom: 24px; }
.celestial-site .tool-icon { color: #a27941; width: 31px; height: 31px; }
.celestial-site .tool-idx { color: #b5976c; font-family: var(--atlas-font); font-size: 25px; opacity: .6; }
.celestial-site .tool-card h2 { font-size: 23px; }
.celestial-site .tool-card--featured { background: linear-gradient(125deg,#f5dfb8c9,#bda17566); }
.celestial-site .tp-strip { border-top: 1px solid var(--atlas-line); padding-top: 26px; margin-top: 34px; gap: 9px; }
.celestial-site .tp-pill { border: 1px solid var(--atlas-line); border-radius: 24px; background: #fff6e64d; }
.celestial-site .tp-pill.is-current { background: #ddbd88; color: #513a1d; border-color: #c39a60; }
.celestial-site :is(.t-input,.t-textarea,.t-select,.uc-input,.uc-textarea,.uc-select,.slides-input,.slides-textarea,.slides-select,.ocr-input,.ocr-select,.xfer-input),
.celestial-site :is(.uc-form,.slides-field,.ocr-field,.comment-form,.auth-form) :where(input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='hidden']),textarea,select) {
  color: var(--text); background: rgba(255,252,244,.73); border: 1px solid #bca07870; border-radius: 11px; padding: 11px 14px; font-size: 14px; line-height: 1.65; max-width: 100%; box-shadow: inset 0 1px 3px #78532208;
}
.celestial-site :is(input,textarea)::placeholder { color: #9c8a74; }
.celestial-site :is(input[type='checkbox'],input[type='radio'],input[type='range']) { accent-color: #af8448; }
.celestial-site :is(.t-btn,.uc-btn--primary,.slides-btn--primary,.ocr-btn--primary,.xfer-send,.tp-promo-cta,.tools-cta:not(.tools-cta--ghost),.btn-primary) {
  border: 1px solid #c69d60; background: linear-gradient(120deg,#f3dcae,#c3995f); color: #4a3216; border-radius: 25px; box-shadow: inset 0 1px #fff8,0 4px 12px #9467271a; font-weight: 500;
}
.celestial-site :is(.uc-btn,.slides-btn,.ocr-btn,.t-btn,.t-btn-ghost,.tools-cta,.tp-promo-cta) { min-height: 40px; padding: 8px 19px; font-size: 14px; font-family: inherit; transition: background .2s,box-shadow .2s; text-decoration: none; }
.celestial-site :is(.t-btn-ghost,.uc-btn--ghost,.slides-btn--ghost,.ocr-btn--ghost,.tools-cta--ghost) { color: var(--accent); background: #fff8eb44; border: 1px solid var(--atlas-line); border-radius: 24px; }
.celestial-site :is(.slides-btn--danger,.uc-btn--danger,.ocr-icon-btn--danger) { color: #a54138; border-color: #b84d3c55; background: #fff2ee66; }
.celestial-site button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.celestial-site :is(.tp-dropzone,.ocr-dropzone) { border: 1px dashed #b28a51; background: linear-gradient(125deg,#fff8e990,#ecd5b333); border-radius: 16px; padding: 34px 22px; }
.celestial-site :is(.tp-dropzone__icon,.ocr-dropzone__icon) { color: #a97e42; background: #f4e1bd; border-radius: 50%; }
.celestial-site :is(.tp-dropzone:hover,.ocr-dropzone:hover) { border-color: #91682f; background-color: #f8ebd3; }
.celestial-site :is(.tp-side-card ul,.hub-note p,.uc-muted,.slides-muted,.ocr-muted,.t-muted) { color: var(--muted); }
.celestial-site :is(.tp-idx,.tp-pill-idx,.uc-sidebar-icon,.slides-sidebar-icon) { color: #a87e43; }
.celestial-site :is(.uc-sidebar,.slides-sidebar) { position: sticky; top: 96px; padding: 18px 12px; }
.celestial-site :is(.uc-sidebar-link,.slides-sidebar-link) { border-radius: 10px; padding: 11px 13px; }
.celestial-site :is(.uc-sidebar-link.is-active,.slides-sidebar-link.is-active) { color: #6c4a21; background: linear-gradient(110deg,#ead1a6b0,#ead1a620); box-shadow: inset 2px 0 #b48a4c; }
.celestial-site :is(.uc-page-header,.slides-page-header) { margin-bottom: 25px; padding-block: 12px; }
.celestial-site .uc-page-header--hero { padding: 26px; }
.celestial-site :is(.uc-page-title,.slides-page-title,.ocr-hero h1) { font-size: 30px; letter-spacing: .04em; }
.celestial-site :is(.uc-list-item,.ocr-task-list__item) { border-bottom: 1px solid var(--atlas-line); padding-block: 16px; }
.celestial-site :is(.uc-stat-card,.slides-deck-card,.slides-qs-card) { padding: 24px; }
.celestial-site :is(.uc-avatar,.uc-avatar--placeholder) { border: 1px solid #cba973; box-shadow: 0 0 0 4px #f9edda; }
.celestial-site :is(.uc-empty,.slides-empty,.xfer-empty,.notes-placeholder) { text-align: center; padding: 42px 25px; color: var(--muted); }
.celestial-site .slides-editor-pane { overflow: hidden; }
.celestial-site .slides-editor-pane__label { background: #e9d7b966; color: #7a5c32; border-bottom: 1px solid var(--atlas-line); }
.celestial-site .slides-editor-pane textarea { color: #3f352b; background: #fffaf0c9; }
.celestial-site .slides-editor-footer { padding-top: 20px; gap: 12px; }
.celestial-site .notes-wrap { gap: 20px; }
.celestial-site .notes-side { padding: 20px; }
.celestial-site .notes-item { border-radius: 10px; border-color: var(--atlas-line); }
.celestial-site .notes-item.active { background: #e8cfa17a; }
.celestial-site .xfer-toolbar { background: #efe0c64d; border-color: var(--atlas-line); padding: 18px; }
.celestial-site .xfer-composer { background: #fff5e280; border-color: var(--atlas-line); }
.celestial-site .xfer-msg .bubble { color: #4a3c2b; background: #fff8e9; border: 1px solid #cbae7c66; }
.celestial-site .xfer-msg.mine .bubble { color: #483017; background: linear-gradient(135deg,#efd5a8,#dfbc84); }
.celestial-site .xfer-seg .seg.active { background: #d5b27d; color: #483119; }
.celestial-site :is(.ocr-preview,.slides-qs-pre) { background: #fff8eb70; border-color: var(--atlas-line); }
.celestial-site :is(.t-tip,.ocr-error,.uc-field-error,.slides-field-error) { line-height: 1.7; }
/* Long-form homepage: a complete journey, with the same glass as the hero. */
.celestial-journey {
  position: relative; isolation: isolate; padding: 0 max(5%,calc((100% - 1280px)/2)) 68px;
  color: #fff3df; font-family: var(--atlas-font); margin-top: -10px;
  --atlas-line: rgba(250,224,180,.43);
  --atlas-glass: linear-gradient(125deg,rgba(255,242,216,.21),rgba(255,232,194,.08));
  --atlas-shadow: inset 0 1px 0 #fff2d84d,0 12px 40px #1720331c;
}
.celestial-journey::before {
  content: ''; position: absolute; z-index: -1; inset: -70px 0 0;
  background: linear-gradient(180deg,rgba(32,33,40,.15),rgba(22,30,45,.38)),url('celestial-interior.webp') center top / cover fixed;
  mask-image: linear-gradient(180deg,transparent,#000 160px); -webkit-mask-image: linear-gradient(180deg,transparent,#000 160px);
}
.celestial-journey .atlas-glass { background: var(--atlas-glass); border: 1px solid var(--atlas-line); border-radius: 18px; box-shadow: var(--atlas-shadow); backdrop-filter: blur(16px) saturate(1.12); -webkit-backdrop-filter: blur(16px) saturate(1.12); }
.journey-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 20px; padding: 65px 0 34px; color: #efcc95; text-align: center; }
.journey-intro > span { width: 100px; height: 1px; background: linear-gradient(90deg,transparent,#d2af73); }
.journey-intro > span:nth-child(2) { transform: rotate(180deg); }
.journey-intro p { width: 100%; margin: 20px 0 9px; font-size: 24px; letter-spacing: .20em; color: #fff0d7; }
.journey-intro small { font: 9px Georgia,serif; letter-spacing: .28em; }
.celestial-journey .journey-section { padding: 35px 0; scroll-margin-top: 80px; }
.journey-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.journey-eyebrow { margin: 0 0 12px; font: 10px/1.6 Georgia,serif; letter-spacing: .22em; color: #e4bc81; }
.journey-heading h2,.journey-contact h2 { font: 500 clamp(25px,2.8vw,36px)/1.55 var(--atlas-font); margin: 0; letter-spacing: .05em; color: #fff5e5; }
.journey-heading h2 em,.journey-contact h2 em { font-style: normal; color: #f0cc95; }
.journey-heading-note { color: #e5d2b3; font-size: 12px; letter-spacing: .15em; padding-bottom: 7px; white-space: nowrap; }
.journey-text-link { color: #f4d49f; text-decoration: none; font-size: 13px; padding-bottom: 8px; }
.journey-about { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; padding: 42px 48px; gap: 35px; overflow: hidden; }
.atlas-label { display: inline-block; color: #f1cf98; letter-spacing: .16em; font: 9px/1.6 Georgia,serif; }
.journey-about h3 { font-size: 27px; line-height: 1.6; margin: 15px 0; color: #fff6e6; }
.journey-about-copy > p { color: #f5ead8; font-size: 15px; line-height: 2; max-width: 620px; }
.journey-location { display: inline-block; border-top: 1px solid #e6c38a55; margin-top: 10px; padding-top: 15px; font-size: 13px; color: #ebd9bb; }
.journey-astrolabe { max-width: 300px; width: 100%; margin: auto; position: relative; color: #efcf95; text-align: center; }
.journey-astrolabe svg { width: 100%; stroke: currentColor; stroke-width: .7; filter: drop-shadow(0 0 9px #ffda8e44); }
.journey-astrolabe > span { font: 8px/2.1 Georgia,serif; letter-spacing: .2em; }
.journey-services { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.journey-service { padding: 28px; }
.journey-card-no { display: flex; justify-content: space-between; align-items: center; font: 27px Georgia,serif; color: #efcc91; margin-bottom: 28px; }
.journey-card-no > span { font-size: 15px; opacity: .7; }
.journey-service h3 { font-size: 22px; margin: 0 0 14px; }
.journey-service p { margin: 0; font-size: 14px; line-height: 1.9; color: #f0e2cb; }
.journey-skills { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.journey-skill { padding: 24px 28px; }
.journey-skill-top { display: flex; align-items: center; gap: 16px; }
.journey-skill .skill-monogram { width: 46px; height: 46px; flex-shrink: 0; }
.journey-skill h3 { font: 500 17px/1.6 var(--atlas-font); margin: 0; overflow-wrap: anywhere; }
.journey-skill-top > span:last-child { margin-left: auto; font: 23px Georgia,serif; color: #f3d49c; white-space: nowrap; }
.journey-skill-top small { font-size: 11px; margin-left: 3px; }
.journey-skill-track { height: 3px; background: #f8deaf26; margin-top: 20px; overflow: hidden; border-radius: 5px; }
.journey-skill-track > span { display: block; height: 100%; width: clamp(0%,var(--skill-level),100%); background: linear-gradient(90deg,#a67b47,#ffe5b3); box-shadow: 0 0 9px #ffdf9a66; }
.journey-projects { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.journey-project { overflow: hidden; display: flex; flex-direction: column; }
.journey-project-art { padding: 22px 25px; height: 150px; display: flex; justify-content: space-between; align-items: center; color: #ffe5b3; background: linear-gradient(110deg,#1b28438c,#b58b4e22),url('celestial-interior.webp') 35% 20% / cover; border-bottom: 1px solid var(--atlas-line); }
.journey-project:nth-child(2n) .journey-project-art { background-position: 75% 45%; }
.journey-project:nth-child(3n) .journey-project-art { background-position: 15% 75%; }
.journey-project-art > span { font: 10px Georgia,serif; letter-spacing: .2em; }
.journey-project-art > b { font: 64px Georgia,serif; font-weight: 400; text-shadow: 0 0 20px #fce0a0; }
.journey-project-copy { padding: 26px; display: flex; flex: 1; flex-direction: column; }
.journey-project h3 { font-size: 25px; margin: 10px 0 12px; }
.journey-project p { font-size: 14px; line-height: 1.9; color: #f1e5d2; margin: 0 0 24px; }
.journey-project-link { display: flex; justify-content: space-between; margin-top: auto; padding-top: 15px; border-top: 1px solid #efd3a140; color: #ffe1aa; text-decoration: none; font-size: 13px; }
.journey-project-link span { font-size: 20px; line-height: 1; }
.journey-guestbook { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.journey-guestbook-write { padding: 30px; position: sticky; top: 100px; }
.journey-guestbook-write h3 { font-size: 22px; margin: 15px 0; }
.journey-note { color: #e5d1b3; font-size: 13px; line-height: 1.9; margin: 0 0 23px; }
.celestial-journey :is(.comment-form-card,.comment-guest-hint) { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; backdrop-filter: none; }
.celestial-journey .comment-form-card h3 { font-size: 15px; }
.celestial-journey .comment-form textarea { color: #fff4e2; background: #fff5df14; border: 1px solid #e2c39373; min-height: 150px; border-radius: 12px; }
.celestial-journey .comment-form textarea::placeholder { color: #e9d8bc; }
.celestial-journey .comment-guest-hint p { color: #f1e1c7; font-size: 14px; }
.celestial-journey .comment-guest-hint a { color: #ffe0a6; }
.journey-comments { display: grid; gap: 15px; max-height: 640px; overflow-y: auto; padding-right: 5px; scrollbar-color: #d0aa6c transparent; scrollbar-width: thin; }
.journey-comment { padding: 24px; }
.journey-comment > header { display: flex; align-items: center; gap: 12px; }
.journey-comment-initial { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; font: 20px Georgia,serif; border: 1px solid #e2c38b80; border-radius: 50%; background: #e4bd7826; color: #ffdf9e; }
.journey-comment strong { font-size: 13px; font-weight: 500; }
.journey-comment time { display: block; color: #d8c6a9; font: 10px Georgia,serif; margin-top: 5px; }
.journey-comment-star { color: #efce94; font-size: 24px; margin-left: auto; }
.journey-comment > p { color: #f4e9d6; font-size: 14px; line-height: 1.95; margin: 18px 0 0; overflow-wrap: anywhere; }
.atlas-empty { grid-column: 1/-1; padding: 42px 25px; text-align: center; }
.atlas-empty > span { display: block; color: #f1cd90; font: 36px Georgia,serif; margin-bottom: 15px; }
.atlas-empty h3 { font-size: 20px; margin: 12px 0; }
.atlas-empty p { color: #e9d7b9; font-size: 14px; }
.journey-contact { padding: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.journey-contact > div > p:last-child { color: #e9d8bb; font-size: 13px; line-height: 1.9; }
.journey-contact-links > a { display: grid; grid-template-columns: 1fr 22px; padding: 20px 0; color: #fff0d4; text-decoration: none; border-bottom: 1px solid #ecd0a43d; gap: 10px; }
.journey-contact-links > a > span { color: #f4d298; font-size: 13px; }
.journey-contact-links small { font: 8px Georgia,serif; letter-spacing: .2em; margin-left: 15px; opacity: .8; }
.journey-contact-links strong { font: 500 17px/1.6 var(--atlas-font); overflow-wrap: anywhere; grid-row: 2; }
.journey-contact-links b { grid-column: 2; grid-row: 1/3; align-self: center; font: 24px Georgia,serif; }
.journey-contact-location { color: #e8d3b0; font-size: 13px; }
.celestial-site.celestial-home .site-footer { margin-top: 0; padding: 28px 0; background: #202630b0; border-top: 1px solid #d0ad744d; color: #e8d5b4; }
.celestial-site.celestial-home .site-footer a { color: #e9d5b4; }
/* Footers and mobile navigation belong to the shared shell. */
.atlas-footer { position: relative; padding: 32px 5%; border-top: 1px solid #b08a5045; background: rgba(244,230,204,.60); backdrop-filter: blur(16px); color: #69563e; }
.atlas-footer-inner { width: min(100%,1200px); margin: auto; display: flex; align-items: center; flex-wrap: wrap; column-gap: 30px; row-gap: 20px; }
.atlas-footer-brand { color: #5c4328; font: 24px Georgia,serif; text-decoration: none; }
.atlas-footer-brand span { font: 13px var(--atlas-font); margin-left: 15px; }
.atlas-footer p { font: 13px var(--atlas-font); margin: 0; }
.atlas-footer nav { margin-left: auto; display: flex; gap: 20px; }
.atlas-footer nav a { color: #806641; text-decoration: none; font-size: 12px; }
.atlas-footer small { width: 100%; font: 8px Georgia,serif; letter-spacing: .2em; opacity: .7; }
.atlas-mobile-nav { display: none; }
.celestial-site .cmnote-page { padding-bottom: 30px; }
.celestial-site .cmnote-hero { background: transparent; }
.celestial-site .cmnote-hero-copy h1 { font-family: var(--atlas-font); font-weight: 500; }
.celestial-site .cmnote-hero-copy em { color: #b38648; font-style: normal; }
.celestial-site .cmnote-pill { background: #ffefcf66; border-color: #bb955f66; color: #79592e; }
.celestial-site .cmnote-features-grid article,.celestial-site .cmnote-cta-inner { background: var(--atlas-glass); border: 1px solid var(--atlas-line); border-radius: 18px; backdrop-filter: blur(16px); box-shadow: var(--atlas-shadow); }
.celestial-site :is(.auth-card,.auth-box) { background: var(--atlas-glass); border: 1px solid var(--atlas-line); box-shadow: var(--atlas-shadow); backdrop-filter: blur(16px); border-radius: 22px; }
/* Avoid skinning the user's actual slide canvas, A4 page and QR pixels. */
.celestial-site .rv-sheet { color: #1f2937; background: white; }
@media(max-width:1100px) {
  .celestial-site .site-header .nav { flex-wrap: nowrap; }
  .celestial-site .site-header .nav-right { display: none; }
  .atlas-mobile-nav { display: block; margin-left: auto; color: var(--text); }
  .atlas-mobile-nav summary { display: flex; align-items: center; gap: 9px; padding: 7px 13px; border: 1px solid var(--border); border-radius: 24px; font-size: 13px; cursor: pointer; list-style: none; }
  .atlas-mobile-nav summary::-webkit-details-marker { display: none; }
  .atlas-mobile-menu { position: absolute; top: calc(100% + 9px); right: 3%; width: min(340px,94vw); padding: 18px; border: 1px solid #caa26780; border-radius: 16px; background: #fbf1dfed; backdrop-filter: blur(24px); box-shadow: 0 15px 35px #29190c33; color: #4c3926; }
  .celestial-site .site-header .atlas-mobile-menu .site-primary-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; width: auto; margin: 0; padding: 0; overflow: visible; }
  .celestial-site .site-header .atlas-mobile-menu .nav-links a { color: #76582f; font-size: 14px; padding: 10px; border-radius: 8px; }
  .celestial-site .site-header .atlas-mobile-menu .nav-links a:hover { background: #e9d2aa66; }
  .atlas-mobile-auth { display: flex; justify-content: flex-end; gap: 12px; border-top: 1px solid #c29d6944; padding-top: 15px; margin-top: 12px; font-size: 13px; }
  .atlas-mobile-auth a { color: #7c5727; }
  .celestial-site .site-header .site-brand { order: 0; }
  .celestial-site:not(.celestial-home) .site-header .nav { min-height: 66px; }
  .journey-services { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .journey-about { padding: 30px; }
  .journey-contact { padding: 30px; }
}
@media(max-width:760px) {
  .celestial-site:not(.celestial-home) :is(.tools-main,.ocr-shell,.uc-shell,.slides-shell) { padding-top: 24px; width: 92%; }
  .celestial-site :is(.tp-hero,.hub-hero) { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .celestial-site :is(.tp-aside,.hub-aside) { padding: 8px 20px; }
  .celestial-site :is(.tp-hero-copy h1,.hub-hero h1) { font-size: 30px; }
  .celestial-site :is(.tp-promo,.hub-promo) { flex-direction: column; align-items: start; gap: 20px; padding: 24px; }
  .celestial-site :is(.tool-panel,.uc-card,.slides-card,.ocr-card) { padding: 20px; }
  .celestial-site :is(.uc-sidebar,.slides-sidebar) { position: static; }
  .celestial-site .uc-sidebar-nav,.celestial-site .slides-sidebar-nav { display: flex; flex-wrap: wrap; gap: 5px; }
  .celestial-site .uc-sidebar-group { width: 100%; margin-top: 10px; }
  .journey-heading { align-items: start; }
  .journey-heading-note { display: none; }
  .journey-about { grid-template-columns: 1fr; }
  .journey-astrolabe { max-width: 210px; }
  .journey-services,.journey-skills,.journey-projects,.journey-guestbook,.journey-contact { grid-template-columns: 1fr; }
  .journey-guestbook-write { position: static; }
  .journey-intro { padding-top: 40px; }
  .journey-intro p { font-size: 20px; }
  .celestial-journey .journey-section { padding: 25px 0; }
  .journey-heading h2,.journey-contact h2 { font-size: 26px; }
  .journey-service,.journey-skill,.journey-guestbook-write,.journey-contact,.journey-about { padding: 24px; }
  .journey-skill h3 { font-size: 15px; }
  .journey-contact { gap: 20px; }
  .atlas-footer-inner { flex-direction: column; align-items: start; }
  .atlas-footer nav { margin-left: 0; flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) { .celestial-site * { scroll-behavior: auto; transition: none !important; } }
.celestial-site .tp-work > *, .celestial-site .rv-preview-col, .celestial-site .rv-preview-panel { min-width: 0; max-width: 100%; }
.celestial-site .rv-sheet-frame { min-width: 0; max-width: 100%; }
@media(max-width:1024px) { .celestial-site .tp-work--form-preview { grid-template-columns: minmax(0,1fr); } }
.celestial-site:not(.celestial-home) { min-height: 100svh; display: flex; flex-direction: column; }
.celestial-site:not(.celestial-home) > :is(main,.uc-shell,.slides-shell,.ocr-shell) { flex: 1; }
.celestial-site .uc-shell { grid-template-columns: 240px minmax(0,1fr); }
@media(max-width:900px) { .celestial-site .uc-shell { grid-template-columns: minmax(0,1fr); } }
.celestial-site .uc-grid--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.celestial-site :is(.uc-page-header__profile,.uc-page-header__actions) { min-width: 0; }
.celestial-site .uc-page-header__profile > div { min-width: 0; }
.celestial-site .uc-page-title { overflow-wrap: anywhere; }
@media(max-width:760px) { .celestial-site .uc-grid--2 { grid-template-columns: minmax(0,1fr); } }

.celestial-site .site-skip-link { width: max-content; max-width: calc(100vw - 32px); }
.celestial-site .slides-theme-card[data-theme='twilight'] { background: linear-gradient(125deg,#293952,#c99c5e); color: #fff1d3; border-color: #d4b177; }
.celestial-site .slides-theme-card[data-theme='twilight']:has(.slides-theme-radio:checked) { background: linear-gradient(125deg,#293952,#c99c5e); color: #fff1d3; border-color: #e5c48e; box-shadow: 0 0 0 2px #c5a06955; }
.celestial-site .atlas-unavailable { text-align: center; padding: 64px 28px; }
.atlas-unavailable-icon { display: block; color: #a47a3b; font: 55px Georgia,serif; margin-bottom: 20px; }
.atlas-admin-details { text-align: left; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--atlas-line); font-size: 13px; }

/* Utility pages: illustration is the backdrop; frost belongs to individual surfaces. */
[data-theme='twilight'] .celestial-site:is(.tools-body,.cmnote-body,.uc-body,.slides-body,.ocr-body) {
  --atlas-glass: linear-gradient(125deg,rgba(255,251,240,.42),rgba(255,242,218,.18));
  --atlas-line: rgba(255,241,211,.65);
  --atlas-shadow: inset 0 1px 0 rgba(255,255,255,.65),0 10px 30px rgba(79,53,23,.10);
  --text: #292b34; --muted: #3f3a33;
  --surface: rgba(255,248,231,.42); --surface-solid: rgba(251,245,233,.78);
  --header-bg: rgba(255,247,231,.42);
  background: url('celestial-interior.webp') center top / cover fixed;
}
[data-theme='twilight'] .celestial-site.cmnote-body .cmnote-hero-copy,
[data-theme='twilight'] .celestial-site.cmnote-body .cmnote-section-head {
  padding: 24px; border: 1px solid var(--atlas-line); border-radius: 18px;
  background: var(--atlas-glass);
  box-shadow: var(--atlas-shadow);
  backdrop-filter: blur(16px) saturate(1.12); -webkit-backdrop-filter: blur(16px) saturate(1.12);
}
[data-theme='twilight'] .tools-body :is(.hub-hero-copy,.tp-hero-copy,.xfer-head-text,.tool-hero) {
  padding: 24px; border: 1px solid var(--atlas-line); border-radius: 18px;
  background: var(--atlas-glass);
  box-shadow: var(--atlas-shadow);
  backdrop-filter: blur(16px) saturate(1.12); -webkit-backdrop-filter: blur(16px) saturate(1.12);
}
[data-theme='twilight'] .tools-body :is(.hub-section-head,.tp-stats,.hub-stats,.tp-crumb) {
  background: rgba(255,248,232,.28); border: 1px solid rgba(255,241,211,.52); border-radius: 12px;
  padding: 12px 16px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
[data-theme='twilight'] .celestial-site.tools-body :is(.tool-card--featured,.hub-promo,.tp-promo) {
  background: var(--atlas-glass); box-shadow: var(--atlas-shadow);
  backdrop-filter: blur(16px) saturate(1.12); -webkit-backdrop-filter: blur(16px) saturate(1.12);
}
[data-theme='twilight'] .tools-body .atlas-footer { background: rgba(255,246,227,.22); }
}
