.hide,
[hidden] {
    display: none !important;
}

/* .cn locks language dropdown; worlds / catalog / download are the same on .cn and .cc. */
html.ow-lang-locked .header__lang {
    display: none !important;
}

html.ow-site-cn .ow-legal-cc,
html.ow-site-en .ow-legal-cn {
    display: none !important;
}

.flex{ display: flex; }
.flex-r{ display: flex; flex-direction: row; flex-wrap:wrap;align-items: flex-start;}
.flex-c{ display: flex; flex-direction: column;}
.flex-ra{ justify-content: space-around;}
.flex-rb{ justify-content: space-between;}
.flex1{ flex: 1;}
.flex-jc{ justify-content: center;}
.flex-ac{ align-items: center;}
.flex-cc{ justify-content: center; align-items: center;}

.logout{ cursor: pointer; }

/* Boot: shell paints first; shimmer on image hosts only (see site-bootstrap critical). */
html.ow-i18n-pending body {
  visibility: visible;
}
#openworld-shell-sidebar:empty {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  max-width: 40vw;
  z-index: 120;
  background: #141414;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}
body[data-page="create"] #openworld-shell-sidebar:empty,
body[data-page="login"] #openworld-shell-sidebar:empty,
body[data-page="register"] #openworld-shell-sidebar:empty,
body.ow-auth-page #openworld-shell-sidebar:empty {
  display: none !important;
}
@media (max-width: 991.98px) {
  #openworld-shell-sidebar:empty {
    display: none !important;
  }
}
@keyframes ow-boot-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
html.ow-i18n-pending .m-img,
html.ow-i18n-pending .ow-world-card-thumb,
html.ow-i18n-pending .ow-kind-tile,
html.ow-i18n-pending .ow-hero-bleed-media,
html.ow-i18n-pending .nft__item .m-img,
html.ow-i18n-pending .header__user__img,
html.ow-i18n-pending .ow-project-card .m-img {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
html.ow-i18n-pending .m-img::after,
html.ow-i18n-pending .ow-world-card-thumb::after,
html.ow-i18n-pending .ow-kind-tile::after,
html.ow-i18n-pending .ow-hero-bleed-media::after,
html.ow-i18n-pending .nft__item .m-img::after,
html.ow-i18n-pending .header__user__img::after,
html.ow-i18n-pending .ow-project-card .m-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.12) 37%,
    rgba(255, 255, 255, 0.04) 63%
  );
  background-size: 220% 100%;
  animation: ow-boot-shimmer 1.15s ease-in-out infinite;
}
html.ow-i18n-pending img,
html.ow-i18n-pending video {
  filter: saturate(0.45) brightness(0.94);
}
html.ow-i18n-ready .m-img::after,
html.ow-i18n-ready .ow-world-card-thumb::after,
html.ow-i18n-ready .ow-kind-tile::after,
html.ow-i18n-ready .ow-hero-bleed-media::after,
html.ow-i18n-ready .nft__item .m-img::after,
html.ow-i18n-ready .header__user__img::after,
html.ow-i18n-ready .ow-project-card .m-img::after {
  content: none;
  animation: none;
}
html.ow-i18n-ready img,
html.ow-i18n-ready video {
  filter: none;
  transition: filter 0.22s ease;
}

/* Prevent login button flash while auth state hydrates */
html:not(.openworld-auth-ready):not(.openworld-logged-in) #header__user .header__wallet {
    visibility: hidden;
}

html.openworld-logged-in #header__user .header__wallet {
    display: none !important;
}

html.openworld-logged-in #header__user .header__user__img.hide {
    display: block !important;
}

html.openworld-auth-loading #header__user .header__wallet {
    visibility: hidden;
}

html.openworld-auth-ready #header__user .header__wallet,
html.openworld-auth-ready #header__user .header__user__img {
    visibility: visible;
}

/* Language switcher */
.header__lang {
    position: relative;
}
.ow-lang-select {
    position: relative;
}
.ow-lang-toggle {
    appearance: none;
    background: transparent;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #EDEDED;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    min-width: 92px;
    padding: 6px 26px 6px 10px;
    position: relative;
    text-align: left;
}
.ow-lang-toggle::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #C8C8C8;
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-40%);
}
.ow-lang-select.is-open .ow-lang-toggle {
    border-color: #E8E8E8;
}
.ow-lang-menu {
    background: #1C1C1C;
    border: 1px solid #333333;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    display: none;
    list-style: none;
    margin: 6px 0 0;
    min-width: 100%;
    padding: 6px 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 80;
}
.ow-lang-select.is-open .ow-lang-menu {
    display: block;
}
.ow-lang-menu .openworld-lang-btn {
    background: transparent;
    border: 0;
    color: #C8C8C8;
    cursor: pointer;
    display: block;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    text-align: left;
    width: 100%;
}
.ow-lang-menu .openworld-lang-btn:hover,
.ow-lang-menu .openworld-lang-btn.is-active {
    background: #262626;
    color: #EDEDED;
}

.disable-btn{ background-color: #333333 !important;border-color: #666 !important;cursor: unset !important;pointer-events: none; }
.disable-btn:hover{ background-color: #333333 !important;border-color: #666 !important; }

/* EditorTheme tokens  match src/Openworld.Client/EditorTheme.cs */
:root {
    --openworld-bg: #141414;
    --openworld-panel: #1C1C1C;
    --openworld-elevated: #262626;
    --openworld-border: #333333;
    --openworld-primary: #E8E8E8;
    --openworld-primary-dark: #FFFFFF;
    --openworld-surface: #1C1C1C;
    --openworld-text: #EDEDED;
    --openworld-muted: #C8C8C8;
    --ow-radius: 16px;
    --ow-radius-sm: 12px;
    --ow-radius-btn: 20px;
    --ow-space-1: 8px;
    --ow-space-2: 12px;
    --ow-space-3: 16px;
    --ow-space-4: 24px;
    --ow-space-5: 40px;
    --ow-font-kicker: 12px;
    --ow-font-body: 16px;
    --ow-font-lead: 17px;
    --ow-font-h2: 22px;
    --ow-touch: 44px;
    --ow-font-display: "Outfit", "Noto Sans SC", "Noto Sans TC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --ow-font-sans: "Noto Sans SC", "Noto Sans TC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --ow-page-gap: 16px;
    --ow-topbar-height: 65px;
}

html,
body {
    background-color: var(--openworld-bg);
    background-image:
        radial-gradient(1100px 560px at 78% -12%, rgba(255, 255, 255, 0.035) 0%, transparent 58%);
    background-attachment: fixed;
    color: var(--openworld-text);
    font-family: var(--ow-font-sans);
    font-size: var(--ow-font-body);
    font-feature-settings: "kern" 1;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
    /* Firefox: thin neutral thumb (Copilot/create chrome still hide via more-specific rules). */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

/* Site-wide slim scrollbar  replace OS chunky bars on Hub shelves / lists / menus. */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.32);
}
*::-webkit-scrollbar-corner {
    background: transparent;
}
*::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 12000;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

h1, h2, h3,
.ow-wordmark,
.ow-hero-brand,
.section__title,
.section__title-2 {
    font-family: var(--ow-font-display);
}

img, video, canvas, svg {
    max-width: 100%;
}

body.active-light-mode {
    background-color: var(--openworld-bg) !important;
}

body.active-light-mode .slider__search h3,
body.active-light-mode .slider__search > span,
body.active-light-mode .section__title,
body.active-light-mode .section__title-2 {
    color: var(--openworld-text) !important;
}

body.active-light-mode .footer__widget-title,
body.active-light-mode .footer__widget ul li a,
body.active-light-mode .footer__info p,
body.active-light-mode .footer__copyright p,
body.active-light-mode .footer__copyright a {
    color: var(--openworld-muted) !important;
}

body.active-light-mode .footer__copyright a:hover,
body.active-light-mode .footer__widget ul li a:hover {
    color: var(--openworld-text) !important;
}

.ow-wordmark {
    display: inline-block;
    color: var(--openworld-text) !important;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 64px;
    text-decoration: none !important;
    white-space: nowrap;
}

.ow-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.ow-brand-mark {
    height: 64px;
    width: auto;
    display: block;
}

.header__logo {
    min-width: 0;
}

.header__wrapper > .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.header__wrapper > .row > [class*="col-"]:first-child {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.header__wrapper > .row > [class*="col-"]:nth-child(2) {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
}

.header__menu-wrapper {
    padding-left: 56px;
}

.header__wrapper > .row > [class*="col-"]:last-child {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin-left: auto;
}

.header__area.header__transparent,
.header__area.header__sticky.header-sticky {
    background: var(--openworld-panel) !important;
    border-bottom: 1px solid var(--openworld-border);
    backdrop-filter: none;
}

.header__menu-wrapper .main-menu nav > ul > li > a {
    color: #C8C8C8;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.header__menu-wrapper .main-menu nav > ul > li > a:hover {
    color: #EDEDED;
}

.header__menu-wrapper .main-menu nav > ul > li > a.openworld-nav-active,
.header__menu-wrapper .main-menu nav > ul > li > a.openworld-nav-active i {
    color: #EDEDED !important;
    border-bottom-color: #E8E8E8;
}

.slider__title-3 {
    letter-spacing: 0;
    color: var(--openworld-text);
}

.section__title, .section__title-2 {
    letter-spacing: 0;
    color: var(--openworld-text);
    font-size: var(--ow-font-h2);
    font-weight: 600;
    line-height: 1.3;
}

/* World cards  cover edge-to-edge; kill NFT template padding */
.ow-world-card,
.nft__box,
.bid__item,
.creator__item {
    border-radius: var(--ow-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1a1a1a;
    box-shadow: none;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ow-world-card:hover,
.nft__box:hover,
.bid__item:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.nft__box-top,
.nft__box .nft__box-react,
.nft__box .nft__box-btn,
.nft__box .bid__tag {
    display: none !important;
}

.nft__box-thumb,
.ow-world-card-thumb,
.m-img.nft__box-thumb,
.m-img.ow-world-card-thumb {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--openworld-elevated);
    border-radius: 0 !important;
}

.nft__box-thumb > a.ow-feed-cover,
.ow-world-card-thumb > a.ow-feed-cover,
.nft__box-thumb > a:not(.ow-feed-action),
.ow-world-card-thumb > a:not(.ow-feed-action) {
    display: block;
    width: 100%;
    height: 100%;
}

.nft__box-thumb img,
.ow-world-card-thumb img,
.m-img.nft__box-thumb img,
.m-img.ow-world-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 0 !important;
}

.nft__box-content,
.ow-world-card-body {
    padding: 12px 14px 14px !important;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 0;
    gap: 0;
}

.nft__box-title,
.nft__box-title a,
.ow-world-card-title,
.ow-world-card-title a {
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.35;
    color: var(--openworld-text) !important;
    margin: 0 0 8px !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}

.nft__box-info,
.nft__box-stock p {
    margin: 0 !important;
    color: var(--openworld-muted) !important;
    font-size: 13px;
}

.bid__item {
    padding: 0 !important;
    height: 100%;
    display: flex;
}

.bid__item .nft__box {
    margin: 0 !important;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* worlds / my-worlds / create shelf: equal card heights */
#search_spaces,
.ow-shelf-grid,
.ow-create-projects-grid,
#data_my_space {
    align-items: stretch;
}
#search_spaces > [class*="col-"],
.ow-shelf-grid > [class*="col-"],
.ow-create-projects-grid > [class*="col-"],
#data_my_space > [class*="col-"],
.ow-mw-col {
    display: flex;
}
#search_spaces .ow-world-card,
#search_spaces .nft__box,
.ow-shelf-grid .ow-world-card,
.ow-shelf-grid .nft__box,
.ow-shelf-grid .ow-project-card,
#data_my_space .ow-project-card,
#data_my_space .nft__box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Slick shelf: equal card heights */
.bid__slider .slick-track {
    display: flex !important;
    align-items: stretch;
}
.bid__slider .slick-slide {
    height: auto !important;
    display: flex !important;
}
.bid__slider .slick-slide > div {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Primary / secondary buttons */
.tp-btn-gradient,
.tp-btn-gradient.active,
.cta__content-2 .tp-btn-gradient,
.cta__content-2 .tp-btn-gradient.active,
.ow-btn-primary {
    background: var(--openworld-primary) !important;
    background-image: none !important;
    border-radius: var(--ow-radius-btn) !important;
    border: 1px solid transparent !important;
    color: #141414 !important;
    min-height: var(--ow-touch);
    padding: 10px 22px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-family: var(--ow-font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    box-shadow: none !important;
}

.tp-btn-gradient::before,
.tp-btn-gradient::after,
.cta__content-2 .tp-btn-gradient::after {
    display: none !important;
    content: none !important;
}

.tp-btn-gradient:hover,
.tp-btn-gradient.active:hover,
.ow-btn-primary:hover {
    background: var(--openworld-primary-dark) !important;
    background-image: none !important;
    color: #141414 !important;
}

.tp-btn-2,
.tp-btn-4,
.tp-btn-border,
.tp-btn-3,
.ow-btn-secondary,
.header__wallet-btn {
    border-radius: var(--ow-radius-btn) !important;
    min-height: var(--ow-touch);
    padding: 10px 20px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: transparent !important;
    border: 1px solid var(--openworld-border) !important;
    color: var(--openworld-text) !important;
    text-decoration: none !important;
}

.tp-btn-4:hover,
.tp-btn-2:hover,
.ow-btn-secondary:hover,
.header__wallet-btn:hover {
    border-color: #666 !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.header__wallet-btn {
    background: transparent !important;
}

.footer__area {
    background: var(--openworld-panel);
    border-top: 1px solid var(--openworld-border);
}

.footer__widget-title {
    color: var(--openworld-text);
}

.footer__widget ul li a,
.footer__menu a,
.footer__copyright p,
.footer__copyright a {
    color: var(--openworld-muted);
}

.footer__widget ul li a:hover,
.footer__menu a:hover,
.footer__copyright a:hover {
    color: var(--openworld-text);
}

.footer__menu a {
    margin-left: 18px;
}

.footer__subscribe-input input,
.footer__subscribe-input-btn {
    border-radius: 4px !important;
}

body.openworld-loading .bid__slider-active-3:empty,
body.openworld-loading .swiper-wrapper:empty {
    min-height: 220px;
    background: var(--openworld-elevated);
    border: 1px solid var(--openworld-border);
    border-radius: 4px;
}

.share__modal, .report__modal, .bid__modal.modal, .theme__settings {
    display: none !important;
}

.offcanvas__social {
    display: none;
}

.offcanvas__content {
    background: var(--openworld-panel);
}

.offcanvas__content a {
    color: #C8C8C8;
}

p,
.cta__content-2 p,
.slider__search p,
.login__top p,
.login__register-hint,
.login__input-title h4,
.login__form,
.login__wrapper,
.product__details-info,
.product__details-title,
.nft__box p,
.bid__item p,
.creator__content,
.creator__title a {
    color: var(--openworld-text) !important;
}

.login__area,
.login__wrapper {
    background: transparent;
}

.login__input input,
.login__input textarea,
.footer__subscribe-input input {
    color: #EDEDED !important;
    background: #262626 !important;
    border-color: #333 !important;
    border-radius: 8px !important;
}

.login__input .nice-select,
.login__area .tp-btn-4,
.login__btn .tp-btn-4,
.login__form .tp-btn-4,
.login__btn .tp-btn-gradient {
    border-radius: var(--ow-radius-sm) !important;
    width: 100%;
}

.login__input-title h4,
.login__input-title h4 span {
    color: #EDEDED !important;
}

.login__input-title h4 span:last-child {
    color: #E8E8E8 !important;
}
.login__register-hint {
    margin: 0;
    font-size: 14px;
    color: var(--openworld-muted) !important;
}

.login__register-hint a {
    color: var(--openworld-primary-dark) !important;
    text-decoration: underline;
}

.login__input input::placeholder,
.login__input textarea::placeholder,
.footer__subscribe-input input::placeholder,
.login__input input::-webkit-input-placeholder,
.login__input textarea::-webkit-input-placeholder,
.login__input input::-moz-placeholder,
.login__input textarea::-moz-placeholder,
.login__input input:-ms-input-placeholder,
.login__input textarea:-ms-input-placeholder {
    color: #7A7A7A !important;
    opacity: 1 !important;
}

.login__input input:-webkit-autofill,
.login__input input:-webkit-autofill:hover,
.login__input input:-webkit-autofill:focus {
    -webkit-text-fill-color: #EDEDED !important;
    caret-color: #EDEDED;
    box-shadow: 0 0 0 1000px #262626 inset !important;
    transition: background-color 99999s ease-out;
}

.login__input-icon,
.login__input-password-visible {
    color: #8A8A8A !important;
}

.mean-container .mean-nav ul li a {
    color: #EDEDED !important;
}


.header__wallet-btn {
    padding: 8px 16px !important;
    min-width: 72px;
    text-align: center;
}

.header__wallet-btn svg {
    display: none;
}

.ow-hero,
.ow-page {
    padding: calc(var(--ow-topbar-height, 65px) + var(--ow-page-gap) + env(safe-area-inset-top, 0px)) 0 56px;
}

.ow-hero:not(.ow-hero--bleed) {
    padding-bottom: 72px;
    border-bottom: 1px solid var(--openworld-border);
}

body[data-page="home"] .ow-hero--bleed {
    padding: 0;
    border-bottom: 0;
}

.ow-kicker {
    color: var(--openworld-primary-dark);
    font-size: var(--ow-font-kicker);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 var(--ow-space-2);
}

.ow-hero h1,
.ow-page h1 {
    max-width: 18em;
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 600;
    letter-spacing: 0 !important;
    line-height: 1.25;
    color: var(--openworld-text);
    margin: 0 0 16px;
}

.ow-page h1 {
    max-width: none;
}

.ow-lead {
    max-width: 54ch;
    color: var(--openworld-muted) !important;
    font-size: var(--ow-font-lead);
    line-height: 1.65;
    margin: 0 0 var(--ow-space-4);
}

.ow-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ow-hero-actions .tp-btn-gradient {
    min-width: 168px;
    text-align: center;
    padding: 12px 20px;
}

.ow-hero-actions .tp-btn-gradient:not(.active) {
    background: var(--openworld-elevated) !important;
    color: var(--openworld-text) !important;
}

.ow-steps {
    padding: 48px 0;
    border-bottom: 1px solid var(--openworld-border);
}

.ow-step {
    background: var(--openworld-panel);
    border: 1px solid var(--openworld-border);
    border-radius: 4px;
    padding: 24px;
    height: 100%;
    margin-bottom: 16px;
}

.ow-step span {
    display: inline-block;
    color: var(--openworld-primary-dark);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ow-step h2 {
    font-size: 20px;
    color: var(--openworld-text);
    margin: 0 0 8px;
}

.ow-step p,
.ow-muted,
.ow-card p {
    color: var(--openworld-muted) !important;
    line-height: 1.55;
    margin: 0;
}

.ow-muted {
    margin-top: 8px;
}

.ow-text-link {
    color: var(--openworld-primary-dark);
    font-weight: 600;
}

.ow-text-link:hover {
    color: var(--openworld-text);
}

.ow-asset-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

button.ow-text-link.ow-asset-delete {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: var(--openworld-muted, #9aa3b2);
}

button.ow-text-link.ow-asset-delete:hover {
    color: #e85d5d;
}

button.ow-text-link.ow-asset-delete:disabled {
    opacity: 0.5;
    cursor: default;
}

.ow-catalog .section__title {
    margin: 0;
}

.ow-empty {
    padding: 40px 24px;
    text-align: center;
    border: 1px dashed var(--openworld-border);
    border-radius: 4px;
    color: var(--openworld-muted);
    background: var(--openworld-panel);
}

.ow-shelf {
    margin-top: 40px;
    padding: 28px 28px 8px;
    background: var(--openworld-panel);
    border: 1px solid var(--openworld-border);
    border-radius: 4px;
}

.ow-shelf .section__title {
    margin: 0 0 8px;
}

.ow-shelf > .ow-muted {
    margin: 0 0 24px;
}

.ow-shelf-grid {
    min-height: 220px;
}

.ow-shelf-grid > [class*="col-"] {
    margin-bottom: 24px;
}

.ow-slot {
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.ow-slot-box {
    flex: 1;
    min-height: 160px;
    border: 1px dashed var(--openworld-border);
    border-radius: 4px;
    background: var(--openworld-elevated);
}

.ow-slot .ow-muted {
    margin-top: 12px;
    min-height: 1.55em;
}

.ow-asset-thumb {
    min-height: 140px;
    background: var(--openworld-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ow-asset-kind {
    color: var(--openworld-muted);
    font-size: 14px;
}

.ow-cards {
    margin-top: 8px;
}

.ow-dl-section {
    font-size: 18px;
    color: var(--openworld-text);
    margin: 28px 0 8px;
    font-weight: 600;
}

.ow-dl-split > [class*="col-"] > .ow-dl-section {
    margin-top: 8px;
}

.ow-dl-split .ow-dl-player .row {
    margin-left: -8px;
    margin-right: -8px;
}

.ow-dl-split .ow-dl-player .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.ow-product-split {
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--openworld-border);
}

.ow-card {
    background: var(--openworld-panel);
    border: 1px solid var(--openworld-border);
    border-radius: var(--ow-radius);
    padding: 28px;
    height: 100%;
    margin-bottom: 24px;
}

.ow-card h2 {
    font-size: 22px;
    color: var(--openworld-text);
    margin: 0 0 12px;
}

.ow-card p {
    margin: 0 0 24px;
}

.ow-badge {
    display: inline-block;
    font-size: 12px;
    color: var(--openworld-muted);
    border: 1px solid var(--openworld-border);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.ow-card .tp-btn-4,
.ow-card .tp-btn-gradient {
    display: inline-block;
    cursor: pointer;
}

.ow-card .ow-action-btn {
    pointer-events: auto;
    opacity: 1;
    cursor: pointer;
    margin-top: 12px;
}

.ow-qr {
    margin-top: 16px;
    padding: 12px;
    background: #fff;
    border-radius: 4px;
    color: #141414;
    word-break: break-all;
}

.ow-qr img {
    display: block;
    max-width: 220px;
    height: auto;
}

.ops-num {
    font-size: 32px;
    font-weight: 700;
    color: #E8E8E8;
    line-height: 1.2;
    margin: 8px 0 12px;
}

.ow-hint {
    margin-top: 8px;
    color: var(--openworld-muted) !important;
}

.ow-desc-block {
    margin-top: 16px;
}

.product__details-wrapper p.ow-desc-clamp,
#data_space_desc.ow-desc-clamp {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden !important;
    margin-bottom: 4px;
    max-height: 6.2em;
}

.product__details-wrapper p.ow-desc-expanded,
#data_space_desc.ow-desc-expanded {
    display: block !important;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: none;
    overflow: visible !important;
}

.ow-desc-toggle {
    display: inline-block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #c8c8c8;
    font-size: 13px;
    cursor: pointer;
}

.ow-desc-toggle:hover {
    text-decoration: underline;
}

.ow-end-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
}

.ow-end-chip {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #c8c8c8;
    border: 1px solid #444;
    border-radius: var(--ow-radius-sm);
    background: #1c1c1c;
}

.ow-end-chip.ow-end-web {
    color: #c8c8c8;
    border-color: #555555;
}

.ow-end-chip.ow-end-pc,
.ow-end-chip.ow-end-app {
    color: #d0d0d0;
}

.ow-search {
    position: relative;
    max-width: 480px;
    margin: 0 0 24px;
}

.ow-search input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 16px;
    color: #EDEDED;
    background: #262626;
    border: 1px solid #333;
    border-radius: 4px;
}

.ow-search input::placeholder {
    color: #C8C8C8;
}

.ow-search i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #C8C8C8;
}

#search_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}

#search_tags .search-tag,
#search_tags .search-tag-all {
    background: var(--openworld-elevated);
    border: 1px solid var(--openworld-border);
    color: var(--openworld-muted);
    border-radius: var(--ow-radius-sm);
    min-height: var(--ow-touch);
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

#search_tags .search-tag.active,
#search_tags .search-tag-all.active {
    background: var(--openworld-primary);
    border-color: var(--openworld-primary);
    color: #fff;
}

.pagination a:hover {
    background-color: var(--openworld-elevated);
    border-color: var(--openworld-border);
    color: var(--openworld-text);
}

.pagination .active,
.pagination a.active {
    background-color: var(--openworld-primary) !important;
    border-color: var(--openworld-primary) !important;
    color: #fff !important;
}

.ow-space-cta {
    margin-top: 28px;
}

.ow-space-cta .tp-btn-2,
.ow-space-cta .tp-btn-gradient {
    background: var(--openworld-primary) !important;
    border: 1px solid var(--openworld-border);
    color: #fff !important;
    border-radius: 4px;
    padding: 12px 24px;
}

.ow-footer {
    padding: 28px 0 32px;
}

.ow-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.ow-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ow-footer-nav a,
.ow-footer .footer__copyright {
    color: var(--openworld-muted);
    font-size: 14px;
}

.ow-footer .footer__beian {
    margin-left: 16px;
    color: inherit;
    text-decoration: none;
}

.ow-footer .footer__beian:hover {
    color: var(--openworld-text);
    text-decoration: underline;
}

.ow-footer-nav a:hover {
    color: var(--openworld-text);
}

@media (max-width: 575px) {
    .ow-brand-mark {
        height: 48px;
    }

    .ow-wordmark {
        font-size: 22px;
        line-height: 48px;
    }
}

@media (max-width: 767px) {
    :root {
        --ow-page-gap: 12px;
    }

    .ow-hero-actions .tp-btn-gradient,
    .ow-hero-actions .tp-btn-4 {
        width: 100%;
    }
}

/* ===== OpenWorld visual upgrade (design system) ===== */

/* Layered page background: deep grey + soft light (no blue cast) */
.ow-hero,
.ow-page {
    position: relative;
    background:
        radial-gradient(900px 420px at 72% -8%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 60%),
        var(--openworld-bg);
}

.ow-hero::before,
.ow-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(720px 400px at 70% 0%, #000 0%, transparent 78%);
    mask-image: radial-gradient(720px 400px at 70% 0%, #000 0%, transparent 78%);
}

.ow-hero > .container,
.ow-page > .container {
    position: relative;
    z-index: 1;
}

/* Full-bleed home hero  brand first */
.ow-hero--bleed {
    position: relative;
    min-height: clamp(520px, calc(100vh - var(--ow-topbar-height, 65px)), 860px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid var(--openworld-border);
    /* Match shell / rail  #0a0e14 read as a left black strip next to the hub rail. */
    background: #141414;
}
.ow-hero--bleed.ow-hero--compact {
    min-height: clamp(320px, 42vh, 520px);
}
.ow-hero--bleed::before {
    display: none;
}
.ow-hero-bleed-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.ow-hero-bleed-media .ow-hero-canvas.is-live {
    pointer-events: auto;
}
.ow-hero-bleed-media .ow-hero-visual,
.ow-hero-bleed-media .ow-hero-shard {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: #141414;
}
.ow-hero-bleed-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Vertical fade only  horizontal left band read as a black gutter by the rail. */
    background:
        linear-gradient(180deg, rgba(20, 20, 20, 0.12) 0%, rgba(20, 20, 20, 0.42) 48%, rgba(20, 20, 20, 0.92) 100%);
}
.ow-hero-bleed-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px calc(48px + env(safe-area-inset-bottom, 0px));
}
.ow-hero-brand {
    margin: 0 0 14px;
    font-family: var(--ow-font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #fff;
}
.ow-hero--bleed h1 {
    width: max-content;
    max-width: 100%;
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 14px;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}
.ow-hero--bleed .ow-lead {
    width: max-content;
    max-width: 100%;
    color: rgba(237, 237, 237, 0.88) !important;
    margin-bottom: 22px;
    white-space: nowrap;
}
.ow-hero--bleed .ow-hero-actions {
    gap: 12px;
}
@media (max-width: 767px) {
    .ow-hero--bleed {
        min-height: clamp(460px, 78vh, 720px);
        align-items: flex-end;
    }
    .ow-hero--bleed.ow-hero--compact {
        min-height: clamp(280px, 48vh, 420px);
    }
    .ow-hero-bleed-copy {
        padding: 32px 16px calc(32px + env(safe-area-inset-bottom, 0px));
    }
    .ow-hero-bleed-scrim {
        background:
            linear-gradient(180deg, rgba(20, 20, 20, 0.2) 0%, rgba(20, 20, 20, 0.55) 40%, rgba(20, 20, 20, 0.96) 100%);
    }
    .ow-hero--bleed h1,
    .ow-hero--bleed .ow-lead {
        white-space: normal;
        width: auto;
    }
}

/*  Home create entry (LibTV-style tool surface)  */
.ow-home-create {
    padding: 28px 0 28px;
    margin-top: 0;
    position: relative;
    /* Above kind-tiles / promo so axis menus paint over the section below. */
    z-index: 20;
}
.ow-home-create-panel {
    position: relative;
    /* Must stay visible  overflow:hidden clips .ow-create-dd-menu under the bar. */
    overflow: visible;
    border-radius: var(--ow-radius);
    border: 1px solid var(--openworld-border);
    background: var(--openworld-panel);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.ow-home-create-inner {
    position: relative;
    z-index: 1;
    overflow: visible;
    padding: 20px 20px 16px;
}
.ow-home-create-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--openworld-text);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
/* PC Hub create modal parity: real brief + axis dropdowns + start */
.ow-home-create-box {
    background: var(--openworld-elevated);
    border: 1px solid var(--openworld-border);
    border-radius: 12px;
    padding: 14px 14px 12px;
    overflow: visible;
}
.ow-home-brief-wrap {
    position: relative;
}
.ow-home-brief {
    display: block;
    width: 100%;
    min-height: 120px;
    margin: 0;
    padding: 4px 2px 28px;
    border: 0;
    background: transparent;
    color: #f2f2f2;
    resize: vertical;
    font-size: 16px;
    line-height: 1.55;
    outline: none;
    box-shadow: none;
}
.ow-home-count--in-brief {
    position: absolute;
    right: 6px;
    bottom: 6px;
    margin: 0;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(20, 20, 20, 0.72);
    font-size: 11px;
    line-height: 1.2;
    color: var(--openworld-muted, #888);
    pointer-events: none;
}
.ow-home-brief::placeholder {
    color: var(--openworld-muted, #999);
}
.ow-home-create-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding-top: 4px;
}
.ow-home-start {
    flex: 0 0 auto;
    min-height: 36px !important;
    padding: 0 16px !important;
}
.ow-home-create-bar .ow-composer-model,
.ow-home-create-bar .ow-model-dd {
    flex: 0 0 auto;
}
/* Home create bar sits mid-page — open model menu downward (canvas composers stay upward). */
.ow-home-create-bar .ow-model-dd-menu {
    top: calc(100% + 6px);
    bottom: auto;
}
.ow-home-create-bar .ow-create-dd-row {
    flex: 1 1 auto;
    min-width: 0;
}
.ow-home-create-bar .ow-create-dd-summary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
}
.ow-home-create-bar .ow-create-dd[open] > .ow-create-dd-summary {
    border-color: rgba(255, 255, 255, 0.45);
}
.ow-home-create-spacer {
    flex: 1 1 12px;
    min-width: 8px;
}
.ow-home-style-toggle {
    flex: 0 0 auto;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    color: rgba(232, 236, 242, 0.88);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    min-height: 36px;
    padding: 0 12px;
    cursor: pointer;
}
.ow-home-style-toggle:hover {
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}
.ow-home-style-toggle.is-on {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.ow-home-create-box > .ow-style-square-group {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ow-home-create-box > .ow-style-square-group[hidden] {
    display: none !important;
}
.ow-home-count {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--openworld-muted, #888);
}
.ow-home-create-hint {
    margin: 10px 0 0;
    font-size: 12px;
}

/* Kind tiles  promo art (lazy), one image asset family */
.ow-kind-tiles {
    padding: 36px 0 28px;
    border-bottom: 1px solid var(--openworld-border);
}
.ow-features-head--tight {
    margin-bottom: 20px;
}
.ow-kind-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.ow-kind-tile {
    position: relative;
    display: block;
    min-height: 140px;
    border-radius: var(--ow-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--openworld-elevated);
    text-decoration: none !important;
    color: #fff;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.ow-kind-tile-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ow-kind-tile-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.12) 0%, rgba(20, 20, 20, 0.82) 100%);
}
.ow-kind-tile-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    min-height: 140px;
    padding: 16px;
}
.ow-kind-tile-name {
    font-family: var(--ow-font-display);
    font-size: 17px;
    font-weight: 600;
}
.ow-kind-tile-desc {
    font-size: 13px;
    color: rgba(237, 237, 237, 0.78);
    line-height: 1.4;
}
.ow-kind-tile:hover {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}
.ow-kind-tile:hover .ow-kind-tile-scrim {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.05) 0%, rgba(20, 20, 20, 0.72) 100%);
}
@media (max-width: 900px) {
    .ow-kind-tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Discovery feed */
.ow-discover {
    padding-top: 40px;
}
.ow-feed-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}
.ow-feed-tab {
    appearance: none;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #bbb;
    font-size: 13px;
    cursor: pointer;
}
.ow-feed-tab.is-on,
.ow-feed-tab:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.ow-feed-grid {
    align-items: stretch;
}
.ow-feed-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 16px;
}
.ow-feed-card {
    width: 100%;
    height: 100%;
}
.ow-feed-card .nft__box-thumb {
    position: relative;
}
/* LibTV-style cover hover: bottom frosted pills (never inherit thumb a 100% size) */
.ow-feed-hover {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 12px 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 100%);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 2;
    box-sizing: border-box;
}
.ow-feed-card:hover .ow-feed-hover,
.ow-world-card:hover .ow-feed-hover {
    opacity: 1;
    pointer-events: auto;
}
a.ow-feed-action,
.ow-feed-action {
    flex: 0 0 auto;
    width: auto !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    min-width: 72px;
    max-width: none !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #141414 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}
a.ow-feed-action:hover,
.ow-feed-action:hover {
    background: #fff !important;
    color: #111 !important;
}
a.ow-feed-action--ghost,
.ow-feed-action--ghost {
    background: rgba(20, 20, 20, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #fff !important;
    box-shadow: none;
}
a.ow-feed-action--ghost:hover,
.ow-feed-action--ghost:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}
@media (hover: none) {
    .ow-feed-hover {
        opacity: 1;
        pointer-events: auto;
        background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
    }
}

/* Hero two-column layout (legacy non-bleed pages) */
.ow-hero-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.18fr;
    gap: 40px;
    align-items: center;
}

.ow-hero-visual {
    position: relative;
}

.ow-hero-shot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--openworld-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Hero World Shard (Three.js) */
.ow-hero-shard {
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    min-height: 320px;
    border-radius: 14px;
    border: 1px solid var(--openworld-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* Key art is the hero  Three.js only overlays neon digital layers on top. */
    background-color: #141414;
    background-image: url("/assets/img/brand/promo-hero.jpg?v=chrome2");
    background-size: cover;
    background-position: center;
}

.ow-hero-shard .ow-hero-shot {
    position: absolute;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: 0;
    /* Absolute  never take a second row under the shard frame. */
    opacity: 1;
}

.ow-hero-shard .ow-hero-shot[hidden] {
    /* Keep absolute slot; opacity only  do not reflow into a black hole. */
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.ow-hero-canvas {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    display: block;
    z-index: 1;
    opacity: 1;
    cursor: grab;
    /* Allow vertical page scroll; horizontal drag handled in JS after threshold. */
    touch-action: pan-y;
}

.ow-hero-canvas:not(.is-live) {
    opacity: 0;
    pointer-events: none;
}

.ow-hero-canvas.is-live {
    opacity: 1;
}

.ow-hero-canvas:active {
    cursor: grabbing;
}

@media (max-width: 900px) {
    .ow-hero-shard {
        aspect-ratio: 16 / 11;
        min-height: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ow-hero-canvas {
        display: none !important;
    }
}

.ow-card-media {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ow-hero-badge {
    position: absolute;
    top: -30px;
    right: -18px;
    width: 104px;
    height: 104px;
    z-index: 2;
}

.ow-hero-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(20, 20, 20, 0.85), 0 0 70px rgba(255, 255, 255, 0.5);
}

/* CSS-only editor window mockup (kept for non-home reuse) */
.ow-mockup {
    background: var(--openworld-panel);
    border: 1px solid var(--openworld-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.ow-mockup-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--openworld-elevated);
    border-bottom: 1px solid var(--openworld-border);
}

.ow-mockup-bar .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #333;
}

.ow-mockup-bar .dot:nth-child(1) { background: #ff5f57; }
.ow-mockup-bar .dot:nth-child(2) { background: #febc2e; }
.ow-mockup-bar .dot:nth-child(3) { background: #28c840; }

.ow-mockup-title {
    margin-left: 10px;
    font-size: 12px;
    color: var(--openworld-muted);
    letter-spacing: 0.02em;
}

.ow-mockup-body {
    display: grid;
    grid-template-columns: 84px 1fr 96px;
    height: 320px;
}

.ow-mockup-side,
.ow-mockup-inspector {
    background: var(--openworld-panel);
    border-right: 1px solid var(--openworld-border);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ow-mockup-inspector {
    border-right: none;
    border-left: 1px solid var(--openworld-border);
}

.ow-mockup-side-item,
.ow-mockup-inspector-row {
    height: 14px;
    border-radius: 4px;
    background: var(--openworld-elevated);
}

.ow-mockup-side-item.is-active {
    background: rgba(255, 255, 255, 0.45);
}

.ow-mockup-inspector-row {
    height: 22px;
    margin-bottom: 4px;
}

.ow-mockup-inspector-row:nth-child(2) { height: 34px; background: rgba(255, 255, 255, 0.18); }

.ow-mockup-viewport {
    position: relative;
    background: radial-gradient(120% 90% at 50% 0%, #262626 0%, #141414 72%);
    overflow: hidden;
}

.ow-mockup-grid {
    position: absolute;
    left: -50%;
    right: -50%;
    bottom: -62%;
    height: 128%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.30) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.30) 1px, transparent 1px);
    background-size: 34px 34px;
    transform: perspective(320px) rotateX(60deg);
    transform-origin: center top;
}

.ow-mockup-object {
    position: absolute;
    border-radius: 8px;
    background: linear-gradient(160deg, #E8E8E8 0%, #333333 100%);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.ow-mockup-object-a { width: 46px; height: 46px; left: 22%; bottom: 34%; }
.ow-mockup-object-b { width: 28px; height: 28px; right: 24%; bottom: 26%; border-radius: 50%; background: linear-gradient(160deg, #FFFFFF 0%, #333333 100%); }
.ow-mockup-object-c { width: 38px; height: 18px; left: 48%; bottom: 18%; border-radius: 4px; background: rgba(160, 160, 160, 0.7); }

/* Story band  share/OG art between copy sections */
.ow-story {
    padding: 72px 0;
    border-bottom: 1px solid var(--openworld-border);
    background:
        radial-gradient(720px 360px at 88% 20%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 60%),
        var(--openworld-bg);
}

.ow-story-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
}

.ow-story-copy h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    color: var(--openworld-text);
    margin: 0 0 16px;
    max-width: 16em;
}

.ow-story-copy .ow-lead {
    margin-bottom: 0;
}

.ow-story-shot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--openworld-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

/* Feature rail  editorial, not icon cards */
.ow-features {
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--openworld-border);
}

.ow-features .ow-kicker,
.ow-capability-band .ow-kicker {
    text-align: left;
    margin-bottom: 8px;
}

.ow-features-head {
    text-align: left;
    max-width: 640px;
    margin: 0 0 40px;
}

.ow-features-head h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    color: var(--openworld-text);
    margin: 0 0 12px;
}

.ow-feature-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 40px;
}

.ow-feature {
    height: auto;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0;
    padding: 20px 0 0;
    margin-bottom: 0;
    transition: border-color 0.2s ease;
}

.ow-feature:hover {
    transform: none;
    border-top-color: var(--openworld-primary-dark);
    box-shadow: none;
}

.ow-feature-index {
    display: block;
    font-family: var(--ow-font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--openworld-primary-dark);
    margin-bottom: 14px;
}

.ow-feature-icon {
    display: none;
}

.ow-feature h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--openworld-text);
    margin: 0 0 10px;
}

.ow-feature p {
    color: var(--openworld-muted) !important;
    line-height: 1.65;
    margin: 0;
    font-size: 15px;
}

@media (max-width: 900px) {
    .ow-feature-rail {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Create kinds  what AI can generate on the site */
.ow-kinds {
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--openworld-border);
}
.ow-kinds .ow-features-head {
    margin-bottom: 32px;
}
.ow-kinds .ow-features-head .ow-muted {
    margin-top: 10px;
    max-width: 54ch;
}
.ow-kinds-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.ow-kind-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    padding: 22px 20px;
    border-radius: var(--ow-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(28, 28, 28, 0.72);
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.ow-kind-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(38, 38, 38, 0.9);
    transform: translateY(-2px);
}
.ow-kind-name {
    font-family: var(--ow-font-display);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.ow-kind-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--openworld-muted) !important;
}
.ow-kinds-more {
    margin: 20px 0 0;
    font-size: 13px;
}
@media (max-width: 900px) {
    .ow-kinds-rail {
        grid-template-columns: 1fr;
    }
}

/* Capability band */
.ow-capability-band {
    padding: 48px 0;
    border-bottom: 1px solid var(--openworld-border);
}

.ow-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.ow-capability {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--openworld-panel);
    border: 1px solid var(--openworld-border);
    border-radius: 8px;
    padding: 18px 20px;
}

.ow-capability .ow-capability-mark {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--openworld-primary);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.ow-capability span {
    color: var(--openworld-text);
    font-size: 15px;
    font-weight: 500;
}

/* Bottom CTA banner */
.ow-cta {
    padding: 72px 0;
}

.ow-cta-banner {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 64px 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: #141414;
}

.ow-cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.42;
    pointer-events: none;
}

