:root{font-family:Inter,system-ui,sans-serif;color:#eaf6ff;background:#061c2d;color-scheme:dark}*{box-sizing:border-box}body{margin:0}header{padding:18px max(20px,calc((100vw - 1000px)/2));background:#0c2d44;display:flex;align-items:center;justify-content:space-between;gap:20px}header img{max-width:190px;max-height:70px;object-fit:contain}main{max-width:1000px;margin:auto;padding:32px 20px 90px}h1{font-size:clamp(28px,5vw,44px);margin:10px 0 18px}h2{font-size:24px}p{line-height:1.65;color:#b9d2e3}.eyebrow{font-size:12px;letter-spacing:.15em;color:#61c9ff;font-weight:800}section{background:#103149;border:1px solid #31566e;border-radius:16px;padding:24px;margin:22px 0}section.downloads{display:flex;gap:14px;flex-wrap:wrap}form{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:grid;gap:8px;font-size:14px;font-weight:600}input,select,textarea,button,.button{font:inherit;border-radius:8px;border:1px solid #51728a;padding:12px;color:#eaf6ff;background:#082337}textarea{min-height:90px}.wide{grid-column:1/-1}.checkbox{display:flex;align-items:center}.checkbox input{width:20px;height:20px}button,.button{cursor:pointer;text-decoration:none;font-weight:700;display:inline-block}button:hover,.button:hover{background:#174661}.primary{background:#087ec0;border-color:#39b3f2}a{color:#71cfff}#status{min-height:25px}#status.error{color:#ffb6b6}.access{border:1px dashed #51728a;padding:18px;border-radius:12px;margin:20px 0}.access label{margin:12px 0}#uploads label{margin:20px 0}.file{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:15px 0;border-top:1px solid #31566e}.file span{flex:1}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}@media(max-width:650px){form{grid-template-columns:1fr}.wide{grid-column:auto}section{padding:18px}header{padding:15px 20px}}

#nav{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start}.operations-menu{border:1px solid #51728a;border-radius:8px;background:#082337;min-width:180px}.operations-menu summary{padding:12px;cursor:pointer;font-weight:700}.operations-menu>div{display:grid;gap:6px;padding:0 10px 10px}.operations-menu a[aria-current=page]{background:#087ec0}
label{min-width:0}.button{max-width:100%;overflow-wrap:anywhere}

header>a:first-child{flex-shrink:0}header #identity{min-width:0;overflow-wrap:anywhere}header>a:last-child{flex-shrink:0}@media(max-width:650px){header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}header>a:first-child{grid-column:1/-1}header img{max-width:min(190px,100%);height:auto}main{padding:24px 16px 80px}.operations-menu{min-width:0;max-width:100%}input,select,textarea{min-width:0;max-width:100%}form{min-width:0}}

/* Operations directories and Embosser details share the existing brand palette. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.table-scroll{position:relative;width:100%;max-width:100%;overflow-x:auto;border:1px solid #31566e;border-radius:12px;background:#0b2b41}
.operations-table{width:100%;min-width:660px;border-collapse:collapse;font-size:14px;line-height:1.5;text-align:left}
.operations-table th{padding:13px 16px;background:#082337;border-bottom:1px solid #31566e;color:#a8c6dc;font-size:12px;font-weight:750;letter-spacing:.035em;text-align:left;vertical-align:middle}
.operations-table td{padding:16px;border-bottom:1px solid #274b63;vertical-align:top;overflow-wrap:anywhere}
.operations-table tbody tr:last-child td{border-bottom:0}
.operations-table tbody tr:hover{background:#10344d}
.table-empty{padding:24px 16px;text-align:center;color:#b9d2e3}
.table-empty strong{display:block;color:#eaf6ff;font-size:16px}
.table-empty p{margin:7px 0 0;font-size:14px;line-height:1.5}
#embossers,#embosserRows{min-width:0}
.registry-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.registry-toolbar p{margin:0;color:#eaf6ff;font-size:14px;font-weight:700;white-space:nowrap}
.registry-toolbar>span{color:#9bbbd1;font-size:13px;line-height:1.5}
.embosser-table{min-width:820px}
.embosser-table th:first-child{width:23%}.embosser-table th:nth-child(2){width:25%}.embosser-table th:nth-child(3){width:14%}.embosser-table th:nth-child(4){width:24%}.embosser-table th:last-child{width:14%}
.embosser-table td:last-child{vertical-align:middle;text-align:right}
.registry-name{display:block;color:#f1f8fc;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.registry-secondary{display:block;margin-top:5px;color:#a2bed2;font-size:13px}
.registry-department,.registry-country{display:block;overflow-wrap:anywhere}
.registry-contact{display:grid;gap:5px;overflow-wrap:anywhere}
.registry-contact>span{color:#a2bed2;font-size:13px}
.registry-contact a{text-decoration:none}.registry-contact a:hover{text-decoration:underline}
.registry-missing{color:#8baabd;font-size:13px}
.registry-action{padding:9px 12px;min-height:40px;border-color:#4a7592;background:#153c56;font-size:13px;line-height:1.35;white-space:nowrap}
.registry-action:focus-visible,.embosser-detail-close:focus-visible{outline:2px solid #71cfff;outline-offset:3px}
.embosser-detail{width:min(860px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:min(88vh,860px);max-height:min(88dvh,860px);padding:0;overflow:auto;color:#eaf6ff;background:#0c293f;border:1px solid #4d728d;border-radius:18px;box-shadow:0 24px 90px #0008}
.embosser-detail::backdrop{background:#00111ccd}
body:has(.embosser-detail[open]){overflow:hidden}
.embosser-detail-header{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px;background:#103149;border-bottom:1px solid #31566e}
.embosser-detail-header>div{min-width:0}
.embosser-detail-header h2{margin:7px 0 8px;font-size:clamp(24px,3.2vw,32px);line-height:1.25;overflow-wrap:anywhere}
.embosser-detail-header p{margin:0;color:#a8c6dc;font-size:14px;line-height:1.5}
.embosser-detail-close{flex-shrink:0;display:inline-flex;align-items:center;gap:7px;padding:8px 12px;background:#082337;font-size:13px;line-height:1.25;white-space:nowrap}
.embosser-detail-close span{font-size:23px;font-weight:400;line-height:1}
.embosser-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding:24px}
.embosser-detail-group{min-width:0;margin:0;padding:18px;border:1px solid #31566e;border-radius:12px;background:#102f45}
.embosser-detail-group h3{margin:0 0 17px;color:#eaf6ff;font-size:16px;line-height:1.35}
.embosser-detail-group dl{margin:0}
.embosser-detail-field+ .embosser-detail-field{margin-top:16px}
.embosser-detail-field dt{color:#96b7ce;font-size:11px;font-weight:750;letter-spacing:.06em;text-transform:uppercase;line-height:1.4}
.embosser-detail-field dd{margin:5px 0 0;color:#eaf6ff;font-size:14px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
.embosser-detail-field a{text-decoration:none}.embosser-detail-field a:hover{text-decoration:underline}
@media(max-width:650px){
 .registry-toolbar{align-items:flex-start;flex-direction:column;gap:4px}
 #embosserRows .table-scroll{border:0;border-radius:0;background:transparent;overflow:visible}
 .embosser-table{display:block;min-width:0}
 .embosser-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .embosser-table tbody{display:grid;gap:12px}
 .embosser-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:16px;border:1px solid #31566e;border-radius:12px;background:#0b2b41}
 .embosser-table td{display:block;min-width:0;padding:0;border:0}
 .embosser-table td::before{display:block;margin-bottom:5px;color:#96b7ce;font-size:11px;font-weight:750;letter-spacing:.03em;content:attr(data-label)}
 .embosser-table td:first-child,.embosser-table td:nth-child(4),.embosser-table td:last-child{grid-column:1/-1}
 .embosser-table td:first-child::before,.embosser-table td:last-child::before{display:none}
 .embosser-table td:last-child{display:flex;justify-content:flex-end;padding-top:12px;border-top:1px solid #274b63}
 .embosser-table .table-empty-row td:last-child{display:block;padding:0;border:0}
 .registry-name{font-size:16px}.registry-contact{gap:6px}
 .embosser-detail{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:14px}
 .embosser-detail-header{gap:12px;padding:18px}
 .embosser-detail-header .eyebrow{font-size:10px}
 .embosser-detail-header h2{font-size:23px}
 .embosser-detail-header p{font-size:13px}
 .embosser-detail-close{gap:4px;padding:7px 9px;font-size:12px}
 .embosser-detail-grid{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px}
 .embosser-detail-group{padding:16px}
}

.directory-filters{display:grid;grid-template-columns:minmax(130px,1fr) minmax(160px,1.3fr) minmax(135px,.8fr) minmax(135px,.8fr) auto;gap:14px;align-items:end;margin-bottom:24px}.directory-filters .wide{grid-column:1/-1;font-size:.8rem;color:#9ebbd0;margin:0}.directory-filters button{min-height:46px;white-space:nowrap;background:#2869a5}.directory-filters select,.directory-filters input{min-width:0;width:100%}@media(max-width:1100px){.directory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-filters button{grid-column:1/-1}}@media(max-width:560px){.directory-filters{grid-template-columns:minmax(0,1fr);gap:10px}}

.document-upload-progress{display:grid;gap:8px;min-width:0;margin:12px 0;padding:12px;border:1px solid #5385a6;border-radius:8px;background:#103d59}.document-upload-progress[hidden]{display:none!important}.document-upload-progress progress{width:100%;height:16px;accent-color:#77c8ed}.document-upload-progress span{overflow-wrap:anywhere;font-size:14px;line-height:1.5}.document-upload-progress[data-upload-state=failed]{border-color:#ff9292;color:#ffb6b6}.document-upload-progress[data-upload-state=accepted]{border-color:#7bd3af;color:#b6f4d7}.completed-upload{min-width:0}#creditUploadHint{font-size:14px;line-height:1.5;margin:8px 0;color:#b9d2e3}

/* Upload controls scroll inside the workspace while account actions remain visible. */
body.trading-application-upload-page,.compact-workspace body.trading-application-upload-page,.continuous-content body.trading-application-upload-page{height:100dvh;display:flex!important;flex-direction:column;overflow:hidden!important}body.trading-application-upload-page>header{flex:0 0 auto;z-index:60}body.trading-application-upload-page>main{flex:1 1 0;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;margin-top:0!important;margin-bottom:0!important;padding-bottom:62px!important}

body.trading-application-upload-page>main{scroll-padding-top:60px;scroll-padding-bottom:62px}
