.head-sub { display: none !important; }
.main-head { min-height: 78px; padding-top: 16px; padding-bottom: 16px; }
.head-title h1 { font-size: 14px; }
.head-right { gap: 22px; }
.nav-logo { display: block; object-fit: contain; }
.brand-sub { font-size: 10px; }
.brand-name::after { content: none; }
.upgrade-copy b { font-weight: 600; font-size: 12px; }
.upgrade-copy small { font-size: 10px; }
.page-intro { margin-bottom: 24px; }

.effort-control { flex: none; width: 224px; position: relative; }
.effort-control .cosmos-effort {
  --effort-glow: #9280b6;
  --effort-intensity: .2;
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  width: 100%; gap: 6px; position: static; transform: none; padding: 0;
  border: 0; background: none; box-shadow: none;
}
.effort-labels { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; line-height: 1.2; color: var(--muted); font-size: 10px; }
.effort-labels > span:last-child { text-align: right; }
.cosmos-effort .effort-name, .cosmos-effort #effort-name { color: var(--ink-2); font: 500 10px/1.2 var(--font-body); margin: 0; text-align: center; white-space: nowrap; min-width: 63px; }
.cosmos-effort #effort-rail {
  display: block; position: relative; height: 24px; width: 100%; padding: 0;
  border: 0; border-radius: 100px; background: #e5e1e8; box-shadow: inset 0 1px 2px #20173315;
  cursor: pointer; isolation: isolate;
}
.cosmos-effort #effort-rail::before, .cosmos-effort #effort-rail::after { display: none; }
.cosmos-effort #effort-fill {
  display: block; position: absolute; inset: 0 auto 0 0; height: 100%; width: 12px;
  border-radius: inherit; transform: none; transform-origin: center; z-index: 0;
  background: linear-gradient(90deg, #797480, var(--effort-glow)); opacity: .65;
  transition: width .14s ease-out, background .3s, opacity .3s; pointer-events: none;
}
.effort-dots {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background-image: radial-gradient(circle, #fffd 1px, transparent 1.4px); background-size: 5px 5px;
  -webkit-mask-image: linear-gradient(90deg, #0001 5%, #0004 38%, #000 100%);
  mask-image: linear-gradient(90deg, #0001 5%, #0004 38%, #000 100%);
  opacity: var(--effort-intensity); transition: opacity .3s;
}
.effort-stars { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 2; }
.effort-stars i { position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); border-radius: 50%; background: #fff; box-shadow: 0 0 4px #fffc; opacity: .35; }
.cosmos-effort #effort-slider {
  -webkit-appearance: none; appearance: none; position: absolute; z-index: 3;
  left: 0; top: -10px; width: 100%; height: 44px; padding: 0; margin: 0;
  background: transparent; border: 0; border-radius: 30px; box-shadow: none;
  outline-offset: 3px; cursor: pointer; touch-action: pan-y;
}
.cosmos-effort #effort-slider:focus-visible { outline: 2px solid var(--focus); box-shadow: none; }
.cosmos-effort #effort-slider::-webkit-slider-runnable-track { width: 100%; height: 24px; border: 0; background: transparent; border-radius: 24px; }
.cosmos-effort #effort-slider::-moz-range-track { width: 100%; height: 24px; border: 0; background: transparent; border-radius: 24px; }
.cosmos-effort #effort-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: 1px;
  border: 1px solid #fff; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 5px #231d4033; cursor: grab; transition: box-shadow .2s;
}
.cosmos-effort #effort-slider::-moz-range-thumb { width: 20px; height: 20px; border: 1px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px #231d4033; cursor: grab; }
.cosmos-effort #effort-slider:active::-webkit-slider-thumb { cursor: grabbing; box-shadow: 0 0 0 4px #a16ed129,0 1px 7px #231d4044; }
.cosmos-effort #effort-slider:active::-moz-range-thumb { cursor: grabbing; box-shadow: 0 0 0 4px #a16ed129,0 1px 7px #231d4044; }
.cosmos-effort[data-level="4"] #effort-fill { background: linear-gradient(90deg,#70608a,#a16bd2); opacity: .9; }
.cosmos-effort.is-od #effort-rail { background: #a671c9; box-shadow: 0 0 15px #a369d235,inset 0 0 8px #8144b440; }
.cosmos-effort.is-od #effort-fill {
  background: linear-gradient(100deg,#7141b6,#a15ac9,#c88adb,#805ed2,#7141b6);
  background-size: 250% 100%; animation: effort-nebula 7s linear infinite; opacity: 1;
  box-shadow: none;
}
.cosmos-effort.is-od .effort-dots { opacity: .12; }
.cosmos-effort.is-od .effort-stars { opacity: 1; }
.cosmos-effort.is-od .effort-stars i { animation: effort-twinkle 2.4s ease-in-out var(--delay) infinite alternate; }
.cosmos-effort.is-od #effort-name { color: #955ac0; background: none; animation: none; -webkit-text-fill-color: currentColor; }
.cosmos-effort.kick #effort-rail { animation: effort-ignite .7s ease-out; }
@keyframes effort-nebula { to { background-position: -250% 0; } }
@keyframes effort-twinkle { from { opacity: .25; transform: scale(.7) translateY(1px); } to { opacity: 1; transform: scale(1.1) translateY(-1px); } }
@keyframes effort-ignite { 0% { box-shadow: 0 0 0 0 #b875d947; } 60% { box-shadow: 0 0 22px 4px #b875d940; } 100% { box-shadow: 0 0 15px #a369d235; } }
.novaflash { display: block; z-index: 180; }
.novaflash::after { display: none; }
.novaflash .nova-core {
  width: 10px; height: 10px; background: #f4d5ff;
  box-shadow: 0 0 12px 4px #d6afff99,0 0 24px 8px #9c67dc66;
  animation: refine-core .65s ease-out forwards;
}
.novaflash .nova-ring { border: 1px solid #c99af0; box-shadow: 0 0 9px #a379d0; animation: refine-ring .7s ease-out forwards; }
.nova-spark {
  position: absolute; left: var(--fx); top: var(--fy); width: 3px; height: 3px; border-radius: 50%;
  background: #c28ded; box-shadow: 0 0 6px #ac82e7; opacity: 0; animation: refine-spark .8s ease-out var(--delay) forwards;
}
@keyframes refine-core { 0% { transform: scale(.5); opacity: .85; } 100% { transform: scale(3); opacity: 0; } }
@keyframes refine-ring { 0% { transform: scale(.7); opacity: .65; } 100% { transform: scale(8); opacity: 0; } }
@keyframes refine-spark { 0% { transform: translate(-50%,-50%) scale(.5); opacity: .9; } 100% { transform: translate(var(--dx),var(--dy)) scale(.4); opacity: 0; } }

#view-chat:has(#chat-empty) { padding-bottom: 45px; }
#view-chat:has(#chat-empty) #chat-empty { padding-bottom: 31px; }
#view-chat:has(#chat-empty) #chat-empty:not(.omnis-hero) img.welcome-logo,
#ray-empty img.welcome-logo {
  display: block; width: 76px; height: 76px; object-fit: contain; margin: 0 auto 25px;
  border: 0; border-radius: 0; box-shadow: none; filter: none;
}
#view-chat:has(#chat-empty) #chat-empty h2 {
  max-width: 700px; margin: 0 auto; font-size: clamp(27px,2.6vw,40px); line-height: 1.18;
  letter-spacing: -.045em; text-wrap: balance;
}
#ray-empty { max-width: 680px; }
#ray-empty h2 { font: 500 clamp(27px,2.6vw,38px)/1.18 var(--font-display); letter-spacing: -.045em; }
#ray-empty img.welcome-logo { width: 68px; height: 68px; }
.starter-zone { padding-top: 17px; }
.starter-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.starter-card {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px;
  border-radius: 100px; min-width: 0; background: transparent; border: 1px solid var(--line-2);
}
.starter-card:hover { transform: translateY(-1px); }
.starter-card b { font-size: 11px; font-weight: 500; margin: 0; }
.starter-card .starter-icon { width: 17px; height: 17px; margin: 0; background: none; color: var(--muted); }
.starter-card .starter-icon svg { width: 16px; height: 16px; }
.starter-card:hover .starter-icon { color: var(--accent); }
.toggle { position: relative; align-items: center; line-height: 1; min-height: 32px; gap: 8px; }
.toggle input { width: 1px; height: 1px; margin: 0; }
.toggle .toggle-track {
  box-sizing: border-box; display: block; flex: 0 0 34px; width: 34px; height: 20px;
  position: relative; border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden;
  background: var(--surface-3);
}
.toggle .toggle-track::after {
  box-sizing: border-box; width: 14px; height: 14px; left: 2px; top: 50%; bottom: auto;
  border: 0; margin: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0002;
  transform: translate(0,-50%); transition: transform .2s ease-out;
}
.toggle input:checked + .toggle-track { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle-track::after { transform: translate(14px,-50%); }
.toggle .toggle-label { display: inline-flex; align-items: center; min-height: 20px; line-height: 1.2; }
.study-toggle .toggle-label { order: -1; white-space: nowrap; font-size: 11px; color: var(--ink-2); }
.study-toggle:has(input:checked) .toggle-label { color: var(--accent-2); }
.ctlbar { gap: 14px; }
.dock-foot .disclaimer { font-size: 10px; }

body.omnis-mode { --omnis-a: #c9ced6; --omnis-b: #ffd766; --omnis-c: #ff8a1f; }
body.omnis-mode .main { background: none; }
body.omnis-mode #view-chat::before { opacity: .32; }
body.omnis-mode #chat-empty.omnis-hero { padding-top: 28px; }
body.omnis-mode #chat-empty .omnis-orb { width: 96px; height: 96px; margin: 0 auto 35px; }
body.omnis-mode #chat-empty .omnis-word { background: linear-gradient(90deg,#9b8e77,#bc8536 48%,#bc5e18); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.omnis-mode .head-title h1 { color: var(--ink) !important; background: none !important; -webkit-text-fill-color: currentColor; }
body.omnis-mode .omnis-allowance { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 11px; }
body.omnis-mode .starter-zone { display: none !important; }

#view-plus .plus-scroll { padding: 20px 34px 50px; }
#view-plus .plus-page { max-width: 930px; width: 100%; margin: 0 auto; }
.plus-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.plus-heading h2 { font: 500 clamp(28px,3vw,38px)/1.15 var(--font-display); letter-spacing: -.045em; margin: 0; }
.plus-heading .plus-state { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid #cedfc8; color: #517044; background: #edf4e9; border-radius: 100px; font: 500 11px var(--font-body); white-space: nowrap; }
.plus-state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.plan-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan-option { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); }
.plan-premium { border-color: #dab49b; background: linear-gradient(135deg,#fffaf4,#fff 62%); box-shadow: 0 5px 25px -16px #9d4f3d33; }
.plan-top { display: flex; align-items: center; justify-content: space-between; min-height: 24px; gap: 12px; }
.plan-top h3 { font: 600 17px var(--font-body); margin: 0; color: var(--ink); }
.plan-premium .plan-top h3 > span { color: var(--accent); margin-right: 3px; font-size: 15px; }
.plan-badge { font-size: 10px; line-height: 1; color: var(--muted); padding: 6px 9px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 30px; white-space: nowrap; }
.plan-premium .plan-badge { color: var(--accent-2); background: var(--accent-soft); border-color: #ecd1bf; }
.plan-price { display: flex; align-items: baseline; gap: 9px; margin: 25px 0 21px; }
.plan-price strong { font: 500 52px/1 var(--font-display); letter-spacing: -.06em; color: var(--ink); }
.plan-price > span { font-size: 12px; color: var(--muted); }
.plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.plan-features li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.plan-features li:last-child { border-bottom: none; }
.plan-features li b { font-weight: 500; font-size: 11px; white-space: nowrap; color: var(--ink); text-align: right; }
.plan-footer { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 12px; justify-content: end; min-height: 102px; }
.plan-footer .btn { min-height: 43px; padding: 11px 17px; border-radius: 10px; font-size: 12px; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.plan-billing, .plan-free-note { font-size: 10px; line-height: 1.5; color: var(--muted); }
.plan-free-note { padding-bottom: 2px; }
.plus-usage { margin-top: 25px; padding: 21px 24px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb,var(--surface) 75%,transparent); }
.plus-section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.plus-section-head h3 { font: 600 12px var(--font-body); margin: 0; }
.plus-section-head > span { font-size: 10px; color: var(--muted); }
#plus-you.plus-you { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px; margin: 0; }
.usage-item { min-width: 0; }
.usage-item-label { font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.usage-item-value { display: flex; align-items: baseline; gap: 6px; font: 500 24px var(--font-display); letter-spacing: -.04em; color: var(--ink); }
.usage-item-value small { font: 10px var(--font-body); color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.usage-item-track { margin-top: 10px; height: 4px; border-radius: 10px; background: var(--surface-3); overflow: hidden; }
.usage-item-track i { display: block; height: 100%; border-radius: inherit; background: #909a7f; }
.usage-item.is-low .usage-item-track i { background: var(--accent); }
.plus-details { margin-top: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); overflow: hidden; }
.plus-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 500; padding: 18px 21px; cursor: pointer; list-style: none; }
.plus-details summary::-webkit-details-marker { display: none; }
.plus-details summary:hover { background: var(--surface-2); }
.plus-details summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.plus-details summary svg { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.plus-details[open] summary { border-bottom: 1px solid var(--line); }
.plus-details[open] summary svg { transform: rotate(180deg); }
#plus-table.plus-table { margin: 0; border: 0; border-radius: 0; background: transparent; }
#plus-table .pt-row { display: grid; grid-template-columns: minmax(0,1.2fr) repeat(2,minmax(0,1fr)); font-size: 12px; margin: 0; padding: 0; border-color: var(--line); gap: 0; }
#plus-table .pt-row > span { padding: 13px 20px; align-self: stretch; display: flex; align-items: center; line-height: 1.3; text-align: left; min-width: 0; overflow-wrap: anywhere; }
#plus-table .pt-row > span:not(:first-child) { justify-content: center; font-family: var(--font-body); }
#plus-table .pt-row .pt-plus { border-radius: 0; background: #fcf6ef; color: var(--ink); font-weight: 500; }
#plus-table .pt-head { font-size: 10px; text-transform: none; letter-spacing: 0; background: var(--surface-2); color: var(--muted); }
#plus-table .pt-head .pt-plus { color: var(--accent-2); }
.plus-detail-note { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 0; padding: 16px 21px; border-top: 1px solid var(--line); }
.plus-background-content { padding: 18px 21px; }
.plus-background-content p { font-size: 11px; color: var(--muted); margin: 0 0 15px; }
.plus-background-content .bg-picker { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1100px) {
  .main-head { padding-left: 24px; padding-right: 24px; }
  .effort-control { width: 205px; }
  #view-plus .plus-scroll { padding-left: 24px; padding-right: 24px; }
  .plan-option { padding: 24px; }
  .plan-features li { font-size: 11px; gap: 8px; }
  .plan-features li b { font-size: 10px; }
}
@media (max-width: 650px) {
  .main-head { padding: 13px 17px; gap: 9px; min-height: 72px; }
  .head-title h1 { font-size: 12px; }
  .head-right { gap: 0; }
  .effort-control { width: 176px; }
  .effort-labels { font-size: 9px; gap: 4px; }
  .cosmos-effort #effort-name { font-size: 9px; min-width: 59px; }
  #view-chat:has(#chat-empty) { padding-bottom: 22px; }
  #view-chat:has(#chat-empty) #chat-empty { padding-bottom: 25px; }
  #view-chat:has(#chat-empty) #chat-empty:not(.omnis-hero) img.welcome-logo { width: 64px; height: 64px; margin-bottom: 23px; }
  #view-chat:has(#chat-empty) #chat-empty h2 { font-size: 29px; max-width: 350px; line-height: 1.19; }
  .starter-grid { gap: 7px; }
  .starter-card { padding: 8px 10px; gap: 5px; }
  .starter-card b { font-size: 10px; }
  .starter-card .starter-icon, .starter-card .starter-icon svg { width: 14px; height: 14px; }
  .ctlbar { gap: 10px; }
  .toggle { gap: 6px; }
  .study-toggle .toggle-label { font-size: 10px; }
  .dock-foot .disclaimer { font-size: 9px; }
  #view-plus .plus-scroll { padding: 12px 17px 35px; }
  .plus-heading { margin: 5px 0 22px; }
  .plus-heading h2 { font-size: 30px; }
  .plan-pair { grid-template-columns: 1fr; gap: 13px; }
  .plan-option { padding: 24px; border-radius: 17px; }
  .plan-premium { order: -1; }
  .plan-price { margin: 21px 0 19px; }
  .plan-price strong { font-size: 46px; }
  .plan-features li { font-size: 12px; }
  .plan-features li b { font-size: 11px; }
  .plan-footer { min-height: 0; padding-top: 22px; }
  .plus-usage { padding: 20px; margin-top: 18px; }
  #plus-you.plus-you { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 21px 16px; }
  .usage-item-value { font-size: 24px; gap: 4px; }
  .usage-item-value small { font-size: 9px; }
  #plus-table .pt-row { font-size: 11px; grid-template-columns: minmax(0,1.15fr) repeat(2,minmax(0,1fr)); }
  #plus-table .pt-row > span { padding: 12px 10px; }
  .plus-details summary { padding: 17px 19px; }
  .plus-detail-note { padding: 16px 19px; font-size: 10px; }
  body.omnis-mode #chat-empty .omnis-orb { width: 82px; height: 82px; margin-bottom: 33px; }
}
@media (max-width: 380px) {
  .effort-control { width: 149px; }
  .head-title h1 { font-size: 11px; }
  .main-head { padding-left: 12px; padding-right: 12px; gap: 7px; }
  .head-title { max-width: 96px; }
  .head-title h1 { overflow: hidden; text-overflow: ellipsis; }
  .starter-card { padding: 8px 9px; }
  .starter-card .starter-icon { display: none; }
  #view-chat:has(#chat-empty) #chat-empty h2 { font-size: 27px; }
  .ctlbar { gap: 7px; }
  .study-toggle .toggle-label { font-size: 9px; }
  .plan-option { padding: 21px; }
  #plus-you.plus-you { gap: 19px 10px; }
  .usage-item-value { flex-wrap: wrap; gap: 2px 5px; }
}
@media (max-height: 680px) {
  #view-chat:has(#chat-empty) { justify-content: flex-start; padding-top: 24px; }
  #view-chat:has(#chat-empty) #chat-empty:not(.omnis-hero) img.welcome-logo { width: 55px; height: 55px; margin-bottom: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .novaflash { display: none; }
  .effort-stars i { opacity: .7; }
  .cosmos-effort *, .cosmos-effort *::before, .cosmos-effort *::after { animation: none !important; transition: none !important; }
}
