@charset "UTF-8";

:root {
  color-scheme: dark;
  --paper: #1a1026;
  --surface: #62465f;
  --ink: #fff3e7;
  --muted: #e9cdd7;
  --line: rgba(255, 211, 172, .3);
  --coral: #ffb98c;
  --coral-dark: #ffd8ad;
  --sage: #f3a7bd;
  --soft: #62465f;
  --serif: Georgia, "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --pink: #f3a7bd;
  --peach: #ffb98c;
  --glass: radial-gradient(ellipse at 9% 0%, #ffc4a359, transparent 64%), linear-gradient(145deg, #9a7288c7, #553d60d9);
  --glass-border: #ffe0c7a6;
  --glass-shadow: inset 0 1px 0 #fff3df99, inset 0 0 0 1px #ffd2b126, 0 16px 42px #160c294d, 0 0 20px #efb5ba12;
}

html { background: var(--paper); scrollbar-color: #c48ca0 #25132f; }
body {
  background: radial-gradient(ellipse at 94% 18%, #f3a7bd32, transparent 45%), radial-gradient(ellipse at 66% 66%, #ffb98c24, transparent 44%), radial-gradient(ellipse at 22% 91%, #ee8eaf26, transparent 42%), linear-gradient(155deg, #1a1026, #25132f 54%, #1a1026);
  color: #fff3e7;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle, #fff3d0a6 .6px, transparent .8px), radial-gradient(circle, #ffd7bd80 .6px, transparent .8px);
  background-size: 173px 181px, 257px 233px;
  background-position: 11px 37px, 89px 107px;
}
::selection { background: #f3a7bd88; color: #fff8ec; }
button, a, input, textarea, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline-color: #ffcc93; }
.app-shell { grid-template-columns: 232px minmax(0, 1fr); }
.main-area { max-width: 1710px; padding: 34px 46px 0; }
.sidebar {
  background: linear-gradient(165deg, #fff9e9 0%, #fff1df 43%, #ffdfcc 78%, #f8bcae 100%);
  border-right: 1px solid #fff3d0b3;
  box-shadow: 12px 0 50px #1a102633;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 39px 23px 25px;
  z-index: 3;
}
.brand { gap: 10px; }
.brand-symbol { color: #d87b58; text-shadow: 0 0 25px #ffbd8c55; font-size: 38px; }
.brand-name { color: #644638; font-weight: 400; font-size: 24px; letter-spacing: 3px; }
.brand-en { color: #6b4939; font-size: 6px; letter-spacing: 2.1px; }
.sidebar-rule { background: linear-gradient(90deg, #d4956b66, #d4956b15); margin: 34px 1px 29px; }
.nav-caption { color: #6b4939; font-size: 10px; letter-spacing: 2px; }
.nav-item { color: #644638; border: 1px solid transparent; border-radius: 10px; margin: 7px 0; height: 49px; transition: background .2s, border-color .2s, color .2s; }
.nav-item:hover { background: #ffd4b580; color: #553b31; }
.nav-item.active { color: #644638; background: linear-gradient(110deg, #ffe5bf, #ffb49d); border-color: #fff8e8c9; box-shadow: inset 0 1px 0 #fff8e8d9, 0 5px 19px #ce805a3d; }
.nav-symbol { color: #a96848; font-size: 21px; }
.nav-arrow { color: #a96848; }
.nav-count { color: #744a37; background: #e8aa7b2b; border: 1px solid #cb906c38; }
.sidebar-poem { color: #644638; }
.sidebar-poem > span { color: #a96848; text-shadow: 0 0 25px #fff3d080; }
.sidebar-poem p { font-size: 16px; line-height: 2.1; }
.sidebar-poem small { color: #6b4939; }
.sidebar-footer { border-color: #bd7b5733; }
.settings-link { color: #644638; }
.settings-link:hover { color: #704631; }
.settings-link > span { color: #644638; }
.local-status { color: #644638; }
.status-dot { background: #b76f4f; box-shadow: 0 0 9px #dc8c5970; }
.page-header { margin-bottom: 32px; }
.eyebrow { color: #ffca9c; font-size: 9px; letter-spacing: 2.1px; }
.page-header h1 { color: #fff3d0; font-size: 34px; line-height: 1.5; font-weight: 400; letter-spacing: 1.4px; text-shadow: 0 2px 28px #efacbd18; }
.heading-star { color: #ffca9c; }
.page-subtitle { color: #edd2dc; font-size: 12px; line-height: 1.9; }
.date-stamp { color: #ffe3bf; background: linear-gradient(135deg, #a8758a66, #62465f80); border-color: #ffd1aa66; border-radius: 6px; box-shadow: 0 6px 20px #0002; }
.date-stamp small { border-color: #efacbd26; }
.main-footer { border-color: #ffcba52b; color: #dab9cb; margin-top: 36px; font-size: 10px; }

/* The shared local renderer supplies the home planet and moving stars. */
.home-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 25px; }
.home-wordmark { font: 9px Georgia, serif; letter-spacing: 3px; color: #dec0d0; }
.home-private { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ffc9aa52; border-radius: 50px; padding: 7px 11px; color: #dec0d0; background: #f3a7bd14; font-size: 10px; letter-spacing: .5px; }
.home-private i { width: 4px; height: 4px; border-radius: 50%; background: #fff3d0; box-shadow: 0 0 9px #ffb98cb3; }
.home-hero { position: relative; isolation: isolate; min-height: 480px; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; padding: 48px 44px 77px; overflow: hidden; border: 1px solid #ffc9aa70; border-radius: 26px; background: radial-gradient(ellipse at 87% 78%, #d77d9d45, transparent 58%), linear-gradient(118deg, #25132ff2 0%, #361b3cde 46%, #25132feb 100%); box-shadow: inset 0 1px 0 #fff3d040, 0 18px 65px #15091e55; }
.home-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: .6; background-image: radial-gradient(circle at 82% 14%, #fff3d0 0 1px, transparent 1.7px), radial-gradient(circle at 59% 26%, #ffd1b0 0 .7px, transparent 1.5px), radial-gradient(circle at 89% 64%, #fff3d0 0 1px, transparent 1.8px), radial-gradient(circle at 65% 83%, #fff3d0 0 .8px, transparent 1.5px), radial-gradient(circle at 50% 58%, #fff3d0 0 .5px, transparent 1.2px), radial-gradient(circle at 36% 14%, #fff3d0 0 .5px, transparent 1.2px), radial-gradient(circle at 7% 75%, #fff3d0 0 .6px, transparent 1.3px); }
.hero-nebula { position: absolute; z-index: -2; inset: -10%; pointer-events: none; background: radial-gradient(ellipse at 77% 50%, #ffb98c85, transparent 34%), radial-gradient(ellipse at 84% 73%, #f3a7bd66, transparent 39%), radial-gradient(ellipse at 45% 84%, #dc7ca94d, transparent 41%); filter: blur(27px); transform: rotate(-10deg); }
.hero-orbit { position: absolute; z-index: -1; border: 1px solid #ffd6ab38; border-radius: 50%; pointer-events: none; }
.orbit-one { width: 89%; height: 350px; left: 29%; top: 12%; transform: rotate(-26deg); }
.orbit-two { width: 72%; height: 280px; left: 39%; top: 18%; transform: rotate(-26deg); border-color: #f3a7bd29; }
.hero-copy { position: relative; z-index: 3; min-width: 0; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 23px; font-size: 10px; color: #ffca9c; letter-spacing: 2px; }
.hero-copy .eyebrow > span { color: #ffd1b0; font-size: 13px; }
.hero-copy h1 { font-family: var(--serif); font-size: clamp(44px, 4.5vw, 66px); font-weight: 400; line-height: 1.38; letter-spacing: 2px; color: #fff3d0; margin: 0 0 23px; text-shadow: 0 4px 36px #ffba8c2e; }
.hero-copy h1 > span { color: #ffbf99; }
.hero-description { font-size: 12px; line-height: 2.15; letter-spacing: 1px; color: #edd2dc; margin: 0 0 28px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-actions .button { min-height: 44px; padding: 11px 19px; font-size: 12px; border-radius: 7px; }
.hero-actions .button > span { font-size: 17px; margin-left: 8px; }
.hero-text-link { color: #ffe0bd; background: none; border: 0; font-size: 11px; padding: 11px 0; letter-spacing: .5px; }
.hero-text-link span { display: inline-block; margin-left: 8px; transition: transform .2s; }
.hero-text-link:hover span { transform: translateX(4px); }
.hero-system { position: relative; align-self: stretch; min-height: 335px; z-index: 2; }
.planet-halo { position: absolute; width: 390px; aspect-ratio: 1; left: 51%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #ffb98c4d 15%, #f3a7bd24 48%, transparent 68%); filter: blur(5px); }
.hero-planet { position: absolute; width: 252px; height: 252px; top: 49%; left: 51%; transform: translate(-50%, -50%); border-radius: 50%; z-index: 2; overflow: hidden; background: radial-gradient(ellipse at 26% 20%, #fffbe5e6 0%, #fff3d04d 24%, transparent 45%), radial-gradient(ellipse at 70% 30%, #f19ac4b3 5%, transparent 55%), linear-gradient(145deg, #fff3d0 2%, #ffcba3 28%, #f3a7bd 48%, #f68d9e 63%, #ffb98c 82%, #c96f88); box-shadow: inset 10px 8px 24px #fffbe5a6, inset -12px -16px 29px #c16a8b66, 10px 24px 55px #1a102659, 0 0 68px #ffb98c47; }
.hero-planet, .growth-universe .gu-planet-body { --planet-spin-light: #fff3d0; --planet-spin-pink: #f3a7bd; --planet-spin-shadow: #b86a94; --planet-spin-duration: 36s; }
/* A clipped light layer follows the texture cycle; the sphere and its rim stay fixed. */
.hero-planet::after, .growth-universe .gu-planet-body::after {
  content: ""; position: absolute; inset: -8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 28% 27%, color-mix(in srgb, var(--planet-spin-light) 42%, transparent), transparent 48%), linear-gradient(90deg, color-mix(in srgb, var(--planet-spin-shadow) 18%, transparent), transparent 24%, transparent 55%, color-mix(in srgb, var(--planet-spin-shadow) 54%, #1a102633)), radial-gradient(circle, transparent 54%, #1a102647 100%);
  opacity: .72; transform: translateX(0) scale(1.015);
  animation: chaomu-planet-light var(--planet-spin-duration) linear infinite;
}
.planet-texture, .growth-universe .gu-planet-body::before {
  position: absolute; inset: 0 auto 0 0; width: 200%; height: 100%; border-radius: 0; pointer-events: none;
  background-image: radial-gradient(ellipse 22% 9% at 27% 31%, var(--planet-spin-light) 0 18%, transparent 100%), radial-gradient(ellipse 24% 12% at 72% 66%, var(--planet-spin-pink) 0 16%, transparent 100%), radial-gradient(ellipse 17% 6% at 56% 81%, var(--planet-spin-light), transparent 100%), radial-gradient(ellipse 42% 18% at 50% 48%, var(--planet-spin-shadow) 0 8%, transparent 100%);
  background-size: 50% 100%; background-repeat: repeat-x; filter: none; opacity: .46;
  transform: translateX(-50%); animation: chaomu-planet-drift var(--planet-spin-duration) linear infinite;
}
@keyframes chaomu-planet-drift { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes chaomu-planet-light {
  0%, 100% { transform: translateX(-3.5%) scale(1.015); opacity: .68; }
  25% { transform: translateX(0) scale(1.015); opacity: .82; }
  50% { transform: translateX(3.5%) scale(1.015); opacity: .76; }
  75% { transform: translateX(0) scale(1.015); opacity: .6; }
}
.view[hidden] .planet-texture, .view[hidden] .hero-planet::after,
.growth-universe:not(.gu-is-active) .gu-planet-body::before, .growth-universe:not(.gu-is-active) .gu-planet-body::after,
html[data-chaomu-page-hidden] .planet-texture, html[data-chaomu-page-hidden] .hero-planet::after,
html[data-chaomu-page-hidden] .growth-universe .gu-planet-body::before, html[data-chaomu-page-hidden] .growth-universe .gu-planet-body::after { animation-play-state: paused; }
.planet-ring { position: absolute; width: 370px; height: 104px; top: 51%; left: 51%; border: 9px solid #ffc5ad94; border-radius: 50%; transform: translate(-50%, -50%) rotate(-26deg); box-shadow: 0 0 0 2px #fff3d06b, 0 0 0 6px #f3a7bd45, inset 0 0 0 3px #fff3d052; pointer-events: none; }
.ring-back { z-index: 1; border-top-color: #ffd6b17a; border-right-color: #ffb7b18c; }
.ring-front { z-index: 3; border-bottom-color: #fff3d0d9; border-left-color: #ffd3a6cc; clip-path: inset(51% -10% -50% -10%); filter: drop-shadow(0 4px 5px #25132f66); }
.orbit-star { position: absolute; color: #fff3d0; font-family: Georgia, serif; text-shadow: 0 0 13px #ffb98cb3; }
.star-a { top: 6%; left: 29%; font-size: 24px; transform: rotate(10deg); }
.star-b { right: 5%; top: 28%; font-size: 12px; opacity: .8; }
.star-c { bottom: 9%; left: 18%; font-size: 14px; opacity: .5; }
.orbit-point { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 8px 0; text-align: left; color: #fff3e7; }
.orbit-point i { width: 8px; height: 8px; border-radius: 50%; background: #fff3d0; box-shadow: 0 0 0 5px #ffb98c26, 0 0 0 9px #f3a7bd14, 0 0 18px #ffb98ce6; transition: box-shadow .2s; flex-shrink: 0; }
.orbit-point:hover i { box-shadow: 0 0 0 7px #ffb98c38, 0 0 0 13px #f3a7bd1f, 0 0 22px #fff3d0d9; }
.orbit-point > span { font-size: 10px; letter-spacing: .5px; text-shadow: 0 1px 6px #25132f; }
.orbit-point small { display: block; font: 6px Georgia, serif; color: #dec0d0; letter-spacing: 1.2px; margin-top: 6px; }
.point-growth { left: 3%; top: 11%; }
.point-memories { right: -1%; bottom: 9%; }
.planet-caption { position: absolute; bottom: -1%; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 6px Georgia, serif; letter-spacing: 2px; color: #dec0d0; }
.hero-coordinate { position: absolute; left: 44px; right: 44px; bottom: 23px; display: flex; align-items: center; gap: 9px; color: #dec0d0; font: 7px Georgia, serif; letter-spacing: 1.8px; border-top: 1px solid #ffd1b015; padding-top: 16px; }
.hero-coordinate > span:first-child { color: #ffd1b0; font-size: 12px; }
.hero-coordinate > span:last-child { margin-left: auto; }
.home-portals { margin-top: 35px; }
.home-section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 19px; }
.home-section-title h2 { font-family: var(--serif); font-size: 20px; font-weight: 400; color: #fff3d0; margin: 0; letter-spacing: .8px; }
.home-section-title > span { font: 7px Georgia, serif; letter-spacing: 2px; color: #dec0d0; }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.portal-card { text-align: left; min-width: 0; border: 1px solid #ffd1aa80; border-radius: 16px; padding: 20px 23px 18px; color: #fff3e7; background: var(--glass); border-color: var(--glass-border); box-shadow: var(--glass-shadow); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.portal-card:hover { transform: translateY(-5px); border-color: #ffe2b8c2; box-shadow: inset 0 1px 0 #fff3d052, 0 17px 36px #1a102666, 0 0 28px #ffb98c26; }
.portal-topline { display: flex; justify-content: space-between; align-items: center; font: 7px Georgia, serif; letter-spacing: 1.5px; color: #dec0d0; }
.portal-topline > span:last-child { color: #ffd1b0; font: 18px var(--sans); }
.portal-symbol { position: relative; display: block; width: 58px; height: 58px; margin: 18px 0 12px; }
.symbol-orbit::before { content: ""; position: absolute; width: 31px; height: 31px; border-radius: 50%; top: 12px; left: 14px; background: radial-gradient(circle at 28% 26%, #fff8df, #ffc499 37%, #f19ab9 72%, #a55883); box-shadow: inset -4px -4px 8px #c2688666, 0 3px 15px #ffb98c29; }
.symbol-orbit i { position: absolute; width: 60px; height: 20px; left: 0; top: 18px; border: 2px solid #ffdbb3c4; border-radius: 50%; transform: rotate(-27deg); box-shadow: 0 0 0 2px #f3a7bd2b; }
.symbol-card i { position: absolute; width: 31px; height: 44px; border-radius: 4px; border: 1px solid #ffe0bcd9; background: linear-gradient(140deg, #fff3d099, #f3a7bd4d); transform: rotate(-13deg); left: 11px; top: 7px; box-shadow: 5px 5px 0 #efacbd0c, 5px 5px 0 1px #efacbd25; }
.symbol-card b { position: absolute; color: #fff3d0; left: 20px; top: 15px; font: 25px Georgia, serif; transform: rotate(-13deg); font-weight: 400; }
.symbol-archive i, .symbol-archive b { position: absolute; width: 35px; height: 37px; border: 1px solid #ffd5a9b3; border-radius: 4px; background: linear-gradient(140deg, #ffc6a35e, #f3a7bd38); box-shadow: 0 7px 14px #0002; }
.symbol-archive i { left: 5px; top: 10px; transform: rotate(-14deg); }
.symbol-archive b { left: 20px; top: 16px; transform: rotate(9deg); background: linear-gradient(140deg, #b68091, #62465f); }
.symbol-archive b::after { content: "✧"; position: absolute; inset: 4px 0 0; text-align: center; font: 23px Georgia, serif; color: #ffd1b0; }
.portal-card > strong { display: block; font: 23px var(--serif); color: #fff3d0; letter-spacing: 1px; margin-bottom: 10px; }
.portal-description { display: block; font-size: 10px; color: #edd2dc; line-height: 1.9; letter-spacing: .3px; }
.portal-meta { display: flex; align-items: center; gap: 5px; margin-top: 22px; padding-top: 13px; border-top: 1px solid #ffcfaa40; color: #e8cad7; font-size: 9px; letter-spacing: .4px; }
.portal-meta b { font-weight: 400; font-family: Georgia, serif; font-size: 13px; color: #fff3d0; }
.portal-meta i { font-style: normal; margin-left: auto; color: #ffd1b0; }
.home-closing-note { display: flex; gap: 11px; align-items: center; padding: 29px 2px 5px; color: #edd2dc; }
.home-closing-note > span:first-child { font: 24px Georgia, serif; color: #ffd1b0; }
.home-closing-note p { font: 12px var(--serif); letter-spacing: .8px; line-height: 1.9; margin: 0; }
.home-closing-note > span:last-child { margin-left: auto; color: #dec0d0; font: 6px Georgia, serif; letter-spacing: 1.5px; }

/* Existing creation controls keep their layout and behavior. */
.composer { background: var(--glass); border-color: var(--glass-border); border-radius: 19px; box-shadow: var(--glass-shadow); }
:is(.composer,.preview-panel,.portal-card) { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media(max-width:650px) { :is(.composer,.preview-panel,.portal-card) { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); } }
.compose-section { border-color: #ffd1aa33; padding-top: 27px; padding-bottom: 27px; }
.section-heading { margin-bottom: 21px; }
.step-number { color: #ffd1b0; font-size: 18px; }
.section-heading h2 { color: #fff0dd; font-size: 14px; }
.section-hint { color: #e8c9d6; font-size: 7px; }
.field-label { color: #fff0dd; font-size: 13px; }
.optional { color: #e8c9d6; }
input:not([type=checkbox]):not([type=file]):not(.growth-universe *), textarea:not(.growth-universe *), select:not(.growth-universe *) { color: #fff8ec; background: #291c35b8; border-color: #ffe1c378; border-radius: 8px; box-shadow: inset 0 2px 6px #1a102638; padding: 12px 13px; font-size: 12px; transition: border-color .2s, box-shadow .2s; }
input:not([type=checkbox]):not([type=file]):not(.growth-universe *):hover, textarea:not(.growth-universe *):hover, select:not(.growth-universe *):hover { border-color: #ffcfaa94; }
input:not(.growth-universe *):focus, textarea:not(.growth-universe *):focus, select:not(.growth-universe *):focus { outline: none; border-color: #ffcc93; box-shadow: 0 0 0 3px #ffb98c26, inset 0 2px 6px #1a102638; }
input:not(.growth-universe *)::placeholder, textarea:not(.growth-universe *)::placeholder { color: #dcbacb; opacity: 1; }
input[type=date]:not(.growth-universe *), input[type=number]:not(.growth-universe *) { color-scheme: dark; }
input:not(.growth-universe *):-webkit-autofill, input:not(.growth-universe *):-webkit-autofill:hover, input:not(.growth-universe *):-webkit-autofill:focus { -webkit-text-fill-color: #fff8ec; box-shadow: 0 0 0 1000px #281a32 inset; caret-color: #ffcfaa; }
select:not(.growth-universe *) option, select:not(.growth-universe *) optgroup { background: #281a32; color: #fff8ec; }
.field-note { color: #f0dce5; font-size: 11px; line-height: 1.9; }
.char-count { color: #e8c9d6; font-size: 9px; }
.fan-profile-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; padding-bottom: 21px; margin-bottom: 21px; border-bottom: 1px solid #ffd1b01b; }
.fan-profile-fields > div { min-width: 0; }
.fan-profile-fields .fan-id-field { grid-column: 1 / -1; }
.fan-profile-fields .field-label { margin-top: 14px; font-size: 11px; }
.fan-profile-fields .fan-id-field .field-label { margin-top: 0; }
.fan-profile-note { grid-column: 1 / -1; margin-top: 10px; }
.button { border-radius: 7px; min-height: 39px; font-size: 11px; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; }
.button-primary { color: #5a3b30; background: linear-gradient(135deg, #ffd39d, #ffb49d 58%, #f3a7bd); border-color: #fff3d0b3; box-shadow: inset 0 1px 0 #fff8e880, 0 4px 18px #ffb98c33, 0 3px 6px #1a10262b; }
.button-primary:hover { background: linear-gradient(135deg, #ffe3b5, #ffc2a4 58%, #f6bbcd); border-color: #fff8e8e6; box-shadow: inset 0 1px 0 #fff8e8b3, 0 7px 25px #ffb98c4d; }
.button-soft { background: linear-gradient(135deg, #b57c8f66, #85597473); color: #fff3d0; border-color: #ffccaa8c; box-shadow: inset 0 1px 0 #fff3d033; }
.button-soft:hover { background: linear-gradient(135deg, #c28a986e, #9b668273); border-color: #ffddbbbf; }
.button-outline { color: #ffe3c5; border-color: #ffca9f8c; background: #f3a7bd19; box-shadow: inset 0 1px 0 #fff3d01f; }
.button-outline:hover { background: #ffb98c29; border-color: #ffe2b8cc; }
.text-button, .ai-button, .photo-search-action .text-button { color: #ffdab2; font-size: 11px; }
.text-button:hover { color: #fff3d0; }
.matched-event { background: #f3a7bd24; border-color: #ffcdab61; border-radius: 9px; }
.match-icon { color: #ffd1b0; }
.mini-label { color: #ffd1b0; }
.matched-event h3 { color: #fff3e7; font-size: 12px; }
.matched-event p { color: #ebcdd7; font-size: 10px; }
.icon-button { color: #ffd1b0; }
.icon-button:hover { color: #fff3d0; }
.photo-upload { background: #ffb98c0f; border-color: #ffcca47a; border-radius: 10px; }
.photo-upload:hover { background: #ffb98c24; border-color: #ffe3bdad; }
.photo-upload strong { color: #fff0dd; font-size: 12px; }
.photo-upload small { color: #e8c9d6; font-size: 9px; }
.upload-symbol, .upload-arrow { color: #ffd1b0; }
.photo-item { background: #62465f; border-color: #ffd1aa8c; border-radius: 6px; box-shadow: 0 5px 14px #0002; }
.photo-item img { border-radius: 3px; }
.photo-remove { background: #644653; color: #fff3d0; border-color: #ffd1aa80; box-shadow: 0 2px 8px #0005; }
.photo-search-action > span { color: #e8c9d6; font-size: 9px; }
.template-option { color: #ffd1b0; background: #3c2945b3; border-color: #ffd1aa42; border-radius: 10px; padding: 12px 5px; box-shadow: inset 0 1px 0 #ffd1b008; transition: transform .2s, border-color .2s, box-shadow .2s; }
.template-option:hover { border-color: #ffd1b066; transform: translateY(-2px); }
.template-option.selected { background: linear-gradient(145deg, #ac778673, #62465fd9); border-color: #ffd9aebf; box-shadow: inset 0 1px 0 #fff3d047, 0 0 20px #ffb98c1c, 0 4px 12px #1a102642; }
.template-option strong { color: #fff0dd; font-size: 10px; }
.template-option small { color: #e8c9d6; font-size: 8px; }
.template-art { background: linear-gradient(140deg, #fff0d5, #e8abc1); border: 1px solid #ffe6bda6; border-radius: 4px; box-shadow: 4px 5px 12px #1a102640, inset 0 1px 0 #fff8e880; transform: rotate(-5deg); }
.template-art:before { background: #c97f80; }
.template-art:after { background: #b28098; }
.art-memory i { background: linear-gradient(140deg, #f9bc98, #b7759e); border-color: #fff3d080; }
.art-memory b, .art-collage em { background: #b47a927d; }
.art-timeline i { background: #c77b8d; }
.art-timeline b { background: #b77993; box-shadow: 0 10px #d28e9d, 0 20px #c988a1; }
.art-timeline em { background: #b9899d; box-shadow: 0 10px #b9899d, 0 20px #b9899d; }
.art-reply i { background: #c8869899; }
.art-reply b { background: #aa739799; }
.art-collage i { background: linear-gradient(135deg, #ffc59b, #c587a4); border-color: #fff3d080; }
.art-collage b { background: linear-gradient(140deg, #e6a5b4, #9b6596); border-color: #fff3d080; }
.segmented { border-color: #ffd1aa66; border-radius: 7px; }
.segmented button { background: #302039; border-color: #ffcfaa47; color: #e8cad7; padding: 8px 15px; }
.segmented button.selected { color: #fff3d0; background: #ae748a73; box-shadow: inset 0 1px 0 #fff3d02e; }
.response-section textarea { color: #fff8ec; font-size: 13px; }
.source-badge, .source-saved-badge { color: #ffe6c9; background: #f3a7bd2b; border: 1px solid #ffccaa4d; border-radius: 4px; }
.source-badge.is-ai { color: #fff3d0; background: #ffb98c33; }
.ai-note { color: #e8c9d6; font-size: 9px; }
.preview-panel { background: var(--glass); border-color: var(--glass-border); border-radius: 19px; box-shadow: var(--glass-shadow); }
.preview-heading { color: #ffecd5; font-size: 11px; }
.preview-dot { background: #fff3d0; box-shadow: 0 0 10px #ffb98c99; }
.preview-format { color: #e8c9d6; }
.canvas-wrap { background: #25132f; border-radius: 4px; overflow: hidden; border: 1px solid #ffe2b87a; box-shadow: 8px 16px 38px #1a102680, 0 0 35px #ffb98c24, inset 0 1px 0 #fff3d047; transform: perspective(1000px) rotateY(-4deg) rotate(-1.1deg); }
.canvas-wrap:hover { transform: perspective(1000px) rotateY(0) rotate(0); }
.stage-star { color: #ffd1b0; text-shadow: 0 0 13px #ffd1b044; }
.preview-caption { color: #edd2dc; font-size: 12px; }
.export-note { color: #e8c9d6; font-size: 9px; }
.preview-error { color: #ffd1b0; }
.save-notice { color: #fff0dd; background: #c28a9a29; border-color: #ffccaa66; border-radius: 8px; }
.save-notice strong { font-size: 11px; }
.saved-file-path { color: #e8c9d6; font-size: 10px; }
.saved-file-link { color: #ffdab2; font-size: 11px; }

/* A variable-height wall lets the actual exported proportions stay visible. */
.collection-toolbar { color: #edd2dc; border-color: #ffcba54d; }
.collection-grid { display: block; columns: 3; column-gap: 24px; padding-top: 28px; }
.saved-card { width: 100%; display: block; break-inside: avoid; vertical-align: top; margin: 0 0 24px; padding: 12px 12px 15px; background: var(--glass); border-color: var(--glass-border); border-radius: 15px; box-shadow: var(--glass-shadow); transition: transform .25s, border-color .25s, box-shadow .25s; }
.saved-card:nth-child(3n + 2) { margin-top: 13px; }
.saved-card:hover { transform: translateY(-5px); border-color: #ffe5bfc7; box-shadow: 0 18px 35px #1a102680, 0 0 22px #ffb98c2e; }
.saved-card-preview { aspect-ratio: auto; min-height: 140px; display: block; background: #25132f; border: 1px solid #ffd1aa52; border-radius: 7px; }
.saved-card-preview img { display: block; width: 100%; height: auto; object-fit: contain; transition: filter .25s; }
.saved-card-preview:hover img { transform: none; filter: brightness(1.04); }
.saved-card h3 { color: #fff0dd; font-family: var(--serif); font-size: 15px; font-weight: 400; margin-top: 15px; }
.saved-card-date { color: #e8c9d6; font-size: 10px; }
.saved-card-actions .text-button { font-size: 10px; }
.delete-button { color: #e8c9d6; }
.empty-state { padding: 78px 15px 105px; border: 1px solid #ffccaa57; border-radius: 16px; background: radial-gradient(ellipse at 50% 40%, #f3a7bd33, transparent 56%); margin-top: 26px; }
.empty-state > span { color: #ffd1b0; text-shadow: 0 0 25px #ffd1b029; }
.empty-state h2 { color: #fff0dd; font-size: 25px; }
.empty-state p { color: #ebcdd7; }

/* Shared dialogs, network results and editing sheets. */
dialog { background: radial-gradient(ellipse at 8% 0, #ffc5a649, transparent 55%), linear-gradient(145deg, #74536fee, #39273fee); border-color: var(--glass-border); border-radius: 19px; color: #fff3e7; box-shadow: var(--glass-shadow), 0 30px 100px #10081aaa; }
dialog::backdrop { background: #180d29bf; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dialog-heading h2 { color: #fff3d0; font-weight: 400; font-size: 26px; }
.dialog-heading .eyebrow { color: #ffd1aa; }
.dialog-intro { color: #edd2dc; font-size: 12px; line-height: 1.95; }
.dialog-error, .alert.error { color: #ffe1da; background: #a3516b4d; border-color: #ffbba980; }
.check-label { color: #ffe9d8; }
.check-label input { accent-color: #ffb98c; }
.storage-details { color: #e9cdd7; font-size: 11px; }
.storage-details summary { color: #ffe3bf; }
.search-settings-section, .event-detail-section, .event-detail-actions, .node-edit-section-heading, #image-search-dialog .dialog-actions { border-color: #ffd1aa40; }
.search-settings-heading h3, .node-edit-section-heading h3, .event-detail-section h3, .event-ai-section h3 { color: #fff0dd; }
.search-settings-heading a, .material-source, .image-result-source, #edit-detail-event { color: #ffdab2; }
.image-search-meta > span, .image-search-photo-count { color: #e9cdd7; }
.image-search-empty { background: #f3a7bd14; border-color: #ffccaa66; color: #ebcdd7; border-radius: 11px; }
.image-search-empty > span { color: #ffd1b0; }
.image-search-empty p { color: #fff0dd; }
.image-search-result { background: linear-gradient(145deg, #73516d, #422b4b); border-color: #ffd1aa66; border-radius: 11px; box-shadow: 0 7px 17px #0002; }
.image-result-media { background: #25132f; }
.image-result-fallback { color: #ffd1b0; }
.image-result-content h3 { color: #fff0dd; font-size: 12px; }
.image-result-host { color: #e9cdd7; font-size: 9px; }
.image-result-error { color: #ffd1b0; }
.image-search-rights { color: #e9cdd7; }
.event-detail-date, #event-detail-updated, .event-detail-provenance > span:last-child, .event-detail-provenance > span:last-of-type { color: #e9cdd7; }
.event-detail-description { color: #fff0e8; font-size: 13px; }
.event-detail-resource-bar { background: #f3a7bd24; border-color: #ffd1aa52; border-radius: 9px; }
.event-detail-resource-bar p { color: #eed4de; }
.event-detail-section-heading > span, .node-edit-section-heading > span, .event-detail-empty { color: #e9cdd7; }
.event-source-card { background: #f3a7bd1c; border-color: #ffcdab59; border-radius: 9px; }
.event-source-title { color: #ffe0b9; }
.event-source-host { color: #e9cdd7; }
.event-source-card p { color: #eed7df; }
.event-ai-section { background: linear-gradient(140deg, #b67c8f38, #784e742e); border-color: #ffd1aa61; border-radius: 11px; }
.event-ai-section textarea { background: #281a32e8; color: #fff8ec; }
.node-edit-link-row { background: #f3a7bd14; border-color: #ffd1aa59; border-radius: 9px; }
.node-edit-link-heading { color: #e9cdd7; }
.event-ai-draft-sources p { color: #e9cdd7; }
.event-ai-draft-sources a { color: #ffdab2; }
.toast { background: linear-gradient(140deg, #8e5e73, #62465f); color: #fff8ec; border-color: #ffe0b8a6; box-shadow: 0 12px 40px #0006; border-radius: 10px; }
.toast.error { background: linear-gradient(140deg, #99546c, #68405d); border-color: #ffc6ad99; }

@media (min-width: 1550px) {
  .main-area { padding: 38px 60px 0; }
  .home-hero { min-height: 525px; padding: 57px 55px 86px; }
  .hero-copy h1 { font-size: 73px; }
  .hero-description { font-size: 13px; }
  .hero-planet { width: 286px; height: 286px; }
  .planet-ring { width: 425px; height: 118px; }
  .hero-coordinate { left: 55px; right: 55px; }
  .portal-card { padding: 22px 27px 20px; }
}
@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding-left: 18px; padding-right: 18px; }
  .brand-name { font-size: 21px; letter-spacing: 2px; }
  .brand-symbol { font-size: 34px; }
  .brand-en { font-size: 5px; }
  .main-area { padding: 30px 31px 0; }
  .home-hero { padding: 39px 31px 72px; min-height: 435px; }
  .hero-copy h1 { font-size: 50px; letter-spacing: 1px; }
  .hero-description { font-size: 11px; letter-spacing: .6px; }
  .hero-actions { gap: 15px; }
  .hero-actions .button { font-size: 11px; padding: 10px 14px; }
  .hero-text-link { font-size: 10px; }
  .hero-planet { width: 215px; height: 215px; }
  .planet-ring { width: 320px; height: 90px; border-width: 7px; }
  .planet-halo { width: 320px; }
  .hero-system { min-height: 310px; }
  .point-growth { left: 0; top: 10%; }
  .point-memories { right: -4%; bottom: 6%; }
  .hero-coordinate { left: 31px; right: 31px; }
  .portal-grid { gap: 15px; }
  .portal-card { padding: 17px 18px 16px; }
  .portal-card > strong { font-size: 21px; }
  .portal-description { font-size: 10px; }
  .home-section-title h2 { font-size: 19px; }
  .page-header h1 { font-size: 29px; }
  .template-option small { font-size: 7px; }
  .collection-grid { column-gap: 19px; }
}
@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 180px minmax(0, 1fr); }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .brand-name { font-size: 19px; }
  .brand-symbol { font-size: 30px; }
  .brand-en { font-size: 5px; letter-spacing: 1.5px; }
  .nav-item { padding-left: 10px; padding-right: 10px; gap: 10px; font-size: 12px; }
  .sidebar-poem p { font-size: 14px; }
  .settings-link { font-size: 11px; }
  .main-area { padding: 27px 25px 0; }
  .home-hero { grid-template-columns: 1fr .77fr; padding: 33px 27px 68px; min-height: 410px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy .eyebrow { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 19px; }
  .hero-description { font-size: 10px; }
  .hero-planet { width: 175px; height: 175px; left: 54%; }
  .planet-ring { width: 265px; height: 76px; left: 54%; border-width: 6px; }
  .planet-halo { width: 275px; left: 54%; }
  .orbit-point > span { font-size: 8px; }
  .orbit-point small { font-size: 5px; letter-spacing: .8px; }
  .point-growth { top: 14%; left: -6%; }
  .point-memories { right: -5%; bottom: 16%; }
  .star-a { top: 6%; left: 56%; font-size: 20px; }
  .planet-caption { font-size: 5px; letter-spacing: 1.4px; bottom: 6%; }
  .hero-coordinate { left: 27px; right: 27px; font-size: 6px; letter-spacing: 1.5px; }
  .hero-actions { gap: 7px 16px; }
  .portal-card { padding: 15px 14px; }
  .portal-topline { font-size: 6px; letter-spacing: 1px; }
  .portal-symbol { margin-top: 14px; }
  .portal-card > strong { font-size: 20px; }
  .portal-description { font-size: 9px; }
  .portal-meta { font-size: 8px; }
  .home-section-title > span { font-size: 6px; letter-spacing: 1px; }
  .home-closing-note > span:last-child { display: none; }
  .collection-grid { columns: 2; }
  .compose-section:nth-child(3) { border-left-color: #ffd1b019; }
}
@media (max-width: 760px) and (min-width: 651px) {
  .app-shell { grid-template-columns: 160px minmax(0, 1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .brand-name { font-size: 18px; letter-spacing: 1px; }
  .brand-symbol { font-size: 27px; }
  .main-area { padding-left: 20px; padding-right: 20px; }
  .home-hero { grid-template-columns: 1fr; padding: 31px 29px 68px; }
  .hero-system { height: 235px; min-height: 235px; margin-top: 8px; }
  .hero-copy h1 { font-size: 47px; }
  .hero-planet { width: 173px; height: 173px; left: 50%; }
  .planet-ring { left: 50%; }
  .planet-halo { left: 50%; }
  .point-growth { top: 6%; left: 0; }
  .point-memories { bottom: 5%; right: 0; }
  .planet-caption { bottom: -6%; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card { padding: 18px 22px; }
  .portal-symbol { position: absolute; right: 22px; top: 35px; margin: 0; }
  .portal-card > strong { margin-top: 17px; }
  .portal-meta { margin-top: 16px; }
  .portal-description { max-width: 74%; }
  .home-section-title > span { display: none; }
}
@media (max-width: 650px) {
  .app-shell { display: block; }
  .sidebar { height: auto; position: relative; display: block; padding: 20px 19px 0; border-right: 0; border-bottom: 1px solid #ffe2bfa6; background: linear-gradient(110deg, #fff8e8, #ffe5cb 64%, #ffb49d); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .brand { gap: 9px; }
  .brand-name { font-size: 23px; letter-spacing: 3px; }
  .brand-symbol { font-size: 34px; }
  .brand-en { font-size: 6px; letter-spacing: 1.6px; }
  .sidebar nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 24px; }
  .nav-item { padding: 0 4px; gap: 6px; font-size: 11px; margin: 0; height: 44px; border-radius: 8px 8px 0 0; justify-content: center; white-space: nowrap; }
  .nav-item.active { background: linear-gradient(110deg, #ffe5bf, #ffb49d); border-color: #fff8e8b3; border-bottom-color: transparent; }
  .nav-symbol { font-size: 17px; width: 16px; }
  .nav-count { display: none; }
  .settings-link { font-size: 0; padding: 0; }
  .settings-link > span { color: #a96848; font-size: 23px; }
  .sidebar-footer { border: 0; margin: 0; padding: 0; right: 22px; top: 27px; }
  .sidebar-rule, .nav-caption, .sidebar-poem, .local-status { display: none; }
  .main-area { padding: 25px 18px 0; }
  .home-topline { margin-bottom: 19px; gap: 9px; }
  .home-wordmark { font-size: 7px; letter-spacing: 2px; }
  .home-private { padding: 6px 9px; font-size: 8px; }
  .home-hero { grid-template-columns: 1fr; padding: 30px 25px 65px; border-radius: 19px; min-height: 0; }
  .hero-copy .eyebrow { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 19px; }
  .hero-copy h1 { font-size: clamp(36px, 9.6vw, 54px); letter-spacing: 1px; line-height: 1.45; margin-bottom: 18px; }
  .hero-description { font-size: 11px; line-height: 2.05; letter-spacing: .4px; margin-bottom: 22px; }
  .hero-actions { gap: 12px 16px; }
  .hero-actions .button { min-height: 41px; font-size: 11px; padding: 10px 14px; }
  .hero-text-link { font-size: 10px; padding: 9px 0; }
  .hero-system { min-height: 260px; height: 260px; margin-top: 12px; }
  .hero-planet { width: 197px; height: 197px; left: 50%; top: 48%; }
  .planet-ring { width: 290px; height: 82px; left: 50%; top: 50%; border-width: 6px; }
  .planet-halo { width: 300px; left: 50%; }
  .orbit-point > span { font-size: 9px; }
  .orbit-point small { font-size: 5px; letter-spacing: .7px; }
  .point-growth { left: -3%; top: 5%; }
  .point-memories { right: -3%; bottom: 2%; }
  .star-a { top: 5%; left: 76%; font-size: 22px; }
  .star-b { right: 3%; top: 44%; font-size: 10px; }
  .star-c { bottom: 10%; left: 5%; }
  .planet-caption { bottom: -5%; font-size: 5px; letter-spacing: 1.6px; }
  .hero-coordinate { left: 25px; right: 25px; bottom: 20px; padding-top: 13px; font-size: 5px; letter-spacing: 1.2px; }
  .hero-orbit { display: none; }
  .hero-nebula { background: radial-gradient(ellipse at 52% 72%, #ffb98c80, transparent 42%), radial-gradient(ellipse at 89% 18%, #f3a7bd47, transparent 40%); }
  .home-portals { margin-top: 28px; }
  .home-section-title { margin-bottom: 16px; }
  .home-section-title h2 { font-size: 18px; }
  .home-section-title > span { display: none; }
  .portal-grid { grid-template-columns: 1fr; gap: 14px; }
  .portal-card { padding: 18px 21px 16px; border-radius: 13px; }
  .portal-topline { font-size: 7px; letter-spacing: 1.3px; }
  .portal-symbol { position: absolute; right: 23px; top: 38px; margin: 0; }
  .portal-card > strong { font-size: 23px; margin-top: 15px; margin-bottom: 9px; }
  .portal-description { font-size: 10px; max-width: 77%; }
  .portal-meta { margin-top: 18px; padding-top: 12px; font-size: 9px; }
  .home-closing-note { padding-top: 24px; gap: 9px; }
  .home-closing-note p { font-size: 10px; letter-spacing: .4px; }
  .home-closing-note > span:first-child { font-size: 21px; }
  .page-header h1 { font-size: 26px; letter-spacing: .5px; }
  .page-subtitle { font-size: 11px; }
  .page-header .eyebrow { font-size: 7px; letter-spacing: 1.6px; }
  .composer, .preview-panel { border-radius: 13px; }
  .compose-section { padding: 24px 20px; }
  .section-heading h2 { font-size: 14px; }
  .section-hint { font-size: 6px; }
  .fan-profile-fields { gap: 0 12px; }
  .fan-profile-fields .field-label { font-size: 10px; }
  .fan-profile-fields .optional { font-size: 9px; }
  .field-note { font-size: 9px; }
  .template-option { padding: 10px 4px; }
  .template-option strong { font-size: 9px; }
  .template-option small { font-size: 6px; }
  .preview-panel { padding: 22px 20px 18px; }
  .preview-caption { font-size: 11px; }
  .collection-grid { columns: 2; column-gap: 13px; }
  .saved-card { padding: 8px 8px 12px; margin-bottom: 15px; border-radius: 9px; }
  .saved-card:nth-child(3n + 2) { margin-top: 10px; }
  .saved-card-preview { min-height: 100px; border-radius: 5px; }
  .saved-card h3 { font-size: 12px; }
  .saved-card-date { font-size: 8px; }
  .saved-card-actions .text-button { font-size: 8px; }
  .collection-toolbar { font-size: 10px; }
  .collection-toolbar .text-button { font-size: 9px; }
  .empty-state { padding: 65px 10px 78px; }
  .empty-state h2 { font-size: 23px; }
  .dialog-heading h2 { font-size: 23px; }
  .dialog-intro { font-size: 11px; }
  .dialog-body { padding: 24px 21px; }
  .image-result-content h3 { font-size: 11px; }
  .event-detail-description { font-size: 12px; }
  .main-footer { font-size: 8px; margin-top: 29px; }
}
@media (max-width: 380px) {
  .nav-item { font-size: 10px; gap: 4px; }
  .nav-symbol { width: 13px; font-size: 15px; }
  .main-area { padding-left: 14px; padding-right: 14px; }
  .home-hero { padding-left: 22px; padding-right: 22px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-system { height: 245px; min-height: 245px; }
  .hero-planet { width: 178px; height: 178px; }
  .planet-ring { width: 268px; height: 76px; }
  .hero-actions { gap: 7px 14px; }
  .hero-actions .button { padding-left: 12px; padding-right: 12px; font-size: 10px; }
  .hero-text-link { font-size: 9px; }
  .fan-profile-fields { grid-template-columns: 1fr; }
  .fan-profile-fields .fan-id-field, .fan-profile-note { grid-column: 1; }
  .template-option small { font-size: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Shared vector sizing and reference bronze keep all four navigation icons aligned. */
.sidebar nav { display:flex; flex-direction:column; gap:7px; }
.sidebar .nav-item { min-height:54px; height:auto; margin:0; padding:8px 11px; gap:11px; border-radius:14px; position:relative; transition:background .18s,border-color .18s,box-shadow .18s; }
.sidebar .nav-item.active { background:linear-gradient(115deg,#ffe3c3eb,#f3b8b1bd); border-color:#fff9ed; box-shadow:inset 0 1px 0 #ffffffb0,0 5px 16px #a76c4e1c; }
.sidebar .nav-item:hover { background-color:#efbead40; border-color:#d6a48c60; }
.sidebar .nav-item:focus-visible { outline:2px solid var(--dye-sidebar-ink,#a76163); outline-offset:3px; }
.sidebar .nav-symbol { width:32px; height:32px; flex:0 0 32px; display:grid; place-items:center; align-self:center; border:0; border-radius:0; background:none; box-shadow:none; color:#b58163; line-height:1; }
html body .sidebar .nav-item .nav-symbol { color:#b58163; }
.sidebar .nav-symbol svg { width:24px; height:24px; display:block; overflow:visible; shape-rendering:geometricPrecision; stroke-width:var(--pz-ui-icon-stroke,2); }
.sidebar .nav-symbol svg :is(path,circle,ellipse,rect) { vector-effect:non-scaling-stroke; }
.sidebar .nav-icon-spark { fill:currentColor; stroke:none; }
.sidebar .nav-icon-bolt { fill:none; stroke-width:inherit; }
.sidebar .nav-item.active .nav-symbol { background:none; border:0; box-shadow:none; }
.sidebar .nav-label { min-width:0; line-height:1.5; font-weight:500; letter-spacing:.035em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar .nav-arrow { font-size:15px; opacity:.65; }
.sidebar .nav-count { min-width:21px; padding:2px 5px; text-align:center; border-radius:7px; line-height:1.5; font-variant-numeric:tabular-nums; }
.sidebar .settings-link { min-height:36px; width:100%; border-radius:9px; transition:background .18s; }
.sidebar .settings-link:hover { background:#d69c831c; }
.sidebar .settings-link>span:first-child { width:21px; text-align:center; flex-shrink:0; }
@media(min-width:651px){.sidebar{height:100dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.sidebar>nav,.sidebar-footer,.sidebar-poem,.sidebar-rule,.brand{flex-shrink:0}}
@media(min-width:651px) and (max-width:920px){
 .sidebar .nav-item { gap:8px; padding:8px 7px; }
 .sidebar .nav-symbol { width:28px; height:28px; flex-basis:28px; }
 .sidebar .nav-arrow { display:none; }
}
@media(max-width:650px){
 .sidebar nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; padding-bottom:10px; }
 .sidebar .nav-item { flex-direction:column; min-height:68px; justify-content:center; gap:5px; padding:7px 3px; border-radius:13px; }
 .sidebar .nav-label { font-size:11px; line-height:1.4; letter-spacing:0; }
 .sidebar .nav-symbol { width:28px; height:28px; flex-basis:28px; border:0; border-radius:0; background:transparent; box-shadow:none; }
 .sidebar .nav-item.active .nav-symbol { background:transparent; border:0; box-shadow:none; }
 .sidebar .nav-arrow { display:none; }
 .sidebar .settings-link { width:auto; min-height:44px; padding:5px 7px; }
}
@media(prefers-reduced-motion:reduce){.sidebar .nav-item,.sidebar .settings-link{transition:none}}