.ow-cta-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 20, 20, 0.55) 0%, rgba(20, 20, 20, 0.82) 100%),
        radial-gradient(700px 320px at 50% -20%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 65%);
    pointer-events: none;
}

.ow-cta-inner {
    position: relative;
    z-index: 1;
}

.ow-cta-banner h2 {
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 600;
    color: var(--openworld-text);
    margin: 0 0 12px;
}

.ow-cta-banner p {
    color: var(--openworld-muted) !important;
    max-width: 46ch;
    margin: 0 auto 28px;
}

.ow-cta-banner .tp-btn-gradient {
    min-width: 200px;
    padding: 13px 26px;
    font-size: 15px;
}

/* Footer tagline */
.footer__tagline {
    color: var(--openworld-muted);
    font-size: 14px;
    margin: 0 0 6px;
}

/* Card hover lift shared by download / subpages */
.ow-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ow-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

/* Download page icon chip */
.ow-icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--openworld-primary-dark);
    margin-bottom: 16px;
}

.ow-icon-chip svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 991px) {
    .ow-story-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ow-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ow-hero-copy {
        order: 1;
    }

    .ow-hero-visual {
        order: 2;
    }

    .ow-capability-grid {
        grid-template-columns: 1fr;
    }

    .ow-mockup-body {
        height: 260px;
    }
}

#loading .tp-preloader,
.tp-preloader {
    border-color: #E8E8E8 !important;
}

.tp-preloader-3 .loader-1 .loader-outter,
.tp-preloader-3 .loader-1 .loader-inner,
.active-light-mode .tp-preloader-3 .loader-1 .loader-outter,
.active-light-mode .tp-preloader-3 .loader-1 .loader-inner {
    border-color: #E8E8E8 !important;
}

@keyframes stroke-color {
    0%, 100% { stroke: #E8E8E8; }
}

@-webkit-keyframes stroke-color {
    0%, 100% { stroke: #E8E8E8; }
}


/* Social login hidden until WeChat / Google are live */
.ow-oauth-wechat,
.ow-oauth-google {
    display: none !important;
}
.ow-auth-sms {
    display: none !important;
}
html.ow-site-cn .ow-auth-sms {
    display: block !important;
}
html.ow-site-cn .ow-auth-mail {
    display: none !important;
}
.ow-oauth-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.ow-oauth-btn .ow-oauth-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}
.ow-oauth-btn .ow-oauth-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.header__area {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.ow-footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.offcanvas__content .ow-lang-select {
    width: 100%;
    max-width: 280px;
}

.offcanvas__content .ow-lang-toggle {
    width: 100%;
    min-height: 44px;
}

.offcanvas__content .ow-lang-menu {
    left: 0;
    right: 0;
}

.offcanvas__wallet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    background: var(--openworld-primary);
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
}

html.openworld-logged-in .offcanvas__wallet {
    display: none !important;
}

/* Accountlives on avatar dropdown  not inside hamburger site nav. */
.offcanvas__account {
    display: none !important;
}

.header__bar .hamurger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    margin: 0;
}

.offcanvas__close-btn {
    width: 44px;
    height: 44px;
}

@media (hover: none) {
    .ow-feature:hover {
        transform: none;
        box-shadow: none;
    }
}

.offcanvas__area .modal-dialog {
    background: var(--openworld-panel) !important;
}

.offcanvas__area .modal-content {
    background: var(--openworld-panel);
    height: 100%;
    border-radius: 0;
}

@media (max-width: 991px) {
    .header__wrapper {
        overflow-x: hidden;
    }

    .offcanvas__area .modal-dialog {
        max-width: 100%;
    }

    .header__menu-wrapper {
        padding-left: 0;
    }

    .ow-hero:not(.ow-hero--bleed),
    .ow-page {
        padding: calc(var(--ow-topbar-height, 60px) + var(--ow-page-gap) + env(safe-area-inset-top, 0px)) 0 40px;
    }

    .ow-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ow-hero-copy {
        order: 1;
    }

    .ow-hero-visual {
        order: 2;
        overflow: hidden;
    }

    .ow-hero-badge {
        width: 64px;
        height: 64px;
        top: -12px;
        right: 8px;
    }

    .ow-mockup-side,
    .ow-mockup-inspector {
        display: none;
    }

    .ow-mockup-body {
        grid-template-columns: 1fr;
        height: 200px;
    }

    .ow-capability-grid {
        grid-template-columns: 1fr;
    }

    .ow-cta-banner {
        padding: 36px 20px;
    }

    .ow-cta-banner .tp-btn-gradient {
        min-width: 0;
        width: 100%;
    }

    .login__shape,
    .login__shape-1,
    .login__shape-2,
    .login__shape-3,
    .login__shape-4 {
        display: none !important;
    }

    .login__wrapper {
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }

    .login__input input,
    .login__input textarea {
        font-size: 16px !important;
        min-height: 44px;
    }

    .login__form .tp-btn-2,
    .login__form .tp-btn-4,
    .login__form button[type="submit"],
    .ow-card .tp-btn-4,
    .ow-card .tp-btn-gradient,
    .ow-hero-actions .tp-btn-gradient,
    .ow-space-cta .tp-btn-gradient {
        min-height: 44px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .ow-brand {
        gap: 8px;
    }

    .ow-brand-mark {
        height: 40px;
    }

    .ow-wordmark {
        font-size: 18px;
        line-height: 40px;
    }

    .ow-hero h1,
    .ow-page h1 {
        max-width: none;
        font-size: 28px;
    }

    .ow-lead {
        max-width: none;
        font-size: 15px;
        margin-bottom: 20px;
    }

    .ow-features {
        padding: 40px 0 28px;
    }

    .ow-feature {
        padding: 16px 0 0;
        margin-bottom: 0;
    }

    .ow-card {
        padding: 22px 16px;
        margin-bottom: 16px;
    }

    .ow-search {
        max-width: none;
    }

    .ow-search input {
        font-size: 16px;
    }

    .ow-footer-row,
    .ow-footer-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer__menu a {
        margin-left: 0;
        margin-right: 16px;
    }

    .ow-mockup-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100% - 72px);
    }
}

