:root { --t-copy-size: calc(18px * var(--t-ui-scale,1)); --t-label-size: calc(16px * var(--t-ui-scale,1)); --t-meta-size: calc(14px * var(--t-ui-scale,1)); }
body.tylerium-design { font-size: var(--t-copy-size); line-height: 1.7; letter-spacing: .01em; }
.tylerium-design :is(h1, h2, h3, h4, h5, h6) { letter-spacing: 0 !important; line-height: 1.4 !important; }
.tylerium-design h1 { font-size: clamp(30px, 3.5vw, 40px); }
.tylerium-design h2 { font-size: 24px; }
.tylerium-design h3 { font-size: 20px; }
.tylerium-design :is(p, li, dd, dt, blockquote) { font-size: var(--t-copy-size); line-height: 1.75; overflow-wrap: anywhere; }
.tylerium-design :is(label, summary, button, .btn, .button, .tylerium-primary, .field-label) { font-size: var(--t-label-size) !important; line-height: 1.5 !important; letter-spacing: .01em !important; }
.tylerium-design :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea) { font-size: var(--t-copy-size) !important; line-height: 1.5 !important; padding-block: 12px; min-height: 48px; }
.tylerium-design :is(button, .btn, .button, .tylerium-primary) { min-height: 48px; }
.tylerium-design :is(small, .muted, .field-sub, .field-hint, .tylerium-note, .form-status, .tylerium-form-status, [role="status"]) { font-size: var(--t-meta-size) !important; line-height: 1.65 !important; }
.tylerium-design :is(th, td, .data-table) { font-size: 16px; line-height: 1.6; }
.tylerium-design :is(pre, code, kbd, samp) { font-size: 14px; line-height: 1.65; }
.tylerium-design .app-nav a { font-size: 16px; line-height: 1.5; }
.tylerium-design .app-account-link { font-size: 15px; }
.tylerium-design :is(.tylerium-wallet-label, .tylerium-wallet-value) { font-size: 15px; }
.tylerium-design .tylerium-footer { font-size: 14px; line-height: 1.65; }
.tylerium-design .tylerium-footer nav { flex-wrap: wrap; gap: 8px 20px; }
.tylerium-design .tylerium-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.tylerium-design .tylerium-auth-panel :is(label, .tylerium-auth-links) { font-size: 16px; line-height: 1.6; }
.tylerium-design .tylerium-auth-panel :is(.tylerium-note, .tylerium-error) { font-size: 16px !important; }
.tylerium-design .tylerium-error { line-height: 1.65; }
.tylerium-design .tylerium-setting-section { padding-block: 32px; }
.tylerium-design :is(.bio, .email-line) { font-size: 18px; line-height: 1.8; overflow-wrap: anywhere; }
.tylerium-home .home-heading h1 { font-size: 32px; }
.home-heading .tylerium-clock { font-size: 14px; gap: 6px; }
.home-heading .tylerium-clock time { font-size: 22px; letter-spacing: 0; }
.home-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 36px; }
.tylerium-home .home-featured a { display: flex; justify-content: flex-start; gap: 18px; min-height: 128px; margin: 0; padding: 26px; font-size: 30px; line-height: 1.3; letter-spacing: 0; }
.home-featured strong { font-weight: 550; letter-spacing: 0; }
.home-featured .home-icon { width: 36px; height: 36px; color: var(--t-ac); }
.tylerium-home .home-group h2 { font-size: 20px; margin-bottom: 18px; }
.tylerium-home .home-nav-list a { min-height: 60px; gap: 14px; padding: 16px; font-size: 17px; line-height: 1.5; }
.tylerium-home .home-utilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tylerium-home .home-utilities a { min-height: 60px; padding: 14px; font-size: 16px !important; line-height: 1.5; }
.tylerium-home .home-social-heading h2 { font-size: 20px; }
.home-social-heading > a { font-size: 16px; }
.home-social-heading h2 span { font-size: 15px; }
.home-friend-list { gap: 20px; min-height: 152px; }
.home-friend { flex-basis: 100px; }
.home-friend-name { font-size: 16px; line-height: 1.5; }
.home-friend-status, .home-person-badge { font-size: 14px; line-height: 1.5; }
.home-person-badge { margin-left: 0; }
.home-social-status { font-size: 16px !important; line-height: 1.65; }
.home-friends:has(.home-friend-add:only-child) .home-social-status { left: 124px; }
.tylerium-home .home-online-panel h2 { font-size: 18px; }
#home-online-count { font-size: 15px; }
.home-online-person { min-height: 76px; gap: 14px; }
.home-online-person .home-friend-name, .home-online-directory { font-size: 16px; }
.home-online-person .home-friend-status { font-size: 14px; }
.tylerium-home .home-online-trigger > span { font-size: 13px; }
.tylerium-design :is(.background-dialog, .background-choice) { font-size: 17px; line-height: 1.6; }
.background-dialog :is(legend, .background-note) { font-size: 15px; }
.tylerium-design .background-customize { font-size: 16px !important; }
.tylerium-home #home-footer { font-size: 14px; padding-block: 20px; }
@media (max-width: 1150px) {
  .home-groups { grid-template-columns: 1fr; gap: 28px; }
  .home-nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-nav-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .home-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-nav-list { grid-template-columns: 1fr; }
  .home-featured { gap: 14px; }
  .tylerium-home .home-featured a { padding: 22px; font-size: 26px; }
}
@media (max-width: 800px) {
  .home-groups { grid-template-columns: 1fr; }
  .home-nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-heading-controls { gap: 10px; }
  .home-heading .tylerium-clock { font-size: 13px; }
  .home-heading .tylerium-clock time { font-size: 20px; }
  .tylerium-home .home-heading h1 { font-size: 28px; }
  .home-featured { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .tylerium-home .home-featured a { min-height: 104px; padding: 22px; font-size: 28px; }
  .home-nav-list { grid-template-columns: 1fr; }
  .home-groups { gap: 32px; }
  .tylerium-home .home-nav-list a { min-height: 64px; }
  .home-friend { flex-basis: 108px; }
  .home-friend-list { gap: 14px; }
  .home-friends:has(.home-friend-add:only-child) .home-social-status { left: 110px; top: 76px; }
  .tylerium-home .home-utilities a { gap: 10px; padding: 12px 8px; }
  .home-utilities a > span { overflow-wrap: normal; }
  .tylerium-design #mobile-dock :is(a, button) { font-size: 14px !important; }
  .tylerium-home #home-footer { padding-left: 46px; }
}
@media (max-width: 360px) {
  .home-heading { gap: 10px; }
  .home-heading .tylerium-clock { font-size: 12px; }
  .home-heading .tylerium-clock time { font-size: 18px; }
  .home-heading-controls { gap: 8px; }
  .home-utilities { grid-template-columns: 1fr !important; }
  .tylerium-home .home-utilities a + a { border-left: 0; border-top: 1px solid var(--t-bd); }
}
.tylerium-design :is(#home-online-close, #sw-notif-close, .background-dialog [data-background-close]) { font-size: 24px !important; }

.home-featured a:hover .home-games-arrow { translate: 3px 0; color: var(--t-ac); }

body.tylerium-games { font-size: var(--t-copy-size); line-height: 1.6; }
.tylerium-games :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.4; }
.tylerium-games :is(.side-link, .side-category, .sidebar-recent-title, .sidebar-foot, .topbar-location, .search-box input, .shuffle-button, .wallet-link, .browse-link, .card-info .card-title, .sort-control select, .filter-button, .empty-state button, .load-more, .player-bar button, .player-bar a, .player-bar strong) { font-size: 16px; line-height: 1.5; }
.tylerium-games :is(.side-group-label, .side-category-count, .school-shortcut, .school-shortcut small, .coin-summary strong, .coin-summary small, .card-info small, .result-count, .sort-control, .footer, .player-actions span) { font-size: 14px; line-height: 1.6; }
.tylerium-games :is(.page-intro p, .empty-state p) { font-size: 18px; line-height: 1.7; }
.tylerium-games :is(.filter-button, .side-link, .side-category, .empty-state button, .load-more) { min-height: 44px; }
.tylerium-games :is(.search-box, .icon-button, .wallet-link) { height: 46px; }
.tylerium-games .topbar { padding-block: 12px; }
.tylerium-games .catalog-heading-row { flex-wrap: wrap; }
@media (max-width: 680px) {
  .tylerium-games .wallet-link { width: 46px; }
  .tylerium-games .sort-control { font-size: 0; }
}

/* Cinny's typography tokens belong to the vendored build in matrix/assets. */
#appBody._164xfge0, #appBody ._164xfge0 {
  --_164xfge7: 18px; --_164xfge8: 16px;
  --_164xfge9: 18px; --_164xfgea: 18px; --_164xfgeb: 16px; --_164xfgec: 14px;
  --_164xfged: 16px; --_164xfgee: 16px; --_164xfgef: 14px;
  --_164xfgeg: 14px; --_164xfgeh: 14px; --_164xfgei: 14px;
  --_164xfgeo: 27px; --_164xfgep: 24px; --_164xfgeq: 30px;
  --_164xfger: 30px; --_164xfges: 26px; --_164xfget: 23px;
  --_164xfgeu: 24px; --_164xfgev: 24px; --_164xfgew: 22px;
  --_164xfgex: 22px; --_164xfgey: 22px; --_164xfgez: 22px;
}
#appBody { font-size: 18px; line-height: 1.7; }
#appBody :is(.matrix-wordmark, .matrix-wordmark *) { font-family: JetBrainsMono, monospace !important; }
#appBody :is(button, .matrix-site-links a, .matrix-account-link, #tylerium-sso-banner, #tylerium-push-banner) { font-size: 16px; line-height: 1.5; }
#appBody :is(input, textarea, .coabsl3, [data-editable-name='RoomInput']) { font-size: 18px !important; line-height: 1.7 !important; }
#appBody :is(.tylerium-gif-tab, .tylerium-gif-pill, .tylerium-push-btn-later, .tylerium-push-btn-enable, #tylerium-sso-btn, #tylerium-home-btn) { font-size: 16px !important; min-height: 44px; }
#appBody .tylerium-gif-header { flex-wrap: wrap; }
#appBody .tylerium-gif-search-box { flex-basis: 180px; }
#appBody .tylerium-gif-search-box input { height: 44px; }
#appBody :is(.hru6be0 h1, .hru6be0 h2, .hru6be0 [role='heading']) { font-size: 18px !important; letter-spacing: 0 !important; }

