.preview-toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #dbc6a3;
  background: #fff9ed;
  color: #604834;
}
.preview-toolbar-inner {
  min-height: 49px;
  max-width: 1800px;
  padding: 9px 26px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.preview-toolbar-copy, .preview-toolbar-actions { display: flex; align-items: center; gap: 12px; }
.preview-toolbar-copy { flex-wrap: wrap; gap: 5px 9px; font-size: 12px; line-height: 1.5; }
.preview-toolbar-copy > strong { font-weight: 600; }
.preview-mode-dot { width: 6px; height: 6px; border-radius: 50%; background: #a78043; flex-shrink: 0; }
.preview-toolbar-note { color: #756b5e; font-size: 10px; }
.preview-toolbar-actions { flex-shrink: 0; gap: 14px; font-size: 11px; }
.preview-index-button {
  padding: 6px 13px;
  border: 1px solid #bc9860;
  border-radius: 7px;
  color: #654828;
  background: #fffdfa;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.preview-index-button:hover { background: #f5e8d0; }
.preview-live-link { color: #783d53; white-space: nowrap; text-decoration: none; }
.preview-live-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.preview-toolbar :is(a, button):focus-visible, .preview-screen-card:focus-visible {
  outline: 2px solid #9d4c68;
  outline-offset: 3px;
}
.preview-index { color: var(--ink, #402d35); }
.dialog:has(.preview-index) { width: min(860px, calc(100% - 32px)); max-height: calc(100dvh - 48px); }
.preview-index-lead { font-size: 14px; line-height: 1.8; margin: 2px 0 17px; }
.preview-index-notice { padding: 15px 17px; background: #fff6e9; border: 1px solid #e8d3b0; border-radius: 11px; color: #715436; }
.preview-index-notice > strong { font-size: 12px; line-height: 1.8; font-weight: 600; }
.preview-index-notice > p { margin: 5px 0 0; color: #796954; font-size: 11px; line-height: 1.8; }
.preview-screen-section { margin-top: 24px; }
.preview-screen-section > h3 { margin: 0 0 11px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.preview-screen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.preview-screen-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px 13px;
  background: #fffdfd;
  border: 1px solid #eadfe3;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
  min-width: 0;
}
.preview-screen-card:hover { background: #fff3f7; border-color: #cd9eb0; }
.preview-screen-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; background: #f5e7ed; color: #99536c; }
.preview-screen-icon .icon { width: 17px; height: 17px; }
.preview-screen-copy { display: grid; gap: 5px; min-width: 0; }
.preview-screen-copy > strong { font-size: 12px; line-height: 1.6; font-weight: 600; }
.preview-screen-copy > span { color: #776871; font-size: 11px; line-height: 1.7; }
.preview-screen-arrow { color: #9a7850; font-size: 15px; margin-left: auto; flex-shrink: 0; }
.preview-section-note { color: #776871; font-size: 11px; line-height: 1.8; margin: -4px 0 11px; }
.preview-public-section { padding-top: 21px; border-top: 1px solid #eadfe3; }
.preview-sample-badge { display: inline-flex; padding: 6px 10px; border: 1px solid #dfc89e; border-radius: 20px; color: #7c5c2f; background: #fff8e9; font-size: 10px; white-space: nowrap; }
.preview-admin-notice { display: flex; align-items: flex-start; gap: 11px; padding: 17px 19px; margin-bottom: 23px; border: 1px solid #e4d4b6; border-radius: 11px; background: #fff9ed; color: #705330; }
.preview-admin-notice > .icon { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; }
.preview-admin-notice strong { font-size: 12px; font-weight: 600; line-height: 1.8; }
.preview-admin-notice p { margin: 4px 0 0; font-size: 11px; line-height: 1.9; color: #7c6b53; }
.preview-admin-card { max-width: 1000px; }
.preview-table-caption { text-align: left; color: #897b73; font-size: 10px; padding: 0 0 10px; }
.preview-contact-sample { margin-top: 16px; }
.preview-contact-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-contact-heading > span { color: #8f754c; font-size: 10px; }
.preview-contact-date, .preview-contact-email { color: #897581; font-size: 11px; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .preview-toolbar-inner { padding: 9px 16px; gap: 10px; align-items: flex-start; }
  .preview-toolbar-copy { font-size: 10px; gap: 4px 6px; padding-top: 4px; }
  .preview-toolbar-note { display: none; }
  .preview-toolbar-actions { gap: 10px; font-size: 10px; }
  .preview-index-button { padding: 5px 9px; }
  .preview-mode-dot { width: 5px; height: 5px; }
  .preview-screen-card { padding: 13px 11px; gap: 8px; }
  .preview-screen-icon { width: 27px; height: 27px; }
  .preview-admin-notice { padding: 14px; }
}
@media (max-width: 420px) {
  .preview-screen-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-toolbar-inner { padding-right: 12px; padding-left: 12px; }
  .preview-toolbar-copy { max-width: 148px; }
  .preview-toolbar-actions { gap: 8px; }
  .preview-live-link { font-size: 9px; }
  .preview-index-notice { padding: 13px 14px; }
  .preview-admin-card .share-table { min-width: 580px; }
}
@media (max-width: 620px) {
  body.enishi-preview .topbar { top: 49px; }
}
@media (prefers-reduced-motion: reduce) {
  .preview-screen-card { transition: none; }
}
