.v6-measure {
  display: grid;
  gap: 18px;
}

.v6-topbar {
  align-items: center;
}

.v6-measure-top {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.05fr) minmax(260px, 0.82fr);
  gap: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #f7faf9, #eef4f3);
}

body[data-omercim-chat="on"] .v6-measure-top {
  grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 0.82fr);
}

body[data-omercim-chat="on"] .v6-ai-column {
  display: none;
}

.v6-top-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.v6-ai-helper {
  margin: 4px 0 0;
  color: var(--merci-muted);
  font-size: 12px;
  line-height: 1.35;
}

.v6-ai-engine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--merci-muted);
  font-size: 13px;
}

.v6-ai-engine strong {
  color: var(--merci-ink);
  font-size: 13px;
  text-align: right;
}

.v6-ai-engine.is-live {
  border-color: rgba(23, 107, 91, 0.28);
  background: rgba(236, 253, 245, 0.78);
}

.v6-ai-engine.is-live strong {
  color: #0f6b57;
}

.v6-ai-engine.is-local,
.v6-ai-engine.is-error {
  border-color: rgba(180, 35, 24, 0.24);
  background: rgba(255, 241, 239, 0.72);
}

.v6-ai-engine.is-local strong,
.v6-ai-engine.is-error strong {
  color: #9c1d14;
}

.v6-ai-textarea {
  min-height: 74px;
  resize: vertical;
}

.v6-inline-actions {
  display: grid;
  grid-template-columns: minmax(82px, 0.45fr) minmax(130px, 0.85fr) minmax(150px, 0.9fr);
  gap: 10px;
}

.v6-inline-actions .merci-button {
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

.v6-inline-actions .merci-button.is-listening {
  border-color: #b42318;
  background: #fff1ef;
  color: #9c1d14;
}

.v6-omercim-listening-mode [data-reset-layout] {
  display: none;
}

.v6-omercim-listening-mode .v6-inline-actions {
  grid-template-columns: minmax(150px, 0.65fr) minmax(190px, 0.9fr);
}

.v6-omercim-listening-mode [data-start-listening] {
  min-height: 52px;
  justify-content: center;
  border-color: rgba(23, 107, 91, 0.42);
  background: #147763;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.v6-omercim-listening-mode [data-start-listening].is-listening {
  border-color: #b42318;
  background: #b42318;
  color: #fff;
}

.v6-ai-chat-log {
  display: none;
  gap: 8px;
  max-height: 270px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(23, 107, 91, 0.18);
  border-radius: var(--merci-radius);
  background: rgba(255, 255, 255, 0.58);
}

.v6-ai-message {
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid var(--merci-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
}

.v6-ai-message strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--merci-muted);
}

.v6-ai-message p {
  margin: 0;
  color: var(--merci-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.v6-ai-message.is-user {
  justify-self: end;
  background: #edf7f4;
  border-color: rgba(23, 107, 91, 0.28);
}

.v6-ai-message.is-assistant {
  justify-self: start;
}

.v6-ai-result {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px dashed rgba(23, 107, 91, 0.32);
  border-radius: var(--merci-radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--merci-muted);
  font-weight: 700;
}

.v6-ai-result:empty {
  display: none;
}

.v6-summary-panel {
  display: grid;
  gap: 10px;
}

.v6-summary-tile {
  min-height: 74px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--merci-border);
  border-radius: var(--merci-radius);
}

.v6-summary-tile span {
  display: block;
  color: var(--merci-muted);
  font-size: 14px;
}

.v6-summary-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 21px;
}

.v6-summary-tile small {
  display: block;
  margin-top: 6px;
  color: var(--merci-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.v6-piece-section {
  display: grid;
  gap: 14px;
}

.v6-page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--merci-border);
  border-radius: var(--merci-radius);
  box-shadow: var(--merci-shadow-sm);
}

.v6-page-actions .merci-button {
  min-width: 180px;
}

.v6-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.v6-piece-list {
  display: grid;
  gap: 16px;
}

.v6-piece-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--merci-border);
  border-radius: var(--merci-radius);
  box-shadow: var(--merci-shadow-sm);
}

