.creative-shell{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:18px;align-items:start}
.creative-sidebar{display:grid;gap:14px;position:sticky;top:8px}.creative-card{border:1px solid var(--line-soft);border-radius:14px;background:var(--paper-raised);padding:14px;box-shadow:0 5px 17px rgba(66,50,26,.055)}
.creative-card h3{margin:0 0 10px;font-size:17px}.creative-field{display:grid;gap:5px;margin:9px 0;font-size:12px;color:var(--muted)}.creative-field input,.creative-field textarea,.creative-field select{width:100%;border:1px solid var(--line-soft);background:#fffaf0;padding:9px 10px}
.creative-stage-wrap{display:grid;gap:12px}.creative-tabs{display:flex;gap:6px;flex-wrap:wrap}.creative-stage{aspect-ratio:1.414;position:relative;overflow:hidden;border:1px solid rgba(70,60,40,.22);border-radius:12px;background:#fbf5e7;box-shadow:0 12px 34px rgba(60,45,20,.12);min-height:280px;transition:aspect-ratio .15s ease}
.creative-stage.back{background:#fffaf0}.creative-stage[data-border="wreath"]{outline:8px double rgba(92,117,70,.24);outline-offset:-16px}.creative-stage[data-border="round"]{border-radius:32px;box-shadow:inset 0 0 0 8px rgba(89,107,72,.12),0 12px 34px rgba(60,45,20,.12)}
.creative-stage[data-border="oval"]::after{content:"";position:absolute;inset:6%;border:2px solid rgba(126,94,62,.26);border-radius:50%/43%;pointer-events:none}.creative-stage[data-border="shield"]::after{content:"";position:absolute;inset:5%;border:2px solid rgba(104,82,50,.27);clip-path:polygon(8% 0,92% 0,100% 70%,50% 100%,0 70%);pointer-events:none}.creative-stage[data-border="plain"]{border-color:rgba(70,60,40,.17)}
.creative-brand{position:absolute;right:4.4%;bottom:4.5%;display:flex;align-items:center;gap:5px;color:#29472e;font:600 12px/1 var(--serif);z-index:8}.creative-brand img{width:24px;height:24px;object-fit:contain}
.creative-copy{position:absolute;left:47%;top:20%;right:7%;z-index:4}.creative-copy h3{font:600 clamp(20px,3.4vw,40px)/1.08 var(--serif);margin:0 0 12px;color:#29472e}.creative-copy p{white-space:pre-wrap;line-height:1.55;margin:0;color:#4f5f49}
.creative-emblem{position:absolute;left:7%;top:10%;width:32%;aspect-ratio:1;z-index:3;display:grid;place-items:center}.creative-emblem.small{left:7%;top:auto;bottom:7%;width:18%}.creative-emblem-canvas{width:100%;height:100%;display:block}
.creative-flower{position:absolute;width:74px;height:74px;display:grid;place-items:center;cursor:grab;touch-action:none;user-select:none;transform-origin:center;z-index:2}.creative-flower:before{content:"";width:58px;height:58px;border-radius:55% 45% 52% 48%;background:radial-gradient(circle at 48% 45%,#e8c76a 0 11%,#d5a6ad 12% 31%,#9e6f7b 32% 35%,#839660 36% 100%);box-shadow:13px 17px 0 -10px #6f7d55,-15px 12px 0 -11px #87996d;opacity:.87}.creative-flower span{position:absolute;top:100%;width:120px;text-align:center;font:11px/1.2 var(--serif);color:#40513b;background:rgba(251,245,231,.82);border-radius:10px;padding:2px 5px}
.creative-postal-divider{position:absolute;left:50%;top:8%;bottom:8%;width:1px;background:rgba(70,60,40,.28)}.creative-message{position:absolute;left:7%;top:11%;width:38%;height:66%;white-space:pre-wrap;line-height:1.65}.creative-address{position:absolute;left:57%;top:43%;right:7%;white-space:pre-wrap;line-height:2;border-bottom:1px solid rgba(70,60,40,.26)}.creative-address:after{content:"";display:block;border-top:1px solid rgba(70,60,40,.26);border-bottom:1px solid rgba(70,60,40,.26);height:38px}.creative-stamp{position:absolute;right:7%;top:9%;width:62px;height:72px;border:1px dashed #826846;border-radius:4px;display:grid;place-items:center;color:#826846;font-size:24px}.creative-place{position:absolute;left:7%;bottom:8%;font-size:12px;color:#52634d}
.creative-flower-list{display:flex;gap:7px;flex-wrap:wrap;max-height:170px;overflow:auto}.creative-flower-chip{border:1px solid var(--line-soft);border-radius:999px;background:var(--wash-herb);padding:6px 9px;font-size:11px;cursor:pointer}.creative-doc-list{display:grid;gap:7px;max-height:180px;overflow:auto}.creative-doc-item{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line-soft);padding-bottom:6px}
.creative-text-list{display:grid;gap:8px;max-height:210px;overflow:auto}.creative-text-option{display:grid;gap:3px;text-align:left;border:1px solid var(--line-soft);background:var(--paper-warm);border-radius:10px;padding:9px;cursor:pointer;color:var(--ink)}.creative-text-option:hover{border-color:rgba(91,127,60,.42);background:var(--wash-herb)}.creative-text-option strong{font-family:var(--serif)}.creative-text-option span{font-size:11px;color:var(--muted);line-height:1.45}
.creative-print-area{display:none}.creative-calendar-page{page:calendar;position:relative;width:210mm;height:297mm;padding:15mm;background:#fffaf0;break-after:page;page-break-after:always}.creative-calendar-head{display:flex;align-items:center;gap:12mm;height:48mm;border-bottom:.3mm solid rgba(70,60,40,.25);margin-bottom:8mm}.creative-calendar-head .creative-emblem{position:static;width:42mm}.creative-calendar-head>div:last-child{font:600 24pt/1.1 var(--serif);color:#29472e}.creative-month h2{font:600 22pt/1.1 var(--serif);text-transform:capitalize;margin:0 0 7mm;color:#29472e}.creative-weekdays,.creative-days{display:grid;grid-template-columns:repeat(7,1fr);gap:1.2mm}.creative-weekdays span{font-size:9pt;text-align:center;color:#52634d;padding:2mm}.creative-days span{min-height:28mm;border:.25mm solid rgba(70,60,40,.18);padding:2mm;font:11pt/1 var(--serif)}.creative-days span.blank{border-color:transparent}.creative-calendar-page>.creative-brand{right:15mm;bottom:10mm}
@media(max-width:850px){.creative-shell{grid-template-columns:1fr}.creative-sidebar{position:static}.creative-stage{min-height:230px}.creative-copy{left:42%}.creative-emblem{width:30%}}
@page creativeLandscape{size:A4 landscape;margin:7mm}@page calendar{size:A4 portrait;margin:0}
@media print{.creative-print-area,.creative-print-area *{visibility:visible!important}.creative-print-area{display:block!important;position:absolute;inset:0;background:white}.creative-print-page{page:creativeLandscape;width:283mm;height:196mm;display:grid;grid-template-columns:repeat(var(--creative-cols,2),1fr);grid-template-rows:repeat(var(--creative-rows,2),1fr);break-after:page;page-break-after:always}.creative-print-card{position:relative;overflow:hidden;border:.15mm dashed #bbb;background:#fbf5e7}.creative-print-card .creative-stage{position:absolute;inset:0;border-radius:0;box-shadow:none;min-height:0;width:100%;height:100%}.creative-print-page:last-child,.creative-calendar-page:last-child{break-after:auto;page-break-after:auto}}

.creative-photo-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:220px;overflow:auto}
.creative-photo-choice{position:relative;display:grid;gap:4px;font-size:10px;color:var(--muted);cursor:pointer}
.creative-photo-choice input{position:absolute;top:5px;left:5px;z-index:2}
.creative-photo-choice img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;border:1px solid var(--line-soft);background:#eee}
.creative-photo-choice:has(input:checked) img{outline:3px solid rgba(91,127,60,.55);outline-offset:-3px}
.creative-preflight{display:grid;gap:6px;padding:9px;border-radius:10px;background:rgba(91,127,60,.07)}
.creative-preflight[data-status="PASS"]{background:rgba(91,127,60,.13)}
.creative-preflight[data-status="WARNING"]{background:rgba(212,168,91,.18)}
.creative-preflight[data-status="BLOCK"]{background:rgba(159,72,61,.13)}
.creative-preflight-item{font-size:11px;color:var(--muted)}
.creative-calendar-photo{display:block;width:100%;height:70mm;object-fit:cover;border-radius:4mm;margin:0 0 7mm}
.creative-fold-card{display:grid!important;grid-template-rows:1fr 1fr!important;position:relative}
.creative-fold-half{position:relative;overflow:hidden}
.creative-fold-half .creative-stage{position:absolute;inset:0;width:100%;height:100%}
.creative-fold-half.inverted{transform:rotate(180deg)}
.creative-fold-line{position:absolute;left:0;right:0;top:50%;border-top:.3mm dashed rgba(60,60,60,.6);z-index:20}

/* Curated SVG ornament toolbox (simple decorative graphics, not botanical illustrations). */
.creative-svg-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:10px 0 12px}
.creative-svg-choice{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;border:1px solid var(--line-soft);border-radius:8px;padding:6px 3px;background:#fff9ee;color:var(--ink);cursor:pointer;font:500 10px/1.2 var(--sans)}
.creative-svg-choice img{display:block;width:100%;max-width:65px;height:64px;object-fit:contain}
.creative-svg-choice span{text-align:center;overflow-wrap:anywhere}
.creative-svg-choice:hover,.creative-svg-choice:focus-visible{background:#e6ecdf;border-color:#78926e}
.creative-svg-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.creative-svg-actions .button{flex:1 1 auto;min-height:38px;padding:7px;font-size:12px}
.creative-svg-placement{position:absolute;z-index:7;display:grid;place-items:center;aspect-ratio:1;height:auto;padding:0;border:1px dashed transparent;background:transparent;cursor:grab;touch-action:none;user-select:none;transform-origin:center}
.creative-svg-placement img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.creative-svg-placement:hover,.creative-svg-placement:focus-visible{border-color:rgba(57,85,67,.5);outline-offset:2px}
.creative-svg-placement:active{cursor:grabbing}
@media(max-width:450px){.creative-svg-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.creative-svg-choice img{max-width:60px;height:59px}}
@media print{.creative-svg-placement{border:0!important;outline:0!important;cursor:default}}


/* Herbino social cards: visual publication from the existing Creative Studio. */
.creative-social-editor{display:grid;gap:14px;border:1px solid rgba(87,109,70,.42);border-radius:18px;background:linear-gradient(150deg,#f7f0dd,#e9dfc3);padding:18px;box-shadow:0 12px 25px rgba(63,56,35,.08)}
.creative-social-editor[hidden]{display:none}
.creative-social-heading{display:flex;gap:12px;justify-content:space-between;align-items:start;flex-wrap:wrap}
.creative-social-heading h3{font:600 clamp(19px,2.4vw,27px)/1.15 var(--serif);margin:0;color:#304d35}
.creative-social-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:16px;align-items:start}
.creative-social-preview{width:100%;max-height:560px;object-fit:contain;background:#e1d8c2;border:1px solid rgba(89,95,68,.28);border-radius:11px}
.creative-social-preview[hidden]{display:none}
.creative-social-fields{display:grid;gap:10px}.creative-social-fields .creative-field{margin:0}
.creative-social-consent{display:flex;align-items:start;gap:9px;font-size:12px;line-height:1.55;color:#405340;cursor:pointer}
.creative-social-consent input{margin-top:4px;min-width:16px;min-height:16px;accent-color:#426547}
.creative-social-actions,.creative-social-result{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.creative-social-result:empty{display:none}
.creative-social-public-link{font:600 13px/1.2 var(--serif);text-decoration:underline;color:#2f573f}
.creative-social-history{display:grid;gap:9px;max-height:460px;overflow:auto}
.creative-social-item{display:flex;gap:12px;border-top:1px solid rgba(86,106,75,.26);padding-top:10px;align-items:start}
.creative-social-item img{width:74px;height:93px;object-fit:cover;flex-shrink:0;border-radius:8px;border:1px solid rgba(73,86,58,.2)}
.creative-social-item>div{display:grid;gap:4px;min-width:0}
.creative-social-item p{margin:0;overflow-wrap:anywhere}
.creative-social-status{min-height:1.4em}
@media(max-width:820px){.creative-social-layout{grid-template-columns:1fr}.creative-social-preview{max-height:440px}.creative-social-editor{padding:13px}}

/* Shared studio profile artwork; actual colours, motifs, wording and fields come from the project pack. */
.studio-profile-fields [hidden],.creative-sidebar .creative-field[hidden],.creative-sidebar .creative-card[hidden],.creative-stage-wrap .studio-share-copy[hidden]{display:none!important}
.creative-stage.studio-profile-paper{container-type:inline-size;display:grid;grid-template-columns:29% minmax(0,1fr);align-items:center;column-gap:3%;box-sizing:border-box;padding:6.5% 8%;border:1px solid var(--studio-accent);border-radius:5px;background:var(--studio-paper);color:var(--studio-ink);min-height:0;outline:0}
.creative-stage.studio-profile-paper::before{content:"";position:absolute;inset:4%;border:1px solid var(--studio-accent);opacity:.6;pointer-events:none}
.studio-profile-art{width:92%;justify-self:center;fill:none;stroke:var(--studio-accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.studio-profile-copy{position:relative;z-index:1;overflow-wrap:anywhere;min-width:0}
.studio-profile-copy .studio-profile-kicker{display:block;color:var(--studio-ink);font:600 clamp(7px,1.7cqw,16px)/1.2 sans-serif;text-transform:uppercase;letter-spacing:.17em;margin:0 0 1.25cqw}
.studio-profile-copy h3{margin:0 0 1.3cqw;color:var(--studio-ink);font:500 clamp(12px,5cqw,52px)/1.05 Georgia,serif}
.studio-profile-copy p{margin:0;white-space:pre-line;color:var(--studio-ink);font:normal clamp(8px,2.95cqw,29px)/1.27 Georgia,serif}
.studio-profile-recipient,.studio-profile-signature{display:block;font:italic clamp(8px,2.6cqw,26px)/1.16 Georgia,serif;color:var(--studio-ink)}
.studio-profile-recipient{margin-bottom:1.2cqw}.studio-profile-signature{margin-top:1.35cqw}
.studio-profile-brand{position:absolute;bottom:5.4%;right:7%;color:var(--studio-ink);font:600 clamp(6px,1.7cqw,15px)/1 Georgia,serif}
.studio-share-copy textarea{width:100%;box-sizing:border-box}.studio-profile-paper.back .studio-profile-art{opacity:.74}
@media print{.creative-stage.studio-profile-paper{min-height:0!important;border-radius:0!important;box-shadow:none!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}}

@media screen {
  .creative-shell { grid-template-columns:minmax(0,1fr) minmax(230px,29%); gap:clamp(12px,2vw,24px); }
  .creative-shell > * { min-width:0; }
  .creative-sidebar { gap:8px; position:static; }
  .creative-stage-wrap { align-content:start; min-width:0; }
  .creative-stage-wrap > .creative-stage { width:100%; min-height:0; }
  .creative-inspector summary { cursor:pointer; padding:4px 0; font:600 1rem/1.4 var(--serif, Georgia,serif); }
  .creative-inspector[open] summary { margin-bottom:10px; }
  .creative-inspector .creative-field :is(input,select,textarea) { box-sizing:border-box; min-width:0; max-width:100%; }
  .creative-tabs { gap:4px; }
  .creative-tabs button[aria-pressed=true] { font-weight:700; }
  .creative-svg-placement:focus-visible,.creative-inspector summary:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
  @media (min-width:1100px) {
    #workspacePanel:has(.creative-shell) { grid-column:2/-1; }
    #workspacePanel:has(.creative-shell) + #contextDock { display:none; }
  }
  @media (max-width:850px) {
    .creative-shell { grid-template-columns:minmax(0,1fr); }
    .creative-sidebar .creative-card { padding:5px 12px; }
    .creative-inspector summary { line-height:44px; padding:0; }
    .creative-inspector .creative-field :is(input,textarea,select) { font-size:16px; }
  }
}
@page creativePortrait { size:A4 portrait; margin:7mm; }
@page creativeFull { size:A4 portrait; margin:0; }
@media print {
  body:has(.creative-shell) :not(:has(.creative-print-area)):not(.creative-print-area):not(.creative-print-area *) { display:none!important; }
  body:has(.creative-shell) :has(.creative-print-area) { display:contents!important; }
  body:has(.creative-shell) { display:block!important; padding:0!important; margin:0!important; }
  .creative-print-area { position:static!important; }
  .creative-print-page { box-sizing:border-box; width:283mm; height:196mm; align-content:center; justify-content:center;
    grid-template-columns:repeat(var(--creative-cols),var(--card-w)); grid-template-rows:repeat(var(--creative-rows),var(--card-h)); }
  .creative-print-page[data-paper=portrait] { page:creativePortrait; width:196mm; height:283mm; }
  .creative-print-page[data-paper=full] { page:creativeFull; width:210mm; height:297mm; }
  .creative-print-card { box-sizing:border-box; width:var(--card-w); height:var(--card-h); }
}
.creative-history { display:inline-flex; align-items:center; gap:4px; margin-inline-start:auto; }
.creative-history button:disabled { opacity:.48; }
@media screen and (max-width:480px) {
  .creative-tabs button { min-height:40px; padding:4px 8px; font-size:12px; }
}
