/* Page chrome only. Artwork fonts, dimensions and print rules remain in style.css. */
@media screen {
  body.flyer-workspace { background: #fffaf0; font-family: Arial, Helvetica, sans-serif; color: #202b29; }
  .flyer-workspace main { display: grid; grid-template-columns: 210px minmax(0, 1fr); width: min(1440px, calc(100% - 48px)); margin: auto; align-items: start; }
  .flyer-workspace .hero { grid-column: 1 / -1; width: 100%; min-height: 0; display: block; padding: 24px 0 20px; border: 0; }
  .flyer-workspace .hero h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.02em; margin: 8px 0 12px; }
  .flyer-workspace .hero-copy > p { max-width: 900px; font-size: 16px; line-height: 1.5; margin: 0; }
  .flyer-workspace .hero-note, .flyer-workspace .hero .primary-link { display: none; }
  .flyer-workspace .eyebrow { font-size: 11px; letter-spacing: .04em; color: #53615a; }
  .flyer-workspace .privacy-note { grid-column: 1 / -1; padding: 12px 14px; margin: 0 0 18px; background: #edf3ed; border-radius: 8px; font-size: 13px; line-height: 1.5; }
  .flyer-workspace .privacy-note strong { margin-right: 8px; }
  .flyer-workspace .templates-section { grid-column: 1; grid-row: 3; align-self: stretch; width: 100%; padding: 0; scroll-margin-top: 90px; }
  .flyer-workspace .template-sidebar { position: sticky; top: 90px; max-height: calc(100svh - 110px); overflow: auto; padding: 18px 14px; background: #fff; border: 1px solid #c7cfc7; border-radius: 16px 0 0 16px; scrollbar-width: thin; }
  .flyer-workspace .section-heading { display: block; margin: 0; }
  .flyer-workspace .section-heading h2 { font-size: 16px; line-height: 1.3; letter-spacing: 0; margin: 0 0 10px; }
  .flyer-workspace .section-heading > p, .flyer-workspace .section-heading .eyebrow { display: none; }
  .flyer-workspace .filter-row { flex-wrap: wrap; gap: 5px; margin: 12px 0; padding: 0; overflow: visible; }
  .flyer-workspace .filter-row button { min-height: 32px; padding: 6px 8px; font-size: 12px; white-space: normal; border: 1px solid #a7b4af; border-radius: 6px; }
  .flyer-workspace .filter-row button[aria-pressed="true"] { background: #e3ece5; color: #202b29; border-color: #335b48; }
  .flyer-workspace .template-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .flyer-workspace .template-card { display: block; padding: 8px; border: 1px solid #c7cfc7; border-radius: 8px; box-shadow: none; transform: none; }
  .flyer-workspace .template-card[aria-pressed="true"] { outline: 2px solid #335b48; outline-offset: 1px; }
  .flyer-workspace .template-preview { display: block; width: 100%; padding: 0; }
  .flyer-workspace .template-meta { padding: 8px 0 0; gap: 4px; }
  .flyer-workspace .template-meta strong { font-size: 13px; line-height: 1.35; }
  .flyer-workspace .template-meta small { font-size: 11px; }
  .flyer-workspace .favorite-toggle { min-width: 30px; min-height: 32px; }
  .flyer-workspace .workspace { grid-column: 2; grid-row: 3; width: 100%; min-width: 0; padding: 0; border: 1px solid #c7cfc7; border-left: 0; border-radius: 0 16px 16px 0; background: #fff; scroll-margin-top: 90px; }
  .flyer-workspace .workspace-head { padding: 14px 18px; margin: 0; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid #d9dfd8; }
  .flyer-workspace .workspace-head h2 { font-size: 18px; line-height: 1.3; letter-spacing: 0; margin: 0; }
  .flyer-workspace .workspace-head .eyebrow { display: none; }
  .flyer-workspace .history-actions { margin: 0; }
  .flyer-workspace .history-actions button, .flyer-workspace .preview-actions button { border: 1px solid #a7b4af; border-radius: 8px; min-height: 44px; background: #fff; font-size: 13px; }
  .flyer-workspace .workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; min-height: 700px; align-items: start; border: 0; box-shadow: none; background: none; }
  .flyer-workspace .preview-panel { grid-column: 1; grid-row: 1; position: sticky; top: 90px; min-width: 0; width: 100%; display: block; padding: 18px; border: 0; background: #eeeee7; }
  .flyer-workspace .preview-toolbar { display: flex; flex-wrap: wrap; gap: 10px; min-height: 0; padding: 0 0 12px; border: 0; background: none; font-size: 13px; }
  .flyer-workspace .preview-toolbar strong { font-size: 15px; }
  .flyer-workspace .preview-toolbar span { font-size: 12px; }
  .flyer-workspace .preview-stage { height: max(320px, calc(100svh - 290px)); min-height: 0; padding: 12px; overflow: hidden; background: none; }
  .flyer-workspace .status { padding: 12px 0 0; margin: 0; min-height: 0; background: none; font-size: 13px; line-height: 1.5; }
  .flyer-workspace .editor-panel { grid-column: 2; grid-row: 1; min-width: 0; border: 0; border-left: 1px solid #d9dfd8; }
  .flyer-workspace .editor-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); border-color: #d9dfd8; }
  .flyer-workspace .editor-tabs button { min-height: 44px; padding: 10px 8px; font-size: 13px; }
  .flyer-workspace .editor-tabs button[aria-selected="true"], .flyer-workspace .segmented button[aria-pressed="true"] { background: #294e3d; color: #fff; }
  .flyer-workspace .tab-panel { padding: 18px; max-height: none; overflow: visible; }
  .flyer-workspace .field-pair { grid-template-columns: 1fr; gap: 0; }
  .flyer-workspace .field > span, .flyer-workspace .range-field > span, .flyer-workspace .choice-group legend { font-size: 13px; }
  .flyer-workspace .field input, .flyer-workspace .field select, .flyer-workspace .field textarea { min-height: 44px; font-size: 15px; border: 1px solid #a7b4af; border-radius: 6px; }
  .flyer-workspace .field small, .flyer-workspace .layer-controls p { font-size: 12px; }
  .flyer-workspace .output-actions { grid-template-columns: 1fr; gap: 10px; }
  .flyer-workspace .output-actions button, .flyer-workspace .save-layout-button { min-height: 48px; border: 1px solid #294e3d; border-radius: 8px; background: #294e3d; color: #fff; box-shadow: none; transform: none; font-size: 15px; }
  .flyer-workspace #printButton { background: #fff; color: #202b29; }
  .flyer-workspace .guide, .flyer-workspace .faq { grid-column: 1 / -1; width: 100%; max-width: 1000px; margin: 36px auto 0; padding: 0; border: 0; }
  .flyer-workspace .faq { margin-bottom: 56px; }
  .flyer-workspace .guide h2, .flyer-workspace .faq h2 { font-size: 24px; line-height: 1.3; letter-spacing: 0; }
  .flyer-workspace .steps, .flyer-workspace .tips, .flyer-workspace .faq details { border: 1px solid #c7cfc7; border-radius: 10px; background: #fff; box-shadow: none; }
  .flyer-workspace .faq details { margin: 10px 0; padding: 0 18px; }
  .flyer-workspace .faq summary { font-size: 16px; min-height: 56px; }
  @media (max-width: 1100px) {
    .flyer-workspace main { width: calc(100% - 32px); grid-template-columns: 170px minmax(0, 1fr); }
    .flyer-workspace .workspace-grid { grid-template-columns: minmax(0, 1fr) 280px; }
    .flyer-workspace .preview-panel { padding: 12px; }
  }
  @media (max-width: 850px) {
    .flyer-workspace main { display: flex; flex-direction: column; width: calc(100% - 24px); }
    .flyer-workspace .hero { order: 0; }
    .flyer-workspace .hero h1 { font-size: 28px; }
    .flyer-workspace .privacy-note { order: 1; }
    .flyer-workspace .workspace { order: 2; border: 1px solid #c7cfc7; border-radius: 12px; }
    .flyer-workspace .templates-section { order: 3; margin-top: 18px; }
    .flyer-workspace .template-sidebar { position: static; max-height: none; border-radius: 12px; }
    .flyer-workspace .template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .flyer-workspace .guide, .flyer-workspace .faq { order: 4; }
    .flyer-workspace .mobile-view-tabs { display: none; }
    .flyer-workspace .workspace-grid[data-mobile-view] .editor-panel, .flyer-workspace .workspace-grid[data-mobile-view] .preview-panel { display: block; }
    .flyer-workspace .hero .primary-link { display: inline-flex; margin-top: 14px; border-radius: 8px; box-shadow: none; font-size: 14px; }
  }
  @media (max-width: 620px) {
    .flyer-workspace .workspace-grid { display: flex; flex-direction: column; }
    .flyer-workspace .preview-panel { order: 0; position: static; }
    .flyer-workspace .editor-panel { order: 1; width: 100%; border-left: 0; border-top: 1px solid #d9dfd8; }
    .flyer-workspace .preview-stage { height: 430px; }
    .flyer-workspace .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flyer-workspace .preview-actions { justify-content: flex-start; }
  }
}