.v6-preview-stack {
  display: grid;
  gap: 12px;
}

.v6-stone-rows {
  display: grid;
  gap: 14px;
}

.v6-stone-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  align-items: start;
  gap: 14px;
}

.v6-stone-preview-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--merci-border);
  border-radius: var(--merci-radius);
}

.v6-stone-preview-card[data-warning-level="warning"] {
  border-color: rgba(184, 110, 19, 0.44);
  background: #fffaf0;
}

.v6-stone-preview-card[data-warning-level="danger"] {
  border-color: rgba(180, 35, 24, 0.46);
  background: #fff7f6;
}

.v6-stone-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.v6-stone-preview-head strong {
  min-width: 0;
}

.v6-stone-preview-head span {
  color: var(--merci-muted);
  font-weight: 700;
}

.v6-preview-zoom {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.v6-warning-pill {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e5f4ee;
  color: #046344;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.v6-warning-pill[data-warning-level="warning"] {
  background: #fff2d7;
  color: #865005;
}

.v6-warning-pill[data-warning-level="danger"] {
  background: #ffe4e0;
  color: #a11b11;
}

.v6-stone-preview-meta {
  padding: 6px 8px;
  color: #4f6070;
  background: #f4f8f7;
  border: 1px solid rgba(23, 107, 91, 0.14);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.v6-stone-svg {
  width: 100%;
  min-height: 176px;
  background:
    linear-gradient(rgba(78, 142, 190, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 142, 190, 0.10) 1px, transparent 1px),
    #fbfcfd;
  background-size: 22px 22px;
  border: 1px solid var(--merci-border);
  border-radius: 6px;
}

.v6-stone-svg .merci-stone-fill {
  fill: #efe4cf;
  stroke: #243241;
  stroke-width: 0.9;
}

.v6-stone-svg .merci-cut-line {
  stroke: #101820;
  stroke-width: 0.9;
}

.v6-stone-svg-empty {
  min-height: 132px;
}

.v6-stone-svg .merci-empty-stone-box {
  fill: rgba(248, 250, 252, 0.82);
  stroke: rgba(78, 96, 112, 0.32);
  stroke-width: 1;
  stroke-dasharray: 7 5;
}

.v6-stone-svg .merci-empty-stone-title {
  fill: #243241;
  font-size: 16px;
  font-weight: 800;
}

.v6-stone-svg .merci-empty-stone-text {
  fill: #5d6f80;
  font-size: 13px;
  font-weight: 700;
}

.v6-stone-svg[data-warning-level="warning"] .merci-cut-line,
.v6-stone-svg[data-warning-level="warning"] .merci-stone-fill {
  stroke: #b86e13;
}

.v6-stone-svg[data-warning-level="danger"] .merci-cut-line,
.v6-stone-svg[data-warning-level="danger"] .merci-stone-fill {
  stroke: #b42318;
}

.merci-dim-line {
  fill: none;
  stroke: #506272;
  stroke-width: 0.42;
  vector-effect: non-scaling-stroke;
}

.merci-diagonal-line {
  fill: none;
  stroke: #8a5a15;
  stroke-width: 0.38;
  stroke-dasharray: 3 2;
  opacity: 0.78;
  vector-effect: non-scaling-stroke;
}

.merci-corner-dot {
  fill: #101820;
  stroke: #fff;
  stroke-width: 0.4;
  vector-effect: non-scaling-stroke;
}

.merci-dim-text,
.merci-diagonal-text,
.merci-size-text {
  fill: #22303c;
  font-size: 3.9px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1.2px;
  stroke-linejoin: round;
}

.merci-diagonal-text {
  fill: #78420b;
  font-size: 3.55px;
}

.merci-size-text {
  fill: #596a78;
  font-size: 4.8px;
  stroke-width: 1.6px;
}

.v6-piece-side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
  background: var(--merci-surface-soft);
  border: 1px solid var(--merci-border);
  border-radius: var(--merci-radius);
}

.v6-piece-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.v6-piece-title {
  margin: 0;
  font-size: 24px;
}

.v6-stone-editor {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--merci-border);
  border-radius: var(--merci-radius);
}

