/* Personal-home DS mapping: Inter, semantic light/dark colors, 8/12/16/24/40 spacing. */
.hbl-personal-home,
.hbl-home-menu {
	--uh-text: var(--color-content-neutral-strong);
	--uh-secondary: #6b6b6b;
	--uh-canvas: var(--color-background-main-content);
	--uh-brand: var(--color-content-primary);
	--uh-border: var(--color-border-neutral-medium-default);
	--uh-line: #e6e6e6;
	--uh-surface: #fafafa;
	font-family: "Inter", sans-serif;
	color: var(--uh-text);
}
html[data-theme="dark"] .hbl-personal-home,
html[data-theme="dark"] .hbl-home-menu,
body[data-schema="dark"] .hbl-personal-home,
body[data-schema="dark"] .hbl-home-menu { --uh-secondary: #999; --uh-line: #343434; --uh-surface: #202020; }
.hbl-home-menu-trigger { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.hbl-home-menu-trigger img { display: block; width: 32px; height: 32px; object-fit: cover; }
.hbl-right-menu .hbl-home-user-menu .user-menu-dropdown {
	opacity: 1; visibility: visible; transition: none; top: calc(100% + 12px); margin-top: 0;
	width: 300px; padding: 12px; gap: 4px; border-radius: 12px; border: 1px solid var(--uh-border);
	background: var(--uh-canvas); cursor: default;
}
.hbl-home-menu[hidden] { display: none !important; }
html[data-theme="dark"] .hbl-right-menu .hbl-home-user-menu .user-menu-dropdown,
body[data-schema="dark"] .hbl-right-menu .hbl-home-user-menu .user-menu-dropdown { background: var(--color-background-sub-content); }
.hbl-home-menu-summary { display: flex; align-items: center; gap: 12px; padding: 8px; }
.hbl-home-menu-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.hbl-home-menu-avatar img { width: 40px; height: 40px; object-fit: cover; display: block; }
.hbl-home-menu-identity { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hbl-home-menu-identity > strong { font-size: 14px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
.hbl-home-balance { display: flex; align-items: center; gap: 4px; }
.hbl-home-balance strong { color: var(--uh-text); font-size: 12px; line-height: 16px; font-weight: 700; }
.hbl-home-zing { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; flex: 0 0 20px; }
.hbl-home-zing img { display: block; /* Native SVG is 18×18 in a 20×20 icon slot. */ }
.hbl-home-menu-divider { height: 1px; background: var(--uh-border); margin: 4px 0; }
.hbl-home-menu-links { display: flex; flex-direction: column; gap: 4px; }
.hbl-home-menu-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px; border-radius: 8px; color: var(--uh-text); }
.hbl-home-menu-link:hover { color: var(--uh-brand); background: transparent; text-decoration: none; }
.hbl-home-menu-link.is-selected { color: var(--uh-text); background: transparent; }
.hbl-home-menu-link.is-selected:hover { color: var(--uh-brand); }
.hbl-home-menu-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hbl-home-menu-copy strong { font-size: 14px; line-height: 20px; font-weight: 600; }
.hbl-home-menu-copy small { font-size: 12px; line-height: 16px; color: inherit; }
.hbl-home-menu-logout { color: var(--uh-text); font-size: 14px; line-height: 20px; }
.hbl-home-menu-link,
.hbl-home-menu-link .hbl-home-icon,
.hbl-home-menu-copy { opacity: 1; filter: none; text-shadow: none; }
.hbl-home-icon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; }
.hbl-home-icon::before { content: ""; display: block; width: 24px; height: 24px; background: currentColor; mask: var(--uh-icon) center / contain no-repeat; -webkit-mask: var(--uh-icon) center / contain no-repeat; }
.hbl-home-icon--user { --uh-icon: url("../images/user-home/user.svg"); }
/* Exact 24×24 artwork exported from the published Figma menu icon components. */
.hbl-home-icon--settings-gear { --uh-icon: url("../images/user-home/settings-gear.svg"); }
.hbl-home-icon--logout { --uh-icon: url("../images/user-home/logout.svg"); }
.hbl-home-icon--transaction-list { --uh-icon: url("../images/user-home/transaction-list.svg"); }
.hbl-home-icon--chevron-right { --uh-icon: url("../images/user-home/chevron-right.svg"); width: 16px; height: 16px; flex-basis: 16px; }
.hbl-home-icon--chevron-right::before { width: 10.6667px; height: 10.6667px; }
.hbl-home-icon--plus { --uh-icon: url("../images/user-home/plus.svg"); }
.hbl-home-icon--minus { --uh-icon: url("../images/user-home/minus.svg"); }
.hbl-home-menu-trigger:focus-visible,
.hbl-personal-home a:focus-visible,
.hbl-personal-home button:focus-visible,
.hbl-home-menu a:focus-visible { outline: 2px solid var(--color-content-primary); outline-offset: 3px; }
.hbl-personal-home { padding: 40px 0; }
.hbl-personal-home .container { width: 100%; max-width: 1140px; }
.hbl-home--account-settings .container,
.hbl-home--balance-history .container { max-width: 855px; }
.hbl-home-introduction { margin-bottom: 24px; }
.hbl-novel .hbl-home-introduction h1 { margin: 0; font: 600 32px/40px "Inter", sans-serif; color: var(--uh-text); }
.hbl-personal-home p { color: var(--uh-secondary); font-size: 13px; line-height: 18px; }
.hbl-home-introduction p { margin: 0; }
.hbl-home-profile-summary { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.hbl-home-profile-avatar { width: 96px; height: 96px; flex: 0 0 96px; overflow: hidden; border-radius: 50%; }
.hbl-home-profile-avatar img { display: block; width: 96px; height: 96px; object-fit: cover; }
.hbl-home-profile-identity { min-width: 0; }
.hbl-novel .hbl-home-profile-identity h2 { font: 700 28px/36px "Inter", sans-serif; margin: 0 0 8px; color: var(--uh-text); overflow-wrap: anywhere; }
.hbl-home-text-link { border: 0; background: transparent; color: var(--uh-text); text-decoration: underline; font: 400 12px/16px "Inter", sans-serif; padding: 0; min-height: 44px; cursor: pointer; }
.hbl-home-profile-stats { display: flex; gap: 24px; margin-left: auto; }
.hbl-home-profile-stat { min-width: 62px; text-align: center; }
.hbl-home-profile-stat strong { display: block; color: var(--uh-text); font: 650 21px/28px "Inter", sans-serif; }
.hbl-home-profile-stat span { color: var(--uh-secondary); font: 400 12px/18px "Inter", sans-serif; white-space: nowrap; }
.hbl-home-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--uh-border); margin-bottom: 24px; overflow-x: auto; }
.hbl-home-tabs > a,
.hbl-home-tabs > span { white-space: nowrap; padding: 15px 12px 16px; line-height: 17px; font-size: 14px; color: var(--uh-secondary); min-height: 48px; }
.hbl-home-tabs > a[aria-current] { color: var(--uh-text); font-weight: 600; box-shadow: inset 0 -2px var(--uh-brand); }
.hbl-home-tabs > span { cursor: not-allowed; }
.hbl-home-profile-tabs { gap: 30px; padding-bottom: 0; border-bottom: 1px solid var(--uh-border); }
html[data-theme="dark"] .hbl-home-profile-tabs,
body[data-schema="dark"] .hbl-home-profile-tabs { --uh-secondary: #a3a3a3; }
.hbl-home-profile-tabs > a { position: relative; padding: 17px 0; min-height: 54px; line-height: 1.5; font-weight: 550; flex-shrink: 0; text-decoration: none; cursor: pointer; opacity: 1; }
.hbl-home-profile-tabs > a[aria-current="page"] { color: var(--uh-text); font-weight: 700; box-shadow: none; }
.hbl-home-profile-tabs > a[aria-current="page"]::after { content: ""; height: 3px; background: var(--uh-brand); position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px 3px 0 0; }
.hbl-home-profile-tabs > a[aria-current="page"]:hover { color: var(--uh-text); }
.hbl-home-tab-count { margin-left: 6px; color: var(--uh-secondary); font-size: 11px; }
.hbl-home-private-note { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.hbl-home-private-note p { margin: 0; font: 400 12px/18px "Inter", sans-serif; }
.hbl-home-private-tag { flex-shrink: 0; border: 1px solid var(--uh-line); background: var(--uh-surface); padding: 4px 8px; border-radius: 5px; font: 400 10px/16px "Inter", sans-serif; }
.hbl-home-library-selector { display: inline-flex; max-width: 100%; gap: 4px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--uh-line); border-radius: 10px; background: var(--uh-surface); }
.hbl-home-library-selector a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 16px; border-radius: 7px; color: var(--uh-secondary); font: 550 12px/16px "Inter", sans-serif; text-decoration: none; cursor: pointer; opacity: 1; white-space: nowrap; }
.hbl-home-library-selector a[aria-current="page"] { background: var(--uh-canvas); color: var(--uh-text); font-weight: 650; box-shadow: 0 1px 4px #0000000d; }
.hbl-home-library-selector a[aria-current="page"]:hover { color: var(--uh-text); }
.hbl-home-library-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.hbl-home-toolbar-copy { min-width: 0; }
.hbl-home-library-toolbar p { margin: 0; }
.hbl-home-sort-label { color: var(--uh-secondary); font: 400 12px/16px "Inter", sans-serif; white-space: nowrap; }
.hbl-novel .hbl-home-library-toolbar h2 { color: var(--uh-text); font: 600 20px/28px "Inter", sans-serif; margin: 0 0 8px; }
#user-home .hbl-home-library .hbl-home-toolbar-copy h2:last-child { margin-bottom: 0; }
.hbl-home-content > #form-account-settings { border-top: 1px solid var(--uh-border); }
.hbl-personal-home .hbl-history-list,
.hbl-personal-home .list-bookmark,
.hbl-personal-home .purchased-list { display: flex; flex-direction: column; gap: 0; }
.hbl-personal-home .history-novel-item,
.hbl-personal-home .bookmark-novel-item,
.hbl-personal-home .purchased-novel-item { border-bottom: 1px solid var(--uh-border); padding: 16px 0; background: transparent; gap: 24px; }
.hbl-personal-home .hbl-history-list .history-novel-item .item-thumb,
.hbl-personal-home .list-bookmark .bookmark-novel-item .item-thumb,
.hbl-personal-home .purchased-list .purchased-novel-item .item-thumb { width: 120px; min-width: 120px; height: 184px; flex: 0 0 120px; border-radius: 12px; }
.hbl-personal-home .item-thumb img { width: 120px; height: 184px; object-fit: cover; border-radius: 12px; }
.hbl-personal-home .history-novel-item { align-items: flex-start; }
.hbl-personal-home .item-infor,
.hbl-personal-home .item-content,
.hbl-personal-home .item-summary { min-width: 0; }
.hbl-personal-home .history-novel-item .item-infor,
.hbl-personal-home .bookmark-novel-item .item-content,
.hbl-personal-home .purchased-novel-item .item-summary { justify-content: flex-start; gap: 12px; }
.hbl-personal-home .history-novel-item .item-title,
.hbl-personal-home .bookmark-novel-item .novel-title { white-space: normal; margin: 0; }
.hbl-novel .hbl-personal-home .item-title,
.hbl-novel .hbl-personal-home .novel-title,
.hbl-novel .hbl-personal-home .post-title,
.hbl-novel .hbl-personal-home .item-title a,
.hbl-novel .hbl-personal-home .novel-title a,
.hbl-novel .hbl-personal-home .post-title a { font: 600 14px/20px "Inter", sans-serif; color: var(--uh-text); }
.hbl-personal-home .hbl-home-novel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0; font-size: 12px; line-height: 16px; }
/* Presentation/Genre label: native 16px SVG, 4px gap, Label/Small/Medium. */
/* Community/Post card, Reply item and Thread: shared DS typography and hierarchy. */
.hbl-home-activity-thread { min-width: 0; padding: 20px 0; border-bottom: 1px solid var(--uh-line); }
#user-home .hbl-home-activity-thread > .hbl-community-card { padding: 12px 0 0; border-bottom: 0; }
.hbl-home-activity-context { display: flex; flex-direction: column; gap: 4px; }
#user-home .hbl-home-activity-novel { color: var(--uh-text); font: 600 14px/20px "Inter", sans-serif; overflow-wrap: anywhere; }
#user-home .hbl-home-post-episode { color: var(--uh-brand); font: 400 12px/18px "Inter", sans-serif; text-decoration: underline; }
.hbl-home-post-card { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; }
.hbl-home-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hbl-home-post-identity { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hbl-personal-home .hbl-home-post-identity img { display: block; width: 28px; height: 28px; object-fit: cover; border-radius: 50%; flex: 0 0 28px; }
.hbl-home-post-author { color: var(--uh-text); font: 600 13px/19px "Inter", sans-serif; overflow-wrap: anywhere; }
.hbl-home-post-kind { color: var(--uh-brand); font: 400 12px/18px "Inter", sans-serif; }
.hbl-personal-home .hbl-home-post-body,
.hbl-personal-home .hbl-home-post-body p { color: var(--uh-text); font: 400 14px/23.1px "Inter", sans-serif; overflow-wrap: anywhere; }
.hbl-home-post-body p { margin: 0 0 10px; }
.hbl-home-post-body p:last-child { margin-bottom: 0; }
.hbl-home-post-body img { max-width: 100%; height: auto; }
.hbl-home-spoiler [hidden] { display: none !important; }
.hbl-home-spoiler-cover { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 10px 16px; border-radius: 8px; background: var(--uh-surface); color: var(--uh-secondary); font: 400 13px/18px "Inter", sans-serif; text-align: center; }
#user-home [data-home-spoiler-reveal] { flex: 0 0 auto; min-height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--uh-line); border-radius: 7px; background: var(--uh-canvas); color: var(--uh-text); font: inherit; cursor: pointer; }
#user-home [data-home-spoiler-reveal]:hover,
#user-home [data-home-spoiler-reveal]:focus-visible { border-color: var(--uh-brand); color: var(--uh-brand); }
.hbl-home-spoiler [data-home-spoiler-body]:focus { outline: none; }
.hbl-home-post-footer { display: flex; justify-content: flex-end; min-height: 24px; align-items: center; gap: 16px; color: var(--uh-secondary); font: 400 12px/18px "Inter", sans-serif; }
.hbl-home-reply-group { padding: 14px 0 20px 36px; }
.hbl-home-reply-hierarchy { display: flex; flex-direction: column; gap: 14px; padding-left: 14px; border-left: 1px solid var(--uh-border); min-width: 0; }
.hbl-home-reply-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hbl-home-reply-item .hbl-home-post-identity { gap: 7px; }
.hbl-personal-home .hbl-home-reply-item .hbl-home-post-identity img { width: 24px; height: 24px; flex-basis: 24px; }
.hbl-home-reply-item .hbl-home-post-author { font-size: 12px; line-height: 17px; }
.hbl-personal-home .hbl-home-reply-item .hbl-home-post-body,
.hbl-personal-home .hbl-home-reply-item .hbl-home-post-body p { font-size: 13px; line-height: 21px; }
.hbl-home-reply-item > .hbl-home-reply-hierarchy { margin-top: 8px; }
.hbl-home-reply-group [hidden] { display: none !important; }
.hbl-home-reply-toggle { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; margin: 14px 0 0 14px; padding: 0; border: 0; background: transparent; color: var(--uh-text); font: 700 12px/18px "Inter", sans-serif; cursor: pointer; }
.hbl-home-reply-toggle img { display: block; }
html[data-theme="dark"] .hbl-home-reply-toggle img,
body[data-schema="dark"] .hbl-home-reply-toggle img { filter: invert(1); }
.hbl-home-reply-toggle[aria-expanded="true"] img { transform: rotate(180deg); }
.hbl-home-activity-original { border-top: 1px solid var(--uh-border); }
#user-home .hbl-home-activity-original a { color: var(--uh-text); font: 700 12px/18px "Inter", sans-serif; display: inline-flex; align-items: center; min-height: 28px; }
.hbl-personal-home .hbl-home-reply-context { margin: 0; color: var(--uh-brand); font: 400 12px/18px "Inter", sans-serif; }
.hbl-home-genre-label { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--color-content-neutral-strong); font: 500 12px/16px "Inter", sans-serif; }
.hbl-home-genre-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: 0 0 16px; }
.hbl-personal-home .hbl-home-genre-icon img { display: block; max-width: none; border-radius: 0; }
.hbl-home-genre-name { overflow-wrap: anywhere; }
.hbl-home-novel-status { color: var(--uh-secondary); font: 400 12px/16px "Inter", sans-serif; }
.hbl-personal-home .novel-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 18px; color: var(--uh-secondary); }
.hbl-personal-home .reading-group-item { display: block; gap: 0; margin-bottom: 24px; border: 1px solid var(--uh-line); border-radius: 8px; }
.hbl-personal-home .group-head-wrapper { display: flex; align-items: center; gap: 8px; background: var(--uh-surface); border-radius: 8px; padding: 8px 18px; }
.hbl-personal-home .group-head-wrapper .group-head { display: flex; align-items: center; justify-content: flex-start; flex: 1; min-width: 0; cursor: pointer; width: auto; padding: 0; min-height: 44px; border: 0; background: transparent; text-align: left; gap: 8px; }
.hbl-personal-home .reading-group-item .group-head-wrapper .group-head .group-name { font: 600 14px/20px "Inter", sans-serif; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hbl-personal-home .group-head .collapse-icon { flex: 0 0 44px; width: 44px; height: 44px; margin-left: auto; }
/* Exact 24px DS assets in a 44px disclosure target; never render +/- text glyphs. */
#user-home .group-head .collapse-icon::after {
	content: ""; display: block; width: 24px; height: 24px; background: currentColor;
	-webkit-mask: url("../images/user-home/plus.svg") center / contain no-repeat;
	mask: url("../images/user-home/plus.svg") center / contain no-repeat;
	transition: none;
}
#user-home .group-head[aria-expanded="true"] .collapse-icon::after {
	content: "";
	-webkit-mask-image: url("../images/user-home/minus.svg");
	mask-image: url("../images/user-home/minus.svg");
}
.hbl-personal-home .group-head-wrapper .group-actions { position: relative; top: auto; right: auto; transform: none; flex: 0 0 44px; }
.hbl-personal-home .group-head-wrapper .group-actions .dropdown-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; }
.hbl-personal-home .group-head .hbl-home-private-tag { flex-shrink: 0; }
/* Counts must not inherit the button's native black text in dark mode. */
#user-home .reading-group-item .group-head > .hbl-home-private-tag { color: var(--uh-text); }
.hbl-personal-home #create-group-btn span { font: inherit; text-decoration: none; }
.hbl-home-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 0; font-size: 12px; }
.hbl-home-pagination > span:first-child { margin-right: auto; color: var(--uh-secondary); }
.hbl-home-pagination a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--uh-text); border-radius: 8px; }
.hbl-home-pagination a[aria-current] { background: var(--uh-brand); color: white; }
.hbl-personal-home .hbl-tabs.user-settings .hbl-tabs-content { margin-top: 0; }
.hbl-home-modal .modal-content { background: var(--uh-canvas); color: var(--uh-text); border: 1px solid var(--uh-border); border-radius: 12px; }
body.hbl-novel #hbl-home-rec-modal .modal-content { background: var(--uh-canvas); color: var(--uh-text); border: 1px solid var(--uh-border); border-radius: 12px; }
.hbl-home-modal .modal-header h2 { font: 600 20px/28px "Inter", sans-serif; color: var(--uh-text); }
.hbl-home-upload-preview { margin-bottom: 24px; }
.hbl-home-upload-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; }
.hbl-home-modal input[type="file"] { max-width: 100%; margin: 12px 0; }
.hbl-home-upload-message.is-error { color: var(--color-red); }
/* The avatar dialog must not inherit the parent theme's white modal or transforms. */
#user-home #hbl-home-avatar-modal .modal-dialog {
	display: flex; align-items: center; width: calc(100% - 32px); max-width: 500px;
	min-height: calc(100% - 32px); margin: 16px auto; padding: 0;
	position: relative; top: 0; left: auto; transform: none !important;
}
#user-home #hbl-home-avatar-modal .modal-content {
	width: 100%; background: var(--uh-canvas); color: var(--uh-text);
	border: 1px solid var(--uh-border); border-radius: 12px; overflow: hidden;
	max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
}
#hbl-home-avatar-modal form { display: flex; flex-direction: column; gap: 24px; padding: 24px; min-height: 0; max-height: inherit; }
#user-home #hbl-home-avatar-modal .modal-header,
#user-home #hbl-home-avatar-modal .modal-body,
#user-home #hbl-home-avatar-modal .modal-footer { padding: 0; margin: 0; border: 0; }
#hbl-home-avatar-modal .modal-header { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
#user-home #hbl-home-avatar-modal .modal-header h2 { margin: 0; color: var(--uh-text); flex: 1; min-width: 0; }
#user-home #hbl-home-avatar-modal .hbl-home-modal-close {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px;
	background: transparent; color: var(--uh-text); cursor: pointer;
}
#hbl-home-avatar-modal .hbl-home-modal-close span {
	display: block; width: 24px; height: 24px; background: currentColor;
	-webkit-mask: url("../images/quote-share/close.svg") center / contain no-repeat;
	mask: url("../images/quote-share/close.svg") center / contain no-repeat;
}
#hbl-home-avatar-modal .modal-body { display: flex; flex-direction: column; align-items: center; gap: 16px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#hbl-home-avatar-modal .hbl-home-upload-preview { flex-shrink: 0; width: 96px; height: 96px; margin: 0; overflow: hidden; border-radius: 50%; }
#hbl-home-avatar-modal .hbl-home-upload-preview img { display: block; max-width: 100%; }
#hbl-home-avatar-modal .hbl-home-upload-choice { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; min-width: 0; }
#hbl-home-avatar-modal [data-home-avatar-name] { width: 100%; color: var(--uh-secondary); font: 400 13px/20px "Inter", sans-serif; overflow-wrap: anywhere; text-align: center; }
#hbl-home-avatar-modal .hbl-home-upload-help { color: var(--uh-secondary); font: 400 12px/18px "Inter", sans-serif; text-align: center; margin: 0; }
#hbl-home-avatar-modal .hbl-home-upload-message { width: 100%; color: var(--uh-text); font: 400 13px/20px "Inter", sans-serif; text-align: center; margin: 0; overflow-wrap: anywhere; }
#hbl-home-avatar-modal .hbl-home-upload-message.is-error { color: var(--color-red, #dc2626); }
#hbl-home-avatar-modal .hbl-home-upload-message:empty { display: none; }
#user-home #hbl-home-avatar-modal .modal-footer { display: flex; justify-content: flex-end; gap: 12px; flex-shrink: 0; }
#user-home #hbl-home-avatar-modal .modal-footer > * { margin: 0; }
#user-home #hbl-home-avatar-modal .hbl-btn-primary { background: var(--uh-brand); border: 1px solid var(--uh-brand); color: white; }
#user-home #hbl-home-avatar-modal .hbl-btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 767px) {
	#hbl-home-avatar-modal form { gap: 20px; padding: 20px; }
	#hbl-home-avatar-modal .modal-footer .hbl-btn { padding: 12px 16px; }
}
.hbl-personal-home .hbl-btn { min-height: 44px; border-radius: 8px; font: 600 14px/20px "Inter", sans-serif; padding: 12px 20px; }
.hbl-personal-home .hbl-btn-secondary { background: transparent !important; border-color: var(--uh-border) !important; color: var(--uh-text) !important; }
.hbl-personal-home button:focus-visible,
.hbl-personal-home a:focus-visible { outline: 2px solid var(--uh-brand); outline-offset: 3px; }
.hbl-personal-home .history-novel-item .continue-reading { align-self: flex-start; color: white; }
.hbl-personal-home .bookmark-novel-item .action { flex-wrap: wrap; }
/* Library cards and rows follow the approved Figma, not the parent-theme grid. */
#user-home .hbl-history-list,
#user-home .purchased-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#user-home .history-novel-item,
#user-home .purchased-novel-item { display: flex; position: relative; align-items: flex-start; gap: 16px; min-height: 154px; padding: 16px; border: 1px solid var(--uh-line); border-radius: 12px; background: var(--uh-canvas); }
#user-home .history-novel-item .item-thumb,
#user-home .purchased-novel-item .item-thumb { width: 76px; min-width: 76px; height: 110px; flex: 0 0 76px; border-radius: 5px; }
#user-home .history-novel-item .item-thumb img,
#user-home .purchased-novel-item .item-thumb img { width: 76px; height: 110px; border-radius: 5px; }
#user-home .history-novel-item .item-infor,
#user-home .history-novel-item .item-content,
#user-home .purchased-novel-item .item-summary { display: flex; flex: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 7px; margin: 0; padding: 0; min-width: 0; }
#user-home .history-novel-item .item-title,
#user-home .purchased-novel-item .post-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; height: 40px; margin: 0; }
#user-home .hbl-home-novel-meta { margin: 0; gap: 4px 8px; }
#user-home .history-novel-item .hbl-home-novel-status,
#user-home .purchased-novel-item .hbl-home-novel-status { display: none; }
#user-home .history-novel-item .chapter a,
#user-home .hbl-home-purchased-link { color: var(--uh-brand); font: 600 11px/16px "Inter", sans-serif; }
#user-home .history-novel-item .post-on,
#user-home .hbl-home-purchased-count { color: var(--uh-secondary); font: 400 10px/15px "Inter", sans-serif; margin: 0; }
#user-home .history-novel-item .continue-reading { display: none; }
#user-home .history-novel-item > .action { position: absolute; top: 2px; right: 2px; opacity: 0; }
#user-home .history-novel-item:hover > .action,
#user-home .history-novel-item:focus-within > .action { opacity: 1; }
/* Recent owns its close control; leave shared Rec List cards unchanged. */
#user-home .hbl-history-list .history-novel-item .item-title { display: block; height: auto; min-height: 20px; padding-right: 28px; white-space: nowrap; text-overflow: ellipsis; }
#user-home .hbl-history-list .history-novel-item .item-title a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#user-home .hbl-history-list .history-novel-item > .action { top: 8px; right: 8px; margin: 0; opacity: 1; }
#user-home .hbl-history-list .hbl-remove-manga-history { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; }
#user-home .reading-group-item > .collapse,
#user-home .reading-group-item > .collapsing { padding: 0 18px; margin: 0; }
#user-home .reading-group-item > .collapse > .hbl-home-empty,
#user-home .reading-group-item > .collapsing > .hbl-home-empty { margin: 24px 0; }
#user-home .bookmark-novel-item { display: flex; align-items: flex-start; padding: 26px 0; gap: 24px; }
#user-home .reading-group-item .bookmark-novel-item:last-child { border-bottom: 0; }
#user-home .bookmark-novel-item .item-thumb { width: 100px; min-width: 100px; height: 146px; flex: 0 0 100px; border-radius: 5px; }
#user-home .bookmark-novel-item .item-thumb img { width: 100px; height: 146px; border-radius: 5px; }
#user-home .bookmark-novel-item .item-thumb .new-chapter { display: none; }
#user-home .bookmark-novel-item .item-content,
#user-home .bookmark-novel-item .item-content-main { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; min-width: 0; }
#user-home .bookmark-novel-item .novel-title { min-width: 0; overflow: hidden; }
#user-home .bookmark-novel-item .novel-title a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 18px/25px "Inter", sans-serif; }
#user-home .bookmark-novel-item .novel-excerpt { font: 400 13px/22px "Inter", sans-serif; -webkit-line-clamp: 3; }
#user-home .bookmark-novel-item .post-on { margin: 0; color: var(--uh-secondary); font: 400 11px/16px "Inter", sans-serif; }
#user-home .bookmark-novel-item .action { display: flex; align-items: center; gap: 20px; margin: 0; }
#user-home .bookmark-novel-item .action .hbl-btn { color: var(--uh-brand); padding: 0; background: transparent; font: 600 12px/16px "Inter", sans-serif; border: 0; min-height: 44px; }
#user-home .bookmark-novel-item .hbl-manga-delete-bookmark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--uh-text); background: transparent; border: 0; }
#user-home .bookmark-novel-item .hbl-manga-delete-bookmark svg { width: 24px; height: 24px; }
#user-home .bookmark-novel-item > .hbl-manga-delete-bookmark { position: static; float: none; transform: none; margin: 0; flex: 0 0 44px; align-self: center; }
#user-home .hbl-home-new-chapter { display: inline-block; align-self: flex-start; border: 1px solid var(--uh-line); background: var(--uh-surface); border-radius: 5px; padding: 3px 8px; color: var(--uh-secondary); font: 400 10px/14px "Inter", sans-serif; }
#user-home #create-group-btn { margin: 0; }
#user-home .hbl-home-add-action { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 8px; height: 44px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--uh-border); border-radius: 8px; white-space: nowrap; }
#user-home .hbl-home-add-action .hbl-home-icon,
#user-home .hbl-home-add-action .hbl-home-icon::before { width: 16px; height: 16px; }
#user-home .hbl-home-add-action .hbl-home-icon { flex-basis: 16px; }
#user-home .hbl-home-empty { padding: 24px; border: 1px solid var(--uh-border); border-radius: 12px; background: var(--uh-canvas); }
.hbl-novel #user-home .hbl-home-empty h3 { margin: 0 0 10px; color: var(--uh-text); font: 600 18px/22px "Inter", sans-serif; }
#user-home .hbl-home-empty p { margin: 0; font: 400 13px/16px "Inter", sans-serif; }
/* Native links remain available while Profile content updates in place. */
.hbl-home-profile-tabs a:hover,
.hbl-home-library-selector a:hover { color: var(--uh-brand); }
#hbl-home-panel { position: relative; outline: none; }
/* Selected text stays strong in idle, visited, focus and hover states; counts remain secondary. */
#user-home .hbl-home-profile-tabs > a[aria-current="page"],
#user-home .hbl-home-profile-tabs > a[aria-current="page"] .hbl-home-tab-label,
#user-home .hbl-home-library-selector a[aria-current="page"] { color: var(--uh-text); }
@media (max-width: 640px) {
	.hbl-home-profile-tabs { gap: 15px; }
	.hbl-home-profile-tabs > a { font-size: 12px; }
}
body.hbl-novel #user-home .bookmark-novel-item .action .hbl-btn { background: transparent !important; color: var(--uh-brand) !important; }
#user-home .hbl-home-purchased-chapters summary { cursor: pointer; list-style: none; }
#user-home .hbl-home-purchased-chapters summary::-webkit-details-marker { display: none; }
#user-home .purchased-novel-item .list-chapter { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 0; }
#user-home .purchased-novel-item .list-chapter a { color: var(--uh-brand); font: 400 12px/18px "Inter", sans-serif; }
/* Curated Rec Lists never inherit private Library bookmark actions. */
.hbl-home-rec-list + .hbl-home-rec-list { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--uh-line); }
.hbl-home-rec-list-heading { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 16px; }
.hbl-novel #user-home .hbl-home-rec-list-heading h3 { margin: 0; font: 600 14px/20px "Inter", sans-serif; }
.hbl-home-rec-list-heading h3 { min-width: 0; overflow-wrap: anywhere; }
.hbl-home-library-toolbar h2 { overflow-wrap: anywhere; max-width: 100%; }
#user-home .hbl-home-rec-list-heading h3 a { color: var(--uh-text); }
/* Rec previews follow their text height, not Library's fixed title slot. */
/* Equal preview heights use the tallest content, including single-column layouts. */
#user-home .hbl-home-rec-cards { align-items: stretch; grid-auto-rows: 1fr; }
#user-home .hbl-home-rec-cards .history-novel-item { --uh-rec-card-inset: 16px; min-height: 0; align-items: center; }
#user-home .hbl-home-rec-cards .item-infor { gap: 8px; padding-bottom: 24px; }
#user-home .hbl-home-rec-cards .item-title { height: auto; min-height: 0; flex-shrink: 0; padding: 0; white-space: normal; overflow-wrap: anywhere; font: 600 14px/20px "Inter", sans-serif; }
#user-home .hbl-home-rec-cards .item-title a { font: inherit; }
/* Reserve a text-link row so bottom-right actions never overlap wrapped tags. */
#user-home .hbl-home-rec-cards .chapter { display: flex; position: absolute; right: var(--uh-rec-card-inset); bottom: var(--uh-rec-card-inset); }
/* Preview text links do not reserve the 44px height used by menu actions. */
#user-home .hbl-home-rec-cards .chapter .hbl-home-inline-link { align-items: flex-start; min-height: 0; }
.hbl-home-rec-count { color: var(--uh-secondary); font: 400 11px/16px "Inter", sans-serif; }
.hbl-home-rec-list-heading > .hbl-home-rec-visibility { flex-shrink: 0; }
.hbl-home-rec-detail-heading { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; min-height: 44px; }
.hbl-novel #user-home .hbl-home-rec-detail-heading h2 { margin: 0; min-width: 0; flex: 0 1 auto; }
.hbl-home-rec-detail-heading > .hbl-home-rec-count,
.hbl-home-rec-detail-heading > .hbl-home-rec-visibility { flex-shrink: 0; }
.hbl-home-rec-tools { margin-left: auto; position: relative; color: var(--uh-secondary); font: 400 12px/18px "Inter", sans-serif; }
.hbl-home-rec-tools summary { cursor: pointer; width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; list-style: none; }
.hbl-home-rec-tools summary::-webkit-details-marker { display: none; }
.hbl-home-rec-tools:not([open]) > div { display: none; }
.hbl-home-rec-header-actions { display: flex; align-items: center; flex-shrink: 0; gap: 12px; }
#user-home .hbl-home-list-menu { display: flex; flex-direction: column; gap: 0; position: absolute; z-index: 5; right: 0; min-width: 150px; margin: 0; padding: 8px; border: 1px solid var(--uh-line); border-radius: 8px; background: var(--uh-canvas); box-shadow: 0 4px 12px rgb(0 0 0 / 8%); font: 400 12px/18px "Inter", sans-serif; }
#user-home .hbl-home-list-menu.dropdown-menu:not(.show),
#user-home .hbl-home-rec-tools:not([open]) > .hbl-home-list-menu { display: none; }
#user-home .hbl-home-list-menu-item { display: block; width: 100%; min-height: 44px; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--uh-text); font: inherit; text-align: left; padding: 8px; cursor: pointer; text-decoration: none; }
#user-home .hbl-home-list-menu-item:hover { color: var(--uh-brand); }
#user-home .hbl-home-inline-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--uh-secondary); font: 400 12px/16px "Inter", sans-serif; text-decoration: none; cursor: pointer; }
#user-home .hbl-home-inline-link:hover { color: var(--uh-brand); }
.hbl-home-rec-preview-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.hbl-home-rec-note { display: flex; align-items: flex-start; gap: 20px; border-left: 3px solid var(--uh-brand); padding: 16px 18px; border-radius: 0 8px 8px 0; background: var(--uh-surface); margin: 0 0 16px; }
.hbl-home-rec-note > div { flex: 1; min-width: 0; }
.hbl-home-rec-label { display: block; color: var(--uh-secondary); font: 400 10px/15px "Inter", sans-serif; margin-bottom: 4px; }
#user-home .hbl-home-rec-note p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--uh-text); font: 400 13px/22px "Inter", sans-serif; }
.hbl-home-rec-note button { flex-shrink: 0; min-height: 44px; }
.hbl-home-rec-editor { padding: 18px; background: var(--uh-surface); border: 0; border-radius: 10px; margin-bottom: 18px; }
.hbl-home-rec-lists [hidden] { display: none !important; }
.hbl-home-rec-lists label { display: block; font: 600 13px/20px "Inter", sans-serif; margin: 0 0 8px; }
.hbl-home-rec-lists input,
.hbl-home-rec-lists textarea { display: block; width: 100%; color: var(--uh-text); background: var(--uh-canvas); border: 1px solid var(--uh-line); border-radius: 8px; padding: 12px; font: 400 13px/21px "Inter", sans-serif; }
.hbl-home-rec-lists textarea { resize: vertical; }
.hbl-home-rec-editor > p { color: var(--uh-secondary); font: 400 13px/18px "Inter", sans-serif; }
.hbl-home-rec-lists input:focus,
.hbl-home-rec-lists textarea:focus { outline: 2px solid var(--uh-brand); outline-offset: 2px; }
#user-home .hbl-home-rec-lists textarea { color: var(--uh-text); caret-color: var(--uh-text); }
#user-home .hbl-home-rec-editor textarea,
#user-home .hbl-home-rec-editor textarea:focus { border: 0; outline: none; box-shadow: none; }
#user-home #hbl-home-rec-modal textarea,
#user-home #hbl-home-rec-modal textarea:focus { border: 0; outline: none; box-shadow: none; }
#hbl-home-rec-modal .hbl-home-rec-visibility-field { border: 0; padding: 0; margin: 0; }
#hbl-home-rec-modal .hbl-home-rec-visibility-field legend { border: 0; margin: 0 0 8px; color: var(--uh-text); font: 600 13px/20px "Inter", sans-serif; }
#hbl-home-rec-modal .hbl-home-rec-visibility-field > div { display: flex; gap: 24px; }
#hbl-home-rec-modal .hbl-home-rec-visibility-field label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-weight: 400; color: var(--uh-text); cursor: pointer; }
#user-home #hbl-home-rec-modal input[type="radio"] { display: inline-block; appearance: auto; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--uh-brand); }
.hbl-home-rec-form-footer { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 12px; font: 400 12px/18px "Inter", sans-serif; }
.hbl-home-rec-form-footer > span { margin-right: auto; color: var(--uh-secondary); }
.hbl-home-rec-loader { display: flex; flex-direction: column; align-items: center; padding: 26px 0; gap: 10px; }
.hbl-home-rec-back { margin-bottom: 18px; }
#user-home .hbl-home-rec-synopsis { color: var(--uh-secondary); font: 400 13px/22px "Inter", sans-serif; margin: 4px 0; overflow-wrap: anywhere; }
.hbl-home-rec-tags { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font: 400 11px/16px "Inter", sans-serif; color: var(--uh-secondary); }
.hbl-home-rec-tag-values { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.hbl-home-rec-no-tags { padding-top: 3px; }
#user-home .hbl-home-rec-row > .hbl-home-rec-remove { flex: 0 0 auto; align-self: center; justify-content: center; min-width: 60px; min-height: 44px; margin-left: auto; color: var(--uh-text); }
#user-home .hbl-home-rec-row > .hbl-home-rec-remove:hover { color: var(--uh-brand); }
#user-home .hbl-home-rec-row > .hbl-home-rec-remove:disabled { opacity: .5; cursor: wait; }
#user-home .hbl-home-rec-list .chapter .hbl-home-inline-link { color: var(--uh-brand); font: 600 11px/16px "Inter", sans-serif; }
#user-home .hbl-home-rec-row .action a.hbl-home-inline-link { color: var(--uh-brand); font: 400 12px/16px "Inter", sans-serif; }
.hbl-home-rec-tags .hbl-home-private-tag { max-width: 100%; padding: 3px 8px; border: 1px solid var(--uh-line); background: transparent; color: var(--uh-secondary); font: 400 11px/16px "Inter", sans-serif; overflow-wrap: anywhere; }
.hbl-home-rec-search-item { display: block; width: 100%; min-height: 44px; text-align: left; border: 0; border-bottom: 1px solid var(--uh-line); background: transparent; color: var(--uh-text); font: 400 13px/20px "Inter", sans-serif; padding: 12px 0; cursor: pointer; }
.hbl-home-rec-search-item:disabled { color: var(--uh-secondary); cursor: default; }
.hbl-home-rec-lists .modal-dialog { width: calc(100% - 40px); max-width: 500px; margin-left: auto; margin-right: auto; }
#hbl-home-rec-modal form { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
#hbl-home-rec-modal .modal-header,
#hbl-home-rec-modal .modal-body,
#hbl-home-rec-modal .modal-footer { padding: 0; border: 0; }
#hbl-home-rec-modal .modal-body { display: flex; flex-direction: column; gap: 16px; }
#hbl-home-rec-modal .modal-body > div { margin: 0; }
.hbl-home-rec-lists .hbl-btn { min-height: 44px; padding: 12px 20px; font: 600 14px/20px "Inter", sans-serif; }
/* Isolate the Rec List dialog from legacy modal spacing and form-control rules. */
#user-home #hbl-home-rec-modal .modal-dialog {
	width: calc(100% - 32px); max-width: 500px; margin: 16px auto;
	min-height: calc(100% - 32px); position: relative; top: 0; left: auto; padding: 0;
	/* The theme centers dialogs with an absolute translate, unlike Bootstrap. */
	transform: none !important;
}
#user-home #hbl-home-rec-modal .modal-content {
	max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden;
}
#user-home #hbl-home-rec-modal form { min-height: 0; max-height: inherit; }
#user-home #hbl-home-rec-modal .modal-header { align-items: center; gap: 16px; flex-shrink: 0; }
#user-home #hbl-home-rec-modal .modal-header h2 { margin: 0; }
#user-home #hbl-home-rec-modal .hbl-home-modal-close {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px;
	background: transparent; color: var(--uh-text); cursor: pointer; text-decoration: none;
}
#hbl-home-rec-modal .hbl-home-modal-close span {
	display: block; width: 24px; height: 24px; background: currentColor;
	-webkit-mask: url("../images/quote-share/close.svg") center / contain no-repeat;
	mask: url("../images/quote-share/close.svg") center / contain no-repeat;
}
#user-home #hbl-home-rec-modal .modal-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* The parent theme applies a light fill on text/search hover and focus. */
#user-home #hbl-home-rec-modal input:not([type="radio"]),
#user-home #hbl-home-rec-modal input:not([type="radio"]):hover,
#user-home #hbl-home-rec-modal input:not([type="radio"]):focus {
	background: var(--uh-canvas); color: var(--uh-text); caret-color: var(--uh-text);
	border-color: var(--uh-line); box-shadow: none;
}
#user-home #hbl-home-rec-modal input:not([type="radio"]):focus { outline: 2px solid var(--uh-brand); outline-offset: -2px; }
#user-home #hbl-home-rec-modal #rec-novel-search:focus { outline: none; box-shadow: none; }
#user-home #hbl-home-rec-modal textarea { background: var(--uh-surface); resize: none; }
#hbl-home-rec-modal [data-rec-note-count] {
	display: block; margin-top: 8px; color: var(--uh-secondary); text-align: right; font: 400 12px/18px "Inter", sans-serif;
}
#user-home #hbl-home-rec-modal input[type="radio"] { flex: 0 0 16px; color-scheme: light; border-radius: 50%; }
html[data-theme="dark"] #user-home #hbl-home-rec-modal input[type="radio"],
body[data-schema="dark"] #user-home #hbl-home-rec-modal input[type="radio"] { color-scheme: dark; }
#user-home #hbl-home-rec-modal input[type="radio"]:focus:not(:focus-visible) { outline: none; box-shadow: none; }
#user-home #hbl-home-rec-modal input[type="radio"]:focus-visible { outline: 2px solid var(--uh-brand); outline-offset: 3px; }
#user-home #hbl-home-rec-modal [data-rec-form-status] { margin: 0; overflow-wrap: anywhere; }
#user-home #hbl-home-rec-modal [data-rec-form-status]:empty { display: none; }
#user-home #hbl-home-rec-modal .modal-footer { flex-shrink: 0; gap: 12px; }
#user-home #hbl-home-rec-modal .modal-footer > * { margin: 0; }
/* The existing Reading List group editor must also respect the Profile theme. */
#user-home #group-modal .modal-dialog {
	display: flex; align-items: center; width: calc(100% - 32px); max-width: 500px;
	min-height: calc(100% - 32px); margin: 16px auto; position: relative; top: 0; left: auto;
	transform: none !important;
}
#user-home #group-modal .modal-content {
	background: var(--uh-canvas); color: var(--uh-text); border: 1px solid var(--uh-border); border-radius: 12px;
	max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
}
#user-home #group-modal .modal-body { padding: 24px; }
#user-home #group-modal h4 { color: var(--uh-text); font: 600 20px/28px "Inter", sans-serif; text-align: left; margin: 0 0 24px; }
#user-home #group-modal .group-list { margin: 0; }
#user-home #group-modal .form-group label { color: var(--uh-text); }
#user-home #group-modal .form-control {
	background: var(--uh-canvas); color: var(--uh-text); border: 1px solid var(--uh-line);
	border-radius: 8px; min-height: 48px; padding: 12px; box-shadow: none;
}
#user-home #group-modal .form-control:focus { border-color: var(--uh-brand); }
#user-home #group-modal .actions { display: flex; justify-content: flex-end; gap: 12px; }
#user-home #group-modal .actions button { flex: 0 0 auto; width: auto; margin: 0; }
#user-home #group-modal .actions .hbl-btn-secondary { color: var(--uh-text) !important; border-color: var(--uh-border); }
@media (max-width: 767px) {
	#user-home #hbl-home-rec-modal form { padding: 20px; }
	#user-home #group-modal .modal-body { padding: 20px; }
	#user-home #group-modal .form-control { font-size: 16px; }
	/* 16px prevents iOS input focus from zooming and clipping the dialog. */
	#user-home #hbl-home-rec-modal input:not([type="radio"]),
	#user-home #hbl-home-rec-modal textarea { font-size: 16px; line-height: 24px; }
}
@media (min-width: 768px) and (max-width: 1100px) {
	#user-home .hbl-history-list,
	#user-home .purchased-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.hbl-personal-home { padding: 24px 0; }
	.hbl-novel .hbl-home-introduction h1,
	.hbl-novel .hbl-home-profile-identity h2 { font-size: 24px; line-height: 32px; }
	.hbl-home-profile-summary { gap: 18px; flex-wrap: wrap; }
	.hbl-home-profile-stats { width: 100%; margin-left: 0; padding-top: 6px; gap: 26px; justify-content: flex-start; }
	.hbl-home-profile-stat { min-width: 0; text-align: left; }
	.hbl-home-profile-stat strong { display: inline; margin-right: 4px; font-size: 15px; line-height: 20px; }
	.hbl-novel .hbl-home-introduction h1 { font-size: 22px; line-height: 28px; }
	.hbl-novel .hbl-home-profile-identity h2 { font-weight: 600; }
	.hbl-personal-home .container { padding-right: 20px; padding-left: 20px; }
	.hbl-home-private-note { align-items: flex-start; }
	.hbl-home-library-selector a { padding-right: 12px; padding-left: 12px; }
	.hbl-home-library-toolbar { flex-direction: column; }
	.hbl-home-rec-detail-heading { width: 100%; flex: 0 1 auto; }
	.hbl-home-reply-group { padding-left: 20px; }
	#user-home .hbl-history-list,
	#user-home .purchased-list { grid-template-columns: minmax(0, 1fr); }
	#user-home .history-novel-item,
	#user-home .purchased-novel-item { padding: 14px; min-height: 142px; }
	#user-home .hbl-home-rec-cards .history-novel-item { --uh-rec-card-inset: 14px; }
	#user-home .bookmark-novel-item { gap: 16px; padding: 22px 0; }
	#user-home .bookmark-novel-item .item-thumb { width: 70px; min-width: 70px; height: 104px; flex-basis: 70px; }
	#user-home .bookmark-novel-item .item-thumb img { width: 70px; height: 104px; }
	#user-home .bookmark-novel-item .novel-title a { font-size: 15px; line-height: 21px; }
	#user-home .bookmark-novel-item .novel-excerpt { font-size: 12px; line-height: 16px; }
	.hbl-home-rec-list-heading { flex-wrap: wrap; }
	.hbl-home-rec-form-footer { flex-wrap: wrap; }
	#user-home .hbl-home-rec-synopsis { font-size: 12px; line-height: 16px; }
	.hbl-home-rec-tags { flex-direction: column; gap: 5px; }
	.hbl-home-profile-avatar,
	.hbl-home-profile-avatar img { width: 72px; height: 72px; flex-basis: 72px; }
	.hbl-personal-home .hbl-history-list .history-novel-item .item-thumb,
	.hbl-personal-home .list-bookmark .bookmark-novel-item .item-thumb,
	.hbl-personal-home .purchased-list .purchased-novel-item .item-thumb { width: 80px; min-width: 80px; height: 123px; flex-basis: 80px; }
	.hbl-personal-home .item-thumb img { width: 80px; height: 123px; }
	.hbl-personal-home .history-novel-item,
	.hbl-personal-home .bookmark-novel-item,
	.hbl-personal-home .purchased-novel-item { gap: 16px; }
	#hbl-mobile-nav .hbl-home-mobile-menu { padding: 12px; background: var(--color-background-sub-content); border: 1px solid var(--uh-border); border-radius: 12px; }
	#hbl-mobile-nav .mobile-nav-content { padding: 0 20px; }
}
