.idea-dashboard { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr); gap: 18px; }
.idea-composer { display: grid; align-content: center; gap: 15px; background: #411928; color: #faf5ee; border-radius: var(--radius); padding: clamp(22px, 3vw, 38px); }
.composer-title { display: flex; align-items: center; gap: 13px; }
.composer-title h2 { font-size: clamp(24px, 2.6vw, 37px); line-height: 1.1; font-weight: 560; text-wrap: balance; }
.composer-icon { background: #66273e; color: #f4c7ad; border-radius: 11px; width: 42px; height: 42px; flex: none; display: grid; place-items: center; }
.idea-composer > p { color: #e8ddce; font-size: 15px; max-width: 48ch; }
.idea-composer > textarea { font: inherit; width: 100%; background: #faf5ef; color: #3d1725; border: 1px solid #e0d1be; border-radius: 11px; padding: 14px 16px; min-height: 95px; resize: vertical; line-height: 1.5; }
.idea-composer textarea::placeholder { color: #805963; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.length-picker { color: #f3e9dd; display: flex; align-items: center; gap: 5px; font-size: 13px; }
.length-picker select { color: inherit; background: #411928; border: 0; padding: 6px 2px; font: inherit; cursor: pointer; }
.length-picker input { color: inherit; background: #4f2032; border: 1px solid #7a3a52; border-radius: 7px; box-sizing: content-box; width: 5ch; flex: none; margin-left: 3px; padding: 5px 8px; font: inherit; font-variant-numeric: tabular-nums; text-align: right; appearance: textfield; -moz-appearance: textfield; }
.length-picker input::-webkit-inner-spin-button, .length-picker input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.example-hero { min-height: 305px; padding: clamp(20px, 2.5vw, 32px); background-position: 63% center; }
.example-hero h2 { max-width: 95%; font-size: clamp(29px, 3vw, 44px); }
.course-list { margin-top: 32px; }
.project-list { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 13px; }
.project-link { display: flex; align-items: center; gap: 13px; text-align: left; padding: 15px 17px; width: 100%; background: var(--paper); }
.project-link + .project-link { border-top: 1px solid var(--line); }
.project-link:hover { background: var(--soft); }
.project-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.project-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-copy small, .script-row small, .note-meta { color: var(--muted); font-size: 13px; }
.course-main { min-width: 0; display: grid; gap: 14px; }
.work-panel { display: grid; gap: 22px; }
.course-fields, .refine-box, .script-row, .plan-card { display: grid; gap: 16px; min-width: 0; }
.course-fields { margin: 0; padding: 0; border: 0; }
.course-fields > .button, .refine-box > .button, .script-row .button { justify-self: start; }
.stage-tag { border-radius: 20px; background: var(--soft); padding: 4px 10px; font-size: 12px; color: #613e47; }
.refine-box, .plan-card { border-radius: 12px; border: 1px solid var(--line); padding: clamp(14px, 2vw, 22px); }
.refine-box { background: #f7f3ee; }
.refine-box h3, .note-meta { display: flex; align-items: center; gap: 8px; }
.interview summary { color: #633c46; cursor: pointer; font-size: 14px; font-weight: 600; }
.interview[open] .field { margin-top: 15px; }
.previous-brief { display: grid; gap: 8px; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.previous-brief small { color: var(--muted); }
.previous-brief .button { justify-self: start; }
.spoken-text { white-space: pre-line; }
.interview.refine-box[open] > .button { margin-top: 10px; }
.idea-note { display: grid; gap: 13px; }
.idea-note h2 { font-size: 21px; }
.idea-note blockquote { margin: 0; border-left: 3px solid #ceb8aa; padding: 0 0 0 14px; color: #6b2941; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.note-meta:first-of-type { border-top: 1px solid var(--line); padding-top: 12px; }
.script-row { gap: 8px; border-top: 1px solid var(--line); padding-top: 18px; }
.script-row .button { margin-top: 5px; }
.script-row p { color: var(--muted); }
.plan-actions { gap: 3px; }
.writing-status, .writer-error { padding: 16px 20px; border-radius: 12px; display: flex; align-items: center; gap: 14px; }
.writing-status { background: #f3eadf; color: #61253b; }
.writing-status small { display: block; margin-top: 4px; color: #694951; }
.writer-error { background: #fbf4ef; flex-wrap: wrap; }
.writer-error .notice { flex: 1; margin: 0; }
@media (max-width: 720px) {
  .idea-dashboard { grid-template-columns: minmax(0, 1fr); }
  .example-hero { min-height: 218px; }
  .example-hero h2 { max-width: 80%; }
  .course-layout { grid-template-columns: minmax(0, 1fr); }
  .project-link { gap: 8px; padding: 12px; }
  .project-link > .step-icon { display: none; }
  .composer-title { gap: 10px; }
  .composer-icon { height: 34px; width: 34px; }
  .plan-actions .icon { min-width: 32px; }
}
.quality-box{border-top:1px solid var(--line);margin-top:18px;padding-top:16px;display:grid;gap:12px}.quality-box h3{font-size:16px}
.composer-options { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 4px 0 14px; }
.length-picker span:not(.sr-only) { opacity: .85; }
.length-total { color: #f3e9dd; font-size: 13px; opacity: .75; }
.visuals { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.visuals legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.visual-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.visual-mode { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 10px; cursor: pointer; position: relative; }
.visual-mode input { position: absolute; opacity: 0; pointer-events: none; }
.visual-mode b { font-size: 14px; line-height: 1.3; }
.visual-mode small { font-size: 12.5px; line-height: 1.4; opacity: .78; }
.visual-mode.on { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.visual-mode.locked { opacity: .5; cursor: not-allowed; }
.visual-mode:focus-within { outline: 2px solid currentColor; outline-offset: 2px; }
.visual-budget { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; }
.visual-budget input { width: 70px; padding: 5px 8px; font: inherit; border-radius: 6px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; }
.visual-budget small { opacity: .78; }
.idea-composer .visuals { color: #f3e9dd; }
.lesson-visuals { margin-top: 16px; }
@media (max-width: 760px) { .visual-modes { grid-template-columns: 1fr; } }
.studio-tools { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.token-meter { color: var(--ink); font-size: 13px; }
.token-meter summary { display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; padding: 7px 9px; border-radius: 8px; }
.token-meter summary::-webkit-details-marker { display: none; }
.token-meter summary:hover, .token-meter[open] summary { background: var(--soft); }
.token-meter summary b, .token-detail dd { font-variant-numeric: tabular-nums; }
.global-usage { position: relative; }
.global-usage .token-detail { position: absolute; z-index: 6; right: 0; top: calc(100% + 7px); width: min(290px, 83vw); box-shadow: 0 10px 32px #41192822; }
.course-usage { border-top: 1px solid var(--line); padding-top: 10px; }
.course-usage summary { padding-left: 0; }
.token-detail { background: var(--paper); padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.token-detail dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 10px; }
.token-detail dt, .token-detail p, .token-detail small { color: var(--muted); }
.token-detail dd { margin: 1px 0 0; font-size: 19px; font-weight: 650; }
.token-detail ul { list-style: none; margin: 8px 0; padding: 0; }
.token-detail li { display: flex; justify-content: space-between; padding: 3px 0; }
.token-detail small { display: block; margin-top: 8px; line-height: 1.4; }
@media (max-width: 960px) { .studio-tools .local { display: none; } }
.account-exit{display:flex;align-items:center;gap:6px;min-height:40px;padding:5px 9px;border-radius:8px;font-size:13px;font-weight:570;color:var(--deep)}
.account-exit:hover{background:var(--soft)}
@media(max-width:700px){.account-exit span{display:none}}
.token-money { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 960px) { .global-usage .token-money { display: none; } }
.claude-route { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; display: grid; gap: 6px; }
.claude-route label { display: grid; gap: 5px; font-weight: 600; color: var(--ink); }
.claude-route select { min-height: 36px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 5px 8px; font-weight: 400; }
.storyboard { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 20px; margin: 0 0 18px; display: grid; gap: 12px; }
.storyboard h3 { display: flex; align-items: center; gap: 8px; }
.board-scene h4 { margin: 14px 0 8px; font-size: 15px; }
.board-moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board-moment { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.board-moment.bare { background: transparent; }
.board-shot { width: 100%; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: #2a0e1b; display: grid; place-items: center; color: #e6d8c8; font-size: 12px; font-weight: 600; }
.board-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board-text small { color: var(--muted); font-variant-numeric: tabular-nums; }
.board-text p { margin: 2px 0; font-size: 14px; }
.board-element { display: inline-block; font-size: 12px; font-weight: 600; color: #5a1830; background: #f7efe3; border-radius: 6px; padding: 2px 8px; }
.board-actions { display: grid; gap: 6px; justify-items: start; }
@media (max-width: 700px) { .board-moment { grid-template-columns: 96px minmax(0, 1fr); } .board-actions { grid-column: 1 / -1; display: flex; gap: 14px; } }
.board-options { grid-column: 1 / -1; display: grid; gap: 6px; border-top: 1px dashed var(--line); padding-top: 8px; }
.board-options > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.board-options button { position: relative; padding: 0; border-radius: 7px; overflow: hidden; aspect-ratio: 16 / 9; background: #2a0e1b; outline: 2px solid transparent; }
.board-options button:hover:not(:disabled) { outline-color: #ec6a32; }
.board-options img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board-options span { position: absolute; right: 6px; bottom: 6px; background: #2a0e1bcc; color: #fff; font-size: 11px; font-weight: 600; border-radius: 5px; padding: 1px 6px; }
.board-shot { position: relative; }
.board-shot video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.board-play { position: absolute; left: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #2a0e1bd9; color: #fff; }
.board-play:hover:not(:disabled) { background: #ec6a32; }
/* Езикова версия на курса */
.lang-picker { color: #f3e9dd; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lang-picker span { opacity: .85; margin-right: 2px; }
.lang-picker button { border: 1px solid #6e3449; border-radius: 20px; padding: 4px 11px; font-size: 13px; color: #f3e9dd; background: transparent; }
.lang-picker button.active { background: #f4c7ad; border-color: #f4c7ad; color: #3d1725; font-weight: 600; }
.lang-picker button:not(.active):hover { background: #53223a; }
.title-tools { gap: 14px; flex-wrap: wrap; align-items: center; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); padding: 3px; gap: 2px; }
.lang-switch > * { min-width: 46px; text-align: center; padding: 6px 12px; border-radius: 18px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lang-switch .active { background: var(--deep); color: #faf5ee; }
.lang-switch button { color: var(--deep); }
.lang-switch button:hover { background: var(--soft); }
.translate-btn { padding: 8px 14px; min-height: 38px; font-size: 14px; }
.lang-tag { display: inline-block; vertical-align: 2px; margin-right: 8px; padding: 1px 7px; border-radius: 6px; background: var(--deep); color: #faf5ee; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.cost-estimate { margin: 10px 0 14px; font-size: 13px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 9px; padding: 9px 12px; }
.cost-estimate summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; cursor: pointer; }
.cost-estimate summary span { font-variant-numeric: tabular-nums; }
.cost-estimate ul { list-style: none; padding: 0; margin: 10px 0 8px; display: grid; gap: 5px; }
.cost-estimate li { display: flex; justify-content: space-between; gap: 12px; }
.cost-estimate li b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.cost-estimate small { display: block; opacity: .78; line-height: 1.45; }
.new-course{position:relative;margin-bottom:28px}
.new-course-close{position:absolute;right:14px;top:14px;z-index:2;color:#faf5ee}.new-course-close:hover{background:#ffffff1f}
.new-course-sample{margin-top:10px}
.new-course-sample .text-btn{display:inline-flex}
.all-lessons{margin:28px 0 8px}
.all-lessons .text-btn{display:inline-flex}
.site-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#6d4b54;text-decoration:none;padding:8px 10px;border-radius:9px;white-space:nowrap}
.site-link:hover{background:#f3ede5}
.sales-title{margin-bottom:12px}
@media(max-width:700px){.site-link span{display:none}}
