.app { height: 100vh; height: 100dvh; height: var(--visible-height, 100dvh); min-height: 300px; display: flex; flex-direction: column; position: relative; padding-top: env(safe-area-inset-top, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.project-file-panel { position: absolute; top: calc(100px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); z-index: 30; width: min(330px, calc(100% - 24px)); max-height: calc(var(--visible-height, 100vh) - 112px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; padding: 12px; background: #fff; box-shadow: 0 8px 30px #273e3526; }
.project-file-panel button { width: 100%; min-height: 44px; margin-bottom: 6px; border-color: var(--border); }
.project-file-panel p { margin: 4px 0 0; font-size: 12px; color: #63776b; }
/* Small supporting text must keep 4.5:1 contrast on paper and white panels. */
.app .brand-subtitle, .app .canvas-caption, .app .canvas-footer,
.app .tool-hint, .app .panel-heading h2 span, .app #color-value { color: #53675a; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 18px 30px; background: #fff; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 11px; width: fit-content; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; transform: rotate(-5deg); }
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.brand-subtitle { display: block; font-size: 11px; font-weight: 500; letter-spacing: .3px; color: #6b7b74; margin-top: 6px; }
.alpha { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--green-dark); background: var(--mint); padding: 5px 7px; border-radius: 5px; align-self: flex-start; margin-top: 3px; }
.history-actions, .file-actions { display: flex; gap: 8px; }
.file-actions { justify-content: flex-end; }
.topbar button, .brand-name { white-space: nowrap; }
.history-actions button { background: #f5f6f2; }
.file-actions #new { border-color: var(--border); }
.workspace { display: flex; flex: 1; min-height: 0; min-width: 0; gap: 20px; padding: 20px 30px 8px; }
.drawing-space { display: flex; flex-direction: column; min-width: 0; min-height: 0; flex: 1; }
.canvas-caption, .canvas-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: #63776b; padding: 0 4px; flex-shrink: 0; }
.canvas-caption { margin-bottom: 14px; }
.canvas-caption > span:first-child { display: flex; gap: 8px; align-items: center; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #37997b; }
.resolution { font-size: 11px; letter-spacing: .7px; }
.canvas-stage { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; min-width: 0; position: relative; overflow: hidden; }
#drawing { display: block; background: #eaf0e9; box-shadow: 0 0 0 1px #dce2da; touch-action: none; cursor: crosshair; border-radius: 3px; flex-shrink: 0; }
.view-controls { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 0 10px; flex-shrink: 0; }
.view-controls button { min-width: 44px; font-size: 14px; padding: 8px 12px; border-color: var(--border); }
#zoom-percent { min-width: 54px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; color: #3e5b4c; }
@media (max-height: 500px) and (orientation: landscape) {
  .view-controls { position: absolute; right: calc(18px + env(safe-area-inset-right, 0px)); top: calc(66px + env(safe-area-inset-top, 0px)); z-index: 1; margin: 0; }
  .view-controls button { min-height: 44px; }
  .canvas-caption { min-height: 44px; margin-right: 220px; }
  .resolution { display: none; }
}
.eraser-options { display: grid; gap: 6px; }
.eraser-shapes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eraser-shapes button { min-height: 44px; }
.eraser-shapes button[aria-pressed="true"] { background: var(--mint); border-color: var(--green); }
.eraser-shape { width: 18px; height: 18px; border: 2px solid currentColor; }
.eraser-shape.circle { border-radius: 50%; }
.eraser-size-row { display: flex; align-items: center; gap: 8px; }
.eraser-size-row button { width: 44px; min-height: 44px; flex-shrink: 0; padding: 4px; font-size: 20px; }
.eraser-range { flex: 1; min-width: 0; font-size: 12px; }
.eraser-range > span { display: flex; justify-content: space-between; }
.eraser-range input { display: block; width: 100%; height: 44px; margin: 0; accent-color: var(--green); touch-action: pan-y; }
#eraser-preview { position: absolute; pointer-events: none; z-index: 2; outline: 1px solid #fff; box-shadow: 0 0 0 2px #172c39b3; border-radius: 50%; }
#eraser-preview[data-shape="square"] { border-radius: 0; }
#eraser-preview.touch-preview { background: #78b9d329; }
#drawing.eraser-cursor { cursor: none; }
@media (max-height: 500px) and (orientation: landscape) {
  .eraser-options { grid-template-columns: 160px minmax(0, 1fr); gap: 8px; align-items: center; }
  .eraser-shapes { gap: 4px; }
  .eraser-shapes button { padding: 4px; font-size: 12px; gap: 5px; }
}
.canvas-footer { margin-top: 12px; flex-wrap: wrap; row-gap: 2px; }
.privacy { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.creator-credit { flex: 1 1 380px; min-width: 0; max-width: 100%; font-size: 11px; line-height: 18px; white-space: normal; overflow-wrap: anywhere; text-align: right; color: #53675a; }
.creator-credit button { display: inline-flex; min-height: 44px; max-width: 100%; padding: 2px 4px; font-size: inherit; line-height: inherit; font-weight: 600; color: var(--green-dark); background: transparent; border-radius: 6px; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; vertical-align: middle; user-select: text; -webkit-user-select: text; }
.creator-credit button:hover { background: var(--mint); }
.canvas-footer #active-layer-label { flex: 1; min-width: 0; }
#active-layer-label { background: #e9eee7; border-radius: 6px; padding: 4px 9px; color: #4c6355; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-area { padding: 16px 16px max(12px, env(safe-area-inset-bottom)); flex-shrink: 0; display: flex; align-items: center; flex-direction: column; }
.toolbar { display: flex; align-items: center; gap: 7px; border: 1px solid var(--border); padding: 7px; background: #fff; border-radius: 20px; box-shadow: 0 5px 16px #2d403608; }
.drawing-tools, .tool-settings { display: flex; gap: 7px; }
.tool.active { box-shadow: inset 0 0 0 1px var(--green); }
.tool { min-width: 85px; min-height: 56px; padding: 12px 15px; gap: 9px; border-radius: 13px; }
.tool.active, .tool[aria-expanded="true"] { color: var(--green-dark); background: var(--mint); border-color: #badacb; }
.tool-divider { height: 26px; width: 1px; background: var(--border); margin: 0 4px; }
.color-dot { width: 22px; height: 22px; display: block; background: #202124; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #aab7ac; }
.tool-hint { font-size: 11px; color: #697b70; margin-top: 10px; }
.shape-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 530px); gap: 4px; margin-bottom: 6px; }
.shape-options button { min-width: 44px; min-height: 44px; padding: 5px 4px; gap: 4px; font-size: 12px; border-color: var(--border); }
.shape-options .icon { width: 18px; height: 18px; }
.shape-options button[aria-pressed="true"] { background: var(--mint); border-color: var(--green); }
#shape-preview { position: absolute; pointer-events: none; z-index: 2; overflow: hidden; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-heading h2 { font-size: 15px; font-weight: 750; }
.panel-heading h2 span { color: #6d7f72; font-size: 11px; margin-left: 7px; font-weight: 500; }
.close-button { width: 44px; height: 44px; padding: 10px; flex-shrink: 0; }
.layer-panel { width: 286px; flex-shrink: 0; display: flex; flex-direction: column; padding: 12px 14px; }
.panel-note { font-size: 12px; color: #62776b; margin: 2px 0 16px; }
.layer-body { overflow-y: auto; min-height: 0; flex: 1; scrollbar-gutter: stable; padding: 3px; }
.layer-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.layer-settings { min-width: 0; }
.selected-layer-name { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-opacity { display: block; font-size: 12px; margin-top: 6px; }
.layer-opacity > span { display: flex; justify-content: space-between; }
.layer-opacity input { display: block; width: 100%; height: 44px; margin: 0; accent-color: var(--green); }
.layer-row { border: 1px solid #e2e8df; border-radius: 12px; padding: 5px; background: #fafbf8; }
.layer-row.selected { border-color: #80bca3; background: #edf6ef; }
.layer-top { display: flex; align-items: center; gap: 3px; }
.layer-select { flex: 1; justify-content: flex-start; padding: 6px 8px; background: transparent; font-size: 13px; min-width: 0; }
.layer-select > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-thumb { width: 40px; height: 30px; border: 1px solid #d6dfd5; border-radius: 3px; background: #fff; display: block; flex-shrink: 0; }
.layer-visibility { width: 44px; padding: 10px; background: transparent; font-size: 19px; }
.layer-actions { display: flex; margin-top: 4px; gap: 4px; }
.layer-actions button { flex: 1; min-width: 44px; font-size: 11px; padding: 8px 2px; min-height: 44px; background: #f1f6ef; }
.layer-actions button:disabled { color: #7b857e; }
.add-layer { margin-top: 12px; border: 1px dashed #96b5a4; background: #f1f8f0; color: var(--green-dark); width: 100%; }
#rename-layer-form > label { display: block; font-size: 13px; }
#layer-name-input { width: 100%; min-width: 0; min-height: 44px; margin-top: 8px; padding: 10px; border: 1px solid #96b5a4; border-radius: 8px; }
#layer-name-error { min-height: 22px; font-size: 12px; color: #a4332d; }
#rename-layer-dialog { max-height: calc(100vh - 24px); max-height: calc(var(--visible-height, 100dvh) - 24px); overflow-y: auto; padding: 20px; }
dialog { max-height: calc(var(--visible-height, 100vh) - 24px); overflow-y: auto; }
html[data-keyboard] dialog[open] { top: calc(var(--visible-top, 0px) + 12px + env(safe-area-inset-top, 0px)); bottom: auto; margin: 0 auto; }
#rename-layer-dialog .dialog-actions { margin-top: 10px; }
.option-panel { width: min(530px, calc(100% - 32px)); margin: 8px auto 0; padding: 10px 18px 14px; flex-shrink: 0; }
.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 5px 0 12px; }
.swatch { padding: 4px; min-width: 0; min-height: 44px; border-radius: 9px; }
.swatch span { width: 27px; height: 27px; border-radius: 50%; border: 1px solid #0002; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--green); outline-offset: -2px; background: var(--mint); }
.custom-color { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.custom-color input { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 8px; padding: 4px; background: #fff; cursor: pointer; }
#color-value { margin-left: auto; color: #6f7e74; font-size: 11px; }
.size-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.size-option { flex-direction: column; gap: 5px; padding: 7px 2px; font-size: 11px; min-width: 0; min-height: 66px; }
.size-option[aria-pressed="true"] { background: var(--mint); border-color: #badacb; color: var(--green-dark); }
.size-preview { height: 30px; display: flex; align-items: center; justify-content: center; }
.size-preview span { display: block; background: #334b3e; border-radius: 50%; }
.notification { position: fixed; left: 50%; bottom: max(128px, calc(108px + env(safe-area-inset-bottom))); transform: translateX(-50%); max-width: calc(100vw - 32px); width: max-content; padding: 12px 18px; border-radius: 12px; background: #273e35; color: #fff; font-size: 13px; line-height: 1.5; box-shadow: 0 5px 24px #182b3520; z-index: 20; pointer-events: none; }
@media (max-width: 899px) {
  .topbar { padding: 14px 20px; gap: 12px; }
  .brand-subtitle, .alpha { display: none; }
  .workspace { padding: 16px 20px 6px; flex-direction: column; gap: 12px; }
  .layer-panel { width: 100%; max-height: 38vh; max-height: calc(var(--visible-height, 100dvh) * .38); min-height: 170px; }
  .layer-list { display: block; }
  .layer-row { margin-bottom: 6px; }
  .layer-actions { border-top: 0; margin-top: 0; }
  .panel-note { margin: 0 0 7px; }
  .add-layer { margin-top: 6px; }
}
@media (max-width: 599px) {
  .topbar { grid-template-columns: 1fr auto; gap: 9px 8px; padding: 10px 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand-mark .icon { width: 23px; height: 23px; }
  .brand-name { font-size: 21px; }
  .history-actions { grid-column: 1; grid-row: 2; gap: 4px; }
  .history-actions button { font-size: 12px; padding: 9px 13px; }
  .file-actions { grid-column: 2; grid-row: 1 / 3; gap: 5px; align-self: end; }
  .file-actions button { font-size: 12px; padding: 9px 10px; gap: 5px; }
  .file-actions .icon { width: 18px; height: 18px; }
  .workspace { padding: 12px 12px 3px; }
  .canvas-caption { font-size: 11px; margin-bottom: 10px; }
  .resolution { font-size: 10px; letter-spacing: 0; }
  .canvas-footer { margin-top: 10px; font-size: 11px; }
  .privacy { font-size: 9px; gap: 3px; }
  .tool-area { padding: 12px 8px max(10px, env(safe-area-inset-bottom)); }
  .toolbar { width: 100%; max-width: 390px; padding: 5px; gap: 2px; border-radius: 17px; }
  .tool { flex: 1; min-width: 0; min-height: 58px; flex-direction: column; font-size: 11px; gap: 5px; padding: 7px 4px; }
  .tool-divider { margin: 0 2px; height: 32px; }
  .tool-hint { font-size: 10px; margin-top: 8px; }
  .option-panel { width: calc(100% - 24px); padding: 7px 12px 12px; }
  .palette { grid-template-columns: repeat(6, 1fr); gap: 3px; margin: 0 0 8px; }
  .swatch span { width: 28px; height: 28px; }
  .size-options { gap: 2px; }
  .size-option { font-size: 10px; }
  .layer-panel { padding: 7px 10px; }
  .layer-panel { max-height: 30vh; max-height: calc(var(--visible-height, 100dvh) * .30); }
  .layer-row { padding: 3px; }
  .layer-thumb { width: 26px; height: 24px; }
  .layer-select { font-size: 12px; padding: 4px; gap: 5px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .topbar { padding: 6px 12px; grid-template-columns: 1fr auto 1fr; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 20px; }
  .brand-subtitle, .alpha { display: none; }
  .history-actions { grid-column: 2; grid-row: 1; }
  .file-actions { grid-column: 3; grid-row: 1; }
  .workspace { padding-top: 6px; }
  .canvas-caption { margin-bottom: 5px; }
  .canvas-footer { margin-top: 5px; }
  .tool-area { padding-top: 6px; padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)); }
  .tool-hint { display: none; }
  .tool { min-height: 46px; flex-direction: row; }
  .toolbar { max-width: 550px; }
  .layer-panel { min-height: 140px; }
  .workspace:has(.layer-panel:not([hidden])) { flex-direction: row; }
  .layer-panel { width: 255px; max-height: none; }
  .layer-row { display: block; }
  .option-panel { padding-top: 3px; padding-bottom: 5px; margin-top: 4px; }
  .option-panel .panel-heading { display: none; }
  .palette { grid-template-columns: repeat(12, 1fr); margin-bottom: 0; }
  .custom-color { display: none; }
}
@media (max-width: 599px) and (orientation: portrait) {
  .canvas-caption { display: none; }
  .view-controls { margin-bottom: 7px; }
}
@media (max-width: 599px) {
  .toolbar { flex-direction: column; }
  .drawing-tools, .tool-settings { display: grid; gap: 3px; width: 100%; }
  .drawing-tools { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .drawing-tools .tool { grid-column: span 2; }
  .drawing-tools .tool:nth-child(5) { grid-column: 2 / span 2; }
  .tool-settings { grid-template-columns: repeat(3, 1fr); }
  .tool-divider { display: none; }
  .tool-settings .tool { min-height: 44px; flex-direction: row; }
  .option-panel { padding-left: 10px; padding-right: 10px; }
  .palette { gap: 2px; }
}
@media (max-width: 599px) and (max-height: 650px) and (orientation: portrait) {
  .option-panel .panel-heading { display: none; }
  .option-panel { padding-top: 6px; padding-bottom: 6px; }
  .palette { margin-bottom: 4px; }
  .layer-panel { min-height: 150px; max-height: 150px; }
  .layer-panel .panel-note { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .toolbar { flex-direction: row; max-width: 740px; }
  .drawing-tools, .tool-settings { display: flex; gap: 3px; width: auto; }
  .tool { min-width: 44px; padding: 7px 8px; font-size: 11px; gap: 5px; }
}
@media (min-width: 600px) and (max-width: 1099px) {
  .tool { min-width: 44px; padding-left: 8px; padding-right: 8px; font-size: 12px; gap: 5px; }
  .drawing-tools, .tool-settings { gap: 3px; }
  .toolbar { gap: 3px; }
}
@media (max-width: 599px) and (max-height: 650px) and (orientation: portrait) {
  .drawing-tools .tool { min-height: 44px; flex-direction: row; gap: 2px; padding: 4px 2px; font-size: 10px; }
  .drawing-tools .tool .icon { width: 18px; height: 18px; }
  .tool-area { padding-top: 5px; }
  .tool-hint { display: none; }
  .canvas-footer { margin-top: 4px; font-size: 10px; }
  .canvas-footer .privacy { display: none; }
  .topbar { padding: 6px 12px; row-gap: 4px; }
  .workspace { padding-top: 6px; }
  .toolbar { padding: 3px; }
  .option-panel { margin-top: 4px; }
  #active-layer-label { padding: 2px 8px; }
}
@media (max-width: 1099px) and (max-height: 500px) and (orientation: landscape) {
  .drawing-tools .tool { flex-direction: column; min-height: 46px; padding: 4px; gap: 2px; }
  .drawing-tools .icon { width: 18px; height: 18px; }
  .drawing-tools .tool span { white-space: nowrap; }
}
@media (max-width: 599px) and (orientation: portrait) {
  .notification { bottom: max(224px, calc(204px + env(safe-area-inset-bottom, 0px))); }
}
@media (max-width: 599px) and (max-height: 650px) and (orientation: portrait) {
  .notification { bottom: max(180px, calc(160px + env(safe-area-inset-bottom, 0px))); }
}
@media (min-width: 600px) and (max-width: 699px) and (orientation: portrait) {
  .toolbar { flex-direction: column; width: min(100%, 530px); }
  .drawing-tools, .tool-settings { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .tool-divider { display: none; }
  .notification { bottom: max(248px, calc(236px + env(safe-area-inset-bottom, 0px))); }
}
@media (min-width: 600px) and (max-width: 699px) and (orientation: portrait) {
  .drawing-tools { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .drawing-tools .tool { grid-column: span 2; }
  .drawing-tools .tool:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 699px) and (max-height: 500px) and (orientation: landscape) {
  .toolbar { gap: 2px; padding: 4px; }
  .drawing-tools, .tool-settings { gap: 2px; }
  .drawing-tools .tool { min-width: 44px; font-size: 10px; padding: 4px 3px; }
  .tool-settings .tool { min-width: 44px; padding: 4px; gap: 3px; font-size: 10px; }
}
.selection-controls { display: flex; justify-content: center; gap: 8px; margin-bottom: 6px; }
.selection-controls button { min-width: 76px; min-height: 44px; }
#selection-preview { position: absolute; pointer-events: none; z-index: 3; border: 1px dashed #154b94; outline: 1px solid #fff; box-shadow: 0 0 0 2px #154b9444; }
.selection-handle { position: absolute; width: 12px; height: 12px; border: 2px solid #154b94; background: #fff; border-radius: 3px; transform: translate(-50%, -50%); }
.selection-handle.nw { left: 0; top: 0; }
.selection-handle.ne { left: 100%; top: 0; }
.selection-handle.sw { left: 0; top: 100%; }
.selection-handle.se { left: 100%; top: 100%; }
#selection-preview.marquee .selection-handle { display: none; }
@media (max-width: 699px) and (orientation: portrait) {
  .drawing-tools .tool:nth-child(5) { grid-column: span 2; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .drawing-tools .tool { flex-direction: column; gap: 3px; padding: 6px 8px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .selection-controls { position: absolute; left: calc(12px + env(safe-area-inset-left, 0px)); top: calc(66px + env(safe-area-inset-top, 0px)); z-index: 4; margin: 0; }
  .app:has(#selection-controls:not([hidden])) .canvas-caption > span { visibility: hidden; }
}
@media (max-width: 899px) and (orientation: portrait) {
  .topbar { grid-template-columns: 1fr auto; }
  .history-actions { grid-column: 2; grid-row: 1; }
  .file-actions { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .file-actions button { min-width: 0; min-height: 44px; }
}
@media (min-width: 600px) and (max-width: 699px) and (orientation: portrait) {
  .topbar { padding: 10px 12px; gap: 8px; }
  .layer-panel { max-height: 30vh; max-height: calc(var(--visible-height, 100dvh) * .30); }
}
@media (max-width: 699px) and (max-height: 500px) and (orientation: landscape) {
  .topbar { gap: 8px; }
  .topbar .brand-name { display: none; }
  .file-actions { gap: 4px; }
  .file-actions button { font-size: 11px; padding: 8px; gap: 4px; }
}
/* The extra creator line must not collapse the canvas when short phones
   open layers. Keep the scrollable panel above the canvas in this case. */
@media (max-width: 599px) and (max-height: 650px) and (orientation: portrait) {
  .workspace { position: relative; }
  .layer-panel { position: absolute; top: 6px; left: 12px; right: 12px; width: auto; min-height: 0; max-height: min(190px, calc(var(--visible-height, 100dvh) * .34)); z-index: 10; box-shadow: 0 6px 20px #273e3526; }
  .option-panel { position: fixed; top: calc(120px + env(safe-area-inset-top, 0px)); left: calc(12px + env(safe-area-inset-left, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); width: auto; max-height: calc(var(--visible-height, 100dvh) * .4); overflow-y: auto; margin: 0; z-index: 12; box-shadow: 0 6px 20px #273e3526; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .option-panel { position: fixed; top: calc(62px + env(safe-area-inset-top, 0px)); left: calc(12px + env(safe-area-inset-left, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); width: auto; max-height: calc(var(--visible-height, 100dvh) * .4); overflow-y: auto; margin: 0; z-index: 12; box-shadow: 0 6px 20px #273e3526; }
  .canvas-footer .privacy { display: none; }
  .canvas-footer #active-layer-label { flex: 0 1 90px; }
  .creator-credit { flex-basis: 340px; }
}