@media (max-width: 575px) {
    .ow-hero-badge {
        display: none;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.login__input.has-sms input {
    padding-right: 118px;
}

.login__input-sms {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    min-height: 36px;
    padding: 0 14px !important;
    font-size: 13px;
    line-height: 36px;
    border-radius: 20px !important;
    white-space: nowrap;
    background: var(--openworld-elevated) !important;
    border: 1px solid var(--openworld-border) !important;
    color: var(--openworld-text) !important;
}

.ow-captcha {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ow-captcha-field {
    flex: 1;
    margin-bottom: 0;
}

.ow-captcha-img-btn {
    flex: 0 0 132px;
    padding: 0;
    border: 1px solid var(--openworld-border);
    border-radius: 12px;
    background: #1a1a1a;
    overflow: hidden;
    cursor: pointer;
    height: 48px;
}

.ow-captcha-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ow-dl-disabled {
    display: inline-block;
    opacity: 0.55;
    pointer-events: none;
    cursor: not-allowed;
}

/* Create ways  22 marketing cards */
.ow-create-ways .ow-features-head .ow-muted {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}
.ow-ways-soon {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    vertical-align: middle;
    color: var(--openworld-primary-dark);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}
.ow-create-ways .ow-feature code {
    font-size: 0.92em;
    color: var(--openworld-text);
}
@media (max-width: 767px) {
    .ow-ways-grid .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


.ow-dl-cli {
    margin-top: 40px;
}
.ow-dl-cli-card {
    max-width: 40rem;
}
.ow-dl-cli-steps {
    margin: 12px 0 8px;
    padding-left: 1.25rem;
    color: rgba(232, 236, 242, 0.85);
    font-size: 15px;
    line-height: 1.55;
}
.ow-dl-cli-steps li {
    margin-bottom: 6px;
}
.ow-dl-cli-steps code {
    font-size: 0.92em;
    color: var(--openworld-text);
}

/* Product docs — see assets/css/docs-ui.css (loaded from docs.html only). */



/*  Site chrome (PC Hub left rail only  no topbar)  */
:root {
  --ow-topbar-height: 0px;
  --ow-hub-rail-width: 220px;
  /* Same as body/site-main  rail vs #141414 read as a left black strip on home. */
  --ow-hub-bg: #141414;
  --ow-hub-panel: #1C1C1C;
  --ow-hub-line: #333333;
  --ow-hub-text: #C8C8C8;
  --ow-hub-text-strong: #EDEDED;
  --ow-hub-accent: #E8E8E8;
  --ow-hub-accent-soft: rgba(255, 255, 255, 0.08);
  --ow-hub-accent-border: rgba(255, 255, 255, 0.18);
  /* Commercial layout rhythm (Hub UX · web = PC) */
  --ow-space-1: 4px;
  --ow-space-2: 8px;
  --ow-space-3: 12px;
  --ow-space-4: 16px;
  --ow-space-5: 24px;
  --ow-space-6: 32px;
  --ow-type-xs: 11px;
  --ow-type-sm: 12px;
  --ow-type-md: 13px;
  --ow-type-base: 14px;
  --ow-type-lg: 16px;
  --ow-type-xl: 20px;
  --ow-control-h: 36px;
  --ow-control-h-sm: 32px;
  --ow-page-max: 1200px;
  --ow-create-topbar-h: 44px;
}
.ow-site-main {
  min-height: 100vh;
}
body.ow-hub-shell {
  --ow-topbar-height: 0px;
  background: #141414;
  color: var(--ow-hub-text-strong);
  /* Theme body line-height:26px turns a stray BOM text node into a top black strip. */
  line-height: normal;
}
body.ow-hub-shell main,
body.ow-hub-shell .ow-site-main,
body.ow-hub-shell .ow-page,
body.ow-hub-shell .ow-hub-rail,
body.ow-hub-shell footer {
  line-height: 1.5;
}
body.ow-hub-shell .ow-topbar,
body.ow-hub-shell header.ow-topbar,
body.ow-hub-shell .header__area {
  display: none !important;
}
body.ow-hub-shell .ow-hub-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--ow-hub-rail-width);
  /* Above page/footer (1) and create-progress (1400); below card menus (12050) / modals (13000). */
  z-index: 2600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px 14px;
  box-sizing: border-box;
  background: var(--ow-hub-bg);
  /* Seam between Hub rail (home / projects / assets) and main content — web + Electron. */
  border-right: 1px solid var(--ow-hub-line, #333333);
  /* Keep  / Luton above any full-bleed footer or float that slips left. */
  pointer-events: auto;
  isolation: isolate;
}
.ow-hub-rail-brand {
  flex: 0 0 auto;
  padding: 2px 6px 10px;
}
.ow-hub-rail-brand .ow-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}
.ow-hub-rail-brand .ow-brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.ow-hub-rail-brand .ow-wordmark {
  font-size: 15px;
  font-weight: 600;
}
.ow-hub-rail-nav,
.ow-hub-rail-secondary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ow-hub-rail-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.ow-hub-rail-secondary {
  flex: 0 0 auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ow-hub-rail-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--openworld-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}
.ow-hub-rail-link:hover {
  color: var(--openworld-text);
  background: var(--ow-hub-accent-soft, rgba(255, 255, 255, 0.08));
}
.ow-hub-rail-link.is-active {
  color: var(--openworld-primary-dark);
  background: var(--ow-hub-accent-soft, rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px var(--ow-hub-accent-border, rgba(255, 255, 255, 0.18));
}
.ow-hub-rail-link.is-secondary {
  font-size: 13px;
  font-weight: 400;
  color: rgba(200, 200, 200, 0.65);
}
.ow-hub-rail-foot {
  flex: 0 0 auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ow-hub-rail-me {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 10px;
  color: rgba(232, 236, 242, 0.85);
  text-decoration: none;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}
/* Override theme `.header__user > a` 36px circle  that squashed avatar + name. */
.ow-hub-rail-user.header__user {
  padding: 0;
  width: 100%;
}
.ow-hub-rail-user.header__user > a.ow-hub-rail-me,
.ow-hub-rail-user > a.ow-hub-rail-me {
  display: flex;
  width: 100%;
  height: auto;
  min-height: 44px;
  line-height: 1.25;
  border-radius: 10px;
  text-align: left;
}
.ow-hub-rail-me:hover,
.ow-hub-rail-me.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.ow-hub-rail-avatar-wrap {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ow-hub-rail-avatar,
.ow-hub-rail-user.header__user > a.ow-hub-rail-me img,
.ow-hub-rail-user > a.ow-hub-rail-me img {
  display: block;
  width: 32px !important;
  height: 32px !important;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: rgba(255, 255, 255, 0.08);
}
.ow-hub-rail-avatar-fallback {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  height: 32px !important;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}
.ow-hub-rail-username {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
}
body.ow-hub-shell .ow-site-main,
body.ow-hub-shell > main {
  margin-left: var(--ow-hub-rail-width);
  min-height: 100vh;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  overflow-x: clip;
}
/* Footer is a body sibling of the rail (static #openworld-shell-footer). One rail inset only. */
body.ow-hub-shell footer,
body.ow-hub-shell #openworld-shell-footer {
  margin-left: var(--ow-hub-rail-width);
  width: calc(100% - var(--ow-hub-rail-width));
  max-width: calc(100% - var(--ow-hub-rail-width));
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  overflow-x: clip;
}
/* Brand / tagline / © share the same left edge as .ow-page > .container (24px). */
body.ow-hub-shell footer .ow-footer .container,
body.ow-hub-shell #openworld-shell-footer .ow-footer .container {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 24px;
  padding-right: 24px;
  text-align: left;
}
body.ow-hub-shell footer .ow-footer-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px 28px;
}
body.ow-hub-shell footer .footer__tagline,
body.ow-hub-shell footer .footer__copyright {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
body.ow-hub-shell .ow-topbar-slim {
  display: none;
}
body.ow-hub-shell .ow-create-main,
body.ow-hub-shell .ow-create-page {
  max-width: none;
}
body.ow-hub-shell .ow-create-stage-libtv {
  margin-top: 1vh;
}
.ow-hub-rail-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.ow-hub-rail-lang {
  display: block;
  padding: 0 4px;
}
.ow-hub-rail-lang .ow-lang-toggle {
  width: 100%;
  text-align: left;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(232, 236, 242, 0.8);
  font-size: 13px;
}
.ow-hub-lang-menu {
  left: 0;
  right: auto;
  bottom: calc(100% + 6px);
  top: auto;
  min-width: 160px;
}
.ow-hub-rail-user {
  position: relative;
}
.ow-hub-user-menu {
  left: 0;
  right: auto;
  bottom: calc(100% + 8px);
  top: auto;
  min-width: 200px;
  border-radius: var(--ow-radius, 16px) !important;
  border: 1px solid var(--openworld-border) !important;
  background: var(--openworld-panel) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
  overflow: hidden;
}
.ow-hub-user-menu .wallet__dropdown-action ul {
  margin: 0;
  padding: 6px;
  list-style: none;
}
.ow-hub-user-menu .wallet__dropdown-action li a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--openworld-text) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.ow-hub-user-menu .wallet__dropdown-action li a:hover {
  background: var(--ow-hub-accent-soft, rgba(255, 255, 255, 0.08));
  color: var(--openworld-primary-dark) !important;
}
.ow-hub-user-menu .ow-hub-user-menu-muted a {
  color: var(--openworld-muted) !important;
  font-weight: 400;
}
.ow-hub-user-menu .ow-hub-user-menu-token {
  padding: 2px 0 4px;
}
.ow-hub-user-menu .ow-hub-user-menu-token[hidden] {
  display: none !important;
}
.ow-hub-user-menu .ow-hub-rail-token {
  width: 100%;
  margin: 0;
  justify-content: space-between;
  text-align: left;
}
.ow-hub-rail-user.is-open .ow-hub-user-menu,
.ow-hub-rail-user:focus-within .ow-hub-user-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Create: fullscreen canvas + left-docked Copilot (LibTV)  no Hub rail */
body.ow-hub-shell[data-page="create"] .ow-hub-rail,
body.ow-hub-shell[data-page="create"] #openworld-shell-offcanvas {
  display: none !important;
}
body.ow-hub-shell[data-page="create"] .ow-site-main {
  margin-left: 0;
  padding: 0;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}
body.ow-hub-shell[data-page="create"] #openworld-shell-footer,
body.ow-hub-shell[data-page="create"] footer {
  display: none !important;
}
body.ow-hub-shell[data-page="create"] .ow-site-main > .ow-create-main,
.ow-create-main.is-fs {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
.ow-create-page.is-fs {
  --ow-copilot-w: 400px;
  --ow-project-rail-w: 56px;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0 !important;
  max-width: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}
.ow-create-page.ow-create-composer.is-fs::after {
  display: none;
}
/* PC DeskChrome ProjectRail: logo  covers  +  profile */
.ow-project-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--ow-project-rail-w, 56px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0 10px;
  background: #141414;
  /* Same seam language as Hub rail — desk left strip vs canvas. */
  border-right: 1px solid var(--ow-hub-line, #333333);
  box-sizing: border-box;
}
.ow-project-rail-home,
.ow-project-rail-add,
.ow-project-rail-me,
.ow-project-rail-cover {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 236, 242, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ow-project-rail-home:hover,
.ow-project-rail-add:hover,
.ow-project-rail-me:hover,
.ow-project-rail-cover:hover {
  background: rgba(255, 255, 255, 0.1);
}
.ow-project-rail-home img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
}
.ow-project-rail-pins,
.ow-project-rail-recent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.ow-project-rail-pins:not([hidden]) {
  padding-bottom: 6px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 42vh;
}
.ow-project-rail-pins::-webkit-scrollbar,
.ow-project-rail-recent::-webkit-scrollbar {
  display: none;
}
.ow-project-rail-cover.is-pin {
  box-shadow: 0 0 0 1px rgba(255, 200, 80, 0.35);
}
.ow-project-rail-pin-dot {
  position: absolute;
  right: 2px;
  top: 1px;
  font-size: 9px;
  line-height: 1;
  color: rgba(255, 210, 90, 0.95);
  pointer-events: none;
}
.ow-project-rail-cover {
  position: relative;
}
.ow-project-rail-search {
  display: block;
  width: 36px;
  margin: 4px auto;
  font-size: 12px;
}
.ow-project-rail-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #eee;
  text-align: center;
}
.ow-canvas-rename {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ow-canvas-rename-panel {
  pointer-events: auto;
  position: relative;
  z-index: 1;
  width: min(360px, 90vw);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1c1c1c;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ow-canvas-rename-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111;
  color: #eee;
}
.ow-canvas-rename-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.ow-canvas-align-v,
.ow-canvas-align-h {
  background: rgba(90, 180, 255, 0.75);
  z-index: 5;
}
.ow-libtv-confirm-cost.is-warn {
  color: #f0b060;
}
.ow-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.ow-project-rail-pin-dogfood {
  font-size: 15px;
  color: rgba(255, 210, 90, 0.9);
}
.ow-project-rail-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ow-project-rail-picker[hidden] {
  display: none !important;
}
.ow-project-rail-picker-card {
  width: min(420px, 92vw);
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.ow-project-rail-picker-card input[type='search'] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e8ecf2;
  font-size: 14px;
}
.ow-project-rail-picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 120px;
}
.ow-project-rail-picker-item {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  margin: 0 0 4px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8ecf2;
  cursor: pointer;
}
.ow-project-rail-picker-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.ow-project-rail-picker-title {
  font-size: 14px;
  font-weight: 600;
}
.ow-project-rail-picker-meta {
  font-size: 11px;
  opacity: 0.65;
}
.ow-project-rail-picker-empty {
  padding: 16px 8px;
  opacity: 0.6;
  font-size: 13px;
}
.ow-project-rail-cover img,
.ow-project-rail-cover-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  flex: none;
}
.ow-project-rail-cover .ow-cover-img.is-pending {
  opacity: 0;
}
.ow-project-rail-cover .ow-cover-img.is-ready {
  opacity: 1;
}
.ow-project-rail-cover-ph {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
}
.ow-project-rail-cover.is-on {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.ow-project-rail-add {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.ow-project-rail-open {
  font-size: 16px;
  letter-spacing: 0.05em;
  color: rgba(232, 238, 247, 0.85);
}
.ow-project-rail-spacer {
  flex: 1 1 auto;
  min-height: 8px;
  width: 1px;
  pointer-events: none;
}
.ow-project-rail-me-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 -6px 0 rgba(255, 255, 255, 0.75);
  display: block;
}
.ow-create-canvas-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--ow-project-rail-w, 56px);
  display: flex;
  flex-direction: column;
  /* LibTV board — not hub #141414 */
  background: #0e0e0e;
  z-index: 1;
  transition: left 0.15s ease;
}
/* Desk is full-bleed beside ProjectRail; Copilot overlays on the right */
.ow-create-page.is-fs .ow-create-canvas-stage {
  left: var(--ow-project-rail-w, 56px);
}
.ow-create-canvas-stage .ow-create-right-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  min-height: 36px;
  background: rgba(28, 28, 28, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
}
/* Desk head: Nodes/Assets left · Canvas tools right (all hosts; DOM in CreatePage). */
.ow-create-top-row--nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}
.ow-create-top-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
}
.ow-create-tabs-spacer--in-nav {
  flex: 1 1 auto;
  min-width: 8px;
}
.ow-create-canvas-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: auto;
  padding: 0 10px;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.ow-create-canvas-tab.is-on {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.ow-create-top-row--nav > .ow-manager-tabs.ow-create-top-rails {
  flex: 0 1 auto;
  margin-left: 0;
  max-width: min(100%, 62vw);
  overflow-x: auto;
  scrollbar-width: thin;
}
.ow-create-tabs-sep {
  flex: 0 0 auto;
  width: 1px;
  height: 16px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.12);
}
.ow-create-back-projects {
  /* Visible on desktop create; ProjectRail also has data-rail-act=projects */
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 236, 242, 0.88);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.ow-project-rail-projects {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.ow-create-back-projects:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.ow-create-canvas-stage .ow-create-canvas,
.ow-create-canvas-stage .ow-create-play {
  flex: 1 1 auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  margin: 0;
}
/* Play = full desk under tabs (static showRight hides canvas; Hub keeps board mounted). */
.ow-create-canvas-stage.is-play-open .ow-create-canvas {
  display: none !important;
}
.ow-create-canvas-stage.is-play-open .ow-create-manager {
  display: none !important;
}
/* Package rails (Assets/Doc/…) — half desk; chrome tokens match node tree. */
.ow-create-canvas-stage .ow-create-manager {
  position: absolute;
  left: 0;
  top: 48px; /* below head tabs */
  bottom: 0;
  width: 50%;
  min-width: 360px;
  max-width: 50%;
  z-index: 28;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  /* Godot LiteModuleDrawer / VI node-tree */
  background: rgba(23, 23, 23, 0.97);
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.35);
}
/* Node tree open + package drawer: dock manager to the right of the 280px rail. */
.ow-create-canvas-stage.is-module-drawer.is-node-tree-open .ow-create-manager {
  left: 280px;
  width: 50%;
  max-width: calc(100% - 280px);
  min-width: min(360px, calc(100% - 280px));
}
.ow-create-manager .ow-manager-rail-head {
  flex: 0 0 auto;
}
.ow-create-canvas-stage .ow-create-manager .ow-manager-body {
  flex: 1 1 auto;
  min-height: 0;
}
.ow-create-manager .ow-manager-file-search.ow-canvas-assets-search,
.ow-create-manager .ow-manager-file-search {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #eee;
  padding: 8px 10px;
  font: 13px/1.3 system-ui, sans-serif;
}
.ow-create-manager .ow-manager-nav-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ow-create-manager .ow-manager-nav-row.is-on {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 2px 0 0 #e8e8e8;
}
.ow-create-canvas-stage .ow-create-canvas-body,
.ow-create-canvas-stage .ow-canvas-viewport {
  min-height: 0;
  height: 100%;
}
.ow-create-canvas-stage .ow-canvas-empty {
  min-height: 0;
  height: 100%;
}
/* Right float — flush bottom-right of canvas stage (no right/bottom gap) */
.ow-copilot-float {
  position: absolute;
  left: auto;
  right: 0;
  top: auto;
  bottom: 0;
  margin: 0;
  width: var(--ow-copilot-w, 400px);
  height: min(86%, 100%);
  max-height: 100%;
  min-height: 280px;
  /* Above project rail (40), node-tree/assets (30), canvas menus (90); PC float Z=200. */
  z-index: 100;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 0;
  border-bottom: 0;
  border-radius: 12px 0 0 0;
  background: #1a1a1a;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  /* visible — overflow:hidden clips + / model menus that open upward from the foot. */
  overflow: visible;
}
/* Non-dragging: keep flush BR even if old inline left leaked in. */
.ow-copilot-float:not(.is-dragging) {
  right: 0;
  bottom: 0;
}
/* Play tab: full stage — hide Copilot; play fills under right-tabs. */
.ow-create-page.is-play-open .ow-copilot-float {
  display: none !important;
}
.ow-create-page.is-play-open .ow-create-play {
  position: relative;
  z-index: 110;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  align-self: stretch;
}
.ow-copilot-float.is-dragging {
  opacity: 0.96;
  user-select: none;
  border-radius: 12px;
  border: 1px solid #333;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.ow-copilot-float-grip,
.ow-copilot-sheet-handle {
  display: none;
}
/* Fully collapsed: hide entire float (no composer strip); reopen via bottom-right chip. */
.ow-copilot-float.is-min {
  display: none;
}
@media (min-width: 901px) {
  .ow-copilot-float:not(.is-open),
  .ow-copilot-float.is-sheet-collapsed {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .ow-copilot-float:not(.is-open) {
    display: none;
  }
}
/* AI 助手 reopen — desk bottom-right (zoombar is bottom-left on LibTV). */
.ow-create-canvas .ow-canvas-copilot-reopen,
.ow-create-page .ow-canvas-copilot-reopen {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 26;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(26, 26, 26, 0.96);
  color: #ededed;
  border-radius: 12px;
  padding: 0 14px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.ow-create-canvas .ow-canvas-copilot-reopen:hover,
.ow-create-page .ow-canvas-copilot-reopen:hover {
  background: rgba(40, 40, 40, 0.98);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.ow-create-page.is-play-open .ow-canvas-copilot-reopen {
  display: none !important;
}
.ow-copilot-float-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px 6px 10px;
  min-height: 36px;
  flex: 0 0 auto;
  cursor: grab;
  touch-action: none;
  background: #1C1C1C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ow-copilot-float-head .ow-thread-heading {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ow-copilot-float-head .ow-thread-heading strong {
  font-size: 13px;
  font-weight: 600;
  color: #EDEDED;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ow-copilot-float-head .ow-thread-round {
  font-size: 11px;
  color: rgba(232, 236, 242, 0.45);
}
.ow-copilot-float.is-dragging .ow-copilot-float-head {
  cursor: grabbing;
}
.ow-copilot-float-min {
  appearance: none;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(232, 236, 242, 0.55);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  position: relative;
}
.ow-copilot-float-min::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transform: translateY(-50%);
}
.ow-copilot-float-min:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.ow-copilot-float .ow-create-seat-lead {
  display: none;
}
.ow-copilot-float .ow-create-thread {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 4px 10px 8px;
  overflow: auto;
}
.ow-copilot-float .ow-thread-feed {
  gap: 8px;
}
.ow-copilot-float .ow-thread-empty {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(232, 236, 242, 0.5);
  padding: 8px 2px;
}
.ow-copilot-float .ow-create-agent-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 10px 10px;
  background: #1C1C1C;
  flex: 0 0 auto;
  position: relative;
  z-index: 40;
  overflow: visible;
}
/* PC CopilotDock canvas cite chip (above composer; not node composer). */
.ow-canvas-context {
  margin: 0 0 8px;
}
.ow-canvas-context[hidden] {
  display: none !important;
}
.ow-canvas-context-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(232, 232, 232, 0.14);
  border: 1px solid rgba(232, 232, 232, 0.55);
}
.ow-canvas-context-tag {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: rgba(232, 236, 242, 0.72);
}
.ow-canvas-context-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(232, 236, 242, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ow-canvas-context-x {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(232, 236, 242, 0.7);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.ow-canvas-context-x:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
/* PC CopilotDock steer queue strip (above composer). */
.ow-steer-queue {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 8px;
  max-height: 140px;
  overflow-y: auto;
}
.ow-steer-queue[hidden] {
  display: none !important;
}
.ow-steer-queue-head {
  font-size: 11px;
  line-height: 1.3;
  color: rgba(232, 236, 242, 0.55);
  padding: 0 2px;
}
.ow-steer-queue-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid #e8e8e8;
}
.ow-steer-queue-body {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(232, 236, 242, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: text;
  -webkit-user-select: text;
}
.ow-steer-queue-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}
.ow-steer-queue-x {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(232, 236, 242, 0.55);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ow-steer-queue-x:hover {
  color: #e8e8e8;
  background: rgba(255, 255, 255, 0.08);
}
/* Copilot thread: allow Ctrl+C (canvas hotkeys defer when selection / feed focus). */
.ow-thread-feed,
.ow-copilot-msg,
.ow-copilot-msg-body,
.ow-copilot-assistant-text {
  user-select: text;
  -webkit-user-select: text;
}
.ow-copilot-float .ow-create-box {
  padding: 8px 8px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #262626;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}
.ow-copilot-float .ow-create-brief {
  min-height: 56px;
  max-height: 140px;
  font-size: 13px;
  line-height: 1.45;
  padding: 2px 2px 4px;
  resize: none;
  overflow-y: auto;
}
.ow-copilot-float .ow-create-box.ow-thread-input.is-drop {
  outline: 1px dashed rgba(232, 232, 232, 0.55);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.04);
}
.ow-copilot-float .ow-create-refs {
  margin: 0 0 4px;
  padding-top: 0;
  border-top: 0;
}
.ow-copilot-float .ow-create-refs-chips:not([hidden]) {
  margin-bottom: 6px;
}
.ow-copilot-float .ow-create-refs-head {
  display: none;
}
.ow-copilot-float .ow-create-refs-actions {
  gap: 4px;
}
.ow-copilot-float .ow-create-ref-add {
  min-height: 28px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 6px;
}
.ow-copilot-float .ow-create-box-bar {
  gap: 6px 8px;
  padding-top: 2px;
  align-items: center;
  flex-wrap: wrap;
}
.ow-copilot-float .ow-create-dd-row {
  gap: 4px;
}
/* Axes live on new-project setup / home  never inside Copilot. */
.ow-copilot-float .ow-create-axes-wrap {
  display: none !important;
}
.ow-copilot-float .ow-create-dd-summary {
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 6px;
}
/* Hide scrollbars (keep wheel/touch scroll)  Copilot feed + canvas chrome */
.ow-copilot-float,
.ow-copilot-float .ow-create-thread,
.ow-copilot-float .ow-thread-feed,
.ow-copilot-float .ow-create-brief,
.ow-create-agent,
.ow-create-agent .ow-create-thread,
.ow-create-agent .ow-thread-feed,
.ow-thread-feed,
.ow-create-dd-menu,
.ow-canvas-viewport,
.ow-canvas-composer,
.ow-canvas-add-menu,
.ow-create-page .ow-create-stage,
.ow-create-page .ow-create-workbench-main {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ow-copilot-float::-webkit-scrollbar,
.ow-copilot-float *::-webkit-scrollbar,
.ow-create-agent::-webkit-scrollbar,
.ow-create-agent *::-webkit-scrollbar,
.ow-thread-feed::-webkit-scrollbar,
.ow-create-dd-menu::-webkit-scrollbar,
.ow-canvas-viewport::-webkit-scrollbar,
.ow-canvas-composer::-webkit-scrollbar,
.ow-canvas-add-menu::-webkit-scrollbar,
.ow-create-page .ow-create-stage::-webkit-scrollbar,
.ow-create-page .ow-create-workbench-main::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}
.ow-copilot-float .ow-create-count {
  display: none;
}
.ow-create-submit-ico {
  display: none;
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.ow-copilot-float .ow-create-submit,
.ow-copilot-float .tp-btn-gradient.ow-create-submit,
.ow-copilot-float .tp-btn-gradient.active.ow-create-submit {
  order: 99;
  margin-left: auto;
  min-width: 36px !important;
  min-height: 36px !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  border: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background: #3a3a3a !important;
  background-image: none !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.ow-copilot-float .ow-create-submit .ow-create-submit-label {
  display: none;
}
.ow-copilot-float .ow-create-submit .ow-create-submit-ico {
  display: block;
  opacity: 0.92;
}
.ow-copilot-float .ow-create-box-bar {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.ow-copilot-float .ow-create-token-chip {
  margin-left: auto;
  margin-right: 0;
}
.ow-copilot-float .ow-create-count {
  display: none;
}
.ow-copilot-float .ow-create-box-bar-spacer {
  display: none;
}

/* OhMyGame composer bar: +  model    */
.ow-composer-omg {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}
.ow-composer-plus-wrap {
  position: relative;
  flex: 0 0 auto;
}
.ow-composer-plus {
  appearance: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ededed;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ow-composer-plus-ico {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.92;
}
.ow-composer-plus:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}
.ow-composer-plus-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  min-width: 160px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1c1c1c;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ow-composer-plus-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e8e8e8;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.ow-composer-plus-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.ow-brief-slash-wrap {
  position: relative;
  width: 100%;
}
.ow-slash-skills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1c1c1c;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 90;
}
.ow-slash-skills-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ow-slash-skills-group {
  padding: 8px 12px 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.ow-slash-skills-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e8e8e8;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.ow-slash-skills-item:hover,
.ow-slash-skills-item.is-on {
  background: rgba(255, 255, 255, 0.08);
}
.ow-slash-skills-item.is-on {
  color: #e8e8e8;
}
.ow-composer-model,
.ow-model-dd {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
}
.ow-composer-omg .ow-create-box-bar-spacer {
  flex: 1 1 auto;
  min-width: 8px;
}
.ow-composer-omg .ow-create-token-chip {
  margin-left: 0;
  flex: 0 0 auto;
}
.ow-model-dd-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ededed;
  font-size: 13px;
  cursor: pointer;
}
.ow-model-dd-icon {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px;
  border-radius: 3px;
  object-fit: contain;
  display: block;
}
.ow-model-dd-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}
.ow-model-dd-btn.is-locked,
.ow-model-dd-btn:disabled {
  cursor: default;
  opacity: 0.72;
  pointer-events: none;
}
.ow-model-dd-btn.is-locked:hover,
.ow-model-dd-btn:disabled:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}
.ow-model-dd-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ow-model-dd-chev {
  opacity: 0.7;
  font-size: 11px;
}
.ow-model-dd-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  min-width: 200px;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1c1c1c;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ow-model-dd-item {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #c8c8c8;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.ow-model-dd-item:hover,
.ow-model-dd-item.is-on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ow-model-dd-item.is-soon {
  opacity: 0.75;
}
.ow-composer-send {
  appearance: none;
  flex: 0 0 auto;
  order: 99;
  /* Same row height as .ow-composer-plus (36), not a taller CTA block */
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  border: 0 !important;
  padding: 0 !important;
  margin-left: auto !important;
  background: #e8e8e8 !important;
  color: #141414 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none !important;
}
.ow-composer-send:hover {
  background: #ffffff !important;
}
.ow-composer-send-ico {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  /* hub send.png is light glyph  force near-black on the light square */
  filter: brightness(0);
  opacity: 0.92;
  line-height: 1;
  font-size: 18px;
  font-weight: 700;
}
/* Stop uses same light square as Send — force glyph black (nested .ow-hub-ico is light ink). */
.ow-composer-send.is-stop .ow-composer-send-ico,
.ow-composer-send.is-stop .ow-composer-send-ico .ow-hub-ico {
  filter: brightness(0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 14px;
  line-height: 1;
  color: #141414;
  opacity: 1;
}
.ow-copilot-float .ow-composer-send,
.ow-copilot-float .ow-composer-omg .ow-composer-send {
  order: 99;
  margin-left: auto !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  background: #e8e8e8 !important;
  color: #141414 !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
.ow-copilot-float .ow-create-token-chip span[data-i18n] {
  display: none;
}
/* Legacy head-tab reopen — unused; reopen lives on .ow-canvas-copilot-reopen */
.ow-create-right-tabs .ow-copilot-float-open,
.ow-create-tl-btn.ow-copilot-float-open {
  display: none !important;
}
.ow-copilot-back-projects {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  margin-right: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 236, 242, 0.85);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.ow-copilot-back-projects:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 991.98px) {
  /* LibTV mobile create: full-bleed canvas + bottom Copilot sheet (never side-by-side squeeze). */
  body.ow-hub-shell[data-page="create"] {
    overflow: hidden;
  }
  body.ow-hub-shell[data-page="create"] .ow-site-main {
    margin-left: 0;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    padding: 0;
  }
  body.ow-hub-shell[data-page="create"] #openworld-shell-footer,
  body.ow-hub-shell[data-page="create"] footer {
    display: none !important;
  }
  .ow-create-main.is-fs {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
  }
  .ow-create-page.is-fs,
  .ow-create-page.ow-create-composer.is-fs {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 0 !important;
    overflow: hidden;
  }
  .ow-create-canvas-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    order: 1;
  }
  .ow-project-rail {
    display: none;
  }
  .ow-create-page.is-fs .ow-create-canvas-stage,
  .ow-create-canvas-stage {
    left: 0;
  }
  .ow-create-page:not(.is-copilot-min) .ow-create-right-tabs > .ow-create-back-projects,
  .ow-create-page:not(.is-copilot-min) .ow-create-right-tabs > .ow-copilot-float-open,
  .ow-create-page:not(.is-copilot-min) .ow-create-right-tabs > .ow-create-tabs-sep {
    display: inline-flex;
  }
  .ow-create-setup {
    padding: 8px 12px 6px;
  }
  .ow-create-setup .ow-create-dd-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .ow-create-setup-hint {
    display: none;
  }
  .ow-canvas-composer {
    min-width: 280px;
  }
  .ow-canvas-toolbar {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 35;
  }
  .ow-create-page:not(.is-copilot-min) .ow-canvas-toolbar,
  .ow-create-page:not(.is-copilot-min) .ow-canvas-zoombar {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .ow-canvas-zoombar {
    left: 10px;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .ow-canvas-add-menu {
    width: min(300px, calc(100vw - 24px));
    max-height: min(50dvh, 360px);
  }
  /* Bottom sheet Copilot  LibTV phone pattern */
  .ow-copilot-float {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: min(68dvh, 560px);
    margin: 0;
    z-index: 50;
    border-right: 0;
    border-top: 1px solid #333;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
    order: 2;
  }
  .ow-copilot-float.is-sheet-collapsed {
    max-height: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .ow-copilot-float.is-sheet-collapsed .ow-create-thread,
  .ow-copilot-float.is-sheet-collapsed .ow-create-seat-lead,
  .ow-copilot-float.is-sheet-collapsed .ow-create-refs,
  .ow-copilot-float.is-sheet-collapsed .ow-create-token-chip,
  .ow-copilot-float.is-sheet-collapsed .ow-create-count,
  .ow-copilot-float.is-sheet-collapsed .ow-create-box-bar-spacer {
    display: none !important;
  }
  .ow-copilot-float.is-sheet-collapsed .ow-copilot-float-head {
    display: none;
  }
  .ow-copilot-float.is-sheet-collapsed .ow-create-agent-foot {
    border-top: 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .ow-copilot-sheet-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 100%;
    min-height: 28px;
    margin: 0;
    padding: 10px 0 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .ow-copilot-sheet-grip {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
  }
  body.ow-hub-shell[data-page="create"] .ow-hub-menu-fab {
    top: 10px;
    left: 10px;
    z-index: 70;
  }
  body.ow-hub-shell[data-page="create"] .ow-create-right-tabs {
    padding-left: 58px;
  }
  .ow-copilot-float .ow-create-submit {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    padding: 0;
  }
  .ow-copilot-float .ow-create-submit-label {
    display: none;
  }
  .ow-copilot-float .ow-create-submit-ico {
    display: block;
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
  }
  .ow-copilot-float.is-min,
  .ow-copilot-float:not(.is-open) {
    display: none;
  }
  .ow-create-page.is-copilot-min .ow-canvas-copilot-reopen {
    display: inline-flex !important;
    position: fixed;
    right: 14px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 991.98px) {
  body.ow-hub-shell .ow-hub-rail {
    display: none;
  }
  body.ow-hub-shell .ow-site-main,
  body.ow-hub-shell > main,
  body.ow-hub-shell footer,
  body.ow-hub-shell #openworld-shell-footer {
    margin-left: 0;
    width: auto;
    max-width: none;
  }
  body.ow-hub-shell .ow-topbar-slim {
    display: none !important;
  }
}
.ow-hub-menu-fab {
  display: none;
}
@media (max-width: 991.98px) {
  .ow-hub-menu-fab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1300;
    width: 44px;
    height: 44px;
    padding: 12px 11px;
    border: 1px solid var(--ow-hub-line);
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    cursor: pointer;
  }
  .ow-hub-menu-fab span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: rgba(243, 245, 247, 0.9);
  }
}
.ow-topbar {
  position: sticky;
  top: 0;
  /* Above hero / ambient canvas; below card menus (12050) and modals (13000). */
  z-index: 1100;
  height: var(--ow-topbar-height);
  min-height: var(--ow-topbar-height);
  box-sizing: border-box;
  background: rgba(20, 20, 20, 0.94);
  border-bottom: 1px solid var(--openworld-border);
  backdrop-filter: blur(10px);
  /* Must stay visible  overflow:hidden clips/. */
  overflow: visible;
}
.ow-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  height: var(--ow-topbar-height);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.ow-top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
}
.ow-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ow-top-link {
  color: rgba(232, 236, 242, 0.72);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.ow-top-link:hover,
.ow-top-link.is-active {
  color: #fff;
}
.ow-offcanvas-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ow-offcanvas-nav a {
  color: rgba(232, 236, 242, 0.85);
  text-decoration: none;
  font-size: 16px;
}
.ow-offcanvas-nav a:hover,
.ow-offcanvas-nav a.is-active {
  color: #fff;
}
.ow-offcanvas-nav a.is-active {
  font-weight: 600;
  border-bottom-color: var(--openworld-primary) !important;
}
/* Legacy Soon dock: hide if old HTML still present */
.ow-soon-dock { display: none !important; }
body.ow-soon-shell {
  padding-left: 0 !important;
  padding-bottom: 0 !important;
}

/* Brand home hero */
.ow-brand-hero {
  position: relative;
  min-height: clamp(280px, 48vw, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--openworld-border);
}
.ow-brand-hero-media {
  position: absolute;
  inset: 0;
}
.ow-brand-hero-media img {
    width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ow-brand-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.25) 0%, rgba(20,20,20,0.88) 78%);
}
.ow-brand-hero-copy {
  position: relative;
  z-index: 1;
  padding: 48px 20px 36px;
  max-width: 720px;
}
.ow-brand-hero-copy h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  margin: 0 0 10px;
  color: var(--openworld-text);
}
.ow-brand-hero-copy .ow-lead {
  max-width: 36em;
}
.ow-feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.ow-feed-actions .tp-btn-gradient,
.ow-feed-actions .tp-btn-4,
.ow-feed-actions .ow-action-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hub-like projects toolbar + card menu (my-worlds) */
.ow-projects-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ow-projects-kind-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.ow-projects-kind-chips .ow-chip {
  border: 1px solid var(--openworld-border, rgba(255, 255, 255, 0.14));
  background: transparent;
  color: var(--openworld-muted, #aaa);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.ow-projects-kind-chips .ow-chip.is-on {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.ow-mw-cloud-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  max-height: 280px;
  overflow: auto;
}
.ow-mw-cloud-list li {
  margin: 0 0 6px;
}
.ow-copilot-kick {
  margin-top: 12px;
}
.ow-copilot-fail-actions,
.ow-copilot-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
}
.ow-copilot-msg-actions .ow-text-link {
  opacity: 0.72;
}
.ow-copilot-msg:hover .ow-copilot-msg-actions .ow-text-link,
.ow-copilot-msg-actions .ow-text-link:focus-visible {
  opacity: 1;
}
.ow-copilot-user-rail {
  display: flex;
  width: 100%;
  align-items: flex-start;
}
.ow-copilot-user-spacer {
  flex: 0 0 15%;
  max-width: 15%;
}
.ow-copilot-user-rail > .ow-copilot-msg {
  flex: 1 1 auto;
  max-width: 85%;
  margin-left: auto;
}
.ow-copilot-msg.is-system {
  background: transparent;
  border: 0;
  padding: 4px 8px;
}
.ow-copilot-system-text {
  font-size: 12px;
  color: #8b8b8b;
  white-space: pre-wrap;
  word-break: break-word;
}
.ow-thread-feed-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ow-copilot-jump-latest {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #2a2a2a;
  color: #ededed;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.ow-copilot-work {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
}
.ow-copilot-work-summary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #a8aeb8;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  padding: 2px 0;
}
.ow-copilot-work.is-live .ow-copilot-work-summary-text {
  color: #9eb8e8;
}
.ow-copilot-tool-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ow-copilot-tool-card {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}
.ow-copilot-tool-title {
  flex: 1 1 auto;
  color: #9eb8e8;
}
.ow-copilot-tool-card.is-done .ow-copilot-tool-title {
  color: #94d9a6;
}
.ow-copilot-tool-card.is-fail .ow-copilot-tool-title {
  color: #f28080;
}
.ow-copilot-card-host {
  flex: 0 0 auto;
  padding: 0 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ow-copilot-card-host:empty {
  display: none;
}
.ow-propose-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ow-propose-head-row .ow-libtv-confirm-title {
  margin: 0;
  flex: 1 1 auto;
}
.ow-propose-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 80, 0.35);
  color: #f0c090;
  background: rgba(240, 160, 60, 0.12);
}
.ow-copilot-activity {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 14px 6px;
  font-size: 12px;
  color: #8b8b8b;
}
.ow-copilot-activity-spin {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 50%;
  border: 2px solid rgba(158, 184, 232, 0.22);
  border-top-color: rgba(158, 184, 232, 0.9);
  box-sizing: border-box;
  transform-origin: 50% 50%;
  animation: ow-boot-spin 0.85s linear infinite;
}
.ow-copilot-fold-toggle {
  margin-top: 4px;
  font-size: 12px;
}
.ow-projects-search-wrap {
  flex: 1 1 180px;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}
