/* Tottium v2: community layout. Loaded after the existing layout styles. */
/* Orbitron original font, SIL OFL 1.1: /assets/fonts/orbitron/OFL.txt */
@font-face {
    font-family: "Orbitron";
    src: url("/assets/fonts/orbitron/Orbitron-variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
}
body.tottium-v2 {
	--tt-accent: #2463cf;
	--tt-accent-soft: #edf4ff;
	--tt-page: #f4f6fa;
	--tt-surface: #fff;
	--tt-text: #202938;
	--tt-muted: #657389;
	--tt-line: #e3e8ef;
	--tt-radius: 7px;
	--tt-container: 1400px;
	--tt-sidebar: 320px;
	--tt-column-gap: 30px;
	--tt-outer-space: 32px;
	--tt-backdrop-blue: rgba(36, 99, 207, .09);
	--tt-backdrop-mint: rgba(44, 185, 193, .06);
	--ap-radius-card: 7px;
	--ap-radius-ctl: 5px;
	--ap-blue: #2463cf;
	--color-primary: #2463cf !important;
	--color-primary-dark: #2463cf !important;
	background-color: var(--tt-page);
	background-image: radial-gradient(ellipse 580px 420px at 0 160px, var(--tt-backdrop-blue), transparent 80%), radial-gradient(ellipse 440px 360px at 100% 300px, var(--tt-backdrop-mint), transparent 80%);
	background-repeat: no-repeat;
	color: var(--tt-text);
	font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Malgun Gothic", sans-serif;
	font-size: 14px;
	line-height: 1.6;
}
body.tottium-v2.color_scheme_light {
	color-scheme: light;
	--ap-bg: #fff;
	--ap-bg-elevated: #f7f9fc;
	--ap-border: #e3e8ef;
	--ap-text: #334155;
	--ap-text-strong: #202938;
	--ap-text-muted: #657389;
	--ap-blue-soft: #edf4ff;
	--ap-blue-text: #2463cf;
}
body.tottium-v2.color_scheme_dark {
	color-scheme: dark;
	--tt-accent: #93baff;
	--tt-accent-soft: #24344f;
	--tt-page: #171b23;
	--tt-backdrop-blue: rgba(77, 125, 230, .13);
	--tt-backdrop-mint: rgba(44, 185, 193, .08);
	--tt-surface: #202631;
	--tt-text: #e5eaf1;
	--tt-muted: #a8b4c6;
	--tt-line: #364153;
	--ap-bg: #202631;
	--ap-bg-elevated: #262e3b;
	--ap-border: #364153;
	--ap-text: #d4dce8;
	--ap-text-strong: #e5eaf1;
	--ap-text-muted: #a8b4c6;
	--color-primary-dark: #93baff !important;
}
body.tottium-v2 :focus-visible { outline: 3px solid var(--tt-accent); outline-offset: 3px; }
body.tottium-v2 #vivid-header,
body.tottium-v2 #vivid-fixed-header {
	background: var(--tt-surface) !important;
	border-bottom: 1px solid var(--tt-line);
	box-shadow: none;
	backdrop-filter: none;
}
body.tottium-v2 .ap-gnb-inner { max-width: var(--tt-container); min-height: 68px; height: auto; padding-top: 12px; padding-bottom: 12px; }
body.tottium-v2 .ap-brand-logo__text {
    color: var(--tt-accent);
    font-family: "Orbitron", sans-serif;
    font-size: 25px;
    font-weight: 700 !important;
    font-style: normal;
    font-synthesis: none;
    letter-spacing: -.35px;
}
body.tottium-v2 #login-canvas .ap-login-brand__logo .ap-brand-logo__text {
    font-weight: 700 !important;
    letter-spacing: -.35px;
}
body.tottium-v2 .ap-brand-logo__mark { width: 26px; height: 32px; }
body.tottium-v2 #vivid-header nav { gap: 20px; margin-left: 28px; }
body.tottium-v2 #vivid-header .v-menu { font-size: 13px; font-weight: 600; color: var(--tt-text); }
body.tottium-v2 #vivid-header .v-btn-login,
body.tottium-v2 #vivid-fixed-header .v-btn-login { border-radius: 5px; padding: 8px 17px; background: #2463cf; color: #fff !important; font-size: 13px; }
body.tottium-v2 .hs-dropdown-menu { border-radius: 6px; }
body.tottium-v2 .tt-v2-shortcuts { background: var(--tt-surface); border-bottom: 2px solid #2463cf; }
body.tottium-v2 .tt-v2-shortcuts__inner { display: flex; max-width: var(--tt-container); margin: 0 auto; padding: 0 16px; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
body.tottium-v2 .tt-v2-shortcuts a { flex: 0 0 auto; padding: 11px 17px; color: var(--tt-text); font-size: 13px; font-weight: 700; text-decoration: none; }
body.tottium-v2 .tt-v2-shortcuts a:hover { background: var(--tt-accent-soft); color: var(--tt-accent) !important; }
body.tottium-v2 #app { margin-top: 22px; }
body.tottium-v2 #app > .max-w-screen-xl { max-width: var(--tt-container); }
body.tottium-v2 .tt-v2-layout { display: grid; grid-template-columns: var(--tt-sidebar) minmax(0, 1fr); gap: var(--tt-column-gap); align-items: start; }
body.tottium-v2 .tt-v2-main { grid-column: 2; grid-row: 1; min-width: 0; }
body.tottium-v2 .tt-v2-main--wide { grid-column: 1 / -1; }
body.tottium-v2 .tt-v2-sidebar { grid-column: 1; grid-row: 1; min-width: 0; }
body.tottium-v2 .tt-v2-sidebar > .sticky { top: 84px; }
body.tottium-v2 .tt-v2-sidebar > .sticky > .grid { gap: 16px; }
body.tottium-v2 .tt-v2-panel { background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); min-width: 0; overflow: hidden; }
body.tottium-v2 .tt-v2-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--tt-line); }
body.tottium-v2 .tt-v2-panel-head h2 { margin: 0; color: var(--tt-text); font-size: 15px; font-weight: 700; letter-spacing: -.3px; line-height: 1.5; }
body.tottium-v2 .tt-v2-panel-head > a { flex-shrink: 0; font-size: 12px; color: var(--tt-muted); text-decoration: none; }
body.tottium-v2 .tt-v2-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--tt-line); border-radius: 5px; padding: 8px 13px; background: var(--tt-surface); color: var(--tt-text); font-size: 13px; font-weight: 650; white-space: nowrap; cursor: pointer; text-decoration: none; }
body.tottium-v2 .tt-v2-button--primary { background: #2463cf; border-color: #2463cf; color: #fff !important; }
body.tottium-v2 .tt-v2-button--primary:hover { background: #1b50ae; color: #fff !important; }
body.tottium-v2 .tt-v2-account { padding: 17px 15px; }
body.tottium-v2 .tt-v2-account > strong { font-size: 13px; }
body.tottium-v2 .tt-v2-account > p { margin: 7px 0 13px; font-size: 12px; color: var(--tt-muted); }
body.tottium-v2 .tt-v2-account > .tt-v2-button { width: 100%; }
body.tottium-v2 .tt-v2-account__links { display: flex; justify-content: space-between; margin-top: 11px; font-size: 12px; color: var(--tt-muted); }
body.tottium-v2 .tt-v2-account__links button { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
body.tottium-v2 #app .tt-v2-sidebar .ap-side-card,
body.tottium-v2 #app .tt-v2-sidebar .ap-rank-card { border: 1px solid var(--tt-line); border-radius: var(--tt-radius); background: var(--tt-surface); box-shadow: none; }
body.tottium-v2 #app .tt-v2-sidebar .ap-side-title { font-size: 14px; padding-bottom: 10px; }
/* Notice rows and empty messages share the panel heading's horizontal inset. */
body.tottium-v2 .tt-v2-notices > .ap-rank-skin { padding: 4px 16px; }
body.tottium-v2 #app .tt-v2-notices .ap-rank-name a { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tottium-v2 .tt-v2-comments .ap-rank-skin { padding: 4px 14px; }
body.tottium-v2 .tt-v2-comments .ap-rank-row { display: block; padding: 8px 0; border-bottom: 1px solid var(--tt-line); }
body.tottium-v2 .tt-v2-comments .ap-rank-list > li:last-child .ap-rank-row { border-bottom: 0; }
body.tottium-v2 .tt-v2-comments .ap-rank-name { display: block; max-width: 100%; font-size: 12px; }
body.tottium-v2 .tt-v2-comments .ap-rank-name a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tottium-v2 .tt-v2-comments .ap-rank-meta { display: block; margin-top: 3px; font-size: 11px; color: var(--tt-muted); }
body.tottium-v2 .tt-v2-home { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
body.tottium-v2 .tt-v2-home-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 0; }
body.tottium-v2 .tt-v2-home-heading h1 { margin: 0; color: var(--tt-text); font-size: 21px; font-weight: 750; letter-spacing: -.7px; line-height: 1.4; }
body.tottium-v2 .tt-v2-home-heading p { margin: 6px 0 0; color: var(--tt-muted); font-size: 12px; }
body.tottium-v2 .tt-v2-match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 15px 0; }
body.tottium-v2 .tt-v2-match { padding: 0 16px; min-width: 0; }
body.tottium-v2 .tt-v2-match + .tt-v2-match { border-left: 1px solid var(--tt-line); }
body.tottium-v2 .tt-v2-match__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--tt-muted); font-size: 11px; }
body.tottium-v2 .tt-v2-label { color: var(--tt-accent); font-size: 11px; font-weight: 600; }
body.tottium-v2 .tt-v2-match__teams { display: block; color: var(--tt-text); text-decoration: none; }
body.tottium-v2 #app .tt-v2-match .aipick-match { justify-content: flex-start; margin: 0; flex-wrap: wrap; font-size: 13px; font-weight: 650; gap: 6px; }
body.tottium-v2 #app .tt-v2-match .ap-team-logo { width: 20px; height: 20px; }
body.tottium-v2 .tt-v2-match > p { margin: 8px 0 7px; font-size: 11px; color: var(--tt-muted); }
body.tottium-v2 .tt-v2-text-link { font-size: 12px; color: var(--tt-accent); }
body.tottium-v2 .tt-v2-board-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 16px; background: var(--ap-bg-elevated); border-bottom: 1px solid var(--tt-line); }
body.tottium-v2 .tt-v2-board-links a { font-size: 11px; padding: 3px 8px; color: var(--tt-muted); border: 1px solid var(--tt-line); border-radius: 4px; background: var(--tt-surface); }
body.tottium-v2 .tt-v2-board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
body.tottium-v2 .tt-v2-latest-widget .main_box1 { float: none; width: 100%; margin: 0; padding: 0; }
body.tottium-v2 .tt-v2-latest-widget .table-box { border: 0; margin: 0; background: transparent; box-shadow: none; }
body.tottium-v2 .tt-v2-latest-widget .table-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: transparent; border-bottom: 1px solid var(--tt-line); font-size: 14px; color: var(--tt-text); font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
body.tottium-v2 .tt-v2-latest-widget .view-all { position: static; top: auto; right: auto; bottom: auto; left: auto; float: none !important; width: auto; flex: 0 0 auto; margin-left: auto; font-size: 11px; font-weight: 400; line-height: 1.5; color: var(--tt-muted); white-space: nowrap; }
body.tottium-v2 .tt-v2-latest-widget .view-all > a { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
body.tottium-v2 .tt-v2-latest-widget--combined .table-heading { display: none; }
body.tottium-v2 .tt-v2-latest-widget .table-body { width: calc(100% - 30px); margin: 0 15px; border-collapse: collapse; table-layout: fixed; }
body.tottium-v2 .tt-v2-latest-widget .table-body tr { border-bottom: 1px solid var(--tt-line); }
body.tottium-v2 .tt-v2-latest-widget .table-body tr:last-child { border-bottom: 0; }
body.tottium-v2 .tt-v2-latest-widget .table-body td { height: 42px; padding: 9px 0; border: 0; background: transparent; color: var(--tt-text); font-size: 13px; vertical-align: middle; }
body.tottium-v2 .tt-v2-latest-widget .table-body td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tottium-v2 .tt-v2-latest-widget .table-body td:first-child > a { display: inline-block; max-width: calc(100% - 34px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
body.tottium-v2 .tt-v2-latest-widget .table-body td:last-child { width: 62px; font-size: 11px; text-align: right; color: var(--tt-muted); font-variant-numeric: tabular-nums; }
body.tottium-v2 .tt-v2-latest-widget .latest_comment_count { font-size: 11px; font-weight: 650; color: var(--tt-accent); }
body.tottium-v2 .tt-v2-latest-widget .table-body tr:hover { background: var(--ap-bg-elevated); }
body.tottium-v2 .tt-v2-empty { padding: 18px 16px; margin: 0; font-size: 12px; color: var(--tt-muted); }
body.tottium-v2 .tt-v2-tool-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 4px 16px; }
body.tottium-v2 .tt-v2-tool-links a { display: flex; align-items: center; gap: 11px; padding: 14px 6px; color: var(--tt-text); }
body.tottium-v2 .tt-v2-tool-links i { font-size: 20px; color: var(--tt-accent); }
body.tottium-v2 .tt-v2-tool-links strong { display: block; font-size: 13px; font-weight: 650; }
body.tottium-v2 .tt-v2-tool-links small { display: block; margin-top: 3px; font-size: 11px; color: var(--tt-muted); }
body.tottium-v2 .tt-v2-about summary { padding: 14px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
body.tottium-v2 .tt-v2-about > div { padding: 0 16px 16px; font-size: 13px; }
body.tottium-v2 .ap-site-footer { max-width: var(--tt-container); border-color: var(--tt-line); }
@media (max-width: 1100px) {
	body.tottium-v2 #vivid-header nav { margin-left: 20px; gap: 12px; }
	body.tottium-v2 #vivid-header .v-menu { font-size: 12px; }
	body.tottium-v2 .tt-v2-home-heading h1 { font-size: 19px; }
}
@media (max-width: 767px) {
	body.tottium-v2 .ap-gnb-inner { min-height: 58px; padding-top: 10px; padding-bottom: 10px; }
	body.tottium-v2 .ap-brand-logo__text { font-size: 22px; }
	body.tottium-v2 .tt-v2-shortcuts__inner { padding: 0 10px; gap: 0; }
	body.tottium-v2 .tt-v2-shortcuts a { padding: 11px 12px; font-size: 12px; }
	body.tottium-v2 #app { margin-top: 16px; }
	body.tottium-v2 #app > .max-w-screen-xl { padding-left: 12px; padding-right: 12px; }
	body.tottium-v2 .tt-v2-layout { display: block; }
	body.tottium-v2 .tt-v2-home { gap: 14px; }
	body.tottium-v2 .tt-v2-home-heading { align-items: flex-start; }
	body.tottium-v2 .tt-v2-home-heading h1 { font-size: 18px; }
	body.tottium-v2 .tt-v2-home-heading p { max-width: 245px; font-size: 11px; }
	body.tottium-v2 .tt-v2-home-heading .tt-v2-button { padding: 7px 10px; font-size: 12px; }
	body.tottium-v2 .tt-v2-panel-head { padding: 12px; }
	body.tottium-v2 .tt-v2-panel-head h2 { font-size: 14px; }
	body.tottium-v2 .tt-v2-panel-head > a { font-size: 11px; }
	body.tottium-v2 .tt-v2-match-grid { display: block; padding: 0 12px; }
	body.tottium-v2 .tt-v2-match { padding: 13px 0; }
	body.tottium-v2 .tt-v2-match + .tt-v2-match { border-left: 0; border-top: 1px solid var(--tt-line); }
	body.tottium-v2 .tt-v2-match__top { margin-bottom: 7px; }
	body.tottium-v2 .tt-v2-board-grid { grid-template-columns: 1fr; gap: 14px; }
	body.tottium-v2 .tt-v2-board-links { padding: 10px 12px; }
	body.tottium-v2 .tt-v2-latest-widget .table-body { margin: 0 11px; width: calc(100% - 22px); }
	body.tottium-v2 .tt-v2-latest-widget .table-body td { font-size: 12px; }
	body.tottium-v2 .tt-v2-latest-widget .table-body td:last-child { width: 54px; font-size: 10px; }
	body.tottium-v2 .tt-v2-tool-links { padding: 3px 10px; }
	body.tottium-v2 .tt-v2-tool-links a { gap: 8px; padding: 12px 3px; }
	body.tottium-v2 .tt-v2-tool-links strong { font-size: 12px; }
	body.tottium-v2 .tt-v2-tool-links small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	body.tottium-v2 .tt-v2-home *, body.tottium-v2 .tt-v2-shortcuts * { scroll-behavior: auto; transition: none; }
}

body.tottium-v2.color_scheme_light #ap-stats-drawer .text-slate-100 { color: var(--tt-text); }
body.tottium-v2.color_scheme_light #ap-stats-drawer .text-slate-400 { color: var(--tt-muted); }

body.tottium-v2 #app .tt-v2-sidebar .ap-side-card,
body.tottium-v2 #app .tt-v2-sidebar .tab-group { border-radius: var(--tt-radius) !important; }
body.tottium-v2 #vivid-header .ap-brand-logo__text,
body.tottium-v2 #vivid-fixed-header .ap-brand-logo__text { font-size: 25px !important; color: var(--tt-accent) !important; }
@media (max-width: 767px) {
	body.tottium-v2 #vivid-header .ap-brand-logo__text,
	body.tottium-v2 #vivid-fixed-header .ap-brand-logo__text { font-size: 22px !important; }
}

/* Version choice uses the same account and content across both sites. */
body.tottium-v2 .tt-v2-version-bar { background: var(--tt-accent-soft); border-bottom: 1px solid var(--tt-line); }
body.tottium-v2 .tt-v2-version-bar__inner { max-width: var(--tt-container); margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.tottium-v2 .tt-v2-version-bar p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--tt-muted); }
body.tottium-v2 .tt-v2-version-bar strong { color: var(--tt-accent); font-size: 12px; }
body.tottium-v2 .tt-v2-version-bar a { flex-shrink: 0; color: var(--tt-accent); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) { body.tottium-v2 .tt-v2-version-bar p { display: block; } body.tottium-v2 .tt-v2-version-bar p span { display: block; font-size: 11px; } }

/* Reference proportions: 1400 = 320 sidebar + 30 gutter + 1050 content. */
body.tottium-v2 #vivid-header > .ap-gnb-inner,
body.tottium-v2 #vivid-fixed-header > .ap-gnb-inner,
body.tottium-v2 #app > .max-w-screen-xl,
body.tottium-v2 .tt-v2-shortcuts__inner,
body.tottium-v2 .tt-v2-version-bar__inner,
body.tottium-v2 .ap-site-footer {
    box-sizing: border-box;
    width: calc(100% - var(--tt-outer-space));
    max-width: var(--tt-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}
/* Existing mobile chrome declares its container padding important. */
body.tottium-v2 #app > .max-w-screen-xl { padding-left: 0 !important; padding-right: 0 !important; }
body.tottium-v2 #app .tt-v2-sidebar .tt-v2-comments .ap-rank-row { display: block; }
body.tottium-v2 #app .tt-v2-sidebar .tt-v2-comments .ap-rank-name { display: block; max-width: 100%; }
body.tottium-v2 #app .tt-v2-sidebar .tt-v2-comments .ap-rank-meta { display: block; margin-top: 3px; }

/* A compact brand image leaves the match and community feeds near the fold. */
body.tottium-v2 .tt-v2-home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
    min-height: 160px;
    padding: 20px 26px;
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius);
    background: linear-gradient(110deg, var(--tt-surface) 12%, var(--tt-accent-soft));
}
body.tottium-v2 .tt-v2-hero-copy { min-width: 0; flex: 1 1 0; }
body.tottium-v2 .tt-v2-home-hero h1 { margin: 0; color: var(--tt-text); font-size: 24px; font-weight: 750; letter-spacing: -.8px; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
body.tottium-v2 .tt-v2-home-hero p { margin: 7px 0 0; color: var(--tt-muted); font-size: 13px; line-height: 1.6; word-break: keep-all; }
body.tottium-v2 .tt-v2-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
body.tottium-v2 .tt-v2-home-hero .tt-v2-button { padding: 6px 12px; font-size: 12px; }
body.tottium-v2 .tt-v2-hero-visual { display: flex; align-items: center; justify-content: center; flex: 0 0 132px; width: 132px; height: 120px; pointer-events: none; background: radial-gradient(ellipse at center, var(--tt-backdrop-mint), transparent 72%); }
body.tottium-v2 .tt-v2-hero-visual img { display: block; width: auto; height: 120px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(36, 99, 207, .12)); }
@media (max-width: 1280px) {
    body.tottium-v2 .tt-v2-layout { display: block; }
    body.tottium-v2 #app .tt-v2-sidebar { display: none; }
    body.tottium-v2 .tt-v2-main { grid-column: auto; grid-row: auto; width: 100%; }
}
@media (max-width: 1024px) {
    body.tottium-v2 .tt-v2-board-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 767px) {
    body.tottium-v2 { --tt-outer-space: 24px; }
    body.tottium-v2 .tt-v2-home-hero { min-height: 148px; gap: 12px; padding: 17px 16px; }
    body.tottium-v2 .tt-v2-home-hero h1 { font-size: 19px; line-height: 1.4; }
    body.tottium-v2 .tt-v2-home-hero p { font-size: 12px; }
    body.tottium-v2 .tt-v2-hero-visual { flex-basis: 76px; width: 76px; height: 96px; }
    body.tottium-v2 .tt-v2-hero-visual img { height: 92px; }
    body.tottium-v2 .tt-v2-hero-actions { gap: 6px; margin-top: 12px; }
    body.tottium-v2 .tt-v2-board-grid { gap: 14px; }
}
@media (max-width: 479px) {
    body.tottium-v2 .tt-v2-home-hero { position: relative; display: block; }
    body.tottium-v2 .tt-v2-hero-copy { position: relative; z-index: 1; }
    body.tottium-v2 .tt-v2-home-hero h1 { max-width: calc(100% - 58px); font-size: 18px; }
    body.tottium-v2 .tt-v2-home-hero p { max-width: calc(100% - 58px); }
    body.tottium-v2 .tt-v2-hero-visual { position: absolute; right: 12px; top: 16px; width: 54px; height: 66px; }
    body.tottium-v2 .tt-v2-hero-visual img { height: 66px; }
}

/* Keep shared left edges aligned, including phones with display cutouts. */
@media (max-width: 767.98px) {
    body.tottium-v2 #vivid-header > .ap-gnb-inner,
    body.tottium-v2 #vivid-fixed-header > .ap-gnb-inner,
    body.tottium-v2 #app > .max-w-screen-xl,
    body.tottium-v2 .tt-v2-shortcuts__inner,
    body.tottium-v2 .tt-v2-version-bar__inner,
    body.tottium-v2 .ap-site-footer {
        width: 100%;
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-left: max(12px, env(safe-area-inset-left)) !important;
        padding-right: max(12px, env(safe-area-inset-right)) !important;
    }
}

/* Shared v2 GNB; native disclosures stay independent of profile/overlay dropdowns. */
body.tottium-v2 #vivid-header .tt-v2-gnb--desktop,
body.tottium-v2 #vivid-fixed-header .tt-v2-gnb--desktop { display: flex; align-items: center; gap: 6px; margin: 0 0 0 22px; }
body.tottium-v2 .tt-v2-gnb-group { position: relative; min-width: 0; }
body.tottium-v2 .tt-v2-gnb-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 10px; color: var(--tt-text); font-size: 14px; font-weight: 700; line-height: 1.5; white-space: nowrap; list-style: none; cursor: pointer; border-radius: 5px; }
body.tottium-v2 .tt-v2-gnb-trigger::-webkit-details-marker { display: none; }
body.tottium-v2 .tt-v2-gnb-trigger:hover,
body.tottium-v2 .tt-v2-gnb-group[open] > .tt-v2-gnb-trigger { color: var(--tt-accent); background: var(--tt-accent-soft); }
body.tottium-v2 .tt-v2-gnb-chevron { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -3px 2px 0 0; flex-shrink: 0; }
body.tottium-v2 .tt-v2-gnb-group[open] > summary .tt-v2-gnb-chevron { transform: rotate(225deg); margin-top: 3px; }
body.tottium-v2 .tt-v2-gnb-group:not([open]) > .tt-v2-gnb-panel { display: none; }
body.tottium-v2 .tt-v2-gnb-panel { position: absolute; z-index: 1100; top: 100%; left: 0; width: 270px; max-width: calc(100vw - 32px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border: 1px solid var(--tt-line); border-radius: 8px; background: var(--tt-surface); box-shadow: 0 12px 28px rgba(20,35,60,.13); }
body.tottium-v2 .tt-v2-gnb-group:last-child > .tt-v2-gnb-panel { right: 0; left: auto; }
body.tottium-v2 .tt-v2-gnb-section + .tt-v2-gnb-section { border-top: 1px solid var(--tt-line); margin-top: 6px; padding-top: 6px; }
body.tottium-v2 .tt-v2-gnb-heading { margin: 3px 10px 4px; font-size: 11px; font-weight: 700; color: var(--tt-muted); }
body.tottium-v2 .tt-v2-gnb-panel ul { list-style: none; margin: 0; padding: 0; }
body.tottium-v2 .tt-v2-gnb-panel li { margin: 0; padding: 0; }
body.tottium-v2 .tt-v2-gnb-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 5px; color: var(--tt-text); font-size: 13px; font-weight: 500; text-decoration: none; line-height: 1.5; }
body.tottium-v2 a.tt-v2-gnb-link:hover { background: var(--tt-accent-soft); color: var(--tt-accent); }
body.tottium-v2 .tt-v2-gnb-pending { color: var(--tt-muted); cursor: default; }
body.tottium-v2 .tt-v2-gnb-badge { flex-shrink: 0; font-size: 10px; font-weight: 400; border: 1px solid var(--tt-line); border-radius: 3px; padding: 1px 5px; }
body.tottium-v2 .tt-v2-gnb-description { display: block; font-size: 10px; font-weight: 400; margin-top: 3px; }
body.tottium-v2 .tt-v2-gnb-note { margin: 6px 10px 4px; padding-top: 8px; border-top: 1px solid var(--tt-line); color: var(--tt-muted); font-size: 11px; }
body.tottium-v2 #vivid-sidebar { width: min(360px, 90vw); z-index: 1200 !important; }
body.tottium-v2 .tt-v2-gnb--mobile { display: block; margin: 0; }
body.tottium-v2 .tt-v2-gnb--mobile > .tt-v2-gnb-group { border-bottom: 1px solid var(--tt-line); }
body.tottium-v2 .tt-v2-gnb--mobile .tt-v2-gnb-trigger { padding: 13px 5px; }
body.tottium-v2 .tt-v2-gnb--mobile .tt-v2-gnb-panel { position: static; width: 100%; max-width: none; max-height: none; padding: 4px 0 10px; border: 0; border-radius: 0; box-shadow: none; }
body.tottium-v2 .tt-v2-menu-close { margin-left: auto; min-width: 36px; min-height: 36px; border: 1px solid var(--tt-line); border-radius: 5px; background: var(--tt-surface); color: var(--tt-text); cursor: pointer; }
@media (max-width: 1100px) {
    body.tottium-v2 #vivid-header .tt-v2-gnb--desktop,
    body.tottium-v2 #vivid-fixed-header .tt-v2-gnb--desktop { margin-left: 12px; gap: 0; }
    body.tottium-v2 .tt-v2-gnb--desktop .tt-v2-gnb-trigger { padding: 12px 8px; font-size: 13px; }
}
@media (max-width: 1023px) {
    body.tottium-v2 #vivid-header .tt-v2-gnb--desktop,
    body.tottium-v2 #vivid-fixed-header .tt-v2-gnb--desktop { display: none; }
    body.tottium-v2 #vivid-header [data-hs-overlay="#vivid-sidebar"],
    body.tottium-v2 #vivid-fixed-header [data-hs-overlay="#vivid-sidebar"] { display: inline-flex !important; }
}


