/* One lobby frame for native Rhymix pages. Page contents keep their own styles. */
.tc-site-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.tc-site-shell > .tc-sidebar {
  position: relative;
  height: 100dvh;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #496269 transparent;
}
.tc-site-shell > .tc-sidebar > * { flex-shrink: 0; }
.tc-site-shell > .tc-workspace {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.tc-site-shell .tc-topbar {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}
.tc-site-shell .tc-page-outlet {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #496269 transparent;
  scroll-padding: 24px;
}
.tc-site-shell .tc-page-outlet:focus { outline: none; }
.tc-site-shell .tc-menu a[aria-current="page"] {
  background: #284c4b;
  color: #e2f9ef;
  box-shadow: inset 3px 0 #83d8bd;
}
.tc-site-shell .tc-live-site-menu a[aria-current="page"] {
  color: #9fe5cf;
  font-weight: 700;
}

/* Existing server and member templates retain their bootstrap, forms and dialogs. */
.tc-site-shell .tc-page-outlet .tcs-header,
.tc-site-shell .tc-page-outlet .tcs-skip,
.tc-site-shell .tc-member-shell > .site-header,
.tc-site-shell .tc-member-shell > .skip-link,
.tc-site-shell .tc-member-shell > .tc-member-footer,
.tc-site-shell .tc-shell-legacy .header_wrap,
.tc-site-shell .tc-shell-legacy .container > .footer,
.tc-site-shell .tc-shell-legacy > .container > .header,
.tc-site-shell .tc-shell-legacy > .container > .skip,
.tc-site-shell .tc-shell-legacy > .footer,
.tc-site-shell .tc-shell-legacy > .tc-unified-surface > .container > .header,
.tc-site-shell .tc-shell-legacy > .tc-unified-surface > .container > .skip,
.tc-site-shell .tc-shell-legacy > .tc-unified-surface > .footer {
  display: none !important;
}
.tc-site-shell .tc-page-outlet > .tcs-app,
.tc-site-shell .tc-page-outlet > .titancore-portal,
.tc-site-shell .tc-member-shell,
.tc-site-shell .tc-shell-legacy.tc-unified-surface,
.tc-site-shell .tc-shell-legacy .tc-unified-surface {
  min-height: 100%;
  width: 100%;
  max-width: none;
  margin: 0;
}
.tc-site-shell .tc-page-outlet .tcs-app,
.tc-site-shell .tc-page-outlet .titancore-portal {
  background: transparent !important;
}
.tc-site-shell .tc-page-outlet .tcs-main {
  width: 100%;
  max-width: 1440px;
  min-width: 0;
  margin: 0 auto;
  padding: 30px 44px 40px;
}
.tc-site-shell .tc-page-outlet .tcu-screen .tcs-main,
.tc-site-shell .tc-page-outlet .tcu-screen:has(.tc-cms-intro[open]) .tcs-main {
  height: auto;
  min-height: calc(100dvh - 87px);
  gap: 16px;
}
.tc-site-shell .tcu-detail-panel {
  min-height: 290px;
  flex: 1 0 auto;
}
.tc-site-shell .tcu-screen::before {
  position: absolute;
  inset: 0;
}
.tc-site-shell .tc-page-outlet .tc-cms-main {
  max-width: 1280px !important;
  padding: 32px 44px 48px !important;
}
.tc-site-shell .tc-member-main {
  max-width: 1440px;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 32px 44px 44px;
}
.tc-site-shell .tc-shell-account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px 44px 0;
  font-size: 12px;
}
.tc-site-shell .tc-shell-account-actions a {
  padding: 6px 12px;
  border: 1px solid var(--tc-line);
  border-radius: 8px;
  background: var(--tc-soft);
  color: var(--tc-ink);
}
.tc-site-shell .tc-member-native {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.tc-site-shell .tc-member-native .btnArea {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
  white-space: normal;
}
.tc-site-shell .tc-member-native .btnArea .btn {
  float: none;
  flex: 0 1 auto;
  margin: 0;
  border-radius: 8px;
  white-space: normal;
}
.tc-site-shell .tc-page-outlet :is(input, select, textarea, iframe, img) {
  max-width: 100%;
}
.tc-site-shell .tc-page-outlet :is(.tcs-table-scroll, .write_editor, .rx_ckeditor, .cke) {
  min-width: 0;
  max-width: 100%;
}
.tc-site-shell .tc-shell-legacy {
  padding: 30px 44px 44px;
  min-width: 0;
}
.tc-site-shell .tc-shell-legacy .container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.tc-site-shell .tc-shell-legacy .body {
  width: 100%;
  max-width: none;
  padding-top: 0;
}
.tc-site-shell .tc-shell-legacy .body > .content {
  width: 100%;
  min-width: 0;
  float: none;
}
.tc-site-shell .tc-shell-legacy .tc-board-local { padding: 0; }
.tc-site-shell .tc-shell-legacy .btnArea {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.tc-site-shell .tc-shell-legacy .btnArea .btn {
  height: auto;
  padding: 8px 12px;
  border: 1px solid var(--tc-line);
  border-radius: 8px;
  background: var(--tc-soft);
  color: var(--tc-ink);
  font-size: 12px;
  line-height: 1.5;
  box-shadow: none;
}

/* Older site-menu layouts keep their contents inside the same frame. Their old
   global CSS is not loaded; these styles apply only within the content outlet. */
.tc-site-shell .tc-shell-cyber .cyber-layout > .cyber-header,
.tc-site-shell .tc-shell-anime .anime-layout > .top-nav,
.tc-site-shell .tc-shell-anime > .anime-overlay { display: none; }
.tc-site-shell .tc-shell-cyber .cyber-layout {
  min-height: calc(100dvh - 151px);
  background: transparent;
  color: var(--tc-ink);
}
.tc-site-shell .tc-shell-cyber .cyber-main {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tc-site-shell .tc-shell-anime { position: relative; isolation: isolate; }
.tc-site-shell .tc-shell-anime .anime-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  height: auto;
  min-height: calc(100dvh - 151px);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: var(--tc-ink);
}
.tc-site-shell .tc-shell-anime .hero-area {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 24px;
  min-height: 390px;
}
.tc-site-shell .tc-shell-anime .hero-text {
  position: relative;
  z-index: 3;
  grid-column: 1;
  min-width: 0;
  padding-top: 28px;
}
.tc-site-shell .tc-shell-anime .hero-text h1 {
  margin: 0 0 18px;
  max-width: 620px;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.15;
  letter-spacing: -2px;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.tc-site-shell .tc-shell-anime .hero-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--tc-muted);
}
.tc-site-shell .tc-shell-anime .hero-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--tc-accent);
  color: var(--tc-accent-ink);
  font-weight: 700;
}
.tc-site-shell .tc-shell-anime .mini-cards {
  position: relative;
  z-index: 3;
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
.tc-site-shell .tc-shell-anime .mini-card {
  width: 170px;
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--tc-line);
  border-radius: 16px;
  background: var(--tc-surface);
}
.tc-site-shell .tc-shell-anime .mini-card img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
}
.tc-site-shell .tc-shell-anime .mini-card span {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}
.tc-site-shell .tc-shell-anime .main-character {
  position: absolute;
  z-index: 2;
  left: 46%;
  bottom: 0;
  width: min(300px, 30%);
  pointer-events: none;
}
.tc-site-shell .tc-shell-anime .main-character img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px #0005);
}
.tc-site-shell .tc-shell-anime .side-widget {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  align-content: start;
  gap: 18px;
}
.tc-site-shell .tc-shell-anime :is(.time-card, .weather-card) {
  padding: 20px;
  border: 1px solid var(--tc-line);
  border-radius: 16px;
  background: var(--tc-surface);
  text-align: center;
}
.tc-site-shell .tc-shell-anime :is(.time-card, .weather-card) strong {
  display: block;
  font-size: 30px;
}
.tc-site-shell .tc-shell-anime :is(.time-card .date, .weather-card span) {
  font-size: 12px;
  color: var(--tc-muted);
}
.tc-site-shell .tc-shell-anime .content-panel {
  position: relative;
  min-width: 0;
  height: auto;
  padding: 28px;
  border: 1px solid var(--tc-line);
  border-radius: 18px;
  background: var(--tc-surface);
}
.tc-site-shell .tc-shell-anime .quote-label {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--tc-muted);
}
.tc-site-shell .tc-shell-anime #dailyQuote {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--tc-ink);
}
.tc-site-shell .tc-shell-anime .content-inner {
  display: block;
  margin-top: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tc-site-shell .tc-shell-anime .welcome-toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  width: min(300px, calc(100% - 32px));
  padding: 18px 20px;
  border: 1px solid var(--tc-line);
  border-radius: 16px;
  background: var(--tc-soft);
  color: var(--tc-ink);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.tc-site-shell .tc-shell-anime .welcome-toast strong,
.tc-site-shell .tc-shell-anime .welcome-toast span { display: block; }
.tc-site-shell .tc-shell-anime .welcome-toast.show { opacity: 1; transform: none; }

@media (max-width: 1100px) and (min-width: 761px) {
  .tc-site-shell .tc-page-outlet .tcs-main,
  .tc-site-shell .tc-member-main,
  .tc-site-shell .tc-shell-legacy { padding: 26px; }
  .tc-site-shell .tc-page-outlet .tc-cms-main { padding: 26px !important; }
  .tc-site-shell .tcu-screen-top { align-items: flex-start; }
  .tc-site-shell .tcu-screen-top h1 { font-size: 24px; }
  .tc-site-shell .tcu-flow-map { gap: 16px; }
  .tc-site-shell .tcu-map-node { padding: 12px; }
  .tc-site-shell .tcu-map-node[aria-pressed="true"] { padding: 11px; }
  .tc-site-shell .tcu-map-node strong { font-size: 14px; }
  .tc-site-shell .tcu-detail-panel { grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; }
}

@media (min-width: 761px) and (max-height: 740px) {
  .tc-site-shell .tc-sidebar { padding-top: 24px; padding-bottom: 24px; }
  .tc-site-shell .tc-menu { margin-top: 32px; gap: 5px; }
  .tc-site-shell .tc-menu a { padding-top: 10px; padding-bottom: 10px; }
  .tc-site-shell .tc-sidebar-note { padding-top: 15px; }
}

/* The same navigation becomes a horizontal strip on phones, as on the lobby. */
@media (max-width: 760px) {
  .tc-site-shell,
  .tc-site-shell[data-home="true"] {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .tc-site-shell > .tc-sidebar {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .tc-site-shell > .tc-workspace {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .tc-site-shell .tc-topbar {
    position: sticky;
    top: 0;
    min-height: 58px;
    background: #142630;
  }
  .tc-site-shell .tc-settings { gap: 8px; }
  .tc-site-shell .tc-shell-account-actions { padding: 18px 18px 0; }
  .tc-site-shell .tc-menu { width: 100%; }
  .tc-site-shell .tc-menu a { flex-shrink: 0; }
  .tc-site-shell .tc-menu a[aria-current="page"] { box-shadow: inset 0 -2px #83d8bd; }
  .tc-site-shell .tc-live-site-menu[open] {
    top: 96px;
    left: 18px;
    max-width: calc(100vw - 36px);
  }
  .tc-site-shell .tc-live-site-menu[open] > div { max-height: 40dvh; }
  .tc-site-shell .tc-page-outlet { overflow: visible; scroll-padding: 76px; }
  .tc-site-shell .tc-page-outlet .tcs-main,
  .tc-site-shell .tc-member-main,
  .tc-site-shell .tc-shell-legacy { padding: 22px 18px 30px; }
  .tc-site-shell .tc-page-outlet .tc-cms-main { padding: 24px 18px 36px !important; }
  .tc-site-shell .tc-page-outlet .tcu-screen .tcs-main,
  .tc-site-shell .tc-page-outlet .tcu-screen:has(.tc-cms-intro[open]) .tcs-main {
    height: auto;
    min-height: 0;
    gap: 12px;
  }
  .tc-site-shell .tcu-screen-top { flex-wrap: wrap; align-items: flex-start; }
  .tc-site-shell .tcu-screen-top h1 { font-size: 23px; }
  .tc-site-shell .tcu-top-controls { flex-direction: row; flex-wrap: wrap; margin-left: auto; }
  .tc-site-shell .tcu-flow-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
  .tc-site-shell .tcu-flow-map[data-flow="member"] .tcu-map-node:nth-child(2)::after {
    content: "↙";
    left: -15px;
    top: calc(100% + 1px);
  }
  .tc-site-shell .tcu-detail-panel { grid-template-columns: 1fr; min-height: 0; gap: 18px; }
  .tc-site-shell .tcu-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .tc-site-shell .tcu-detail-actions .primary { grid-column: 1 / -1; }
  .tc-site-shell .tcu-screen-footer { flex-wrap: wrap; }
  .tc-site-shell .tc-cms-heading { align-items: flex-start; flex-wrap: wrap; }
  .tc-site-shell .tc-shell-anime .hero-area { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tc-site-shell .tc-shell-anime .hero-text { padding-top: 0; }
  .tc-site-shell .tc-shell-anime .side-widget {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .tc-site-shell .tc-shell-anime .main-character {
    position: relative;
    left: auto;
    bottom: auto;
    grid-column: 1;
    width: min(260px, 70%);
    justify-self: center;
  }
  .tc-site-shell .tc-shell-anime .content-panel { padding: 22px 20px; }
  .tc-site-shell .tc-shell-anime .mini-card { width: min(170px, calc(50% - 9px)); }
  .tc-site-shell .tc-shell-anime :is(.time-card, .weather-card) { padding: 16px 12px; }
  .tc-site-shell .tc-shell-anime :is(.time-card, .weather-card) strong { font-size: 25px; }
  .tc-site-shell .tcu-ready-grid,
  .tc-site-shell .tcu-portal .tcs-permission-grid,
  .tc-site-shell .tcu-portal #tcs-permissions .tcs-permission-grid,
  .tc-site-shell .tcs-staff-grid,
  .tc-site-shell .tcs-settings-grid { grid-template-columns: 1fr; }
  .tc-site-shell[data-home="true"] .tc-home { height: auto !important; min-height: 0; }
  .tc-site-shell .tc-page-outlet :is([id], section) { scroll-margin-top: 76px; }
}

@media (max-width: 420px) {
  .tc-site-shell .tc-settings { column-gap: 7px; row-gap: 6px; }
  .tc-site-shell .tc-settings button { padding: 4px 7px; }
  .tc-site-shell .tcu-detail-actions { grid-template-columns: 1fr; }
  .tc-site-shell .tcu-map-node { padding: 10px; }
  .tc-site-shell .tcu-map-node[aria-pressed="true"] { padding: 9px; }
}

/* Native protected-page login only. Existing form nodes and authentication stay unchanged. */
.tc-site-shell .tc-shell-legacy:has(#access #message_login_form) {
  min-height: 0;
  padding: 28px 32px 36px;
}
.tc-site-shell .tc-shell-legacy:has(#access #message_login_form) .container > .visual {
  display: none;
}
.tc-site-shell .tc-shell-legacy:has(#access #message_login_form) .body,
.tc-site-shell .tc-shell-legacy:has(#access #message_login_form) .body > #content {
  min-height: 0;
  padding: 0;
}
.tc-site-shell .tc-shell-legacy #access:has(#message_login_form) {
  width: min(100%, 440px);
  max-width: 100%;
  margin: 12px auto;
  box-sizing: border-box;
  border: 1px solid #496570;
  border-radius: 18px;
  background: #1c303b;
  color: #edf5f1;
  box-shadow: 0 12px 36px #06121d30;
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
}
.tc-site-shell .tc-shell-legacy #access:has(#message_login_form) .login-header {
  margin: 26px 28px 22px;
  padding: 0;
  border: 0;
}
.tc-site-shell .tc-shell-legacy #access:has(#message_login_form) .login-header h1 {
  margin: 0;
  padding: 0;
  color: #edf5f1;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.5px;
}
.tc-site-shell .tc-shell-legacy #access:has(#message_login_form) .message {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c1d2d9;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.tc-site-shell .tc-shell-legacy #access:has(#message_login_form) .message.error {
  color: #ffbdad;
}
.tc-site-shell .tc-shell-legacy #access:has(#message_login_form) .login-body {
  max-height: none;
  margin: 0 28px 28px;
  padding: 0;
}
.tc-site-shell .tc-shell-legacy #message_login_form .control-group {
  margin: 0 0 18px;
  padding: 0;
}
.tc-site-shell .tc-shell-legacy #message_login_form :is(input[type=text], input[type=email], input[type=password]) {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0 0 12px;
  padding: 12px 14px;
  box-sizing: border-box;
  border: 1px solid #78959f;
  border-radius: 10px;
  background: #10232e;
  color: #edf5f1;
  caret-color: #edf5f1;
  font: 16px/1.45 "Segoe UI", "Malgun Gothic", sans-serif;
  box-shadow: none;
}
.tc-site-shell .tc-shell-legacy #message_login_form input::placeholder {
  color: #b1c5cd;
  opacity: 1;
}
.tc-site-shell .tc-shell-legacy #message_login_form label {
  color: #d3e2e7;
  font-size: 14px;
  line-height: 1.7;
}
.tc-site-shell .tc-shell-legacy #message_login_form input[type=checkbox] {
  accent-color: #83d8bd;
}
.tc-site-shell .tc-shell-legacy #message_login_form .button {
  min-height: 48px;
  height: auto;
  padding: 12px 16px;
  border: 1px solid #83d8bd;
  border-radius: 10px;
  background: #83d8bd;
  color: #112b2d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