.ow-projects-search-ico {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.65;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.ow-projects-search-wrap .ow-projects-search {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--openworld-text, #fff);
}
.ow-projects-search {
  flex: 1 1 180px;
  min-width: 140px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--openworld-text, #fff);
}
select.ow-projects-select {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #171717;
  color: var(--openworld-text, #fff);
  color-scheme: dark;
}
/* Native select fallback (DeskSelect preferred in Hub) — kill OS gray/blue list. */
body.ow-hub-shell select,
.ow-create-page select {
  color-scheme: dark;
  background-color: #171717;
  color: #e8e8e8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}
body.ow-hub-shell select option,
.ow-create-page select option {
  background-color: #171717;
  color: #e8e8e8;
}
.ow-model-dd-menu,
.ow-canvas-dd-menu {
  background: #171717;
}
/* Electron only (inject adds is-ow-desktop). Web keeps option[hidden]. */
html.is-ow-desktop #ow-mw-filter option[value='local'],
html.is-ow-desktop #ow-mw-filter option[value='cloud'],
body.is-ow-desktop #ow-mw-filter option[value='local'],
body.is-ow-desktop #ow-mw-filter option[value='cloud'] {
  display: revert;
}
.ow-projects-new {
  flex: 0 0 auto;
}
/* 创作页 master-detail shell (Hub MyWorlds + static my-worlds) */
.ow-discover-split {
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
  gap: var(--ow-space-5, 20px);
  align-items: start;
  min-height: 420px;
}
.ow-page #data_my_space.ow-discover-split {
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
}
.ow-discover-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(72vh, 780px);
  overflow: auto;
  padding-right: 6px;
}
.ow-discover-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--ow-hub-line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  padding: 10px 12px;
  cursor: pointer;
  min-height: 64px;
}
.ow-discover-list-row.is-on {
  border-color: var(--ow-hub-accent-border, rgba(255, 255, 255, 0.22));
  background: var(--ow-hub-accent-soft, rgba(255, 255, 255, 0.08));
}
.ow-discover-list-row.is-skeleton {
  min-height: 56px;
  opacity: 0.35;
  pointer-events: none;
}
.ow-discover-list-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #111;
}
.ow-project-detail-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 4px;
}
.ow-project-action-stretch {
  display: flex !important;
  width: 100%;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  text-decoration: none;
}
.ow-project-detail-toolbar-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ow-project-detail-toolbar-pair .tp-btn-4 {
  width: 100%;
  justify-content: center;
}
.ow-project-detail-toolbar .tp-btn-4,
.ow-project-detail-toolbar .tp-btn-gradient {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 8px;
}
.ow-project-detail-toolbar .tp-btn-4.is-danger {
  border-color: rgba(255, 100, 100, 0.45);
  color: #ffb4b4;
}
.ow-project-detail-toolbar-hint {
  margin: 2px 0 0;
  font: 11px/1.4 system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}
.ow-project-settings-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.ow-project-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.ow-project-detail-head .nft__box-title {
  font-size: 20px;
  margin: 6px 0 4px;
}
.ow-discover-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ow-discover-list-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.ow-discover-list-meta strong {
  font-size: var(--ow-type-base, 14px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ow-discover-list-meta .ow-muted {
  font-size: var(--ow-type-sm, 12px);
}
.ow-discover-detail {
  border: 1px solid var(--ow-hub-line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: var(--ow-space-4, 16px);
  background: rgba(255, 255, 255, 0.02);
  min-height: 320px;
  overflow: visible;
}
.ow-discover-detail .nft__box-content {
  overflow: visible;
}
.ow-discover-detail-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #111;
}
.ow-discover-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ow-discover-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ow-project-detail {
  width: 100%;
  min-width: 0;
}
.ow-project-detail .ow-project-card.is-detail {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.ow-project-new-row {
  text-decoration: none;
  color: inherit;
}
.ow-project-new-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--openworld-text, #fff);
}
@media (max-width: 900px) {
  .ow-discover-split {
    grid-template-columns: 1fr;
  }
  .ow-discover-list {
    max-height: 280px;
  }
}
.ow-project-new-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: var(--openworld-text, #fff);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ow-project-new-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: var(--openworld-text, #fff);
}
.ow-project-new-plus {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.8;
}
.ow-project-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
  overflow: visible;
}
.ow-project-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ow-project-card-head .ow-badge {
  margin-bottom: 0;
}
.ow-badge-kind {
  color: var(--openworld-text, inherit);
  border-color: var(--openworld-accent, var(--openworld-border));
}
.ow-origin-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  font: 600 11px/1.3 system-ui, sans-serif;
  letter-spacing: 0.02em;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.ow-origin-chip.ow-origin-local,
.ow-badge.ow-origin-local {
  color: #d8ffe8;
  background: rgba(22, 120, 70, 0.78);
  border: 1px solid rgba(110, 220, 160, 0.45);
}
.ow-origin-chip.ow-origin-cloud,
.ow-badge.ow-origin-cloud {
  color: #dce8ff;
  background: rgba(40, 80, 160, 0.78);
  border: 1px solid rgba(120, 170, 255, 0.45);
}
.ow-origin-chip.ow-origin-both,
.ow-badge.ow-origin-both {
  color: #fff0d6;
  background: rgba(140, 90, 20, 0.8);
  border: 1px solid rgba(240, 180, 90, 0.45);
}
.ow-project-rail-cover {
  position: relative;
}
.ow-project-rail-origin {
  position: absolute;
  right: 2px;
  bottom: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  font: 700 9px/16px system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
}
.ow-project-rail-origin.ow-origin-local {
  color: #d8ffe8;
  background: rgba(22, 120, 70, 0.9);
}
.ow-project-rail-origin.ow-origin-cloud {
  color: #dce8ff;
  background: rgba(40, 80, 160, 0.9);
}
.ow-project-rail-origin.ow-origin-both {
  color: #fff0d6;
  background: rgba(140, 90, 20, 0.92);
}
.ow-project-card-foot {
  display: none;
}
/* Cover progressive: thumb frame first, img fades in after decode. */
.ow-cover-img {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ow-cover-img.is-pending {
  opacity: 0;
}
.ow-cover-img.is-loaded {
  opacity: 1;
}
.ow-world-card-thumb.m-img:has(.ow-cover-img.is-pending)::after,
.ow-asset-thumb.m-img:has(.ow-cover-img.is-pending)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 37%, rgba(255,255,255,0.04) 63%);
  background-size: 220% 100%;
  animation: ow-boot-shimmer 1.15s ease-in-out infinite;
  pointer-events: none;
}
.ow-cover-skel {
  min-height: 280px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.ow-cover-skel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 37%, rgba(255,255,255,0.04) 63%);
  background-size: 220% 100%;
  animation: ow-boot-shimmer 1.15s ease-in-out infinite;
}
.ow-project-card.is-skeleton,
.ow-feed-card.is-skeleton,
.ow-world-card.is-skeleton,
.ow-asset-card.is-skeleton {
  pointer-events: none;
  min-height: 180px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.ow-world-card.is-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 37%, rgba(255,255,255,0.04) 63%);
  background-size: 220% 100%;
  animation: ow-boot-shimmer 1.15s ease-in-out infinite;
}
.ow-project-card.is-skeleton .nft__box-content,
.ow-feed-card.is-skeleton .nft__box-content,
.ow-asset-card.is-skeleton .nft__box-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
/* Skeleton thumb sweep (no img yet) — feed / assets / projects */
.ow-project-card.is-skeleton .nft__box-thumb.m-img,
.ow-project-card.is-skeleton .ow-world-card-thumb.m-img,
.ow-feed-card.is-skeleton .ow-world-card-thumb.m-img,
.ow-asset-card.is-skeleton .ow-asset-thumb.m-img {
  position: relative;
  min-height: 140px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.ow-project-card.is-skeleton .nft__box-thumb.m-img::after,
.ow-project-card.is-skeleton .ow-world-card-thumb.m-img::after,
.ow-feed-card.is-skeleton .ow-world-card-thumb.m-img::after,
.ow-asset-card.is-skeleton .ow-asset-thumb.m-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 37%, rgba(255,255,255,0.04) 63%);
  background-size: 220% 100%;
  animation: ow-boot-shimmer 1.15s ease-in-out infinite;
  pointer-events: none;
}
.ow-skel-line {
  display: block;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  height: 12px;
}
.ow-skel-line--badge {
  width: 42%;
  height: 18px;
}
.ow-skel-line--title {
  width: 72%;
  height: 16px;
}
.ow-skel-line--brief {
  width: 88%;
  height: 12px;
  opacity: 0.85;
}

/* Project cards: equal height; thumb clips cover; card visible for  menu. */
.nft__box.ow-project-card {
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.nft__box.ow-project-card > .nft__box-thumb {
  flex: 0 0 auto;
  border-radius: var(--ow-radius) var(--ow-radius) 0 0 !important;
  overflow: hidden;
}
.nft__box.ow-project-card > .nft__box-content {
  flex: 1 1 auto;
  overflow: visible;
}
.ow-world-brief {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 8px !important;
  min-height: 0;
}
.ow-mw-col {
  position: relative;
  display: flex;
  height: 100%;
}
.ow-mw-col > .nft__box,
.ow-mw-col > .ow-project-card,
.ow-mw-col > .ow-project-new-card {
  width: 100%;
}
.ow-create-projects-grid,
.ow-projects-grid,
#ow-worlds-grid,
#search_spaces.row {
  align-items: stretch;
}
.ow-mw-col:has(.ow-card-menu.is-open) {
  z-index: 6;
}
.ow-card-menu {
  position: relative;
  margin: 0;
  z-index: 2;
}
.ow-card-menu.is-open {
  z-index: 40;
}
/* Godot PC Hub ⋯ — EditorTheme Panel / Elevated / Border / Text. */
.ow-card-menu-btn {
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid #333;
  background: #262626;
  color: #ededed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
  font: inherit;
  font-size: 14px;
}
.ow-card-menu-btn:hover {
  background: #333;
  border-color: #404040;
  color: #fff;
}
.ow-card-menu-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  min-width: 176px;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #1c1c1c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  flex-direction: column;
  gap: 0;
}
/* Portaled to body + beats global [hidden]{display:none!important}. */
.ow-card-menu-panel.is-fixed {
  display: flex !important;
  position: fixed;
  z-index: 12050;
  right: auto;
  max-height: min(70vh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ow-card-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #ededed;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}
.ow-card-menu-item:hover {
  background: #333;
  color: #fff;
}
.ow-card-menu-item.is-danger {
  color: #e85c5c;
}
.ow-card-menu-item.is-danger:hover {
  background: rgba(232, 92, 92, 0.16);
  color: #f07178;
}
.ow-card-menu-lab {
  margin: 6px 8px 2px;
  font: 600 10px/1.2 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.ow-card-menu-item .ow-card-menu-badge {
  margin-left: auto;
  color: #6ec8ff;
  font-size: 10px;
  line-height: 1;
}
.ow-card-menu-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ow-card-menu-sep {
  height: 1px;
  margin: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .ow-brand-hero {
    min-height: 300px;
  }
  .ow-brand-hero-copy {
    padding: 36px 16px 28px;
  }
  .ow-feed-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ow-feed-actions a,
  .ow-feed-actions button {
    width: 100%;
  }
  .ow-cards .ow-card .ow-action-btn {
    width: 100%;
  }
  .ow-projects-toolbar {
    align-items: stretch;
  }
  .ow-projects-new {
    width: 100%;
    justify-content: center;
  }
}

/* create */
.ow-create-panel {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.ow-create-brief {
  width: 100%;
  min-height: 110px;
  border-radius: 12px;
  border: 1px solid var(--openworld-border);
  background: var(--openworld-elevated);
  color: var(--openworld-text);
  padding: 14px;
  resize: vertical;
  box-sizing: border-box;
}
.ow-create-brief::placeholder {
  color: var(--openworld-muted) !important;
  opacity: 0.75;
}
.ow-create-brief::-webkit-input-placeholder {
  color: var(--openworld-muted) !important;
  opacity: 0.75;
}
.ow-create-brief::-moz-placeholder {
  color: var(--openworld-muted) !important;
  opacity: 0.75;
}
.ow-create-section-label {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--openworld-muted);
}
.ow-create-section-label:first-of-type {
  margin-top: 8px;
}
.ow-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
}
.ow-kind-chip {
  border: 1px solid var(--openworld-border);
  background: var(--openworld-elevated);
  color: var(--openworld-muted);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 40px;
  cursor: pointer;
}
.ow-kind-chip.is-on {
  border-color: var(--openworld-primary);
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.ow-kind-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.ow-create-targets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 4px;
}
.ow-create-targets-row > .ow-chip-row {
  margin: 0;
}
.ow-ori-inline {
  align-items: center;
  margin-left: auto;
}
.ow-ori-inline-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--openworld-muted);
  margin-right: 4px;
}
.ow-create-logline {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 168px);
  gap: 12px;
  align-items: stretch;
}
.ow-create-completeness-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ow-create-completeness-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--openworld-muted);
  letter-spacing: 0.02em;
}
.ow-completeness-chip {
  width: 100%;
  text-align: left;
}
@media (max-width: 720px) {
  .ow-create-targets-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .ow-ori-inline {
    margin-left: 0;
  }
  .ow-create-logline {
    grid-template-columns: 1fr;
  }
  .ow-create-completeness-col {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .ow-completeness-chip {
    width: auto;
  }
}
.ow-create-status,
.ow-create-float {
  padding: 16px 18px;
  border-radius: var(--ow-radius, 12px);
  border: 1px solid var(--openworld-border);
  background: rgba(28, 28, 28, 0.97);
  color: var(--openworld-muted);
  line-height: 1.5;
  box-sizing: border-box;
}

/* Top-layer float  never scrolls with page; always on document.body */
.ow-create-float {
  position: fixed;
  z-index: 2400;
  margin: 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: width 0.2s ease;
}

.ow-create-float.is-expanded {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
}

.ow-create-float.is-collapsed {
  left: auto;
  right: max(16px, env(safe-area-inset-right));
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: min(220px, calc(100vw - 24px));
  padding: 12px 14px;
}

.ow-create-float.is-placed {
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
}

.ow-create-float-dim {
  position: fixed;
  inset: 0;
  z-index: 2395;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.ow-create-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.ow-create-float.is-dragging .ow-create-float-head {
  cursor: grabbing;
}

.ow-create-float.is-collapsed .ow-create-float-head {
  margin-bottom: 0;
}

.ow-create-float-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--openworld-fg, #fff);
}

.ow-create-float-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ow-create-float-toggle,
.ow-create-float-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--openworld-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.ow-create-float-toggle:hover,
.ow-create-float-close:hover {
  color: var(--openworld-fg, #fff);
  background: rgba(255, 255, 255, 0.06);
}

.ow-create-status-text {
  margin: 0;
  font-size: 14px;
  color: var(--openworld-muted);
}
.ow-create-turn-summary {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(232, 236, 242, 0.88);
  max-height: 3.2em;
  overflow: hidden;
}
.ow-create-turn-summary[hidden] {
  display: none !important;
}
.ow-create-float-cta {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #141414;
  background: #E8E8E8;
}
.ow-create-float-cta:hover {
  filter: brightness(1.06);
  color: #141414;
}
.ow-create-float-cta.hide[hidden],
.ow-create-float-cta[hidden] {
  display: none !important;
}

.ow-create-float-mini {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
}

.ow-create-float-mini-pct {
  font-size: 18px;
  font-weight: 700;
  color: var(--openworld-fg, #fff);
  font-variant-numeric: tabular-nums;
}

.ow-create-float-mini-label {
  font-size: 12px;
  color: var(--openworld-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ow-create-float.is-collapsed .ow-create-float-title {
  font-size: 13px;
}

.nft__box.is-highlight {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
  border-radius: var(--ow-radius, 12px);
}

.ow-create-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ow-create-progress-track {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.ow-create-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #666666, #E8E8E8 55%, #FFFFFF);
  transition: width 0.35s ease;
  position: relative;
}

.ow-create-progress.is-running .ow-create-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: ow-create-shimmer 1.4s linear infinite;
}

@keyframes ow-create-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.ow-create-progress-pct {
  min-width: 3.4em;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--openworld-fg, #fff);
  font-variant-numeric: tabular-nums;
}

.ow-create-resume-banner {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 2390;
}

.ow-create-resume-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(28, 28, 28, 0.96);
  color: #e8ecf2;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.ow-create-resume-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/*  UX polish: chrome / empty / create shell  */
.ow-topbar .ow-brand-mark {
  height: 36px;
  width: auto;
}
.ow-topbar .ow-wordmark {
  font-size: 18px;
  line-height: 36px;
}
.ow-topbar .header__wallet-btn {
  min-height: var(--ow-touch);
  padding: 8px 16px !important;
  font-size: 14px;
}
.ow-topbar .header__user {
  position: relative;
  padding: 0;
}
.ow-topbar .header__user__img > a,
.ow-topbar .ow-user-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ow-touch);
  height: var(--ow-touch);
  min-width: var(--ow-touch);
  min-height: var(--ow-touch);
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--openworld-border);
  box-sizing: border-box;
}
.ow-topbar .header__user__img > a img,
.ow-topbar .ow-user-toggle img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
/* Click/tapon mobile; hover still works on desktop. */
.ow-topbar .header__user.is-open .wallet__dropdown,
.ow-topbar .header__user:focus-within .wallet__dropdown {
  visibility: visible;
  opacity: 1;
  transform: perspective(300px) rotateX(0deg);
}
.ow-topbar .wallet__dropdown {
  background: var(--openworld-panel) !important;
  border: 1px solid var(--openworld-border) !important;
  border-radius: var(--ow-radius) !important;
  overflow: hidden;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 24px));
  right: 0;
  left: auto;
  z-index: 60;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.ow-topbar .wallet__dropdown-cover {
  display: none !important;
}
.ow-topbar .wallet__dropdown-top {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 14px 16px !important;
  align-items: center !important;
}
.ow-topbar .wallet__dropdown-user {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}
.ow-topbar .wallet__dropdown-user img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ow-topbar .wallet__dropdown-user-content h4 {
  font-size: 14px !important;
  margin: 0 !important;
  color: var(--openworld-text) !important;
}
.ow-topbar .wallet__dropdown-action ul {
  margin: 0;
  padding: 4px 0 8px;
}
.ow-topbar .wallet__dropdown-action a,
.ow-topbar .wallet__dropdown-action .logout {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 16px;
  color: var(--openworld-muted) !important;
  text-decoration: none;
}
.ow-topbar .wallet__dropdown-action a:hover,
.ow-topbar .wallet__dropdown-action .logout:hover {
  color: #fff !important;
  background: var(--openworld-elevated);
}

.ow-offcanvas-nav a {
  min-height: var(--ow-touch);
  display: flex;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.ow-offcanvas-nav a:hover {
  border-bottom-color: var(--openworld-border);
}
.ow-offcanvas-nav a.is-active {
  border-bottom-color: var(--openworld-primary);
}
.offcanvas__wallet-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: var(--ow-touch);
  width: 100%;
  border-radius: var(--ow-radius-sm) !important;
  border: 1px solid var(--openworld-border) !important;
  background: transparent !important;
  color: var(--openworld-text) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.ow-footer-nav {
  gap: 18px;
}
.ow-footer-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.ow-empty,
.ow-loading {
  padding: 28px 20px;
  text-align: center;
  color: var(--openworld-muted);
  border: 1px dashed var(--openworld-border);
  border-radius: var(--ow-radius);
  background: rgba(28, 28, 28, 0.6);
  margin-top: 12px;
}
.ow-loading {
  border-style: solid;
}

.ow-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.ow-catalog-toolbar .ow-text-link {
  color: var(--openworld-primary-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.ow-catalog-toolbar .ow-text-link:hover {
  color: #fff;
}

.ow-search {
  max-width: none;
  width: 100%;
}
.ow-search input {
  border-radius: var(--ow-radius-sm);
  background: var(--openworld-elevated);
  border-color: var(--openworld-border);
}

.ow-create-shell {
  background: var(--openworld-panel);
  border: 1px solid var(--openworld-border);
  border-radius: var(--ow-radius);
  padding: clamp(20px, 4vw, 32px);
  max-width: 640px;
  margin: 0 auto;
}
.ow-create-brief {
  min-height: 140px;
  font-size: 16px;
  line-height: 1.5;
}
.ow-create-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--openworld-muted);
}
.ow-page.ow-page-tight {
  padding-top: calc(var(--ow-topbar-height, 65px) + var(--ow-page-gap) + env(safe-area-inset-top, 0px));
}
body[data-page="create"] .ow-page,
body[data-page="worlds"] .ow-page {
  padding-bottom: 64px;
}
.ow-worlds-page #search_spaces > [class*="col-"] {
  margin-bottom: 16px;
}

.ow-brand-hero-scrim {
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.15) 0%,
    rgba(20, 20, 20, 0.55) 45%,
    rgba(20, 20, 20, 0.94) 100%
  ) !important;
}
.ow-brand-hero-copy {
  max-width: 640px;
}

@media (max-width: 991px) {
  .ow-top-nav {
    display: none !important;
  }
}