.v6-piece-actions {
  display: flex;
  justify-content: flex-end;
}

.v6-piece-actions .merci-button {
  min-width: 280px;
}

.v6-stone-editor h3 {
  margin: 0;
  font-size: 17px;
}

.v6-wall-controls {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f7faf9;
  border: 1px solid rgba(23, 107, 91, 0.18);
  border-radius: var(--merci-radius);
}

.v6-wall-controls-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.v6-wall-controls-head h3 {
  margin: 0;
  font-size: 17px;
}

.v6-wall-controls-head span {
  color: var(--merci-muted);
  font-size: 13px;
  font-weight: 800;
}

.v6-wall-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.v6-wall-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--merci-border);
  border-radius: 8px;
}

.v6-wall-control.is-active {
  border-color: rgba(23, 107, 91, 0.42);
  background: #eff8f4;
}

.v6-wall-control strong,
.v6-wall-control span,
.v6-wall-control small {
  display: block;
}

.v6-wall-control strong {
  font-size: 15px;
}

.v6-wall-control span {
  color: var(--merci-muted);
  font-size: 13px;
  font-weight: 700;
}

.v6-wall-control small {
  margin-top: 3px;
  color: #8a5a15;
  font-size: 12px;
  font-weight: 800;
}

.v6-wall-control-actions {
  display: flex;
  justify-content: flex-end;
}

