body.poster-app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tb-group { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.toolbar select { width: auto; padding: 6px 10px; border-radius: 999px; font-size: 13px; }
.btn.icon { width: 32px; padding: 6px 0; font-size: 15px; }
.btn:disabled { opacity: .35; cursor: default; background: transparent; }
.sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }

.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: 200px 1fr 300px; }
.templates { border-right: 1px solid var(--line); padding: 16px; overflow-y: auto; }
#tpls { display: grid; gap: 14px; }
.tpl { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.tpl canvas { width: 100%; display: block; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s; }
.tpl:hover canvas { box-shadow: 0 0 0 2px var(--dark); }
.tpl span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }

.canvas-area { background: var(--stone); display: grid; place-items: center; overflow: hidden; min-height: 0; position: relative; }
.canvas-area.drop { box-shadow: inset 0 0 0 3px var(--dark); }
#cv { display: block; box-shadow: 0 10px 40px rgba(23, 27, 38, .18); touch-action: none; }

.props { border-radius: 0; border: 0; border-left: 1px solid var(--line); overflow-y: auto; }
.props .title { display: flex; justify-content: space-between; align-items: center; }
.props .title strong { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.props .mini { display: flex; gap: 6px; flex-wrap: wrap; }
.props .quick { display: flex; gap: 5px; margin-top: 2px; }
.props .quick button { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.props .rv { font-size: 12px; color: var(--muted); min-width: 34px; text-align: right; }
.props .range { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 190px; }

#print-area { display: none; }
@media print {
  body.poster-app { height: auto; overflow: visible; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  #print-area img { width: 100%; height: auto; display: block; }
}

@media (max-width: 900px) {
  body.poster-app { height: auto; overflow: auto; }
  .workspace { grid-template-columns: 1fr; }
  .templates { border-right: 0; border-bottom: 1px solid var(--line); }
  #tpls { grid-template-columns: repeat(3, 1fr); }
  .canvas-area { height: 75vh; }
  .props { border-left: 0; border-top: 1px solid var(--line); }
}
