.idea-header { margin: 12px 0 16px; padding-bottom: 12px; border-bottom: 2px solid #14295a; }
.idea-header-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.idea-header h1 { margin: 0; padding: 0; border: 0; font-size: 1.45rem; line-height: 1.3; text-align: left; }
.idea-header-tagline { color: #526c82; font-size: .9em; font-style: italic; line-height: 1.4; }
.idea-header .idea-header-description { margin: 7px 0 0; padding: 0; color: #526c82; font-size: .8em; line-height: 1.5; text-align: left; }
.idea-lesson-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 18px; }
.idea-lesson-heading h2 { margin: 0; color: #314e60; }
.idea-lesson-heading a { text-decoration: none; white-space: nowrap; }
.idea-lesson-heading .idea-add-button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 52px; padding: 15px 28px; border-radius: 999px; font-size: 1em; font-weight: 700; line-height: 1.35; box-shadow: 0 3px 8px #17364e12; }
.idea-choice-section { margin: 36px 0; }
.idea-choice-heading { margin-bottom: 22px; }
.idea-choice-heading h2 { color: #314e60; margin: 12px 0 8px; font-size: 1.5em; text-align: left; }
.idea-choice-heading p { color: #526c82; margin: 0; line-height: 1.6; }
.idea-age-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid #dce4ed; border-radius: 999px; color: #315974; background: #f7f9fc; font-size: .8em; font-weight: 600; }
.idea-age-badge::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--idea-age-accent, #315974); }
.idea-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.idea-choice-card { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 9px; min-height: 126px; box-sizing: border-box; padding: 24px 48px 24px 24px; border: 1px solid #cfdae7; border-top: 4px solid var(--idea-age-accent, #315974); border-radius: 14px; background: #fff; box-shadow: 0 3px 9px #17364e08; color: #064e82; text-decoration: none; text-align: left; overflow-wrap: anywhere; transition: background-color .15s, box-shadow .15s; }
.idea-choice-card:hover { background: #f7f9fc; box-shadow: 0 5px 14px #17364e14; color: #064e82; text-decoration: none; }
.idea-choice-card:focus-visible, .idea-add-button:focus-visible { outline: 2px solid #064e82; outline-offset: 4px; }
.idea-choice-label { color: #526c82; font-size: .75em; font-weight: 500; }
.idea-choice-name { font-size: 1.1em; font-weight: 700; line-height: 1.4; }
.idea-choice-arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #526c82; font-size: 1.15em; }
.idea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.idea-card { display: flex; flex-direction: column; min-width: 0; padding: 22px 20px 16px; border: 1px solid #cfdae7; border-radius: 14px; box-shadow: 0 3px 9px #17364e08; background: white; overflow-wrap: anywhere; text-align: left; }
.idea-card h3 { margin: 0 0 14px; color: #064e82; font-size: 1.15em; line-height: 1.35; }
.idea-card p { margin: 0 0 18px; }
.idea-description { line-height: 1.6; color: #526c82; }
.idea-rich-content p { margin: 0 0 12px; padding: 0; line-height: inherit; }
.idea-rich-content p:last-child { margin-bottom: 0; }
.idea-rich-content ul, .idea-rich-content ol { margin: 0 0 12px; padding-left: 24px; }
.idea-rich-content li { margin: 4px 0; }
.idea-rich-content a { color: #064e82; overflow-wrap: anywhere; }
.idea-rich-content blockquote { margin: 12px 0; padding-left: 14px; border-left: 3px solid #cfdae7; }
.idea-form .tox-tinymce { border: 1px solid #cfdae7; border-radius: 8px; }
.idea-editor-error { margin-top: 12px; color: #8b3e33; font-size: .85em; }
body:has(.idea-edit-panel) .tox-tinymce-aux { z-index: 3000 !important; }
.idea-resources { margin-top: auto; padding-top: 14px; }
.idea-resource-entry { margin: 8px 0 12px; }
.idea-resource { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 13px; border-radius: 7px; background: #f0f4f7; color: #064e82; text-decoration: none; font-size: .85em; }
.idea-resource:hover { background: #e3edf4; }
.idea-resource-host { display: block; margin: 5px 0 0; padding: 0 3px; color: #526c82; font-size: .72em; line-height: 1.4; overflow-wrap: anywhere; }
.idea-card .idea-attribution { margin: 14px 0 0; font-size: .75em; color: #526c82; }
.idea-photo { display: block; margin: 2px 0 16px; border: 1px solid #dce4ed; border-radius: 10px; overflow: hidden; background: #f3f6f9; color: #315974; text-decoration: none; cursor: zoom-in; }
.idea-photo[hidden] { display: none; }
.idea-photo:hover { border-color: #9bb3c9; text-decoration: none; }
.idea-photo:focus-visible { outline: 2px solid #064e82; outline-offset: 3px; }
.idea-photo-image { display: block; width: 100%; height: 210px; object-fit: contain; }
.idea-photo-hint { display: block; padding: 7px 10px; font-size: .75em; text-align: center; }
.idea-photo-unavailable { color: #526c82; font-size: .8em; }
.idea-photo-dialog { box-sizing: border-box; width: min(960px, 94vw); max-width: 94vw; max-height: 94vh; padding: 18px; border: 0; border-radius: 14px; background: white; color: #314e60; box-shadow: 0 12px 60px #0005; }
.idea-photo-dialog::backdrop { background: #102232cc; }
.idea-photo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.idea-photo-toolbar h2 { margin: 0; padding: 0; font-size: 1em; line-height: 1.4; overflow-wrap: anywhere; }
.idea-photo-toolbar .idea-photo-close { flex-shrink: 0; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid #cfdae7; border-radius: 50%; background: #f4f7fa; color: #314e60; font-size: 24px; line-height: 1; cursor: pointer; }
.idea-photo-full { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(90vh - 140px); margin: 0 auto 12px; object-fit: contain; }
.idea-photo-full[hidden], .idea-photo-error[hidden] { display: none; }
.idea-photo-download { display: inline-block; font-size: .85em; margin-top: 8px; }
.idea-report { font-size: .75em; margin-top: 12px; }
.idea-pending { background: #f7f9fc; }
.idea-empty { grid-column: 1 / -1; padding: 25px; text-align: center; }
.idea-form-wrap { max-width: 720px; margin: 30px auto; }
.idea-back-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #cfdae7; border-radius: 24px; background: #f4f7fa; color: #315974; font-size: .85em; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background-color .15s, border-color .15s; }
.idea-back-link:hover { background: #e8eff5; border-color: #9bb3c9; color: #064e82; text-decoration: none; }
.idea-back-link:focus-visible { outline: 2px solid #064e82; outline-offset: 3px; }
.idea-back-link span { font-size: 1.15em; line-height: 1; }
.idea-form { border: 1px solid #cfdae7; border-radius: 14px; padding: 26px; margin-top: 24px; box-shadow: 0 3px 9px #17364e08; }
.idea-form label { display: block; margin: 22px 0 8px; color: #314e60; }
.idea-form input:not([type=hidden]), .idea-form textarea { display: block; width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #cfdae7; border-radius: 7px; font: inherit; background: white; color: #314e60; }
.idea-form textarea { resize: vertical; }
.idea-form h3 { border-top: 1px solid #cfdae7; padding-top: 22px; margin-top: 24px; }
.idea-form small { font-size: .75em; font-weight: normal; padding-left: 10px; }
.idea-form .idea-hint { font-size: .8em; color: #526c82; margin-top: 8px; }
.idea-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 24px; }
.idea-form-actions button[disabled] { opacity: .55; cursor: wait; }
.idea-edit-panel { padding: 26px; color: #314e60; }
.idea-edit-heading { padding-right: 40px; }
.idea-edit-heading h1 { margin: 0 0 8px; padding: 0; border: 0; background: transparent; color: #314e60; font-size: 1.5rem; line-height: 1.3; text-align: left; }
.idea-edit-heading p { margin: 0; padding: 0; color: #526c82; font-size: .85em; line-height: 1.5; }
.idea-form.idea-edit-form { margin-top: 24px; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.idea-edit-form label:first-of-type { margin-top: 0; }
.idea-edit-form textarea { min-height: 180px; line-height: 1.5; }
.idea-edit-actions { border-top: 1px solid #e1e8f0; padding-top: 20px; }
.idea-edit-actions button { margin: 0; cursor: pointer; }
.idea-edit-actions .salmon-button { padding: 12px 24px; }
#modalPage:has(.idea-edit-panel) { position: fixed; inset: 0; z-index: 2000; width: 100% !important; height: 100% !important; overflow-y: auto; }
#modalPage:has(.idea-edit-panel) .modalBackground { position: fixed; background: #102232b8; opacity: 1; }
#modalPage:has(.idea-edit-panel) .modalContainer { position: relative; left: auto !important; top: auto !important; width: calc(100% - 32px) !important; max-width: 740px; margin: 24px auto !important; }
#modalPage:has(.idea-edit-panel) .modal { position: relative; border: 1px solid #cfdae7; border-radius: 16px; background: white; box-shadow: 0 12px 50px #10223240; overflow: hidden; }
#modalPage:has(.idea-edit-panel) .modalTop { position: absolute; top: 14px; right: 14px; z-index: 1; width: auto; background: transparent; }
#modalPage:has(.idea-edit-panel) .modalTop .paddedDiv { padding: 0; }
#modalPage:has(.idea-edit-panel) #modalXBox { box-sizing: border-box; width: 36px !important; height: 36px; padding: 0 !important; margin: 0; border: 1px solid #cfdae7; border-radius: 50%; background: #f4f7fa; color: #315974; font-size: 14px; cursor: pointer; }
@media (max-width: 580px) { .idea-edit-panel { padding: 20px; } #modalPage:has(.idea-edit-panel) .modalContainer { margin: 16px auto !important; } }
.idea-preview-card { max-width: 440px; margin: 24px 0; }
.idea-preview-destinations { margin: 14px 0 0; padding: 16px 18px; border: 1px solid #cfdae7; border-radius: 12px; background: #f7f9fc; font-size: .85em; line-height: 1.6; }
.idea-preview-destinations dt { color: #314e60; font-weight: 700; }
.idea-preview-destinations dt:not(:first-child) { margin-top: 12px; }
.idea-preview-destinations dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #405d72; }
.idea-preview-destinations a { color: #064e82; }
.idea-review-notice { margin: 20px 0; padding: 20px 22px; border: 1px solid #cfdae7; border-left: 4px solid #5884a8; border-radius: 12px; background: #f4f8fc; }
.idea-review-notice h2 { margin: 0 0 10px; padding: 0; color: #314e60; font-size: 1.1em; line-height: 1.4; }
.idea-review-notice p { margin: 0; padding: 0; color: #405d72; font-size: .9em; line-height: 1.65; white-space: pre-line; }
.idea-review-notice[data-status='approved'] { border-left-color: #4b8065; background: #f3f8f4; }
.idea-report-preview .idea-grid { grid-template-columns: minmax(0, 1fr); }
.idea-staff-review { margin: 24px 0; padding: 20px; border: 1px solid #cfdae7; border-radius: 14px; }
.idea-staff-review pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.idea-staff-review .idea-preview-destinations pre { margin: 0; }
.idea-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; color: #63798b; font-size: .75rem; line-height: 1.5; }
.idea-navigation nav { display: flex; flex-wrap: wrap; gap: 4px 7px; font-size: inherit; line-height: inherit; }
.idea-navigation nav a, .idea-navigation nav span { font-size: inherit; line-height: inherit; }
.idea-navigation a { color: #526c82; text-decoration: none; }
.idea-navigation a:hover { color: #064e82; text-decoration: underline; }
.idea-navigation button { flex-shrink: 0; min-height: 34px; margin: 0; padding: 7px 12px; border: 1px solid #d5dfe8; border-radius: 8px; background: #f7f9fc; color: #4d6578; font-size: inherit; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.idea-navigation button:hover { border-color: #9bb3c9; background: #eaf0f5; }
.idea-navigation button:focus-visible { outline: 2px solid #064e82; outline-offset: 3px; }
.idea-lesson-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 22px; margin: 12px 0 28px; border: 1px solid #cfdae7; border-top: 3px solid var(--idea-age-accent, #cfdae7); border-radius: 14px; background: #f7f9fc; }
.idea-lesson-picker[hidden] { display: none; }
.idea-lesson-picker label { display: block; margin-bottom: 8px; font-size: .8em; }
.idea-lesson-picker select { width: 100%; padding: 12px 8px; border: 1px solid #cfdae7; border-radius: 7px; background: white; font: inherit; }
.idea-lesson-picker select:focus-visible { outline: 2px solid #064e82; outline-offset: 2px; }
@media (max-width: 900px) { .idea-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .idea-choice-grid { grid-template-columns: 1fr; } .idea-lesson-picker { padding: 16px; } }
@media (max-width: 900px) { .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .idea-lesson-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .idea-grid, .idea-lesson-picker { grid-template-columns: 1fr; } .idea-lesson-heading { align-items: flex-start; flex-direction: column; } .idea-form { padding: 18px; } .idea-navigation { align-items: flex-start; } }
