/* v27 builder polish: reliable in-app guide, paste import, photo framing and extra templates. */
:root {
  --v26-ink: #102f42;
  --v26-deep: #092535;
  --v26-blue: #216d8d;
  --v26-blue-soft: #eaf4f7;
  --v26-gold: #c6a363;
  --v26-gold-soft: #fff5e2;
  --v26-line: #d5e1e5;
  --v26-muted: #6d818b;
  --v26-canvas: #edf2f4;
}

html.v26-ready,
html.v26-ready body {
  background: var(--v26-canvas);
}

html.v26-ready body {
  background:
    radial-gradient(circle at 90% 0, #dcecf2 0, transparent 28rem),
    var(--v26-canvas);
}

.welcome-overlay,
.v24-onboarding,
.mobile-live-preview,
.help-anchor {
  display: none !important;
}

.brand-mark {
  cursor: pointer;
}

.app-header {
  background: linear-gradient(115deg, #082433, #10465e 62%, #1b627d) !important;
  border-bottom: 1px solid #e1c48645;
  box-shadow: 0 11px 35px #08233230 !important;
}

.brand-mark > span {
  color: #f0ddb7;
  border-color: #d8bb7d !important;
  border-radius: 8px;
  background: #ffffff0a;
  box-shadow: inset 0 0 0 1px #ffffff0d;
}

.brand-mark small {
  color: #dec99f !important;
}

.header-actions button {
  min-height: 40px;
  border-radius: 9px !important;
}

.editor {
  border-color: #d3e0e5 !important;
  box-shadow: -14px 0 38px #10384a0b;
}

.editor-head {
  margin: 12px 14px 0;
  padding: 20px 18px !important;
  border: 1px solid var(--v26-line);
  border-radius: 15px;
  background:
    linear-gradient(90deg, var(--v26-gold) 0 4px, transparent 4px),
    linear-gradient(145deg, #fff, #f4f8f9);
  box-shadow: 0 10px 28px #12384b0c;
}

.editor-head h1 {
  color: #15384a;
  letter-spacing: -.02em;
}

.editor-head p {
  color: #7b8c95;
  margin: 6px 0 0;
  font-size: 9px;
}

.editor-head-actions {
  min-width: 126px;
  display: grid !important;
  gap: 6px;
}

.editor-head-actions button {
  width: 100%;
  min-height: 36px;
  border-radius: 9px !important;
  padding: 7px 9px !important;
  font-size: 8px !important;
  font-weight: 850 !important;
}

.v26-import-button {
  color: #fff !important;
  background: linear-gradient(135deg, var(--v26-deep), var(--v26-blue)) !important;
  border: 1px solid #226d8b !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.v26-import-button span {
  font-size: 14px;
}

.v26-blank-button {
  color: #556c78 !important;
  background: #fff !important;
  border: 1px solid #cfdbdf !important;
}

.editor-head-actions .reset-button {
  color: #765827;
  background: var(--v26-gold-soft);
  border: 1px solid #dfc895;
}

.v26-builder-map {
  margin: 10px 14px 13px;
  padding: 15px;
  border: 1px solid #cbdde4;
  border-radius: 15px;
  background: linear-gradient(145deg, #f8fcfd, #edf6f8);
  box-shadow: 0 9px 28px #12384b0c;
}

.v26-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v26-map-head > div:first-child {
  min-width: 0;
}

.v26-map-head span,
.v26-map-head b {
  display: block;
}

.v26-map-head > div:first-child > span {
  color: #8b6529;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}

.v26-map-head > div:first-child > b {
  color: #163b4e;
  margin-top: 3px;
  font-size: 10.5px;
}

.v26-map-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
}

.v26-map-actions button {
  min-height: 35px;
  padding: 7px 9px;
  color: #294f62;
  border: 1px solid #cbdbe2;
  border-radius: 8px;
  background: #fff;
  font-size: 7.5px;
  font-weight: 850;
}

.v26-map-actions .v26-map-import {
  color: #fff;
  border-color: #226b88;
  background: #1c607d;
}

.v26-map-steps {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.v26-map-steps > span {
  min-width: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 7px;
  align-items: center;
  border: 1px solid #d9e5e9;
  border-radius: 9px;
  background: #fff;
}

.v26-map-steps i {
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #f6e3bd;
  border-radius: 7px;
  background: #174d67;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}

.v26-map-steps b,
.v26-map-steps small {
  min-width: 0;
  display: block;
}

.v26-map-steps b {
  color: #294b5b;
  font-size: 7.5px;
}

.v26-map-steps small {
  color: #7d8e96;
  margin-top: 1px;
  font-size: 6.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sample-data-alert,
.format-switcher,
.template-switcher,
.section-journey,
.form-panel,
.preview-design-studio,
.preview-save-card {
  border-color: var(--v26-line) !important;
  box-shadow: 0 9px 27px #12384b0b !important;
}

.sample-data-alert {
  background: linear-gradient(145deg, #fffaf0, #fff3db) !important;
  border-color: #dfc187 !important;
}

.sample-alert-actions .v26-guide-link {
  color: #fff !important;
  background: #94621d !important;
  border-color: #94621d !important;
}

.format-buttons button.active,
.template-buttons button.active {
  color: #fff1d6 !important;
  background: linear-gradient(135deg, var(--v26-deep), #226987) !important;
  border-color: #bd9b61 !important;
}

.panel-route-tip {
  background: linear-gradient(145deg, #fffaf1, #fff6e8) !important;
  border-color: #e1ccaa !important;
}

.v26-context-guide {
  margin: 0 26px 14px;
  padding: 13px 14px;
  border: 1px solid #cddfe6;
  border-radius: 13px;
  background: #f5fafc;
  box-shadow: 0 8px 22px #12384b0c;
}

.v26-context-guide > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.v26-context-guide > div > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: #277454;
  font-size: 10px;
  font-weight: 900;
}

.v26-context-guide > div > b {
  color: #173c50;
  font-size: 9.5px;
}

.v26-context-guide ul {
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
}

.v26-context-guide li {
  padding: 8px;
  color: #647984;
  border: 1px solid #dce7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 7.5px;
  line-height: 1.5;
}

.v26-field-hint {
  margin-top: 4px;
  color: #748790;
  font-size: 7.5px;
  font-weight: 500;
  line-height: 1.45;
}

.field input:focus,
.field textarea:focus,
.custom-field-row input:focus,
.list-item-row input:focus {
  border-color: var(--v26-blue) !important;
  box-shadow: 0 0 0 3px #216d8d1c !important;
}

.photo-preview img,
.profile-photo img {
  object-fit: contain;
  object-position: 50% 35%;
  background: #eef2f3;
}

.v26-photo-controls {
  margin: -7px 0 18px;
  padding: 13px;
  border: 1px solid #d3e0e5;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fbfc, #edf4f6);
}

.v26-photo-control-head b,
.v26-photo-control-head small {
  display: block;
}

.v26-photo-control-head b {
  color: #173c4f;
  font-size: 11px;
}

.v26-photo-control-head small {
  margin-top: 2px;
  color: #71848e;
  font-size: 8.5px;
  line-height: 1.5;
}

.v26-photo-fit {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.v26-photo-fit button {
  min-height: 42px;
  color: #45606e;
  border: 1px solid #cad9df;
  border-radius: 8px;
  background: #fff;
  font-size: 9.5px;
  font-weight: 850;
}

.v26-photo-fit button.active {
  color: #fff;
  border-color: #1e6683;
  background: linear-gradient(135deg, var(--v26-deep), var(--v26-blue));
}

.v26-photo-position {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 10px;
  color: #5e7480;
  font-size: 9px;
  font-weight: 750;
}

.v26-photo-position input {
  accent-color: var(--v26-blue);
}

.v26-extra-templates {
  padding: 18px;
  border-top: 1px solid #ffffff24;
  background: linear-gradient(145deg, #113d52, #0a2939);
}

.v26-extra-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.v26-extra-head span,
.v26-extra-head b,
.v26-extra-head small {
  display: block;
}

.v26-extra-head span {
  color: #e5c990;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}

.v26-extra-head b {
  margin-top: 3px;
  color: #fff;
  font-size: 11px;
}

.v26-extra-head small {
  margin-top: 3px;
  color: #a8c2ce;
  font-size: 7.5px;
}

.v26-template-status {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: #d9e8ed;
  border: 1px solid #ffffff25;
  border-radius: 999px;
  font-size: 7px;
  font-style: normal;
}

.v26-extra-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.v26-template-card {
  min-width: 0;
  padding: 7px;
  color: #d7e8ee;
  border: 1px solid #ffffff27;
  border-radius: 10px;
  background: #ffffff0b;
  text-align: start;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.v26-template-card:hover {
  transform: translateY(-2px);
  border-color: #d9bd84;
  background: #ffffff15;
}

.v26-template-card.active {
  color: #fff3d7;
  border-color: #d8b875;
  background: #ffffff1b;
  box-shadow: inset 0 0 0 1px #d8b8754d;
}

.v26-template-card > b,
.v26-template-card > small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v26-template-card > b {
  margin-top: 6px;
  font-size: 7.5px;
}

.v26-template-card > small {
  margin-top: 2px;
  color: #9fb9c5;
  font-size: 6px;
}

.v26-template-mini {
  height: 66px;
  padding: 8px;
  display: block;
  overflow: hidden;
  border: 1px solid #dce4e6;
  border-radius: 6px;
  background: #fff;
}

.v26-template-mini i {
  width: 17px;
  height: 23px;
  display: block;
  float: left;
  margin-right: 5px;
  background: #dbe5e8;
}

.v26-template-mini u {
  height: 3px;
  display: block;
  margin: 4px 0;
  background: #cbd6da;
  text-decoration: none;
}

.v26-template-mini u:first-of-type {
  height: 5px;
  background: #173b4e;
}

.v26-template-mini u:nth-of-type(2) {
  clear: both;
  margin-top: 8px;
  box-shadow: 0 9px #d7e0e3, 0 18px #d7e0e3;
}

.v26-swatch-executive .v26-template-mini { border-top: 12px solid #102d42; }
.v26-swatch-nordic .v26-template-mini { background: #fbfcfc; }
.v26-swatch-clinical .v26-template-mini { border-left: 15px solid #2a7393; }
.v26-swatch-editorial .v26-template-mini { border-left: 4px solid #c5a05e; background: #fffdf8; }
.v26-swatch-bewerbung .v26-template-mini { background: linear-gradient(90deg, #edf1f2 0 30%, #fff 30%); }

/* Additional CV designs. All keep the same structured data and export path. */
.cv-sheet.v26-theme-executive {
  font-family: Arial, Helvetica, sans-serif;
  border-top: 12px solid #102d42;
}
.cv-sheet.v26-theme-executive .cv-header {
  margin: -44px -55px 22px;
  padding: 35px 55px 24px;
  color: #fff;
  background: linear-gradient(110deg, #0e2a3d, #1d5572);
}
.cv-sheet.v26-theme-executive .cv-section > h3,
.cv-sheet.v26-theme-executive .cv-footer-grid h3 {
  color: #143c55;
  border-color: #2f6c8d;
  letter-spacing: .05em;
}

.cv-sheet.v26-theme-nordic {
  color: #223239;
  font-family: Arial, Helvetica, sans-serif;
  padding-inline: 65px;
}
.cv-sheet.v26-theme-nordic .cv-header {
  padding-bottom: 18px;
  border-bottom: 1px solid #b9c6ca;
}
.cv-sheet.v26-theme-nordic .cv-section > h3,
.cv-sheet.v26-theme-nordic .cv-footer-grid h3 {
  color: #44616c;
  border: 0;
  letter-spacing: .13em;
}
.cv-sheet.v26-theme-nordic .cv-section {
  margin-bottom: 14px;
}

.cv-sheet.v26-theme-clinical {
  font-family: Arial, Helvetica, sans-serif;
  border-top: 9px solid #28769a;
}
.cv-sheet.v26-theme-clinical .cv-header h1 {
  color: #14577a;
}
.cv-sheet.v26-theme-clinical .cv-section > h3,
.cv-sheet.v26-theme-clinical .cv-footer-grid h3 {
  color: #176488;
  border-bottom: 2px solid #8bc2d7;
}
.cv-sheet.v26-theme-clinical .cv-footer-grid {
  border-color: #8bc2d7;
  background: #f3f9fb;
  padding: 16px;
}

.cv-sheet.v26-theme-editorial {
  color: #2a2927;
  background: #fffdf9;
  border-inline-start: 10px solid #c3a05e;
}
.cv-sheet.v26-theme-editorial .cv-header {
  text-align: start;
}
.cv-sheet.v26-theme-editorial .cv-header h1 {
  font-size: 31px;
}
.cv-sheet.v26-theme-editorial .cv-section {
  padding-inline-start: 14px;
  border-inline-start: 2px solid #decaa2;
}
.cv-sheet.v26-theme-editorial .cv-section > h3,
.cv-sheet.v26-theme-editorial .cv-footer-grid h3 {
  color: #785d2c;
  border-color: #c9b17f;
}

.cv-sheet.v26-theme-bewerbung {
  color: #1c2529;
  font-family: Arial, Helvetica, sans-serif;
}
.cv-sheet.v26-theme-bewerbung .cv-header {
  text-align: start;
  padding-bottom: 17px;
  border-bottom: 4px solid #28383f;
}
.cv-sheet.v26-theme-bewerbung .cv-header h1 {
  font-size: 30px;
  letter-spacing: -.02em;
}
.cv-sheet.v26-theme-bewerbung .contact-row {
  justify-content: flex-start;
}
.cv-sheet.v26-theme-bewerbung .cv-section > h3,
.cv-sheet.v26-theme-bewerbung .cv-footer-grid h3 {
  color: #263940;
  border-bottom: 1px solid #87969c;
  letter-spacing: .07em;
}

.v26-import-modal {
  z-index: 1200;
  padding: 22px;
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.v26-import-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.v26-import-backdrop {
  position: absolute;
  inset: 0;
  background: #071c27b8;
  backdrop-filter: blur(9px);
}

.v26-import-card {
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 44px);
  padding: 24px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 17px;
  position: relative;
  overflow: auto;
  color: #17394b;
  border: 1px solid #ffffff4a;
  border-radius: 20px;
  background: #f7fafb;
  box-shadow: 0 35px 90px #05131b6b;
  transform: translateY(12px);
  transition: transform .16s ease;
}

.v26-import-modal.open .v26-import-card {
  transform: translateY(0);
}

.v26-import-card > header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid #d8e3e7;
}

.v26-import-card header span,
.v26-import-card header h2,
.v26-import-card header p {
  display: block;
}

.v26-import-card header span {
  color: #906729;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .11em;
}

.v26-import-card header h2 {
  margin: 5px 0 4px;
  color: #12364a;
  font-size: 22px;
}

.v26-import-card header p {
  max-width: 720px;
  margin: 0;
  color: #71848e;
  font-size: 9px;
  line-height: 1.65;
}

.v26-import-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: #566d78;
  border: 1px solid #d2dee3;
  border-radius: 11px;
  background: #fff;
  font-size: 22px;
}

.v26-import-format {
  padding: 15px;
  border: 1px solid #d8e2e5;
  border-radius: 13px;
  background: #fff;
}

.v26-import-format > b {
  display: block;
  font-size: 9px;
}

.v26-import-format code {
  margin-top: 9px;
  padding: 12px;
  display: block;
  direction: ltr;
  color: #415864;
  border-radius: 9px;
  background: #edf3f5;
  font: 7.5px/1.75 monospace;
}

.v26-use-example {
  width: 100%;
  min-height: 39px;
  margin-top: 9px;
  color: #735321;
  border: 1px solid #dfc794;
  border-radius: 8px;
  background: var(--v26-gold-soft);
  font-size: 8px;
  font-weight: 850;
}

.v26-import-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #395665;
  font-size: 9px;
  font-weight: 850;
}

.v26-import-area textarea {
  min-height: 315px;
  padding: 14px;
  resize: vertical;
  color: #152b37;
  border: 1px solid #cbd9df;
  border-radius: 12px;
  outline: none;
  background: #fff;
  font: 10px/1.7 Arial, sans-serif;
}

.v26-import-area textarea:focus {
  border-color: var(--v26-blue);
  box-shadow: 0 0 0 4px #216d8d17;
}

.v26-import-area textarea.error {
  border-color: #b9443d;
  box-shadow: 0 0 0 4px #b9443d12;
}

.v26-import-warning {
  grid-column: 1 / -1;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6f552d;
  border: 1px solid #e2c997;
  border-radius: 11px;
  background: #fff5e3;
}

.v26-import-warning > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: #9b681d;
  font-size: 13px;
  font-weight: 900;
}

.v26-import-warning p {
  margin: 0;
}

.v26-import-warning b,
.v26-import-warning small {
  display: block;
}

.v26-import-warning b {
  font-size: 8px;
}

.v26-import-warning small {
  margin-top: 2px;
  font-size: 7px;
}

.v26-import-card > footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.v26-import-card > footer button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 900;
}

.v26-import-cancel {
  color: #5e737e;
  border: 1px solid #cfdbdf;
  background: #fff;
}

.v26-import-submit {
  color: #fff;
  border: 1px solid #226b89;
  background: linear-gradient(135deg, var(--v26-deep), var(--v26-blue));
  box-shadow: 0 10px 25px #12455d22;
}

.v26-toast {
  z-index: 1400;
  max-width: min(420px, calc(100% - 30px));
  padding: 12px 16px;
  position: fixed;
  bottom: 25px;
  left: 50%;
  color: #fff;
  border: 1px solid #ffffff22;
  border-radius: 999px;
  background: #0d3042;
  box-shadow: 0 16px 40px #071c273b;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}

.v26-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 761px) {
  .builder-layout {
    grid-template-columns: minmax(470px, 525px) minmax(794px, 1fr) !important;
  }
  .preview-stage {
    background: #e7edef !important;
  }
}

@media (max-width: 760px) {
  .app-header {
    min-height: 68px !important;
    padding: 9px 12px !important;
  }

  .header-copy,
  .header-actions .soft-button,
  .header-actions .dark-button {
    display: none !important;
  }

  .editor-head {
    margin: 10px 10px 0;
    padding: 15px 12px !important;
  }

  .editor-head h1 {
    font-size: 18px !important;
  }

  .editor-head-actions {
    min-width: 108px;
  }

  .editor-head-actions button {
    min-height: 41px;
    font-size: 7.5px !important;
  }

  .v26-builder-map {
    margin-inline: 10px;
    padding: 12px;
  }

  .v26-map-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .v26-map-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .v26-map-actions button {
    min-height: 41px;
  }

  .v26-map-steps {
    grid-template-columns: 1fr;
  }

  .v26-map-steps > span {
    min-height: 48px;
  }

  .sample-data-alert,
  .format-switcher,
  .template-switcher,
  .section-journey,
  .form-panel,
  .panel-route-tip,
  .v26-context-guide {
    margin-inline: 10px !important;
    border-radius: 14px !important;
  }

  .sample-data-alert {
    grid-template-columns: 31px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 11px !important;
  }

  .sample-data-alert p {
    font-size: 7.5px !important;
    line-height: 1.55 !important;
  }

  .sample-alert-actions {
    grid-column: 1 / -1;
  }

  .sample-alert-actions .v26-guide-link {
    width: 100%;
    min-height: 42px;
  }

  .section-journey .panel-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  .section-journey .panel-tabs button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 45px !important;
    padding: 6px 3px !important;
    font-size: 8px !important;
  }

  .v26-context-guide {
    padding: 12px;
  }

  .v26-context-guide ul {
    grid-template-columns: 1fr;
  }

  .v26-context-guide li,
  .v26-field-hint {
    font-size: 8px;
  }

  .field input,
  .field textarea,
  .custom-field-row input,
  .list-item-row input,
  .photo-actions button,
  .form-step-actions button {
    min-height: 44px !important;
  }

  .photo-editor {
    align-items: center;
    padding: 12px !important;
  }

  .photo-preview {
    width: 72px !important;
    height: 86px !important;
    overflow: hidden;
  }

  .v26-photo-controls {
    margin-inline: 10px;
  }

  .v26-photo-position {
    grid-template-columns: 1fr;
  }

  .v26-extra-templates {
    padding: 14px 10px;
  }

  .v26-extra-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .v26-template-status {
    align-self: stretch;
    text-align: center;
  }

  .v26-extra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v26-template-card:last-child {
    grid-column: 1 / -1;
  }

  .v26-template-mini {
    height: 78px;
  }

  .v26-import-modal {
    padding: 8px;
  }

  .v26-import-card {
    max-height: calc(100vh - 16px);
    padding: 15px;
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .v26-import-card > header,
  .v26-import-warning,
  .v26-import-card > footer {
    grid-column: auto;
  }

  .v26-import-card header h2 {
    font-size: 18px;
  }

  .v26-import-format {
    order: 2;
  }

  .v26-import-area {
    order: 1;
  }

  .v26-import-area textarea {
    min-height: 260px;
  }

  .v26-import-warning {
    order: 3;
  }

  .v26-import-card > footer {
    order: 4;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
  }

  .v26-import-card > footer button {
    padding-inline: 8px;
  }
}

/* v30: fast, explicit section navigation and fully functional photo framing. */
html.v26-ready {
  scroll-behavior: auto !important;
}

.section-journey {
  overflow: hidden !important;
  border: 1px solid #c9d9df !important;
  background: #fbfdfd !important;
  box-shadow: 0 7px 20px #102f3d0d !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.section-journey-head {
  min-height: 66px !important;
  grid-template-columns: 48px minmax(0, 1fr) 48px !important;
  gap: 10px !important;
  padding: 9px 12px !important;
}

.journey-actions {
  display: contents !important;
}

.journey-library {
  display: none !important;
}

.journey-arrow {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  color: #174c67 !important;
  border: 1px solid #bdd0d9 !important;
  border-radius: 13px !important;
  background: #eef5f7 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  touch-action: manipulation;
}

.journey-arrow:disabled {
  color: #9aa9b0 !important;
  border-color: #e0e7ea !important;
  background: #f5f7f8 !important;
  opacity: .7 !important;
}

.journey-current {
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.journey-current small {
  color: #71858f !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
}

.journey-current b {
  color: #123d53 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

.section-journey .panel-tabs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 10px 11px 12px !important;
  overflow: visible !important;
  scrollbar-width: none;
  background: #f1f6f8 !important;
  border-top: 1px solid #dce7eb !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto !important;
}

.section-journey .panel-tabs::-webkit-scrollbar {
  display: none;
}

.section-journey .panel-tabs button {
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 6px 3px !important;
  flex-direction: column !important;
  gap: 3px !important;
  color: #46606d !important;
  border: 1px solid #cedce2 !important;
  border-radius: 12px !important;
  background: #fff !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
  scroll-snap-align: center;
  transition: none !important;
  touch-action: manipulation;
}

.section-journey .panel-tabs button > span {
  width: 24px !important;
  height: 24px !important;
  color: #31586b !important;
  background: #eaf1f4 !important;
  font-size: 9px !important;
}

.section-journey .panel-tabs button.active {
  color: #fff !important;
  border-color: #175a76 !important;
  background: linear-gradient(135deg, #0c3144, #24718f) !important;
  box-shadow: inset 0 -3px #d0ad6b !important;
}

.section-journey .panel-tabs button.active > span {
  color: #193e51 !important;
  background: #f4dfb4 !important;
}

.section-journey .panel-tabs .add-section-tab {
  grid-column: 1 / -1;
  flex-direction: row !important;
  color: #5d4a29 !important;
  border-color: #d6bd8b !important;
  border-style: dashed !important;
  background: #fff9ed !important;
}

.v26-photo-control-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.v30-photo-reset {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  color: #5b6870;
  border: 1px solid #cbd8dd;
  border-radius: 9px;
  background: #fff;
  font-size: 8.5px;
  font-weight: 850;
}

.v30-photo-ranges {
  margin-top: 11px;
  display: grid;
  gap: 8px;
}

.v30-photo-range {
  min-height: 44px;
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  color: #526a76;
  border: 1px solid #d8e3e7;
  border-radius: 10px;
  background: #fff;
  font-size: 9px;
  font-weight: 780;
}

.v30-photo-range input {
  width: 100%;
  height: 28px;
  accent-color: #1d6684;
  cursor: ew-resize;
  touch-action: manipulation;
}

.v30-photo-range output {
  color: #164c66;
  font-size: 8.5px;
  font-weight: 900;
  text-align: end;
}

.photo-preview,
.profile-photo {
  isolation: isolate;
}

.photo-preview img,
.profile-photo img {
  display: block !important;
  max-width: none !important;
  transition: none !important;
  will-change: transform, object-position;
}

.v30-theme-toggle {
  min-width: 70px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.v30-theme-toggle span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #ffffff14;
  font-size: 13px;
}

.v30-theme-toggle b {
  font-size: 8px;
}

/* Dark mode changes only the workspace; every CV sheet stays white. */
html.v30-dark {
  color-scheme: dark;
  --v26-canvas: #0b1217;
  --v26-line: #344651;
  --v26-muted: #9eb0ba;
}

html.v30-dark body,
html.v30-dark body::before,
html.v30-dark .app-shell {
  background: #0b1217 !important;
}

html.v30-dark body {
  background:
    radial-gradient(circle at 90% 0, #173545 0, transparent 29rem),
    #0b1217 !important;
}

html.v30-dark .editor {
  color: #e7eef2 !important;
  border-color: #263842 !important;
  background: #101a20 !important;
}

html.v30-dark .editor-head,
html.v30-dark .v26-builder-map,
html.v30-dark .format-switcher,
html.v30-dark .template-switcher,
html.v30-dark .section-journey,
html.v30-dark .form-panel,
html.v30-dark .panel-route-tip,
html.v30-dark .v26-context-guide,
html.v30-dark .photo-editor,
html.v30-dark .v26-photo-controls,
html.v30-dark .workspace-dashboard {
  color: #e8eff2 !important;
  border-color: #334752 !important;
  background: #17242b !important;
  box-shadow: none !important;
}

html.v30-dark .sample-data-alert {
  color: #f3e6ca !important;
  border-color: #695b3f !important;
  background: #2b261d !important;
}

html.v30-dark .editor-head h1,
html.v30-dark .editor-head p,
html.v30-dark .v26-map-head b,
html.v30-dark .panel-heading h2,
html.v30-dark .panel-heading p,
html.v30-dark .format-heading span,
html.v30-dark .format-heading small,
html.v30-dark .template-heading span,
html.v30-dark .template-heading small,
html.v30-dark .v26-context-guide b,
html.v30-dark .photo-editor b,
html.v30-dark .photo-editor small,
html.v30-dark .v26-photo-control-head b,
html.v30-dark .v26-photo-control-head small {
  color: #e4edf1 !important;
}

html.v30-dark .workspace-dashboard-status b,
html.v30-dark .workspace-dashboard-status small,
html.v30-dark .panel-route-tip b,
html.v30-dark .panel-route-tip p,
html.v30-dark .panel-route-tip span {
  color: #d5e2e7 !important;
}

html.v30-dark .workspace-dashboard-actions button {
  color: #d5e2e7 !important;
  border-color: #3a4d58 !important;
  background: #101b21 !important;
}

html.v30-dark .workspace-dashboard-actions .dashboard-save {
  color: #2e271b !important;
  border-color: #d0b678 !important;
  background: #f3dfb2 !important;
}

html.v30-dark .v26-map-steps > span,
html.v30-dark .v26-context-guide li,
html.v30-dark .section-journey .panel-tabs button,
html.v30-dark .v30-photo-range,
html.v30-dark .v30-photo-reset,
html.v30-dark .v26-photo-fit button,
html.v30-dark .format-buttons button,
html.v30-dark .template-buttons button {
  color: #c9d7dd !important;
  border-color: #3b505b !important;
  background: #111d23 !important;
}

html.v30-dark .section-journey .panel-tabs {
  border-color: #344650 !important;
  background: #0f1a20 !important;
}

html.v30-dark .section-journey .panel-tabs button.active,
html.v30-dark .v26-photo-fit button.active,
html.v30-dark .format-buttons button.active,
html.v30-dark .template-buttons button.active {
  color: #fff !important;
  border-color: #4284a0 !important;
  background: linear-gradient(135deg, #17455b, #236b87) !important;
}

html.v30-dark .journey-current b,
html.v30-dark .journey-current small,
html.v30-dark .v26-field-hint,
html.v30-dark .field > span,
html.v30-dark .v30-photo-range output {
  color: #b9cbd3 !important;
}

html.v30-dark .field input,
html.v30-dark .field textarea,
html.v30-dark .custom-field-row input,
html.v30-dark .custom-field-row textarea,
html.v30-dark .list-item-row input,
html.v30-dark .list-item-row textarea,
html.v30-dark select {
  color: #edf4f6 !important;
  border-color: #3b505a !important;
  background: #0d171c !important;
}

html.v30-dark .form-step-actions,
html.v30-dark .preview-save-card,
html.v30-dark .preview-note {
  border-color: #334752 !important;
  background: #152128 !important;
}

html.v30-dark .preview-stage,
html.v30-dark .preview-canvas {
  background: #090f13 !important;
}

html.v30-dark .cv-sheet,
html.v30-dark #cv-document {
  color-scheme: light !important;
  color: #202020 !important;
  background: #fff !important;
}

html.v30-dark .v30-theme-toggle {
  color: #f2d9a7 !important;
  border-color: #876d3e !important;
  background: #5b4725 !important;
}

/* v31: consistent interface theme and explicit mobile app controls. */
.v31-install-button {
  min-width: 88px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.v31-install-button span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #ffffff14;
  font-size: 13px;
}

.v31-install-button b { font-size: 8px; }
.v31-install-button[data-pwa-state="installed"] { color: #d7f0df !important; border-color: #56866a !important; background: #1b5b3a !important; }
.v31-mobile-tools { display: none; }

html.v30-dark .completion-card,
html.v30-dark .flexible-group,
html.v30-dark .quick-start,
html.v30-dark .preview-toolbar,
html.v30-dark .preview-design-studio,
html.v30-dark .selected-design-bar,
html.v30-dark .preview-save-card,
html.v30-dark .v26-extra-templates,
html.v30-dark .v26-template-card,
html.v30-dark .v26-import-card,
html.v30-dark .v27-guide-card,
html.v30-dark .v27-guide-top,
html.v30-dark .v27-guide-footer,
html.v30-dark .v27-guide-route article,
html.v30-dark .v27-guide-grid article {
  color: #e5eef2 !important;
  border-color: #344852 !important;
  background: #17242b !important;
  box-shadow: none !important;
}

html.v30-dark .group-title,
html.v30-dark .custom-field-row,
html.v30-dark .list-item-row,
html.v30-dark .preview-studio-head,
html.v30-dark .preview-save-copy,
html.v30-dark .quick-start summary,
html.v30-dark .v26-extra-head,
html.v30-dark .v26-photo-control-head {
  color: #dbe6eb !important;
  border-color: #344852 !important;
  background: transparent !important;
}

html.v30-dark .completion-card b,
html.v30-dark .completion-card span,
html.v30-dark .group-title b,
html.v30-dark .group-title small,
html.v30-dark .quick-start b,
html.v30-dark .quick-start small,
html.v30-dark .preview-design-studio b,
html.v30-dark .preview-design-studio small,
html.v30-dark .selected-design-bar,
html.v30-dark .v26-extra-templates b,
html.v30-dark .v26-extra-templates small,
html.v30-dark .v27-guide-card h2,
html.v30-dark .v27-guide-card b,
html.v30-dark .v27-guide-card p {
  color: #dce8ed !important;
}

html.v30-dark .photo-preview,
html.v30-dark .completion-score,
html.v30-dark .preview-scale,
html.v30-dark .design-compare-card,
html.v30-dark .preview-design-tabs,
html.v30-dark .template-language-toggle,
html.v30-dark .preview-more {
  color: #cbd9df !important;
  border-color: #3a4f59 !important;
  background: #101b21 !important;
}

html.v30-dark .add-button,
html.v30-dark .form-step-actions button:not(.form-preview-button),
html.v30-dark .photo-actions button,
html.v30-dark .editor-head-actions button:not(.v26-import-button),
html.v30-dark .sample-alert-actions button,
html.v30-dark .quick-start-actions button {
  color: #d6e3e8 !important;
  border-color: #3a4f59 !important;
  background: #101b21 !important;
}

html.v30-dark .v31-install-button {
  color: #d7e5eb !important;
  border-color: #49606c !important;
  background: #172830 !important;
}

@media (max-width: 760px) {
  .section-journey {
    position: relative !important;
    top: auto !important;
    margin-top: 12px !important;
  }

  .section-journey-head {
    min-height: 64px !important;
    grid-template-columns: 46px minmax(0, 1fr) 46px !important;
    padding: 8px 9px !important;
  }

  .journey-current b {
    font-size: 15px !important;
  }

  .section-journey .panel-tabs {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 9px !important;
    overflow: visible !important;
  }

  .section-journey .panel-tabs button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    padding: 6px 2px !important;
    font-size: 9.5px !important;
  }

  .v26-photo-control-head {
    align-items: stretch;
    flex-direction: column;
  }

  .v30-photo-reset {
    align-self: flex-start;
    min-height: 40px;
  }

  .v30-photo-range {
    grid-template-columns: 1fr 46px;
    gap: 7px;
    padding: 9px;
    font-size: 9.5px;
  }

  .v30-photo-range input {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 34px;
  }

  .v30-photo-range output {
    grid-column: 2;
    grid-row: 1;
  }

  .mobile-app-dock {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 8px 24px #102b3924 !important;
  }

  html.v30-dark .mobile-app-dock {
    border-color: #3a4b55 !important;
    background: #121d23f7 !important;
  }

  html.v30-dark .mobile-app-dock button {
    color: #b7c7cf !important;
  }

  html.v30-dark .mobile-app-dock button.active {
    color: #fff !important;
    background: #1b3441 !important;
    box-shadow: inset 0 0 0 1px #3f6578 !important;
  }

  .v30-theme-toggle {
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
  }

  .v30-theme-toggle b {
    display: none;
  }

  .v30-theme-toggle span {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .v31-mobile-tools {
    margin: 8px 10px 0;
    padding: 7px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    border: 1px solid #d4e0e5;
    border-radius: 15px;
    background: #ffffffed;
    box-shadow: 0 9px 25px #12384b0d;
  }

  .v31-mobile-tools button {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 7px 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #315565;
    border: 1px solid #cad9df;
    border-radius: 11px;
    background: #f7fafb;
    font-family: inherit;
    font-weight: 900;
    touch-action: manipulation;
  }

  .v31-mobile-tools button > span {
    width: 29px !important;
    height: 29px !important;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #e7f0f3;
    font-size: 16px !important;
  }

  .v31-mobile-tools button > b {
    display: block !important;
    font-size: 9.5px !important;
  }

  .v31-mobile-tools .v31-mobile-install {
    color: #76551f;
    border-color: #d8c18f;
    background: #fff9eb;
  }

  .v31-mobile-tools .v31-mobile-install > span { background: #f6e8c9; }
  .v31-mobile-tools .v31-mobile-install[data-pwa-state="installed"] { color: #32604a; border-color: #a9ccb9; background: #eef8f2; }

  html.v30-dark .v31-mobile-tools {
    border-color: #344852;
    background: #101a20f2;
  }

  html.v30-dark .v31-mobile-tools button {
    color: #d4e1e6 !important;
    border-color: #3b505b !important;
    background: #17262d !important;
  }

  html.v30-dark .v31-mobile-tools button > span { background: #20353f !important; }
  html.v30-dark .v31-mobile-tools .v30-theme-toggle.active { color: #f2d9a7 !important; border-color: #876d3e !important; background: #5b4725 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .v27-guide-modal,
  .v27-guide-card,
  .v26-toast,
  .panel-tabs button,
  .mobile-app-dock button {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Force the normal mobile workspace even when a phone browser requests a wide viewport. */
html.v26-phone-device .mobile-switch {
  display: grid;
}

@media print {
  .v26-builder-map,
  .v26-context-guide,
  .v26-field-hint,
  .v26-photo-controls,
  .v26-extra-templates,
  .v26-import-modal,
  .v26-toast,
  .v26-import-button,
  .v26-blank-button {
    display: none !important;
  }
}

/* Reliable, self-contained user guide. */
body.v27-guide-open {
  overflow: hidden !important;
}

.v27-guide-modal {
  z-index: 100000;
  position: fixed;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.v27-guide-modal.open {
  opacity: 1;
  visibility: visible;
}

.v27-guide-backdrop {
  position: absolute;
  inset: 0;
  background: #061c28d9;
  backdrop-filter: blur(10px);
}

.v27-guide-card {
  width: min(980px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #17394b;
  border: 1px solid #ffffff52;
  border-radius: 24px;
  background: #f7fafb;
  box-shadow: 0 40px 100px #020e15a8;
  transform: translateY(16px) scale(.985);
  transition: transform .18s ease;
}

.v27-guide-modal.open .v27-guide-card {
  transform: translateY(0) scale(1);
}

.v27-guide-top {
  min-height: 72px;
  padding: 11px 14px 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  border-bottom: 1px solid #e1c68644;
  background: linear-gradient(115deg, #082534, #10475f 65%, #1c6580);
}

.v27-guide-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.v27-guide-brand > span {
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #f1ddb6;
  border: 1px solid #d4b778;
  border-radius: 10px;
  background: #ffffff0b;
  line-height: 1;
}

.v27-guide-brand > span b { align-self: end; font: 700 18px/1 Georgia, serif; }
.v27-guide-brand > span small { align-self: start; margin-top: -3px; font-size: 5px; font-weight: 900; letter-spacing: .12em; }
.v27-guide-brand > div b,
.v27-guide-brand > div small { display: block; }
.v27-guide-brand > div b { font-family: Georgia, serif; font-size: 15px; }
.v27-guide-brand > div small { margin-top: 3px; color: #d7c69f; font-size: 6px; font-weight: 850; letter-spacing: .13em; }

.v27-guide-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid #ffffff38;
  border-radius: 12px;
  background: #ffffff0d;
  font-size: 26px;
  line-height: 1;
}

.v27-guide-close:hover,
.v27-guide-close:focus-visible {
  outline: 2px solid #ead39f;
  outline-offset: 2px;
  background: #ffffff1c;
}

.v27-guide-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 31px;
  background:
    radial-gradient(circle at 91% 1%, #dbeef3 0, transparent 25rem),
    radial-gradient(circle at 4% 92%, #faefd9 0, transparent 22rem),
    #f7fafb;
}

.v27-guide-intro {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.v27-guide-intro > span {
  display: inline-block;
  padding: 6px 10px;
  color: #7b5921;
  border: 1px solid #e2cb9c;
  border-radius: 999px;
  background: #fff6e4;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: .11em;
}

.v27-guide-intro h2 {
  margin: 11px 0 8px;
  color: #0f3448;
  font-size: clamp(25px, 3.6vw, 39px);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.v27-guide-intro p {
  max-width: 690px;
  margin: 0 auto;
  color: #6a7f89;
  font-size: 11px;
  line-height: 1.8;
}

.v27-guide-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.v27-guide-route article {
  min-width: 0;
  min-height: 158px;
  padding: 15px;
  border: 1px solid #d8e3e7;
  border-radius: 14px;
  background: #ffffffde;
  box-shadow: 0 10px 28px #12384b0b;
}

.v27-guide-route i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #f5e2bc;
  border-radius: 10px;
  background: linear-gradient(145deg, #10394e, #24708f);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.v27-guide-route b { display: block; margin-top: 14px; color: #183c50; font-size: 10.5px; }
.v27-guide-route p { margin: 5px 0 0; color: #71858f; font-size: 8px; line-height: 1.65; }

.v27-guide-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.v27-guide-grid article {
  min-width: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 11px;
  border: 1px solid #d8e3e7;
  border-radius: 13px;
  background: #fff;
}

.v27-guide-grid article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #245a72;
  border: 1px solid #cfe0e7;
  border-radius: 10px;
  background: #edf7fa;
  font-size: 13px;
  font-weight: 900;
}

.v27-guide-grid article.v27-guide-warning { border-color: #dfc17f; background: #fff8e9; }
.v27-guide-grid article.v27-guide-warning > span { color: #fff; border-color: #9d6c19; background: #9d6c19; }
.v27-guide-grid b { color: #193e51; font-size: 10px; }
.v27-guide-grid p { margin: 3px 0 0; color: #70838d; font-size: 8px; line-height: 1.65; }

.v27-guide-footer {
  min-height: 76px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #d8e3e7;
  background: #fff;
}

.v27-guide-footer a,
.v27-guide-footer button {
  min-height: 46px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 9px;
  font-weight: 900;
}

.v27-guide-footer a { color: #405e6c; border: 1px solid #cedce1; background: #f8fbfc; text-decoration: none; }
.v27-guide-footer button { color: #fff; border: 1px solid #1e6887; background: linear-gradient(135deg, #0b2d3e, #287391); box-shadow: 0 11px 25px #123e5224; }

@media (max-width: 760px) {
  .v27-guide-modal { padding: 7px; place-items: stretch; }
  .v27-guide-card { width: 100%; max-height: calc(100dvh - 14px); border-radius: 18px; }
  .v27-guide-top { min-height: 62px; padding: 8px; }
  .v27-guide-brand > span { width: 40px; height: 40px; }
  .v27-guide-brand > div b { font-size: 12px; }
  .v27-guide-brand > div small { font-size: 5px; }
  .v27-guide-close { width: 44px; height: 44px; }
  .v27-guide-scroll { padding: 22px 14px; }
  .v27-guide-intro { text-align: start; }
  .v27-guide-intro h2 { font-size: 27px; }
  .v27-guide-intro p { font-size: 10px; }
  .v27-guide-route { grid-template-columns: 1fr; }
  .v27-guide-route article { min-height: 0; padding: 13px; display: grid; grid-template-columns: 35px 1fr; gap: 10px; }
  .v27-guide-route i { grid-row: 1 / 3; }
  .v27-guide-route b { margin-top: 1px; }
  .v27-guide-route p { margin-top: 3px; }
  .v27-guide-grid { grid-template-columns: 1fr; }
  .v27-guide-footer { padding: 9px; display: grid; grid-template-columns: 1fr 1.25fr; }
  .v27-guide-footer a,
  .v27-guide-footer button { padding-inline: 7px; }
}

@media print {
  .v27-guide-modal { display: none !important; }
}

/* v29: clearer mobile navigation and immediate touch feedback. */
@media (max-width: 760px) {
  .mobile-app-dock {
    height: 78px !important;
    bottom: 8px !important;
    left: 8px !important;
    right: 8px !important;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom)) !important;
    gap: 5px !important;
    border: 1px solid #9badb74d !important;
    border-radius: 21px !important;
    background: #fffffff8 !important;
    box-shadow: 0 14px 38px #102b392e !important;
  }

  .mobile-app-dock button {
    min-height: 61px !important;
    padding: 5px 3px !important;
    gap: 4px !important;
    border-radius: 14px !important;
    color: #445b67 !important;
    touch-action: manipulation;
  }

  .mobile-app-dock button > span {
    width: 32px !important;
    height: 29px !important;
    font-size: 18px !important;
  }

  .mobile-app-dock button > b {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    white-space: nowrap;
  }

  .mobile-app-dock button.active {
    color: #0f4967 !important;
    background: linear-gradient(145deg, #edf5f8, #e4eef3) !important;
    box-shadow: inset 0 0 0 1px #9ebbc9 !important;
  }

  .mobile-app-dock button.active::before {
    width: 24px !important;
    height: 3px !important;
    top: 2px !important;
  }

  .mobile-app-dock .dock-save {
    color: #6d4f20 !important;
    background: #fffaf0 !important;
    box-shadow: inset 0 0 0 1px #d8c18f !important;
  }

  .mobile-app-dock .dock-save > span {
    color: #704f1c !important;
    background: #fff3d7 !important;
    border-color: #cfb472 !important;
  }

  .mobile-app-dock button > em {
    top: 3px !important;
    min-width: 17px !important;
    height: 17px !important;
    font-size: 7px !important;
  }

  .form-panel {
    padding-bottom: 108px !important;
  }

  button,
  a,
  summary,
  input[type="range"] {
    touch-action: manipulation;
  }
}
