/* Insertions only: original third-step and native cards keep their layout. */
.sf7-inline-codex .sf7-context-codex{display:flex;gap:8px 16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 16px}
.sf7-context-codex .upload-meta{margin:0}
.sf7-context-codex .sf7-purpose-codex{flex-basis:100%;font-size:12px;color:var(--ink-mid);line-height:1.6}
.sf7-info-body-codex{padding:18px}
.sf7-inline-codex .s3-info-codex{margin:0 0 24px}
.sf7-inline-codex .upload-card.s3-missing-codex,.sf7-inline-codex .mat-card.s3-missing-codex{border:1.5px solid var(--purple)!important;background:var(--purple-soft)!important}
.sf7-inline-codex .s3-school-tag-codex{margin-left:auto;font-size:11px;font-weight:700;color:var(--orange)}
.sf7-inline-codex .upload-title,.sf7-inline-codex .mat-card-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sf7-inline-codex .sf7-footer-buttons-codex{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;width:100%}
.sf7-inline-codex .actions>.payment-confirm-row{width:100%}
.sf7-proxy-third-codex{margin:0;box-shadow:none}
.sf7-inline-codex .thumb-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sf7-inline-codex label[aria-disabled=true]{opacity:.55;cursor:default;pointer-events:none}
@media(max-width:640px){.sf7-info-body-codex{padding:12px}.sf7-proxy-third-codex{padding:0}.sf7-footer-buttons-codex .btn{flex:1 1 auto}}