.tc-site-shell .tc-shell-legacy #message_login_form .button:is(:hover, :focus) {
  background: #a1e5cf;
  color: #112b2d;
}
.tc-site-shell .tc-shell-legacy #message_login_form .button:disabled {
  background: #3b555d;
  color: #d3e2e7;
  border-color: #78959f;
  cursor: wait;
}
.tc-site-shell .tc-shell-legacy #access:has(#message_login_form) :is(input, button, a):focus-visible {
  outline: 3px solid #94e8cd;
  outline-offset: 3px;
}
.tc-site-shell .tc-shell-legacy #access:has(#message_login_form) .login-footer {
  margin: 0;
  padding: 18px 28px 22px;
  border-top: 1px solid #496570;
  border-radius: 0 0 18px 18px;
  background: transparent;
  color: #b1c5cd;
  box-shadow: none;
}
.tc-site-shell .tc-shell-legacy #access:has(#message_login_form) .login-footer > a {
  color: #b9ebdf;
  font-size: 14px;
  line-height: 1.6;
  text-underline-offset: 3px;
}
.tc-site-shell .tc-shell-legacy #access:has(#message_login_form) .login-footer > .bar {
  color: #b1c5cd;
}
@media (max-width: 760px) {
  .tc-site-shell .tc-shell-legacy:has(#access #message_login_form) {
    padding: 18px 14px 28px;
  }
}
@media (max-width: 420px) {
  .tc-site-shell .tc-shell-legacy #access:has(#message_login_form) {
    margin: 8px auto;
    border-radius: 14px;
  }
  .tc-site-shell .tc-shell-legacy #access:has(#message_login_form) .login-header {
    margin: 22px 20px 18px;
  }
  .tc-site-shell .tc-shell-legacy #access:has(#message_login_form) .login-body {
    margin: 0 20px 22px;
  }
  .tc-site-shell .tc-shell-legacy #access:has(#message_login_form) .login-footer {
    padding: 16px 20px 20px;
    border-radius: 0 0 14px 14px;
  }
}
