/* KOSMORIO Account Bridge v2.2.7 — isolated layout rules.
   Theme / original account plugin controls remain unchanged. */
.kos-unified-account,
.kos-account-services {
  --kos-bridge-navy: #10263c;
  --kos-bridge-gold: #cda548;
  --kos-bridge-border: #dde4ea;
  --kos-bridge-muted: #5b6878;
  --kos-bridge-surface: #fff;
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: clamp(28px, 4vw, 52px) auto;
  padding-inline: clamp(16px, 3vw, 32px);
  color: var(--kos-bridge-navy);
  font-size: 1rem;
  line-height: 1.58;
  overflow-wrap: break-word;
}
.kos-unified-account *,
.kos-unified-account *::before,
.kos-unified-account *::after,
.kos-account-services *,
.kos-account-services *::before,
.kos-account-services *::after { box-sizing: border-box; }
.kos-unified-account > .kos-account-services {
  max-width: none;
  margin: 0;
  padding: 0;
}
.kos-account-services h2,
.kos-unified-account #kos-passport h2,
.kos-unified-account #kos-billing h2,
.kos-unified-account .kos-employer-console h2 {
  margin: 0 0 12px !important;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem) !important;
  font-weight: 750;
  line-height: 1.24 !important;
  letter-spacing: -.02em;
  color: var(--kos-bridge-navy);
}
.kos-account-services > p,
.kos-unified-account #kos-passport p,
.kos-unified-account #kos-billing p,
.kos-unified-account .kos-employer-console p {
  margin: 0 0 18px;
  max-width: 76ch;
  color: var(--kos-bridge-muted);
  line-height: 1.65;
}
.kos-account-services .kos-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  align-items: stretch;
  margin-block: 24px 0;
}
.kos-account-services .kos-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(20px, 2vw, 26px);
  border: 1px solid var(--kos-bridge-border);
  border-radius: 16px;
  background: var(--kos-bridge-surface);
  box-shadow: 0 4px 16px rgba(16,38,60,.035);
  overflow-wrap: anywhere;
}
.kos-account-services .kos-card h3 {
  margin: 0 0 8px !important;
  font-size: clamp(1.05rem, 1.25vw, 1.15rem) !important;
  line-height: 1.35 !important;
  font-weight: 750;
  color: var(--kos-bridge-navy);
}
.kos-account-services .kos-card p {
  flex: 1 1 auto;
  max-width: 55ch;
  margin: 0 0 20px;
  color: var(--kos-bridge-muted);
  line-height: 1.55;
}
.kos-account-services .kos-bridge-action,
.kos-unified-account .kos-bridge-action,
.kos-unified-account #kos-passport button,
.kos-unified-account #kos-billing button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #cbd5df;
  border-radius: 10px;
  background: #fff;
  color: var(--kos-bridge-navy);
  font: inherit;
  font-weight: 650;
  font-size: .94rem;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.kos-account-services .kos-card > .kos-bridge-action { margin-top: auto; }