/*  Mobile / PC UX pass: topbar + login width + sweep  */
.ow-topbar-inner {
  min-width: 0;
}
.ow-topbar .ow-brand {
  min-width: 0;
  flex-shrink: 1;
}
.ow-topbar-right {
  flex-shrink: 0;
  align-items: center !important;
  gap: 8px;
  min-height: var(--ow-touch);
}
.ow-topbar-right .header__lang,
.ow-topbar-right .header__wallet-wrapper,
.ow-topbar-right .header__wallet,
.ow-topbar-right .header__bar {
  display: flex;
  align-items: center;
  min-height: var(--ow-touch);
  margin: 0 !important;
}
.ow-topbar .header__lang .ow-lang-toggle {
  min-height: var(--ow-touch);
  box-sizing: border-box;
}
@media (max-width: 991.98px) {
  .ow-topbar .header__lang .ow-lang-toggle {
    font-size: 12px;
    min-width: 0;
    max-width: 7.5rem;
    padding: 0 22px 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ow-topbar .header__lang .ow-lang-menu {
    z-index: 60;
  }
}
.ow-topbar .header__wallet-btn {
  height: var(--ow-touch) !important;
  min-height: var(--ow-touch) !important;
  max-height: var(--ow-touch);
  padding: 0 14px !important;
  line-height: 1 !important;
  box-sizing: border-box;
}
.ow-topbar .header__bar {
  margin-left: 0 !important;
}
.ow-topbar .header__bar .hamurger-btn,
.hamurger-btn {
  position: relative;
  width: var(--ow-touch) !important;
  height: var(--ow-touch) !important;
  min-width: var(--ow-touch) !important;
  min-height: var(--ow-touch) !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: transparent !important;
  border: 1px solid var(--openworld-border) !important;
  border-radius: var(--ow-radius-sm) !important;
}
.ow-topbar .hamurger-btn span,
.hamurger-btn span {
  position: absolute !important;
  left: 50% !important;
  width: 18px !important;
  height: 2px !important;
  margin: 0 !important;
  background: var(--openworld-text) !important;
  border-radius: 1px;
  opacity: 1 !important;
  transform: translateX(-50%);
  display: block !important;
}
.ow-topbar .hamurger-btn span:nth-child(1),
.hamurger-btn span:nth-child(1) {
  top: 14px !important;
}
.ow-topbar .hamurger-btn span:nth-child(2),
.hamurger-btn span:nth-child(2) {
  top: 21px !important;
}
.ow-topbar .hamurger-btn span:nth-child(3),
.hamurger-btn span:nth-child(3) {
  top: 28px !important;
}

/* Login / register: single mobile-first form path */
.login__area .container,
.login__area .row,
.login__area [class*="col-"],
.login__wrapper,
.login__form,
.login__input-box,
.login__input,
.login__btn {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.login__wrapper {
  overflow: visible !important;
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.login__input {
  position: relative;
  margin-bottom: 16px;
}
.login__input input,
.login__input textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: var(--ow-touch) !important;
  line-height: 1.4 !important;
  padding: 12px 44px 12px 48px !important;
  border-radius: var(--ow-radius-sm) !important;
  box-sizing: border-box !important;
  font-size: 16px !important;
  color: #EDEDED !important;
  background: #262626 !important;
  border: 1px solid #333 !important;
}
.login__input input#myInput,
.login__input input[type="password"] {
  padding-right: 48px !important;
}
.login__input.has-sms input {
  padding-right: 118px !important;
}
.login__input-icon,
.login__input-password-visible {
  position: absolute;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 2;
  pointer-events: none;
  color: #8A8A8A !important;
  font-size: 15px;
}
.login__input-icon {
  left: 16px !important;
  right: auto !important;
}
.login__input-password-visible {
  right: 16px !important;
  left: auto !important;
  pointer-events: auto;
}
.login__input-title {
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 6px;
}
.login__input-title h4 {
  font-size: 14px !important;
  margin-bottom: 0 !important;
}
.login__btn .tp-btn-gradient,
.login__btn .tp-btn-4,
.login__btn .tp-btn-border,
.login__btn .ow-oauth-btn {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-height: var(--ow-touch);
}
.ow-oauth-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.login__text {
  color: #7A7A7A !important;
  font-size: 12px;
  margin: -8px 0 12px;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .login__area.ow-page,
  .ow-page.login__area {
    padding: calc(72px + env(safe-area-inset-top, 0px)) 0 calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .login__area .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .login__wrapper {
    padding: 24px 16px 28px !important;
    border-radius: 16px !important;
    margin: 0 auto;
  }
  .login__top {
    margin-bottom: 18px !important;
  }
  .login__top h3 {
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }
  .login__top p {
    font-size: 13px !important;
  }
  .login__input {
    margin-bottom: 12px;
  }
  .login__input input,
  .login__input textarea {
    padding: 11px 42px 11px 44px !important;
    border-radius: 10px !important;
  }
  .login__input.has-sms input {
    padding-right: 112px !important;
  }
  .login__input-sms {
    right: 6px !important;
    min-height: 34px !important;
    line-height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }
  .login__register-hint {
    font-size: 13px !important;
  }
  .ow-captcha {
    gap: 8px;
    align-items: center;
  }
  .ow-captcha-field {
    min-width: 0;
    flex: 1 1 auto;
  }
  .ow-captcha-field input {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .ow-captcha-img-btn {
    flex: 0 0 auto;
    width: 112px;
    height: 44px;
  }
  .ow-captcha-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
  .ow-oauth-btn {
    font-size: 14px !important;
    padding: 10px 12px !important;
  }
}

/* Site-wide mobile width / touch */
@media (max-width: 991px) {
  :root {
    --ow-topbar-height: 60px;
  }
  .ow-topbar-inner {
    padding: 0 12px;
  }
  .ow-topbar .ow-brand-mark {
    height: 32px;
  }
  .ow-topbar .ow-wordmark {
    font-size: 16px;
    line-height: 32px;
  }
  .ow-topbar .header__wallet-btn {
    padding: 0 12px !important;
    font-size: 13px;
  }
  .ow-brand-hero-copy {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
  }
  .ow-world-card,
  .nft__box,
  .bid__item {
    max-width: 100%;
  }
  .ow-create-shell {
    max-width: 100%;
    box-sizing: border-box;
  }
  .ow-create-meta {
    flex-wrap: wrap;
  }
  .ow-cards .ow-card,
  .ow-card {
    max-width: 100%;
    box-sizing: border-box;
  }
  .ow-search,
  .ow-search input {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  body[data-page="login"] .ow-page,
  body[data-page="register"] .ow-page {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 575px) {
  .ow-topbar .ow-wordmark {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .login__area .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Home hero Three + gallery + create ambient */
.ow-brand-hero--three .ow-brand-hero-media,
.ow-brand-hero--three .ow-hero-shard {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ow-brand-hero--three .ow-hero-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ow-brand-hero--three .ow-hero-canvas.is-live + .ow-hero-shot,
.ow-brand-hero--three .ow-hero-shard:has(.ow-hero-canvas.is-live) .ow-hero-shot {
  opacity: 0.22;
}
.ow-brand-hero--three .ow-brand-hero-scrim {
  z-index: 2;
}
.ow-brand-hero--three .ow-brand-hero-copy {
  z-index: 3;
}

.ow-gallery-section {
  border-top: 1px solid var(--openworld-border);
  padding-top: 40px;
}
.ow-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ow-gallery-item {
  margin: 0;
  border-radius: var(--ow-radius);
  overflow: hidden;
  border: 1px solid var(--openworld-border);
  background: var(--openworld-elevated);
  aspect-ratio: 16 / 10;
}
.ow-gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 21 / 9;
}
.ow-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 991px) {
  .ow-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ow-gallery-item--wide {
    grid-column: span 2;
  }
}
@media (max-width: 575px) {
  .ow-gallery-grid {
    grid-template-columns: 1fr;
  }
  .ow-gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 16 / 9;
  }
}

.ow-world-brief {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nft__box-thumb {
  position: relative;
}
.ow-world-revise-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.55);
  pointer-events: none;
}
.ow-world-revise-pct {
  color: #EDEDED;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nft__box.is-revising .ow-badge {
  background: rgba(255, 255, 255, 0.10);
  color: #EDEDED;
  border-color: rgba(255, 255, 255, 0.22);
}
.ow-create-revise-banner {
  margin: 0 0 12px;
  font-size: 14px;
  color: #EDEDED;
}
.ow-create-revise-hint {
  margin: 8px 0 0;
  font-size: 12px;
}
.ow-thread-header {
  margin-bottom: 12px;
}
.ow-thread-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  position: relative;
  flex: 1;
  min-width: 0;
}
.ow-thread-heading.ow-thread-session {
  flex-wrap: wrap;
  align-items: center;
}
.ow-thread-title-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.ow-thread-title-btn:disabled {
  cursor: default;
}
.ow-thread-title-btn .ow-thread-title-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #8b8b8b;
  flex-shrink: 0;
}
.ow-thread-heading strong {
  font-size: 18px;
  color: #ededed;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ow-thread-round {
  font-size: 13px;
  color: #8b8b8b;
}
.ow-thread-session-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 180px;
  max-width: min(280px, 70vw);
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 10px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.ow-thread-session-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ededed;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.ow-thread-session-item:hover,
.ow-thread-session-item.is-active {
  background: rgba(255, 255, 255, 0.08);
}
.ow-thread-new-chat {
  flex-shrink: 0;
  margin: 0 4px 0 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b0b0b0;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.ow-thread-new-chat:hover {
  color: #ededed;
  background: rgba(255, 255, 255, 0.06);
}
.ow-create-composer.is-thread .ow-create-hints {
  display: none;
}
.ow-create-thread {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  max-height: min(56vh, 560px);
  margin-bottom: 12px;
}
.ow-create-workbench.is-split .ow-create-thread {
  margin-bottom: 0;
  max-height: min(62vh, 640px);
}
.ow-thread-feed {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ow-thread-empty {
  padding: 24px 8px;
  text-align: center;
  font-size: 13px;
  color: #8b8b8b;
}
/* CopilotDock-like full-width rows (EditorTheme Panel / Elevated / Text / Mute) */
.ow-copilot-msg {
  width: 100%;
  align-self: stretch;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  box-sizing: border-box;
}
.ow-copilot-msg.is-user {
  background: #242424;
  border-color: #333;
}
.ow-copilot-msg-who {
  font-size: 12px;
  color: #8b8b8b;
  margin-bottom: 4px;
}
.ow-copilot-msg-body {
  font-size: 14px;
  line-height: 1.55;
  color: #ededed;
  white-space: pre-wrap;
  word-break: break-word;
}
.ow-copilot-pct {
  color: #8b8b8b;
  font-weight: 600;
}
.ow-copilot-msg.is-fail .ow-copilot-msg-body {
  color: #cfcfcf;
}
.ow-copilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ow-create-composer.is-thread .ow-thread-input {
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.ow-create-main {
  min-height: calc(100vh - var(--ow-topbar-height));
}
.ow-create-page.ow-create-composer {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--ow-topbar-height));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 64px;
}
.ow-create-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.ow-create-ambient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  filter: saturate(0.7) brightness(0.85);
}
.ow-create-page.ow-create-composer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.72) 0%, rgba(20,20,20,0.92) 55%, var(--openworld-bg) 100%);
  pointer-events: none;
}
.ow-create-stage {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 4vh auto 0;
}
.ow-create-stage-libtv,
.ow-create-composer .ow-create-stage-libtv {
  width: min(1280px, 100%);
  margin: 2vh auto 0;
  max-width: 100%;
}
.ow-create-composer.is-thread .ow-create-stage,
.ow-create-composer.is-libtv .ow-create-stage {
  width: min(1280px, 100%);
}
.ow-create-workbench {
  display: block;
}
.ow-create-workbench.is-split,
.ow-create-workbench.is-libtv {
  display: grid;
  grid-template-columns: minmax(300px, 38%) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 12px;
  min-height: min(72vh, 760px);
}
.ow-create-workbench-main,
.ow-create-agent {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ow-radius, 12px);
  /* VI Panel — no cool/blue charcoal cast */
  background: rgba(28, 28, 28, 0.92);
  overflow: hidden;
}
.ow-create-agent .ow-thread-header {
  padding: 12px 14px 8px;
  flex: 0 0 auto;
}
.ow-create-agent .ow-create-thread {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: none;
  overflow: auto;
  display: flex !important;
  flex-direction: column;
  margin-bottom: 0;
}
.ow-create-agent .ow-create-hints {
  flex: 0 0 auto;
  padding: 0 12px 8px;
  margin: 0;
}
.ow-create-agent-foot {
  flex: 0 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px 12px;
  background: rgba(0, 0, 0, 0.22);
}
.ow-create-agent-foot .ow-create-box {
  margin: 0;
}
.ow-canvas-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
  color: rgba(232, 236, 242, 0.62);
  font-size: 14px;
  line-height: 1.5;
  min-height: 280px;
}
.ow-canvas-empty[hidden] {
  display: none !important;
}
/* Panel loaders — same spin as site boot so empty desk never looks blank. */
@keyframes ow-boot-spin {
  to { transform: rotate(360deg); }
}
.ow-panel-loading {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  /* Spinner only — no opaque scrim (canvas must stay visible while loading). */
  background: transparent;
  color: rgba(232, 232, 232, 0.78);
  font: 500 13px/1.4 system-ui, sans-serif;
  pointer-events: none;
}
.ow-panel-loading[hidden] {
  display: none !important;
}
.ow-panel-loading .ow-boot-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.78);
  animation: ow-boot-spin 0.85s linear infinite;
  box-sizing: border-box;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55));
}
.ow-panel-loading-lab {
  letter-spacing: 0.04em;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}
.ow-create-thread {
  position: relative;
}
.ow-manager-stage {
  position: relative;
}
.ow-create-brand-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 2px;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
}
.ow-create-brand-logo img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.ow-create-brand-logo:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ow-create-tabs-spacer {
  flex: 1 1 auto;
  min-width: 8px;
}
.ow-create-play-tab {
  margin-left: 0;
  min-width: 64px;
  font-weight: 600;
}
.ow-create-play-tab.is-ready,
.ow-create-page.is-libtv .ow-create-play-tab.is-ready,
.ow-create-canvas-stage .ow-create-play-tab.is-ready {
  color: #141414;
  border-color: transparent;
  background: #E8E8E8;
  opacity: 1;
}
.ow-create-play-tab.is-ready:hover,
.ow-create-page.is-libtv .ow-create-play-tab.is-ready:hover {
  background: #fff;
}
.ow-create-play-tab.is-ready.is-on,
.ow-create-page.is-libtv .ow-create-play-tab.is-ready.is-on {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.ow-create-play-tab:not(.is-ready) {
  opacity: 0.72;
}
.ow-play-ready-badge {
  display: none !important;
}
.ow-create-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: min(72vh, 760px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ow-radius, 12px);
  background: rgba(28, 28, 28, 0.72);
  padding: 10px;
  overflow: hidden;
}
.ow-create-right-tabs {
  display: flex;
  gap: 8px;
}
.ow-create-right-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #aaa;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}
.ow-create-right-tab.is-on {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}
.ow-create-canvas {
  position: relative;
  margin: 0;
  border: 1px solid var(--openworld-border, rgba(255, 255, 255, 0.12));
  border-radius: var(--ow-radius, 12px);
  overflow: hidden;
  background: #0e0e0e;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.ow-create-canvas-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}
.ow-create-canvas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ow-create-canvas-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 280px;
}
.ow-canvas-viewport {
  position: relative;
  overflow: hidden;
  /* LibTV board: solid #0e0e0e + soft 20px dots (never transparent) */
  background-color: #0e0e0e;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 20px 20px;
  cursor: grab;
}
/* Document/text expand — centered scrollable dialog (not fullscreen). */
.ow-canvas-expanded {
  position: fixed;
  inset: 0;
  z-index: 12020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  box-sizing: border-box;
  color: #eceef2;
  pointer-events: none;
}
.ow-canvas-expanded-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  pointer-events: auto;
  cursor: pointer;
}
.ow-canvas-expanded-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 92vw);
  max-height: min(78vh, 860px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1c1c1c;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  pointer-events: auto;
}
.ow-canvas-expanded-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  flex-shrink: 0;
  padding: 0 42px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
}
.ow-canvas-expanded-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ow-canvas-expanded-modes {
  display: inline-flex;
  gap: 4px;
}
.ow-canvas-expanded-modes button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.ow-canvas-expanded-modes button:hover,
.ow-canvas-expanded-modes button.is-on {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.ow-canvas-expanded-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  line-height: 1;
}
.ow-canvas-expanded-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.ow-canvas-expanded-wait {
  flex-shrink: 0;
  padding: 18px 16px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.ow-canvas-expanded-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
.ow-canvas-expanded-body.is-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ow-canvas-expanded-edit {
  width: 100%;
  height: 100%;
  min-height: 280px;
  resize: none;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 16px 18px;
  background: #171717;
  color: #eceef2;
  font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow: auto;
}
.ow-canvas-expanded-preview {
  overflow: auto;
  padding: 16px 18px;
  min-height: 280px;
}
.ow-canvas-expanded-md {
  max-width: 760px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}
.ow-canvas-expanded-md h1,
.ow-canvas-expanded-md h2,
.ow-canvas-expanded-md h3 {
  margin: 0.8em 0 0.4em;
  color: #fff;
}
.ow-canvas-expanded-md code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 0 4px;
  border-radius: 3px;
}
.ow-canvas-expanded-md ul {
  margin: 0.4em 0;
  padding-left: 1.2em;
}
.ow-canvas-world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  width: 4000px;
  height: 3000px;
}
.ow-canvas-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.ow-canvas-edge {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 2;
}
.ow-canvas-edge.is-selected {
  stroke: rgba(255, 200, 70, 0.98);
  stroke-width: 3.2;
}
.ow-canvas-nodes {
  position: absolute;
  inset: 0;
  /* Pass empty hits to group frames underneath (LibTV). Cards re-enable hits. */
  pointer-events: none;
}
.ow-canvas-card {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  border: 0 solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #e8ecf2;
  overflow: visible;
  box-shadow: none;
  user-select: none;
  pointer-events: auto;
}
.ow-canvas-card.is-selected {
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: none;
}
/* PC CanvasHost BuildGeneratingOverlay — warm-white ink, neutral wash. */
.ow-canvas-card.is-gen,
.ow-canvas-card.is-queued {
  border-color: rgba(232, 232, 232, 0.92);
  box-shadow: 0 0 0 1px rgba(232, 232, 232, 0.35);
}
.ow-canvas-card.is-gen .ow-canvas-card-preview,
.ow-canvas-card.is-queued .ow-canvas-card-preview,
.ow-canvas-card.is-gen .ow-canvas-card-empty,
.ow-canvas-card.is-queued .ow-canvas-card-empty,
.ow-canvas-card.is-gen .ow-canvas-card-text,
.ow-canvas-card.is-queued .ow-canvas-card-text,
.ow-canvas-card.is-gen .ow-canvas-card-meta,
.ow-canvas-card.is-queued .ow-canvas-card-meta {
  opacity: 0.4;
}
.ow-canvas-gen-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
  background: rgba(20, 20, 20, 0.72);
  border: 2px solid rgba(232, 232, 232, 0.95);
  border-radius: 0 0 10px 10px;
  animation: ow-canvas-gen-pulse 1.4s ease-in-out infinite;
}
.ow-canvas-card.is-queued .ow-canvas-gen-overlay {
  border-style: dashed;
  animation: none;
  background: rgba(20, 20, 20, 0.55);
}
.ow-canvas-gen-overlay strong {
  font-size: 12px;
  font-weight: 700;
  color: #e8e8e8;
  line-height: 1.35;
}
.ow-canvas-gen-overlay span {
  font-size: 10px;
  font-weight: 500;
  color: rgba(232, 232, 232, 0.78);
  line-height: 1.3;
}
.ow-canvas-gen-bar {
  width: min(132px, 72%);
  height: 7px;
  margin-top: 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.ow-canvas-gen-bar > i {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: 4px;
  background: linear-gradient(90deg, #8a8a8a, #e8e8e8 55%, #b0b0b0);
  animation: ow-canvas-gen-bar-slide 1.35s ease-in-out infinite;
}
@keyframes ow-canvas-gen-bar-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}
@keyframes ow-canvas-gen-pulse {
  0%, 100% { border-color: rgba(232, 232, 232, 0.55); }
  50% { border-color: rgba(232, 232, 232, 1); }
}
.ow-canvas-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 12px;
  background: transparent;
  border-radius: 10px 10px 0 0;
}
/* LibTV: floating action strip above the card (same band as Composer). */
.ow-canvas-float-tools {
  position: absolute;
  bottom: calc(100% + 10px);
  z-index: 4;
  display: none;
  box-sizing: border-box;
  padding: 4px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(40, 40, 40, 0.96);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}
.ow-canvas-card.is-selected .ow-canvas-float-tools,
.ow-canvas-card:hover .ow-canvas-float-tools {
  display: block;
}
.ow-canvas-card-tools {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  width: 100%;
  justify-content: flex-start;
}
.ow-canvas-card.is-selected .ow-canvas-card-head > em,
.ow-canvas-card:hover .ow-canvas-card-head > em {
  display: none;
}
.ow-canvas-card-tool {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.ow-canvas-card-tool img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
.ow-canvas-card-tool:hover {
  background: rgba(255, 255, 255, 0.1);
}
.ow-canvas-card-tool:hover img {
  opacity: 1;
}
.ow-canvas-card-tool.is-disabled,
.ow-canvas-card-tool:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.ow-canvas-card-ico {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.85;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.ow-hub-ico,
.ow-hub-ico-host {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: rgba(232, 236, 242, 0.92);
  line-height: 0;
  pointer-events: none;
}
.ow-hub-ico .ow-hub-svg,
.ow-hub-ico-host .ow-hub-svg {
  display: block;
  width: 1em;
  height: 1em;
}
.ow-canvas-card-head .ow-hub-ico {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  font-size: 14px;
  opacity: 0.9;
}
.ow-canvas-card-tool .ow-hub-ico {
  font-size: 14px;
  width: 14px;
  height: 14px;
}
.ow-canvas-tool-btn .ow-hub-ico-host,
.ow-canvas-tool-btn .ow-hub-ico {
  font-size: 18px;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.88);
}
.ow-canvas-tool-btn:hover .ow-hub-ico-host,
.ow-canvas-tool-btn.is-on .ow-hub-ico-host,
.ow-canvas-tool-btn:hover .ow-hub-ico,
.ow-canvas-tool-btn.is-on .ow-hub-ico {
  color: #fff;
}
.ow-canvas-add-ico.ow-hub-ico-host,
.ow-canvas-add-row .ow-hub-ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  font-size: 16px;
  margin-top: 2px;
  opacity: 0.95;
  filter: none;
  color: rgba(232, 236, 242, 0.92);
}
.ow-canvas-add-row.is-compact .ow-canvas-add-ico.ow-hub-ico-host,
.ow-canvas-add-row.is-compact .ow-hub-ico {
  margin-top: 0;
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  font-size: 16px;
}
.ow-composer-send-ico.ow-hub-ico-host,
.ow-composer-plus-ico.ow-hub-ico-host {
  display: inline-flex;
  color: inherit;
  font-size: 18px;
}
.ow-create-view-pill-ico.ow-hub-ico-host,
.ow-create-view-pill-caret.ow-hub-ico-host {
  display: inline-flex;
  color: inherit;
  font-size: 16px;
}
.ow-create-view-pill-caret.ow-hub-ico-host {
  font-size: 12px;
}
.ow-canvas-card-head > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ow-canvas-card-head em {
  flex: 0 0 auto;
  font-style: normal;
  opacity: 0.55;
}
.ow-canvas-card-body {
  /* OhMyGame media / empty plate — neutral charcoal, no blue cast */
  position: relative;
  padding: 0;
  height: calc(100% - 30px);
  overflow: hidden;
  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}
