.anvy-h01 {
    --anvy-ink: #23211d;
    --anvy-paper: #fcfaf6;
    --anvy-border: #e5ded2;
    color: var(--anvy-ink);
}
.anvy-h01 [hidden] { display: none !important; }
.anvy-h01 label { display: grid; gap: .35rem; min-width: 0; overflow-wrap: anywhere; }
.anvy-h01 :is(input,select,textarea) { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 2.55rem; font: inherit; }
.anvy-h01 input[type=hidden] { display: none; }
.anvy-h01 :is(input:not([type=file]),select,textarea) { padding: .48rem .65rem; border: 1px solid #c9c2b7; border-radius: .35rem; }
.anvy-h01 .button { display: inline-flex; align-items: center; padding: .5rem .8rem; min-height: 2.5rem; border: 1px solid #284638; border-radius: .38rem; color: #fff; background: #284638; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.anvy-h01 .button:hover { background: #1f352b; color: #fff; }
.anvy-h01 .button:disabled { opacity: .55; cursor: default; }
.anvy-h01 :focus-visible { outline: 2px solid #356e9d; outline-offset: 2px; }
.anvy-advisor, .anvy-frame-panel { padding: clamp(1rem, 3vw, 2rem); background: var(--anvy-paper); border: 1px solid var(--anvy-border); border-radius: .8rem; margin-block: 1rem; }
.anvy-advisor { margin-inline: auto; max-width: 76rem; }
.anvy-product .anvy-frame-panel { display: grid; gap: 12px; padding: clamp(14px, 2.5vw, 20px); margin-block: 0 8px; border-radius: 8px; }
.anvy-product .anvy-frame-panel label { color: #37433c; font-size: 14px; font-weight: 600; }
.anvy-product .anvy-frame-panel select { min-height: 48px; background: #fff; font-weight: 400; }
.anvy-product .anvy-summary { margin: 0; font-size: 13px; line-height: 1.6; color: #536454; }
.anvy-product .anvy-frame-panel .button { display: flex; float: none; gap: .35rem; width: 100%; margin: 0; justify-content: center; text-align: center; min-height: 44px; white-space: normal; }
.anvy-product .anvy-phone-button { color: #284638; background: transparent; }
.anvy-product .anvy-phone-button:hover { color: #fff; background: #284638; }
.anvy-advisor-form, .anvy-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.anvy-space-photo { display: grid; gap: .55rem; padding: .85rem; border: 1px dashed #b9ad9e; border-radius: .55rem; }
.anvy-photo-thumbnail { display: flex; align-items: center; gap: .6rem; }
.anvy-photo-thumbnail img { width: 6.5rem; height: 4.5rem; object-fit: cover; border-radius: .3rem; }
.anvy-h01 .anvy-photo-consent { display: flex; align-items: center; gap: .45rem; }
.anvy-photo-consent input[type=checkbox] { width: 1rem; height: 1rem; min-height: 0; flex: 0 0 auto; }
.anvy-details { padding: .5rem .7rem; border: 1px solid var(--anvy-border); border-radius: .4rem; }
.anvy-details summary { cursor: pointer; font-weight: 600; }
.anvy-details p { margin-block: .6rem; }
.anvy-wide { grid-column: 1 / -1; }
.anvy-advisor-form button { justify-self: start; }
.anvy-conversation { display: grid; gap: .35rem; margin-block: .8rem; max-height: 12rem; overflow: auto; }
.anvy-conversation p { margin: 0; padding: .45rem .65rem; background: white; border: 1px solid var(--anvy-border); border-radius: .35rem; }
.anvy-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.anvy-help { display: inline-block; margin-block: 0 .75rem; }
.anvy-result { border: 1px solid var(--anvy-border); background: white; border-radius: .55rem; padding: 1rem; }
.anvy-result img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--anvy-paper); }
.anvy-result .button { margin: .25rem .4rem .25rem 0; }
.anvy-fit-note { display: block; margin-block: .35rem .5rem; color: #5f523e; }
.anvy-h01 .anvy-measure-prompt { color: #284638; background: transparent; margin-block-end: .9rem; }
.anvy-h01 .anvy-measure-prompt:hover { color: #fff; }
.anvy-wall { box-sizing: border-box; width: min(94vw, 62rem); max-height: 94dvh; padding: 0; border: 1px solid var(--anvy-border); border-radius: .85rem; background: var(--anvy-paper); overflow: auto; }
.anvy-wall::backdrop { background: rgb(19 18 16 / .64); }
.anvy-wall :is(button, summary) { touch-action: manipulation; }
.anvy-wall-body { padding: clamp(1rem, 4vw, 2rem); }
.anvy-wall-header { display: flex; position: sticky; top: 0; z-index: 1; align-items: start; justify-content: space-between; gap: .8rem; padding-block: .5rem; background: var(--anvy-paper); }
.anvy-wall-header h2 { margin: 0; font-size: clamp(1.15rem, 5vw, 1.65rem); }
.anvy-wall-header button { flex-shrink: 0; }
.anvy-wall .anvy-actions { position: static; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; height: auto; }
.anvy-wall .anvy-actions .button { position: static; float: none; margin: 0; }
.anvy-wall .anvy-actions form { margin: 0; }
.anvy-try { margin-block: 1rem 2rem; }
.anvy-try .anvy-results { margin-block: 1rem; }
.anvy-try-card { display: grid; gap: .5rem; align-content: start; padding: 1rem; border: 1px solid #ddd8cb; border-radius: .65rem; }
.anvy-try-card img { display: block; width: 100%; height: 12rem; object-fit: contain; background: #fff; }
.anvy-try-card h3, .anvy-try-card p { margin: 0; }
.anvy-wall .anvy-actions { margin-top: .85rem; }
.anvy-preview-modes { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: .85rem; }
.anvy-wall .anvy-preview-modes .button { border: 1px solid #cbd4cd; background: transparent; color: #284638; }
.anvy-wall .anvy-preview-modes .button:hover { background: #e9eee9; border-color: #a2b5a9; }
.anvy-ar-panel { display: grid; gap: .55rem; }
.anvy-ar-panel p { margin: 0; }
.anvy-ar-model { --anvy-model-height: clamp(245px, 41dvh, 480px); display: block; position: relative; width: 100%; height: var(--anvy-model-height); overflow: hidden; background: #fff; }
.anvy-ar-model::part(default-progress-bar) { display: none; }
.anvy-ar-poster { justify-self: center; width: auto; height: auto; max-width: 100%; max-height: var(--anvy-model-height); object-fit: contain; }
.anvy-ar-controls:not(:empty) { display: flex; flex-wrap: wrap; gap: .4rem; }
.anvy-ar-share { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding: .65rem 1rem .65rem .65rem; border: 1px solid #dce2d9; background: #f1f3ec; border-radius: .55rem; }
.anvy-ar-share h3 { font-size: 1rem; margin: 0 0 .35rem; }
.anvy-ar-share p { font-size: .9rem; margin: 0 0 .35rem; }
.anvy-ar-share .anvy-ar-qr { display: block; flex: none; width: 160px; height: 160px; max-width: 100%; image-rendering: pixelated; }
.anvy-h01 .anvy-phone-button { margin: .25rem 0; }
.anvy-result .anvy-phone-button { color: #284638; background: transparent; }
.anvy-result .anvy-phone-button:hover { color: #fff; }
.anvy-ar-status, .anvy-ar-help { font-size: .9rem; }
.anvy-ar-recovery { font-size: .9rem; }
.anvy-ar-recovery a { display: block; padding-block: .65rem; }
.anvy-ar-controls > .anvy-ar-help, .anvy-ar-controls > .anvy-ar-recovery { flex-basis: 100%; }
.anvy-ar-wall { min-height: 44px; }
.anvy-ar-wall[hidden] { display: none; }
.anvy-ar-wall:disabled { opacity: .6; cursor: wait; }
.anvy-ar-camera { position: absolute; inset: auto .75rem .75rem auto; z-index: 1; }
.anvy-wall .anvy-ar-controls .anvy-ar-apple { display: inline-flex; align-items: center; gap: .55rem; }
.anvy-ar-apple::after { content: 'Mở camera AR'; }
.anvy-ar-apple img { display: block; width: 1.65rem; height: 1.65rem; object-fit: cover; border-radius: .18rem; }
.anvy-ar-panel .anvy-ar-scan { display: none; position: absolute; inset: auto .5rem 16% .5rem; margin-inline: auto; padding: .6rem .8rem; width: fit-content; max-width: 90%; border-radius: .4rem; background: #14231ee8; color: #fff; text-align: center; pointer-events: none; }
.anvy-ar-model[ar-status=session-started] .anvy-ar-scan { display: block; }
.anvy-photo:not(:empty) { display: grid; gap: .7rem; margin-block-start: 1rem; }
.anvy-photo p { margin: 0; }
.anvy-wall-stage { position: relative; overflow: hidden; width: min(100%, calc(58dvh * var(--anvy-photo-ratio, 1.5))); margin-inline: auto; border-radius: .4rem; background: #e7e0d6; touch-action: none; isolation: isolate; cursor: move; }
.anvy-wall .anvy-wall-stage img { display: block; width: 100%; height: 100%; max-width: none; pointer-events: none; user-select: none; }
.anvy-wall-room, .anvy-wall-frame, .anvy-wall-outline { position: absolute; left: 0; top: 0; }
.anvy-wall-stage .anvy-wall-room { object-fit: fill; }
.anvy-wall-stage[data-wall-mode=pick] { cursor: crosshair; touch-action: pan-y; }
.anvy-wall-frame { box-sizing: border-box; border: solid; transform-origin: 0 0; box-shadow: 1px 3px 5px #17120d55, 5px 9px 18px #17120d40; background: #453c32; pointer-events: none; }
.anvy-wall-frame[data-shadow=left] { box-shadow: -1px 3px 5px #17120d55, -5px 9px 18px #17120d40; }
.anvy-wall-frame[data-shadow=off] { box-shadow: none; }
.anvy-wall-frame::after { content: ''; position: absolute; inset: -1px; box-shadow: inset 0 0 0 1px #fff3, inset 0 0 4px #12100e66; pointer-events: none; }
.anvy-wall-stage .anvy-wall-frame img { object-fit: cover; }
.anvy-wall-outline { width: 100%; height: 100%; pointer-events: none; fill: #ffdb851d; stroke: #ffe295; stroke-width: 2; stroke-dasharray: 5 4; }
.anvy-wall-outline.anvy-wall-invalid { fill: #b42a1620; stroke: #eb624d; }
.anvy-wall-stage .anvy-corner { position: absolute; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; transform: translate(-50%, -50%); border: 2px solid #fff5d7; border-radius: 50%; background: #244135; color: #fff; font: 700 .8rem/1 sans-serif; cursor: move; touch-action: none; user-select: none; }
.anvy-wall-controls { display: flex; flex-wrap: wrap; gap: .45rem; }
.anvy-wall-note, .anvy-wall-guide, .anvy-wall-file { font-size: .88rem; }
.anvy-wall-note:empty { display: none; }
.anvy-wall-tools { display: grid; gap: .5rem; }
.anvy-wall .anvy-wall-scale { display: flex; align-items: center; gap: .75rem; font-size: .88rem; }
.anvy-wall .anvy-wall-scale input { width: min(11rem, 45%); min-height: 1.85rem; padding: 0; accent-color: #284638; }
.anvy-wall-measures, .anvy-wall-lighting { border: 1px solid var(--anvy-border); border-radius: .4rem; padding: .5rem .65rem; }
.anvy-wall-measures summary, .anvy-wall-lighting summary { font-weight: 600; cursor: pointer; }
.anvy-wall-lighting label { margin-top: .55rem; max-width: 17rem; }
.anvy-wall .anvy-wall-lighting input[type=range] { min-height: 1.8rem; padding: 0; accent-color: #284638; }
.anvy-wall-measures p { margin-block: .5rem; }
.anvy-wall-measure-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
@media (max-width: 670px) {
    .anvy-advisor-form, .anvy-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.anvy-try-pages{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}
.anvy-try-pages .page-numbers{padding:8px 12px;border:1px solid #c9d0c8;border-radius:4px}
.anvy-dimension-note{font-size:13px;color:#59675c}
