.n400-workspace{font-family:Arial,Tahoma,sans-serif;font-size:20px;line-height:1.6;color:#102b3e;background:#fff;display:flex;flex-direction:column;min-height:75dvh;max-height:88dvh;overflow:hidden}
.n400-workspace *{box-sizing:border-box}.n400-top{position:sticky;top:0;z-index:2;background:#071e31;color:white;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:12px}.n400-top strong{font-size:22px}.n400-languages{display:flex;flex-wrap:wrap;gap:8px}
.n400-workspace button,.n400-workspace select,.n400-file-label,.n400-document,.n400-workspace a{font:inherit;min-height:48px;min-width:48px;white-space:normal;overflow-wrap:anywhere}.n400-workspace button{cursor:pointer;border:1px solid #a97823;border-radius:10px;background:#fff;color:#102b3e;padding:10px 14px}.n400-workspace button:focus-visible,.n400-workspace input:focus-visible,.n400-workspace select:focus-visible,.n400-workspace a:focus-visible{outline:3px solid #1b78bb;outline-offset:3px}.n400-workspace button:disabled{opacity:.55;cursor:default}
.n400-body{overflow:auto;flex:1;padding:18px;overscroll-behavior:contain;scroll-padding-block:20px}.n400-body h2{font-size:28px}.n400-body h3{font-size:24px}.n400-field{display:grid;gap:14px;padding-block:16px}.n400-field label{font-size:24px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}.n400-field input,.n400-field textarea,.n400-workspace select{width:100%;font:inherit;color:#102b3e;border:1px solid #597282;border-radius:9px;padding:12px;background:white;min-height:54px}.n400-field textarea{min-height:150px}.n400-options,.n400-repeat{display:flex;flex-wrap:wrap;gap:10px}.n400-field small{font-size:18px}.n400-nav{position:sticky;bottom:0;z-index:2;display:flex;flex-wrap:wrap;gap:8px;padding:12px 12px calc(12px + env(safe-area-inset-bottom));background:#f7eedc;border-top:1px solid #d7c294}.n400-nav button{flex:1}.n400-save-status{padding:10px 18px;margin:0;min-height:48px;background:#edf5f1;font-size:20px}.n400-save-status[data-state=conflict],.n400-save-status[data-state=uncertain],.n400-save-status[data-state=error]{background:#fff0e7;color:#813b15}.n400-review-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #ccd7de}.n400-review-row span{flex:1;overflow-wrap:anywhere}.n400-consent{display:flex;gap:14px;align-items:flex-start;margin-block:20px}.n400-consent input{width:28px;height:28px;flex-shrink:0}.n400-document,.n400-file-label{display:block;padding:14px;border:1px solid #8599a5;border-radius:8px;margin-block:12px}.n400-workspace a{display:flex;align-items:center;color:#135c8b}.n400-file-label input{display:block;width:100%;font:inherit;min-height:48px;margin-top:10px}
@media(max-width:420px){.n400-top{padding:9px}.n400-top strong{width:100%}.n400-languages{width:100%;justify-content:space-between}.n400-languages button{padding-inline:8px;font-size:20px;flex:1}.n400-top>button{width:100%}.n400-body{padding:14px}.n400-nav button{padding:10px;min-width:90px}.n400-review-row{flex-direction:column;align-items:stretch}.n400-field label{font-size:22px}}

.n400-fee-warning{border-inline-start:5px solid #a05c14;background:#fff4df;padding:12px;display:block}.n400-handoff-steps{padding-inline-start:30px}.n400-handoff-steps li{margin-block:20px;line-height:1.65}

/* N400_SCOPED_VIEWPORT_FIX_20261027 — generic dialogs keep their existing layout. */
#workspace-dialog[open]:has(#n400-mount){
  position:fixed;
  inset:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  box-sizing:border-box;
  width:min(960px,calc(100dvw - max(8px,env(safe-area-inset-left)) - max(8px,env(safe-area-inset-right))));
  height:calc(100dvh - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)));
  max-width:calc(100dvw - max(8px,env(safe-area-inset-left)) - max(8px,env(safe-area-inset-right)));
  max-height:calc(100dvh - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)));
  min-width:0;min-height:0;margin:auto;padding:0;display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:none;
}
#workspace-dialog[open]:has(#n400-mount)>.dialog-top{position:relative;inset:auto;flex:0 0 auto;min-height:56px;padding:4px 12px;gap:8px;overflow:hidden}
#workspace-dialog[open]:has(#n400-mount)>.dialog-top .dialog-brand{min-width:0;max-width:calc(100% - 56px);overflow:hidden}
#workspace-dialog[open]:has(#n400-mount)>.dialog-top .reference-logo-inline{max-width:100%}
#workspace-dialog[open]:has(#n400-mount)>.dialog-top .icon-button{width:48px;height:48px;min-width:48px;min-height:48px;flex:0 0 48px}
#workspace-dialog[open]:has(#n400-mount)>#dialog-content,
#workspace-dialog[open]:has(#n400-mount)>#dialog-content>.dialog-body,
#n400-mount{display:flex;flex:1 1 0%;flex-direction:column;min-width:0;min-height:0;width:100%;max-width:100%;padding:0;overflow:hidden}
#n400-mount>.n400-workspace{display:flex;flex:1 1 0%;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:none;overflow:hidden}
#n400-mount .n400-top{position:relative;inset:auto;flex:0 0 auto;min-width:0;padding:8px;gap:8px;overflow:hidden}
#n400-mount .n400-top>strong{font-size:20px;line-height:1.3;min-width:0;overflow-wrap:normal}
#n400-mount .n400-languages{display:flex;flex:1 1 auto;flex-wrap:wrap;justify-content:space-between;gap:4px;min-width:0;max-width:100%}
#n400-mount .n400-languages>button{flex:1 0 auto;min-width:90px;min-height:48px;padding:10px 6px;font-size:18px;line-height:1.25;white-space:nowrap;overflow-wrap:normal;word-break:normal;hyphens:none}
#n400-mount .n400-save-status{flex:0 0 auto;min-width:0;min-height:48px;padding:8px 12px;line-height:1.4;overflow-wrap:anywhere}
#n400-mount .n400-body{position:relative;flex:1 1 0%;min-width:0;min-height:0;max-width:100%;max-height:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:14px;scroll-padding-block:14px}
#n400-mount .n400-nav{position:relative;inset:auto;flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;min-width:0;padding:8px 8px max(8px,env(safe-area-inset-bottom));gap:8px;overflow:hidden}
#n400-mount .n400-nav>button{min-width:0;min-height:48px;padding:10px 8px;font-size:20px;line-height:1.3;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none}
@media(max-width:600px){
  #n400-mount .n400-top>strong{width:100%}
  #n400-mount .n400-languages{width:100%}
  #n400-mount .n400-top>button{width:100%;min-height:48px;padding:8px 12px;line-height:1.3}
  #n400-mount .n400-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-height:600px){
  #n400-mount .n400-top>strong{display:none}
  #n400-mount .n400-top>button{width:auto;flex:1 1 140px}
  #n400-mount .n400-save-status{padding-block:6px;min-height:40px}
}

/* N400_QUESTION_FIRST_20261027: full service help follows the field, collapsed. */
.n400-body .n400-purpose{font-size:18px;line-height:1.35;margin:0 0 6px;overflow-wrap:normal}
.n400-body .n400-question-progress{margin:4px 0;font-size:18px;line-height:1.3}
.n400-body .n400-service-help{margin-block:12px}
.n400-body .n400-service-help>summary{min-height:48px;padding-block:10px;cursor:pointer}
.n400-body .n400-field{padding-block:8px;gap:8px}

/* Short phone: the persistent close icon already saves before closing. */
@media(max-width:600px) and (max-height:700px){
 #n400-mount .n400-top>button{display:none}
}
