.access-dialog { width: min(480px, 100% - 28px); max-height: 90dvh; overflow: auto; border: 1px solid rgb(203, 209, 192); border-radius: 10px; padding: 34px; background: rgb(248, 246, 237); color: rgb(38, 60, 49); box-shadow: rgba(15, 33, 26, 0.333) 0px 25px 100px; font: 14px / 1.6 Arial, sans-serif; }
.access-dialog::backdrop { background: rgba(11, 33, 27, 0.6); backdrop-filter: blur(5px); }
.access-dialog h2 { font: 34px / 1.1 Georgia, serif; letter-spacing: -1px; margin: 12px 0px 16px; color: rgb(38, 60, 49); }
.access-dialog p { color: rgb(92, 107, 93); font-size: 13px; line-height: 1.65; }
.access-kicker { font-size: 12px; letter-spacing: 2px; color: rgb(107, 119, 94); }
.access-close { position: absolute; right: 10px; top: 8px; border: 0px; background: none; font: 28px Arial; color: rgb(75, 97, 81); padding: 4px 10px; cursor: pointer; }
.access-price { font: 29px Georgia, serif; margin: 24px 0px; }
.access-price small { display: block; font: 13px Arial; margin-top: 9px; color: rgb(95, 110, 92); }
.access-start, .access-stay { display: block; width: 100%; border-radius: 5px; padding: 13px 18px; border: 1px solid rgb(38, 60, 49); background: rgb(38, 60, 49); color: rgb(247, 242, 230); font: 13px Arial; cursor: pointer; margin-top: 9px; }
.access-stay { background: transparent; color: rgb(38, 60, 49); }
.access-dialog .access-fine { font-size: 11px; }
.access-dialog details { border-top: 1px solid rgb(211, 216, 200); padding-top: 14px; font-size: 12px; }
.access-dialog summary { cursor: pointer; }
.access-dialog .access-message { font-size: 12px; }
.access-start:disabled { opacity: 0.5; cursor: default; }
.access-dialog button:active { transform: scale(0.98); }
.access-dialog button:focus-visible, .access-dialog summary:focus-visible { outline: rgb(188, 115, 84) solid 2px; outline-offset: 3px; }
.access-notice { background: rgb(231, 236, 223); padding: 9px 14px; border-bottom: 1px solid rgb(206, 215, 195); display: flex; align-items: center; gap: 12px; font-size: 11px; color: rgb(63, 88, 63); flex-wrap: wrap; }
.access-notice button { font: 11px Arial; border: 0px; background: none; text-decoration: underline; color: rgb(54, 87, 53); cursor: pointer; padding: 4px; }
.premium-trigger { display: block; width: 100%; border: 1px dashed rgb(187, 199, 174); border-radius: 4px; padding: 8px; margin-top: 10px; background: rgb(238, 242, 231); color: rgb(82, 105, 74); cursor: pointer; font-size: 12px; }
.premium-feature.is-locked > p:not(.mixture-note) { opacity: 0.75; }
.style-card .lock-label { font-size: 10px; display: block; color: rgb(135, 123, 100); }
.style-card.is-locked { opacity: 0.75; }
.style-card.is-locked:hover { opacity: 1; }
.gallery-title-input { display: block; width: 100%; padding: 11px; border: 1px solid rgb(200, 209, 189); border-radius: 5px; background: rgb(255, 253, 247); margin: 8px 0px 16px; font: 14px Arial; color: rgb(41, 63, 49); }
.studio-home { font-size: 11px; color: rgb(82, 105, 75); }
.header-actions .gallery-save { font-size: 11px; padding: 10px; border: 1px solid rgb(202, 210, 189); border-radius: 5px; background: transparent; }
.studio-saved-status { font-size: 12px; color: rgb(86, 110, 75); }
.studio-layout .workspace { height: calc(100dvh - 115px); }
@media (max-width: 900px) {
  .studio-layout .workspace { height: auto; }
  .header { flex-wrap: wrap; }
  .studio-home { display: none; }
  .header-actions .gallery-save { font-size: 12px; padding: 9px; }
  .studio-layout .studio { height: calc(100dvh - 110px); }
}
@media (max-width: 560px) {
  .header-actions { gap: 5px; }
  .header-actions .gallery-save { font-size: 0px; padding: 9px; }
  .header-actions .gallery-save::after { content: "Галерея"; font-size: 12px; }
  .access-notice { gap: 5px; padding: 7px 12px; font-size: 12px; }
  .studio-layout .workspace .studio { min-height: 620px; }
  .style-card .lock-label { font-size: 9px; }
  .studio-layout .material-controls p, .studio-layout .brush-details p, .studio-layout .oil-mixture p { font-size: 12px; }
  .studio-layout .section-heading h3 { font-size: 13px; }
  .studio-layout .variants button { font-size: 11px; min-height: 40px; }
  .studio-layout .tool-modes button { min-height: 42px; }
  .studio-layout select { min-height: 34px; }
  .studio-layout .style-card { min-width: 96px; }
  .studio-layout .swatch { width: 25px; height: 25px; }
}
@media (min-width: 901px) {
  body.studio-layout { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  .studio-layout > .header, .studio-layout > .access-notice { flex-shrink: 0; }
  .studio-layout > .workspace { flex: 1 1 0%; height: auto; min-height: 0px; }
}
.mixing-palette.is-locked .mix-inputs, .mixing-palette.is-locked .mix-ratio-label, .mixing-palette.is-locked #mix-ratio, .mixing-palette.is-locked .mix-actions, .mixing-palette.is-locked #mix-empty, .mixing-palette.is-locked #saved-mixtures { display: none; }
.mixing-palette.is-locked .mix-result { margin-top: 15px; opacity: 0.65; }
.mixing-palette.is-locked .premium-trigger { min-height: 40px; }
.studio-layout button { transition: background-color 0.16s ease-out, color 0.16s ease-out, transform 0.14s ease-out; }
.studio-layout button:not(:disabled):active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) {
  .studio-layout button { transition: background-color 0.15s, color 0.15s; }
  .studio-layout button:active { transform: none; }
}
@media (max-width: 560px) {
  .studio-layout .header { height: auto; min-height: 64px; padding: 10px 12px; row-gap: 8px; }
  .studio-layout .header-actions { margin-left: auto; }
  .studio-layout { padding-bottom: 130px; }
  .studio-layout .bottom-toolbar { position: fixed; left: 0px; right: 0px; bottom: 0px; z-index: 9; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 20px; padding: 12px 16px 8px; box-shadow: rgba(41, 63, 43, 0.08) 0px -5px 18px; }
  .studio-layout .bottom-toolbar .palette-section { grid-column: 1 / 3; max-width: none; width: 100%; flex-wrap: nowrap; justify-content: center; padding-top: 16px; }
  .studio-layout .bottom-toolbar .palette { gap: 3px; }
  .studio-layout .bottom-toolbar .swatch { width: 30px; height: 30px; }
  .studio-layout .bottom-toolbar .custom-color { height: 27px; width: 27px; flex-shrink: 0; }
  .studio-layout .bottom-toolbar .tool-setting { width: auto; }
  .studio-layout .bottom-toolbar .opacity-setting { display: block; }
  .studio-layout .tool-setting label { font-size: 11px; }
  .studio-layout .tool-setting input { margin: 5px 0px 9px; }
  .studio-layout .studio { min-height: 590px; }
}
.header-actions .gallery-save{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