.kos-account-services .kos-bridge-action:hover,
.kos-unified-account .kos-bridge-action:hover,
.kos-unified-account #kos-passport button:hover,
.kos-unified-account #kos-billing button:hover {
  background: #f7f9fb;
  border-color: var(--kos-bridge-gold);
}
.kos-unified-account :is(a, button, input, select):focus-visible,
.kos-account-services :is(a, button):focus-visible {
  outline: 3px solid var(--kos-bridge-gold);
  outline-offset: 3px;
}
.kos-unified-account #kos-passport,
.kos-unified-account #kos-billing,
.kos-unified-account > .kos-employer-console {
  margin-block: clamp(20px, 3vw, 30px);
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--kos-bridge-border);
  border-radius: 16px;
  background: var(--kos-bridge-surface);
  box-shadow: 0 4px 16px rgba(16,38,60,.035);
  min-width: 0;
}
.kos-unified-account #kos-passport > section,
.kos-unified-account #kos-billing > section {
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.kos-unified-account #kos-passport form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin: 12px 0 18px;
}
.kos-unified-account #kos-passport form label { flex-basis: 100%; font-weight: 650; }
.kos-unified-account #kos-passport form select,
.kos-unified-account #kos-passport form input:not([type="hidden"]) {
  display: block;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5df;
  border-radius: 10px;
  background: #fff;
  color: var(--kos-bridge-navy);
  font: inherit;
}
.kos-unified-account #kos-billing h3 {
  margin: 28px 0 12px;
  font-size: 1.15rem;
  line-height: 1.35;
}
.kos-unified-account #kos-billing > .kos-mon-portal > div[style*="overflow-x"] {
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
.kos-unified-account #kos-billing table {
  width: 100%;
  min-width: 530px;
  border-collapse: collapse;
  font-size: .94rem;
}
.kos-unified-account #kos-billing :is(th, td) {
  padding: 12px 14px;
  border-bottom: 1px solid var(--kos-bridge-border);
  text-align: left;
  vertical-align: top;
}
.kos-unified-account #kos-billing th { background: #f6f8fb; }
.kos-unified-account #kos-billing :is(code, a) { overflow-wrap: anywhere; }
.kos-unified-account #kos-billing form { margin: 0; }
.kos-unified-account section { scroll-margin-top: 90px; }
@media (max-width: 920px) {
  .kos-account-services .kos-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kos-account-services .kos-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .kos-unified-account, .kos-account-services {
    width: 100%;
    max-width: 100%;
    margin-block: 28px;
    padding-inline: 16px;
  }
  .kos-account-services .kos-grid-3 { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }
  .kos-account-services .kos-card:last-child:nth-child(odd) { grid-column: auto; }
  .kos-account-services .kos-card { padding: 18px; }
  .kos-unified-account #kos-passport,
  .kos-unified-account #kos-billing,
  .kos-unified-account > .kos-employer-console { padding: 18px; margin-block: 18px; }
  .kos-unified-account #kos-passport form button { flex: 1 1 100%; width: 100%; }
  .kos-unified-account #kos-billing table { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .kos-unified-account a,
  .kos-unified-account button { transition: none !important; }
}

/* v2.2.7 — Defensive content centering for full-width KOSMORIO theme templates.
   Keep this strictly scoped to the added Bridge surface; original Accounts UI
   and global navigation remain under the original theme and Accounts plugin. */
body .kos-unified-account {
  box-sizing: border-box !important;
  width: calc(100% - 32px) !important;
  max-width: 1120px !important;
  margin: clamp(24px, 3vw, 44px) auto !important;
  padding: 0 !important;
}
body .kos-unified-account > .kos-account-services {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .kos-unified-account #kos-passport form {
  width: 100%;
  max-width: 720px;
}
@media (max-width: 640px) {
  body .kos-unified-account {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin: 24px auto !important;
  }
  body .kos-unified-account #kos-passport form { max-width: 100%; }
}

