/* Player service design. The original GM/feedback layout remains in styles.css. */
:root {
  color-scheme: light;
  --bg: #eef4fc;
  --sidebar: #f8faff;
  --surface: rgba(255,255,255,.94);
  --surface-strong: #fff;
  --surface-soft: #f2f6fd;
  --line: #dce5f2;
  --line-bright: #a6b8ee;
  --text: #213550;
  --muted: #5f728c;
  --muted-2: #73839b;
  --accent: #5269ce;
  --accent-2: #328abb;
  --danger: #b53d59;
  --success: #24866b;
  --warning: #9b6c22;
}

html, body { width: 100%; max-width: 100%; min-width: 280px; overflow-x: clip; }
body, body.guide-mode, body.app-mode { color: var(--text); background: radial-gradient(ellipse at 15% 0,#e5eafd,transparent 42%),linear-gradient(160deg,#f5f8ff,#ebf4fc); font-size: 14px; }
button, input, select, textarea { font-family: inherit; }
button { transition: background .18s ease,border-color .18s ease,box-shadow .18s ease; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #5269ce80; outline-offset: 3px; }
.ambient { opacity: .035; }
.panel { background: var(--surface); border-color: var(--line); box-shadow: 0 8px 32px #31497408; }
.topbar, .feedback-header { background: #f8fbffe8; border-color: var(--line); }

/* Shared full-height drawer is a direct child of body, outside all filters. */
.service-menu-trigger { display: grid; width: 44px; height: 44px; padding: 0; flex: 0 0 auto; place-items: center; border: 1px solid #d7e1f3; border-radius: 13px; color: #4c60b2; background: #fff; cursor: pointer; }
.service-menu-trigger:hover, .service-menu-trigger[aria-expanded="true"] { background: #eaf0ff; border-color: #b5c4ea; }
.service-menu-bars { display: grid; gap: 5px; }
.service-menu-bars i { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; }
.shared-service-menu { position: fixed; z-index: 100; inset: 0 auto 0 0; display: flex; width: min(340px,calc(100vw - 64px)); height: 100vh; height: 100dvh; margin: 0; padding: 0; flex-direction: column; overflow: hidden; visibility: hidden; border: 0; border-right: 1px solid #d9e3f0; background: #fafcff; box-shadow: 16px 0 70px #1d365926; pointer-events: none; transform: translateX(-105%); transition: visibility .24s,transform .24s cubic-bezier(.2,.8,.2,1); }
body.service-menu-open { overflow: visible; }
body.service-menu-open .shared-service-menu { visibility: visible; pointer-events: auto; transform: translateX(0); }
.service-popover-head { display: flex; min-height: 104px; padding: calc(24px + env(safe-area-inset-top)) 22px 22px; gap: 13px; align-items: center; flex: 0 0 auto; border-bottom: 1px solid #e5eaf3; }
.service-popover-head b { display: block; color: #223650; font-size: 17px; }
.service-popover-head small { display: block; margin-top: 6px; color: #8190a7; font-size: 10px; letter-spacing: .08em; }
.service-drawer-logo { position: relative; display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 13px; color: #5269ce; background: #edf1fb; font-size: 23px; font-weight: 800; }
.service-drawer-logo > span { position: absolute; }
.service-drawer-logo img { position: relative; width: 100%; height: 100%; object-fit: contain; background: #fafcff; border-radius: inherit; }
.service-drawer-logo img.is-unavailable { display: none; }
.shared-service-menu .service-nav-list { display: grid; min-height: 0; margin: 0; padding: 16px 12px; gap: 6px; flex: 1 1 auto; align-content: start; overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y; scrollbar-width: thin; }
.shared-service-menu .service-nav-item { display: grid; min-height: 66px; grid-template-columns: 38px minmax(0,1fr); gap: 12px; padding: 11px 12px; border-radius: 13px; color: #465a75; }
.shared-service-menu .service-nav-item.active { border-color: #d5dff8; color: #3d52ad; background: #ebf0ff; box-shadow: none; }
.shared-service-menu .service-nav-item:hover { transform: none; background: #f0f4fc; }
.shared-service-menu .service-nav-item b { font-size: 14px; font-weight: 650; }
.shared-service-menu .service-nav-item small { margin-top: 5px; color: #7789a0; font-size: 11px; }
.shared-service-menu .service-nav-icon { width: 38px; height: 38px; border: 0; border-radius: 11px; background: #edf0fb; }
.shared-service-menu .service-nav-icon svg { width: 19px; height: 19px; }
.service-nav-icon.home { color: #298770; background: #e7f5f0 !important; }
.service-nav-icon.sponsor { color: #a45689; background: #f7eaf2 !important; font-size: 27px; }
.service-sponsor-slot { padding: 11px 12px; flex: 0 0 auto; border-top: 1px solid #e5eaf3; }
.service-drawer-close { display: flex; min-height: calc(62px + env(safe-area-inset-bottom)); padding: 0 24px env(safe-area-inset-bottom); align-items: center; gap: 12px; flex: 0 0 auto; border: 0; border-top: 1px solid #e5eaf3; background: #f5f8fd; color: #5e718d; text-align: left; font-size: 13px; cursor: pointer; }
.service-drawer-close svg { width: 20px; height: 20px; }
.shared-service-backdrop { position: fixed; z-index: 99; inset: 0; padding: 0; border: 0; visibility: hidden; background: #192c4b69; opacity: 0; pointer-events: none; transition: opacity .24s,visibility .24s; touch-action: pan-y; }
body.service-menu-open .shared-service-backdrop { visibility: visible; opacity: 1; pointer-events: auto; }

/* Header, account and changelog. */
.portal-header { display: flex; min-height: 82px; height: auto; padding: 16px max(24px,calc((100vw - 1120px)/2)); align-items: center; gap: 16px; border-bottom: 1px solid #dde6f3; background: #f8fbffe8; }
.portal-service-anchor { flex: 0 0 auto; }
.portal-brand { gap: 10px; }
.portal-brand b { font-size: 18px; letter-spacing: .02em; }
.portal-brand small { font-size: 10px; letter-spacing: .04em; }
.portal-header-actions { gap: 14px; }
.portal-auth-actions button { min-height: 42px; padding: 0 16px; font-size: 13px; font-weight: 650; border-radius: 12px; }
.portal-register { background: #5269ce; box-shadow: 0 4px 14px #5269ce22; }
.portal-user { min-width: 0; }
.portal-user b { font-size: 13px; }
.portal-user small { font-size: 10px; }
.portal-online span, .portal-online small { font-size: 12px; }
.portal-online strong { font-size: 16px; }
.home-main { width: min(1060px,100%); margin: 0 auto; padding: 52px 30px 28px; }
.home-account-section, .home-changelog-section { width: 100%; margin: 0 auto; }
.home-section-heading { margin-bottom: 24px; text-align: left; }
.home-section-heading .portal-kicker { justify-content: flex-start; font-size: 11px; letter-spacing: .16em; }
.home-section-heading h1 { margin: 13px 0 12px; color: #20364f; font-size: clamp(28px,3.5vw,42px); letter-spacing: -.025em; line-height: 1.2; }
.home-section-heading h2 { margin: 10px 0; color: #20364f; font-size: 26px; letter-spacing: -.015em; }
.home-section-heading > p { margin: 0; color: #6b7e97; font-size: 14px; line-height: 1.7; }
.home-account-overview { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); align-items: center; gap: 28px; padding: 30px; border: 1px solid #dce5f2; border-radius: 24px; background: linear-gradient(115deg,#fff,#f8fbff); box-shadow: 0 12px 50px #4c699211; }
.home-account-primary { display: flex; min-width: 0; align-items: center; gap: 18px; }
.home-account-primary > div { min-width: 0; }
.home-account-avatar { display: grid; width: 64px; height: 64px; flex: 0 0 auto; place-items: center; border: 1px solid #dbe3fb; border-radius: 20px; color: #5269ce; background: #edf1fd; font-size: 25px; font-weight: 750; }
.home-account-primary small { color: #7a8ba1; font-size: 12px; }
.home-account-primary h2 { margin: 6px 0; color: #263c58; font-size: 24px; overflow-wrap: anywhere; }
.home-account-primary p { margin: 0; color: #70839b; font-size: 13px; line-height: 1.7; }
.home-account-details { display: grid; min-width: 0; margin: 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.home-account-details > div { min-width: 0; padding: 5px 0 5px 16px; border-left: 1px solid #e3eaf4; }
.home-account-details dt { color: #7b8ca4; font-size: 12px; }
.home-account-details dd { margin: 9px 0 0; color: #354c6c; font-size: 13px; font-weight: 650; line-height: 1.6; overflow-wrap: anywhere; }
.home-account-actions { display: flex; min-width: 0; grid-column: 1/-1; gap: 12px; }
.home-account-actions button { min-height: 46px; padding: 0 24px; border: 1px solid #d5def1; border-radius: 12px; color: #4c6286; background: #fff; font-size: 14px; font-weight: 650; cursor: pointer; }
.home-account-actions .home-register-action, .home-account-actions .home-gm-action { color: #fff; background: #5269ce; border-color: #5269ce; box-shadow: 0 6px 14px #5269ce1a; }
.home-account-overview .portal-session { grid-column: 1/-1; margin: -8px 0 0; justify-self: start; padding: 0; gap: 8px; border: 0; background: none; }
.portal-session strong, .portal-session small { font-size: 12px; font-weight: 400; }
.home-changelog-section { margin-top: 44px; }
.home-changelog-empty { margin: 0; padding: 36px 22px; border: 1px solid #dce5f2; border-radius: 20px; color: #8292a8; background: #ffffffb8; text-align: center; font-size: 13px; }
.changelog-heading { margin-bottom: 18px; }
.home-changelog-list { margin: 0; padding: 4px 0; list-style: none; }
.home-changelog-list > .changelog-day { position: relative; display: grid; min-width: 0; grid-template-columns: 8px minmax(0,1fr); column-gap: 12px; row-gap: 6px; padding: 10px 0; }
.home-changelog-list > .changelog-day:not(:last-child)::after { position: absolute; top: 15px; bottom: -15px; left: 3px; width: 1px; background: #dce4f3; content: ''; }
.changelog-day > time { grid-column: 2; color: #7a8ba3; font: 12px/1.5 Consolas,monospace; }
.changelog-day > .changelog-marker { position: relative; z-index: 1; grid-row: 1; grid-column: 1; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #7384cd; box-shadow: 0 0 0 3px #f1f4fd; }
.changelog-day > .changelog-entries { grid-column: 2; min-width: 0; margin: 0; padding: 0; list-style: none; border: 1px solid #dce5f2; border-radius: 9px; background: #ffffffb8; }
.changelog-entries > .changelog-entry { margin: 0; padding: 9px 12px; }
.changelog-entries > .changelog-entry + .changelog-entry { border-top: 1px solid #e3eaf4; }
.changelog-entry > article { min-width: 0; }
.changelog-entry > article > p { margin: 0; color: #405773; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.home-footer { margin: 26px 0 0; padding: 0 4px; color: #8796ab; font-size: 11px; }

/* Scroll the complete auth card so its background never ends mid-form. */
html.auth-open, body.auth-open { overflow: hidden !important; }
.auth-screen { display: flex; min-height: 100dvh; padding: 0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left)); align-items: center; flex-direction: column; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; background: #30486c66 !important; }
.auth-screen::before, .auth-screen::after { position: static; display: block; width: 1px; min-height: 24px; flex: 1 0 24px; border: 0; border-radius: 0; background: none; content: ''; animation: none; }
.auth-card { width: min(470px,100%); max-height: none; margin: 0; padding: 30px; flex: 0 0 auto; overflow: visible; border: 1px solid #e1e7f2; border-radius: 24px; background: #f7faff; color: #283e59; box-shadow: 0 24px 100px #172e5340; }
.auth-card::before { background: radial-gradient(circle at 100% 0,#e5ebfc,transparent 34%); }
.auth-card .auth-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; }
.auth-brand { margin-bottom: 28px; }
.auth-brand b { font-size: 15px; color: #354d70; letter-spacing: .08em; }
.auth-brand small { font-size: 10px; letter-spacing: .03em; }
.auth-copy > span { font-size: 10px; color: #6479c0; }
.auth-copy h1 { font-size: 28px; color: #253d5b; margin: 9px 0 12px; }
.auth-copy p { font-size: 13px; color: #72829b; }
.auth-tabs { height: 48px; margin: 22px 0; border-color: #dfe6f4; background: #eaf0fa; }
.auth-tabs button { font-size: 14px; color: #7989a3; }
.auth-tabs button.active { color: #4e64bb; background: #fff; box-shadow: 0 3px 9px #5b75ab12; }
.auth-form { gap: 18px; }
.auth-form label > span { margin-bottom: 8px; font-size: 13px; color: #576d89; letter-spacing: 0; }
.auth-input { height: 48px; border-color: #dce5f3; border-radius: 12px; background: #fff; }
.auth-input:focus-within { border-color: #9eaee3; background: #fff; box-shadow: 0 0 0 3px #5269ce16; }
.auth-input input { font-size: 15px; color: #2d4260; }
.auth-input input:focus, .auth-input input:focus-visible { outline: none; box-shadow: none; }
.auth-input input::placeholder { color: #a1aec1; }
.auth-field-hint, .auth-code-status { font-size: 11px; color: #7c8da5; line-height: 1.7; }
.auth-code-send { min-width: 100px; height: 48px; font-size: 12px; border-radius: 12px; border-color: #d4dff5; color: #5369ba; background: #eaf0fc; }
.auth-code-send:disabled { color: #7a8ba5; background: #edf1f8; }
.auth-error, .auth-code-status.error { color: #b73e59; font-size: 12px; line-height: 1.7; }
.auth-submit { height: 48px; font-size: 14px; color: #fff; background: #5269ce; box-shadow: 0 8px 20px #5269ce22; }
.auth-note { color: #8392aa; font-size: 11px; line-height: 1.7; text-align: center; }
.auth-agreement { padding: 16px; border: 1px solid #dbe4f2; border-radius: 13px; color: #677d95; background: #eef4fc; }
.auth-agreement h2 { margin: 0 0 10px; color: #4f6588; font-size: 13px; }
.auth-agreement p, .announcement-content p { margin: 9px 0; font-size: 12px; line-height: 1.85; }
.agreement-warning { color: #b54c61; font-weight: 600; }
.auth-form .agreement-accept { display: flex; margin-top: 14px; align-items: flex-start; gap: 9px; cursor: pointer; }
.agreement-accept input { width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 17px; accent-color: #5269ce; }
.auth-form .agreement-accept > span { margin: 0; font-size: 12px; line-height: 1.8; }
.announcement-dialog { width: min(450px,calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 30px; border: 1px solid #dde6f3; border-radius: 24px; background: #f8fbff; color: #687d98; box-shadow: 0 24px 100px #172e5340; }
.announcement-dialog::backdrop { background: #203a5d8c; backdrop-filter: blur(6px); }
.announcement-kicker { color: #768abd; font-size: 11px; letter-spacing: .08em; }
.announcement-content h2 { margin: 14px 0 22px; color: #2c4465; font-size: 26px; }
.announcement-content p { font-size: 14px; }
.announcement-content button { width: 100%; min-height: 46px; margin-top: 20px; border: 0; border-radius: 12px; background: #5269ce; color: #fff; font-size: 14px; cursor: pointer; }

/* Sponsor: separate drawer footer item and a calm, dedicated page. */
.sponsor-section { width: min(680px,100%); margin: 0 auto; }
.sponsor-tabs { display: flex; gap: 8px; margin: 28px 0 18px; padding: 6px; border: 1px solid #dce5f2; border-radius: 16px; background: #eaf0f9; }
.sponsor-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 11px; color: #73839a; background: transparent; font-size: 14px; cursor: pointer; }
.sponsor-tabs button[aria-selected="true"] { background: #fff; color: #3f68ba; box-shadow: 0 4px 14px #5269ce0d; }
.sponsor-tabs button[data-sponsor-method="wechat"][aria-selected="true"] { color: #29856b; }
.sponsor-code { padding: 24px; border: 1px solid #dce5f2; border-radius: 22px; color: #71859d; background: #fff; text-align: center; }
.sponsor-code p { margin: 0; font-size: 13px; }
.sponsor-code img { display: block; width: 100%; max-width: 390px; height: auto; margin: 22px auto 0; border-radius: 14px; }

/* OP and invite panels use the same typography, controls and spacing. */
.service-panel { max-width: 1120px; }
.service-panel-head { margin-bottom: 26px; }
.service-panel-head h1 { font-size: clamp(28px,4vw,38px); letter-spacing: -.02em; }
.service-panel-head p { font-size: 14px; }
.service-panel-status, .invite-code-state { font-size: 12px; }
.service-panel .panel-head h3 { color: #344c6f; font-size: 17px; }
.service-panel .panel-head small, .service-panel .panel-head span { font-size: 11px; }
.admin-changelog-card, .managed-invites-card, .admin-users-card, .invite-code-card, .invite-history-card { padding: 26px; margin-bottom: 18px; border-radius: 20px; }
.admin-changelog-card h2 { margin: 0 0 18px; color: #344c6f; font-size: 17px; }
.managed-invites-card .panel-head { margin-bottom: 20px; }
.admin-changelog-form { display: grid; grid-template-columns: 150px minmax(0,1fr) 70px; gap: 10px; align-items: end; }
.admin-changelog-form label { display: grid; min-width: 0; gap: 8px; }
.admin-changelog-form label span { color: #72839c; font-size: 12px; }
.admin-changelog-form input, .managed-invite-form input, .managed-invite-form select, .admin-email-ban-form input { box-sizing: border-box; width: 100%; height: 44px; min-width: 0; padding: 0 12px; border: 1px solid #dce5f2; border-radius: 11px; color: #344c6f; background: #f9fbff; font-size: 13px; }
.admin-changelog-form button { height: 44px; border: 0; border-radius: 11px; color: #fff; background: #5269ce; font-size: 13px; cursor: pointer; }
.admin-changelog-form button:disabled { opacity: .6; cursor: wait; }
#admin-changelog-status { min-height: 18px; margin-bottom: 0; color: #6b7f9d; font-size: 12px; overflow-wrap: anywhere; }
.managed-invite-form label > span, .admin-email-ban-form label span { font-size: 12px; }
.managed-invite-form small, .managed-invite-status, .admin-user-meta, .admin-invite-details, .admin-invite-list, .invite-code-hint, .invite-history-summary { font-size: 12px; line-height: 1.7; }
.service-panel .primary-action { min-height: 44px; color: #fff; background: #5269ce; border: 0; font-size: 13px; }
.service-panel .subtle-action, .service-panel .danger-action { min-height: 42px; font-size: 12px; }
.admin-search-box { height: 44px; background: #f5f8fd; border-color: #dce5f2; }
.admin-search-box input { font-size: 13px; }
.admin-user-row { padding: 18px 0; border-color: #e3eaf4; gap: 14px; }
.admin-user-avatar { color: #576cb4; background: #edf1fc; }
.admin-user-main b, .admin-user-name { color: #344c6f; font-size: 14px; }
.admin-user-main small { color: #6f839f; font-size: 12px; line-height: 1.7; }
.admin-user-actions button { min-height: 36px; padding: 0 12px; font-size: 12px; }
.admin-user-status { font-size: 11px; }
.admin-users-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid #e3eaf4; }
.admin-users-pagination .subtle-action { min-height: 38px; padding: 0 14px; border: 1px solid #dce5f2; border-radius: 8px; color: #5269b5; background: #f5f8fd; cursor: pointer; }
.admin-users-jump { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; color: #6f839f; font-size: 12px; }
.admin-users-jump label { display: flex; align-items: center; gap: 6px; }
.admin-users-jump input { width: 62px; height: 38px; border: 1px solid #dce5f2; border-radius: 8px; padding: 0 6px; color: #344c6f; background: #f5f8fd; text-align: center; }
.admin-users-pagination button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 580px) { .admin-users-jump { flex: 1 1 100%; order: 3; } }
.invite-stats b { color: #5369b9; }
.invite-code-display { border-color: #b9c8ec; color: #5168ba; background: #f1f5fe; }
.sidebar[hidden], body.app-mode:not(.gm-tools-visible) .mobile-menu { display: none !important; }
body.app-mode:not(.gm-tools-visible) .main { width: 100%; margin-left: 0; }
.sidebar-account-button b { color: #435b7e; }

@media (max-width:820px) {
  .portal-header { padding: 14px 20px; min-height: 76px; }
  .home-main { padding: 34px 22px 24px; }
  .home-account-overview { grid-template-columns: 1fr; gap: 24px; }
  .home-account-details > div:first-child { border-left: 0; padding-left: 0; }
  .auth-card { padding: 28px; }
}

@media (max-width:580px) {
  .portal-header { min-height: 70px; padding: 12px 16px; gap: 10px; }
  .portal-brand .brand-logo { display: none; }
  .portal-brand b { font-size: 18px; }
  .portal-brand small { display: none; }
  .portal-auth-actions { gap: 6px; }
  .portal-auth-actions button { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .portal-auth-actions .portal-login { display: none; }
  .portal-header-actions { gap: 0; }
  .portal-online { display: none; }
  .portal-user { height: 40px; max-width: 148px; padding: 3px 4px; gap: 6px; }
  .portal-user > span, .portal-user small { display: none; }
  .portal-user b { max-width: 88px; font-size: 12px; margin: 0 4px; }
  .service-menu-trigger { width: 40px; height: 40px; }
  .service-popover-head { min-height: 94px; padding: calc(20px + env(safe-area-inset-top)) 18px 20px; gap: 10px; }
  .service-popover-head b { font-size: 15px; }
  .service-popover-head small { font-size: 9px; }
  .service-drawer-logo { width: 38px; height: 38px; }
  .shared-service-menu .service-nav-list { padding: 12px 10px; gap: 5px; }
  .shared-service-menu .service-nav-item { min-height: 62px; grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 9px; }
  .shared-service-menu .service-nav-icon { width: 34px; height: 34px; }
  .shared-service-menu .service-nav-item b { font-size: 13px; }
  .shared-service-menu .service-nav-item small { font-size: 10px; }
  .service-sponsor-slot { padding: 9px 10px; }
  .home-main { padding: 28px 16px 22px; }
  .home-section-heading { margin-bottom: 20px; }
  .home-section-heading h1 { font-size: 29px; margin: 12px 0 10px; }
  .home-section-heading h2 { font-size: 24px; }
  .home-section-heading > p { font-size: 13px; }
  .home-account-overview { padding: 20px; gap: 22px; border-radius: 20px; }
  .home-account-primary { gap: 14px; }
  .home-account-avatar { width: 52px; height: 52px; border-radius: 16px; font-size: 22px; }
  .home-account-primary h2 { font-size: 22px; }
  .home-account-primary p { font-size: 12px; }
  .home-account-details { grid-template-columns: 1fr; gap: 0; }
  .home-account-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border: 0; border-bottom: 1px solid #e6edf6; }
  .home-account-details dt { flex: 0 0 auto; line-height: 1.6; }
  .home-account-details dd { margin: 0; font-size: 12px; text-align: right; }
  .home-account-actions { gap: 10px; }
  .home-account-actions button { padding: 0 8px; flex: 1; min-height: 44px; font-size: 13px; }
  .home-account-overview .portal-session { margin-top: -8px; min-height: 20px; }
  .portal-session strong { font-size: 11px; }
  .portal-session small { display: none; }
  .home-changelog-section { margin-top: 34px; }
  .home-changelog-list > .changelog-day { column-gap: 10px; padding: 8px 0; }
  .changelog-day > time { font-size: 11px; }
  .home-changelog-list > .changelog-day:not(:last-child)::after { top: 13px; bottom: -13px; }
  .changelog-entries > .changelog-entry { padding: 8px 10px; }
  .changelog-entry > article > p { font-size: 13px; }
  .home-footer { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 10px; }
  .auth-card { padding: 24px 20px; border-radius: 20px; }
  .auth-brand { margin-bottom: 24px; }
  .auth-input input { font-size: 16px; }
  .auth-agreement { padding: 14px; }
  .auth-agreement p { font-size: 11px; }
  .auth-form .agreement-accept > span { font-size: 11px; }
  .auth-note { font-size: 10px; }
  .announcement-dialog { padding: 25px; }
  .sponsor-code { padding: 18px; }
  .sponsor-code img { margin-top: 18px; }
  .service-panel-head { gap: 12px; align-items: flex-start; }
  .service-panel-head h1 { font-size: 27px; }
  .service-panel-head p { font-size: 12px; line-height: 1.8; }
  .service-panel-status { min-height: 30px; padding: 0 8px; font-size: 10px; }
  .admin-changelog-card, .managed-invites-card, .admin-users-card, .invite-code-card, .invite-history-card { padding: 18px 14px; border-radius: 17px; margin-bottom: 14px; }
  .admin-changelog-form { grid-template-columns: 104px minmax(0,1fr) 40px; gap: 6px; }
  .admin-changelog-form label span { font-size: 11px; }
  .admin-changelog-form input { height: 42px; padding: 0 5px; font-size: 11px; }
  .admin-changelog-form button { height: 42px; font-size: 11px; }
  .admin-user-row { grid-template-columns: 30px minmax(0,1fr); gap: 10px; padding: 16px 0; }
  .admin-user-actions { grid-column: 2; }
  .admin-user-actions button { min-height: 36px; }
  .admin-user-main b { font-size: 13px; }
  .admin-invite-details { grid-column: 2; }
  .admin-invite-details summary { font-size: 12px; }
  .admin-directory-tools { margin-top: 8px; }
  body.app-mode:not(.gm-tools-visible) .content { padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .shared-service-menu, .shared-service-backdrop, button { transition: none; }
}

.managed-invites-card .panel-head { align-items: center; gap: 12px; }
.managed-invites-card .panel-head > button { padding: 0 14px; border: 1px solid #dce5f2; border-radius: 10px; color: #6379a6; background: #f8faff; }
.managed-invite-form { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.8fr) minmax(0,1.1fr); gap: 16px; align-items: start; }
.managed-invite-form > label { display: grid; min-width: 0; gap: 8px; color: #6b7f9d; }
.managed-invite-form small { color: #8492a8; }
.managed-invite-form input:focus-visible, .managed-invite-form select:focus-visible { outline: 2px solid #9dadde; outline-offset: 2px; }
.managed-invite-form input[readonly] { color: #77859c; background: #f1f4f9; }
.managed-invite-form input:disabled, .managed-invite-form select:disabled { opacity: .6; }
.managed-invite-code-field input { font-family: Consolas, monospace; }
.managed-invite-form-actions { display: flex; gap: 10px; grid-column: 1 / -1; flex-wrap: wrap; }
.managed-invite-form-actions button { padding: 0 18px; border-radius: 11px; }
.managed-invite-form-actions .subtle-action { color: #6b7f9d; border: 1px solid #dce5f2; background: #f8faff; }
.managed-invite-status { min-height: 20px; margin: 12px 0 10px; color: #7587a1; overflow-wrap: anywhere; }
.managed-invite-status.success { color: #288979; }
.managed-invite-status.error { color: #bf5268; }
.managed-invite-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid #e3eaf4; }
.managed-invite-row:last-child { padding-bottom: 0; }
.managed-invite-content { min-width: 0; }
.managed-invite-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.managed-invite-heading strong { color: #344c6f; font-family: Consolas, monospace; font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.managed-invite-badge { display: inline-flex; flex: 0 0 auto; padding: 3px 9px; border-radius: 7px; color: #758399; background: #eff2f6; font-size: 11px; }
.managed-invite-badge.active { color: #278675; background: #e9f7f2; }
.managed-invite-badge.expired { color: #aa792f; background: #fff5e3; }
.managed-invite-content p { color: #7e8da3; font-size: 12px; line-height: 1.7; margin: 8px 0 0; overflow-wrap: anywhere; }

/* The command server owns its controls, UID and result panel. */
body.gc-mode .topbar > .online-pill,
body.gc-mode .topbar > .breadcrumb,
body.gc-mode .topbar > .top-actions { display: none; }
.gc-topbar { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: 16px; }
.gc-online { display: flex; align-items: center; gap: 8px; color: #347966; font-size: 13px; }
.gc-online i { width: 7px; height: 7px; border-radius: 50%; background: #2e9677; }
.gc-online strong { font-size: 17px; }
.gc-online.unavailable { color: #7b899d; }
.gc-online.unavailable i { background: #99a5b7; }
.gc-uid-trigger { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 15px; border: 1px solid #d8e1ef; border-radius: 12px; color: #354d6c; background: #fff; cursor: pointer; }
.gc-uid-trigger > span:first-child { font-size: 12px; }
.gc-uid-trigger strong { font-family: Consolas, monospace; font-size: 14px; }
.gc-workspace { width: min(1180px, 100%); margin: 0 auto; }
.gc-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.gc-heading h1 { margin: 9px 0; color: #263d5b; font-size: 30px; }
.gc-heading p, .gc-binding-copy { margin: 0; color: #718198; font-size: 13px; line-height: 1.75; }
.gc-service-status { padding: 13px 17px; margin: 0 0 22px; border: 1px solid #dae4f1; border-radius: 12px; color: #526781; background: #f1f5fb; font-size: 13px; line-height: 1.7; }
.gc-tabs { display: flex; gap: 8px; padding: 0 0 22px; overflow-x: auto; }
.gc-tabs button { min-height: 43px; padding: 10px 22px; flex: 0 0 auto; border: 1px solid #dbe3f0; border-radius: 11px; color: #637892; background: #fff; font-size: 13px; cursor: pointer; }
.gc-tabs button[aria-pressed="true"] { background: #5368ca; border-color: #5368ca; color: #fff; }
.gc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.gc-without-list .gc-grid { grid-template-columns: minmax(0, 1fr); }
.gc-data-panel, .gc-command-panel { min-width: 0; padding: 23px; border-radius: 20px; }
.gc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.gc-panel-head h2 { margin: 0; color: #304766; font-size: 17px; }
.gc-panel-head > span { color: #8694a9; font-size: 12px; }
.gc-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #d9e2f0; border-radius: 11px; background: #f9fbfe; }
.gc-search .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.gc-search input { width: 100%; min-width: 0; min-height: 45px; padding: 9px 0; border: 0; border-radius: 0; color: #344c6c; background: transparent; font: inherit; font-size: 13px; }
.gc-search:focus-within { border-color: #879bdc; box-shadow: 0 0 0 3px #5368ca12; }
.gc-search input:focus, .gc-search input:focus-visible { outline: none; box-shadow: none; }
.gc-search kbd { flex: 0 0 auto; color: #8a98ad; font-size: 10px; }
.gc-list { min-height: 230px; margin: 14px 0; }
.gc-data-row { display: flex; width: 100%; min-height: 63px; padding: 12px 13px; flex-direction: column; gap: 6px; text-align: left; border: 1px solid transparent; border-radius: 11px; color: #354c69; background: transparent; cursor: pointer; }
.gc-data-row b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.gc-data-row span { color: #8a98aa; font-family: Consolas, monospace; font-size: 11px; }
.gc-data-row:hover { background: #f3f6fc; }
.gc-data-row[aria-pressed="true"] { background: #edf1ff; border-color: #cdd8f6; }
.gc-list-empty { margin: 0; padding: 55px 10px; color: #8796ac; text-align: center; font-size: 13px; }
.gc-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid #e7edf5; }
.gc-pagination > span { color: #7e8da2; font-size: 12px; }
.gc-secondary { min-height: 36px; padding: 8px 13px; border: 1px solid #d8e1ef; border-radius: 9px; color: #566d8b; background: #f9fbfe; font-size: 12px; cursor: pointer; }
.gc-selection { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 15px; margin-bottom: 22px; }
.gc-selection b { color: #405776; font-size: 16px; }
.gc-selection span { color: #8494a9; font-family: Consolas, monospace; font-size: 12px; }
.gc-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.gc-field { display: grid; min-width: 0; gap: 9px; color: #5a6f8a; font-size: 13px; }
.gc-field input, .gc-field select, .gc-field textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #d8e2ef; border-radius: 10px; color: #334b6a; background: #f9fbfe; font: inherit; }
.gc-field textarea { line-height: 1.7; resize: vertical; font-family: Consolas, monospace; }
.gc-without-list .gc-options { grid-template-columns: minmax(0,1fr); }
.gc-field-note { margin: 0; color: #7f8ea4; font-size: 12px; line-height: 1.7; }
.gc-target { margin: 24px 0 10px; color: #546dc3; font-size: 12px; font-weight: 600; }
.gc-preview { margin: 0; padding: 17px; border: 1px solid #dae3f2; border-radius: 12px; background: #f2f5fc; white-space: pre-wrap; overflow-wrap: anywhere; }
.gc-preview code { color: #3d527a; font: 13px/1.8 Consolas, monospace; }
.gc-input-status { min-height: 20px; margin: 11px 0 17px; color: #7c8ea6; font-size: 12px; line-height: 1.7; }
.gc-primary { display: block; width: 100%; min-height: 47px; padding: 12px 18px; border: 1px solid #5368ca; border-radius: 12px; color: #fff; background: #5368ca; font-size: 14px; font-weight: 600; cursor: pointer; }
.gc-workspace button:disabled, .gc-binding-dialog button:disabled, .gc-uid-trigger:disabled { cursor: default; opacity: .5; }
.gc-result, .gm-send-result { margin: 19px 0 0; padding: 16px; border: 1px solid #dce5f0; border-radius: 12px; background: #f7fafd; color: #56708a; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.gc-result b, .gc-result code { display: block; }
.gc-result code { margin-top: 8px; color: #6c7e96; font-family: Consolas, monospace; }
.gc-result p { margin: 9px 0 0; white-space: pre-wrap; }
.gc-result[data-status="error"], .gm-send-result.error, .gc-service-status.error, .gc-binding-message.error { color: #bb5367; }
.gm-send-result { margin-bottom: 20px; white-space: pre-wrap; }
.gc-binding-dialog { width: min(540px,calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 27px; overflow-y: auto; border: 1px solid #dbe4f1; border-radius: 22px; color: #38516f; background: #f9fbff; box-shadow: 0 30px 90px #15283d40; }
.gc-binding-dialog::backdrop { background: #1a2e4970; backdrop-filter: blur(4px); }
.gc-binding-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.gc-binding-head small { color: #7789a5; font-size: 10px; letter-spacing: .12em; }
.gc-binding-head h2 { margin: 8px 0 0; font-size: 23px; }
.gc-bound-uids { display: flex; flex-wrap: wrap; gap: 9px; margin: 21px 0; }
.gc-bound-uids p { color: #7e8da2; font-size: 13px; }
.gc-uid-choice { padding: 10px 13px; border: 1px solid #d7e0ef; border-radius: 10px; background: #fff; color: #506b8c; font-size: 13px; cursor: pointer; }
.gc-uid-choice[aria-pressed="true"] { color: #485fbd; background: #ecf1ff; border-color: #acbce7; }
.gc-binding-form { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid #e0e7f1; }
.gc-binding-form > .gc-secondary { justify-self: start; }
.gc-binding-countdown, .gc-binding-message { margin: 0; color: #7b8fa4; font-size: 12px; line-height: 1.75; }
.home-account-actions { flex-wrap: wrap; }

.game-accounts-section { margin-top: 26px; padding: 24px 28px; border: 1px solid #dce5f2; border-radius: 20px; background: #fff; }
.game-accounts-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.game-accounts-heading h2 { margin: 0; color: #263954; font-size: 20px; }
.game-account-row { display: grid; grid-template-columns: minmax(100px,1fr) minmax(120px,1.5fr) minmax(70px,.7fr) auto; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid #edf1f7; }
.game-account-row:last-child { border-bottom: 0; }
.game-account-row > div { min-width: 0; }
.game-account-row small { display: block; margin-bottom: 5px; color: #8190a6; font-size: 11px; }
.game-account-row strong, .game-account-row span { color: #344963; font-size: 13px; overflow-wrap: anywhere; }
.game-account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
.game-account-action { padding: 2px 0; border: 0; background: transparent; color: #3777df; font-size: 12px; cursor: pointer; }
.game-account-action:hover { color: #1754b8; text-decoration: underline; }
.game-account-action:disabled { color: #9aa8bc; cursor: default; text-decoration: none; }
.game-accounts-empty, .game-accounts-error { margin: 18px 0 8px; font-size: 13px; line-height: 1.7; color: #8190a6; }
.game-accounts-error { color: #b73e59; }
.game-account-editor { width: min(calc(100% - 32px),440px); max-height: calc(100dvh - 40px); padding: 26px; overflow: auto; border: 1px solid #dce5f2; border-radius: 20px; background: #fff; color: #263954; box-shadow: 0 24px 80px #17284033; }
.game-account-editor::backdrop { background: #17284066; backdrop-filter: blur(5px); }
.game-account-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.game-account-editor-head h2 { margin: 0; font-size: 20px; }
.game-account-editor-head p { margin: 8px 0 14px; color: #8190a6; font-size: 12px; }
.game-account-editor-close { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: #f2f5fa; color: #697e9a; font-size: 23px; cursor: pointer; }
.game-account-field { display: block; margin: 14px 0; }
.game-account-field > span { display: block; margin-bottom: 8px; font-size: 12px; color: #697e9a; }
.game-account-field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #dce5f2; border-radius: 9px; background: #fff; color: #263954; font-size: 13px; }
.game-account-field input:focus { outline: 2px solid #83adef; outline-offset: 1px; }
.game-account-password-visibility { display: flex; width: fit-content; align-items: center; gap: 8px; color: #3777df; font-size: 12px; cursor: pointer; }
.game-account-password-visibility input { margin: 0; accent-color: #3777df; }
.game-account-editor-message { min-height: 20px; margin: 14px 0; color: #617895; font-size: 12px; line-height: 1.6; }
.game-account-editor-message.error { color: #b73e59; }
.game-account-editor-submit { width: 100%; height: 44px; border: 0; border-radius: 10px; background: #3777df; color: #fff; font-weight: 600; cursor: pointer; }
.game-account-editor-submit:disabled { opacity: .6; cursor: wait; }
@media (max-width: 760px) {
  .game-accounts-section { padding: 20px; }
  .game-account-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px 20px; }
  .game-account-actions { align-self: end; justify-content: flex-start; }
}
@media (max-width: 850px) {
  .gc-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .gc-command-panel { grid-row: 1; }
  .gc-without-list .gc-command-panel { grid-row: auto; }
}
@media (max-width: 600px) {
  .gc-topbar { gap: 8px; }
  .gc-online { gap: 5px; font-size: 10px; }
  .gc-online strong { font-size: 14px; }
  .gc-uid-trigger { min-height: 40px; padding: 8px; gap: 6px; }
  .gc-uid-trigger > span:first-child { font-size: 10px; }
  .gc-uid-trigger strong { font-size: 12px; }
  .gc-heading { gap: 10px; }
  .gc-heading h1 { font-size: 25px; }
  .gc-heading p { font-size: 12px; }
  .gc-heading > button { flex: 0 0 auto; }
  .gc-data-panel, .gc-command-panel { padding: 18px; }
  .gc-tabs { padding-bottom: 17px; gap: 7px; }
  .gc-tabs button { padding: 9px 15px; min-height: 40px; }
  .gc-options { gap: 13px; }
  .gc-binding-dialog { padding: 21px; }
}
.managed-invite-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.managed-invite-actions button { min-height: 40px; padding: 0 12px; border-radius: 9px; font-size: 12px; }
.managed-invite-actions .subtle-action { color: #6179a9; border: 1px solid #dce5f2; background: #f7f9fd; }
.managed-invite-actions .danger-action { color: #b95467; border: 1px solid #efdbe0; background: #fff6f8; }
.managed-invite-actions button:disabled { opacity: .5; cursor: wait; }
.admin-code-tabs { display: flex; gap: 8px; margin: 0 0 16px; padding: 4px; border-radius: 13px; background: #f1f4fb; }
.admin-code-tabs button { min-height: 38px; flex: 1; border: 0; border-radius: 10px; color: #71819a; background: transparent; cursor: pointer; font-size: 13px; }
.admin-code-tabs button.active { color: #3854a6; background: #fff; box-shadow: 0 3px 10px rgba(61,84,166,.1); }
.admin-cdk-form { grid-template-columns: minmax(0,1.1fr) minmax(0,.8fr) minmax(0,1.1fr); }
.admin-cdk-items-field { display: grid; grid-column: 1 / -1; gap: 8px; color: #6b7f9d; }
.admin-cdk-item-picker { display: flex; gap: 8px; }
.admin-cdk-item-picker input { flex: 1; }
.admin-cdk-item-results, .admin-cdk-selected-items { display: grid; gap: 6px; }
.admin-cdk-item-results:empty { display: none; }
.cdk-item-result, .cdk-selected-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 7px 10px; border: 1px solid #e2e9f4; border-radius: 9px; color: #4b6181; background: #fbfcff; font-size: 12px; }
.cdk-item-result button, .cdk-selected-item button { min-height: 28px; padding: 0 9px; border: 1px solid #dce5f2; border-radius: 7px; color: #5570a7; background: #fff; cursor: pointer; font-size: 11px; }
.cdk-selected-item input { width: 90px; height: 30px; padding: 0 7px; border: 1px solid #dce5f2; border-radius: 7px; color: #425a7d; background: #fff; }
.cdk-redeem-card { padding: 26px; margin-bottom: 18px; border-radius: 20px; }
.cdk-redeem-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 16px; align-items: end; }
.cdk-redeem-form label { display: grid; gap: 8px; color: #6b7f9d; font-size: 12px; }
.cdk-redeem-form input, .cdk-redeem-form select { box-sizing: border-box; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #dce5f2; border-radius: 11px; color: #344c6f; background: #f9fbff; font-size: 13px; }
.cdk-redeem-form button { min-height: 44px; white-space: nowrap; }
.cdk-redeem-message { min-height: 22px; margin: 14px 0 0; color: #71819a; font-size: 12px; }
.cdk-redeem-message.error { color: #bf5268; }
.cdk-redeem-message.success { color: #288979; }
.cdk-redeem-result { display: grid; gap: 6px; padding: 14px; border-radius: 12px; color: #287f70; background: #edf9f5; font-size: 13px; }
.cdk-redeem-result span { color: #557b75; font-size: 12px; line-height: 1.7; }
.cdk-pages { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.cdk-panel button, .admin-cdk-card button { min-height: 36px; padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.cdk-panel button:disabled, .admin-cdk-card button:disabled { opacity: .5; cursor: not-allowed; }
.cdk-record { display: grid; gap: 10px; margin: 14px 0; padding: 16px; border: 1px solid #dce5f2; border-radius: 12px; background: #fbfcff; color: #425a7d; overflow-wrap: anywhere; }
.cdk-record p { margin: 0; font-size: 12px; line-height: 1.8; }
.cdk-record-item { display: grid; gap: 6px; font-size: 12px; line-height: 1.8; }
.cdk-record summary { padding: 6px 0; cursor: pointer; }
.cdk-resolve-form { display: grid; gap: 10px; margin-top: 8px; }
.cdk-resolve-form input, .cdk-resolve-form select { min-width: 0; max-width: 100%; padding: 10px; border: 1px solid #dce5f2; border-radius: 8px; }
.cdk-selected-item span, .cdk-item-result span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.cdk-selected-item input, .cdk-selected-item button, .cdk-item-result button { flex-shrink: 0; }
.admin-cdk-item-picker input { min-width: 0; }
.admin-cdk-card .error, .cdk-panel .error { color: #bf5268; }
.admin-cdk-card button:focus-visible, .cdk-panel button:focus-visible, .admin-code-tabs button:focus-visible { outline: 3px solid #89b8e7; outline-offset: 3px; }
@media (max-width: 720px) {
  .cdk-redeem-form { grid-template-columns: minmax(0,1fr); }
  .cdk-redeem-card { padding: 18px; }
  .cdk-selected-item { flex-wrap: wrap; }
  .cdk-selected-item span { flex-basis: 100%; }
  .managed-invite-form { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
  .managed-invite-code-field, #admin-invite-expiry-field { grid-column: 1 / -1; }
  .managed-invite-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .managed-invite-actions { width: 100%; }
  .managed-invite-actions button { flex: 1; min-height: 42px; }
}
@media (max-width: 400px) {
  .managed-invite-form { grid-template-columns: minmax(0,1fr); }
  .admin-cdk-form, .cdk-redeem-form { grid-template-columns: minmax(0,1fr); }
  .cdk-redeem-form button { width: 100%; }
  .managed-invite-form input, .managed-invite-form select { font-size: 13px; }
  .managed-invite-form-actions { display: grid; grid-template-columns: 1fr; }
  .managed-invite-form-actions button { width: 100%; }
}

/* Legacy account claim (ADR 003) */
.claim-section { width: min(680px,100%); margin: 0 auto; }
.claim-window { margin: 20px 0; padding: 14px 16px; border: 1px solid #dce5f2; border-radius: 14px; background: #f4f7fb; color: #4d6079; font-size: 14px; line-height: 1.6; }
.claim-window.open { border-color: #b8dcc6; background: #eef8f1; color: #2f6b47; }
.claim-card { margin-top: 18px; padding: 20px; border: 1px solid #dce5f2; border-radius: 18px; background: #fff; }
.claim-card h3 { margin: 0 0 8px; color: #20364f; font-size: 18px; }
.claim-card p { margin: 0 0 12px; color: #5f7290; font-size: 14px; line-height: 1.7; }
.claim-uid-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #edf1f7; color: #20364f; font-size: 15px; }
.claim-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.claim-form label { display: grid; flex: 1 1 200px; gap: 6px; color: #4d6079; font-size: 13px; }
.claim-form input { min-height: 44px; padding: 0 12px; border: 1px solid #d3deec; border-radius: 12px; color: #20364f; font-size: 15px; }
.claim-link { padding: 0 2px; border: 0; background: none; color: #2f6fd6; font: inherit; text-decoration: underline; cursor: pointer; }
.claim-message { min-height: 20px; }
.claim-message.error { color: #c0392b; }
.auth-claim-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #eef8f1; color: #2f6b47; font-size: 13px; line-height: 1.6; }
.claim-section .primary-action { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; color: #fff; background: #5269ce; box-shadow: none; font-size: 13px; }
.claim-section .subtle-action { min-height: 38px; padding: 0 14px; border: 1px solid #d3deec; border-radius: 10px; color: #3d5577; background: #f4f7fb; font-size: 13px; cursor: pointer; }
.claim-section .subtle-action:disabled, .claim-section .primary-action:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 480px) {
  .claim-card { padding: 16px; }
  .claim-form button { width: 100%; }
}
