:root { color-scheme: dark; }
html:has(.three-studio) { overflow: hidden; }
.three-studio {
    margin: 0;
    background: radial-gradient(ellipse at 34% 10%, #4b3022, #211711 62%);
    color: #faebd3;
    font: 15px/1.4 system-ui, Tahoma, sans-serif;
}
.three-studio * { box-sizing: border-box; }
.three-studio [hidden] { display: none !important; }
.three-studio:has(#game-hearts-hud:not([hidden])) { --three-hearts: var(--hp-height, 38px); }
#three-salon {
    height: calc(100dvh - var(--game-guest-height, 0px) - var(--three-hearts, 0px));
    max-width: 1160px;
    margin-inline: auto;
    padding: 7px max(11px, env(safe-area-inset-left), env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 7px;
}
.three-header, .three-header nav, .three-client { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.three-header h1, .three-header p, .three-brief :is(h2,p), .three-help { margin: 0; }
.three-header h1 { font-size: clamp(16px, 2.6vw, 29px); }
.three-header p, .three-brief > p, .three-help { color: #e3c19a; font-size: 12px; }
.three-header nav { gap: 5px; }
#three-salon :is(button, a) {
    min-height: 34px;
    padding: 5px 9px;
    border: 1px solid #a27b515e;
    border-radius: 8px;
    background: linear-gradient(#453021, #2a1d15);
    color: #faebd3;
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    cursor: pointer;
}
#three-salon a { display: inline-grid; align-items: center; text-decoration: none; }
#three-salon :is(button, a, canvas):focus-visible { outline: 2px solid #ffdb9d; outline-offset: 2px; }
#three-salon button[aria-pressed=true] { background: #694827; border-color: #f0b775; box-shadow: inset 0 0 0 1px #fff3ca22; }
#three-salon button:disabled { opacity: .47; cursor: default; }
.three-workbench {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(245px, 1fr);
    align-items: center;
    gap: 12px;
}
.three-scene {
    position: relative;
    height: 100%;
    min-height: 0;
    border: 1px solid #bf915c9a;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(180deg, #0f0b0818 4%, #0f0b0808 60%, #100c08d8), #292018 var(--room-image, url('./salon-3d-backdrop.webp')) center 45% / cover;
    box-shadow: 0 12px 35px #100a0785;
}
#three-salon[data-backdrop=backdrop-blue] { --room-image: url('./studio-midnight.webp'); --room-preview: #172331; }
#three-salon[data-backdrop=backdrop-emerald] { --room-image: url('./studio-emerald.webp'); --room-preview: #18271b; }
.three-stage-actions {
    position: absolute;
    z-index: 1;
    inset: 7px 7px auto;
    display: flex;
    gap: 4px;
    justify-content: center;
    pointer-events: none;
}
#three-salon .three-stage-actions button {
    pointer-events: auto;
    min-height: 30px;
    padding: 3px 7px;
    background: #241b15ed;
    font-size: 11px;
}
#three-salon .three-stage-actions button[aria-pressed=true] { background: #674623; }
#three-sound[aria-pressed=false] span { text-decoration: line-through; opacity: .7; }
#bust { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#bust:active { cursor: grabbing; }
#three-salon:not([data-mode=rotate]) #bust { cursor: crosshair; }
#three-salon:not([data-mode=rotate]) .three-scene:has(#three-aim:not([hidden])) #bust { cursor: none; }
.three-angles { position: absolute; inset: auto 8px 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
#three-salon .three-angles button { min-width: 46px; min-height: 32px; border-color: #cf9d6b62; background: #2a1b14ee; }
.three-loading { position: absolute; inset: 36% 6px auto; text-align: center; font-weight: 700; text-shadow: 0 2px 6px #1b0f08; pointer-events: none; }
.three-loading a { pointer-events: auto; }
#three-aim {
    --grip-width: clamp(116px, 34vw, 190px);
    position: absolute;
    left: var(--touch-x, 50%);
    top: var(--touch-y, 50%);
    border: 1px dashed #ffdc9e;
    border-radius: 50%;
    width: var(--aim-diameter,48px);
    height: var(--aim-diameter,48px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
#three-aim .three-prop, .three-tool-icon {
    display: inline-block;
    background: var(--tool-sheet,url('./in-hand-tools.webp')) var(--tool-frame,0 100%) / var(--tool-zoom,200% 200%) no-repeat;
}
.three-grip {
    position: absolute;
    top: 50%; left: 50%;
    width: var(--grip-width);
    aspect-ratio: 248 / 224;
    translate: -3% -23%;
    transform: scaleX(var(--handle-side, 1)) rotate(var(--tool-angle, 11deg));
    transform-origin: 7.7% 29%;
    opacity: .86;
    filter: drop-shadow(0 4px 4px #110a087d);
    transition: opacity .13s ease, translate .15s ease;
}
#three-aim.engaged .three-grip { opacity: 1; translate: -7.7% -29%; }
#three-aim.engaged { border-color: #ffdc9e96; }
#three-salon[data-mode] #three-aim.parked {
    left: max(12px, calc(100% - var(--grip-width) - 8px));
    top: max(55%, calc(100% - 125px));
    border-color: transparent;
    box-shadow: none;
    transition: left .16s ease-out, top .16s ease-out;
}
#three-aim.parked .three-grip { transform: rotate(7deg); }
.three-hand-art {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: var(--hand-sheet, url('./salon-grip-atlas.webp')) var(--hand-frame, 0 0) / 200% 200% no-repeat;
}
#three-aim .three-prop {
    position: absolute;
    top: var(--prop-height, 29%);
    left: 3%;
    width: var(--prop-width, 76%);
    aspect-ratio: 2;
    translate: 0 -50%;
    filter: var(--metal, brightness(1));
}
#three-aim.reversed { --handle-side: -1; }
#three-salon:is([data-mode=clipper], [data-mode=trimmer], [data-mode=blend]) #three-aim.cutting .three-prop { animation: clip-buzz .08s alternate infinite; }
@keyframes clip-buzz { to { translate: -1px calc(-50% + 1px); } }
#three-salon[data-mode=scissors] #three-aim { --hand-frame: 100% 0; --prop-width: 87%; }
#three-salon[data-mode=scissors] #three-aim.engaged .three-prop { animation: snip .24s steps(1,end) infinite; }
@keyframes snip {
    from { background-position: 0 0; }
    50% { background-position: 100% 0; }
}
#three-salon:is([data-mode=comb], [data-mode=foam]) #three-aim { --hand-frame: 0 100%; --prop-width: 88%; }
#three-salon[data-mode=razor] #three-aim { --hand-frame: 100% 100%; --prop-width: 76%; }
#three-salon:is([data-mode=dryer], [data-mode=dye], [data-mode=rinse], [data-mode=wax]) #three-aim { --hand-sheet: url('./salon-styling-atlas.webp'); }
#three-salon[data-mode=dye] #three-aim { --hand-frame: 100% 0; }
#three-salon[data-mode=rinse] #three-aim { --hand-frame: 0 100%; }
#three-salon[data-mode=wax] #three-aim { --hand-frame: 100% 100%; }
.three-tool-icon { width: min(100%, 39px); height: 19px; filter: var(--metal,brightness(1)); }
.three-turn-icon { font-size: 21px; height: 19px; line-height: 19px; }
[data-barber-tool=scissors], [data-mode=scissors] #three-aim { --tool-frame: 0 0; }
[data-mode=scissors] #three-aim.cutting { --tool-frame: 100% 0; }
[data-barber-tool=comb], [data-mode=comb] #three-aim { --tool-frame: 100% 100%; }
[data-barber-tool=foam], [data-mode=foam] #three-aim { --tool-sheet: url('./studio-tools.webp'); --tool-frame: 100% 100%; }
[data-barber-tool=razor], [data-mode=razor] #three-aim { --tool-sheet: url('./razor.webp'); --tool-frame: center; --tool-zoom: contain; }
[data-barber-tool=blend], [data-mode=blend] #three-aim { --tool-sheet: url('./studio-tools.webp'); --metal: sepia(.55); }
[data-barber-tool=trimmer], [data-mode=trimmer] #three-aim { --metal: grayscale(.65) contrast(1.17); }
[data-mode=trimmer] #three-aim { --prop-width: 70%; }
#three-salon:is([data-clipper=clipper-chrome], [data-clipper=clipper-copper]) [data-barber-tool=clipper],
#three-salon:is([data-clipper=clipper-chrome], [data-clipper=clipper-copper])[data-mode=clipper] #three-aim,
#three-salon[data-scissors=scissors-rose] [data-barber-tool=scissors],
#three-salon[data-scissors=scissors-rose][data-mode=scissors] #three-aim { --tool-sheet: url('./studio-tools.webp'); }
#three-salon[data-clipper=clipper-copper] [data-barber-tool=clipper],
#three-salon[data-clipper=clipper-copper][data-mode=clipper] #three-aim { --metal: sepia(.8) saturate(1.6) hue-rotate(-17deg); }
#three-salon[data-scissors=scissors-onyx] [data-barber-tool=scissors],
#three-salon[data-scissors=scissors-onyx][data-mode=scissors] #three-aim { --metal: brightness(.7); }
.three-tools {
    display: grid;
    gap: 9px;
    min-width: 0;
    padding: 13px;
    border: 1px solid #ad815553;
    border-radius: 13px;
    background: linear-gradient(145deg,#422d21,#241910);
    box-shadow: 0 6px 24px #170c08a0;
}
.three-client h2 { font-size: 20px; }
.three-client-select { display: flex; align-items: center; gap: 6px; min-width: 0; }
#three-salon #three-clients { min-height: 25px; padding: 2px 6px; font-size: 11px; }
.three-match { display: flex; align-items: center; gap: 3px; color: #fbd799; font-size: 12px; }
.three-match output { border: 1px solid #edbb7b57; border-radius: 6px; padding: 2px 5px; font-weight: 750; }
.three-modes, .three-guards, .three-actions { display: grid; gap: 5px; }
.three-modes { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; }
#three-salon .three-modes button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 3px 1px;
    font-size: clamp(9px, 1.2vw, 10px);
    gap: 3px;
}
.three-guards { grid-template-columns: repeat(7, minmax(0, 1fr)); }
#three-salon:not([data-mode=clipper]) .three-guards button[aria-pressed=true] {
    background: linear-gradient(#453021, #2a1d15);
    border-color: #a27b515e;
    box-shadow: none;
}
.three-actions { grid-template-columns: 1.25fr .85fr .8fr 1.2fr; }
#three-salon :is(.three-actions, .three-guards) button { padding-inline: 2px; }
#three-salon #three-finish, #three-salon #three-next { color: #241709; background: #efba77; border-color: #ffcd8c; }
.three-help { min-height: 2.8em; }
#three-salon dialog {
    width: min(91vw, 520px);
    max-height: calc(94dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 13px;
    border: 1px solid #ad8155bd;
    border-radius: 14px;
    box-shadow: 0 15px 44px #130905c7;
    color: inherit;
    background: #302116;
}
#three-salon dialog::backdrop { background: #130e0bd6; }
.three-dialog-head, .three-result-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.three-dialog-head { margin-block-end: 8px; }
.three-dialog-head h2 { margin: 0; font-size: 19px; }
.three-comparison {
    --split: 50%;
    position: relative;
    height: clamp(118px,38dvh,295px);
    margin: 0;
    overflow: hidden;
    border: 1px solid #a27b518a;
    border-radius: 9px;
    background: radial-gradient(ellipse at 50% 40%, #62463070, transparent 74%), var(--room-preview, #18100b);
    isolation: isolate;
}
.three-comparison img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
#three-before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
#three-after { clip-path: inset(0 0 0 var(--split)); }
.three-before-label, .three-after-label {
    position: absolute;
    z-index: 1;
    top: 7px;
    padding: 3px 9px;
    color: #fff0d4;
    background: #170e0ae5;
    border: 1px solid #bd8f5680;
    border-radius: 20px;
    font-size: 12px;
}
.three-before-label { left: 7px; }
.three-after-label { right: 7px; }
.three-compare-divider {
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 var(--split);
    width: 2px;
    background: #ffe3b7;
    box-shadow: 0 0 12px #26150edf;
    pointer-events: none;
}
.three-compare-divider b {
    position: absolute;
    inset: 50% auto auto 0;
    translate: -50% -50%;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #ffe3b7;
    border-radius: 50%;
    color: #ffd694;
    background: #211611;
    font: 19px system-ui, sans-serif;
}
#three-compare-slider {
    position: absolute;
    z-index: 3;
    inset: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    touch-action: pan-y;
}
.three-comparison:focus-within { outline: 2px solid #efba77; outline-offset: 2px; }
.three-result-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(47px, 1fr)); gap: 5px; margin-block-start: 7px; }
.three-result-scores > div { display: grid; justify-items: center; gap: 1px; padding: 4px; border-radius: 7px; background: #463122; font-size: 11px; text-align: center; }
.three-result-scores output { color: #f6c98c; font-size: 17px; font-weight: 750; }
#three-feedback, #three-save-status { margin: 5px 0; font-size: 13px; }
#three-save-status:empty, .shop-info p:empty { display: none; }
.three-result-actions { margin-block-start: 7px; justify-content: end; }
#three-roster { display: grid; gap: 6px; }
#three-salon #three-roster button { display: grid; gap: 2px; padding: 10px; text-align: start; }
#three-roster small { color: #f7ca8b; }
#three-roster small:empty { display: none; }
#three-salon #three-roster [aria-current=true] { border-color: #f6ba76; }
#shop-items { display: grid; gap: 5px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#shop .shop-info { margin-block-end: 7px; font-size: 12px; color: #edc79c; }
#shop .shop-info p { margin: 0; }
#shop .shop-card {
    display: grid;
    justify-items: center;
    align-items: end;
    grid-template-rows: 29px 1fr auto;
    gap: 4px;
    padding: 4px;
    border: 1px solid #986b466b;
    border-radius: 8px;
    background: #261910;
    text-align: center;
    font-size: 11px;
}
#three-salon .shop-card button { width: 100%; min-height: 32px; padding: 2px; font-size: 11px; }
#shop .tool-picture { width: 57px; max-width: 100%; height: 27px; background: var(--tool-sheet,url('./in-hand-tools.webp')) var(--tool-frame,0 0) / 200% 200%; filter: var(--metal,none); }
#shop .shop-card[data-tool=clipper] { --tool-frame: 0 100%; }
#shop .shop-card:is([data-style=scissors-rose],[data-style=clipper-chrome],[data-style=clipper-copper]) { --tool-sheet: url('./studio-tools.webp'); }
#shop .shop-card[data-style=scissors-onyx] { --metal: brightness(.64); }
#shop .shop-card[data-style=clipper-copper] { --metal: sepia(.8) saturate(1.6) hue-rotate(-17deg); }
#shop .chair-swatch { width: 42px; height: 23px; border: 1px solid #ffe0ba61; border-radius: 5px; background: linear-gradient(135deg,var(--swatch,#302c26),#130e0c); }
#shop [data-tool=cape] .chair-swatch { clip-path: polygon(33% 0, 67% 0, 100% 100%, 0 100%); }
#shop [data-tool=backdrop] .chair-swatch { border-radius: 12px 12px 1px 1px; --swatch: #805034; }
#shop [data-style=backdrop-blue], #shop [data-style=cape-navy] { --swatch: #365f9c; }
#shop [data-style=backdrop-emerald] { --swatch: #488b6b; }
#shop [data-style=cape-wine] { --swatch: #94465c; }
#shop [data-style=backdrop-classic] .chair-swatch { background: url('./salon-3d-backdrop.webp') 50% 35% / cover; }
#shop [data-style=backdrop-blue] .chair-swatch { background: url('./studio-midnight.webp') 50% 35% / cover; }
#shop [data-style=backdrop-emerald] .chair-swatch { background: url('./studio-emerald.webp') 50% 35% / cover; }
#three-clippings { position: absolute; inset: 0; pointer-events: none; }
#three-clippings i {
    position: absolute;
    width: 4px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-radius: 70%;
    animation: hair-fall .58s ease-in forwards;
}
@keyframes hair-fall { to { opacity: 0; transform: translate(var(--drift),55px) rotate(144deg); } }
@media(max-width:700px) {
    #three-salon { padding-inline: 6px; padding-block: 4px; gap: 4px; }
    .three-workbench { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 4px; align-items: stretch; }
    .three-scene { border-radius: 10px; }
    .three-tools { gap: 4px; padding: 5px 7px; }
    .three-client h2 { font-size: 16px; }
    .three-header p, .three-help, .three-brief > p { font-size: 11px; }
    #three-salon .three-header a { padding-inline: 5px; font-size: 11px; }
}
@media(max-height:670px) {
    html body.three-studio:has(.game-guest-bar) { --game-guest-height: 42px; }
    .three-studio .game-guest-bar { padding-block: 3px; }
    .three-studio .game-guest-bar a { min-height: 34px; padding-block: 5px; }
}
@media (orientation: landscape) and (max-height: 520px) {
    .three-workbench { grid-template-columns: minmax(0, 1fr) minmax(210px, .77fr); grid-template-rows: minmax(0, 1fr); gap: 6px; align-items: center; }
    .three-tools { padding: 6px; gap: 5px; }
}
@media (max-width: 980px) and (min-width: 701px) and (min-height: 521px) {
    .three-modes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .three-tools { padding: 7px; gap: 5px; }
}
@media (orientation: landscape) and (max-height: 420px) {
    .three-header p { display: none; }
    .three-workbench { grid-template-columns: minmax(0, 1fr) minmax(245px, .85fr); }
    #three-salon .three-modes button { font-size: 9px; min-height: 37px; gap: 0; }
    #three-salon :is(.three-actions, .three-guards) button { min-height: 28px; }
    .three-client h2 { font-size: 16px; }
    .three-help { font-size: 11px; }
}
@media (max-width: 360px) {
    #three-salon .three-actions button { font-size: 11px; }
    #three-salon .three-modes button { font-size: 8px; line-height: 1.1; }
    .three-tool-icon { height: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    #three-salon[data-mode] #three-aim:is(.cutting, .engaged) .three-prop { animation: none; }
    .three-grip, #three-salon[data-mode] #three-aim.parked { transition: none; }
}

#three-salon #three-daily { border-color: #dbb27c; color: #ffe0a5; }
#three-salon #three-style-tab { min-height: 25px; padding: 2px 6px; font-size: 11px; }
#three-style-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.three-finish-icon { font-size: 20px; line-height: 20px; }
#three-salon:is([data-mode=dryer], [data-mode=wax], [data-mode=dye], [data-mode=rinse]) #three-aim .three-prop { display: none; }
#three-salon[data-mode=dryer] #three-aim { border-style: dotted; box-shadow: 0 0 14px #ffdcaa44; }
#three-salon[data-mode=rinse] #three-aim { border-color: #a8dfff; box-shadow: 0 0 14px #63bdff60; }
#three-salon[data-mode=dye] #three-aim { border-color: var(--dye-swatch, #d4773f); }
#three-salon[data-mode=wax] #three-aim { border-color: #fff1c5; }
[data-dye=copper] { --dye-swatch: #d4773f; }
[data-dye=honey] { --dye-swatch: #d9aa53; }
[data-dye=plum] { --dye-swatch: #a25d9d; }
[data-dye=silver] { --dye-swatch: #b9c4cd; }
#three-dyes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
#three-salon #three-dyes button { display: flex; align-items: center; justify-content: center; gap: 5px; padding-inline: 2px; font-size: 11px; }
#three-dyes i { width: 12px; height: 12px; border: 1px solid #fff4d576; border-radius: 50%; background: var(--dye-swatch); }
.three-sharing { justify-content: start; flex-wrap: wrap; }
#three-salon .three-sharing button { min-height: 33px; padding-inline: 7px; font-size: 12px; }
#three-share-status { margin: 5px 0; font-size: 13px; }
#three-share-status:empty { display: none; }
#three-share-link { width: 100%; margin-top: 7px; padding: 7px; border: 1px solid #c795606f; border-radius: 7px; color: #fff0d4; background: #1e140e; }
#three-reaction {
    position: absolute;
    inset: auto 9px 47px;
    margin: 0 auto;
    width: fit-content;
    max-width: calc(100% - 18px);
    padding: 5px 12px;
    border: 1px solid #d9a36d8c;
    border-radius: 9px;
    color: #ffe7bd;
    background: #24170eef;
    text-align: center;
    pointer-events: none;
}
#three-salon #three-roster :is(.three-rescue, #three-daily-roster) strong { color: #ffcd8b; }
#three-roster time { font-size: 11px; color: #e5be93; justify-self: start; }
@media (orientation: landscape) and (max-height: 420px) {
    .three-comparison { height: 26dvh; }
}
@media (max-width: 360px) {
    #three-salon .three-stage-actions button { padding-inline: 4px; font-size: 10px; }
    #three-salon .three-sharing button { font-size: 11px; }
}

@media (max-width: 700px), (orientation: landscape) and (max-height: 480px) {
    #three-salon:not([data-mode=clipper]) #three-guards,
    #three-salon[data-mode=rotate] .three-help { display: none; }
    .three-tools { gap: 4px; }
    .three-brief { grid-row: 1; }
    .three-help { grid-row: 2; min-height: 0; }
    #three-guards, #three-dyes { grid-row: 3; }
    .three-actions { grid-row: 4; }
    #three-cut-tools, #three-style-tools { grid-row: 5; }
    #three-salon .three-modes button { min-height: 40px; }
    .three-client { margin-block-end: 1px; }
}

#three-map { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#three-map-legend {
    position: absolute;
    inset: auto 5px 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 9px;
    width: fit-content;
    max-width: calc(100% - 10px);
    margin-inline: auto;
    padding: 4px 7px;
    border: 1px solid #d9a36d8c;
    border-radius: 7px;
    background: #251910f5;
    font-size: 11px;
}
#three-salon #three-map-close { min-height: 23px; padding: 1px 5px; font-size: 11px; }
#three-map-legend .too-long { color: #ffb553; }
#three-map-legend .too-short { color: #67daff; }
#three-phase { margin: 2px 0 0; color: #ffc781; font-size: 11px; }
#three-career h3 { margin: 6px 0; font-size: 15px; }
#three-reputation { margin: 3px 0; color: #ffcc86; }
.three-dialog-note { margin: 5px 0 8px; color: #ecc59b; font-size: 13px; }
#three-shifts { display: grid; gap: 6px; }
#three-shifts section { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px; border: 1px solid #e6b48054; border-radius: 7px; }
#three-shifts h3 { grid-column: 1/-1; }
#three-patterns { display: flex; flex-wrap: wrap; gap: 5px; }
.three-album-entry { margin-bottom: 6px; }
#three-album-list { display: grid; gap: 8px; margin-top: 8px; }
#three-album-list article { padding: 7px; border: 1px solid #c08a5266; border-radius: 8px; background: #21170f; }
#three-album-list h3 { margin: 0 0 6px; font-size: 14px; color: #ffcf94; }
.three-album-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; text-align: center; }
.three-album-pair figure { margin: 0; border: 1px solid #573a24; border-radius: 6px; overflow: hidden; background: #281911; }
.three-album-pair img { display: block; width: 100%; height: min(26dvh, 170px); object-fit: contain; }
.three-album-pair figcaption { padding: 2px; font-size: 12px; }
.three-album-controls { display: flex; justify-content: space-between; gap: 5px; margin-top: 5px; }
#three-album-status:empty { display: none; }
.three-result-actions { flex-wrap: wrap; }
@media (max-width: 360px) {
    #three-salon .three-stage-actions button { padding-inline: 3px; font-size: 9px; }
    #three-salon .three-result-actions button { min-height: 31px; padding-inline: 6px; font-size: 11px; }
}