body.tylerium-movie-entry { display: flex; flex-direction: column; min-height: 100svh; margin: 0; }
.tylerium-movie-entry-main { width: min(calc(100% - 40px), 430px); margin: auto; padding-block: 48px; }
.tylerium-movie-entry #movies-status { font-size: 18px !important; line-height: 1.7 !important; }

.tylerium-home .home-heading { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:20px; }
.tylerium-home .home-heading .background-customize { justify-self:end; }
.tylerium-home .home-heading .tylerium-clock { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; }
.tylerium-home .home-heading .tylerium-clock, .tylerium-home .tylerium-clock :is(time,span) { font-family:Arial,Helvetica,system-ui,sans-serif !important; letter-spacing:normal; }
.tylerium-home .home-heading .tylerium-clock time { font-size:36px; font-weight:600; line-height:1.15; font-variant-numeric:tabular-nums; color:var(--t-fg); }
.tylerium-home .home-heading .tylerium-clock span { font-size:14px; line-height:1.5; color:var(--t-fg2); }
.tylerium-home .home-featured { grid-template-columns:repeat(2,minmax(0,1fr)); }
.tylerium-home .home-featured .home-chat { grid-column:1/-1; min-height:144px; font-size:36px; border-color:var(--t-bda); background:var(--t-bg2); }
.tylerium-home .home-featured .home-chat .home-icon { width:40px;height:40px; }
.tylerium-home .home-main { max-width:1200px; padding-right:76px; }
.tylerium-home .home-staff { position:fixed; z-index:1260; top:clamp(150px,28vh,300px); right:0; width:264px; padding:0; border:0; overflow:hidden; pointer-events:none; }
.tylerium-home .home-staff h2 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.tylerium-home .home-staff-toggle { pointer-events:auto; margin-left:auto; display:grid; place-items:center; width:58px; height:48px; padding:0; border:1px solid var(--t-bd); border-right:0; border-radius:8px 0 0; background:var(--t-bg2); color:var(--t-fg2); cursor:pointer; }
.tylerium-home .home-staff nav { pointer-events:auto; display:grid; grid-template-columns:1fr; gap:0; width:264px; background:var(--t-bg2); border:1px solid var(--t-bd); border-right:0; border-radius:0 0 0 8px; overflow:hidden; transform:translateX(206px); transition:transform var(--t-settle) var(--t-ease); }
.tylerium-home .home-staff-link { display:grid; grid-template-columns:24px 1fr 16px; gap:16px; min-height:76px; padding:18px 16px; border:0; border-radius:0; background:transparent; white-space:nowrap; font-size:18px !important; line-height:1.5; }
.tylerium-home .home-staff-link + .home-staff-link { border-top:1px solid var(--t-bd); }
.tylerium-home .home-staff-arrow { display:block; }
.tylerium-home .home-staff[data-open="true"] nav { transform:none; }
.tylerium-home .home-staff[data-open="true"] .home-staff-toggle { color:var(--t-ac); border-color:var(--t-bda); }
.tylerium-home .home-staff-link:hover { background:var(--t-bg3); }
.tylerium-home .home-staff-link:focus-visible { outline-offset:-4px; }
@media(min-width:901px) {
  .tylerium-home:has(.home-staff:not([hidden])) #app-topbar { max-width:1144px; width:calc(100% - 112px); }
  .tylerium-home:has(.home-staff:not([hidden])) #home-footer { max-width:1200px; padding-right:76px; }
}
@media(max-width:640px) {
  .tylerium-home .home-heading { grid-template-columns:1fr auto; gap:16px; }
  .tylerium-home .home-heading .tylerium-clock { grid-column:1/-1; grid-row:2; padding-block:8px; }
  .tylerium-home .home-heading .tylerium-clock time { font-size:32px; }
  .tylerium-home .home-featured { grid-template-columns:1fr; }
  .tylerium-home .home-featured .home-chat { min-height:116px; font-size:32px; }
  .tylerium-home .home-main { padding-right:54px; }
  .tylerium-home .home-staff { width:min(264px,calc(100vw - 48px)); }
  .tylerium-home .home-staff-toggle { width:42px; }
  .tylerium-home .home-staff nav { width:min(264px,calc(100vw - 48px)); transform:translateX(calc(100% - 42px)); }
  .tylerium-home .home-staff-link { padding:16px 10px; min-height:68px; gap:14px; font-size:17px !important; }
  .tylerium-home .home-staff-link .home-icon { width:22px;height:22px; }
  .tylerium-home .home-staff[data-open="true"] nav { transform:none; }
}

