.usage-guide-open { overflow: hidden; }
.usage-guide-overlay { position: fixed; inset: 0; z-index: 14000; background: rgb(15 23 42 / 38%); display: grid; place-items: center; padding: 16px; color: #17212e; }
.usage-guide-sheet { width: min(100%, 560px); max-height: calc(100dvh - 32px); background: #fff; border-radius: 8px; box-shadow: 0 18px 60px rgb(0 0 0 / 18%); display: flex; flex-direction: column; overflow: hidden; }
.usage-guide-sheet > header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e6e9ed; }
.usage-guide-sheet h2 { margin: 0; font-size: 20px; line-height: 1.4; }
.usage-guide-sheet > main { padding: 20px; overflow: auto; overscroll-behavior: contain; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.usage-guide-sheet button { font: inherit; cursor: pointer; }
.usage-guide-sheet header button,.usage-help-button,.usage-cue button { width: 44px; height: 44px; flex: 0 0 44px; display: inline-grid; place-items: center; background: transparent; color: #667085; border: 1px solid #dce1e9; border-radius: 8px; padding: 10px; }
.usage-help-button { margin-left: auto; }
/* Equal side tracks keep the title centered in the page, not in the leftover space. */
html[data-theme="light"] body .tool-page-header {
  display: grid !important;
  grid-template-columns: var(--tool-header-side, 44px) minmax(0, 1fr) var(--tool-header-side, 44px) !important;
  align-items: center !important;
  column-gap: 8px !important;
  padding-inline: 20px;
  min-height: 72px;
}
html[data-theme="light"] body .tool-page-header > .tool-header-leading,
html[data-theme="light"] body .tool-page-header > .tool-header-actions {
  position: static;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  width: max-content !important;
  min-width: 44px !important;
  height: 44px !important;
  margin: 0;
  padding: 0;
}
html[data-theme="light"] body .tool-page-header > .tool-header-leading { grid-column: 1; justify-self: start; justify-content: flex-start; }
html[data-theme="light"] body .tool-page-header > .tool-header-actions { grid-column: 3; justify-self: end; justify-content: flex-end; }
html[data-theme="light"] body .tool-page-header > .tool-header-title {
  position: static;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}
html[data-theme="light"] body .tool-page-header > .tool-header-title > :is(span,small) { display: none; }
html[data-theme="light"] body .tool-page-header :is(h2,h3) {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-align: center;
  letter-spacing: 0;
}
html[data-theme="light"] body .tool-page-header :is(.tool-header-leading,.tool-header-actions) > button {
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  color: #63718f;
  background: #fcfdff;
}
html[data-theme="light"] body .tool-page-header button[hidden] { display: none !important; }
html[data-theme="light"] body .tool-page-header button .app-icon { width: 20px; height: 20px; }
html[data-theme="light"] body .tool-page-header [data-chat-new] { width: 88px; flex-basis: 88px; gap: 6px; }
html[data-theme="light"] body .tool-page-header.chat-head { min-height: 0; }
@media (max-width: 430px) {
  html[data-theme="light"] body .tool-page-header { padding-inline: 16px; }
  html[data-theme="light"] body .tool-page-header [data-chat-new] { width: 44px; flex-basis: 44px; }
  html[data-theme="light"] body .tool-page-header [data-chat-new] { flex-direction: column; gap: 1px; }
  html[data-theme="light"] body .tool-page-header [data-chat-new] > span { display: block; color: inherit; font-size: 13px; line-height: 1.1; white-space: nowrap; }
}
.material-library-toolbar.usage-header { grid-template-columns: minmax(0,1fr) auto 44px; align-items: center; }
.usage-header [data-usage-help-slot] { display: flex !important; flex-direction: row; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.usage-header.xiaohongshu-assistant-header { grid-template-columns: 44px minmax(0,1fr) auto; }
#aiDialogueFlow.chat-v2 .chat-head.usage-header { grid-template-columns: 44px minmax(0,1fr) auto; }
.product-detail-header.usage-header .product-detail-reset,.product-detail-header.usage-header .product-detail-preview-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 10px; }
.product-detail-header.usage-header .product-detail-preview-toggle[hidden] { display: none; }
.product-detail-header.usage-header .app-icon { width: 20px; height: 20px; }
.product-detail-header.usage-header h2 { overflow-wrap: anywhere; }
.usage-help-button .app-icon,.usage-cue .app-icon,.usage-guide-sheet .app-icon { width: 22px; height: 22px; }
.usage-guide-description { margin: 0 0 20px; color: #667085; line-height: 1.7; }
.usage-intents { display: grid; gap: 10px; }
.usage-intents button { min-height: 86px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 24px; grid-template-rows: auto auto; gap: 4px 12px; text-align: left; align-items: center; background: #f8f9fc; border: 1px solid #e1e5ed; border-radius: 8px; padding: 14px; color: #252d3b; }
.usage-intents button > svg:first-child { grid-row: 1 / 3; color: #6051d7; }
.usage-intents button > svg:last-child { grid-column: 3; grid-row: 1 / 3; }
.usage-intents span { grid-column: 2; color: #667085; font-size: 14px; line-height: 1.5; }
.usage-guide-done { min-height: 44px; width: 100%; margin-top: 20px; }
.usage-guide-directory { display: grid; }
.usage-guide-directory > button { border: 0; border-bottom: 1px solid #e6e9ed; background: none; display: grid; grid-template-columns: minmax(0,1fr) 24px; text-align: left; padding: 14px 0; gap: 5px 10px; color: inherit; }
.usage-guide-directory span { grid-column: 1; font-size: 14px; color: #667085; line-height: 1.6; }
.usage-guide-directory svg { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.usage-guide-section-title { margin-top: 28px; font-size: 17px; }
.usage-guide-faq { padding: 12px 0; border-bottom: 1px solid #e6e9ed; }
.usage-guide-faq summary { min-height: 32px; line-height: 1.6; cursor: pointer; }
.usage-guide-faq p,.usage-guide-steps p { font-size: 15px; line-height: 1.75; color: #667085; }
.usage-guide-steps { list-style: decimal; padding-left: 24px; margin: 0; }
.usage-guide-steps li + li { margin-top: 24px; }
.usage-guide-steps h3 { font-size: 17px; line-height: 1.6; margin: 0; }
.usage-guide-steps figure,.guide-preview figure { margin: 12px 0; background: #f5f7fb; border: 1px solid #e1e6ee; border-radius: 8px; overflow: hidden; }
.usage-guide-steps figcaption,.guide-preview figcaption { font-size: 13px; color: #667085; padding: 10px; }
.usage-guide-steps img,.guide-preview img { display: block; max-width: 100%; width: auto; max-height: 400px; margin: auto; object-fit: contain; }
.usage-cue { display: flex; align-items: center; gap: 12px; background: #f1efff; color: #5343c4; border-left: 3px solid #8173e9; padding: 8px 8px 8px 12px; margin: 0 0 12px; font-size: 14px; line-height: 1.6; width: 100%; box-sizing: border-box; border-radius: 4px; }
.usage-cue span { flex: 1; min-width: 0; }
.usage-cue button { border: 0; width: 40px; height: 40px; flex-basis: 40px; }
.usability-details { margin-top: 16px; }
.usability-details > summary { cursor: pointer; min-height: 44px; line-height: 1.6; align-content: center; color: #63718c; font-size: 14px; }
.usability-details[open] > summary { margin-bottom: 12px; }
.usability-note { color: #63718c; line-height: 1.7; font-size: 14px; }
.moments-editor-panel .moments-editor-field textarea:not([readonly]) { min-height: 130px; }
.moments-editor-panel .moments-editor-field > .moments-edit-fab { display: none; }
.moments-editor-panel .moments-tool-details { margin-bottom: 16px; }
.guide-admin-filters { display: flex; gap: 12px; margin: 12px 0; }
.guide-admin-filters input { flex: 1; min-width: 0; }
.guide-admin-row { width: 100%; display: grid; gap: 6px; text-align: left; border: 0; border-bottom: 1px solid #e6e9ed; background: transparent; color: inherit; padding: 16px; cursor: pointer; border-radius: 8px; }
.guide-admin-row.active { background: #fff3e9; }
.guide-admin-row span { color: #63718c; font-size: 14px; }
.guide-admin-step { min-width: 0; padding: 16px; border: 1px solid #e1e6ee; border-radius: 8px; margin: 24px 0; }
.guide-admin-step label { display: grid; gap: 8px; margin-bottom: 16px; }
.guide-admin-upload { min-height: 120px; display: grid; place-items: center; padding: 12px; margin-bottom: 12px; }
.guide-admin-upload img { max-height: 240px; width: auto; max-width: 100%; object-fit: contain; }
.guide-admin-upload [hidden] { display: none; }
.guide-preview img { max-height: 520px; }
@media (max-width: 600px) { .usage-guide-overlay { padding: 8px; } .usage-guide-sheet { max-height: calc(100dvh - 16px); } .usage-guide-sheet > main { padding: 16px; padding-bottom: max(16px,env(safe-area-inset-bottom)); } .usage-guide-sheet > header { padding: 12px 16px; } .guide-admin-filters { flex-wrap: wrap; } }
@media (max-width: 430px) { .material-library-toolbar.usage-header { grid-template-columns: minmax(0,1fr) 44px 44px; gap: 8px; } .material-library-toolbar.usage-header .material-upload-button { width: 44px; min-height: 44px; padding: 10px; box-sizing: border-box; } .material-library-toolbar.usage-header .material-upload-button span { display: none; } }
@media (prefers-reduced-motion: no-preference) { .usage-guide-sheet { animation: usage-guide-enter .14s ease-out; } @keyframes usage-guide-enter { from { opacity: 0; transform: translateY(4px); } } }
