/* Scoped visual systems for the two working interface studies. */
[data-demo] {
  --demo-ink:#263e32;
  --demo-line:#dfe3d7;
  position:relative;
  min-width:0;
  overflow:hidden;
  font-family:inherit;
  color:var(--demo-ink);
}

[data-demo] button,[data-demo] textarea {
  font:inherit;
}

[data-demo] button {
  cursor:pointer;
  touch-action:manipulation;
}

[data-demo] button:disabled {
  cursor:default;
}

[data-demo] button:focus-visible,[data-demo] textarea:focus-visible {
  outline:2px solid #9f463b;
  outline-offset:3px;
}

[data-demo] h4:focus {
  outline:none;
}

.demo-caption {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font:9px/1.4 var(--mono,monospace);
  letter-spacing:.1em;
  color:#677669;
  padding-bottom:24px;
}

.demo-caption>span:last-child {
  font-size:8px;
}

.demo-caption>span:last-child>span {
  display:inline-block;
  margin-left:6px;
}

.demo-survey {
  padding:30px 38px 36px;
  background:#e5e9de;
}

.demo-survey-paper {
  max-width:440px;
  margin:auto;
  background:#fcfcf5;
  padding:24px 30px 20px;
  box-shadow:0 12px 24px #233e3010;
}

.demo-survey-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.demo-survey-mark {
  font-family:var(--sans,Arial,sans-serif);
  font-size:20px;
  font-weight:650;
  letter-spacing:-2px;
}

.demo-survey-mark span {
  color:#b85447;
  font-size:21px;
  margin-left:4px;
  font-weight:400;
}

.demo-step-label {
  font:8px/1.2 var(--mono,monospace);
  letter-spacing:.08em;
  color:#7b8173;
}

.demo-step-label b {
  font-weight:500;
  color:var(--demo-ink);
}

.demo-progress {
  height:2px;
  background:#e7e9dd;
  margin-top:16px;
}

.demo-progress span {
  display:block;
  height:100%;
  background:#9a5146;
  width:50%;
  transition:width .5s cubic-bezier(.2,.7,.2,1);
}

.demo-survey-stage {
  min-height:218px;
  padding-top:27px;
  opacity:.5;
  transform:translateY(5px);
  transition:opacity .3s,transform .4s cubic-bezier(.2,.7,.2,1);
}

.demo-survey-stage.demo-stage-enter {
  opacity:1;
  transform:none;
}

.demo-question-index {
  margin:0 0 9px!important;
  font:8px/1.4 var(--mono,monospace)!important;
  letter-spacing:.08em;
  color:#77836f;
}

.demo-survey-stage h4 {
  font-family:var(--display,Georgia,serif);
  font-size:29px;
  font-weight:400;
  line-height:1.08;
  letter-spacing:-.035em;
  margin:0;
}

.demo-survey-options {
  display:grid;
  grid-template-columns:1fr 1fr 1.3fr;
  gap:7px;
  margin-top:22px;
}

.demo-survey-options button {
  border:1px solid #d9dfcf;
  background:transparent;
  color:#53644e;
  padding:10px 4px;
  min-height:65px;
  font-size:11px;
  line-height:1.3;
  transition:background .2s,border-color .2s;
}

.demo-survey-options button>span {
  display:block;
  font-size:18px;
  line-height:1;
  margin-bottom:9px;
  font-family:Georgia,serif;
}

.demo-survey-options button:hover {
  background:#edf0e5;
  border-color:#9cae93;
}

.demo-survey-options button[aria-pressed="true"] {
  background:#324e3e;
  border-color:#324e3e;
  color:#f4f4e9;
}