.ow-canvas-port {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: #2a2a2a;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.ow-canvas-card.is-selected .ow-canvas-port,
.ow-canvas-card.is-ports .ow-canvas-port,
.ow-canvas-card:hover .ow-canvas-port {
  opacity: 1;
  pointer-events: auto;
}
.ow-canvas-port:hover {
  background: #3d3d3d;
  border-color: #E8E8E8;
}
.ow-canvas-port-left {
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
}
.ow-canvas-port-right {
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
}
.ow-canvas-port-bottom {
  left: 50%;
  bottom: -11px;
  transform: translateX(-50%);
}
.ow-canvas-edge.is-drag {
  stroke: rgba(232, 232, 232, 0.7);
  stroke-dasharray: 6 4;
}
.ow-canvas-card-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  opacity: 0;
  display: block;
}
/* Empty stage only — no shimmer; cards already show chrome while media loads one-by-one. */
.ow-canvas-card-preview.is-pending {
  opacity: 0;
  min-height: 48px;
  background: transparent;
  animation: none;
}
.ow-canvas-card-stage.is-video video.ow-canvas-card-preview.is-pending {
  opacity: 0;
}
.ow-canvas-card-preview.is-loaded {
  opacity: 1;
  animation: none;
  background: none;
}
.ow-canvas-card-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 9px 9px;
  background: rgba(0, 0, 0, 0.35);
}
.ow-canvas-card-stage .ow-canvas-card-preview {
  border-radius: 0;
}
.ow-canvas-card-stage.is-video .ow-canvas-card-preview,
.ow-canvas-card-stage.is-mesh .ow-canvas-card-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ow-canvas-card-stage.is-rig,
.ow-canvas-card-stage.is-live3d {
  padding: 0;
}
.ow-canvas-card-stage.is-rig .ow-canvas-rig-stage,
.ow-canvas-card-stage.is-live3d .ow-canvas-rig-stage {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  /* Idle: card drag; ▶ (is-playing) enables orbit. */
  pointer-events: none;
  --poster-color: transparent;
  background: transparent;
}
.ow-canvas-card-stage.is-rig.is-playing .ow-canvas-rig-stage,
.ow-canvas-card-stage.is-live3d.is-playing .ow-canvas-rig-stage {
  pointer-events: auto;
}
.ow-canvas-card-stage.is-live3d .ow-canvas-card-play {
  pointer-events: auto;
  z-index: 3;
}
.ow-canvas-card-stage.is-live3d.is-playing .ow-canvas-card-play {
  opacity: 0.45;
}
.ow-canvas-card-stage.is-live3d:hover .ow-canvas-card-play,
.ow-canvas-card-stage.is-live3d.is-playing:hover .ow-canvas-card-play {
  opacity: 1;
}
/* In-page mesh View lightbox — never window.open for GLB. */
.ow-canvas-mesh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  flex-direction: column;
  background: rgba(8, 8, 8, 0.88);
  padding: 12px 16px 20px;
}
.ow-canvas-mesh-lightbox.is-open,
.ow-canvas-mesh-lightbox:not([hidden]) {
  display: flex;
}
.ow-canvas-mesh-lightbox[hidden] {
  display: none !important;
}
.ow-canvas-mesh-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #e8e8e8;
}
.ow-canvas-mesh-lightbox-title {
  font-size: 14px;
  font-weight: 600;
}
.ow-canvas-mesh-lightbox-close {
  border: 1px solid rgba(232, 232, 232, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #e8e8e8;
  width: 36px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.ow-canvas-mesh-lightbox-stage {
  flex: 1;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #121212;
  border: 1px solid rgba(232, 232, 232, 0.12);
}
.ow-canvas-mesh-lightbox-stage .ow-canvas-rig-stage {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.ow-canvas-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(232, 232, 232, 0.85);
  color: #e8e8e8;
  font-size: 12px;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  line-height: 1;
}
.ow-canvas-card-stage.is-video .ow-canvas-card-play {
  pointer-events: auto;
  z-index: 3;
}
.ow-canvas-card-stage.is-video.is-playing .ow-canvas-card-play {
  opacity: 0.45;
}
.ow-canvas-card-stage.is-video:hover .ow-canvas-card-play,
.ow-canvas-card-stage.is-video.is-playing:hover .ow-canvas-card-play {
  opacity: 1;
}
/* Video element itself must not steal card select/drag. */
.ow-canvas-card-stage.is-video video.ow-canvas-card-preview {
  pointer-events: none;
}
.ow-canvas-card-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  color: #e8e8e8;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.ow-canvas-card-stage.is-audio {
  gap: 8px;
  padding: 10px 12px;
  box-sizing: border-box;
}
.ow-canvas-card-stage.is-audio strong {
  font-size: 12px;
  font-weight: 650;
  color: rgba(232, 232, 232, 0.92);
}
.ow-canvas-card-audio-wave {
  width: 72%;
  height: 28px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(232, 232, 232, 0.55) 0 2px,
      transparent 2px 6px
    );
  opacity: 0.55;
}
.ow-canvas-card-audio {
  width: 100%;
  max-width: 100%;
  height: 28px;
}
.ow-canvas-card-file {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
}
.ow-canvas-card-file strong {
  font-size: 12px;
  font-weight: 650;
  color: #e8e8e8;
}
.ow-canvas-card-file span {
  font-size: 11px;
  color: rgba(232, 232, 232, 0.7);
  word-break: break-all;
  line-height: 1.35;
}
.ow-canvas-card-text,
.ow-canvas-card-meta {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.85;
  white-space: pre-wrap;
  padding: 10px 12px;
  box-sizing: border-box;
  height: 100%;
}
.ow-canvas-ctx {
  position: fixed;
  z-index: 80;
  min-width: 148px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(28, 28, 28, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ow-canvas-ctx[hidden] {
  display: none !important;
}
.ow-canvas-ctx-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: #E8E8E8;
  text-align: left;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
}
.ow-canvas-ctx-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.ow-canvas-composer {
  /* Board-local: child of #ow-canvas-world, always above cards */
  position: absolute;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 420px;
  max-width: none;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(40, 40, 40, 0.98);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  color: #e8ecf2;
  font-size: 12px;
  pointer-events: auto;
  transform-origin: 0 0;
  overflow: visible;
}
.ow-canvas-composer[hidden] {
  display: none !important;
}
.ow-canvas-composer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ow-canvas-composer-model-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.ow-canvas-composer-model-row .ow-model-dd,
.ow-canvas-composer-model-row .ow-composer-model {
  flex: 1 1 auto;
  min-width: 0;
}
.ow-canvas-composer-model-row .ow-canvas-composer-cost {
  margin-left: auto;
}
.ow-canvas-style-board-menu {
  position: fixed;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(42, 42, 42, 0.98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  max-height: min(420px, calc(100vh - 24px));
  overflow: hidden;
}
.ow-canvas-style-board-host {
  max-height: min(396px, calc(100vh - 48px));
  overflow: hidden;
}
/* 风格板弹层：竖列滑动（Hub 三 Tab 仍用横滑） */
.ow-style-square.is-art-only .ow-style-square-scroller {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(396px, calc(100vh - 48px));
  -webkit-overflow-scrolling: touch;
}
.ow-style-square.is-art-only .ow-style-square-grid {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  min-height: min-content;
}
.ow-canvas-style-board-host .ow-style-square-card,
.ow-style-square.is-art-only .ow-style-square-card {
  flex: 0 0 auto;
  width: 100%;
  max-width: 280px;
  flex-direction: row;
  align-items: stretch;
}
.ow-canvas-style-board-host .ow-style-square-cover,
.ow-style-square.is-art-only .ow-style-square-cover {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}
.ow-canvas-style-board-host .ow-style-square-cover img,
.ow-style-square.is-art-only .ow-style-square-cover img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.ow-canvas-style-board-host .ow-style-square-blurb,
.ow-style-square.is-art-only .ow-style-square-blurb {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ow-canvas-composer-tool {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 236, 242, 0.88);
  font: inherit;
  cursor: pointer;
}
.ow-canvas-composer-tool:hover,
.ow-canvas-composer-tool.is-on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ow-canvas-composer-tool.is-disabled,
.ow-canvas-composer-tool:disabled {
  opacity: 0.45;
  cursor: default;
}
.ow-canvas-composer-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ow-canvas-composer-ref {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #222;
  cursor: pointer;
}
.ow-canvas-composer-ref img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ow-canvas-composer-ref-badge {
  position: absolute;
  left: 2px;
  bottom: 2px;
  max-width: calc(100% - 4px);
  padding: 0 3px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 9px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.ow-canvas-composer-ref-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.ow-canvas-composer-prompt-wrap {
  position: relative;
  overflow: visible;
}
.ow-canvas-composer-prompt {
  width: 100%;
  min-height: 72px;
  max-height: 160px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1c1c1c;
  color: #eee;
  padding: 8px 10px;
  font: inherit;
  line-height: 1.4;
  box-sizing: border-box;
}
.ow-canvas-composer-prompt::placeholder {
  color: rgba(200, 200, 200, 0.55);
  opacity: 1;
}
.ow-canvas-composer-prompt::-webkit-input-placeholder {
  color: rgba(200, 200, 200, 0.55);
  opacity: 1;
}
.ow-canvas-composer-prompt::-moz-placeholder {
  color: rgba(200, 200, 200, 0.55);
  opacity: 1;
}
/* Text/document: no max-height ceiling — authors can write long briefs. */
.ow-canvas-composer-prompt.is-text-doc {
  min-height: 120px;
  max-height: none;
  height: auto;
}
.ow-canvas-preset-menu {
  position: fixed;
  /* Above hub rail (2600) and create chrome; below modals (13000). */
  z-index: 12100;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 10px;
  max-width: min(920px, calc(100vw - 24px));
  max-height: min(420px, 72vh);
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2a2a2a;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  color: #e8ecf2;
  pointer-events: auto;
}
.ow-canvas-preset-menu > div {
  min-width: 0;
}
.ow-canvas-preset-col-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(232, 236, 242, 0.55);
  letter-spacing: 0.02em;
}
.ow-canvas-preset-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  padding: 8px 10px;
  margin: 0 0 2px;
  font: inherit;
  cursor: pointer;
}
.ow-canvas-preset-row strong {
  font-size: 13px;
  font-weight: 560;
  color: #fff;
}
.ow-canvas-preset-row span {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(232, 236, 242, 0.55);
}
.ow-canvas-preset-row:hover,
.ow-canvas-preset-row.is-on {
  background: rgba(255, 255, 255, 0.08);
}
.ow-canvas-preset-empty {
  margin: 0;
  padding: 12px;
  font-size: 12px;
  color: rgba(232, 236, 242, 0.55);
}
.ow-canvas-composer-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ow-canvas-composer-chip {
  appearance: none;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 236, 242, 0.92);
  font: inherit;
  cursor: pointer;
}
.ow-canvas-composer-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}
.ow-canvas-composer-chip.is-on {
  background: rgba(90, 184, 242, 0.22);
  border-color: rgba(115, 199, 255, 0.45);
}
.ow-canvas-composer-chip.is-hint {
  cursor: default;
  opacity: 0.72;
  pointer-events: auto;
}
.ow-canvas-composer-chip.is-hint:hover {
  background: rgba(255, 255, 255, 0.05);
}
.ow-canvas-composer-chip.is-locked,
.ow-canvas-composer-chip:disabled {
  cursor: default;
  opacity: 0.7;
  pointer-events: none;
}
.ow-canvas-composer-chip.is-locked:hover,
.ow-canvas-composer-chip:disabled:hover {
  background: rgba(255, 255, 255, 0.05);
}
.ow-canvas-composer-menu {
  position: absolute;
  z-index: 50;
  min-width: 120px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1c1c1c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.ow-canvas-composer-menu button {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  color: #e8ecf2;
  padding: 8px 10px;
  border-radius: 7px;
  font: inherit;
  cursor: pointer;
}
.ow-canvas-composer-menu button:hover,
.ow-canvas-composer-menu button.is-on {
  background: rgba(255, 255, 255, 0.08);
}
.ow-canvas-composer-spacer {
  flex: 1;
  min-width: 8px;
}
.ow-canvas-composer-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(232, 236, 242, 0.82);
  white-space: nowrap;
  flex-shrink: 0;
}
.ow-canvas-composer-bolt {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: rgba(232, 236, 242, 0.75);
}
.ow-canvas-composer-submit {
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.ow-canvas-composer-submit:disabled {
  opacity: 0.45;
  cursor: default;
}
.ow-canvas-composer-submit:not(:disabled):hover {
  background: #f2f2f2;
}
.ow-canvas-viewport.is-pick-ref {
  cursor: crosshair;
}
.ow-canvas-viewport.is-pick-ref .ow-canvas-card[data-ref-pick="1"] {
  outline: 2px solid rgba(255, 255, 255, 0.75);
}
/* Status text lives in left rail for a11y; visible tips go through center mkAl toast. */
.ow-canvas-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ow-canvas-gen-hint {
  margin-top: 8px;
  font-size: 11px;
}

/* LibTV-shaped canvas chrome (align PC CanvasHost) */
.ow-create-canvas {
  position: relative;
}
.ow-canvas-toolbar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(30, 30, 33, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.ow-canvas-tool-btn,
.ow-canvas-zoom-pct {
  appearance: none;
  min-width: 36px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(232, 236, 242, 0.88);
  font-size: 15px;
  cursor: pointer;
}
.ow-canvas-tool-btn.ow-canvas-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ow-canvas-tool-btn.ow-canvas-tool-icon img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.88;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.ow-canvas-tool-btn:hover,
.ow-canvas-zoom-pct:hover,
.ow-canvas-tool-btn.is-on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ow-canvas-tool-btn:hover img,
.ow-canvas-tool-btn.is-on img {
  opacity: 1;
}
.ow-canvas-add-wrap {
  position: relative;
}
.ow-canvas-add-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: 188px;
  max-height: min(60vh, 480px);
  overflow: auto;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(36, 36, 38, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 20;
}
.ow-canvas-add-menu[hidden] {
  display: none !important;
}
.ow-canvas-add-menu.is-floating {
  /* Anchored by JS (portal to body) — above the toolbar + button. */
  position: fixed;
  z-index: 14000;
}
.ow-canvas-add-header {
  margin: 4px 8px 6px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(232, 236, 242, 0.4);
}
.ow-canvas-add-group {
  margin: 6px 8px 4px;
  font-size: 10px;
  color: rgba(232, 236, 242, 0.35);
  text-transform: none;
  letter-spacing: 0;
}
.ow-canvas-add-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #eee;
  padding: 8px 10px;
  cursor: pointer;
}
.ow-canvas-add-row.is-compact {
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
}
.ow-canvas-add-row.is-compact .ow-canvas-add-copy > span {
  display: none;
}
.ow-canvas-add-row:hover {
  background: rgba(255, 255, 255, 0.08);
}
.ow-canvas-add-row:disabled {
  opacity: 0.4;
  cursor: default;
}
.ow-canvas-add-ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.ow-canvas-add-row.is-compact .ow-canvas-add-ico {
  margin-top: 0;
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.ow-canvas-add-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.ow-canvas-add-row strong {
  font-size: 12px;
  font-weight: 500;
}
.ow-canvas-add-row .ow-canvas-add-copy > span {
  font-size: 11px;
  color: rgba(232, 236, 242, 0.55);
  line-height: 1.35;
}
.ow-canvas-add-chev {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
}
.ow-canvas-cascade {
  position: fixed;
  z-index: 95;
  min-width: 160px;
  max-height: min(50vh, 360px);
  overflow: auto;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(36, 36, 38, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.ow-canvas-card-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  min-height: 88px;
  padding: 12px;
  text-align: center;
  box-sizing: border-box;
  background: #1a1a1a;
  border-radius: 9px;
}
.ow-canvas-card-empty strong {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.ow-canvas-card-empty span {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.32);
}
.ow-assets-media-chips .ow-kind-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ow-chip-ico {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.85;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.ow-kind-chip.is-on .ow-chip-ico {
  opacity: 1;
}
.ow-canvas-zoombar {
  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(30, 30, 33, 0.96);
  flex-wrap: wrap;
  max-width: min(420px, calc(100% - 28px));
}
.ow-canvas-zoombar .ow-canvas-tool-btn.is-on,
.ow-canvas-toolbar .ow-canvas-tool-btn.is-on {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
/* Legacy view-chrome wrapper (board pill removed — Canvas lives in top-tools). */
.ow-create-view-chrome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 4px;
  flex: 0 1 auto;
  min-width: 0;
}
.ow-create-view-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(26, 26, 26, 0.92);
  color: rgba(232, 236, 242, 0.95);
  font: 600 13px/1 system-ui, sans-serif;
}
.ow-create-view-pill-ico {
  opacity: 0.9;
}
.ow-create-view-pill-caret {
  opacity: 0.7;
  margin-left: 2px;
}
.ow-create-canvas-title-pill {
  cursor: pointer;
  user-select: none;
}
.ow-create-canvas-dd-wrap {
  position: relative;
  z-index: 40;
}
.ow-canvas-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  max-width: min(320px, 80vw);
  padding: 12px 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(28, 28, 28, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.ow-canvas-dd-menu[hidden] {
  display: none !important;
}
.ow-canvas-dd-project {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 14px 10px;
}
.ow-canvas-dd-k {
  font: 600 11px/1.2 system-ui, sans-serif;
  color: rgba(150, 158, 170, 0.95);
}
.ow-canvas-dd-project strong {
  font: 700 14px/1.25 system-ui, sans-serif;
  color: #EDEDED;
}
.ow-canvas-dd-sep {
  height: 1px;
  margin: 0 0 8px;
  background: rgba(255, 255, 255, 0.1);
}
.ow-canvas-dd-boards-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 6px;
  font: 600 12px/1.2 system-ui, sans-serif;
  color: rgba(160, 168, 180, 0.95);
}
.ow-canvas-dd-add {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e8ecf2;
  font: 600 16px/1 system-ui, sans-serif;
  cursor: pointer;
}
.ow-canvas-dd-add:hover {
  background: rgba(255, 255, 255, 0.08);
}
.ow-canvas-dd-list {
  display: flex;
  flex-direction: column;
  max-height: 240px;
  overflow: auto;
  padding: 0 6px 4px;
}
.ow-canvas-dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(232, 236, 242, 0.95);
  padding: 8px 10px;
  font: 600 13px/1.2 system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
.ow-canvas-dd-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ow-canvas-dd-item.is-on {
  background: rgba(255, 255, 255, 0.08);
}
.ow-canvas-dd-check {
  color: #fff;
  font-weight: 700;
}
.ow-create-view-mode-pill {
  padding: 3px;
  gap: 2px;
}
.ow-create-view-mode {
  width: 32px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(220, 224, 232, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ow-create-view-mode:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ow-create-view-mode.is-on {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.ow-create-manager[hidden] {
  display: none !important;
}
.ow-manager-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
  flex: 0 0 auto;
  min-height: 42px;
}
/* Head top rails (right cluster) — Nodes / Assets / … */
.ow-create-view-chrome .ow-manager-tabs.ow-create-top-rails,
.ow-create-top-row--nav > .ow-manager-tabs.ow-create-top-rails {
  padding: 0;
  border-bottom: 0;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
}
.ow-create-view-chrome .ow-create-top-rails .ow-manager-tab,
.ow-create-top-row--nav > .ow-create-top-rails .ow-manager-tab {
  /* Godot MakeTopModuleTab: 6px pill · ~28px row */
  border-radius: 6px;
  padding: 4px 8px;
  min-height: 28px;
  font-size: 12px;
  gap: 5px;
}
.ow-manager-tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(200, 200, 200, 0.85);
  padding: 4px 8px;
  min-height: 28px;
  font: 600 12px/1.2 system-ui, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ow-manager-tab .ow-hub-ico,
.ow-manager-tab .ow-hub-ico-host {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.85;
}
.ow-manager-tab-lab {
  white-space: nowrap;
}
.ow-manager-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.ow-manager-tab.is-on {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.ow-manager-tab.is-on .ow-hub-ico,
.ow-manager-tab.is-on .ow-hub-ico-host {
  opacity: 1;
}
.ow-manager-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
}
/* PC DeskStageFrame / DeskItemList */
.ow-manager-nav {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 6px;
  min-height: 0;
  background: #171717;
}
.ow-manager-file-search {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1c1c1c;
  color: #ededed;
  padding: 6px 8px;
  font: 12px/1.3 system-ui, sans-serif;
}
.ow-manager-file-list {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ow-manager-nav-empty {
  margin: 24px 8px;
  text-align: center;
  font: 12px/1.45 system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.45);
}
.ow-manager-nav-row {
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(237, 237, 237, 0.92);
  padding: 6px 8px;
  min-height: 28px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}
.ow-manager-nav-lab {
  flex: 1 1 auto;
  min-width: 0;
  font: 600 12px/1.25 system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ow-manager-nav-row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.ow-manager-nav-row.is-on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ow-manager-stage {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 12px 12px;
  gap: 8px;
  background: #171717;
}
.ow-manager-editor-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 28px;
}
.ow-manager-path {
  flex: 1;
  min-width: 120px;
  color: rgba(200, 200, 200, 0.9);
  font: 600 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}
.ow-manager-status {
  color: rgba(180, 180, 180, 0.9);
  font: 12px/1.3 system-ui, sans-serif;
}
.ow-manager-save {
  border: 0;
  border-radius: 8px;
  padding: 7px 14px;
  background: #E8E8E8;
  color: #111;
  font: 600 12px/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.ow-manager-save:disabled {
  opacity: 0.45;
  cursor: default;
}
.ow-manager-card {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1c1c1c;
}
.ow-manager-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.ow-manager-card-head strong {
  font: 700 16px/1.2 system-ui, sans-serif;
  color: #EDEDED;
}
.ow-manager-card-meta {
  font: 12px/1.3 system-ui, sans-serif;
  color: rgba(170, 178, 190, 0.95);
}
.ow-manager-card-preview {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  max-height: 220px;
}
.ow-manager-card-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}
.ow-ui-wire {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  max-height: 220px;
  overflow: auto;
}
.ow-ui-wire-item {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  font: 12px/1.3 system-ui, sans-serif;
  color: rgba(220, 228, 240, 0.92);
  background: rgba(255, 255, 255, 0.03);
}
.ow-ui-wire-item[data-kind='button'],
.ow-ui-wire-item[data-kind='Button'] {
  border-style: solid;
  text-align: center;
}
.ow-manager-data-sheet {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ow-manager-data-sheet[hidden] {
  display: none !important;
}
.ow-manager-data-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.ow-manager-data-meta-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  font: 600 11px/1.2 system-ui, sans-serif;
  color: rgba(200, 206, 216, 0.88);
}
.ow-manager-data-meta-field input {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #EDEDED;
  font: 13px/1.3 system-ui, sans-serif;
  padding: 6px 8px;
  min-width: 140px;
}
.ow-manager-data-scroll {
  flex: 1;
  min-height: 160px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}
.ow-manager-data-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font: 12px/1.35 system-ui, sans-serif;
}
.ow-manager-data-table th,
.ow-manager-data-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
  vertical-align: top;
}
.ow-manager-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #2a2a2a;
  color: rgba(232, 236, 242, 0.92);
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  white-space: nowrap;
}
.ow-manager-data-table td input {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 88px;
  max-width: 280px;
  border: 0;
  background: transparent;
  color: #E8E8E8;
  font: inherit;
  padding: 7px 10px;
  box-sizing: border-box;
}
.ow-manager-data-table td input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
}
.ow-manager-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
.ow-manager-data-hint {
  margin: 0;
  font-size: 12px;
}
.ow-manager-json-fold {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}
.ow-manager-json-fold > summary {
  cursor: pointer;
  color: rgba(200, 200, 200, 0.9);
  font: 600 12px/1.3 system-ui, sans-serif;
  margin-bottom: 8px;
}
.ow-manager-ui-bake-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}
.ow-manager-action-btn {
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  min-height: 28px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 600 12px/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.ow-manager-action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}
.ow-manager-section-lab {
  margin: 8px 0 4px;
  font: 12px/1.35 system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.45);
}
.ow-manager-ui-widgets {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1c1c;
  padding: 8px 10px;
}
.ow-ui-widget-list {
  margin: 0;
  padding: 0 0 0 16px;
  color: #c8c8c8;
  font: 12px/1.45 system-ui, sans-serif;
}
.ow-ui-widget-list code {
  color: #ededed;
}
.ow-manager-doc,
.ow-manager-code,
.ow-manager-assets {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ow-manager-body.is-assets {
  grid-template-columns: 1fr;
}
.ow-manager-body.is-assets .ow-manager-nav[hidden] {
  display: none !important;
}
.ow-manager-assets-lead {
  margin: 0 0 4px;
  font: 12px/1.4 system-ui, sans-serif;
  color: rgba(170, 178, 190, 0.95);
}
.ow-manager-assets-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.ow-manager-assets-toolbar .ow-manager-chip-row {
  margin-bottom: 0;
  flex: 1 1 auto;
}
.ow-manager-asset-project {
  flex: 0 1 188px;
  min-width: 140px;
  max-width: 240px;
}
.ow-manager-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.ow-manager-media-chips {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 2px;
}
.ow-manager-assets-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 12px;
}
.ow-manager-assets-list {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 20, 0.92);
}
.ow-manager-asset-row {
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(220, 220, 220, 0.95);
  padding: 4px 6px;
  min-height: 44px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.ow-manager-asset-row-thumb {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a;
}
.ow-manager-asset-row-thumb .ow-asset-thumb-host,
.ow-manager-asset-row-thumb .ow-cover-img,
.ow-manager-asset-row-thumb .ow-asset-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.ow-manager-asset-row-thumb .ow-asset-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 9px/1 system-ui, sans-serif;
  color: rgba(160, 160, 160, 0.9);
  background: #222;
}
.ow-manager-asset-row-name {
  flex: 1 1 auto;
  min-width: 0;
  font: 600 12px/1.25 system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ow-manager-asset-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ow-manager-asset-row.is-on {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.ow-manager-asset-bucket {
  margin: 0;
  font: 12px/1.35 system-ui, sans-serif;
  color: rgba(170, 178, 190, 0.95);
}
.ow-manager-asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.ow-manager-asset-actions[hidden] {
  display: none !important;
}
.ow-manager-open-design,
.ow-manager-place-canvas {
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 600 12px/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.ow-manager-open-design:hover,
.ow-manager-place-canvas:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
}
.ow-manager-place-canvas:disabled {
  opacity: 0.4;
  cursor: default;
}
.ow-manager-asset-actions .ow-kind-chip {
  margin: 0;
}
@media (max-width: 900px) {
  .ow-manager-assets-split {
    grid-template-columns: 1fr;
  }
}
.ow-manager-beats {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px 8px;
}
.ow-beats-entry-tag {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(61, 139, 253, 0.25);
  color: #9ec5ff;
  vertical-align: middle;
}
.ow-beats-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 12px;
}
.ow-beats-nav {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ow-beats-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ow-beats-edit {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 20, 0.92);
}
.ow-beats-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 12px/1.35 system-ui, sans-serif;
  color: rgba(170, 178, 190, 0.95);
}
.ow-beats-input {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #e8ecf4;
  padding: 7px 10px;
  font: 13px/1.35 system-ui, sans-serif;
}
.ow-beats-exits {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ow-beats-exit-row {
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(220, 224, 232, 0.95);
  padding: 7px 10px;
  cursor: pointer;
  font: 12px/1.3 system-ui, sans-serif;
}
.ow-beats-exit-row.is-on,
.ow-beats-exit-row:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ow-beats-exit-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.ow-beats-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.ow-beats-assets {
  margin: 0;
  word-break: break-all;
}
@media (max-width: 900px) {
  .ow-beats-split {
    grid-template-columns: 1fr;
  }
}
.ow-manager-text {
  flex: 1;
  min-height: 200px;
  width: 100%;
  resize: vertical;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Godot TextEdit Elevated */
  background: #262626;
  color: #ededed;
  padding: 10px 12px;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ow-manager-text.is-doc,
.ow-manager-text.is-code {
  min-height: 0;
  flex: 1;
  resize: none;
}
.ow-manager-json-fold .ow-manager-text {
  min-height: 160px;
}
.ow-manager-empty {
  margin: auto;
  padding: 24px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font: 13px/1.5 system-ui, sans-serif;
  max-width: 28em;
}
.ow-manager-asset-preview {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(28, 28, 28, 0.96);
}
.ow-manager-asset-img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
}
.ow-manager-asset-path {
  margin: 0;
  font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: rgba(190, 196, 206, 0.95);
  word-break: break-all;
}
@media (max-width: 900px) {
  .ow-manager-body {
    grid-template-columns: 1fr;
  }
  .ow-manager-nav {
    max-height: 180px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}
.ow-canvas-assets-rail {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 64px;
  width: 300px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  /* Godot LibTvAssetsRail / VI 节点树 #171717 */
  background: rgba(23, 23, 23, 0.97);
  box-sizing: border-box;
}
.ow-canvas-assets-rail[hidden] {
  display: none !important;
}
.ow-canvas-assets-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: #e8e8e8;
  font: 600 13px/1.2 system-ui, sans-serif;
}
.ow-canvas-rail-title {
  flex: 1;
  min-width: 0;
  color: #e8e8e8;
  font: 600 13px/1.2 system-ui, sans-serif;
}
.ow-canvas-assets-tools {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.ow-canvas-assets-search {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #e8e8e8;
  padding: 8px 10px;
  font: 13px/1.3 system-ui, sans-serif;
}
.ow-canvas-assets-type {
  flex: 0 0 auto;
  width: auto;
  max-width: 110px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #e8e8e8;
  padding: 7px 8px;
  font: 12px/1.3 system-ui, sans-serif;
}
.ow-canvas-assets-list {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* PC LibTvChrome assets rail folder row: fold 28 · title expand · × dissolve 28 */
.ow-canvas-assets-folder {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 2px;
}
.ow-canvas-assets-folder .ow-canvas-assets-row.is-group {
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 6px;
  font-weight: 600;
  color: #e8e8e8;
  background: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ow-canvas-assets-fold,
.ow-canvas-assets-dissolve {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(232, 232, 232, 0.78);
  cursor: pointer;
  font: 600 14px/28px system-ui, sans-serif;
  text-align: center;
}
.ow-canvas-assets-fold:hover,
.ow-canvas-assets-dissolve:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.ow-canvas-assets-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(232, 232, 232, 0.9);
  padding: 6px 8px;
  min-height: 36px;
  cursor: pointer;
  font: 12px/1.3 system-ui, sans-serif;
  box-sizing: border-box;
}
.ow-canvas-assets-row.is-on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ow-canvas-assets-row > span:last-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ow-canvas-assets-row.is-child {
  padding-left: 32px;
}
.ow-canvas-assets-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ow-canvas-assets-folder .ow-canvas-assets-row.is-group:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ow-canvas-rail-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ow-canvas-rail-thumb img,
.ow-canvas-rail-thumb .ow-asset-thumb-host,
.ow-canvas-rail-thumb .ow-cover-img,
.ow-canvas-rail-thumb .ow-asset-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ow-canvas-rail-thumb .ow-asset-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 8px/1 system-ui, sans-serif;
  color: rgba(160, 160, 160, 0.9);
  background: #222;
}
.ow-canvas-rail-thumb.is-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(40, 40, 40, 0.65));
}
.ow-canvas-rail-play {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 1;
  font: 9px/1 system-ui, sans-serif;
  color: #fff;
  text-shadow: 0 0 3px #000;
  pointer-events: none;
}
.ow-canvas-groups {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ow-canvas-group-frame {
  position: absolute;
  /* VI Group chips: #dc4650 / #328cd2 / #28a06e / #c8821e / #8c50c8 (Godot LibTvGroupChipColors) */
  border: 2px solid rgba(220, 70, 80, 0.72);
  border-radius: 10px;
  background: rgba(220, 70, 80, 0.14);
  box-sizing: border-box;
  /* Frame under nodes: empty padding still hittable; cards own their hits above. */
  pointer-events: auto;
  cursor: pointer;
}
.ow-canvas-group-frame:nth-child(5n+2) {
  border-color: rgba(50, 140, 210, 0.72);
  background: rgba(50, 140, 210, 0.14);
}
.ow-canvas-group-frame:nth-child(5n+3) {
  border-color: rgba(40, 160, 110, 0.72);
  background: rgba(40, 160, 110, 0.14);
}
.ow-canvas-group-frame:nth-child(5n+4) {
  border-color: rgba(200, 130, 30, 0.72);
  background: rgba(200, 130, 30, 0.14);
}
.ow-canvas-group-frame:nth-child(5n+5) {
  border-color: rgba(140, 80, 200, 0.72);
  background: rgba(140, 80, 200, 0.14);
}
.ow-canvas-group-frame.is-collapsed {
  opacity: 0.55;
}
.ow-canvas-group-frame > span,
.ow-canvas-group-title {
  /* Outside the frame, top-left — not inside the group padding */
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(calc(-100% - 6px));
  display: inline-block;
  margin: 0;
  padding: 4px 12px;
  border: 0;
  border-radius: 8px;
  background: #dc4650;
  color: #fff;
  font: 700 12px/1.2 system-ui, sans-serif;
  cursor: pointer;
  pointer-events: auto;
  z-index: 4;
  white-space: nowrap;
}
.ow-canvas-group-frame:nth-child(5n+2) > .ow-canvas-group-title { background: #328cd2; }
.ow-canvas-group-frame:nth-child(5n+3) > .ow-canvas-group-title { background: #28a06e; }
.ow-canvas-group-frame:nth-child(5n+4) > .ow-canvas-group-title { background: #c8821e; }
.ow-canvas-group-frame:nth-child(5n+5) > .ow-canvas-group-title { background: #8c50c8; }
.ow-canvas-group-title:hover {
  filter: brightness(1.08);
}
.ow-canvas-group-frame.is-selected {
  border-color: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  cursor: grab;
}
/* PC PlaceGroupFloatToolbar: one HBox row above frame, flat white labels */
.ow-canvas-group-float-tools {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, calc(-100% - 8px));
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(40, 40, 40, 0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  z-index: 20;
  white-space: nowrap;
  max-width: min(92vw, 560px);
  overflow: visible;
}
.ow-canvas-group-float-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font: 600 12px/1.2 system-ui, sans-serif;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.ow-canvas-group-float-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}
.ow-canvas-group-float-menu {
  position: relative;
}
.ow-canvas-group-float-submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 4px;
  min-width: 120px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(32, 32, 36, 0.98);
  z-index: 9;
}
.ow-canvas-group-float-menu:hover .ow-canvas-group-float-submenu,
.ow-canvas-group-float-menu:focus-within .ow-canvas-group-float-submenu,
.ow-canvas-group-float-menu.is-open .ow-canvas-group-float-submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Title chip left · float bar centered — same Y band as PC (no extra lift / clip). */
.ow-canvas-group-frame.is-selected > .ow-canvas-group-title {
  z-index: 9;
}
.ow-canvas-group-float-submenu button {
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  font: 600 12px/1.3 system-ui, sans-serif;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.ow-canvas-group-float-submenu button:hover {
  background: rgba(255, 255, 255, 0.08);
}
.ow-canvas-group-add {
  position: absolute;
  right: -34px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(40, 40, 40, 0.95);
  color: #fff;
  font: 700 16px/1 system-ui, sans-serif;
  cursor: pointer;
  pointer-events: auto;
  z-index: 6;
}
.ow-canvas-group-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: #fff;
  border-radius: 1px;
  pointer-events: auto;
  z-index: 5;
}
.ow-canvas-group-handle[data-corner="0"] { left: -4px; top: -4px; cursor: nwse-resize; }
.ow-canvas-group-handle[data-corner="1"] { right: -4px; top: -4px; cursor: nesw-resize; }
.ow-canvas-group-handle[data-corner="2"] { left: -4px; bottom: -4px; cursor: nesw-resize; }
.ow-canvas-group-handle[data-corner="3"] { right: -4px; bottom: -4px; cursor: nwse-resize; }
/* Beside / above zoombar minimap button (not RF default bottom-right). */
.ow-canvas-minimap,
.ow-rf-host .react-flow__minimap.ow-canvas-minimap {
  position: absolute !important;
  left: 10px !important;
  right: auto !important;
  bottom: 56px !important;
  z-index: 28;
  width: 168px !important;
  height: 120px !important;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 12, 16, 0.92);
  cursor: crosshair;
  overflow: hidden;
}
.ow-canvas-resize {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(40, 40, 44, 0.95);
  cursor: nwse-resize;
  z-index: 5;
}
/* Beat Bootstrap / UA button chrome  flat icons on dark pill (PC CanvasHost Flat). */
.ow-canvas-zoombar .ow-canvas-tool-btn,
.ow-canvas-zoombar .ow-canvas-zoom-pct {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: rgba(232, 236, 242, 0.9);
  line-height: 1;
  font: 600 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.ow-canvas-zoombar .ow-canvas-zoom-pct {
  min-width: 48px;
  padding: 0 4px;
  color: rgba(232, 236, 242, 0.92);
}
.ow-canvas-zoombar .ow-canvas-tool-btn:hover,
.ow-canvas-zoombar .ow-canvas-zoom-pct:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ow-canvas-zoombar .ow-canvas-tool-btn:focus,
.ow-canvas-zoombar .ow-canvas-zoom-pct:focus {
  outline: none;
}
.ow-canvas-zoombar .ow-canvas-tool-btn:focus-visible,
.ow-canvas-zoombar .ow-canvas-zoom-pct:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.ow-canvas-zoom-ico {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  pointer-events: none;
}
.ow-canvas-viewport[data-tool="pan"],
.ow-canvas-viewport[data-tool="pan"] .react-flow__pane,
.ow-canvas-viewport[data-tool="pan"] .react-flow__pane::before {
  cursor: grab !important;
}
.ow-canvas-viewport[data-tool="pan"]:active,
.ow-canvas-viewport[data-tool="pan"] .react-flow__pane:active,
.ow-canvas-viewport[data-tool="pan"] .react-flow__pane:active::before {
  cursor: grabbing !important;
}
.ow-canvas-viewport[data-tool="pointer"],
.ow-canvas-viewport[data-tool="pointer"] .react-flow__pane,
.ow-canvas-viewport[data-tool="pointer"] .react-flow__pane::before {
  cursor: default !important;
}
.ow-create-canvas-body {
  position: relative;
  min-height: 0;
}
.ow-create-canvas-stage .ow-create-canvas-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.ow-create-canvas-stage .ow-canvas-viewport {
  flex: 1;
  min-height: 0;
}
@media (max-width: 900px) {
  .ow-create-workbench.is-split,
  .ow-create-workbench.is-libtv {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .ow-create-right {
    min-height: 48vh;
  }
}
.ow-create-confirm {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}
.ow-create-confirm-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #e8e8e8;
}
.ow-create-confirm-axes {
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(232, 236, 242, 0.78);
}
.ow-create-confirm-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(232, 236, 242, 0.5);
}
.ow-create-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.ow-create-confirm-cancel {
  appearance: none;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #ccc;
  cursor: pointer;
}
.ow-create-confirm-go {
  min-height: 36px;
}
.ow-create-submit.is-stop {
  background: rgba(255, 255, 255, 0.12) !important;
}
.ow-copilot-process {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(232, 236, 242, 0.7);
}
.ow-copilot-process summary {
  cursor: pointer;
  color: #E8E8E8;
  list-style: none;
}
.ow-copilot-process summary::-webkit-details-marker {
  display: none;
}
.ow-copilot-process-list {
  margin: 8px 0 0;
  padding-left: 18px;
}
.ow-copilot-process-list li {
  margin: 0 0 4px;
}
.ow-copilot-live-log .ow-copilot-live-item.is-thought {
  color: rgba(200, 210, 230, 0.85);
}
.ow-copilot-live-log .ow-copilot-live-item.is-tool {
  color: rgba(232, 236, 242, 0.92);
}
.ow-create-play-placeholder {
  padding: 28px 16px;
  min-height: min(40vh, 280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: rgba(232, 236, 242, 0.65);
  font-size: 13px;
  background: #0d0d0d;
}
.ow-create-play-stage-line {
  margin: 0;
  color: #E8E8E8;
  font-weight: 600;
}
.ow-create-play-build-progress {
  width: min(320px, 86%);
  margin: 4px 0 2px;
}
.ow-create-seat-lead {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--openworld-muted, #888);
  line-height: 1.45;
}
.ow-create-runtime {
  margin: 4px 0 0;
  font-size: 12px;
  color: #c45c26;
  line-height: 1.4;
}
.ow-desk-project-ops {
  margin: 8px 0 0;
}
.ow-desk-project-ops .ow-create-native-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ow-manager-asset-video {
  max-width: 100%;
  max-height: 280px;
  margin-top: 8px;
  border-radius: 8px;
  background: #111;
}
.ow-manager-asset-mesh {
  margin-top: 8px;
  width: 100%;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}
.ow-manager-asset-mesh .ow-canvas-rig-stage {
  width: 100%;
  height: 100%;
  display: block;
}
.ow-create-axes-wrap {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
.ow-create-dd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  position: static;
  z-index: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}
.ow-create-setup {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(28, 28, 28, 0.96);
  /* Axis menus drop over canvas  without this, later siblings paint on top. */
  position: relative;
  z-index: 20;
  overflow: visible;
}
.ow-create-setup[hidden],
.ow-create-setup.is-hidden {
  display: none !important;
}
.ow-create-setup-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(232, 236, 242, 0.72);
  letter-spacing: 0.02em;
}
.ow-create-setup .ow-create-axes-wrap {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}
.ow-create-setup .ow-create-dd-row {
  flex-wrap: wrap;
  gap: 6px;
}
.ow-create-setup-hint {
  margin: 0;
  font-size: 12px;
}
.ow-create-play {
  margin: 0 0 16px;
  border: 1px solid var(--openworld-border, rgba(255, 255, 255, 0.12));
  border-radius: var(--ow-radius, 12px);
  overflow: hidden;
  background: #111;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ow-create-workbench.is-split .ow-create-play {
  margin: 0;
  height: 100%;
}
.ow-create-play-bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  position: relative;
  z-index: 220;
  pointer-events: auto;
}
.ow-create-play-bar-lead {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.ow-create-play-tip {
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Play fills canvas stage under right-tabs; bar stays above WebContentsView. */
.ow-create-canvas-stage.is-play-open .ow-create-play {
  flex: 1 1 auto;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  margin: 0;
  border: 0;
  border-radius: 0;
  z-index: 110;
  overflow: hidden;
}
.ow-create-canvas-stage.is-play-open .ow-create-play-frame {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  width: 100%;
}
.ow-create-play-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
button.ow-play-close-btn.ow-text-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--openworld-text, #ededed);
  cursor: pointer;
  text-decoration: none;
}
button.ow-play-close-btn.ow-text-link:hover {
  color: #fff;
  text-decoration: underline;
}
.ow-create-play-actions .ow-text-link {
  color: var(--openworld-text, #ededed);
}
.ow-create-play-frame {
  display: block;
  width: 100%;
  height: min(52vh, 420px);
  border: 0;
  background: #000;
  flex: 1;
}
.ow-create-play-frame[hidden] {
  display: none !important;
}
.ow-create-workbench.is-split .ow-create-play-frame {
  height: min(52vh, 480px);
}
.ow-create-projects {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ow-create-projects-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ow-create-projects-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.ow-create-projects-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}
.ow-create-projects-grid > .ow-mw-col {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 16px;
}
.ow-create-desk-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--openworld-muted, #888);
}
.ow-create-desk-hint a {
  margin-left: 6px;
}
.ow-copilot-msg.is-assistant .ow-copilot-msg-who {
  display: none;
}
.ow-copilot-assistant-text {
  color: rgba(232, 236, 242, 0.92);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 6px;
}
.ow-copilot-live-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 2px;
}
.ow-copilot-summary {
  color: var(--openworld-muted, #aaa);
  font-size: 13px;
}
.ow-copilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ow-create-dd {
  position: relative;
}
.ow-create-dd[open] {
  /* Beat sibling axis chips + following canvas/kind sections. */
  z-index: 80;
}
.ow-create-dd-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--openworld-muted, #aaa);
  font-size: 14px;
  user-select: none;
}
.ow-create-dd-summary::-webkit-details-marker {
  display: none;
}
.ow-create-dd-summary::after {
  content: "";
  font-size: 11px;
  opacity: 0.7;
}
.ow-create-dd[open] > .ow-create-dd-summary {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.ow-create-dd-sep {
  opacity: 0.45;
}
.ow-create-dd-value {
  color: #e8e8e8;
}
.ow-create-dd-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 4px);
  left: 0;
  min-width: 140px;
  max-height: min(50vh, 280px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.ow-create-dd-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #ddd;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.ow-create-dd-item:hover,
.ow-create-dd-item.is-on {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.ow-create-box {
  background: rgba(28, 28, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ow-radius, 12px);
  padding: 14px 14px 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ow-create-composer .ow-create-brief {
  width: 100%;
  min-height: 120px;
  border: 0;
  background: transparent;
  color: #f2f2f2;
  resize: vertical;
  font-size: 16px;
  line-height: 1.55;
  padding: 4px 2px 8px;
  outline: none;
  box-shadow: none;
}
.ow-create-composer .ow-create-dd-summary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}
.ow-create-composer .ow-create-dd[open] > .ow-create-dd-summary {
  border-color: rgba(255, 255, 255, 0.45);
}
.ow-create-refs {
  margin: 0 0 8px;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ow-create-composer .ow-create-refs-head {
  margin: 4px 0 4px;
}
.ow-create-composer .ow-create-ref-add {
  min-height: 36px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.12);
}
.ow-create-refs-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 6px;
}
.ow-create-refs-label {
  font-size: 13px;
  font-weight: 600;
  color: #e8e8e8;
}
.ow-create-refs-hint {
  font-size: 12px;
  color: var(--openworld-muted, #888);
}
.ow-create-refs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ow-create-ref-add {
  appearance: none;
  min-height: var(--ow-touch, 44px);
  padding: 0 14px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #d8d8d8;
  font-size: 14px;
  cursor: pointer;
}
.ow-create-ref-add:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.ow-create-ref-add:disabled {
  opacity: 0.5;
  cursor: wait;
}
.ow-create-refs-chips {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ow-create-ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 36px;
  padding: 4px 8px 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #e8e8e8;
  font-size: 13px;
}
.ow-create-ref-chip.is-image img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.ow-create-ref-chip a {
  color: #c8c8c8;
  text-decoration: none;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ow-create-ref-chip a:hover {
  text-decoration: underline;
}
.ow-create-ref-chip-mark {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c8c8c8;
  opacity: 0.9;
}
.ow-create-ref-chip-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 2px;
  margin-left: 2px;
}
.ow-create-ref-chip-x:hover {
  color: #fff;
}
.ow-create-ref-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.ow-create-ref-url {
  flex: 1 1 180px;
  min-height: var(--ow-touch, 44px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: #f2f2f2;
  font-size: 15px;
  line-height: 1.4;
  padding: 10px 12px;
  outline: none;
  box-shadow: none;
}
.ow-create-ref-url::placeholder {
  color: var(--openworld-muted, #777);
}
.ow-create-ref-url:focus {
  border-color: rgba(255, 255, 255, 0.28);
}
.ow-create-ref-link-ok,
.ow-create-ref-link-cancel {
  appearance: none;
  min-height: var(--ow-touch, 44px);
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #eee;
  font-size: 14px;
  cursor: pointer;
}
.ow-create-ref-link-ok {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
}
.ow-create-ref-link-ok:hover,
.ow-create-ref-link-cancel:hover {
  color: #fff;
}
.ow-create-box-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding-top: 4px;
}
.ow-create-box-bar-spacer {
  flex: 1 1 12px;
  min-width: 8px;
}
.ow-create-count {
  font-size: 12px;
  color: var(--openworld-muted, #888);
}
.ow-create-submit {
  min-height: var(--ow-touch);
  padding: 0 18px;
}
.ow-create-hints {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ow-create-hint {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ow-create-hint:hover {
  background: rgba(255, 255, 255, 0.05);
}
.ow-create-hint-title {
  font-size: 14px;
  font-weight: 600;
  color: #eee;
}
.ow-create-hint-desc {
  font-size: 13px;
  color: var(--openworld-muted, #888);
  line-height: 1.4;
}
@media (max-width: 640px) {
  .ow-create-stage {
    margin-top: 16px;
  }
  .ow-create-box-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 8px;
    align-items: center;
  }
  .ow-create-submit {
    grid-column: 1 / -1;
    width: 100%;
    order: -1;
  }
  .ow-create-axes-wrap {
    grid-column: 1 / -1;
    width: 100%;
  }
  .ow-create-dd-row {
    width: 100%;
  }
  .ow-create-box-bar-spacer {
    display: none;
  }
  .ow-create-count {
    grid-column: 2;
    justify-self: end;
  }
}

/* Shared AI cover modal (my-worlds + create via project-card.js) */
.ow-modal[hidden] {
  display: none !important;
}
.ow-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ow-modal-panel {
  background: #1C1C1C;
  color: #eee;
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.ow-cover-ai-prompt {
  width: 100%;
  margin: 8px 0 16px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #141414;
  color: #eee;
  resize: vertical;
}
.ow-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.ow-cover-studio-preview {
  margin: 12px 0 16px;
  border-radius: 10px;
  overflow: hidden;
  background: #141414;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ow-cover-studio-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ow-cover-studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.ow-cover-studio-actions .tp-btn-4,
.ow-cover-studio-actions .tp-btn-gradient {
  flex: 1 1 120px;
  min-height: 40px;
}



/* Hub shell page polish  flush to rail (no top gutter / no left dead strip) */
body.ow-hub-shell .ow-site-main,
body.ow-hub-shell > main {
  background: #141414;
  padding: 0;
}
/* All hub pages share home charcoal  kill leftover navy/blue theme plates */
body.ow-hub-shell .ow-page,
body.ow-hub-shell .ow-worlds-page,
body.ow-hub-shell .login__area,
body.ow-hub-shell .register__area {
  background-color: #141414;
}
body.ow-hub-shell .ow-page {
  padding-top: 0;
  padding-bottom: 48px;
}
body.ow-hub-shell .ow-page .container,
body.ow-hub-shell .container {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 24px;
  padding-right: 24px;
}
body.ow-hub-shell .ow-page > .container {
  padding-top: 20px;
}
/* Home: bleed hero under rail so left edge is one continuous deep grey */
body.ow-hub-shell[data-page="home"] .ow-hero--bleed {
  padding: 0;
  margin: 0 0 0 calc(0px - var(--ow-hub-rail-width));
  width: calc(100% + var(--ow-hub-rail-width));
  max-width: none;
  background: #141414;
}
/* Home rail = same opaque plate as projects/assets/worlds (no transparent fork). */
body.ow-hub-shell[data-page="home"] .ow-hero-bleed-media,
body.ow-hub-shell[data-page="home"] .ow-hero-bleed-media .ow-hero-visual,
body.ow-hub-shell[data-page="home"] .ow-hero-bleed-media .ow-hero-shard {
  left: 0;
  right: 0;
  background-color: #141414;
}
body.ow-hub-shell[data-page="home"] .ow-hero--bleed > .container,
body.ow-hub-shell[data-page="home"] .ow-hero-bleed-copy {
  max-width: none;
  width: 100%;
  margin: 0;
  /* Extra left inset because hero bleeds under the rail */
  padding-left: calc(var(--ow-hub-rail-width) + 24px);
  padding-right: 24px;
}
/* Assets: PC Hub media chips + search + project (Desk/Hub parity) */
.ow-assets-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.ow-assets-toolbar .ow-projects-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.ow-assets-toolbar .ow-projects-select {
  flex: 0 1 188px;
  min-width: 140px;
  max-width: 240px;
}
.ow-assets-media-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ow-assets-media-chips .ow-kind-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
}
body.ow-hub-shell .ow-assets-media-chips .ow-kind-chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(232, 236, 242, 0.72);
}
body.ow-hub-shell .ow-assets-media-chips .ow-kind-chip.is-on {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
body.ow-hub-shell[data-page="home"] .ow-home-create > .container,
body.ow-hub-shell[data-page="home"] .ow-kind-tiles > .container,
body.ow-hub-shell[data-page="home"] .ow-shelf > .container,
body.ow-hub-shell[data-page="home"] section > .container {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 24px;
  padding-right: 24px;
}
body.ow-hub-shell .ow-card {
  background: var(--ow-hub-panel);
  border: 1px solid var(--ow-hub-line);
  border-radius: 14px;
  box-shadow: none;
}
body.ow-hub-shell .ow-kicker {
  color: #A8A8A8;
  letter-spacing: 0.04em;
}
body.ow-hub-shell .ow-lead,
body.ow-hub-shell .ow-hint,
body.ow-hub-shell .ow-muted {
  color: var(--ow-hub-text);
}
body.ow-hub-shell footer,
body.ow-hub-shell .footer__area {
  background: #1C1C1C;
  border-top: 1px solid var(--ow-hub-line);
}
/* Fixed floats must stay in the content column  never cover rail foot. */
body.ow-hub-shell .ow-create-float.is-expanded {
  width: min(420px, calc(100vw - var(--ow-hub-rail-width) - 32px));
}
body.ow-hub-shell .ow-create-resume-banner {
  left: calc(50% + (var(--ow-hub-rail-width) / 2));
}
body.ow-hub-shell .ow-create-right-tabs {
  background: rgba(20, 20, 20, 0.96);
}
body.ow-hub-shell .ow-create-canvas,
body.ow-hub-shell .ow-create-play {
  background: #141414;
}
body.ow-hub-shell[data-page="create"] .ow-copilot-float {
  /* keep above board, clear of bottom toolbar */
  pointer-events: auto;
}
@media (max-width: 991.98px) {
  body.ow-hub-shell .ow-page {
    padding-top: 0;
  }
  body.ow-hub-shell .ow-page > .container {
    padding-top: 56px; /* clear mobile menu fab */
    padding-left: 16px;
    padding-right: 16px;
  }
  body.ow-hub-shell .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  body.ow-hub-shell[data-page="create"] .ow-page,
  body.ow-hub-shell[data-page="create"] .ow-create-page {
    padding-top: 0;
  }
  body.ow-hub-shell[data-page="create"] .ow-page > .container {
    padding-top: 0;
  }
}



/* Offcanvas matches Hub rail */
body.ow-hub-shell .offcanvas__wrapper,
body.ow-hub-shell .offcanvas__content {
  background: var(--ow-hub-bg, #141414);
}
body.ow-hub-shell .ow-offcanvas-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  margin: 2px 0;
  border-radius: 10px;
  color: var(--ow-hub-text, rgba(232,236,242,.78));
  text-decoration: none;
}
body.ow-hub-shell .ow-offcanvas-nav a.is-active,
body.ow-hub-shell .ow-offcanvas-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}
body.ow-hub-shell .create-progress-float,
body.ow-hub-shell .ow-create-progress-float {
  /* Below hub rail (2600) so progress chrome never covers  / Luton. */
  z-index: 1400;
  max-width: calc(100vw - var(--ow-hub-rail-width) - 24px);
}

/*  LibTV auth (login / register / forgot)  */
body.ow-auth-page .ow-hub-rail,
body.ow-auth-page .ow-hub-menu-fab,
body.ow-auth-page #openworld-shell-sidebar,
body.ow-auth-page #openworld-shell-offcanvas,
body.ow-auth-page .offcanvas__area,
body.ow-auth-page #openworld-shell-footer,
body.ow-auth-page footer,
body.ow-auth-page .footer__area,
body.ow-auth-page .footer__copyright {
  display: none !important;
}
body.ow-auth-page .ow-site-main {
  margin-left: 0 !important;
}
body.ow-auth-page .ow-site-main,
body.ow-auth-page > main.ow-auth-main {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
}
.ow-auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #141414;
  box-sizing: border-box;
}
.ow-auth-libtv.login__area {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 !important;
  background: transparent !important;
}
.ow-auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  width: 100%;
  min-height: min(560px, 86vh);
  border-radius: 20px;
  overflow: hidden;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.ow-auth-promo {
  position: relative;
  min-height: 280px;
  background: #0a0a0a;
}
.ow-auth-promo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ow-auth-promo-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 55%, rgba(0, 0, 0, 0.92) 100%);
}
.ow-auth-promo-kicker {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #fff !important;
}
.ow-auth-promo-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72) !important;
}
.ow-auth-panel.login__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  margin: 0 !important;
  padding: 28px 32px 32px !important;
  max-width: none !important;
  width: 100% !important;
  background: #161616 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: auto !important;
}
.ow-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #ededed !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.ow-auth-brand img {
  display: block;
  border-radius: 6px;
}
.ow-auth-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff !important;
}
.ow-auth-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(232, 236, 242, 0.62) !important;
}
.ow-auth-sub a {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ow-auth-libtv .login__top {
  display: none;
}
.ow-auth-libtv .login__input input,
.ow-auth-libtv .login__input textarea {
  background: #1f1f1f !important;
  border: 1px solid #333 !important;
  border-radius: 10px !important;
  color: #ededed !important;
}
.ow-auth-libtv .login__input input:focus,
.ow-auth-libtv .login__input textarea:focus {
  border-color: rgba(255, 255, 255, 0.35) !important;
  outline: none;
}
.ow-auth-primary,
.ow-auth-libtv .ow-auth-primary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: #fff !important;
  color: #111 !important;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none !important;
}
.ow-auth-primary:hover {
  background: #f2f2f2 !important;
  color: #000 !important;
}
.ow-auth-libtv .login__register-hint {
  font-size: 13px;
  color: rgba(232, 236, 242, 0.55) !important;
}
.ow-auth-libtv .login__register-hint a {
  color: #fff !important;
}
.ow-auth-alts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ow-auth-alt {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(232, 236, 242, 0.78);
  font-size: 12px;
  cursor: pointer;
}
.ow-auth-alt .ow-oauth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ow-auth-alt:hover {
  color: #fff;
}
.ow-auth-alt:hover .ow-oauth-icon {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.2);
}
.ow-auth-libtv .ow-oauth-wechat,
.ow-auth-libtv .ow-oauth-google {
  display: none;
}
@media (max-width: 820px) {
  .ow-auth-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .ow-auth-promo {
    min-height: 180px;
    max-height: 220px;
  }
  .ow-auth-panel.login__wrapper {
    padding: 22px 18px 28px !important;
  }
  .ow-auth-title {
    font-size: 22px;
  }
}

