/* Shared workshop surfaces. The journal palette lives in main.css. */
[hidden] {
  display: none !important;
}
.tools-page {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
.tools-page .site-header nav {
  gap: 30px;
  margin-right: 35px;
}
.tools-page main {
  min-height: 55vh;
}
.tools-hero {
  padding: 65px 0 50px;
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 60px;
  align-items: center;
}
.tools-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}
.tools-hero h1 {
  font-size: 48px;
  line-height: 1.45;
  letter-spacing: -1.8px;
  font-weight: 600;
  margin: 21px 0;
}
.tools-hero > div > p:last-child {
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
}
.tools-hero-note {
  padding: 29px;
  background: #f1edda;
  transform: rotate(1deg);
  border: 1px solid #e6dfc7;
}
.workshop-glyph {
  font-size: 50px;
  line-height: 1;
  color: #a49357;
  display: block;
}
.tools-hero-note p {
  font-family: "Songti SC", serif;
  font-size: 20px;
  line-height: 1.8;
  margin: 18px 0 28px;
}
.tools-hero-note > span:last-child {
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: #9c916c;
}
.tool-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.tool-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-filters button {
  border: 0;
  background: transparent;
  padding: 8px 15px;
  font-size: 12px;
  border-radius: 3px;
  color: var(--muted);
}
.tool-filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.tool-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  width: 100%;
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 4px;
  background: #fff8;
  font-size: 20px;
  color: var(--muted);
}
.tool-search input {
  border: 0;
  outline: none;
  background: none;
  font: 12px var(--sans);
  color: var(--ink);
  width: 100%;
  min-width: 0;
  padding: 3px 0;
}
.tool-search:focus-within {
  border-color: #9b8b4c;
  outline: 1px solid #9b8b4c;
}
.tool-search input:focus-visible {
  outline: 0;
}
.tool-count {
  font-size: 10px;
  color: var(--muted);
  margin: 17px 0;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfcf8;
  min-height: 235px;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.tool-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
  border-color: #aeb599;
  background: #f2f4e9;
}
.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tool-symbol {
  font: 13px var(--mono);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d9ddc8;
  background: #eef0e3;
  border-radius: 3px;
  color: #7d8766;
}
.tool-mode {
  font-size: 9px;
  color: #939986;
}
.tool-card h2 {
  font-size: 20px;
  line-height: 1.5;
  margin: 24px 0 11px;
  font-weight: 550;
}
.tool-card > p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 25px;
}
.tool-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 10px;
  color: #8c927d;
  border-top: 1px dashed #dfe2d3;
  padding-top: 15px;
}
.tool-card-bottom > span:last-child {
  color: #7f713f;
}
.empty-state {
  padding: 70px 0;
  text-align: center;
  color: var(--muted);
}
.support-links {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  margin: 38px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.support-links > span {
  font: 9px var(--mono);
  letter-spacing: 1.5px;
  color: #929986;
}
.tool-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  font-size: 11px;
  color: var(--muted);
}
.tool-breadcrumb > span {
  font: 9px var(--mono);
  letter-spacing: 1px;
}
.tool-intro {
  padding: 39px 0 32px;
}
.tool-intro h1 {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.4;
  margin: 13px 0;
}
.tool-intro > p:last-child {
  font-size: 13px;
  color: var(--muted);
}
.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.tool-panel {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fcfcf8;
  padding: 27px;
  margin-bottom: 25px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.panel-heading h2 {
  font-size: 16px;
  font-weight: 550;
  margin: 0 auto 0 0;
  line-height: 1.5;
}
.step-number {
  font: 11px var(--mono);
  color: #a1a790;
}
.panel-caption {
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: #8e9681;
}
.local-badge,
.env-badge {
  font-size: 10px;
  color: #7b825d;
  padding: 2px 8px;
  background: #eff0df;
  border: 1px solid #e0e2ce;
  border-radius: 3px;
}
.field-label {
  display: block;
  font-size: 12px;
  color: #676e5b;
  margin: 15px 0 8px;
  font-weight: 500;
}
.tool-panel input:not([type="file"]):not([type="checkbox"]),
.tool-panel select,
.code-input {
  display: block;
  width: 100%;
  border: 1px solid #d6dacb;
  background: #fff;
  border-radius: 3px;
  color: var(--ink);
  padding: 11px 12px;
  font: 13px var(--sans);
  line-height: 1.7;
  min-width: 0;
}
.tool-panel input,
.tool-panel select {
  margin-top: 7px;
}
.tool-panel .code-input {
  font: 12px/1.9 var(--mono);
  resize: vertical;
  tab-size: 2;
}
.tool-panel :is(input, select, textarea):focus {
  outline: 2px solid #b8a35e;
  outline-offset: 1px;
  border-color: transparent;
}
.field-hint {
  font-size: 11px;
  line-height: 1.9;
  color: #858c79;
  margin: 12px 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}
.actions.compact {
  margin: 0;
  gap: 7px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 12px/1.7 var(--sans);
  padding: 9px 15px;
  background: #f6f7ef;
  border: 1px solid #d6dacb;
  border-radius: 3px;
  color: #525b43;
  min-height: 38px;
  text-align: center;
  box-shadow: none;
}
.button:hover {
  background: #e9eddb;
  color: #3e4730;
}
.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #f5e7a3;
}
.button.primary:hover {
  background: #3f4832;
  color: #fff2b7;
}
.button.quiet {
  background: none;
  border-color: transparent;
  color: var(--muted);
}
.button.small {
  padding: 5px 11px;
  font-size: 10px;
  min-height: 29px;
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.tool-status {
  font-size: 11px;
  line-height: 1.8;
  color: #8b927e;
  min-height: 20px;
  margin-top: 15px;
}
.tool-status[data-error="true"],
[data-error="true"] {
  color: #a14732;
}
.result-code {
  background: #282d23;
  color: #dde3cf;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 500px;
  overflow: auto;
  min-height: 150px;
  border-radius: 3px;
  padding: 20px;
  font: 11px/1.9 var(--mono);
  margin: 0;
  tab-size: 2;
}
.console-panel {
  margin-top: 0;
}
.console-panel .result-code {
  max-height: 360px;
}
.console-panel .tool-status:empty {
  display: none;
}
.tool-note {
  padding: 25px 28px;
  background: #f2edda;
  border-left: 2px solid #c9b567;
  margin-bottom: 25px;
  align-self: stretch;
}
.tool-note h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  margin: 20px 0;
}
.tool-note p:not(.eyebrow) {
  font-size: 12px;
  line-height: 2;
  color: #8a805c;
  margin: 16px 0;
}
.tool-page-end {
  margin: 35px 0 55px;
  font-size: 11px;
  color: var(--muted);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-row > .field-label {
  margin-top: 0;
}
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  border: 1px dashed #c5ccb3;
  background: #f2f4e9;
  padding: 25px 16px;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 4px;
}
.upload-symbol {
  font-size: 27px;
  color: #9aa780;
}
.upload-zone strong {
  font-size: 14px;
  font-weight: 500;
}
.upload-zone > span:not(.upload-symbol) {
  font-size: 10px;
  color: #8b947c;
}
.upload-zone input {
  font-size: 11px;
  max-width: 100%;
  margin-top: 9px;
}
.upload-zone input::file-selector-button {
  background: #e7ebd8;
  border: 1px solid #ccd4b7;
  border-radius: 3px;
  color: #727e5c;
  padding: 6px 11px;
  margin-right: 10px;
  cursor: pointer;
}
.text-entry {
  margin-top: 20px;
}
.tools-page details > summary {
  font-size: 11px;
  cursor: pointer;
  color: #7d866c;
  padding: 7px 0;
}
.tools-page details[open] > summary {
  margin-bottom: 10px;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-grid > div {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  gap: 5px;
}
.stat-grid > div:last-child {
  border: 0;
}
.stat-grid span {
  font-size: 11px;
  color: #939b83;
}
.stat-grid strong {
  font: 58px var(--mono);
  letter-spacing: -3px;
  color: #656f4d;
  padding: 8px 0;
}
.days-summary {
  padding-bottom: 21px;
}
.table-scroll {
  overflow-x: auto;
}
.table-scroll table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  margin-bottom: 20px;
}
.table-scroll th,
.table-scroll td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.table-scroll th {
  background: #eef1e5;
  font-size: 10px;
  color: #838d73;
  font-weight: 500;
}
.environment-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 5px 0;
}
.environment-grid > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.environment-grid span {
  font-size: 10px;
  color: #929b81;
}
.environment-grid strong {
  font: 12px var(--mono);
  overflow-wrap: anywhere;
  font-weight: 400;
}
.preset-actions {
  margin: 0 0 20px;
}
.inline-value {
  font: 11px var(--mono);
  overflow-wrap: anywhere;
  color: #8a947a;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.case-grid button {
  padding: 20px;
  background: #f2f4e9;
  border: 1px solid #dbe1cb;
  border-radius: 3px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.case-grid button:hover {
  background: #e7ecd6;
}
.case-grid button:disabled {
  opacity: 0.5;
}
.case-grid span {
  font: 8px var(--mono);
  color: #909c7a;
  letter-spacing: 0.6px;
}
.case-grid strong {
  font-size: 13px;
  font-weight: 500;
}
.case-grid small {
  font-size: 10px;
  color: #8d987c;
}
.deeplink-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.deeplink-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: #fcfcf8;
  border-radius: 4px;
  text-align: left;
  min-width: 0;
}
.deeplink-card:hover {
  background: #edf1e1;
}
.deeplink-card strong {
  font-size: 14px;
  font-weight: 500;
}
.deeplink-card code {
  display: block;
  font: 10px/1.8 var(--mono);
  color: #8b957c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 15px;
}
.bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.bridge-grid .button {
  padding: 13px 15px;
  justify-content: flex-start;
  font-size: 11px;
  text-align: left;
}
.check-field {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.check-field input {
  margin: 0;
  accent-color: #6d7953;
  width: 15px;
  height: 15px;
}
.notice {
  border: 1px solid #dfdfc3;
  border-left: 3px solid #c4b161;
  background: #f2efdd;
  padding: 15px 20px;
  font-size: 12px;
  color: #8b8057;
  margin-bottom: 22px;
}
.e2e-controls {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.clip-panel {
  max-width: 750px;
  text-align: center;
  padding: 50px 35px;
  margin: auto;
}
.clip-symbol {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: #97864f;
  background: #f2edda;
  border-radius: 14px;
  margin: 0 auto 25px;
}
.clip-panel h2 {
  font-size: 32px;
  font-weight: 500;
  margin: 20px 0;
}
.clip-panel > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}
.clip-panel .actions {
  justify-content: center;
}
.code-pill {
  display: inline-block;
  padding: 6px 15px;
  margin: 25px 0 10px;
  background: #edf0e3;
  font: 12px var(--mono);
  color: #808b6a;
  border-radius: 3px;
}
.support-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 25px;
  margin-bottom: 65px;
}
.support-copy h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 20px;
}
.support-copy p,
.support-copy li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.support-copy ul {
  padding-left: 20px;
}
.support-copy .contact-email {
  font-size: 15px;
  overflow-wrap: anywhere;
  display: block;
  margin: 15px 0 27px;
}
.support-copy .eyebrow {
  font-size: 9px;
  margin-bottom: 15px;
}
.tool-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  background: #eef1e5;
  color: #727f5b;
  border: 1px solid #ccd6b7;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 5px 30px #27311d15;
  font-size: 12px;
  max-width: calc(100% - 32px);
  width: max-content;
}
.tool-toast:empty {
  display: none;
}
.tool-attribution {
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0;
}
.tool-attribution a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* Compact responsive navbar for the additional workshop entry. */
@media (max-width: 1000px) {
  .site-header nav,
  .tools-page .site-header nav {
    gap: 23px;
    margin-right: 15px;
  }
  .tools-grid {
    gap: 18px;
  }
  .tool-card {
    padding: 23px;
  }
  .tool-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .tool-panel {
    padding: 23px;
  }
  .tools-hero {
    gap: 35px;
    grid-template-columns: 1fr 235px;
  }
  .tools-hero h1 {
    font-size: 40px;
  }
  .deeplink-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .site-header nav,
  .tools-page .site-header nav {
    gap: 18px;
    margin-right: 0;
  }
  .site-header {
    gap: 18px;
  }
  .tools-hero {
    padding: 42px 0 35px;
    grid-template-columns: 1fr 195px;
    gap: 25px;
  }
  .tools-hero h1 {
    font-size: 35px;
  }
  .tools-hero > div > p:last-child {
    font-size: 12px;
  }
  .tools-hero-note {
    padding: 24px;
  }
  .tools-hero-note p {
    font-size: 18px;
  }
  .tools-hero-note > span:last-child {
    font-size: 6px;
  }
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tool-card h2 {
    font-size: 18px;
  }
  .tool-card > p {
    font-size: 11px;
  }
  .tool-card-bottom {
    font-size: 9px;
  }
  .tool-controls {
    gap: 15px;
  }
  .tool-filters {
    gap: 2px;
  }
  .tool-filters button {
    font-size: 11px;
    padding: 7px 10px;
  }
  .tool-search {
    max-width: 200px;
  }
  .tool-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool-intro {
    padding-top: 32px;
  }
  .tool-intro h1 {
    font-size: 33px;
  }
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bridge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .deeplink-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .support-layout {
    grid-template-columns: 1fr;
  }
  .support-links {
    gap: 20px;
    flex-wrap: wrap;
  }
  .support-links > span {
    width: 100%;
  }
}
@media (max-width: 540px) {
  .site-header,
  .tools-page .site-header {
    gap: 10px;
    flex-wrap: wrap;
    height: 107px;
    padding: 17px 0 11px;
  }
  .site-header .brand {
    order: 0;
  }
  .site-header nav,
  .tools-page .site-header nav {
    order: 2;
    flex: 0 0 100%;
    justify-content: space-between;
    align-self: auto;
    gap: 8px;
    margin: 0;
    padding-top: 4px;
  }
  .site-header nav a {
    height: auto;
    padding: 4px 0;
    font-size: 11px;
  }
  .site-header nav a[aria-current]:after {
    bottom: 0;
    width: 4px;
    height: 4px;
    left: calc(50% - 2px);
  }
  .site-header .search-trigger {
    margin-left: auto;
    order: 1;
    align-self: flex-start;
  }
  .tools-hero {
    grid-template-columns: 1fr;
    padding-top: 36px;
    gap: 24px;
  }
  .tools-hero h1 {
    font-size: 36px;
    margin-top: 18px;
  }
  .tools-hero-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 21px;
    transform: none;
  }
  .workshop-glyph {
    font-size: 36px;
  }
  .tools-hero-note p {
    font-size: 15px;
    margin: 0 auto 0 0;
  }
  .tools-hero-note > span:last-child {
    font-size: 6px;
    max-width: 70px;
    line-height: 1.8;
  }
  .tool-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 15px 0;
  }
  .tool-filters {
    justify-content: space-between;
  }
  .tool-filters button {
    padding: 7px 12px;
  }
  .tool-controls .tool-search {
    max-width: none;
  }
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .tool-card {
    padding: 23px;
    min-height: 210px;
  }
  .tool-card h2 {
    font-size: 20px;
    margin-top: 21px;
  }
  .tool-card > p {
    font-size: 12px;
  }
  .tool-card-bottom {
    font-size: 10px;
  }
  .tool-count {
    font-size: 10px;
  }
  .tool-breadcrumb {
    font-size: 10px;
    padding-top: 24px;
  }
  .tool-breadcrumb > span {
    font-size: 8px;
  }
  .tool-intro {
    padding: 29px 0 26px;
  }
  .tool-intro h1 {
    font-size: 29px;
  }
  .tool-intro > p:last-child {
    font-size: 12px;
  }
  .tool-panel {
    padding: 20px;
    margin-bottom: 19px;
  }
  .tool-layout {
    gap: 0;
  }
  .panel-heading {
    gap: 9px;
    margin-bottom: 19px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .panel-caption {
    font-size: 7px;
  }
  .local-badge,
  .env-badge {
    font-size: 8px;
  }
  .tool-panel input:not([type="file"]):not([type="checkbox"]),
  .tool-panel select {
    font-size: 16px;
  }
  .tool-panel .code-input {
    font-size: 12px;
  }
  .field-hint {
    font-size: 10px;
  }
  .button {
    font-size: 11px;
    padding: 10px 13px;
  }
  .result-code {
    font-size: 10px;
    padding: 17px;
    max-height: 400px;
  }
  .actions {
    gap: 8px;
  }
  .tool-note {
    padding: 23px;
  }
  .case-grid {
    gap: 12px;
    grid-template-columns: 1fr;
  }
  .case-grid button {
    padding: 18px;
    gap: 10px;
  }
  .case-grid strong {
    font-size: 13px;
  }
  .case-grid small {
    font-size: 10px;
  }
  .bridge-grid {
    gap: 9px;
  }
  .bridge-grid .button {
    font-size: 10px;
    padding: 11px;
  }
  .deeplink-grid {
    gap: 13px;
  }
  .deeplink-card {
    padding: 18px;
  }
  .deeplink-card strong {
    font-size: 12px;
  }
  .deeplink-card code {
    font-size: 9px;
  }
  .e2e-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .e2e-controls .tool-search {
    max-width: none;
  }
  .e2e-controls > .field-hint {
    margin: 0;
  }
  .table-scroll th,
  .table-scroll td {
    padding: 10px;
    font-size: 11px;
  }
  .clip-panel {
    padding: 30px 20px;
  }
  .clip-panel h2 {
    font-size: 27px;
  }
  .clip-panel > p:not(.eyebrow) {
    font-size: 12px;
  }
  .support-copy h2 {
    font-size: 20px;
  }
  .tool-page-end {
    font-size: 10px;
    margin: 30px 0 45px;
  }
}
/* Existing compiled E2E app: retain IDs, controls and bundle, replace remote UI dependencies. */
.e2e-app {
  font-family: var(--sans);
  line-height: 1.7;
}
.e2e-app > section {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.e2e-app .row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.e2e-app .row > [class*="col-"] {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 100%;
}
.e2e-app .row.justify-content-center {
  justify-content: center;
}
.e2e-app .card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fcfcf8;
  margin: 0 0 20px;
  box-shadow: none;
  width: 100%;
}
.e2e-app .card-body {
  padding: 24px;
}
.e2e-app .card-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 19px;
}
.e2e-app .info-text {
  font-size: 11px;
  color: #929a82;
  overflow-wrap: anywhere;
  line-height: 1.9;
}
.e2e-app .alert {
  background: #eef1e5;
  padding: 12px 15px;
  border: 1px solid #dde4ce;
  border-radius: 3px;
  margin: 14px 0 20px;
  font-size: 11px;
  color: #7e8a69;
}
.e2e-app .btn {
  font: 11px/1.7 var(--sans);
  background: #eef1e3;
  color: #63714e;
  border: 1px solid #d6dec4;
  border-radius: 3px;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0;
  min-height: 37px;
  max-width: 100%;
  white-space: normal;
}
.e2e-app .btn:hover {
  background: #e2e9d1;
}
.e2e-app .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.e2e-app .btn-block {
  display: flex;
  width: 100%;
}
.e2e-app .form-group {
  margin: 15px 0;
}
.e2e-app label {
  display: block;
  font-size: 11px;
  color: #7c8969;
  margin-bottom: 7px;
}
.e2e-app .form-control,
.e2e-app select {
  display: block;
  width: 100%;
  border: 1px solid #d5ddc5;
  border-radius: 3px;
  background: #fff;
  padding: 9px 12px;
  font: 12px var(--sans);
  color: var(--ink);
  height: auto;
  min-height: 39px;
}
.e2e-app .form-control:focus {
  outline: 2px solid #b7aa6f;
  outline-offset: 1px;
}
.e2e-app hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.e2e-app p {
  margin: 10px 0;
}
.e2e-app .error-message {
  border: 1px solid #dfcfb3;
  padding: 15px;
  background: #f3eddf;
  border-radius: 3px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: #8d7a52;
  margin-bottom: 18px;
}
.e2e-app .error-message-icon {
  width: 20px;
  max-height: 20px;
}
.e2e-app .warning-invisible {
  display: none;
}
.e2e-app [id$="Display"],
.e2e-app [id$="Result"],
.e2e-app [id$="Output"] {
  overflow-wrap: anywhere;
}
.e2e-app .full-width {
  width: 100%;
}
.e2e-app .d-flex {
  display: flex;
}
.e2e-app .align-items-stretch {
  align-items: stretch;
}
.e2e-app .text-center {
  text-align: center;
}
.e2e-app input[type="checkbox"] {
  accent-color: #86985e;
}
.e2e-app .row .row {
  gap: 10px;
}
.e2e-app a {
  color: #91804c;
  text-decoration: underline;
}
.e2e-app pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
  font: 11px/1.8 var(--mono);
}
@media (max-width: 540px) {
  .e2e-app .card-body {
    padding: 20px;
  }
  .e2e-app .row {
    gap: 0;
  }
  .e2e-app .card-title {
    font-size: 15px;
  }
  .e2e-app .form-control,
  .e2e-app select {
    font-size: 16px;
  }
  .e2e-app .btn {
    font-size: 11px;
  }
  .e2e-app .row > [class*="col-"] {
    flex-basis: 100%;
  }
}
/* Direct Connect's original Vue app is kept inside a workshop panel. */
.direct-app .container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  max-width: none;
  width: 100%;
  padding: 0;
}
.direct-app .container hr {
  grid-column: 1/-1;
  display: none;
}
.direct-app .container .van-button {
  width: 100%;
  height: auto;
  min-height: 68px;
  padding: 15px 8px;
  border: 1px solid #d6dfc1;
  border-radius: 3px;
  background: #eef2e3;
  color: #6c7a55;
  white-space: normal;
  font: 11px/1.7 var(--sans);
  overflow-wrap: anywhere;
}
.direct-app .container .van-button:nth-of-type(n + 6) {
  background: #f3efdf;
  color: #928052;
  border-color: #e4dbc0;
}
.tool-direct {
  --van-primary-color: #788653;
  --van-dialog-confirm-button-text-color: #788653;
  --van-font-family: var(--sans);
}
.tool-direct .van-dialog {
  font-family: var(--sans);
  background: var(--paper);
}
.direct-app .van-button:disabled {
  opacity: 0.45;
}
@media (max-width: 1000px) {
  .direct-app .container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .direct-app .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .direct-app .container .van-button {
    font-size: 10px;
    min-height: 60px;
  }
}
/* QRBTF adaptation. Keep original renderer, parameter controls, attribution and exports. */
.tool-qrcode {
  --bg-color: #f8f9f5;
  --content-bg-color: #eef1e7;
  --font-color: #252923;
  --input-font-color: #69765b;
  --b-w: #252923;
  --border-color: #d8decb;
  --border-color-focus: #99a874;
  --border-color-active: #7a8957;
  --input-font-color-focus: #4f5e3d;
  --upload-color: #8e9b76;
  --footer-font-color: #8b967b;
  --p-font-color: #7d896d;
}
.tool-qrcode .App-header {
  display: block;
  min-height: 0;
  background: transparent;
  font-size: 16px;
  padding: 0;
  color: var(--ink);
}
.tool-qrcode .Qr-Centered {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  text-align: left;
}
.tool-qrcode .Qr-titled,
.tool-qrcode .Qr-titled-nobg {
  padding: 28px 0;
  background: none;
}
.tool-qrcode .Qr-title {
  font: 500 18px/1.6 var(--sans);
  margin: 0 0 18px;
}
.tool-qrcode .Qr-s-title {
  font: 500 16px var(--sans);
}
.tool-qrcode .Qr-input-upload-div {
  margin: 0 0 25px;
}
.tool-qrcode .Qr-input-upload {
  width: 480px;
  max-width: 100%;
}
.tool-qrcode .big-input {
  font: 14px var(--sans);
  height: 42px;
  border: 1px solid #cad3b8;
  margin-left: 10px;
  border-radius: 4px;
}
.tool-qrcode .Qr-upload {
  width: 42px !important;
  height: 42px;
  border: 1px solid #cad3b8;
  border-radius: 4px;
  font-size: 15px;
}
.tool-qrcode .Qr-s {
  width: 100%;
  overflow-x: auto !important;
  scrollbar-width: thin;
  padding-bottom: 14px;
  margin: 0;
}
.tool-qrcode .Qr-box {
  padding: 0;
  gap: 17px;
}
.tool-qrcode .Qr-item {
  margin: 0;
}
.tool-qrcode .Qr-item-image {
  width: 160px;
  height: 160px;
  border-radius: 5px;
  border-width: 1px;
}
.tool-qrcode .Qr-item-selected .Qr-item-image {
  border: 2px solid #9caa78 !important;
}
.tool-qrcode .Qr-item-detail {
  font: 13px/1.7 var(--sans);
  margin-top: 10px;
  color: #788665;
  opacity: 0.65;
}
.tool-qrcode .Qr-item-desc-inner {
  width: 160px;
  font: 10px/1.7 var(--sans);
  color: #949e85;
}
.tool-qrcode .Qr-input,
.tool-qrcode .Qr-select,
.tool-qrcode .dl-btn {
  font-family: var(--sans);
  border-width: 1px;
  border-radius: 3px;
  font-size: 12px;
  min-height: 35px;
}
.tool-qrcode .Qr-input::placeholder {
  font-family: var(--sans);
  color: #a5ad99;
}
.tool-qrcode .Qr-style-hint {
  font: 9px var(--sans);
}
.tool-qrcode .Qr-input-hint {
  font: 10px var(--sans);
  position: static;
  opacity: 0.7;
  margin-top: 8px;
}
.tool-qrcode .Qr-div-table {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}
.tool-qrcode .Qr-table {
  font-size: 14px;
}
.tool-qrcode #dl-image-inner {
  border-radius: 5px;
  border-width: 1px;
}
.tool-qrcode .Qr-footer {
  font-family: var(--sans);
  font-size: 12px;
}
.tool-qrcode .Qr-subtitle {
  font-size: 11px;
  line-height: 1.8;
}
.tool-qrcode .Qr-title-svg {
  height: 1.5em;
}
.tool-qrcode #root {
  max-width: 100%;
  overflow: hidden;
}
.tool-qrcode .App {
  font-family: var(--sans);
}
@media (max-width: 540px) {
  .tool-qrcode .Qr-title {
    font-size: 15px;
  }
  .tool-qrcode .Qr-item-image {
    width: 140px;
    height: 140px;
  }
  .tool-qrcode .Qr-item-desc-inner {
    width: 140px;
  }
  .tool-qrcode .Qr-div-table {
    display: block;
  }
  .tool-qrcode .Qr-table {
    width: 100%;
    font-size: 13px;
  }
  .tool-qrcode .Qr-input-upload {
    width: 100%;
  }
  .tool-qrcode .Qr-s {
    width: 100%;
  }
  .tool-qrcode .big-input {
    font-size: 16px;
  }
  .tool-qrcode .Qr-box {
    gap: 12px;
  }
  .tool-qrcode .div-btn {
    width: 100%;
    gap: 10px;
  }
  .tool-qrcode .dl-btn {
    width: calc(50% - 5px);
    margin: 0 0 10px !important;
  }
  .tool-qrcode .small-input,
  .tool-qrcode .Qr-select {
    width: 150px;
    font-size: 16px;
  }
  .tool-qrcode .Qr-gallery-image {
    max-height: 150px;
  }
}
.tool-qrcode .Qr-item-image-inner {
  width: 100%;
  height: 100%;
}
.tool-qrcode .Qr-item-svg,
.tool-qrcode #dl-image-inner svg {
  width: 100%;
  height: 100%;
  flex-shrink: 1;
}
.tool-qrcode .Qr-upload-svg {
  width: 60%;
  height: 60%;
}
.tool-qrcode .qr-app-shell h2 {
  font: 500 18px/1.6 var(--sans);
  margin: 0 0 18px;
}
@media (max-width: 540px) {
  .tool-qrcode .qr-app-shell h2 {
    font-size: 16px;
  }
}
