.madefa-tg-widget { margin: 12px 0; text-align: center; }
.madefa-tg-widget-label { display: block; margin-bottom: 8px; color: #777; font-size: 12px; }
.madefa-tg-widget-compact { margin: 8px 0; }
.madefa-tg-widget-compact .madefa-tg-widget-label { display: none; }
.madefa-tg-oidc-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 190px; padding: 9px 18px; border: 1px solid #168AC0; border-radius: 3px; background: #229ED9; color: #FFF !important; font-weight: 700; line-height: 20px; text-align: center; text-decoration: none !important; transition: background-color .2s ease, border-color .2s ease; }
.madefa-tg-oidc-button img { display: block; width: 18px; height: 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; }
.madefa-tg-oidc-button:hover, .madefa-tg-oidc-button:focus { border-color: #1175A4; background: #168AC0; color: #FFF !important; text-decoration: none !important; }
.madefa-tg-oidc-button.is-danger { border-color: #D7A2A2; background: #FFF; color: #C62828 !important; }
.madefa-tg-oidc-button.is-danger:hover, .madefa-tg-oidc-button.is-danger:focus { border-color: #B71C1C; background: #FFF5F5; color: #B71C1C !important; }
.madefa-tg-nav-button { float: right; display: inline-flex !important; align-items: center; gap: 6px; height: 32px; margin: 1px 10px 0 0; padding: 0 12px !important; border-right: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); color: #FFF !important; font-weight: 700; line-height: 32px !important; text-decoration: none !important; }
.madefa-tg-nav-button img { display: block; width: 17px; height: 17px; border-radius: 50%; }
.madefa-tg-nav-button:hover, .madefa-tg-nav-button:focus { background: rgba(0,0,0,.12); color: #FFF !important; text-decoration: none !important; }
.madefa-tg-account { width: 100%; max-width: none; color: #333; font-family: inherit; }
.madefa-tg-account, .madefa-tg-account * { box-sizing: border-box; }
.madefa-tg-account-tabs { margin: 0 0 18px; border-bottom: 1px solid #CDCDCD; }
.madefa-tg-account-tabs ul { display: flex; gap: 3px; margin: 0; padding: 0 0 0 10px; list-style: none; }
.madefa-tg-account-tabs li { margin: 0 0 -1px; border: 1px solid transparent; }
.madefa-tg-account-tabs li.current { border-color: #CDCDCD #CDCDCD #FFF; background: #FFF; }
.madefa-tg-account-tabs a { display: block; padding: 8px 16px; color: #555; font-weight: 700; text-decoration: none !important; }
.madefa-tg-account-tabs li.current a { color: #168AC0; }
.madefa-tg-account-tabs a:hover, .madefa-tg-account-tabs a:focus { color: #168AC0; }
.madefa-tg-tab-panel.is-hidden { display: none; }
.madefa-tg-account-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 14px; border-bottom: 1px solid #CDCDCD; }
.madefa-tg-account-head h1 { margin: 0; font-size: 20px; line-height: 1.4; }
.madefa-tg-account-head p { margin: 4px 0 0; color: #777; }
.madefa-tg-state { flex: none; padding: 3px 8px; border: 1px solid #CDCDCD; border-radius: 3px; background: #F2F2F2; color: #777; font-size: 12px; }
.madefa-tg-state.is-active { border-color: #9BC9DC; background: #EAF7FC; color: #1677A5; }
.madefa-tg-notice { margin-top: 15px; padding: 10px 12px; border: 1px solid #E5C365; background: #FFFBE5; color: #7B5B00; }
.madefa-tg-account-body { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(210px, 28%); align-items: center; gap: 20px; min-height: 118px; padding: 22px 0; border-bottom: 1px solid #CDCDCD; }
.madefa-tg-avatar-wrap { display: grid; place-items: center; width: 64px; height: 64px; }
.madefa-tg-avatar { display: block; width: 64px; height: 64px; border: 1px solid #CDCDCD; border-radius: 50%; background: #FFF; object-fit: cover; }
.madefa-tg-profile { min-width: 0; }
.madefa-tg-profile h2 { margin: 0; overflow: hidden; font-size: 16px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.madefa-tg-profile > p { margin: 4px 0 0; color: #777; }
.madefa-tg-profile dl { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px 24px; max-width: 720px; margin: 12px 0 0; }
.madefa-tg-profile dl div { min-width: 0; }
.madefa-tg-profile dt { color: #999; font-size: 11px; }
.madefa-tg-profile dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.madefa-tg-account-action { min-width: 0; text-align: right; }
.madefa-tg-account-action .madefa-tg-widget { margin-right: 0; }
.madefa-tg-account-action small { display: block; max-width: 220px; margin-top: 7px; color: #999; line-height: 1.5; }
.madefa-tg-history { padding-top: 20px; }
.madefa-tg-history h2 { margin: 0 0 10px; font-size: 15px; }
.madefa-tg-history table { width: 100%; border-collapse: collapse; }
.madefa-tg-history th, .madefa-tg-history td { padding: 9px 10px; border: 1px solid #E5E5E5; text-align: left; }
.madefa-tg-history th { background: #F5F5F5; font-weight: 700; }
.madefa-tg-empty { padding: 18px; border: 1px solid #E5E5E5; background: #FAFAFA; color: #999; text-align: center; }
.madefa-tg-notifications { padding-top: 20px; }
.madefa-tg-notifications h2 { margin: 0 0 8px; font-size: 15px; }
.madefa-tg-notifications > p { margin: 0 0 12px; color: #777; }
.madefa-tg-notification-form { padding: 14px; border: 1px solid #E5E5E5; background: #FAFAFA; }
.madefa-tg-notification-options { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.madefa-tg-notification-options label { color: #555; }
.madefa-tg-notification-form button { margin-top: 12px; padding: 5px 12px; border: 1px solid #CDCDCD; background: #FFF; color: #444; cursor: pointer; }
.madefa-tg-push-form { margin-top: 15px; }
.madefa-tg-credit-rule { margin: 12px 0 0; padding: 9px 10px; border-left: 3px solid #229ED9; background: #F2F8FB; color: #444; }
.madefa-tg-form-help { margin: 8px 0 0; color: #777; }
.madefa-tg-join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 18px; }
.madefa-tg-join-grid article { padding: 16px; border: 1px solid #D9E3E8; background: #F8FBFC; }
.madefa-tg-join-grid h2, .madefa-tg-replace h2 { margin: 0 0 7px; font-size: 15px; }
.madefa-tg-join-grid p, .madefa-tg-replace p { color: #777; line-height: 1.7; }
.madefa-tg-join-grid button, .madefa-tg-replace button { padding: 6px 14px; border: 1px solid #168AC0; border-radius: 3px; background: #229ED9; color: #FFF; cursor: pointer; }
.madefa-tg-replace { margin-top: 20px; padding: 16px; border: 1px solid #E5E5E5; background: #FAFAFA; }
.madefa-tg-replace label { display: block; margin-top: 12px; color: #555; font-weight: 700; }
.madefa-tg-replace textarea { display: block; width: 100%; margin: 7px 0 12px; padding: 8px; border: 1px solid #CDCDCD; background: #FFF; resize: vertical; }
.madefa-tg-thread-push-form { float: right; margin: -2px 0 0 10px; }
.madefa-tg-thread-push { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 29px; padding: 4px 11px; border: 1px solid #168AC0; border-radius: 4px; background: #229ED9; color: #FFF; font: 700 12px/19px Tahoma, sans-serif; letter-spacing: 0; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.madefa-tg-thread-push img { display: block; width: 16px; height: 16px; border-radius: 50%; }
.madefa-tg-thread-push:hover, .madefa-tg-thread-push:focus-visible { border-color: #1175A4; background: #168AC0; color: #FFF; }
.madefa-tg-thread-push:focus-visible { outline: 2px solid #C2D5E3; outline-offset: 2px; }
.madefa-tg-active-link { margin-top: 12px; }
.madefa-tg-active-link > span { display: block; margin-bottom: 7px; color: #526E7C; font-size: 12px; }
.madefa-tg-active-link > div { display: flex; align-items: stretch; gap: 6px; }
.madefa-tg-active-link input { flex: 1 1 140px; min-width: 0; padding: 6px; border: 1px solid #C2D5E3; background: #FFF; color: #333; }
.madefa-tg-active-link button, .madefa-tg-active-link a { flex: none; display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 6px 9px; border: 1px solid #168AC0; border-radius: 3px; background: #FFF; color: #168AC0; font: 12px/18px Tahoma, sans-serif; text-decoration: none !important; cursor: pointer; }
.madefa-tg-active-link button:hover, .madefa-tg-active-link a:hover { background: #EAF7FC; }
span.madefa-tg-thread-push.is-done { float: right; margin-left: 10px; border-color: #C2D5E3; background: #F2F8FB; color: #6997B3; cursor: default; }
@media (max-width: 680px) {
	.madefa-tg-nav-button span { display: none; }
	.madefa-tg-nav-button { margin-right: 4px; padding: 0 8px !important; }
	.madefa-tg-account-body { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
	.madefa-tg-avatar-wrap, .madefa-tg-avatar { width: 56px; height: 56px; }
	.madefa-tg-account-action { grid-column: 1 / -1; width: 100%; }
	.madefa-tg-account-action .madefa-tg-oidc-button { width: 100%; }
	.madefa-tg-profile dl { display: block; }
	.madefa-tg-profile dl div { margin-top: 8px; }
	.madefa-tg-history { overflow-x: auto; }
	.madefa-tg-history table { min-width: 520px; }
	.madefa-tg-thread-push-form, span.madefa-tg-thread-push.is-done { float: none; display: block; margin: 8px 0 0; }
	.madefa-tg-account-tabs ul { padding-left: 0; }
	.madefa-tg-account-tabs a { padding-right: 12px; padding-left: 12px; }
	.madefa-tg-active-link > div { flex-wrap: wrap; }
	.madefa-tg-active-link input { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .madefa-tg-thread-push { transition: none; } }