/*  LibTV create canvas chrome polish  */
.ow-create-page.is-libtv .ow-create-canvas-stage,
.ow-create-canvas-stage {
  background: #0e0e0e;
}
.ow-create-page.is-libtv .ow-canvas-viewport,
.ow-create-canvas-stage .ow-canvas-viewport {
  background-color: #0e0e0e !important;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0) !important;
  background-size: 20px 20px !important;
}
.ow-create-page.is-libtv .ow-create-canvas,
.ow-create-canvas-stage .ow-create-canvas {
  background: #0e0e0e !important;
}
.ow-create-page.is-libtv .ow-create-right-tabs,
.ow-create-canvas-stage .ow-create-right-tabs {
  background: #141414;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
/* LibTV top-bar action chips — soft hover, match PC DeskChrome head. */
.ow-create-page.is-libtv .ow-create-play-tab.is-ready,
.ow-create-canvas-stage .ow-create-play-tab.is-ready {
  /* Godot StyleDeskHeadPlay — soft white icon chip */
  border-radius: 8px;
  border: 0;
  background: #e8e8e8;
  color: #141414;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Nested .ow-hub-ico defaults to light ink — force black on the light play chip. */
.ow-create-page.is-libtv .ow-create-play-tab.is-ready .ow-hub-ico-host,
.ow-create-page.is-libtv .ow-create-play-tab.is-ready .ow-hub-ico,
.ow-create-canvas-stage .ow-create-play-tab.is-ready .ow-hub-ico-host,
.ow-create-canvas-stage .ow-create-play-tab.is-ready .ow-hub-ico {
  color: #141414;
  opacity: 1;
  filter: none;
}
.ow-create-page.is-libtv .ow-create-play-tab.is-ready:hover {
  background: #fff;
}
.ow-create-page.is-libtv .ow-create-play-tab.is-ready.is-on {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.ow-create-page.is-libtv .ow-create-right-tabs .ow-copilot-float-open,
.ow-create-page.is-libtv .ow-create-save-btn.is-dirty {
  color: #f0f0f0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.ow-create-page.is-libtv .ow-create-tl-btn {
  border-radius: 8px;
  border: 0;
  background: transparent;
  min-width: 32px;
  min-height: 32px;
  padding: 0 8px;
  color: rgba(232, 232, 232, 0.78);
}
.ow-create-page.is-libtv .ow-create-right-tabs .ow-copilot-float-open:hover,
.ow-create-page.is-libtv .ow-create-tl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ow-create-page.is-libtv .ow-copilot-float {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.12);
}
.ow-create-page.is-libtv .ow-copilot-float-head {
  background: #1a1a1a;
}
.ow-create-page.is-libtv .ow-canvas-card {
  border-radius: 12px;
  border: 0 solid transparent;
  background: transparent;
  box-shadow: none;
}
.ow-create-page.is-libtv .ow-canvas-card.is-selected {
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: none;
}
/* OhMyGame plate — must win over any later transparent card rules */
.ow-create-page.is-libtv .ow-canvas-card-body,
.ow-create-canvas-stage .ow-canvas-card-body {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
}
.ow-create-page.is-libtv .ow-canvas-card-empty,
.ow-create-canvas-stage .ow-canvas-card-empty {
  background: #1a1a1a !important;
}
.ow-create-page.is-libtv .ow-canvas-toolbar,
.ow-create-page.is-libtv .ow-canvas-zoombar {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(26, 26, 26, 0.96);
  /* No backdrop-filter — child .ow-canvas-add-menu text/icons blur in Electron. */
}
/* LibTV desktop: zoom / 节点树 strip sits right of ProjectRail Me (PC CanvasHost parity). */
.ow-create-page.is-libtv .ow-canvas-zoombar {
  left: 10px;
  right: auto;
  bottom: 12px;
}
.ow-create-page.is-libtv .ow-canvas-empty {
  color: rgba(232, 236, 242, 0.5);
}
.ow-create-page.is-libtv .ow-create-back-projects {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.ow-create-page.is-libtv .ow-create-right-tab.is-on {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.ow-create-page.is-libtv .ow-canvas-composer {
  background: rgba(40, 40, 40, 0.98);
}

/* LibTV media confirm + usage in create thread */
.ow-libtv-media-gate,
.ow-libtv-confirm-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(28, 28, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ow-libtv-confirm-title,
.ow-libtv-anchors,
.ow-libtv-pending,
.ow-libtv-batch-line,
.ow-libtv-running,
.ow-libtv-confirm-cost {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(232, 232, 232, 0.88);
}
.ow-libtv-running-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ow-libtv-running {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ow-libtv-job-progress .ow-libtv-running {
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  white-space: normal;
}
.ow-libtv-job-progress .ow-libtv-job-lead.ow-copilot-live-step-inline {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
}
.ow-libtv-job-progress .ow-libtv-job-pct {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.92);
}
.ow-libtv-job-lead,
.ow-libtv-job-stage {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(200, 200, 200, 0.78);
}
.ow-libtv-job-stage {
  color: rgba(200, 200, 200, 0.72);
}
.ow-libtv-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ow-libtv-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5a5a5a, #e8e8e8, #9a9a9a);
  transition: width 0.25s ease;
}
.ow-libtv-stop {
  appearance: none;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  cursor: pointer;
}
.ow-libtv-stop:hover {
  background: rgba(255, 255, 255, 0.1);
}
.ow-libtv-confirm-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(245, 247, 250, 0.95);
}
.ow-libtv-confirm-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(200, 200, 200, 0.65);
}
.ow-libtv-confirm-reason {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(232, 232, 232, 0.88);
}
.ow-libtv-confirm-card-id {
  margin: 4px 0 0;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ow-boot-checklist {
  margin: 10px 0 0;
  padding-left: 1.15em;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(200, 200, 200, 0.78);
}
.ow-boot-checklist li + li {
  margin-top: 2px;
}
.ow-process-step {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: space-between;
}
.ow-process-step .ow-step-jump {
  flex: 0 0 auto;
  font-size: 12px;
}
.ow-libtv-prompts-toggle {
  appearance: none;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ow-libtv-prompt-list {
  margin: 0;
  padding-left: 1.1em;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(232, 236, 242, 0.72);
}
.ow-libtv-prompt-list li {
  margin: 4px 0;
}
.ow-libtv-prompt-cat {
  color: rgba(200, 210, 230, 0.95);
  font-weight: 600;
}
/* LibTV auto-confirm: lock/unlock toggle (off=需确认, on=自动确认). */
.ow-composer-auto,
.ow-libtv-auto-confirm {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(232, 236, 242, 0.92);
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}
.ow-composer-auto:hover,
.ow-libtv-auto-confirm:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}
.ow-composer-auto.is-on,
.ow-libtv-auto-confirm.is-on {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.ow-composer-auto-ico,
.ow-libtv-auto-confirm-ico {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ow-composer-auto-ico svg,
.ow-libtv-auto-confirm-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}
.ow-libtv-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ow-libtv-batch-errors {
  margin: 0;
  padding-left: 1.1em;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 180, 160, 0.92);
}
.ow-libtv-batch-errors li {
  margin: 2px 0;
}
.ow-libtv-cancel,
.ow-libtv-continue {
  appearance: none;
  align-self: flex-start;
  min-height: 36px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ow-libtv-cancel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(232, 236, 242, 0.88);
}
.ow-libtv-cancel:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
.ow-libtv-continue {
  border: 0;
  background: #E8E8E8;
  color: #141414;
}
.ow-libtv-continue:hover {
  background: #FFFFFF;
}
.ow-libtv-thumbs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ow-libtv-thumbs {
  position: relative;
  display: inline-flex;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ow-libtv-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ow-libtv-plus {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.ow-libtv-text-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ow-libtv-text-bubble {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ow-libtv-text-bubble-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(200, 200, 200, 0.9);
  margin-bottom: 4px;
}
.ow-libtv-text-bubble-body {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(232, 232, 232, 0.9);
  white-space: pre-wrap;
}
.ow-libtv-vfx-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ow-libtv-vfx-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 232, 232, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.ow-libtv-usage {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(200, 200, 200, 0.55);
}
.ow-libtv-usage strong {
  color: rgba(232, 232, 232, 0.9);
  font-weight: 600;
}
.ow-libtv-bolt {
  margin: 0 2px;
}


/*  LibTV-shaped commerce (profile console)  */
.ow-commerce-balance {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.ow-commerce-balance-main .ops-num {
  margin: 6px 0 4px;
}
.ow-commerce-balance-side {
  flex: 1 1 220px;
  min-width: 180px;
}
.ow-commerce-section {
  margin: 0 0 36px;
}
.ow-commerce-head {
  margin-bottom: 14px;
}
.ow-commerce-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 650;
}
.ow-commerce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.ow-commerce-card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px 16px 14px;
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
}
.ow-commerce-card.is-free {
  opacity: 0.92;
}
.ow-commerce-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}
.ow-commerce-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ow-commerce-price span {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 2px;
}
.ow-commerce-grant {
  margin: 0;
  font-size: 0.92rem;
  color: var(--openworld-muted, #c8c8c8);
}
.ow-commerce-perks {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.85rem;
  color: var(--openworld-muted, #aaa);
  flex: 1;
}
.ow-commerce-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: var(--ow-hub-text-strong, #ededed);
}
.ow-commerce-card .ow-commerce-buy {
  margin-top: auto;
  width: 100%;
}

/*  Billing pages (LibTV Me  VI soft-white, no blue)  */
.ow-bill-page .container {
  max-width: 980px;
}
.ow-bill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 0 0 20px;
}
.ow-bill-nav-pills {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.ow-bill-nav-pills a {
  border: 0;
  background: transparent;
  color: var(--openworld-muted, #c8c8c8);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.ow-bill-nav-pills a.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.ow-bill-nav-back {
  margin-left: auto;
  color: var(--openworld-muted, #c8c8c8);
  font-size: 0.88rem;
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 6px 4px;
}
.ow-bill-nav-back:hover {
  color: #fff;
}
.ow-bill-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.ow-bill-hero h1 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ow-bill-hero .ow-muted {
  margin: 0;
  max-width: 42rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.ow-bill-range-pills {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ow-bill-range-pills button {
  border: 0;
  background: transparent;
  color: var(--openworld-muted, #aaa);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 36px;
  font-size: 0.88rem;
  cursor: pointer;
}
.ow-bill-range-pills button.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.ow-bill-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.ow-bill-stat {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ow-radius-sm, 12px);
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.ow-bill-stat-label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: #8f8f8f;
}
.ow-bill-stat-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.ow-bill-stat-value {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ow-bill-topup {
  border: 0;
  background: #f3f3f3;
  color: #111;
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 32px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
}
.ow-bill-topup:hover {
  background: #fff;
}
.ow-bill-section {
  margin-bottom: 22px;
}
.ow-bill-section h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 650;
}
.ow-bill-models {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ow-bill-model {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ow-radius-sm, 12px);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
}
.ow-bill-model-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ow-bill-model-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}
.ow-bill-model-titles {
  flex: 1 1 auto;
  min-width: 0;
}
.ow-bill-model-titles strong {
  display: block;
  font-size: 0.98rem;
}
.ow-bill-model-titles span {
  color: #8f8f8f;
  font-size: 0.8rem;
}
.ow-bill-model-nums {
  text-align: right;
  flex: 0 0 auto;
}
.ow-bill-model-nums strong {
  display: block;
  font-size: 0.98rem;
}
.ow-bill-model-nums span {
  color: #8f8f8f;
  font-size: 0.8rem;
}
.ow-bill-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.ow-bill-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.55);
}
.ow-bill-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ow-radius-sm, 12px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.03);
}
.ow-bill-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ow-bill-table th,
.ow-bill-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.ow-bill-table th {
  color: #8f8f8f;
  font-weight: 500;
}
.ow-bill-table tbody tr:last-child td {
  border-bottom: 0;
}
.ow-bill-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}
.ow-bill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ow-bill-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #888;
}
.ow-bill-status.is-success::before { background: #3ecf8e; }
.ow-bill-status.is-pending::before,
.ow-bill-status.is-created::before { background: #e6b84d; }
.ow-bill-status.is-cancelled::before,
.ow-bill-status.is-failed::before { background: #888; }
.ow-bill-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
}
@media (max-width: 900px) {
  .ow-bill-summary {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .ow-bill-summary {
    grid-template-columns: 1fr;
  }
  .ow-bill-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .ow-bill-nav-pills {
    width: 100%;
  }
  .ow-bill-nav-back {
    margin-left: 0;
    align-self: flex-start;
  }
  .ow-bill-hero {
    flex-direction: column;
  }
  .ow-bill-hero h1 {
    font-size: 1.35rem;
  }
  .ow-bill-range-pills {
    width: 100%;
    justify-content: stretch;
  }
  .ow-bill-range-pills button {
    flex: 1 1 0;
  }
  .ow-bill-model-head {
    flex-wrap: wrap;
  }
  .ow-bill-model-nums {
    width: 100%;
    text-align: left;
    padding-left: 38px;
  }
}

/*  LibTV-shaped auth sheet  */
body.ow-auth-sheet-open {
  overflow: hidden;
}
.ow-auth-sheet[hidden] {
  display: none !important;
}
.ow-auth-sheet {
  position: fixed;
  inset: 0;
  z-index: 12100;
}
.ow-auth-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.ow-auth-sheet-panel {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  margin: 12vh auto 0;
  background: var(--ow-hub-panel, #1C1C1C);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
}
.ow-auth-sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
}
.ow-auth-sheet-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
}
.ow-auth-sheet-lead {
  margin: 0 0 16px;
  font-size: 13px;
}
.ow-auth-sheet-label {
  display: block;
  margin: 0 0 12px;
  font-size: 13px;
  color: #c8c8c8;
}
.ow-auth-sheet-label input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding: 10px 12px;
}
.ow-auth-sheet-row {
  margin: 0 0 14px;
  font-size: 12px;
  text-align: right;
}
.ow-auth-sheet-hint {
  margin: 14px 0 0;
  font-size: 13px;
}
.ow-hub-rail-token {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #ddd;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}
.ow-hub-rail-token[hidden] {
  display: none !important;
}
.ow-hub-rail-token strong {
  color: #fff;
  font-weight: 650;
}
.ow-offcanvas-nav a.is-secondary {
  font-size: 13px;
  font-weight: 400;
  color: rgba(200, 200, 200, 0.65);
}
.ow-offcanvas-token {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #ddd;
  font-size: 13px;
  cursor: pointer;
}
.ow-offcanvas-token[hidden],
.ow-offcanvas-token.hide {
  display: none !important;
}
.ow-offcanvas-token strong {
  color: #fff;
  font-weight: 650;
}

/*  LibTV-shaped commerce sheet (site-wide)  */
.ow-hub-rail-commerce {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Same horizontal inset as foot / token chip  no extra 10px that shrank CTAs */
  padding: 0 0 8px;
  width: 100%;
  box-sizing: border-box;
}
.ow-hub-rail-commerce-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #e8e8e8;
  text-decoration: none;
  cursor: pointer;
}
.ow-hub-rail-commerce-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}
.ow-hub-rail-commerce-btn.is-accent {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
}
body.ow-commerce-sheet-open {
  overflow: hidden;
}
.ow-commerce-sheet[hidden] {
  display: none !important;
}
.ow-commerce-sheet {
  position: fixed;
  inset: 0;
  z-index: 12000;
}
.ow-commerce-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.ow-commerce-sheet-panel {
  position: relative;
  margin: 0 auto;
  max-width: 960px;
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--ow-hub-panel, #1C1C1C);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 0 16px 16px;
  padding: 16px 18px 20px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
}
.ow-commerce-sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.ow-commerce-sheet-tabs {
  display: flex;
  gap: 6px;
  flex: 1;
}
.ow-commerce-sheet-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #b8b8b8;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.ow-commerce-sheet-tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}
.ow-commerce-sheet-close {
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.ow-commerce-sheet-lead {
  margin: 0 0 10px;
  font-size: 13px;
}
.ow-commerce-sheet-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 14px;
  font-size: 14px;
}
.ow-commerce-sheet-pay {
  margin-top: 16px;
  min-height: 24px;
}
.ow-commerce-sheet-pay .ow-qr img {
  max-width: 220px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.ow-commerce-sheet-foot {
  margin: 16px 0 0;
  font-size: 12px;
}
@media (max-width: 991.98px) {
  .ow-commerce-sheet-panel {
    max-width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }
}
.ow-create-token-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--openworld-muted, #c8c8c8);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.ow-create-token-chip:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.ow-create-token-chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/*  LibTV mobile shell polish (hub pages)  */
@media (max-width: 991.98px) {
  body.ow-hub-shell {
    --ow-touch: 44px;
  }
  body.ow-hub-shell .ow-page > .container {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
  body.ow-hub-shell .ow-hub-card-grid,
  body.ow-hub-shell .ow-worlds-grid,
  body.ow-hub-shell .ow-assets-grid,
  body.ow-hub-shell .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)) !important;
    gap: 12px !important;
  }
  body.ow-hub-shell .ow-assets-toolbar,
  body.ow-hub-shell .ow-worlds-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  body.ow-hub-shell .ow-assets-media-chips {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  body.ow-hub-shell .ow-assets-media-chips .ow-kind-chip,
  body.ow-hub-shell .ow-offcanvas-nav a,
  body.ow-hub-shell .ow-hub-rail-link {
    min-height: var(--ow-touch);
  }
  body.ow-hub-shell .create-progress-float,
  body.ow-hub-shell .ow-create-progress-float {
    left: 12px !important;
    right: 12px !important;
    max-width: none;
    width: auto;
  }
  body.ow-hub-shell[data-page="create"] .create-progress-float,
  body.ow-hub-shell[data-page="create"] .ow-create-progress-float {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}


/*  Me / Settings / Providers (LibTV UX)  */
:root {
  --ow-me-radius: var(--ow-radius-sm, 12px);
  --ow-me-radius-sm: 10px;
  /* VI: neutral accent only  never invent blue. See docs/VI.md */
  --ow-me-accent: var(--ow-hub-accent-soft, rgba(255, 255, 255, 0.08));
  --ow-me-accent-border: rgba(255, 255, 255, 0.18);
  --ow-me-accent-text: var(--ow-hub-text-strong, #ededed);
  --ow-touch: 44px;
}
.ow-me-page-head {
  margin-bottom: 20px;
}
.ow-me-page-head h1 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ow-me-page-head .ow-lead {
  margin: 0;
  max-width: 40rem;
}
/* Profile / 我 — LibTV shell: guest strip + soft loading (never blank). */
.ow-me-guest {
  margin: 0 0 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ow-me-guest[hidden] {
  display: none !important;
}
.ow-me-guest p {
  margin: 0;
  color: var(--openworld-mute, #c8c8c8);
  font-size: 14px;
}
.ow-me-hero.is-loading .ops-num {
  opacity: 0.42;
  letter-spacing: 0.04em;
}
.ow-me-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  grid-template-areas:
    "identity balance"
    "ctas     balance";
  gap: 16px 24px;
  padding: 20px 22px;
  border-radius: var(--ow-me-radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  margin-bottom: 22px;
  align-items: start;
}
.ow-me-hero-identity,
.ow-me-hero-top {
  grid-area: identity;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.ow-me-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 650;
  color: #fff;
  overflow: hidden;
  flex: 0 0 auto;
}
.ow-me-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ow-me-hero-who h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 650;
}
.ow-me-hero-who p {
  margin: 0;
  font-size: 13px;
  color: var(--ow-hub-text, #c8c8c8);
}
.ow-me-hero-balance {
  grid-area: balance;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--ow-me-radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.18);
  min-height: 100%;
  box-sizing: border-box;
}
.ow-me-balance-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ow-me-balance-link {
  font-size: 12px;
  color: var(--ow-hub-text, #c8c8c8);
  text-decoration: none;
  white-space: nowrap;
}
.ow-me-balance-link:hover {
  color: #fff;
}
.ow-me-hero-balance .ops-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 2px 0;
}
.ow-me-hero-balance .ow-muted {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}
.ow-me-hero-ctas {
  grid-area: ctas;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.ow-me-hero-ctas .ow-me-cta {
  flex: 1 1 140px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ow-me-radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #e8e8e8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 10px 14px;
}
.ow-me-hero-ctas .ow-me-cta.is-accent {
  border-color: transparent;
  background: #f3f3f3;
  color: #111;
}
.ow-me-hero-ctas .ow-me-cta.is-accent:hover {
  background: #fff;
  color: #111;
  border-color: transparent;
}
.ow-me-hero-ctas .ow-me-cta:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.ow-me-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.ow-me-storage-over,
.ow-me-hero-balance .ow-me-storage-over {
  color: #e8b4b4;
}
.ow-settings-uid {
  font-size: 13px;
  color: var(--ow-hub-text, #c8c8c8);
  word-break: break-all;
}
.ow-settings-avatar-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ow-settings-avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ow-settings-avatar-pick {
  cursor: pointer;
  margin: 0;
}
.ow-settings-avatar-preview,
.ow-settings-avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.ow-me-quick a,
.ow-me-quick button {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: var(--ow-me-radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: #ededed;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.ow-export-deps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ow-export-deps-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14px;
}
.ow-export-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e06060;
  flex: 0 0 10px;
}
.ow-export-dot.is-ok {
  background: #4caf82;
}
.ow-me-quick-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  line-height: 1;
}
.ow-me-quick-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ow-me-quick a .ow-me-quick-copy > span,
.ow-me-quick .ow-me-quick-usage .ow-me-quick-copy > span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ow-hub-text, #c8c8c8);
}
.ow-me-quick a:hover,
.ow-me-quick button:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* Settings chrome — LibTV left nav / right panel */
.ow-settings-page-head {
  margin-bottom: 18px;
}
.ow-settings-page-head h1 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ow-settings-page-head .ow-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 0.92rem;
  color: var(--ow-hub-text, #c8c8c8);
}
.ow-settings-wrap .ow-settings-layout,
.ow-settings-shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ow-settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 12px;
  padding: 6px;
  border-radius: var(--ow-me-radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.ow-settings-tab {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(232, 236, 242, 0.72);
  text-align: left;
  padding: 10px 14px;
  min-height: 40px;
  border-radius: var(--ow-me-radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.ow-settings-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.ow-settings-tab.is-active {
  color: #fff;
  background: var(--ow-me-accent);
  border-color: var(--ow-me-accent-border);
}
.ow-settings-panels {
  min-width: 0;
}
.ow-settings-panel {
  border-radius: var(--ow-me-radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  padding: 8px 20px 16px;
}
.ow-settings-panel[hidden] { display: none !important; }
.ow-settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  min-height: 52px;
}
.ow-settings-row:last-of-type { border-bottom: 0; }
.ow-settings-row-copy {
  flex: 1 1 180px;
  min-width: 0;
}
.ow-settings-row-lab {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #ededed;
}
.ow-settings-row-hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ow-hub-text, #c8c8c8);
}
.ow-settings-control {
  flex: 0 1 260px;
  min-width: 160px;
  max-width: 100%;
}
.ow-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  margin-top: 4px;
}
.ow-settings-actions .ow-me-cta {
  flex: 0 1 auto;
  min-width: 120px;
}
.ow-settings-msg {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ow-hub-text, #c8c8c8);
}
.ow-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}
.ow-settings-logout { color: #f66 !important; }
.ow-usage-billing-panel.is-embed {
  margin-top: 4px;
  padding: 18px 20px;
  border-radius: var(--ow-me-radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}
.ow-usage-billing-panel.is-embed .ow-bill-hero h2,
.ow-usage-billing-panel.is-embed .ow-bill-hero .h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 650;
}

/* Providers */
.ow-providers-lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ow-hub-text, #c8c8c8);
}
.ow-providers-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ow-me-accent);
  border: 1px solid var(--ow-me-accent-border);
  color: var(--ow-me-accent-text);
  margin-bottom: 14px;
}
.ow-provider-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ow-me-radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.15);
}
.ow-provider-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 650;
}
.ow-provider-seg {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.ow-provider-seg button {
  border: 0;
  background: transparent;
  color: #b8b8b8;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 999px;
  cursor: pointer;
}
.ow-provider-seg button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.ow-provider-fields {
  display: grid;
  gap: 10px;
}
.ow-provider-fields[hidden] { display: none !important; }
.ow-provider-fields label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--ow-hub-text, #c8c8c8);
}
.ow-provider-fields input,
.ow-provider-fields select {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: #ededed;
  padding: 8px 12px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}
