/* PSA reference layout: content first, quiet surfaces, one summary per application. */
.submission-shell {
  --ink: #161616;
  --muted: #686868;
  --line: #e6e6e6;
  --green: #171717;
  --green-dark: #000;
  --green-light: #f7f7f7;
  background: #fff;
}
.submission-shell .demo-banner {
  background: #fafafa;
  color: #6b6b6b;
  border-color: #eee;
  font-size: 11px;
}
.submission-shell .demo-banner svg {
  display: none;
}
.submission-shell .main-content {
  padding: 48px 36px 80px;
  max-width: 1672px;
}
.submission-shell .page-footer {
  color: #888;
}
.submission-shell button:focus-visible,
.submission-shell a:focus-visible,
.submission-shell input:focus-visible,
.submission-shell textarea:focus-visible,
.submission-shell summary:focus-visible {
  outline: 2px solid #202020;
  outline-offset: 4px;
}
.sf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  gap: clamp(36px, 5.4vw, 96px);
  align-items: start;
}
.sf-content,
.sf-summary-column {
  min-width: 0;
}
.sf-heading {
  margin-bottom: 64px;
}
.sf-heading h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.8px;
  outline: none;
}
.sf-heading p {
  margin-top: 14px;
  font-size: 16px;
  color: #4e4e4e;
  line-height: 1.65;
}
.sf-popular {
  background: #eeeeee;
  color: #222222;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.sf-radio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid #838383;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
}
.sf-radio.selected {
  background: #222;
  color: #fff;
  border-color: #222;
}
.sf-summary {
  border: 1px solid #e5e5e5;
  border-radius: 22px;
  background: #fff;
  overflow: visible;
}
.sf-summary-column {
  position: sticky;
  top: 24px;
}
.sf-summary-main {
  padding: 30px 25px 26px;
}
.sf-summary h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 26px;
}
.sf-summary dl {
  display: grid;
  gap: 30px;
  margin: 0;
  font-size: 16px;
}
.sf-summary dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.sf-summary dt {
  color: #505050;
  display: flex;
  gap: 5px;
  align-items: center;
}
.sf-summary dd {
  margin: 0;
  text-align: right;
  color: #3c3c3c;
  font-variant-numeric: tabular-nums;
}
.sf-summary-action {
  padding: 28px 25px;
  border-top: 1px solid #e5e5e5;
  background: #fafafa;
  border-radius: 0 0 22px 22px;
}
.sf-primary,
.sf-pill {
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 17px;
  padding: 18px 24px;
  min-height: 64px;
  transition: background-color 0.16s;
}
.sf-primary {
  width: 100%;
}
.sf-primary:hover:not(:disabled),
.sf-pill:hover:not(:disabled) {
  background: #333;
}
.sf-primary:disabled {
  background: #eee;
  color: #999;
  opacity: 1;
}
.sf-back {
  display: block;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 5px;
  margin: 25px auto 0;
  font-size: 15px;
  color: #555;
  padding: 10px;
}
.sf-services {
  border: 1px solid #e3e3e3;
  border-radius: 20px;
  overflow: hidden;
}
.sf-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.sf-service {
  width: 100%;
  padding: 24px 28px;
  min-height: 78px;
  border: 0;
  border-top: 1px solid #e7e7e7;
  background: #fff;
  text-align: left;
  font-size: 18px;
  transition: background-color 0.16s;
}
.sf-service:hover {
  background: #fafafa;
}
.sf-service-name {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.sf-fee {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sf-fee {
  font-weight: 550;
}
.sf-service-limit {
  display: block;
  margin-top: 4px;
  color: #595959;
  font-size: 12px;
  font-weight: 400;
}
.sf-service small {
  display: none;
}
.sf-table-note {
  padding: 18px 25px;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #737373;
  line-height: 1.7;
}
.sf-label-example {
  margin: 0;
  padding: 24px 30px 30px;
  border-top: 1px solid #eee;
}
.sf-label-example figcaption {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-bottom: 12px;
}
.sf-label-example svg {
  display: block;
  width: 100%;
  height: auto;
}
.sf-editor {
  scroll-margin-top: 20px;
}
.sf-content .psa-search {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}
.sf-content .psa-search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #333;
  padding: 6px 10px 6px 18px;
  min-height: 74px;
  border-radius: 11px;
  background: #fff;
}
.sf-content .psa-search-input input {
  border: 0;
  outline: none;
  box-shadow: none;
  font-size: 17px;
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  height: auto;
  background: #fff;
}
.sf-content .psa-search-input input:focus-visible {
  outline: 0;
}
.sf-content .psa-search-input:focus-within {
  box-shadow: 0 0 0 1px #111;
}
.sf-content .psa-search-input .button {
  border: 0;
  background: #fff;
  font-size: 14px;
  color: #333;
  border-radius: 6px;
  padding: 10px 12px;
  min-width: 55px;
}
.sf-content .psa-search-message {
  min-height: 0;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #222222;
}
.sf-content .psa-search-message:not(:empty) {
  margin-top: 12px;
}
.sf-search-help {
  margin-top: 12px;
  font-size: 12px;
  color: #666;
}
.sf-search-help summary {
  display: flex;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  width: fit-content;
}
.sf-search-help summary::-webkit-details-marker {
  display: none;
}
.sf-search-help p {
  margin-top: 8px;
  line-height: 1.9;
}
.sf-content .psa-search-results {
  margin-top: 16px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  max-height: 430px;
}
.sf-content .psa-search-results li button {
  background: #fff;
  min-height: 88px;
}
.sf-content .psa-search-results li button:hover {
  background: #f8f8f8;
}
.sf-content .psa-result-name {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}
.sf-content .psa-result-select {
  color: #555;
  font-size: 12px;
}
.sf-content .psa-selection {
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  padding: 20px;
  margin: 0;
  gap: 18px;
}
.sf-content .psa-selection-copy strong {
  font-size: 17px;
  color: #222;
}
.sf-content .psa-source-label,
.sf-content .psa-selection-copy p,
.sf-content .psa-selection-copy small {
  color: #666;
}
.sf-content .psa-selection .text-button {
  color: #555;
  font-size: 13px;
}
.sf-text-link {
  padding: 0;
  border: 0;
  background: none;
  color: #555;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sf-manual-toggle {
  margin: 17px 0 20px;
}
.sf-input-row {
  display: grid;
  grid-template-columns: minmax(65px, 0.8fr) minmax(0, 2fr);
  align-items: end;
  gap: 12px;
}
.sf-declared-fields {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.sf-declared-fields legend {
  margin-bottom: 5px;
  padding: 0;
  font-size: 13px;
}
.sf-declared-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.sf-input-row label {
  display: flex;
  flex-direction: column;
  padding: 13px 18px 11px;
  border: 1px solid #ddd;
  border-radius: 10px;
  min-width: 0;
}
.sf-input-row label > span {
  color: #777;
  font-size: 12px;
}
.sf-currency {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 5px;
}
.sf-currency-limit {
  color: #757575;
  font-size: 11px;
  line-height: 1.4;
}
.sf-currency-limit::before { content: "/"; margin-inline-end: 5px; }
.sf-input-row input {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 4px 0 0;
  font-size: 20px;
  color: #222;
  background: none;
  font-variant-numeric: tabular-nums;
}
.sf-input-row input:focus {
  outline: 0;
}
.sf-input-row label:focus-within {
  box-shadow: 0 0 0 1px #333;
}
.sf-input-note {
  color: #757575;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 10px;
}
.sf-editor-actions {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}
.sf-pill {
  min-height: 52px;
  min-width: 126px;
  padding: 13px 27px;
  font-size: 15px;
}
.sf-pill.light {
  background: #f3f3f3;
  color: #444;
}
.sf-pill.light:hover:not(:disabled) {
  background: #e8e8e8;
}
.sf-pill:disabled {
  opacity: 1;
  background: #f4f4f4;
  color: #b0b0b0;
}
.sf-terms {
  display: inline-block;
  margin-top: 26px;
  font-size: 13px;
  color: #222222;
}
.sf-terms summary {
  cursor: pointer;
}
.sf-terms > div {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  color: #555;
  line-height: 1.8;
}
.sf-terms-source {
  font-size: 11px;
  margin-top: 12px;
  color: #888;
}
.sf-terms a {
  display: inline-block;
  margin-top: 10px;
  color: #222222;
  text-decoration: underline;
}
.sf-items {
  border: 1px solid #e3e3e3;
  border-radius: 18px;
  margin-top: 56px;
  overflow: hidden;
}
.sf-items-title {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #777;
}
.sf-items ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
.sf-items li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid #eee;
}
.sf-items li:last-child {
  border-bottom: 0;
}
.sf-line-number {
  color: #888;
  font-size: 12px;
  flex-shrink: 0;
}
.sf-items img {
  width: 44px;
  max-height: 65px;
  object-fit: contain;
  flex-shrink: 0;
}
.sf-line-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.sf-line-copy strong {
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.sf-line-copy > span {
  color: #777;
  font-size: 12px;
}
.sf-line-copy > span:last-child {
  color: #555;
  font-variant-numeric: tabular-nums;
}
.sf-line-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.sf-line-actions button {
  border: 0;
  padding: 8px 0;
  background: none;
  font-size: 12px;
  color: #666;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sf-empty {
  text-align: center;
  color: #888;
  padding: 32px 20px;
  font-size: 14px;
}
.sf-comments {
  margin-top: 55px;
}
.sf-comments label,
.sf-manual label {
  display: block;
  font-size: 18px;
  font-weight: 500;
}
.sf-comments p,
.sf-manual p {
  margin-top: 5px;
  font-size: 13px;
  color: #666;
}
.sf-comments textarea,
.sf-manual textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: #222;
  padding: 16px;
  margin-top: 24px;
  resize: vertical;
  min-height: 100px;
  line-height: 1.7;
}
.sf-manual textarea {
  margin-top: 12px;
  font-size: 16px;
}
.sf-review-notes {
  margin-top: 26px;
  font-size: 14px;
  color: #555;
}
.sf-review-notes > div {
  margin-top: 20px;
}
.sf-review-notes > div p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 6px;
}
.sf-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 30px;
  line-height: 1.7;
}
.sf-confirm input {
  accent-color: #111;
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  flex-shrink: 0;
}
.sf-message {
  color: #222222;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.sf-message:empty {
  display: none;
}
.submission-comment {
  margin-top: 24px;
  padding: 24px;
}
.submission-comment p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 12px;
}
@media (max-width: 1100px) {
  .submission-shell .main-content {
    padding: 36px 24px 64px;
  }
  .sf-layout {
    gap: 30px;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  }
  .sf-summary-main {
    padding: 25px 20px;
  }
  .sf-summary dl {
    font-size: 14px;
    gap: 24px;
  }
  .sf-service {
    padding: 20px 18px;
    font-size: 15px;
    gap: 10px;
  }
  .sf-service-name {
    gap: 10px;
  }
}
@media (max-width: 800px) {
  .submission-shell .main-content {
    padding: 14px 16px 24px;
  }
  .submission-shell[data-customer-screen="form"] .page-footer {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }
  .submission-shell .demo-banner {
    font-size: 10px;
    padding: 8px 16px;
    text-align: center;
  }
  .sf-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .sf-content,
  .sf-summary-column {
    width: 100%;
  }
  .sf-summary-column {
    position: static;
  }
  .sf-heading {
    margin-bottom: 18px;
  }
  .sf-heading h1 {
    font-size: 25px;
    letter-spacing: -0.65px;
  }
  .sf-heading p {
    font-size: 14px;
    margin-top: 6px;
  }
  .sf-radio {
    width: 24px;
    height: 24px;
  }
  .sf-summary {
    border-radius: 16px;
  }
  .sf-summary-main {
    padding: 14px 16px;
  }
  .sf-summary h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .sf-summary dl {
    gap: 10px;
    font-size: 14px;
  }
  .sf-summary-action {
    position: fixed;
    z-index: 5;
    inset: auto 0 calc(58px + env(safe-area-inset-bottom));
    padding: 8px 16px;
    border-radius: 0;
    background: #fff;
  }
  .sf-summary-action .sf-primary { min-height: 48px; padding-block: 10px; }
  .sf-primary {
    min-height: 56px;
    font-size: 16px;
    padding: 15px 20px;
  }
  .sf-back {
    margin-top: 14px;
    font-size: 14px;
  }
  .sf-label-example {
    padding: 20px;
  }
  .sf-label-example svg {
    max-width: 430px;
    margin: auto;
  }
  .sf-services {
    border-radius: 14px;
  }
  .sf-service {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px 16px;
    padding: 18px;
  }
  .sf-service:first-of-type {
    border-top: 0;
  }
  .sf-service-name {
    font-size: 17px;
    gap: 12px;
    margin-bottom: 3px;
  }
  .sf-service small {
    display: block;
    color: #858585;
    font-size: 10px;
    font-weight: 400;
    margin-bottom: 3px;
  }
  .sf-fee {
    font-size: 15px;
  }
  .sf-table-note {
    padding: 16px 18px;
  }
  .sf-content .psa-search-input {
    min-height: 64px;
    padding-left: 14px;
    gap: 10px;
  }
  .sf-content .psa-search-input input {
    font-size: 16px;
  }
  .sf-content .psa-search-input .button {
    font-size: 13px;
    min-width: 44px;
    padding: 10px 6px;
  }
  .sf-content .psa-selection {
    padding: 15px;
    gap: 14px;
  }
  .sf-content .psa-selection-copy strong {
    font-size: 15px;
  }
  .sf-content .psa-result-name {
    font-size: 13px;
  }
  .sf-content .psa-search-results li button {
    padding: 12px;
    gap: 12px;
  }
  .sf-input-row {
    gap: 8px;
    grid-template-columns: minmax(58px, 0.65fr) minmax(0, 2fr);
  }
  .sf-input-row label {
    padding: 9px;
  }
  .sf-declared-inputs { gap: 8px; }
  .sf-search-controls input, .contact-form input:not([type=checkbox]), .sf-comments textarea { font-size: 16px; }
  .sf-manual-toggle { min-height: 44px; text-align: start; }
  .sf-input-row label > span {
    font-size: 11px;
  }
  .sf-input-row input {
    font-size: 18px;
  }
  .sf-terms {
    font-size: 12px;
    line-height: 1.8;
  }
  .sf-items {
    margin-top: 34px;
    border-radius: 13px;
  }
  .sf-items-title {
    padding: 14px 17px;
  }
  .sf-items li {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 17px;
    gap: 10px;
  }
  .sf-line-copy {
    flex-basis: calc(100% - 80px);
  }
  .sf-line-copy strong {
    font-size: 14px;
  }
  .sf-line-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .sf-line-actions button {
    min-height: 36px;
    padding: 6px 8px;
  }
  .sf-comments {
    margin-top: 34px;
  }
  .sf-comments textarea {
    margin-top: 18px;
  }
  .sf-review-notes {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .submission-shell .main-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .sf-heading h1 {
    font-size: 23px;
  }
  .sf-summary-main {
    padding: 20px 16px;
  }
  .sf-summary dl {
    font-size: 13px;
    gap: 17px;
  }
  .sf-summary dl > div {
    gap: 8px;
  }
  .sf-pill {
    min-width: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sf-layout *,
  .sf-layout *::before,
  .sf-layout *::after {
    transition: none !important;
    animation: none !important;
  }
}
