/* Plakatownia Studio: a friendly, busy online design editor of a made-up
 * brand. Dark top bar, icon rail, wide side panel, grey stage. */

:root {
  --ink: #1f2328;
  --muted: #5f6670;
  --line: #e3e5e8;
  --stage: #e9ebee;
  --top: #1d2b36;
  --accent: #e8622c;
  --gold: #f2b134;
}
* { box-sizing: border-box; }
body.pk { margin: 0; background: var(--stage); color: var(--ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.pk button { font: inherit; }
.pk :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pk-app { min-width: 1100px; }

.pk-top { display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 12px; background: var(--top); color: #fff; }
.pk-logo { display: flex; align-items: baseline; gap: 6px; margin-right: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; }
.pk-logo span { color: var(--accent); }
.pk-logo small { font-size: 11px; font-weight: 600; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.pk-top .grow { flex: 1; }
.pk-tbtn, .pk-menu .m { height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #fff; font-weight: 600; cursor: pointer; }
.pk-tbtn:hover, .pk-menu .m:hover, .pk-menu .m[aria-expanded="true"] { background: rgb(255 255 255 / .12); }
.pk-tbtn.icon { width: 36px; padding: 0; }
.pk-tbtn.white { background: #fff; color: var(--ink); }
.pk-tbtn.white:hover { background: #f1f2f4; }
.pk-tbtn.gold { background: var(--gold); color: #2b1d00; }
.pro { margin-left: 4px; padding: 1px 5px; border-radius: 4px; background: var(--gold); color: #2b1d00; font-size: 9px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }
.pk-saved { margin-left: 6px; font-size: 12px; opacity: .65; }
.pk-title { margin-right: 6px; font-weight: 600; opacity: .9; }
.pk-av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #2f6f8f; color: #fff; font-size: 12px; font-weight: 700; flex: none; }

.pk-menu { position: relative; }
.pk-drop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 230px; padding: 6px 0; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / .2); }
.pk-drop.side { top: -6px; left: 100%; }
.pk-drop > button, .pk-drop .sub > button { display: flex; justify-content: space-between; width: 100%; padding: 8px 16px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.pk-drop button:hover { background: #f3f4f6; }
.pk-drop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.pk-drop .sub { position: relative; }
.pk-drop [aria-checked="true"]::after { content: "✓"; color: var(--accent); font-weight: 800; }

.pk-body { display: flex; height: calc(100vh - 56px - 56px); min-height: 560px; }
.pk-rail { width: 76px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; background: #fff; border-right: 1px solid var(--line); }
.pk-rail button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 11px; cursor: pointer; }
.pk-rail button span { font-size: 18px; }
.pk-rail button[aria-pressed="true"] { background: #fdeee7; color: var(--accent); font-weight: 700; }
.pk-panel { width: 320px; flex: none; overflow: auto; padding: 14px; background: #fff; border-right: 1px solid var(--line); }
.pk-in { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; width: 100%; }
.row .pk-in { width: auto; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chips span { padding: 4px 10px; border-radius: 999px; background: #f1f2f4; font-size: 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tiles.small { grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; aspect-ratio: 1; border: 0; border-radius: 8px; background: #f1f2f4; font-size: 26px; cursor: pointer; }
.tile .pro { position: absolute; top: 6px; right: 6px; }
.cap { margin: 14px 0 6px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hint { color: var(--muted); font-size: 12px; }
.hint.warn { color: #9a3b0b; }
.pk-wide { display: block; width: 100%; margin: 6px 0; padding: 10px 12px; border: 0; border-radius: 8px; background: #f1f2f4; color: var(--ink); font-weight: 600; text-align: left; cursor: pointer; }
.pk-wide:hover { background: #e8e9ec; }
.pk-wide.primary { background: var(--accent); color: #fff; text-align: center; }
.pk-wide.gold { background: var(--gold); text-align: center; }
.pk-wide.h1 { font-size: 22px; font-weight: 800; }
.pk-wide.h2 { font-size: 17px; }
.pk-wide[disabled] { opacity: .45; cursor: not-allowed; }
.link { padding: 0; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; }

.pk-stage { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-stage.rulers { background: linear-gradient(#cfd3d8 1px, transparent 1px) 0 0 / 100% 24px, linear-gradient(90deg, #cfd3d8 1px, transparent 1px) 0 0 / 24px 100%; }
.pk-ctx { display: flex; gap: 4px; align-items: center; margin: 10px auto 0; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgb(0 0 0 / .1); }
.pk-ctx[hidden] { display: none; }
.pk-ctx button, .pk-ctx select, .pk-ctx input { height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: none; font: inherit; cursor: pointer; }
.pk-ctx button:hover { background: #f1f2f4; }
.pk-board-wrap { flex: 1; display: grid; place-items: center; overflow: auto; }
.pk-board { position: relative; background: #fff; box-shadow: 0 2px 16px rgb(0 0 0 / .12); transform-origin: center; }
.pk-board.bleed { outline: 2px dashed #3a7bd5; outline-offset: -10px; }
.pk-board.margins::before { content: ""; position: absolute; inset: 24px; border: 1px dashed #c58bd8; pointer-events: none; }
.bleed-note { position: absolute; top: -22px; right: 0; color: #3a7bd5; font-size: 11px; font-weight: 700; }
.el { position: absolute; cursor: move; }
.el.sel { outline: 2px solid #8b5cf6; outline-offset: 2px; }
.badge { left: 50%; top: 50%; width: 84%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); }
.t1 { left: 0; right: 0; top: calc(50% - 34px); text-align: center; color: #fff8ee; font: 700 clamp(28px, 11%, 48px) Georgia, "Times New Roman", serif; }
.pk-board .t1 { font-size: 46px; }
.t2 { left: 0; right: 0; top: calc(50% + 36px); text-align: center; color: #fff8ee; font-weight: 800; letter-spacing: .12em; font-size: 15px; }
.leaf { left: 0; right: 0; top: calc(50% - 110px); text-align: center; color: #fff8ee; font-size: 40px; }
.pk-foot { display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: #fff; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pk-foot .grow { flex: 1; }

.pk-share { position: fixed; top: calc(56px + 64px); right: 12px; z-index: 45; width: 380px; max-height: calc(100vh - 140px); overflow: auto; padding: 16px; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgb(0 0 0 / .22); }
.pk-share.left { right: auto; left: 300px; }
.pk-share h2 { margin: 0 0 6px; font-size: 17px; }
.pk-share .row { display: flex; align-items: center; gap: 8px; }
.pk-share .back { width: 32px; height: 32px; border: 0; border-radius: 6px; background: #f1f2f4; font-size: 18px; cursor: pointer; }
.pk-share .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pk-share .grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 0; border-radius: 8px; background: #f6f7f8; font-size: 12px; cursor: pointer; }
.pk-share .grid button span { font-size: 20px; }
.pk-share .grid button:hover { background: #eceef0; }
.pk-select { display: grid; grid-template-columns: 1fr auto; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.pk-select .hint { grid-column: 1; }
.pk-select > span:last-child { grid-row: 1 / 3; grid-column: 2; align-self: center; }
.pk-list { margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pk-list button { display: block; width: 100%; padding: 8px 12px; border: 0; background: #fff; text-align: left; cursor: pointer; }
.pk-list button span { display: block; }
.pk-list button:hover, .pk-list [aria-selected="true"] { background: #fdeee7; }
.pk-more { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
.chk { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.chk.off { color: #9aa0a8; }
.full { width: 100%; }
.pk-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); max-width: 520px; padding: 10px 16px; border-radius: 8px; background: #1f2328; color: #fff; font-size: 13px; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