.ow-provider-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #999;
}
.ow-providers-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.ow-providers-actions button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
}

@media (max-width: 991.98px) {
  .ow-me-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "identity"
      "balance"
      "ctas";
    padding: 16px;
    gap: 14px;
  }
  .ow-me-hero-balance {
    min-height: 0;
  }
  .ow-me-hero-ctas .ow-me-cta {
    flex: 1 1 calc(50% - 5px);
  }
  .ow-me-quick {
    grid-template-columns: 1fr;
  }
  .ow-commerce-grid {
    grid-template-columns: 1fr;
  }
  .ow-commerce-card {
    min-height: 0;
  }
  .ow-settings-shell,
  .ow-settings-wrap .ow-settings-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ow-settings-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 8px 4px 10px;
    margin: 0 -4px;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(8px);
    gap: 6px;
  }
  .ow-settings-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: var(--ow-touch);
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
  }
  .ow-settings-tab.is-active {
    border-color: var(--ow-me-accent-border);
  }
  .ow-bill-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 8px 0 10px;
    margin-bottom: 14px;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(8px);
  }
  .ow-commerce-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-width: 100%;
    max-height: min(92vh, 900px);
    margin: 0;
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 560px) {
  .ow-me-hero-ctas .ow-me-cta {
    flex: 1 1 100%;
  }
  .ow-me-avatar {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
  .ow-me-hero-who h1 {
    font-size: 1.2rem;
  }
  .ow-me-hero-balance .ops-num {
    font-size: 1.7rem;
  }
}

.ow-provider-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.ow-provider-tile {
  min-height: 44px;
  min-width: 108px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #e8e8e8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ow-provider-tile:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.ow-provider-tile.is-active {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.ow-provider-tile.is-soon {
  opacity: 0.72;
  font-weight: 500;
}
.ow-provider-tile.is-soon .ow-provider-soon {
  margin-left: 2px;
  opacity: 0.7;
}

/* Compact tiles under home/create brief + canvas node composer */
.ow-home-create-box > .ow-provider-tiles,
.ow-create-box > .ow-provider-tiles,
.ow-canvas-composer > .ow-provider-tiles {
  margin: 2px 0 8px;
  gap: 6px;
}
.ow-home-create-box > .ow-provider-tiles .ow-provider-tile,
.ow-create-box > .ow-provider-tiles .ow-provider-tile,
.ow-canvas-composer > .ow-provider-tiles .ow-provider-tile {
  min-height: 32px;
  min-width: 72px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

/* Settings  models: LibTV-shaped platform cards (no BYOK / no blue toggles) */
.ow-model-prov-lead {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ow-hub-text, #c8c8c8);
}
.ow-model-prov-sec {
  margin: 0 0 20px;
}
.ow-model-prov-sec-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #8f8f8f;
}
.ow-model-prov-sec-head strong {
  font-weight: 650;
  color: #c8c8c8;
}
.ow-model-prov-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ow-model-prov-card {
  display: flex;
  align-items: center;
  gap: 12px 14px;
  padding: 12px 14px;
  border-radius: var(--ow-me-radius-sm, 10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  min-height: 64px;
  box-sizing: border-box;
}
.ow-model-prov-card.is-default {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}
.ow-model-prov-card.is-soon {
  opacity: 0.78;
}
.ow-model-prov-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ededed;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.ow-model-prov-icon img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain;
  display: block;
  padding: 0;
  box-sizing: border-box;
}
.ow-model-prov-body {
  flex: 1 1 auto;
  min-width: 0;
}
.ow-model-prov-name {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 650;
  color: #ededed;
  line-height: 1.2;
}
.ow-model-prov-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ow-model-prov-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: #9a9a9a;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ow-model-prov-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}
.ow-model-prov-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: #111;
  background: #f3f3f3;
}
.ow-model-prov-set {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #e8e8e8;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ow-model-prov-set:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.ow-model-prov-soon-label {
  font-size: 12px;
  color: #8f8f8f;
  white-space: nowrap;
}
@media (max-width: 991.98px) {
  .ow-model-prov-card {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 14px;
  }
  .ow-model-prov-actions {
    width: 100%;
    margin-left: 0;
    padding-left: 54px;
    justify-content: flex-start;
  }
  .ow-model-prov-set {
    min-height: var(--ow-touch, 44px);
  }
}

/* LibTV cloud asset storage meter (my-assets). */
.ow-asset-storage {
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 420px;
}
.ow-asset-storage-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 13px;
}
.ow-asset-storage-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ow-asset-storage-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.2s ease;
}
.ow-asset-storage-bar.is-warn {
  background: rgba(220, 180, 90, 0.85);
}
.ow-asset-storage-bar.is-full {
  background: rgba(200, 90, 90, 0.9);
}
.ow-asset-storage-hint {
  margin: 0;
  font-size: 12px;
}

/*  LibTV Style Square ( create / home) — titled group matches PC SettingsChrome.Group  */
.ow-create-style-toggle {
  align-self: flex-start;
  margin-top: 2px;
}
.ow-create-setup > .ow-style-square-group[hidden] {
  display: none !important;
}
.ow-style-square-group {
  margin-top: 14px;
  width: 100%;
}
.ow-style-square-group-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--openworld-text);
  opacity: 0.92;
}
.ow-style-square {
  margin-top: 0;
  width: 100%;
}
.ow-style-square-group .ow-style-square {
  margin-top: 0;
}
.ow-style-square-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.ow-style-square-title {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}
.ow-style-square-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ow-style-square-chip {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: inherit;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}
.ow-style-square-chip.is-on {
  background: rgba(255, 214, 102, 0.18);
  border-color: rgba(255, 214, 102, 0.55);
}
.ow-style-square-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.ow-style-square-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: min-content;
}
.ow-style-square-card {
  flex: 0 0 118px;
  width: 118px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(28, 28, 28, 0.92);
  border-radius: 10px;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ow-style-square-card.is-on {
  border-color: rgba(255, 214, 102, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.35);
}
.ow-style-square-cover {
  display: block;
  width: 100%;
  height: 72px;
  overflow: hidden;
  background: #262626;
}
.ow-style-square-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ow-style-square-name {
  display: block;
  padding: 6px 8px 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}
.ow-style-square-blurb {
  display: block;
  padding: 2px 8px 8px;
  font-size: 11px;
  opacity: 0.65;
  line-height: 1.3;
}

.ow-style-square-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.ow-style-square-tab {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
  color: inherit;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ow-style-square-tab.is-on {
  background: rgba(255, 214, 102, 0.2);
  border-color: rgba(255, 214, 102, 0.7);
}

/* R6 history lightbox — layout SSOT also in hub.css (desk polish) */
.ow-asset-history-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ow-design-md-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.ow-design-md-heading {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  border-radius: 6px;
  padding: 6px 10px;
  font: 600 13px/1.3 system-ui, sans-serif;
  margin-bottom: 4px;
}
.ow-design-md-body {
  min-height: 72px;
}