/* v2.2.8 — Isolated job-to-career handoff and signed-in preparation queue. */
.kos-bridge-job-card, .kos-bridge-job-preparations {
  box-sizing: border-box; width: calc(100% - 32px); max-width: 1120px;
  margin: clamp(20px, 3vw, 38px) auto; padding: clamp(20px, 3vw, 30px);
  border: 1px solid #dce5ec; border-radius: 16px; background: #fff;
  color: #10263c; overflow-wrap: anywhere;
}
.kos-bridge-job-card *, .kos-bridge-job-preparations * { box-sizing: border-box; }
.kos-bridge-job-card h2, .kos-bridge-job-preparations h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.3; margin: 0 0 10px; }
.kos-bridge-job-card p, .kos-bridge-job-preparations p { line-height: 1.6; max-width: 82ch; }
.kos-bridge-job-card .kos-bridge-job-summary { white-space: normal; }
.kos-bridge-job-eyebrow { color: #785c20; font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; }
.kos-bridge-job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.kos-bridge-job-link, .kos-bridge-job-form button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 15px; border: 1px solid #b9c6d3; border-radius: 10px; color: #10263c; background: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.kos-bridge-job-form { display: inline-flex; margin: 0; }
.kos-bridge-job-saved { font-weight: 650; color: #396b50; }
.kos-bridge-job-preparations { width: 100%; margin: clamp(20px, 3vw, 30px) 0; }
.kos-bridge-job-list { list-style: none; margin: 16px 0 0; padding: 0; }
.kos-bridge-job-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 16px 0; border-top: 1px solid #e1e7ed; }
.kos-bridge-job-list h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 5px; }
.kos-bridge-job-list p { margin: 0; }
:is(.kos-bridge-job-card, .kos-bridge-job-preparations) :is(a,button):focus-visible { outline: 3px solid #cda548; outline-offset: 3px; }
@media (max-width:640px) {
 .kos-bridge-job-card { width: calc(100% - 32px); margin: 18px auto; padding: 18px; }
 .kos-bridge-job-preparations { padding: 18px; }
 .kos-bridge-job-list li > div { min-width: 0; width: 100%; }
 .kos-bridge-job-actions .kos-bridge-job-form, .kos-bridge-job-actions .kos-bridge-job-form button { width: 100%; }
}

/* Explicit, responsive native Career Studio job transfer buttons. */
.kos-bridge-job-native-actions {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:14px 0 0;}
.kos-bridge-job-native-actions .kos-bridge-job-link {cursor:pointer;max-width:100%;white-space:normal;text-align:center;}
.kos-bridge-native-status {min-height:1.3em;margin:8px 0 2px;font-size:.92rem;line-height:1.5;color:#193854;}
@media(max-width:640px){.kos-bridge-job-native-actions{display:grid;grid-template-columns:minmax(0,1fr);} .kos-bridge-job-native-actions .kos-bridge-job-link{width:100%;}}

/* v2.3.1 — Career workbench navigation, scoped and responsive. */
.kos-bridge-career-workbench, .kos-bridge-career-account-shortcuts {
  box-sizing:border-box; width:calc(100% - 32px); max-width:1120px;
  margin:clamp(18px,3vw,32px) auto; padding:clamp(16px,2.8vw,28px);
  background:#fff; color:#10263c; border:1px solid #dce5ec; border-radius:16px;
  overflow-wrap:anywhere;
}
.kos-bridge-career-workbench *, .kos-bridge-career-account-shortcuts * {box-sizing:border-box;}
.kos-bridge-career-workbench h2, .kos-bridge-career-account-shortcuts h2 {margin:3px 0 10px; font-size:clamp(1.3rem,2.3vw,1.8rem);line-height:1.35;}
.kos-bridge-career-workbench p, .kos-bridge-career-account-shortcuts p {line-height:1.55; margin:8px 0 12px;}
.kos-bridge-career-workbench-header {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;}
.kos-bridge-career-workbench-header a {color:#102d47;font-weight:650;}
.kos-bridge-career-workbench-actions, .kos-bridge-career-shortcut-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px;}
.kos-bridge-career-workbench-actions button, .kos-bridge-career-shortcut-grid a {display:flex;justify-content:center;align-items:center;min-width:0;min-height:44px;padding:12px 14px;border-radius:10px;border:1px solid #b9c6d3;color:#10263c;background:#f9fbfd;font:inherit;font-size:.95rem;font-weight:650;text-align:center;text-decoration:none;cursor:pointer;}
.kos-bridge-career-shortcut-grid a {justify-content:space-between;gap:10px;}
.kos-bridge-career-workbench-actions :focus-visible, .kos-bridge-career-shortcut-grid :focus-visible {outline:3px solid #cda548;outline-offset:2px;}
.kos-bridge-workbench-status:empty {display:none;}
@media(max-width:850px){.kos-bridge-career-workbench-actions,.kos-bridge-career-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:520px){.kos-bridge-career-workbench-actions,.kos-bridge-career-shortcut-grid{grid-template-columns:minmax(0,1fr);}.kos-bridge-career-workbench,.kos-bridge-career-account-shortcuts{width:calc(100% - 32px);margin:18px auto;padding:18px;}}

/* v2.3.2 — Account-only read-only application activity overview. */
body .kos-unified-account > .kos-bridge-application-activity {
  box-sizing:border-box; width:100%; max-width:100%; min-width:0; margin:22px 0;
  padding:clamp(18px,2.4vw,26px); border:1px solid #dce5ec; border-radius:16px;
  background:#fff; color:#10263c; overflow-wrap:anywhere;
}
.kos-bridge-application-activity * { box-sizing:border-box; }
.kos-bridge-app-activity-head { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.kos-bridge-app-activity-head > div { flex: 1 1 320px; min-width:0; }
.kos-bridge-app-activity-head h2 { margin:0 0 7px; font-size:clamp(1.2rem,2vw,1.55rem); line-height:1.35; }
.kos-bridge-app-activity-head p { margin:0; line-height:1.55; }
.kos-bridge-app-activity-open { display:inline-flex; justify-content:center; align-items:center; min-height:44px;
  padding:10px 14px; border:1px solid #b9c6d3; border-radius:10px;
  color:#10263c; background:#f8fafc; font-size:.94rem; font-weight:650; text-align:center; text-decoration:none; }
.kos-bridge-app-activity-list { list-style:none; padding:0; margin:18px 0 12px; display:grid; gap:9px; }
.kos-bridge-app-activity-list li { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 16px;
  padding:12px 14px; border:1px solid #e5eaf0; border-radius:9px; background:#fafbfd; min-width:0; }
.kos-bridge-app-activity-title { font-weight:650; min-width:0; overflow-wrap:anywhere; }
.kos-bridge-app-activity-list time { color:#4b6277; font-size:.87rem; }
.kos-bridge-app-activity-footnote { color:#40586e; font-size:.91rem; line-height:1.5; margin:10px 0 0; }
.kos-bridge-app-activity-open:focus-visible { outline:3px solid #cda548; outline-offset:2px; }
@media(max-width:520px){
 .kos-bridge-app-activity-head{flex-direction:column;}
 .kos-bridge-app-activity-head > div{flex:initial;width:100%;}
 .kos-bridge-app-activity-open{width:100%;}
 .kos-bridge-app-activity-list li{align-items:flex-start;flex-direction:column;}
}

/* Final consolidated international career account preferences, isolated to Bridge. */
body .kos-unified-account > .kos-bridge-international {
  box-sizing:border-box; width:100%; max-width:100%; min-width:0; margin:22px 0;
  padding:clamp(18px,2.5vw,28px); border:1px solid #dce5ec; border-radius:16px;
  background:#fff; color:#10263c; overflow-wrap:anywhere;
}
.kos-bridge-international * { box-sizing:border-box; }
.kos-bridge-intl-header { display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:14px; }
.kos-bridge-intl-header > div {flex:1 1 320px;min-width:0;}
.kos-bridge-intl-header h2 {margin:3px 0 10px;font-size:clamp(1.25rem,2vw,1.7rem);line-height:1.3;}
.kos-bridge-intl-header p {margin:7px 0 12px;line-height:1.6;max-width:75ch;}
.kos-bridge-intl-link {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;
 border:1px solid #b9c6d3;border-radius:10px;background:#f8fafc;color:#10263c;font-weight:650;text-decoration:none;text-align:center;}
.kos-bridge-intl-form {margin:16px 0;}
.kos-bridge-intl-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:100%;}
.kos-bridge-intl-grid label {display:block;min-width:0;font-weight:650;line-height:1.4;}
.kos-bridge-intl-grid small {display:block;margin:5px 0 9px;font-size:.87rem;font-weight:400;line-height:1.45;color:#52677a;}
.kos-bridge-intl-grid input,.kos-bridge-intl-grid select {display:block;min-width:0;width:100%;max-width:100%;min-height:44px;
 margin:8px 0 0;padding:10px 12px;border:1px solid #b9c6d3;border-radius:9px;background:#fff;color:#10263c;font:inherit;font-weight:400;}
.kos-bridge-intl-actions {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:18px;}
.kos-bridge-intl-actions button {min-height:44px;padding:10px 16px;border:1px solid #b9c6d3;border-radius:10px;
 background:#f8fafc;color:#10263c;font:inherit;font-weight:650;cursor:pointer;}
.kos-bridge-intl-disclaimer {max-width:84ch;font-size:.9rem;color:#52677a;line-height:1.6;}
.kos-bridge-international :is(a,button,input,select):focus-visible{outline:3px solid #cda548;outline-offset:3px;}
@media(max-width:700px){.kos-bridge-intl-grid{grid-template-columns:minmax(0,1fr);} }
@media(max-width:520px){.kos-bridge-intl-header{flex-direction:column;}.kos-bridge-intl-link{width:100%;}
 .kos-bridge-intl-actions{display:grid;grid-template-columns:minmax(0,1fr);}.kos-bridge-intl-actions button{width:100%;}}

/* Final career launchpad uses incumbent KOSMORIO palette and bounded account shell. */
.kos-unified-account .kos-bridge-career-launchpad{box-sizing:border-box;min-width:0;width:100%;padding:clamp(18px,2.2vw,28px);margin:20px 0 26px;
 border:1px solid #dce5ec;border-radius:16px;background:#fff;color:#10263c;overflow-wrap:anywhere}
.kos-bridge-career-launchpad *{box-sizing:border-box}
.kos-bridge-launchpad-head{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:14px}
.kos-bridge-launchpad-head > div{flex:1 1 320px;min-width:0}
.kos-bridge-launchpad-head h2{margin:4px 0 8px;font-size:clamp(1.3rem,2vw,1.8rem);line-height:1.3}
.kos-bridge-launchpad-head p{margin:6px 0 12px;max-width:74ch;line-height:1.55}
.kos-bridge-launchpad-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0 24px}
.kos-bridge-launchpad-stats > div{min-width:0;border:1px solid #e3e9ef;border-radius:12px;background:#f8fafc;padding:14px}
.kos-bridge-launchpad-stats strong{display:block;font-size:clamp(1.2rem,2.4vw,1.65rem);overflow-wrap:anywhere;color:#10263c}
.kos-bridge-launchpad-stats span{display:block;margin-top:5px;font-size:.86rem;line-height:1.4;color:#52677a}
.kos-bridge-launchpad-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;counter-reset:ksteps;margin:14px 0 12px;padding:0}
.kos-bridge-launchpad-steps li{min-width:0;border:1px solid #e3e9ef;border-radius:12px;padding:15px;counter-increment:ksteps;background:#fff}
.kos-bridge-launchpad-steps li::before{content:counter(ksteps);display:inline-grid;place-items:center;width:26px;height:26px;margin-right:8px;
 border-radius:50%;background:#10263c;color:#fff;font-size:.83rem;font-weight:700}
.kos-bridge-launchpad-steps strong{font-size:1rem}
.kos-bridge-launchpad-steps p{font-size:.9rem;line-height:1.5;margin:8px 0}
.kos-bridge-launchpad-steps a{display:inline-flex;align-items:center;min-height:44px;font-weight:650;line-height:1.5;color:#10263c}
.kos-bridge-launchpad-footnote{font-size:.86rem;line-height:1.6;color:#52677a;max-width:80ch}
.kos-bridge-career-launchpad :is(a,button):focus-visible{outline:3px solid #cda548;outline-offset:3px}
.kos-bridge-global-hint{border-inline-start:3px solid #cda548;background:#f8fafc;padding:10px 14px;line-height:1.55}
@media(max-width:770px){.kos-bridge-launchpad-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.kos-bridge-launchpad-steps,.kos-bridge-launchpad-stats{grid-template-columns:minmax(0,1fr)}
.kos-bridge-launchpad-head>.kos-bridge-intl-link{width:100%;}}