/* Header brand follows the same column as the desktop community sidebar. */
body.tottium-v2 .tt-v2-header-main { min-width: 0; }
body.tottium-v2 .tt-v2-header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 0;
}
body.tottium-v2 #vivid-header .tt-v2-header-brand .ap-brand-logo,
body.tottium-v2 #vivid-fixed-header .tt-v2-header-brand .ap-brand-logo { gap: 10px; }
body.tottium-v2 #vivid-header .tt-v2-header-brand .ap-brand-logo__text,
body.tottium-v2 #vivid-fixed-header .tt-v2-header-brand .ap-brand-logo__text {
    font-size: 25px !important;
    letter-spacing: -.35px;
    font-weight: 700;
}
body.tottium-v2 #vivid-header .tt-v2-header-brand .ap-brand-logo__mark,
body.tottium-v2 #vivid-fixed-header .tt-v2-header-brand .ap-brand-logo__mark {
    width: 30px;
    height: 38px;
    max-height: 38px;
}
body.tottium-v2 #vivid-header .tt-v2-gnb--desktop,
body.tottium-v2 #vivid-fixed-header .tt-v2-gnb--desktop { gap: 6px !important; }
body.tottium-v2 #vivid-header .ap-header-actions,
body.tottium-v2 #vivid-fixed-header .ap-header-actions { flex-shrink: 0; margin-left: 16px; }
@media (min-width: 1281px) {
    body.tottium-v2 .tt-v2-header-brand { width: var(--tt-sidebar); flex-basis: var(--tt-sidebar); }
    body.tottium-v2 #vivid-header .tt-v2-gnb--desktop,
    body.tottium-v2 #vivid-fixed-header .tt-v2-gnb--desktop { margin-left: var(--tt-column-gap); }
}
@media (max-width: 1100px) {
    body.tottium-v2 #vivid-header .tt-v2-gnb--desktop,
    body.tottium-v2 #vivid-fixed-header .tt-v2-gnb--desktop { gap: 0 !important; }
}
@media (max-width: 767.98px) {
    body.tottium-v2 #vivid-header .tt-v2-header-brand .ap-brand-logo,
    body.tottium-v2 #vivid-fixed-header .tt-v2-header-brand .ap-brand-logo { gap: 7px; }
    body.tottium-v2 #vivid-header .tt-v2-header-brand .ap-brand-logo__text,
    body.tottium-v2 #vivid-fixed-header .tt-v2-header-brand .ap-brand-logo__text { font-size: 21px !important; }
    body.tottium-v2 #vivid-header .tt-v2-header-brand .ap-brand-logo__mark,
    body.tottium-v2 #vivid-fixed-header .tt-v2-header-brand .ap-brand-logo__mark { width: 24px; height: 30px; max-height: 30px; }
    body.tottium-v2 #vivid-header .ap-header-actions,
    body.tottium-v2 #vivid-fixed-header .ap-header-actions { margin-left: 8px; }
}

