:root {
  color: #17213b;
  background: #f4f6fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --blue: #364f91;
  --blue-dark: #26396e;
  --red: #d20011;
  --ink: #17213b;
  --muted: #66708a;
  --line: #dce1ed;
  --surface: #ffffff;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f4f6fb; }
button, input, select { font: inherit; }
a { color: var(--blue); }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr);
}

.login-intro {
  padding: clamp(42px, 7vw, 96px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 16%, rgba(210, 0, 17, .22), transparent 24%),
    linear-gradient(145deg, #1d2d5e 0%, var(--blue) 62%, #283e79 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-panel, .header-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}
.logo-panel { background: #fff; border-radius: 14px; padding: 13px 17px; margin-bottom: 46px; box-shadow: 0 14px 34px rgba(7, 16, 46, .2); }
.logo-panel img { display: block; width: min(250px, 54vw); height: auto; }
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.login-intro .eyebrow { color: #ffb8be; }
.login-intro h1 { max-width: 700px; margin: 0; font-size: clamp(38px, 5vw, 70px); line-height: 1.08; letter-spacing: -.04em; }
.intro-copy { max-width: 650px; margin: 24px 0 0; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.8; }
.trust-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 48px 0 0; padding: 0; list-style: none; }
.trust-list li { min-height: 126px; padding: 18px; border: 1px solid rgba(255,255,255,.17); border-radius: 16px; background: rgba(255,255,255,.07); }
.trust-list li > span { color: #ff9da6; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.trust-list div { display: grid; gap: 6px; margin-top: 17px; }
.trust-list b { font-size: 15px; }
.trust-list small { color: rgba(255,255,255,.7); line-height: 1.55; }

.login-card { align-self: center; width: min(470px, calc(100% - 48px)); margin: 40px auto; padding: clamp(30px, 5vw, 52px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 30px 90px rgba(32, 49, 91, .12); }
.card-heading h2 { margin: 0; font-size: 31px; letter-spacing: -.03em; }
.card-heading > p:last-child { margin: 10px 0 28px; color: var(--muted); }
.field { display: grid; gap: 9px; margin: 0 0 18px; color: #303a53; font-size: 14px; font-weight: 700; }
.current-school-manual[hidden] { display: none; }
.field input, .field select { width: 100%; height: 48px; padding: 0 14px; color: var(--ink); border: 1px solid #cbd2e1; border-radius: 10px; outline: none; background: #fff; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(54,79,145,.11); }
.captcha-row { display: grid; grid-template-columns: 112px 1fr auto; gap: 8px; align-items: center; }
.captcha-row img { width: 112px; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: #f7f8fb; }
.captcha-row input { height: 44px; }
.text-button { padding: 0; border: 0; color: var(--blue); background: none; cursor: pointer; font-size: 13px; }
.agreement { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.agreement input { margin-top: 4px; accent-color: var(--blue); }
.agreement a { margin: 0 2px; }
.primary-button, .secondary-button { border-radius: 10px; cursor: pointer; font-weight: 800; transition: transform .15s, opacity .15s; }
.primary-button { width: 100%; height: 50px; border: 0; color: #fff; background: var(--blue); box-shadow: 0 11px 24px rgba(54,79,145,.2); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .62; transform: none; }
.secondary-button { padding: 10px 16px; border: 1px solid var(--line); color: var(--blue); background: #fff; }
.form-message { min-height: 20px; margin: 0 0 12px; color: var(--red); font-size: 13px; line-height: 1.5; }
.form-message.success { color: #147048; }
.support-note { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #eef0f5; color: var(--muted); font-size: 12px; line-height: 1.6; }

.account-auth-tabs { display: flex; gap: 8px; margin: 24px 0 26px; padding-bottom: 10px; border-bottom: 1px solid #eef0f5; }
.account-auth-tab { padding: 0 2px 10px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 14px; font-weight: 800; }
.account-auth-tab.active { color: var(--blue); border-bottom: 2px solid var(--red); }
.registration-closed-note { margin: -8px 0 22px; padding: 11px 13px; border: 1px solid #f0d2d5; border-radius: 10px; color: #8a2530; background: #fff7f7; font-size: 13px; line-height: 1.55; }
.account-user-menu { position: relative; }
.account-avatar-button { display: inline-flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; cursor: pointer; font-size: 13px; font-weight: 800; }
.account-avatar-button > span:first-child { display: grid; width: 30px; height: 30px; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: var(--red); }
.account-avatar-button > span:first-child img { width: 100%; height: 100%; object-fit: cover; }
.account-user-popover { position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; display: grid; min-width: 150px; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 18px 45px rgba(23,33,59,.14); }
.account-user-popover a, .account-user-popover button { padding: 10px 12px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; text-align: left; text-decoration: none; cursor: pointer; font-size: 13px; }
.account-user-popover a:hover, .account-user-popover button:hover { color: var(--blue); background: #f2f5fd; }

.profile-main { width: min(1120px, calc(100% - 40px)); margin: 34px auto 80px; }
.account-assets-section { border-color: #cfd9f1; background: linear-gradient(135deg, #f6f8ff 0%, #fff 72%); }
.account-assets-status { color: var(--muted); font-size: 14px; }
.account-assets-content { display: grid; gap: 18px; }
.asset-balance { display: flex; align-items: baseline; gap: 12px; padding: 18px 20px; color: #fff; border-radius: 14px; background: linear-gradient(135deg, #18213b, #364f91); }
.asset-balance strong { font: 800 38px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.asset-balance span { color: #dce4ff; font-size: 13px; }
.asset-quota-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.asset-quota { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.asset-quota b { display: block; margin-top: 6px; font: 700 15px ui-monospace, SFMono-Regular, Menlo, monospace; }
.asset-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.asset-actions a { color: var(--blue); font-weight: 700; }
.asset-ledger { display: grid; gap: 8px; }
.asset-ledger-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.asset-ledger-row small { display: block; color: var(--muted); margin-top: 3px; }
.asset-plus { color: #138a52; }.asset-minus { color: var(--red); }
.profile-hero { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: clamp(28px, 5vw, 52px); border-radius: 24px; color: #fff; background: linear-gradient(132deg, #273b75, var(--blue)); box-shadow: 0 24px 56px rgba(37,57,110,.18); }
.profile-hero .eyebrow { color: #ffbdc2; }
.profile-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.04em; }
.profile-hero p:not(.eyebrow) { max-width: 630px; margin: 15px 0 0; color: rgba(255,255,255,.76); line-height: 1.7; }
.hero-link { flex: 0 0 auto; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
#profileForm { display: grid; gap: 18px; margin-top: 22px; }
.profile-section { padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 34px rgba(37,53,91,.05); }
.profile-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.profile-section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.profile-section-heading > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: right; }
.profile-identity-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: start; }
.profile-avatar-editor { display: grid; justify-items: center; gap: 11px; text-align: center; }
.profile-avatar-large { display: grid; width: 112px; height: 112px; place-items: center; overflow: hidden; border-radius: 30px; color: #fff; background: linear-gradient(145deg, var(--blue), #6078bd); font-size: 42px; font-weight: 900; }
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-editor small, .certificate-editor small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.upload-button { display: inline-flex; justify-content: center; cursor: pointer; font-size: 12px; }
.profile-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.profile-field-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.directory-status { margin-top: -4px; }
.certificate-editor { display: grid; grid-template-columns: 116px auto; gap: 9px 14px; align-items: center; }
.field-label { color: #303a53; font-size: 14px; font-weight: 700; }
.certificate-preview { display: grid; width: 116px; height: 146px; grid-row: span 3; place-items: center; overflow: hidden; border: 1px dashed #cbd2e1; border-radius: 10px; color: var(--muted); background: #f7f8fb; font-size: 12px; }
.certificate-preview img { width: 100%; height: 100%; object-fit: cover; }
.repeat-list { display: grid; gap: 10px; }
.repeat-row { display: flex; gap: 12px; align-items: end; padding: 14px; border: 1px solid #e7eaf1; border-radius: 13px; background: #fafbfe; }
.repeat-fields { display: grid; flex: 1; grid-template-columns: .7fr 1.2fr .85fr 1fr; gap: 10px; }
.education-repeat-fields { grid-template-columns: .72fr .9fr .9fr .9fr 1.35fr .72fr .72fr; }
.repeat-field { display: grid; gap: 6px; color: #303a53; font-size: 12px; font-weight: 700; }
.repeat-field input, .repeat-field select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #cbd2e1; border-radius: 8px; color: var(--ink); background: #fff; outline: none; font-size: 13px; font-weight: 500; }
.repeat-field input:focus, .repeat-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(54,79,145,.1); }
.remove-row-button { height: 40px; padding: 0 10px; border: 0; color: var(--red); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.add-row-button { margin-top: 14px; font-size: 12px; }
.profile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.profile-actions .form-message { flex: 1; margin: 0; }
.profile-save-button { width: auto; padding: 0 30px; }

.account-header { height: 82px; padding: 0 clamp(24px, 6vw, 88px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; }
.header-brand { gap: 16px; color: var(--ink); }
.header-brand img { width: 170px; }
.header-brand span { display: grid; padding-left: 16px; border-left: 1px solid var(--line); }
.header-brand small { margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.account-main { width: min(1180px, calc(100% - 48px)); margin: 46px auto 80px; }
.account-hero { position: relative; overflow: hidden; padding: clamp(30px, 5vw, 58px); border-radius: 24px; color: #fff; background: linear-gradient(132deg, #273b75, var(--blue)); box-shadow: 0 24px 56px rgba(37,57,110,.18); }
.account-hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -80px; top: -100px; border: 50px solid rgba(210,0,17,.14); border-radius: 50%; }
.account-hero .eyebrow { color: #ffbdc2; }
.account-hero h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.04em; }
.account-hero > p:not(.eyebrow) { position: relative; z-index: 1; color: rgba(255,255,255,.75); }
.identity-summary { position: relative; z-index: 1; display: flex; gap: 46px; margin: 34px 0 0; }
.identity-summary div { display: grid; gap: 7px; }
.identity-summary dt { color: rgba(255,255,255,.62); font-size: 12px; }
.identity-summary dd { margin: 0; font-size: 15px; font-weight: 800; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #64dfa4; box-shadow: 0 0 0 4px rgba(100,223,164,.15); }
.application-section { margin-top: 46px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 28px; }
.section-heading > p { color: var(--muted); font-size: 14px; }
.application-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.application-card { display: grid; min-height: 230px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 32px rgba(37,53,91,.06); }
.application-card .app-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: #fff; background: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.application-card h3 { margin: 22px 0 7px; font-size: 18px; }
.application-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.application-meta { align-self: end; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; }
.role-pill { padding: 6px 9px; border-radius: 999px; color: var(--blue); background: #eef2ff; font-size: 11px; font-weight: 800; }
.open-link { font-size: 13px; font-weight: 800; text-decoration: none; }
.application-card.disabled { box-shadow: none; background: #f9fafc; }
.application-card.disabled .app-mark { background: #a2a9b8; }
.application-card.disabled .role-pill { color: #737b8b; background: #e9ebf0; }
.empty-page { width: min(620px, calc(100% - 44px)); min-height: 100vh; margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-page img { width: min(270px, 70vw); margin-bottom: 40px; }
.empty-page h1 { margin: 0 0 28px; }
.link-button { display: grid; width: auto; height: 46px; padding: 0 20px; place-items: center; text-decoration: none; }

@media (max-width: 940px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { min-height: auto; padding: 44px 28px 56px; }
  .logo-panel { margin-bottom: 34px; }
  .login-intro h1 { font-size: clamp(36px, 9vw, 54px); }
  .trust-list { margin-top: 36px; }
  .login-card { margin: 42px auto 64px; }
  .application-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { min-height: 0; }
  .login-card { width: calc(100% - 28px); padding: 28px 20px; border-radius: 18px; }
  .captcha-row { grid-template-columns: 96px 1fr; }
  .captcha-row img { width: 96px; }
  .captcha-row .text-button { grid-column: 2; justify-self: start; }
  .account-header { height: auto; padding: 18px 20px; }
  .header-brand img { width: 132px; }
  .header-brand span { display: none; }
  .account-main { width: calc(100% - 28px); margin-top: 22px; }
  .identity-summary { gap: 25px; flex-direction: column; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .account-avatar-button > span:last-child { display: none; }
  .profile-main { width: calc(100% - 28px); margin-top: 22px; }
  .profile-hero { align-items: flex-start; flex-direction: column; gap: 18px; border-radius: 18px; }
  .profile-section { padding: 22px 18px; border-radius: 17px; }
  .profile-section-heading { align-items: flex-start; flex-direction: column; }
  .profile-section-heading > p { text-align: left; }
  .profile-identity-grid, .profile-field-grid, .profile-field-grid-3 { grid-template-columns: 1fr; }
  .profile-avatar-editor { justify-items: start; text-align: left; }
  .repeat-row { align-items: stretch; flex-direction: column; }
  .repeat-fields { grid-template-columns: 1fr 1fr; }
  .education-repeat-fields { grid-template-columns: 1fr 1fr; }
  .repeat-field-wide { grid-column: span 2; }
  .remove-row-button { align-self: flex-start; }
  .profile-actions { align-items: stretch; flex-direction: column; }
  .profile-save-button { width: 100%; }
  .asset-quota-grid { grid-template-columns: 1fr; }
  .asset-actions { align-items: flex-start; flex-direction: column; }
}

/* Native hidden state must win over the account menu grid layout. */
.account-user-popover[hidden] { display: none; }

/* CMS personal center: clear sections, readable copy and a persistent save action. */
body { line-height:1.65; }
:root { --muted:#58667b; }
.field input,.field select { font-size:16px; min-width:0; }
.form-message,.profile-help,.support-note { font-size:14px; line-height:1.65; }
.login-intro h1 { font-size:clamp(28px,3vw,42px); line-height:1.35; }
.login-card { padding:32px; }
.registration-closed-note { font-size:13px; }
.password-visibility { display:flex; align-items:center; gap:8px; font-size:14px; margin:-4px 0 18px; }
.password-visibility input { width:18px; height:18px; accent-color:#364f91; }
.profile-main { padding-bottom:100px; }
.profile-hero { padding:28px 32px; margin-bottom:20px; }
.profile-hero h1 { font-size:30px; line-height:1.4; }
.profile-section-nav { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 12px; }
.profile-section-nav a { padding:10px 14px; min-height:44px; border:1px solid #dbe2ed; border-radius:8px; background:white; color:#364f91; font-size:14px; text-decoration:none; }
.profile-section-nav a:hover,.profile-section-nav a:focus-visible { background:#eef2fb; }
.profile-form-guide { color:#58667b; font-size:14px; margin:0 0 20px; }
.profile-section { scroll-margin-top:20px; padding:24px; border-radius:14px; box-shadow:0 3px 12px #24344e05; }
.profile-section-heading { align-items:flex-start; gap:16px; }
.profile-section-heading h2 { font-size:20px; }
.profile-section-heading p { text-align:left; font-size:14px; line-height:1.7; }
.profile-avatar-editor small,.certificate-editor small { font-size:13px; line-height:1.65; }
.required-label { font-size:12px; color:#ad1725; font-style:normal; margin-left:5px; }
.profile-actions { position:fixed; z-index:25; bottom:0; left:50%; transform:translateX(-50%); width:min(1180px,calc(100% - 32px)); box-sizing:border-box; margin:0; padding:14px 20px max(14px,env(safe-area-inset-bottom)); background:#fff; border:1px solid #dbe2ed; border-radius:12px 12px 0 0; box-shadow:0 -5px 22px #26395b0d; display:flex; align-items:center; gap:16px; }
.profile-save-hint { color:#58667b; font-size:13px; }
.profile-actions .form-message { margin:0; flex:1; }
.profile-actions .profile-save-button { flex:0 0 auto; min-height:46px; margin-left:auto; }
.account-hero { padding:32px; }
.account-hero h1 { font-size:clamp(28px,3vw,40px); }
.account-main { margin-top:28px; }
.repeat-row .field input,.repeat-row .field select { font-size:14px; }
@media(max-width:760px) {
 .login-shell { display:flex; flex-direction:column; }
 .login-intro { padding:24px 24px 8px; }
 .login-intro .eyebrow,.login-intro .intro-copy,.login-intro .trust-list { display:none; }
 .login-intro h1 { font-size:22px; margin:18px 0 0; }
 .login-card { width:calc(100% - 32px); padding:24px; margin:16px auto 28px; box-sizing:border-box; }
 .login-card .account-auth-tabs { margin-top:0; }
 .profile-main { padding-bottom:150px; }
 .profile-hero,.account-hero { padding:24px; }
 .profile-hero h1 { font-size:26px; }
 .profile-section { padding:20px; }
 .profile-section-heading { flex-direction:column; gap:8px; }
 .profile-section-heading p { max-width:none; }
 .profile-section-nav { flex-wrap:nowrap; overflow-x:auto; padding-bottom:8px; }
 .profile-section-nav a { flex:0 0 auto; white-space:nowrap; }
 .profile-save-hint { display:none; }
 .profile-actions { gap:10px; padding:12px 14px max(12px,env(safe-area-inset-bottom)); }
 .profile-actions .profile-save-button { padding:12px 16px; font-size:14px; }
 .profile-actions .form-message { font-size:13px; min-width:0; overflow-wrap:anywhere; }
 .repeat-row .field input,.repeat-row .field select { font-size:16px; }
}
@media(max-width:380px) {
 .captcha-row { grid-template-columns:112px minmax(0,1fr); }
 .captcha-row .text-button { grid-column:1/-1; justify-self:start; min-height:36px; }
 .captcha-row input { width:100%; }
 .profile-actions { flex-wrap:wrap; }
 .profile-actions .form-message:not(:empty) { flex-basis:100%; }
}

.registration-closed-note { color:#364f91; border-color:#dbe2ed; background:#f5f7fc; }
.login-card:has([data-registration-closed]:not([hidden])) .account-auth-tabs { display:none; }
.profile-actions .form-message:empty { display:none; }
@media(max-width:760px) {
 .login-intro .logo-panel { margin-bottom:8px; padding:10px 14px; }
 .login-intro .logo-panel img { width:160px; }
 .login-intro h1 { margin-top:8px; font-size:20px; }
 .profile-hero .eyebrow { display:none; }
 .profile-hero p { font-size:15px; }
 .profile-avatar-large { width:64px; height:64px; border-radius:18px; font-size:28px; }
 .profile-avatar-editor { display:grid; grid-template-columns:64px minmax(0,1fr); gap:12px; align-items:center; }
 .profile-avatar-editor .upload-button { justify-self:start; margin:0; }
 .profile-avatar-editor small { grid-column:1/-1; text-align:left; }
 .profile-actions { flex-direction:row; }
}

@media(max-width:760px) {
 .profile-actions { flex-wrap:wrap; }
 .profile-actions .form-message:not(:empty) { flex:1 0 100%; width:100%; }
 .profile-actions .profile-save-button { width:100%; margin-left:0; }
}

.account-hero { margin-bottom:24px; }
.identity-summary dd { overflow-wrap:anywhere; }
@media(max-width:760px) { .identity-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:24px 0 0; } }

.login-retention { padding:14px 0 6px; }
.login-retention-check { display:flex; gap:9px; align-items:center; font-size:14px; color:#263451; cursor:pointer; }
.login-retention-check input { width:16px; height:16px; flex:0 0 16px; accent-color:#364F91; }
.login-retention-hint { margin:8px 0; font-size:12px; line-height:1.6; color:#65718a; }
.login-retention .field { margin-top:12px; }
.login-retention select { width:100%; padding:11px 12px; border:1px solid #d5dce8; border-radius:10px; background:#fff; color:#263451; font:inherit; }
.login-card [hidden] { display:none !important; }

.record-attachments { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding-top:14px; border-top:1px solid var(--line); min-width:0; }
.record-attachment-group { min-width:0; }
.record-attachment-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; font-size:13px; color:#303a53; }
.record-upload-button { padding:8px 12px; min-height:36px; font-size:12px; cursor:pointer; }
.record-attachment-gallery { display:flex; flex-wrap:wrap; gap:10px; }
.record-attachment-item { width:96px; overflow:hidden; border:1px solid var(--line); border-radius:9px; background:#fff; }
.record-attachment-item a { display:block; height:84px; background:#f1f3f8; }
.record-attachment-item img { width:100%; height:100%; object-fit:contain; }
.record-attachment-remove { display:block; width:100%; min-height:30px; border:0; background:#fff; color:var(--red); font-size:12px; cursor:pointer; }
.record-attachment-group > .profile-help { margin-top:8px; }
.record-attachment-group > .profile-help:empty { display:none; }
.record-attachment-hint { grid-column:1/-1; }
.repeat-row:has(.record-attachments) { align-items:start; }
.repeat-row:has(.record-attachments) > .repeat-fields { min-width:0; }
.record-attachments button:disabled { opacity:.55; cursor:default; }
@media(max-width:760px) { .record-attachments { grid-template-columns:minmax(0,1fr); } }