.v6-wall-control-actions .merci-button {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.v6-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.v6-mini-field {
  display: grid;
  gap: 4px;
}

.v6-mini-field label {
  color: var(--merci-muted);
  font-size: 13px;
  font-weight: 800;
}

.v6-mini-field input {
  min-height: 42px;
  padding: 8px 10px;
}

.v6-mini-field input:disabled {
  background: #eef3f5;
  color: #667789;
  cursor: not-allowed;
}

.v6-lock-note {
  padding: 8px 10px;
  color: #5b4b05;
  background: #fff8dc;
  border: 1px solid rgba(184, 122, 0, 0.26);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.v6-derived-edges {
  padding: 8px 10px;
  color: #0f5f51;
  background: #eef8f5;
  border: 1px dashed rgba(23, 107, 91, 0.28);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.v6-derived-edges[data-warning-level="warning"] {
  color: #7c4f00;
  background: #fff8e6;
  border-color: rgba(184, 122, 0, 0.32);
}

.v6-derived-edges[data-warning-level="danger"] {
  color: #991b1b;
  background: #fff1f1;
  border-color: rgba(185, 28, 28, 0.32);
}

.v6-editor-actions {
  display: flex;
  justify-content: flex-start;
}

.v6-small-action {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.v6-small-action:disabled {
  opacity: 0.5;
  cursor: default;
}

.v6-stone-code {
  color: var(--merci-muted);
  font-size: 12px;
  word-break: break-word;
}

.v6-json-panel {
  overflow: hidden;
}

.v6-json-output {
  max-height: 320px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  background: #101820;
  color: #e8f5f1;
  font-size: 13px;
  line-height: 1.45;
}

.v6-modal-open {
  overflow: hidden;
}

.v6-drawing-modal[hidden] {
  display: none;
}

.v6-drawing-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.v6-drawing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 32, 0.58);
}

.v6-drawing-modal-panel {
  position: absolute;
  inset: 28px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--merci-border);
  border-radius: var(--merci-radius);
  box-shadow: var(--merci-shadow-md);
}

.v6-drawing-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.v6-modal-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.v6-modal-controls .merci-button {
  min-height: 36px;
  padding: 0 11px;
  font-size: 13px;
}

.v6-modal-controls [data-modal-zoom-label] {
  min-width: 82px;
  padding: 7px 10px;
  text-align: center;
  border: 1px solid var(--merci-border);
  border-radius: var(--merci-radius);
  background: #f4f8f7;
  color: var(--merci-muted);
  font-weight: 900;
}

.v6-drawing-modal-status {
  padding: 9px 12px;
  color: #0f5f51;
  background: #eef8f5;
  border: 1px dashed rgba(23, 107, 91, 0.28);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.v6-drawing-modal-status[data-warning-level="warning"] {
  color: #7c4f00;
  background: #fff8e6;
  border-color: rgba(184, 122, 0, 0.32);
}

.v6-drawing-modal-status[data-warning-level="danger"] {
  color: #991b1b;
  background: #fff1f1;
  border-color: rgba(185, 28, 28, 0.32);
}

.v6-drawing-modal-canvas {
  min-height: 0;
  overflow: auto;
  background:
    linear-gradient(rgba(78, 142, 190, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 142, 190, 0.08) 1px, transparent 1px),
    #f8fbfd;
  background-size: 24px 24px;
  border: 1px solid var(--merci-border);
  border-radius: var(--merci-radius);
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.v6-drawing-modal-canvas.is-panning {
  cursor: grabbing;
}

.v6-drawing-modal-canvas .v6-stone-svg {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
}

@media (max-width: 1023px) {
  .v6-topbar {
    align-items: stretch;
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
  }

  .v6-topbar .merci-brand {
    justify-content: center;
    gap: 10px;
    font-size: 16px;
  }

  .v6-topbar .merci-brand img {
    width: 94px;
    max-height: 28px;
  }

  .v6-topbar .merci-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .v6-topbar .merci-actions .merci-button {
    min-height: 42px;
    padding: 0 8px;
    font-size: 14px;
  }

  .v6-inline-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .v6-inline-actions .merci-button {
    min-height: 46px;
    width: 100%;
  }

  body[data-omercim-chat="on"] .v6-measure-top,
  .v6-measure-top,
  .v6-piece-card,
  .v6-stone-row {
    grid-template-columns: 1fr;
  }

  .v6-measure-top {
    padding: 12px;
  }

  .v6-piece-card,
  .v6-stone-preview-card,
  .v6-stone-editor {
    padding: 10px;
  }

  .v6-piece-actions {
    justify-content: stretch;
  }

  .v6-piece-actions .merci-button {
    width: 100%;
    min-width: 0;
  }

  .v6-wall-controls-head {
    align-items: start;
    flex-direction: column;
  }

  .v6-wall-control-grid {
    grid-template-columns: 1fr;
  }

  .v6-page-actions {
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .v6-page-actions .merci-button {
    width: 100%;
    min-width: 0;
  }

  .v6-section-title {
    align-items: start;
    flex-direction: column;
  }

  .v6-field-row {
    grid-template-columns: 1fr 1fr;
  }

  .v6-stone-preview-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .v6-stone-preview-head span {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .v6-warning-pill {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .v6-preview-zoom {
    grid-column: 2 / 3;
    grid-row: 2;
    min-height: 34px;
  }

  .v6-drawing-modal-panel {
    inset: 10px;
    padding: 12px;
  }

  .v6-drawing-modal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .v6-modal-controls {
    justify-content: stretch;
  }

  .v6-modal-controls .merci-button {
    flex: 1 1 auto;
  }

  .v6-drawing-modal-canvas .v6-stone-svg {
    min-height: 320px;
  }
}

@media (max-width: 520px) {
  .merci-shell.v6-measure {
    width: calc(100% - 12px);
    padding-top: 8px;
  }

  .v6-measure-top {
    padding: 8px;
  }

  body {
    overflow-x: hidden;
  }

  .v6-measure,
  .v6-piece-section,
  .v6-piece-list,
  .v6-piece-card,
  .v6-preview-stack,
  .v6-stone-rows,
  .v6-stone-row,
  .v6-stone-preview-card,
  .v6-piece-side,
  .v6-wall-controls,
  .v6-wall-control,
  .v6-wall-control > div,
  .v6-wall-control-actions,
  .v6-stone-editor {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .v6-piece-section {
    gap: 10px;
  }

  .v6-section-title {
    gap: 6px;
  }

  .v6-section-title .merci-title {
    font-size: 19px;
  }

  .v6-section-title .merci-subtitle {
    font-size: 12px;
    line-height: 1.35;
  }

  .v6-piece-list,
  .v6-piece-card,
  .v6-preview-stack,
  .v6-stone-rows {
    gap: 8px;
  }

  .v6-topbar .merci-brand {
    font-size: 15px;
  }

  .v6-topbar .merci-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v6-topbar .merci-actions .merci-button {
    min-height: 38px;
    padding: 0 6px;
    font-size: 12px;
  }

  .v6-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  .v6-mini-field {
    min-width: 0;
  }

  .v6-mini-field label {
    min-height: 24px;
    font-size: 11px;
    line-height: 1.15;
  }

  .v6-mini-field input {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 14px;
  }

  .v6-derived-edges {
    grid-column: 1 / -1;
  }

  .v6-stone-preview-head {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .v6-stone-preview-head span,
  .v6-warning-pill,
  .v6-preview-zoom {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .v6-preview-zoom {
    width: 100%;
  }

  .v6-stone-preview-card,
  .v6-stone-editor,
  .v6-piece-side {
    padding: 8px;
  }

  .v6-stone-preview-meta,
  .v6-derived-edges,
  .v6-lock-note {
    padding: 6px 7px;
    font-size: 11px;
    line-height: 1.3;
  }

  .v6-stone-svg {
    display: block;
    min-height: 132px;
    background-size: 18px 18px;
  }

  .merci-dim-text,
  .merci-diagonal-text {
    font-size: 3.25px;
  }

  .merci-size-text {
    font-size: 4px;
  }

  .v6-wall-control {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 8px;
  }

  .v6-wall-controls {
    gap: 8px;
    padding: 8px;
  }

  .v6-wall-controls-head h3 {
    font-size: 15px;
  }

  .v6-wall-controls-head span,
  .v6-wall-control span,
  .v6-wall-control small {
    font-size: 11px;
    line-height: 1.25;
  }

  .v6-wall-control strong {
    font-size: 13px;
  }

  .v6-wall-control-actions,
  .v6-wall-control-actions .merci-button {
    width: 100%;
  }

  .v6-wall-control-actions .merci-button {
    min-height: 30px;
    padding: 0 8px;
    white-space: normal;
    line-height: 1.15;
  }

  .v6-piece-title {
    font-size: 18px;
  }

  .v6-stone-code {
    font-size: 10px;
  }
}

.merci-blue-cutout {
  fill: rgba(26, 151, 211, 0.14);
  stroke: #1a97d3;
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.merci-orange-cutout {
  fill: rgba(237, 137, 54, 0.2);
  stroke: #c05621;
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.merci-outer-feature {
  fill: none;
  stroke: #0f1720;
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.merci-drill-feature {
  fill: rgba(220, 38, 38, 0.12);
  stroke: #b42318;
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.merci-feature-text {
  fill: #0f1720;
  font-size: 4px;
  font-weight: 900;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 1px;
}

@media (min-width: 1024px) {
  .v6-measure {
    gap: 14px;
  }

  .v6-measure-top {
    gap: 12px;
    padding: 14px;
  }

  .v6-top-column {
    gap: 10px;
  }

  .v6-ai-textarea {
    min-height: 112px;
  }

  .v6-inline-actions {
    gap: 8px;
  }

  .v6-inline-actions .merci-button {
    min-height: 40px;
    padding: 0 12px;
  }

  .v6-omercim-listening-mode [data-start-listening] {
    min-height: 48px;
    font-size: 16px;
  }

  .v6-ai-chat-log {
    max-height: 230px;
    padding: 8px;
  }

  .v6-ai-message {
    padding: 8px 10px;
  }

  .v6-summary-tile {
    min-height: 62px;
    padding: 10px;
  }

  .v6-summary-tile strong {
    font-size: 18px;
  }

  .v6-page-actions {
    gap: 10px;
    padding: 10px;
  }

  .v6-page-actions .merci-button {
    min-width: 140px;
  }

  .v6-piece-list,
  .v6-stone-rows {
    gap: 12px;
  }

  .v6-piece-card {
    gap: 12px;
    padding: 12px;
  }

  .v6-stone-row {
    gap: 12px;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  }

  .v6-stone-preview-card {
    gap: 7px;
    padding: 8px;
  }

  .v6-stone-preview-head {
    gap: 7px;
    font-size: 13px;
  }
}