/* BEGIN original student452/Claude414 native proxy controls. Scope adds zero specificity. */
.sf7-proxy-third-codex{font-family:'Manrope',system-ui,-apple-system,sans-serif;line-height:1.5;--ink:var(--c-ink);--c-ink:#1A1542;--c-white:#FFFFFF;--radius-lg:20px;--shadow:0 4px 16px rgba(63,52,148,.08);--line:var(--c-line);--c-line:#E8E4F2;--line-soft:var(--c-line-soft);--c-line-soft:#F1EEF8;--orange-soft:#FFF1DD;--orange:#F39200;--ink-mid:var(--c-ink-mid);--c-ink-mid:#5C5780;--ink-soft:var(--c-ink-soft);--c-ink-soft:#9B96B5;--radius-sm:10px;--purple:var(--c-brand-purple);--c-brand-purple:#3F3494;--orange-light:#FFB143;--purple-soft:#EEEBF8;--c-orange-800:#9A3412;--c-amber-800:#92400E;--purple-deep:#2A2270;--green:var(--c-green-500);--c-green-500:#10B981}
:where(.sf7-proxy-third-codex) h1,:where(.sf7-proxy-third-codex) h3{font-family: 'Sora','Manrope',sans-serif; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; word-break: break-word;}
:where(.sf7-proxy-third-codex) p,:where(.sf7-proxy-third-codex) span,:where(.sf7-proxy-third-codex) div,:where(.sf7-proxy-third-codex) label{overflow-wrap: anywhere;}
:where(.sf7-proxy-third-codex) button,:where(.sf7-proxy-third-codex) input,:where(.sf7-proxy-third-codex) select,:where(.sf7-proxy-third-codex) textarea{font-family: inherit; font-size: inherit; color: inherit; max-width: 100%;}
:where(.sf7-proxy-third-codex) input,:where(.sf7-proxy-third-codex) select,:where(.sf7-proxy-third-codex) textarea{min-width: 0;}
:where(.sf7-proxy-third-codex) button{cursor: pointer; border: none; background: none;}
:where(.sf7-proxy-third-codex) svg{max-width: 100%; display: block;}
:where(.sf7-proxy-third-codex).card{background: var(--c-white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 20px; width: 100%; max-width: 100%;}
:where(.sf7-proxy-third-codex) .card-head{margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft);}
:where(.sf7-proxy-third-codex) .card-eyebrow{display: inline-block; padding: 4px 12px; background: var(--orange-soft); color: var(--orange); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;}
:where(.sf7-proxy-third-codex) .card-title{font-size: 28px; margin-bottom: 8px; font-weight: 700; line-height: 1.2;}
:where(.sf7-proxy-third-codex) .card-desc{color: var(--ink-mid); font-size: 15px; line-height: 1.6;}
@media (max-width:680px){
:where(.sf7-proxy-third-codex).card{padding: 18px 14px; margin-bottom: 14px; border-radius: 16px;}
:where(.sf7-proxy-third-codex) .card-head{margin-bottom: 18px; padding-bottom: 14px;}
:where(.sf7-proxy-third-codex) .card-title{font-size: 20px; line-height: 1.2;}
:where(.sf7-proxy-third-codex) .card-desc{font-size: 13px;}
:where(.sf7-proxy-third-codex) .card-eyebrow{padding: 3px 10px; font-size: 10px; margin-bottom: 10px;}
}
@media (max-width:400px){
:where(.sf7-proxy-third-codex).card{padding: 16px 12px;}
:where(.sf7-proxy-third-codex) .card-title{font-size: 18px;}
:where(.sf7-proxy-third-codex) .card-desc{font-size: 12.5px;}
}
:where(.sf7-proxy-third-codex) .label{display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px;}
:where(.sf7-proxy-third-codex) .label .req{color: var(--orange); margin-left: 3px;}
:where(.sf7-proxy-third-codex) .label .hint{font-size: 11px; font-weight: 500; color: var(--ink-soft); margin-left: 6px;}
:where(.sf7-proxy-third-codex) .input,:where(.sf7-proxy-third-codex) .select,:where(.sf7-proxy-third-codex) .textarea{width: 100%; max-width: 100%; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #FBFAFE; font-size: 16px; color: var(--ink); transition: all .2s; display: block; box-sizing: border-box;}
:where(.sf7-proxy-third-codex) .input:focus,:where(.sf7-proxy-third-codex) .select:focus,:where(.sf7-proxy-third-codex) .textarea:focus{outline: none; border-color: var(--purple); background: var(--c-white); box-shadow: 0 0 0 3px rgba(63,52,148,.1);}
:where(.sf7-proxy-third-codex) .input::placeholder,:where(.sf7-proxy-third-codex) .textarea::placeholder{color: var(--ink-soft); opacity: 0.7;}
:where(.sf7-proxy-third-codex) .textarea{resize: vertical; min-height: 90px; font-family: inherit; max-width: 100%; width: 100%; word-wrap: break-word; overflow-wrap: break-word;}
:where(.sf7-proxy-third-codex) .select{-webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235C5780' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 10px; padding-right: 36px;}
:where(.sf7-proxy-third-codex) .field{margin-bottom: 18px; min-width: 0; width: 100%; max-width: 100%;}
:where(.sf7-proxy-third-codex) .row{display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; min-width: 0; width: 100%; max-width: 100%;}
:where(.sf7-proxy-third-codex) .row-3{display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: 16px; min-width: 0; width: 100%; max-width: 100%;}
:where(.sf7-proxy-third-codex) .row > *,:where(.sf7-proxy-third-codex) .row-3 > *{min-width: 0;}
@media (max-width:680px){
:where(.sf7-proxy-third-codex) .row,:where(.sf7-proxy-third-codex) .row-3{grid-template-columns: minmax(0,1fr); gap: 12px;}
}
:where(.sf7-proxy-third-codex) .btn{display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: all .25s; letter-spacing: 0.01em; max-width: 100%;}
@media (max-width:680px){
:where(.sf7-proxy-third-codex) .btn{padding: 11px 20px; font-size: 13px; white-space: nowrap;}
}
:where(.sf7-proxy-third-codex) .btn-primary{background: linear-gradient(135deg,var(--orange) 0%,var(--orange-light) 100%); color: var(--c-white); box-shadow: 0 4px 16px rgba(243,146,0,.3);}
:where(.sf7-proxy-third-codex) .btn-primary:hover{transform: translateY(-1px); box-shadow: 0 8px 24px rgba(243,146,0,.4);}
:where(.sf7-proxy-third-codex) .btn-outline{background: var(--c-white); color: var(--purple); border: 1.5px solid var(--line);}
:where(.sf7-proxy-third-codex) .btn-outline:hover{border-color: var(--purple); background: var(--purple-soft);}
:where(.sf7-proxy-third-codex) .actions{display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); flex-wrap: wrap;}
@media (max-width:680px){
:where(.sf7-proxy-third-codex) .actions{margin-top: 20px; padding-top: 18px; gap: 10px;}
}
:where(.sf7-proxy-third-codex) .upload-grid{display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 14px;}
:where(.sf7-proxy-third-codex) .sup-upload-banner{display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 16px; border: 1.5px solid #F39200; border-radius: 12px; background: linear-gradient(180deg,#FFF6E9 0%,#FFFDFA 100%);}
:where(.sf7-proxy-third-codex) .sup-upload-banner-icon{font-size: 22px; line-height: 1; flex: 0 0 auto;}
:where(.sf7-proxy-third-codex) .sup-upload-banner-title{font-weight: 800; font-size: 14px; color: var(--c-orange-800); margin-bottom: 4px;}
:where(.sf7-proxy-third-codex) .sup-upload-banner-desc{font-size: 12.5px; color: var(--c-amber-800); line-height: 1.55;}
:where(.sf7-proxy-third-codex) .sup-upload-banner-count{margin-top: 8px; display: inline-block; font-size: 11.5px; font-weight: 700; color: #7A4500; background: #FFE7C2; border-radius: 999px; padding: 3px 11px;}
@media (max-width:680px){
:where(.sf7-proxy-third-codex) .upload-grid{grid-template-columns: 1fr; gap: 10px;}
}
:where(.sf7-proxy-third-codex) .doc-privacy-card{position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; margin-bottom: 18px; background: linear-gradient(135deg,#F4F1FA 0%,#FAF8FE 100%); border: 1.5px solid rgba(63,52,148,0.18); border-radius: 14px; box-shadow: 0 2px 10px rgba(63,52,148,0.06); overflow: hidden;}
:where(.sf7-proxy-third-codex) .doc-privacy-card::before{content: ''; position: absolute; top: -50px; right: -50px; width: 160px; height: 160px; background: radial-gradient(circle,rgba(63,52,148,0.10),transparent 65%); pointer-events: none;}
:where(.sf7-proxy-third-codex) .doc-privacy-shield{flex-shrink: 0; width: 44px; height: 44px; background: linear-gradient(135deg,var(--purple) 0%,var(--purple-deep) 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(63,52,148,0.30); position: relative; z-index: 1;}
:where(.sf7-proxy-third-codex) .doc-privacy-shield svg{width: 24px; height: 24px; color: var(--c-white);}
:where(.sf7-proxy-third-codex) .doc-privacy-body{flex: 1; min-width: 0; position: relative; z-index: 1;}
:where(.sf7-proxy-third-codex) .doc-privacy-headline{font-family: 'Sora'; font-weight: 700; font-size: 14px; color: var(--purple-deep); line-height: 1.3; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;}
:where(.sf7-proxy-third-codex) .doc-privacy-desc{font-size: 12.5px; color: var(--ink-mid); line-height: 1.6;}
:where(.sf7-proxy-third-codex) .doc-privacy-pill{display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; background: var(--green); color: var(--c-white); border-radius: 999px; font-family: 'Sora'; font-size: 9px; font-weight: 800; letter-spacing: 0.10em; text-transform: uppercase; line-height: 1; height: 18px; flex-shrink: 0; box-shadow: 0 1px 4px rgba(16,185,129,0.30);}
:where(.sf7-proxy-third-codex) .doc-privacy-pill::before{content: ''; display: inline-block; width: 5px; height: 5px; background: var(--c-white); border-radius: 50%;}
@media (max-width:680px){
:where(.sf7-proxy-third-codex) .doc-privacy-card{padding: 14px 14px; gap: 12px;}
:where(.sf7-proxy-third-codex) .doc-privacy-shield{width: 38px; height: 38px;}
:where(.sf7-proxy-third-codex) .doc-privacy-shield svg{width: 20px; height: 20px;}
:where(.sf7-proxy-third-codex) .doc-privacy-headline{font-size: 13px;}
:where(.sf7-proxy-third-codex) .doc-privacy-desc{font-size: 12px;}
}
:where(.sf7-proxy-third-codex).hidden{display: none !important;}
:where(.sf7-proxy-third-codex) .country-wrap{position: relative; width: 100%; max-width: 100%; min-width: 0;}
:where(.sf7-proxy-third-codex) .country-list{position: absolute; top: 100%; left: 0; right: 0; max-height: 240px; overflow-y: auto; background: var(--c-white); border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow); z-index: 10; display: none; max-width: 100%;}
:where(.sf7-proxy-third-codex) .u-meta-soft{font-weight: 400; color: var(--ink-soft); font-size: 11px;}

/* Keep the existing modal as the outer container. */
.sf7-proxy-third-codex.card{margin:0;padding:0;border:0;box-shadow:none}
/* END original native proxy controls. */

/* Complete school information uses the original third-step field and row components. */
.sf7-inline-codex .sf8-information-group-codex{margin-bottom:18px}
.sf7-inline-codex .sf8-information-group-codex>summary{display:list-item;cursor:pointer;color:var(--purple);font-size:13px;font-weight:600}
.sf7-inline-codex .sf8-information-group-codex>summary>.upload-meta{display:inline;margin-left:10px;font-weight:400}
.sf7-inline-codex .sf8-information-group-codex>.row{margin-top:16px}
.sf7-inline-codex .field>.upload-meta:empty{display:none}
.sf7-inline-codex .sf8-signature-section-codex{margin-top:24px}
.sf7-inline-codex .sf8-signature-section-codex>.upload-title{font-size:14px;font-weight:600}
#fvMaterialsCodex.sf7-inline-codex .sf8-signature-section-codex .sf4-signature-codex{width:100%;max-width:600px;height:200px;border:1.5px solid var(--line);border-radius:var(--radius-sm);background:var(--bg-card,#fff);touch-action:none;display:block}
.sf7-inline-codex .sf8-signature-actions-codex,.sf7-inline-codex .sf8-signature-saved-codex{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}
.sf7-inline-codex .sf8-requirement-counts-codex,.sf7-inline-codex .sf8-demo-note-codex{flex-basis:100%;margin:0}
@media(max-width:680px){.sf7-inline-codex .sf8-information-group-codex>.row{margin-top:12px}#fvMaterialsCodex.sf7-inline-codex .sf8-signature-section-codex .sf4-signature-codex{height:auto;aspect-ratio:3}}

/* Use the existing Claude heading color and body scale for the required next step. */
.sf7-inline-codex .sf7-context-codex .sf7-purpose-codex{font-size:13px;font-weight:600;color:var(--purple)}
.sf7-inline-codex .sf7-context-codex .sf8-requirement-counts-codex{font-size:12px;color:var(--ink-mid)}