/* Approved keyword-focused home. Scoped to the home; shared board/game chrome is unchanged. */
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-hero { min-height: 214px; padding: 26px; gap: 22px; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-hero h1 { max-width: none; font-size: 28px; line-height: 1.42; letter-spacing: -1px; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-hero p { max-width: none; margin-top: 11px; line-height: 1.8; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-eyebrow { display: block; margin: 0 0 6px; color: var(--tt-accent); font-size: 11px; font-weight: 700; line-height: 1.6; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-hero-actions { margin-top: 18px; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-hero-actions .tt-v2-button { min-height: 38px; padding: 8px 13px; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-keyword-visual { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 112px; height: 158px; margin: 0 9px; color: var(--tt-accent); pointer-events: none; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-keyword-field { position: absolute; inset: 0; border: 1px solid currentColor; border-radius: 16px; transform: rotate(-12deg); opacity: .2; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-keyword-field::before { content: ''; position: absolute; left: 25%; top: 32%; width: 50%; height: 36%; border: 1px solid currentColor; border-radius: 50%; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-keyword-field::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid currentColor; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-keyword-word { position: relative; transform: rotate(-12deg); font-size: 25px; line-height: 1.22; font-weight: 800; font-style: italic; letter-spacing: -1px; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-panel-head { gap: 14px; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-panel-head > div { min-width: 0; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-panel-head h2 { line-height: 1.5; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-section-copy { margin: 5px 0 0; color: var(--tt-muted); font-size: 12px; line-height: 1.65; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-feed-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; flex-shrink: 0; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-feed-actions > a { color: var(--tt-muted); font-size: 12px; line-height: 1.6; white-space: nowrap; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-feed-actions > a:hover { color: var(--tt-accent); }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-learning > .tt-v2-panel-head > .bi-book { color: var(--tt-accent); font-size: 18px; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-match-grid { gap: 14px; padding: 16px; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-match { padding: 17px; background: var(--tt-page); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-match + .tt-v2-match { border-left: 1px solid var(--tt-line); }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-match-intro { margin: 10px 0 14px; color: var(--tt-text); font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: -.4px; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-match > p { font-size: 12px; line-height: 1.7; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-text-link { display: inline-block; margin-top: 8px; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 13px; padding: 16px; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide { min-width: 0; background: var(--tt-page); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide summary { display: block; padding: 17px; list-style: none; cursor: pointer; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide summary::-webkit-details-marker { display: none; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide summary:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 3px; border-radius: var(--tt-radius); }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide summary strong { display: block; color: var(--tt-text); font-size: 14px; font-weight: 650; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide-toggle { display: block; color: var(--tt-muted); font-size: 11px; margin-top: 13px; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-guide-close { display: none; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide[open] .tt-v2-guide-close { display: inline; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide[open] .tt-v2-guide-open { display: none; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide-body { padding: 0 17px 17px; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide-body p { margin: 0; padding-top: 13px; border-top: 1px solid var(--tt-line); color: var(--tt-muted); font-size: 12px; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide-body a { display: inline-block; margin-top: 13px; color: var(--tt-accent); font-size: 12px; font-weight: 600; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 16px; padding: 0 16px 17px; color: var(--tt-muted); font-size: 11px; line-height: 1.7; }
body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide-footer a { color: var(--tt-accent); font-weight: 600; }
@media (max-width: 900px) {
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide-grid { gap: 10px; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide summary { padding: 13px; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide summary strong { font-size: 13px; }
}
@media (max-width: 767px) {
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-hero { padding: 21px 18px; min-height: 204px; gap: 14px; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-hero h1 { font-size: 23px; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-keyword-visual { flex-basis: 80px; height: 124px; margin: 0 4px; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-keyword-word { font-size: 20px; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide-grid { grid-template-columns: minmax(0, 1fr); padding: 13px; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide summary strong br { display: none; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-guide-body { padding: 0 13px 15px; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-match-grid { display: grid; grid-template-columns: minmax(0, 1fr); padding: 13px; gap: 12px; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-match { padding: 15px; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-match-intro { font-size: 17px; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-section-copy { font-size: 11px; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-feed .tt-v2-panel-head { align-items: flex-start; flex-wrap: wrap; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-feed-actions { justify-content: flex-start; }
}
@media (max-width: 479px) {
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-keyword-visual { display: none; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-hero h1 { max-width: none; font-size: 22px; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-hero p { max-width: none; }
    body.tottium-v2 .tt-v2-home--keywords .tt-v2-home-copy-break { display: none; }
}

/* Homepage feeds: community-only latest posts and stored-video thumbnail gallery. */
body.tottium-v2 .tt-v2-board-links .tt-v2-board-pending { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px dashed var(--tt-line); border-radius: 4px; color: var(--tt-muted); font-size: 11px; }
body.tottium-v2 .tt-v2-board-pending small { font-size: 10px; }
body.tottium-v2 .tt-v2-highlight-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; padding: 16px; }
body.tottium-v2 .tt-v2-highlight-card { min-width: 0; }
body.tottium-v2 .tt-v2-highlight-link { display: block; color: var(--tt-text); text-decoration: none; }
body.tottium-v2 .tt-v2-highlight-link:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 4px; border-radius: 6px; }
body.tottium-v2 .tt-v2-highlight-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--tt-line); border-radius: 7px; background: var(--ap-bg-elevated); }
body.tottium-v2 .tt-v2-highlight-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.tottium-v2 .tt-v2-highlight-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; padding: 10px; color: var(--tt-muted); font-size: 12px; }
body.tottium-v2 .tt-v2-highlight-play { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; background: rgba(15, 23, 42, .78); color: #fff; font-size: 17px; }
body.tottium-v2 .tt-v2-highlight-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 40px; margin: 9px 0 5px; color: inherit; font-size: 13px; font-weight: 600; line-height: 20px; overflow-wrap: anywhere; }
body.tottium-v2 .tt-v2-highlight-link:hover .tt-v2-highlight-title { color: var(--tt-accent); }
body.tottium-v2 .tt-v2-highlight-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--tt-muted); font-size: 11px; line-height: 1.5; }
body.tottium-v2 .tt-v2-home-highlights > .tt-v2-empty { padding: 16px; margin: 0; }
@media (max-width: 767px) {
    body.tottium-v2 .tt-v2-highlight-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 12px; }
}
@media (max-width: 379px) {
    body.tottium-v2 .tt-v2-highlight-gallery { grid-template-columns: minmax(0, 1fr); }
}

/* Member pages: shared v2 surface, navigation and controls, including legacy tabs. */
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) {
    width: 100%; max-width: none; min-width: 0; margin: 0 0 24px;
    box-sizing: border-box; color: var(--tt-text); font-size: 14px; line-height: 1.65;
}
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification):not(.ap-account-page) {
    padding: 20px; background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: var(--tt-radius);
}
body.tottium-v2 #app .tt-v2-main .ap-account-page { padding: 0; }
body.tottium-v2 #app .tt-v2-main .ap-account-panel {
    padding: 22px; background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); box-shadow: none;
}
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(h1, h2, h3, h4, .ap-account-title) {
    color: var(--tt-text); line-height: 1.45; font-weight: 750; letter-spacing: -.4px;
}
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.page-header, h3) {
    margin: 18px 0; padding: 0 0 14px; border-bottom: 1px solid var(--tt-line);
}
body.tottium-v2 #app .tt-v2-main .mypage .page-header h4 { margin: 0; font-size: 19px; }
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.help-block, small, .ap-account-lead, .ap-account-summary__label, .ap-account-dl dt, .ap-noti-meta, .ap-col-time, .ap-col-num) {
    color: var(--tt-muted);
}
body.tottium-v2 #app .tt-v2-main .mypage :is(.ap-account-summary__item strong, .ap-account-dl dd) { color: var(--tt-text); overflow-wrap: anywhere; }
body.tottium-v2 #app .tt-v2-main .mypage .ap-account-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.tottium-v2 #app .tt-v2-main .mypage .ap-account-summary__item {
    background: var(--tt-page); border-color: var(--tt-line); border-radius: var(--tt-radius); padding: 14px;
}
body.tottium-v2 #app .tt-v2-main .mypage :is(.ap-account-dl > div, .ap-account-challenge) { border-color: var(--tt-line); }
body.tottium-v2 #app .tt-v2-main .mypage :is(.ap-account-tabs, .nav-tabs) {
    display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0 0 18px; padding: 0 0 16px;
    border: 0; border-bottom: 1px solid var(--tt-line); height: auto; overflow: visible;
}
body.tottium-v2 #app .tt-v2-main .mypage .nav-tabs::before,
body.tottium-v2 #app .tt-v2-main .mypage .nav-tabs::after { display: none; }
body.tottium-v2 #app .tt-v2-main .mypage .nav-tabs > li { float: none; margin: 0; padding: 0; }
body.tottium-v2 #app .tt-v2-main :is(.mypage .nav-tabs > li > a, .mypage .ap-account-tabs > a, .notification .ap-account-filters > a) {
    display: inline-flex; align-items: center; justify-content: center; min-height: 38px;
    margin: 0; padding: 8px 12px; border: 1px solid var(--tt-line); border-radius: 5px;
    background: var(--tt-surface); color: var(--tt-muted) !important; font-size: 13px; line-height: 1.5;
    font-weight: 600; text-decoration: none !important; white-space: nowrap;
}
body.tottium-v2 #app .tt-v2-main :is(.mypage .nav-tabs > li.active > a, .mypage .nav-tabs > li > a:hover, .mypage .ap-account-tabs > a.is-active, .mypage .ap-account-tabs > a:hover, .notification .ap-account-filters > a.is-active, .notification .ap-account-filters > a:hover) {
    background: var(--tt-accent-soft); border-color: var(--tt-accent); color: var(--tt-accent) !important;
}
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.table, .ap-account-table) {
    width: 100%; max-width: 100%; margin: 0 0 16px; border-collapse: collapse; border-spacing: 0;
    color: var(--tt-text); font-size: 13px; background: var(--tt-surface);
}
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.table, .ap-account-table) :is(th, td) {
    padding: 12px; border: 0; border-bottom: 1px solid var(--tt-line); vertical-align: middle;
    color: var(--tt-text); background: transparent; line-height: 1.6; overflow-wrap: anywhere;
}
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.table, .ap-account-table) th {
    background: var(--tt-page); color: var(--tt-muted); font-weight: 650; white-space: nowrap;
}
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.table, .ap-account-table) tbody tr:hover > td { background: var(--tt-page); }
body.tottium-v2 #app .tt-v2-main :is(.mypage .table tr.success, .notification .ap-account-table tr.is-unread) > td { background: var(--tt-accent-soft); }
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.table td > a, .ap-account-table a.noti_read) { color: var(--tt-text) !important; }
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.table td > a:hover, .ap-account-table a.noti_read:hover) { color: var(--tt-accent) !important; }
body.tottium-v2 #app .tt-v2-main .notification .ap-account-table-wrap { border-color: var(--tt-line); border-radius: var(--tt-radius); }
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.nopost, .ap-account-empty) { padding: 32px 16px; text-align: center; color: var(--tt-muted); }
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.btn, .ap-account-btn) {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px;
    padding: 7px 12px; border: 1px solid var(--tt-line); border-radius: 5px;
    background: var(--tt-surface); color: var(--tt-text) !important; font-size: 13px; line-height: 1.5;
    box-shadow: none; text-decoration: none !important; cursor: pointer;
}
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.btn-primary, .ap-account-btn:not(.ap-account-btn--ghost)) {
    background: #2463cf; border-color: #2463cf; color: #fff !important;
}
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.btn:hover, .ap-account-btn--ghost:hover, .btn-warning) {
    background: var(--tt-accent-soft); border-color: var(--tt-accent); color: var(--tt-accent) !important;
}
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.btn-danger, .ap-account-icon-btn) { color: #c13d43 !important; }
body.tottium-v2.color_scheme_dark #app .tt-v2-main :is(.mypage, .notification) :is(.btn-danger, .ap-account-icon-btn) { color: #ff979b !important; }
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.btn.disabled, .ap-account-btn.disabled, button:disabled) { opacity: .45; cursor: default; }
body.tottium-v2 #app .tt-v2-main .mypage .form-horizontal .form-group {
    display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 10px 16px;
    margin: 0 0 18px; align-items: start;
}
body.tottium-v2 #app .tt-v2-main .mypage .form-horizontal .form-group::before,
body.tottium-v2 #app .tt-v2-main .mypage .form-horizontal .form-group::after { display: none; }
body.tottium-v2 #app .tt-v2-main .mypage .form-horizontal .form-group > :is(label, div) { float: none; width: auto; max-width: 100%; padding-left: 0; padding-right: 0; margin-left: 0; }
body.tottium-v2 #app .tt-v2-main .mypage .form-horizontal .form-group > div:only-child { grid-column: 1 / -1; }
body.tottium-v2 #app .tt-v2-main .mypage .control-label { padding-top: 8px; color: var(--tt-text); text-align: left; font-weight: 600; }
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=image]), select, textarea) {
    max-width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--tt-line);
    border-radius: 5px; background: var(--tt-surface); color: var(--tt-text); box-shadow: none; font: inherit;
}
body.tottium-v2 #app .tt-v2-main .mypage :is(.form-control, textarea) { width: 100%; }
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(input, select, textarea):focus { border-color: var(--tt-accent); }
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) input::placeholder { color: var(--tt-muted); opacity: 1; }
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) input:is([type=checkbox], [type=radio]) { accent-color: var(--tt-accent); }
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) :is(.well, .ap-account-alert) {
    padding: 14px; background: var(--tt-page); border: 1px solid var(--tt-line); border-radius: 5px; color: var(--tt-text);
}
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; list-style: none; padding: 0; margin: 18px 0 0; }
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) .pagination > li > :is(a, span) {
    display: flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; margin: 0;
    border: 1px solid var(--tt-line); border-radius: 5px; background: var(--tt-surface); color: var(--tt-text);
}
body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification) .pagination > .active > :is(a, span) { background: var(--tt-accent-soft); border-color: var(--tt-accent); color: var(--tt-accent); }

/* Bet log native date controls follow the selected theme, including the picker. */
body.tottium-v2 #app .ap-betlog-filters { background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); }
body.tottium-v2 #app .ap-betlog-filters label { color: var(--tt-muted); }
body.tottium-v2 #app .ap-betlog-filters :is(input, select) {
    min-height: 38px; min-width: 0; border-color: var(--tt-line); background: var(--tt-surface); color: var(--tt-text); color-scheme: light; font: inherit;
}
body.tottium-v2.color_scheme_dark #app .ap-betlog-filters :is(input, select) { color-scheme: dark; }
body.tottium-v2 #app .ap-betlog-filters :is(input, select):focus { border-color: var(--tt-accent); }
body.tottium-v2 #app .ap-betlog-filters input::-webkit-datetime-edit { color: var(--tt-text); }
body.tottium-v2 #app .ap-betlog-filters input::-webkit-calendar-picker-indicator { filter: none; opacity: .8; cursor: pointer; }
body.tottium-v2 #app .ap-betlog-filters select option { background: var(--tt-surface); color: var(--tt-text); }
@media (max-width: 767px) {
    body.tottium-v2 #app .tt-v2-main :is(.mypage, .notification):not(.ap-account-page),
    body.tottium-v2 #app .tt-v2-main .ap-account-panel { padding: 16px 12px; }
    body.tottium-v2 #app .tt-v2-main .mypage .ap-account-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    body.tottium-v2 #app .tt-v2-main .mypage .ap-account-dl > div { grid-template-columns: 80px minmax(0, 1fr); }
    body.tottium-v2 #app .tt-v2-main .mypage .form-horizontal .form-group { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    body.tottium-v2 #app .tt-v2-main .mypage .control-label { padding-top: 0; }
    body.tottium-v2 #app .tt-v2-main .mypage .table { display: block; overflow-x: auto; overscroll-behavior-x: contain; }
    body.tottium-v2 #app .tt-v2-main .notification .ap-account-toolbar { flex-direction: column; align-items: stretch; }
    body.tottium-v2 #app .tt-v2-main .notification .ap-account-toolbar__left { flex-wrap: wrap; }
    body.tottium-v2 #app .tt-v2-main .notification .ap-account-table { min-width: 500px; }
    body.tottium-v2 #app .ap-betlog-filters label { flex: 1 1 140px; min-width: 0; }
    body.tottium-v2 #app .ap-betlog-filters :is(input, select) { width: 100%; box-sizing: border-box; }
}