.demo-survey-bottom {
  border-top:1px solid var(--demo-line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top:16px;
}

.demo-private {
  display:flex;
  align-items:center;
  gap:5px;
  font-size:9px;
  color:#707b66;
}

.demo-private svg {
  fill:none;
  stroke:currentColor;
  stroke-width:1;
  width:9px;
  height:11px;
}

.demo-survey-next {
  border:0;
  background:transparent;
  padding:8px 0 8px 6px;
  font-size:12px;
  color:#9c4d41;
  white-space:nowrap;
}

.demo-survey-next span {
  display:inline-block;
  margin-left:12px;
  transition:transform .2s;
}

.demo-survey-next:hover:not(:disabled) span {
  transform:translateX(3px);
}

.demo-survey-next:disabled {
  color:#a9afa0;
}

.demo-feedback-label {
  display:block;
  font-size:10px;
  margin-top:19px;
  color:#4f614c;
}

.demo-feedback-label>span {
  color:#8d9485;
}

.demo-feedback-label textarea {
  display:block;
  resize:vertical;
  width:100%;
  min-height:50px;
  max-height:100px;
  box-sizing:border-box;
  border:0;
  border-bottom:1px solid #b8c1ae;
  padding:7px 0;
  font-size:11px;
  line-height:1.5;
  color:var(--demo-ink);
  background:transparent;
  border-radius:0;
}

.demo-feedback-label textarea::placeholder {
  color:#9aa18e;
}

.demo-survey-done {
  position:relative;
  padding-top:7px;
}

.demo-done-symbol {
  position:absolute;
  right:0;
  top:7px;
  color:#587953;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid #b5c4a7;
  border-radius:50%;
  font-size:16px;
}

.demo-survey-done h4 {
  margin-top:16px;
}

.demo-survey-done>p:last-child {
  font-size:10px;
  line-height:1.5;
  color:#75826d;
  margin-top:15px;
}

.demo-documents {
  background:#dcc4b4;
  padding:28px 36px 32px;
}

.demo-documents .demo-caption {
  color:#775e51;
}

.demo-document-shell {
  width:100%;
  max-width:455px;
  margin:auto;
  background:#f8f5eb;
  box-shadow:0 12px 24px #6d463b12;
}

.demo-document-toolbar {
  padding:14px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border-bottom:1px solid #e5e0d3;
  background:#f1eee3;
}

.demo-document-brand {
  font-size:17px;
  letter-spacing:-1px;
  font-weight:600;
  white-space:nowrap;
}

.demo-document-brand>span {
  font-weight:400;
  color:#a1654e;
}

.demo-document-tabs {
  display:flex;
  gap:2px;
}

.demo-document-tabs button {
  border:0;
  background:transparent;
  padding:7px;
  font-size:10px;
  color:#786e5e;
  transition:background .2s,color .2s;
}

.demo-document-tabs button[aria-selected="true"] {
  background:#e1e1d1;
  color:#304734;
}

.demo-document-tabs button:hover {
  color:#304734;
}

.demo-document-paper {
  padding:21px 24px 15px;
}

.demo-document-title-row {
  display:flex;
  align-items:start;
  justify-content:space-between;
}

.demo-document-title-row h4 {
  font-family:var(--display,Georgia,serif);
  font-size:27px;
  font-weight:400;
  line-height:1.05;
  letter-spacing:-.02em;
  margin:0;
}

.demo-document-title-row h4>span {
  display:block;
  font:8px/1 var(--mono,monospace);
  color:#908c7c;
  letter-spacing:.07em;
  margin-top:9px;
}

.demo-draft {
  font:7px/1.4 var(--mono,monospace);
  letter-spacing:.1em;
  color:#958065;
  border:1px solid #dacfba;
  padding:4px 7px;
}

.demo-document-address {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
  margin-top:21px;
}

.demo-document-address div>span {
  display:block;
  font:7px/1.4 var(--mono,monospace);
  color:#8a8b7a;
  letter-spacing:.07em;
}

.demo-document-address strong {
  display:block;
  margin-top:5px;
  font-size:10px;
  font-weight:450;
}

.demo-line-item {
  display:grid;
  grid-template-columns:minmax(0,1fr) 70px 67px;
  gap:9px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid #e2dfd1;
  font-size:11px;
}

.demo-line-head {
  margin-top:15px;
  padding:9px 0;
  border-top:1px solid #d5d6c6;
  font:7px/1.4 var(--mono,monospace);
  color:#8a8b7a;
  letter-spacing:.06em;
}

.demo-line-head>span:nth-child(2) {
  text-align:center;
}

.demo-line-head>span:last-child,.demo-line-amount {
  text-align:right;
}

.demo-service-name {
  font-size:10px;
}

.demo-service-name small {
  display:block;
  margin-top:3px;
  font-size:8px;
  color:#93917e;
}

.demo-quantity {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  border:1px solid #d4d7c8;
  min-width:0;
}

.demo-quantity button {
  border:0;
  background:transparent;
  font-size:14px;
  width:22px;
  height:30px;
  padding:0;
  color:#4d6148;
}

.demo-quantity button:hover:not(:disabled) {
  background:#e4e6d9;
}

.demo-quantity button:disabled {
  color:#b6b9aa;
}

.demo-quantity output {
  min-width:19px;
  text-align:center;
  font-size:10px;
}

.demo-line-amount {
  font-size:10px;
  font-variant-numeric:tabular-nums;
}

.demo-document-total {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  padding-top:15px;
  gap:15px;
}

.demo-document-total>span {
  font-size:9px;
  color:#7e8371;
}

.demo-document-total output {
  font-family:var(--display,Georgia,serif);
  font-size:25px;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
}

.demo-document-total output>span {
  font-size:14px;
  color:#9b9f8c;
  letter-spacing:-.02em;
}

.demo-document-footer {
  border-top:1px solid #dcded0;
  margin-top:20px;
  padding-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font:6px/1.4 var(--mono,monospace);
  color:#a1a08e;
  letter-spacing:.04em;
}

@media (max-width:600px) {
  .demo-survey {
    padding:24px;
  }
  .demo-documents {
    padding:24px;
  }
  .demo-caption {
    padding-bottom:19px;
  }
  .demo-survey-paper {
    padding:20px 23px 17px;
  }
  .demo-survey-options button {
    font-size:10px;
  }
  .demo-private {
    font-size:8px;
  }
  .demo-survey-next {
    font-size:11px;
  }
  .demo-document-toolbar {
    padding:13px 18px;
  }
  .demo-document-paper {
    padding:20px 21px 14px;
  }
}

@media (max-width:380px) {
  .demo-survey,.demo-documents {
    padding:18px 15px 21px;
  }
  .demo-caption {
    font-size:7px;
    letter-spacing:.07em;
    gap:5px;
  }
  .demo-caption>span:last-child {
    font-size:7px;
  }
  .demo-survey-paper {
    padding:18px 17px 15px;
  }
  .demo-survey-stage {
    padding-top:23px;
    min-height:209px;
  }
  .demo-survey-stage h4 {
    font-size:26px;
  }
  .demo-survey-options {
    gap:5px;
  }
  .demo-survey-options button {
    font-size:9px;
    padding:10px 2px;
  }
  .demo-private {
    font-size:7px;
    gap:4px;
  }
  .demo-survey-next {
    font-size:10px;
  }
  .demo-survey-next span {
    margin-left:6px;
  }
  .demo-document-toolbar {
    padding:12px 13px;
    gap:8px;
  }
  .demo-document-brand {
    font-size:15px;
  }
  .demo-document-tabs button {
    font-size:9px;
    padding:7px 5px;
  }
  .demo-document-paper {
    padding:18px 16px 13px;
  }
  .demo-line-item {
    grid-template-columns:minmax(0,1fr) 62px 58px;
    gap:7px;
  }
  .demo-quantity button {
    width:19px;
  }
  .demo-quantity output {
    min-width:18px;
  }
  .demo-document-footer {
    font-size:5px;
  }
}

@media (prefers-reduced-motion:reduce) {
  [data-demo] *,[data-demo] *::before,[data-demo] *::after {
    transition:none!important;
    animation:none!important;
  }
}

/* These are working controls: retain readable labels at miniature scale. */
.demo-caption,.demo-caption>span:last-child {
  font-size:10px;
  letter-spacing:.015em
}

.demo-step-label,.demo-question-index {
  font-size:10px!important
}

.demo-private {
  font-size:10px
}

.demo-feedback-label {
  font-size:11px
}

.demo-document-tabs button {
  font-size:11px
}

.demo-document-address div>span,.demo-line-head {
  font-size:9px
}

.demo-service-name {
  font-size:11px
}

.demo-document-total>span {
  font-size:11px
}

.demo-draft {
  font-size:9px
}

.demo-survey-paper {
  max-width:465px
}

@media(max-width:600px) {
  .demo-caption,.demo-caption>span:last-child {
    font-size:9px
  }
  .demo-private {
    font-size:9px
  }
  .demo-document-tabs button {
    font-size:10px
  }
}

@media(max-width:380px) {
  .demo-caption,.demo-caption>span:last-child {
    font-size:8px
  }
  .demo-private {
    font-size:8px
  }
  .demo-step-label,.demo-question-index {
    font-size:9px!important
  }
  .demo-document-address div>span,.demo-line-head {
    font-size:8px
  }
  .demo-draft {
    font-size:8px
  }
}