.home-person-identity { display:flex; min-width:0; flex-direction:column; gap:4px; }
.home-person-identity .home-friend-name { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; overflow-wrap:anywhere; }
.home-person-identity .home-person-badge { display:inline-grid; place-items:center; flex:0 0 auto; width:22px; height:22px; margin:0; padding:0; border:1px solid var(--t-bd); border-radius:4px; color:var(--t-ac); background:var(--t-bg2); font:600 16px/1 Arial,Helvetica,sans-serif; }
.home-person-identity [data-badge="premium_star_badge"] { color:#e8c46c; }
.home-person-avatar.profile_gold_frame { outline:2px solid #cfa93b; outline-offset:2px; }
.home-person-avatar.profile_neon_frame { outline:2px solid #d26ebc; outline-offset:2px; }
.home-person-avatar:is(.profile_grid,.profile_stars,.profile_scanlines) { outline:2px solid var(--t-ac); outline-offset:2px; }
.home-online-person { min-height:88px; gap:16px; padding:16px; }
.home-online-person .home-friend-status { font:14px/1.5 Arial,Helvetica,sans-serif; color:var(--t-fg2); }

.home-person-identity .home-person-badge { font-family:Arial,Helvetica,sans-serif!important; }
.home-person-avatar:is(.profile_grid,.profile_stars,.profile_scanlines)::after { content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; }
.home-person-avatar.profile_grid::after { background-image:linear-gradient(#9acbfa44 1px,transparent 1px),linear-gradient(90deg,#9acbfa44 1px,transparent 1px); background-size:10px 10px; }
.home-person-avatar.profile_stars::after { background-image:radial-gradient(circle at 20% 22%,#fff 0 1px,transparent 2px),radial-gradient(circle at 76% 35%,#fff 0 1px,transparent 2px),radial-gradient(circle at 35% 80%,#fff 0 1px,transparent 2px); }
.home-person-avatar.profile_scanlines::after { background:repeating-linear-gradient(transparent 0 3px,#0004 3px 5px); }
