/* Isolated contact panel. The published page owns its grid, heading and navigation. */
#nema-brief-workspace {
  --nb-muted: #B7B4AA;
  --nb-line: #67665F;
  width: 100%;
  min-width: 0;
  padding: 2.5rem 0 0;
  background: transparent;
  color: #F4F1EA;
  border-radius: 0;
  font: 400 1rem/1.65 var(--f-text, sans-serif);
  color-scheme: dark;
  scroll-margin-top: 100px;
}
#nema-brief-workspace *, #nema-brief-workspace *::before, #nema-brief-workspace *::after { box-sizing: border-box; }
#nema-brief-workspace :is(button, input, textarea, select) { font: inherit; }
#nema-brief-workspace :is(button, a, summary, select, input[type="checkbox"]):focus-visible { outline: 2px solid #F4F1EA; outline-offset: 5px; }
#nema-brief-workspace :is(button, select, summary) { -webkit-tap-highlight-color: transparent; }
#nema-brief-workspace button { cursor: pointer; }
#nema-brief-workspace button:disabled { cursor: wait; opacity: .5; }
#nema-brief-workspace :lang(ja) { font-family: var(--f-ja, sans-serif); letter-spacing: 0; }
#nema-brief-workspace a { color: inherit; text-underline-offset: 4px; }
#nema-brief-workspace ::selection { color: #121211; background: #F4F1EA; }
.nb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; min-height: 44px; }
.nb-restart-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-left: auto; }
.nb-phase { font-size: .8125rem; color: var(--nb-muted); }
.nb-toolbar-actions { display: flex; align-items: center; }
.nb-language select { color: #F4F1EA; background: transparent; border: 0; border-bottom: 1px solid var(--nb-line); min-height: 44px; padding: .35rem .25rem; border-radius: 0; font-size: .875rem !important; }
.nb-talk { min-width: 0; }
.nb-start-choices { display: flex; flex-wrap: wrap; gap: 0 .4rem; align-items: flex-start; }
#nema-brief-workspace .nb-start-choice { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 0; border: 0; border-radius: 999px; background: transparent; text-align: left; }
.nb-start-choice > span { display: block; padding: .3rem .8rem; border: 1px solid #F4F1EA; border-radius: 999px; background: #F4F1EA; color: #121211; font-size: .8125rem; line-height: 1.55; transition: background .15s ease, color .15s ease; }
.nb-start-choice:hover:not(:disabled) > span { background: transparent; color: #F4F1EA; }
.nb-view-title { font: 400 1.25rem/1.5 var(--f-text, sans-serif); letter-spacing: 0; margin: 0 0 1rem; outline: none; scroll-margin-top: 100px; overflow-wrap: anywhere; }
[lang="ja"] .nb-view-title { font-family: var(--f-ja, sans-serif); font-size: 1.25rem; line-height: 1.6; letter-spacing: 0; }
.nb-intro { color: #C6C4BC; font-size: .9375rem; line-height: 1.8; max-width: 55ch; margin-bottom: 1.5rem; }
#nema-brief-workspace .nb-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .65rem; border: 1px solid transparent; border-radius: 999px; padding: .65rem 1rem; font-size: .875rem; line-height: 1.5; font-weight: 500; text-align: center; text-decoration: none; transition: background .15s ease, color .15s ease; }
#nema-brief-workspace .nb-button-primary, #nema-brief-workspace .nb-button-sheet { background: #F4F1EA; color: #121211; border-color: #F4F1EA; }
#nema-brief-workspace .nb-button-primary:hover:not(:disabled), #nema-brief-workspace .nb-button-sheet:hover:not(:disabled) { background: #C6C4BC; }
#nema-brief-workspace .nb-button-outline { color: #F4F1EA; background: transparent; border-color: var(--nb-line); }
#nema-brief-workspace .nb-button-outline:hover:not(:disabled) { background: #22221F; border-color: #F4F1EA; }
#nema-brief-workspace form label:not(.nb-confirm) { display: block; color: #B7B4AA; font-size: .875rem; margin-bottom: .5rem; }
#nema-brief-workspace :is(textarea, input:not([type="checkbox"])) { width: 100%; color: #F4F1EA; caret-color: #F4F1EA; background: transparent; border: 0; border-bottom: 1px solid var(--nb-line); border-radius: 0; box-shadow: none; appearance: none; padding: .65rem 0; min-height: 48px; line-height: 1.75; font-size: 1rem; }
#nema-brief-workspace textarea { resize: none; min-height: 48px; max-height: 200px; overflow-y: auto; }
#nema-brief-workspace textarea::placeholder { color: #B7B4AA; opacity: 1; }
/* Text fields show focus through the underline, without an enclosing rectangle. */
#nema-brief-workspace :is(textarea, input:not([type="checkbox"])):focus { outline: none; box-shadow: none; border-bottom: 2px solid #F4F1EA; padding-bottom: calc(.65rem - 1px); }
.nb-answer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
#nema-brief-workspace .nb-text-button { min-height: 44px; color: #C6C4BC; background: transparent; border: 0; padding: .5rem 0; font-size: .875rem; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
#nema-brief-workspace .nb-text-button:hover:not(:disabled) { color: #F4F1EA; }
.nb-history { min-width: 0; flex: 1; }
.nb-history > div { padding-top: .5rem; }
.nb-history-turn { padding-block: .85rem; border-top: 1px solid #2A2A26; }
.nb-history-turn span { display: block; font-size: .75rem; color: var(--nb-muted); margin-bottom: .4rem; }
.nb-review-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.nb-report { min-width: 0; }
.nb-report header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; border-bottom: 1px solid #2A2A26; padding-bottom: .85rem; }
.nb-report header .nb-view-title { margin: 0; font-size: 1.5rem; }
#nema-brief-workspace .nb-paper-link { min-height: 44px; color: #C6C4BC; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; padding: .4rem 0; font-size: .875rem; line-height: 1.5; text-align: left; }
.nb-report section { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #2A2A26; }
.nb-report section:first-of-type { padding-top: 0; border-top: 0; }
.nb-report h4 { font-size: .9375rem; font-weight: 500; line-height: 1.6; margin-bottom: .65rem; }
.nb-report p, .nb-report li { overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.8; font-size: .9375rem; }
.nb-report ul { padding-left: 1.2rem; }
.nb-report li + li { margin-top: .5rem; }
.nb-report p.nb-report-note { font-size: .8125rem; color: #B7B4AA; margin-top: .75rem; }
.nb-report-subtitle { color: #B7B4AA; font-size: .8125rem; font-weight: 400; margin-block: 1rem .5rem; }
.nb-report-details { margin-top: 1.25rem; border-top: 1px solid #2A2A26; }
.nb-report-details summary { min-height: 44px; padding-block: .75rem; cursor: pointer; font-size: .875rem; }
.nb-report-details ul, .nb-report-details dl { padding-block: .5rem; }
.nb-report-details strong { font-weight: 500; }
.nb-report-details li p { color: #B7B4AA; margin-top: .35rem; }
.nb-facts > div { padding-block: .85rem; border-top: 1px solid #2A2A26; }
.nb-facts dt { color: #B7B4AA; font-size: .8125rem; margin-bottom: .4rem; }
.nb-facts dd { margin: 0; }
.nb-facts dd p + p { margin-top: .65rem; }
.nb-send-panel { border-top: 1px solid #67665F; padding-top: 1.75rem; min-width: 0; }
.nb-send-panel > h3 { font: 500 1.5rem/1.3 var(--f-disp, sans-serif); letter-spacing: -.02em; margin-bottom: .75rem; }
[lang="ja"] .nb-send-panel > h3 { font-family: var(--f-ja, sans-serif); letter-spacing: 0; line-height: 1.6; font-size: 1.3rem; }
.nb-send-panel fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.nb-send-panel input:not([type="checkbox"]) { margin-bottom: 1.25rem; }
.nb-field-note { font-size: .8125rem; color: var(--nb-muted); margin-block: -.5rem 1rem; }
.nb-optional-contact[open] summary { margin-bottom: .75rem; }
.nb-confirm { display: flex; gap: .75rem; align-items: flex-start; font-size: .875rem; line-height: 1.7; margin-block: 1.25rem; cursor: pointer; padding-block: .5rem; }
.nb-confirm input { flex: 0 0 20px; width: 20px; height: 20px; margin: .15rem 0 0; accent-color: #F4F1EA; }
.nb-back { margin-top: .5rem; }
.nb-send-panel > .nb-history { margin-top: .75rem; }
.nb-correction { border-top: 1px solid #2A2A26; padding-top: 1.25rem; margin-top: 1.5rem; }
.nb-correction-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
.nb-status:empty { display: none; }
.nb-status:not(:empty) { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #2A2A26; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.nb-status p { color: #C6C4BC; font-size: .9375rem; line-height: 1.7; }
.nb-status p + p { color: var(--nb-muted); font-size: .8125rem; }
.nb-error { border: 1px solid #67665F; padding: 1rem; margin-top: 1.5rem; border-radius: 6px; font-size: .9375rem; }
.nb-error > div { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nb-error a { min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem; }
.nb-bottom-note { display: flex; flex-direction: column; gap: .75rem; color: var(--nb-muted); border-top: 1px solid #2A2A26; padding-top: 1.25rem; margin-top: 1.75rem; font-size: .8125rem; line-height: 1.75; }
.nb-bottom-note p { max-width: 65ch; }
.nb-bottom-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.nb-bottom-note a { min-height: 44px; display: inline-flex; align-items: center; }
.nb-tools { position: relative; font-size: .8125rem; }
.nb-tools summary { min-height: 44px; display: flex; align-items: center; gap: .5rem; color: #C6C4BC; cursor: pointer; white-space: nowrap; }
.nb-tools summary::after { content: '+'; font-size: 1.1rem; }
.nb-tools[open] summary::after { content: '−'; }
.nb-tools-menu { position: absolute; left: 0; bottom: 100%; z-index: 20; width: min(270px, 75vw); background: #121211; border: 1px solid #67665F; border-radius: 6px; padding: .5rem; }
.nb-tools-menu button { display: block; text-align: left; width: 100%; border: 0; background: transparent; color: #F4F1EA; min-height: 44px; padding: .65rem .75rem; font-size: .875rem !important; border-radius: 4px; }
.nb-tools-menu button:hover { background: #22221F; }
.nb-toast { padding-top: 1.25rem; color: #C6C4BC; font-size: .875rem; }
.nb-manual-copy { display: block; margin-top: 1rem; }
.nb-manual-copy textarea { margin-top: .5rem; }
.nb-receipt { padding-block: .75rem 1.5rem; }
.nb-receipt-sign { font-size: 2rem; line-height: 1; margin-bottom: 1.5rem; }
.nb-reference { display: grid; gap: .5rem; color: #B7B4AA; font-size: .875rem; margin-top: 1.5rem; }
.nb-reference strong { color: #F4F1EA; font-size: 1.125rem; font-weight: 500; overflow-wrap: anywhere; }
.nb-receipt-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.nb-receipt-actions a { min-height: 44px; display: flex; align-items: center; }
.nb-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 680px) {
  #nema-brief-workspace { padding: 2rem 0 0; }
  .nb-toolbar { margin-bottom: 1.25rem; }
  .nb-view-title { font-size: 1.25rem; }
  [lang="ja"] .nb-view-title { font-size: 1.25rem; }
  .nb-answer-actions .nb-button { flex: 1 1 auto; }
  .nb-review-layout { gap: 1.75rem; }
  .nb-report header { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  #nema-brief-workspace *, #nema-brief-workspace *::before, #nema-brief-workspace *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.nb-question { position: relative; margin-bottom: 2rem; }
.nb-question-ghost { display: block; visibility: hidden; }
.nb-question-visible { position: absolute; inset: 0; }
.nb-cursor { display: inline-block; width: .35em; height: .95em; margin-left: .2em; vertical-align: -.05em; background: currentColor; animation: nb-cursor 1s steps(1) infinite; }
.nb-answer-actions { justify-content: flex-end; margin-top: .5rem; }
.nb-send-arrow { display: inline-flex; justify-content: flex-end; align-items: center; width: 52px; height: 44px; padding: 0; border: 0; background: transparent; }
.nb-send-arrow > span { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 30px; border-radius: 999px; color: #121211; background: #F4F1EA; transition: background .15s ease; }
.nb-send-arrow svg { width: 18px; height: 18px; transition: transform .2s cubic-bezier(.215,.61,.355,1); }
.nb-send-arrow:hover:not(:disabled) svg { transform: translateX(2px); }
@keyframes nb-cursor { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nb-cursor { display: none; } }
