/* Scoped catalog and metadata UI; tutorial content uses the existing growth editor. */
#ai-handbook .other-courseware { color: var(--gw-ink); width: 100%; min-width: 0; }
#growth-cmd-insert-attachment[hidden] { display: none !important; }
.other-courseware .oc-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.other-courseware .oc-section-title { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.other-courseware .oc-description { margin: 8px 0 0; font-size: 13px; color: var(--gw-muted); }
.other-courseware .oc-button { appearance: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--gw-ink); background: var(--gw-material); border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; min-height: 40px; cursor: pointer; touch-action: manipulation; transition: transform 140ms ease, background 140ms ease; }
.other-courseware .oc-button:hover { background: color-mix(in srgb, var(--gw-ink) 12%, transparent); }
.other-courseware .oc-button:active { transform: scale(.98); }
.other-courseware .oc-button:focus-visible, .other-courseware input:focus-visible { outline: 2px solid var(--gw-muted); outline-offset: 3px; }
.other-courseware .oc-button--primary { background: var(--gw-ink); color: var(--gw-selected); white-space: nowrap; }
.other-courseware .oc-button--primary:hover { background: color-mix(in srgb, var(--gw-ink) 85%, var(--gw-selected)); }
.other-courseware .oc-button--danger { color: #bb3434; background: transparent; }
html.theme-dark .other-courseware .oc-button--danger { color: #ff9696; }
.other-courseware .oc-button--back { padding-left: 0; background: transparent; margin-bottom: 22px; color: var(--gw-muted); }
.other-courseware .oc-button:disabled { opacity: .5; cursor: wait; transform: none; }
.other-courseware .oc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.other-courseware .oc-button--card { padding: 0; border: 0; background: transparent; text-align: left; display: flex; flex-direction: column; min-width: 0; border-radius: 14px; }
.other-courseware .oc-button--card:hover { background: transparent; }
.other-courseware .oc-cover, .other-courseware .oc-detail-cover { position: relative; overflow: hidden; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--gw-material); }
.other-courseware .oc-cover img, .other-courseware .oc-detail-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 160ms ease; }
.other-courseware .oc-cover img.is-loaded, .other-courseware .oc-detail-cover img.is-loaded { opacity: 1; }
.other-courseware .oc-cover-fallback { color: var(--gw-muted); font-size: 12px; padding: 16px; text-align: center; }
.other-courseware .oc-card-text { padding: 14px 2px 2px; width: 100%; box-sizing: border-box; }
.other-courseware .oc-card-title { color: var(--gw-ink); margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.other-courseware .oc-meta { color: var(--gw-muted); font-size: 12px; font-weight: 400; margin: 8px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.other-courseware .oc-empty { display: grid; justify-items: center; align-content: center; min-height: 260px; text-align: center; padding: 24px; }
.other-courseware .oc-empty h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.other-courseware .oc-empty p { font-size: 13px; color: var(--gw-muted); margin: 0; }
.other-courseware .oc-detail-header { display: grid; grid-template-columns: minmax(180px, 30%) minmax(0, 1fr); gap: 28px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid color-mix(in srgb, var(--gw-ink) 12%, transparent); }
.other-courseware .oc-detail-title { font-size: clamp(22px, 3vw, 30px); font-weight: 650; letter-spacing: -.025em; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.other-courseware .oc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.other-courseware .oc-status { min-height: 18px; font-size: 12px; color: var(--gw-muted); line-height: 1.5; margin: 10px 0; }
.other-courseware .oc-status:empty { display: none; }
.other-courseware .oc-status.is-error { color: #b33030; }
html.theme-dark .other-courseware .oc-status.is-error { color: #ff9696; }
.other-courseware .oc-form { max-width: 600px; }
.other-courseware .oc-form-fields { display: grid; gap: 20px; margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.other-courseware .oc-field { display: grid; gap: 9px; font-size: 13px; font-weight: 500; }
.other-courseware .oc-field input[type=text] { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; color: var(--gw-ink); background: var(--gw-selected); border: 1px solid color-mix(in srgb, var(--gw-ink) 16%, transparent); border-radius: 10px; font: inherit; }
.other-courseware .oc-field input[type=file] { color: var(--gw-muted); font: inherit; max-width: 100%; }
.other-courseware .oc-form-preview { display: grid; place-items: center; max-width: 320px; aspect-ratio: 16 / 9; background: var(--gw-material); border-radius: 12px; overflow: hidden; }
.growth-editor .oc-attachment-card { box-sizing: border-box; display: flex; align-items: center; gap: 10px; flex: 0 1 420px; width: 420px; max-width: 100%; margin: 12px 0; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--text) 13%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--surface) 92%, var(--bg)); }
.growth-editor .oc-attachment-link { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; }
.growth-editor .oc-attachment-link:hover .oc-attachment-name { text-decoration: underline; }
.growth-editor .oc-attachment-type { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 9px; background: color-mix(in srgb, var(--text) 10%, transparent); color: color-mix(in srgb, var(--text) 70%, transparent); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.growth-editor .oc-attachment-link[data-oc-preview="pdf"] .oc-attachment-type { border-radius: 0; background: url("../images/ppt-shooting-board-app-icon.svg") center / 40px 40px no-repeat; font-size: 0; }
.growth-editor .oc-attachment-details { display: grid; gap: 3px; flex: 1 1 auto; min-width: 0; }
.growth-editor .oc-attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.growth-editor .oc-attachment-size, .growth-editor .oc-attachment-action { color: var(--muted); font-size: 11px; font-weight: 400; }
.growth-editor .oc-attachment-action { margin-left: auto; white-space: nowrap; }
.growth-editor .oc-attachment-remove { display: none; flex: 0 0 auto; border: 0; padding: 5px 6px; border-radius: 7px; background: transparent; color: #b33030; cursor: pointer; font: inherit; font-size: 12px; }
.growth-editor.is-editing .oc-attachment-remove { display: inline-flex; }
.growth-editor.is-editing .oc-attachment-card { border-style: dashed; }
.growth-editor .oc-attachment-remove:hover { background: color-mix(in srgb, #b33030 10%, transparent); }
.oc-attachment-file-input { position: fixed !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.oc-preview-dialog { width: min(900px, calc(100vw - 32px)); height: min(760px, calc(100vh - 32px)); padding: 0; border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgba(0,0,0,.28); overflow: hidden; }
.oc-preview-dialog::backdrop { background: rgba(10, 12, 18, .58); backdrop-filter: blur(3px); }
.oc-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.oc-preview-title { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 650; }
.oc-preview-close { appearance: none; border: 0; border-radius: 8px; padding: 7px 10px; color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); cursor: pointer; font: inherit; font-size: 12px; }
.oc-preview-body { display: grid; place-items: center; width: 100%; height: calc(100% - 60px); overflow: auto; background: color-mix(in srgb, var(--bg) 82%, var(--surface)); }
.oc-preview-image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.oc-preview-pdf { width: 100%; height: 100%; border: 0; background: #fff; }
.oc-preview-loading, .oc-preview-error { color: var(--muted); font-size: 13px; }
@media (max-width: 480px) { .growth-editor .oc-attachment-action { display: none; } .oc-preview-dialog { width: calc(100vw - 16px); height: calc(100vh - 16px); } }
#ai-handbook .growth-learning-segments { overflow-x: auto; box-sizing: border-box; }
#ai-handbook .handbook-home-learn-item { flex-shrink: 0; }
@media (max-width: 760px) { .other-courseware .oc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
@media (max-width: 480px) {
  .other-courseware .oc-topline { align-items: flex-start; gap: 12px; }
  .other-courseware .oc-grid { grid-template-columns: minmax(0, 1fr); }
  .other-courseware .oc-detail-header { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .other-courseware .oc-detail-cover { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .other-courseware .oc-button, .other-courseware .oc-cover img, .other-courseware .oc-detail-cover img { transition: none; transform: none; } }
