@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root { font-family: 'DM Sans', sans-serif; color: #e1e5ee; background: #0e0f11; font-synthesis: none; text-rendering: optimizeLegibility; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #0e0f11; }
button, input { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: flex; overflow: hidden; background: #0e0f11; }
.app-sidebar { width: 264px; flex: 0 0 264px; padding: 24px 16px 16px; display: flex; flex-direction: column; overflow-y: auto; border-right: 1px solid #222429; background: #131417; z-index: 20; }
.brand-row { display: flex; align-items: center; gap: 10px; padding: 0 8px 25px; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #5597d9; color: #5ca1e9; border-radius: 9px; box-shadow: 0 0 20px rgba(216, 148, 74, .12); }
.brand-name { color: #e5ebf4; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.brand-caption { color: #817d75; font: 10px 'DM Mono', monospace; margin-top: 3px; }
.icon-button { background: transparent; border: 0; color: #817d75; display: grid; place-items: center; padding: 7px; border-radius: 7px; transition: .2s ease; }
.icon-button:hover { color: #e5ebf4; background: #1f2125; }
.sidebar-close { display: none; margin-left: auto; }
.new-chat-button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 12px 12px; border: 1px solid #488acb; color: #8fc1f2; background: #151b21; border-radius: 10px; font-size: 12px; text-align: left; box-shadow: inset 0 0 20px rgba(207, 132, 55, .05); transition: .2s ease; }
.new-chat-button:hover { border-color: #6bb0f3; background: #17222a; }
.shortcut { margin-left: auto; color: #606871; font: 10px 'DM Mono', monospace; }
.sidebar-section { border-bottom: 1px solid #222429; padding: 25px 0 18px; }
.section-label, .section-heading { padding: 0 11px 9px; color: #7a766e; text-transform: uppercase; letter-spacing: .12em; font: 9px 'DM Mono', monospace; }
.sidebar-link { width: 100%; display: flex; align-items: center; gap: 10px; color: #9aa0a9; background: transparent; border: 0; padding: 9px 11px; border-radius: 8px; text-align: left; font-size: 12px; transition: .2s ease; }
.sidebar-link:hover { color: #e4e8f0; background: #1b1d21; }
.sidebar-link svg { color: #8b867d; }
.link-count { margin-left: auto; color: #5a748d; font: 10px 'DM Mono', monospace; }
.conversation-section { padding: 21px 0; flex: 1; min-height: 200px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; }
.section-heading svg { color: #595d65; }
.conversation-list { display: flex; flex-direction: column; gap: 2px; }
.conversation-item { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; color: #97928a; padding: 10px 11px; border-radius: 8px; text-align: left; transition: .2s ease; }
.conversation-item:hover, .conversation-item.active { background: #1b1d21; color: #e1e5ee; }
.conversation-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #625e57; }
.active .conversation-dot { background: #5c9ddd; box-shadow: 0 0 8px #5c9ddd; }
.conversation-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.conversation-copy strong { font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-copy small { color: #61666f; font: 9px 'DM Mono', monospace; }
.active-line { width: 2px; height: 18px; position: absolute; right: 5px; background: #5092d6; border-radius: 2px; }
.sidebar-footer { margin-top: auto; }
.profile-card { display: flex; align-items: center; gap: 9px; margin-top: 17px; padding: 11px 9px 0; border-top: 1px solid #222429; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #38546a; color: #adcef3; font-size: 9px; font-weight: 600; }
.profile-copy { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.profile-copy strong { color: #d6dbe4; font-size: 11px; font-weight: 500; }.profile-copy span { color: #636871; font-size: 9px; }.muted-icon { color: #61666e; }
.main-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.topbar { height: 64px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #1f2024; }.menu-button, .mobile-brand { display: none; }
.session-meta { display: flex; align-items: center; gap: 8px; color: #79756d; font: 10px 'DM Mono', monospace; }.live-dot, .secure-dot { width: 5px; height: 5px; border-radius: 50%; background: #78a37b; box-shadow: 0 0 8px rgba(120, 163, 123, .8); }.divider { width: 1px; height: 12px; background: #2f3239; margin: 0 5px; }.session-meta svg { margin-left: -3px; color: #5a5f68; }
.conversation-wrap { width: min(720px, calc(100% - 48px)); margin: 0 auto; padding: 65px 0 30px; display: flex; flex-direction: column; flex: 1; }
.conversation-header { text-align: center; }.eyebrow { display: flex; justify-content: center; align-items: center; gap: 10px; color: #5a82a6; text-transform: uppercase; letter-spacing: .16em; font: 9px 'DM Mono', monospace; }.eyebrow-line { height: 1px; width: 25px; background: #2c4961; }.conversation-header h1 { margin: 17px 0 12px; color: #e5e9f0; font-size: clamp(27px, 3vw, 39px); line-height: 1.08; font-weight: 500; letter-spacing: -.045em; }.conversation-header h1 em { color: #65a5df; font-family: 'Playfair Display', serif; font-weight: 500; }.conversation-header p { max-width: 470px; margin: 0 auto; color: #88837a; font-size: 12px; line-height: 1.7; }
.message-stream { display: flex; flex-direction: column; gap: 25px; margin-top: 49px; padding-bottom: 15px; }.message-row { display: flex; position: relative; gap: 12px; }.message-row.user { justify-content: flex-end; }.message-content { max-width: 590px; }.message-row.user .message-content { max-width: 74%; }.coach-avatar { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border: 1px solid #3b6282; border-radius: 9px; color: #67a5e2; background: #131e26; margin-top: 4px; }.message-meta { color: #b7bec7; font: 10px 'DM Mono', monospace; margin-bottom: 7px; }.message-meta span { color: #706c64; margin-left: 8px; }.message-content p { margin: 0; color: #c8cdd5; font-size: 13px; line-height: 1.75; }.user .message-content { padding: 13px 16px; border: 1px solid #2c3037; border-radius: 14px 4px 14px 14px; background: #17191c; }.user .message-meta { text-align: right; }.user .message-content p { color: #d9e0e9; }.listen-button { align-self: flex-end; margin-bottom: 3px; border: 0; background: transparent; color: #686e77; padding: 4px; }.listen-button:hover { color: #64a5e4; }
.correction-note { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; background: #171b21; border-left: 2px solid #4080b8; border-radius: 0 8px 8px 0; }.note-icon { color: #579edf; margin-top: 1px; }.correction-note div:last-child { display: flex; flex-direction: column; gap: 4px; }.correction-note strong { color: #5c9ed9; font: 10px 'DM Mono', monospace; }.correction-note span { color: #858f9a; font-size: 11px; line-height: 1.5; }
.starter-grid { margin-top: auto; padding-top: 38px; }.starter-heading { display: flex; align-items: center; gap: 13px; color: #646972; text-transform: uppercase; letter-spacing: .13em; font: 9px 'DM Mono', monospace; }.sparkle-rule { height: 1px; flex: 1; background: linear-gradient(90deg, #26394b, transparent); }.starter-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }.starter-options button { display: flex; align-items: center; gap: 10px; padding: 12px 13px; color: #9ba1aa; border: 1px solid #272a2f; border-radius: 9px; background: #151618; text-align: left; font-size: 11px; transition: .2s ease; }.starter-options button:hover { border-color: #2f5271; color: #7eb2e7; background: #141b21; transform: translateY(-1px); }.starter-options svg:first-child { color: #508bbd; }.prompt-arrow { margin-left: auto; color: #545962; transform: rotate(180deg); }
.composer { display: flex; align-items: center; gap: 10px; min-height: 55px; margin-top: 19px; padding: 7px 7px 7px 12px; border: 1px solid #2d3239; border-radius: 13px; background: #131417; box-shadow: 0 12px 35px rgba(0, 0, 0, .18); }.composer:focus-within { border-color: #2d5475; box-shadow: 0 0 0 3px rgba(185, 121, 58, .08); }.composer-icon { display: grid; place-items: center; padding: 5px; border: 0; background: transparent; color: #676e77; }.composer-icon:hover { color: #66a8e2; }.composer-icon.recording { color: #d98261; }.composer input { min-width: 0; flex: 1; color: #d5dde7; border: 0; outline: none; background: transparent; font-size: 12px; }.composer input::placeholder { color: #67635c; }.composer-hint { color: #51555c; font: 8px 'DM Mono', monospace; white-space: nowrap; }.send-button { display: grid; place-items: center; width: 31px; height: 31px; border: 0; border-radius: 9px; color: #131619; background: #5b9fe1; transition: .2s ease; }.send-button:hover { background: #73b0f0; transform: translateY(-1px); }.privacy-line { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; color: #4e5259; font: 8px 'DM Mono', monospace; }.privacy-line span:not(.secure-dot) { color: #363a40; }
.briefcase-mark { display: inline-block; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }.briefcase-mark::before { content: ''; position: absolute; left: 25%; right: 25%; top: -4px; height: 3px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.sidebar-backdrop { display: none; }
@media (max-width: 1050px) { .conversation-wrap { width: min(680px, calc(100% - 38px)); } }
@media (max-width: 820px) { .app-sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 15px 0 40px rgba(0,0,0,.35); }.app-sidebar.is-open { transform: translateX(0); }.sidebar-close { display: grid; }.sidebar-backdrop.is-visible { display: block; position: fixed; inset: 0; z-index: 19; background: rgba(0,0,0,.55); }.menu-button, .mobile-brand { display: flex; }.menu-button { margin-right: auto; }.mobile-brand { align-items: center; gap: 8px; color: #e1e5ee; font-size: 12px; font-weight: 600; }.mobile-brand .brand-mark { width: 25px; height: 25px; }.session-meta { display: none; } }
@media (max-width: 560px) { .topbar { padding: 0 15px; }.conversation-wrap { width: calc(100% - 28px); padding-top: 42px; }.conversation-header h1 { font-size: 31px; }.conversation-header p { font-size: 11px; }.message-stream { margin-top: 35px; gap: 20px; }.message-row.user .message-content { max-width: 85%; }.starter-options { grid-template-columns: 1fr; }.composer-hint { display: none; }.composer { min-height: 52px; }.privacy-line { font-size: 7px; } }

/* ---- ek: LingoLoom CSS'ine yapilan kucuk ilaveler ---- */
svg.sprite { display: none; }
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.live-dot.off { background: #b06a5a; box-shadow: 0 0 8px rgba(176, 106, 90, .8); }
.session-meta select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: #a5c1e3; font: inherit; padding: 2px 0; outline: none; cursor: pointer; max-width: 200px; }
.session-meta select option { background: #131417; color: #e1e5ee; }
.thinking-dots { display: inline-flex; gap: 4px; align-items: center; height: 12px; }
.thinking-dots i { width: 4px; height: 4px; border-radius: 50%; background: #4080b8; animation: dk-tw 1.1s infinite; }
.thinking-dots i:nth-child(2) { animation-delay: .15s; }
.thinking-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dk-tw { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.message-content .err { color: #d98261; font-size: 12px; }
/* ---- ek: tiklanabilir kelime + sozluk karti ---- */
.word { cursor: pointer; border-bottom: 1px dashed transparent; border-radius: 3px; transition: .15s ease; }
.word:hover { color: #82b8ef; border-bottom-color: #2b506d; background: rgba(216, 148, 74, .08); }
.word.active { color: #82b8ef; background: rgba(216, 148, 74, .16); border-bottom-color: #4278a9; }
.dict { position: absolute; z-index: 80; width: min(340px, 92vw); padding: 15px 16px 14px; background: #16181c; border: 1px solid #28394a; border-radius: 12px; box-shadow: 0 20px 55px rgba(0, 0, 0, .55); }
.dict-close { position: absolute; top: 7px; right: 8px; border: 0; background: transparent; color: #6c737c; padding: 4px; border-radius: 6px; display: grid; place-items: center; }
.dict-close:hover { color: #e5e9f0; background: #202326; }
.dict-head { display: flex; align-items: baseline; gap: 9px; padding-right: 24px; }
.dict-word { color: #e1e8f2; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.dict-phon { color: #7a818b; font: 10px 'DM Mono', monospace; }
.dict-tr { margin-top: 9px; color: #82b8ef; font-size: 13.5px; line-height: 1.5; }
.dict-pos { margin-top: 11px; color: #7a818b; font: 9px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .12em; }
.dict-en { margin-top: 5px; color: #acb3bd; font-size: 12px; line-height: 1.6; }
.dict-ex { margin-top: 8px; color: #7d858f; font-size: 11px; font-style: italic; line-height: 1.5; }
.dict-load { margin-top: 10px; color: #7a818b; font-size: 12px; }
/* ---- ek: model secici (ozel acilir menu) ---- */
.model-picker { position: relative; }
.model-trigger { display: inline-flex; align-items: center; gap: 6px; max-width: 230px; padding: 3px 5px; border: 0; border-radius: 6px; background: transparent; color: #a5c1e3; font: inherit; }
.model-trigger:hover { background: #1b1d21; color: #aecdf2; }
.model-trigger svg { color: #5a5f68; flex: none; }
.model-trigger #modelLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-menu { position: absolute; top: calc(100% + 9px); right: 0; z-index: 70; width: 266px; max-height: 62vh; overflow: auto; padding: 6px; background: #16181c; border: 1px solid #2d323a; border-radius: 11px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); text-align: left; }
.model-menu-head { padding: 7px 10px 8px; color: #7a766e; text-transform: uppercase; letter-spacing: .12em; font: 9px 'DM Mono', monospace; }
.model-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: #a6adb7; text-align: left; }
.model-item:hover { background: #191e24; color: #e1e8f2; }
.model-item.active { background: #17222a; color: #82b8ef; }
.model-item .mid { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.model-item .mid span { font-size: 12px; }
.model-item .mid small { color: #61666f; font: 9px 'DM Mono', monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-item .tick { color: #82b8ef; flex: none; }

/* ---- ek: modal / paneller ---- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 22px; background: rgba(8, 7, 6, .62); }
.modal.is-open { display: grid; }
.sheet { width: min(560px, 100%); max-height: 82vh; overflow: auto; padding: 22px 22px 18px; background: #16171a; border: 1px solid #2d323a; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head h3 { margin: 0; color: #e5e9f0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.sheet-head .sub { color: #6f767f; font-size: 11px; margin-top: 5px; line-height: 1.5; }
.sheet-body { margin-top: 16px; }
.journal-item { padding: 11px 13px; margin-bottom: 8px; border: 1px solid #25292f; border-left: 2px solid #4080b8; border-radius: 0 8px 8px 0; background: #171a1e; }
.journal-item .when { color: #61666f; font: 9px 'DM Mono', monospace; }
.journal-item p { margin: 6px 0 0; color: #c9d0d9; font-size: 12px; line-height: 1.55; }
.empty-note { padding: 22px 6px; color: #6f767f; font-size: 12px; text-align: center; }
.wg-item { border-bottom: 1px solid #21242a; }
.wg-item:last-child { border-bottom: 0; }
.wg-word { width: 100%; padding: 11px 2px; border: 0; background: transparent; color: #9bbfe7; font-size: 13px; text-align: left; }
.wg-word:hover { color: #abccf5; }
.wg-def { padding: 0 2px 12px; }
.wg-tr { color: #82b8ef; font-size: 13px; }
.wg-pos { margin-top: 9px; color: #7a818b; font: 9px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .12em; }
.wg-en { margin-top: 5px; color: #a6adb7; font-size: 11.5px; line-height: 1.55; }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid #21242a; }
.pref-row:last-child { border-bottom: 0; }
.pref-row strong { display: block; color: #d6dbe4; font-size: 12px; font-weight: 500; }
.pref-row span { display: block; margin-top: 4px; color: #6c717a; font-size: 10px; line-height: 1.5; }
.pref-btn { flex: none; padding: 7px 13px; border: 1px solid #2e3137; border-radius: 7px; background: #17191c; color: #a0a7b0; font-size: 11px; }
.pref-btn:hover { color: #e5e9f0; border-color: #2b506d; background: #141c23; }
.pref-btn.danger:hover { color: #d98261; border-color: #5d3a2c; }
.pref-tag { flex: none; padding: 5px 10px; border: 1px solid #2a3c49; border-radius: 5px; color: #6493bd; font: 9px 'DM Mono', monospace; }

/* ---- ek: mobilde model secici gorunur kalsin ---- */
@media (max-width: 820px) {
  .session-meta { display: flex; }
  .session-meta .live-dot, .session-meta #statusText, .session-meta .divider { display: none; }
  .mobile-brand { display: none; }
  .menu-button { margin-right: auto; }
  .model-menu { right: -4px; width: 250px; }
}

/* ---- ek: profil karti tiklanabilir ---- */
button.profile-card { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; font: inherit; }
button.profile-card:hover .profile-copy strong { color: #e5ebf4; }
button.profile-card:hover .muted-icon { color: #a8b0b9; }

/* ---- ek: mesaj aksiyonlari + ceviri blogu + telaffuz ---- */
.msg-actions { display: flex; gap: 6px; margin-top: 9px; }
.msg-act { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #272a2f; border-radius: 7px; background: transparent; color: #8a857c; font-size: 10px; }
.msg-act:hover { color: #7eb2e7; border-color: #2b506d; background: #141b21; }
.msg-act.on { color: #82b8ef; border-color: #2b506d; background: #141e24; }
.translate-box { margin-top: 9px; padding: 11px 13px; border: 1px solid #2f3329; border-left: 2px solid #7f8a6a; border-radius: 0 8px 8px 0; background: #181b17; }
.tr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tr-label { color: #8f9a7c; font: 9px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .12em; }
.translate-box p { margin: 7px 0 0; color: #cfd6c4; font-size: 12.5px; line-height: 1.65; overflow-wrap: anywhere; }
.tr-load { margin-top: 7px; color: #6f767f; font-size: 11.5px; }
.speak-btn { display: grid; place-items: center; padding: 3px; border: 0; border-radius: 6px; background: transparent; color: #8a857c; }
.speak-btn:hover { color: #7eb2e7; background: #191e24; }
.dict-head .speak-btn { align-self: center; margin-left: 2px; }

/* ---- ek: not cevirisi (Translate ile birlikte) ---- */
.note-tr { display: flex; gap: 9px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed #262f3a; }
.note-tr .note-tr-label { flex: none; color: #8f9a7c; font: 9px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .12em; }
.note-tr span:last-child { color: #cfd6c4; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }


/* ---- ek: Word Garden (guncellenmis taslaktan) ---- */
.garden-view { flex: 1; overflow: auto; width: min(980px, calc(100% - 72px)); margin: 0 auto; padding: 52px 0 40px; }
.garden-header { position: relative; max-width: 640px; }
.garden-back { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 32px; padding: 0; border: 0; color: #7b848f; background: transparent; font: 10px 'DM Mono', monospace; transition: color .2s ease; }
.garden-back:hover { color: #6dace5; }
.garden-title-row { display: flex; align-items: center; gap: 15px; }
.garden-sun { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid #4d759d; border-radius: 14px; color: #69a6e5; background: #172028; box-shadow: 0 0 30px rgba(221, 153, 76, .13); }
.garden-kicker { color: #5f7c9c; text-transform: uppercase; letter-spacing: .16em; font: 9px 'DM Mono', monospace; }
.garden-header h1 { margin: 8px 0 0; color: #e4e8f0; font-size: 37px; line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.garden-header h1 em { color: #6899c8; font-family: 'Playfair Display', serif; font-weight: 500; }
.garden-header > p { max-width: 515px; margin: 21px 0 0 56px; color: #798189; font-size: 12px; line-height: 1.75; }
.garden-summary { display: flex; align-items: center; gap: 25px; margin-top: 42px; padding: 15px 0; border-top: 1px solid #25272c; border-bottom: 1px solid #25272c; }
.garden-summary > div:not(.garden-water) { display: flex; align-items: center; gap: 8px; color: #88909a; font: 10px 'DM Mono', monospace; }
.garden-summary svg { color: #9baf81; }
.garden-summary strong { color: #aec0d9; font-weight: 500; }
.garden-water { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #626871; font-size: 10px; }
.water-drop { width: 7px; height: 9px; border-radius: 70% 30% 70% 30%; transform: rotate(45deg); background: #7895a0; }
.garden-toolbar { display: flex; align-items: center; justify-content: space-between; margin-top: 31px; }
.garden-filters { display: flex; gap: 6px; }
.garden-filters button { padding: 8px 11px; border: 1px solid transparent; border-radius: 7px; color: #707881; background: transparent; font-size: 10px; transition: .2s ease; }
.garden-filters button:hover { color: #78a6d6; }
.garden-filters button.active { border-color: #2e4e69; color: #82b6ed; background: #151d24; }
.garden-count { color: #5a5f68; font: 9px 'DM Mono', monospace; }
.garden-meadow { position: relative; min-height: 330px; overflow: hidden; margin-top: 13px; padding: 34px 30px 29px; border: 1px solid #282a30; border-radius: 16px; background: linear-gradient(155deg, #191b18 0%, #181816 54%, #16191d 100%); }
.garden-meadow::before, .garden-meadow::after { content: ''; position: absolute; width: 150px; height: 150px; border: 1px solid rgba(102, 130, 94, .14); border-radius: 50%; }
.garden-meadow::before { top: -90px; right: 80px; }
.garden-meadow::after { bottom: -110px; left: -30px; }
.meadow-glow { position: absolute; top: -100px; left: 35%; width: 260px; height: 260px; border-radius: 50%; background: rgba(211, 158, 82, .07); filter: blur(25px); }
.garden-vines span { position: absolute; width: 160px; height: 80px; border-top: 1px solid rgba(120, 155, 105, .28); border-radius: 50%; transform: rotate(-13deg); }
.garden-vines span:nth-child(1) { bottom: 30px; left: -55px; }
.garden-vines span:nth-child(2) { top: 62px; right: -48px; transform: rotate(18deg); }
.garden-vines span:nth-child(3) { bottom: -5px; right: 180px; transform: rotate(5deg); }
.word-plant-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.word-plant { position: relative; min-height: 122px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; overflow: hidden; padding: 16px; border: 1px solid #36382f; border-radius: 11px; color: #dfe4ee; background: rgba(24, 25, 21, .78); text-align: left; transition: border-color .25s ease, transform .25s ease, background .25s ease; }
.word-plant:hover, .word-plant.selected { border-color: #718260; background: rgba(32, 36, 28, .92); transform: translateY(-3px); }
.plant-stem { position: absolute; bottom: 47px; left: 32px; width: 1px; height: 45px; background: #748c63; transform: rotate(12deg); }
.plant-leaf { position: absolute; bottom: 61px; left: 20px; width: 16px; height: 8px; border: 1px solid #72865f; border-radius: 100% 0 100% 0; transform: rotate(-20deg); }
.plant-leaf.right { bottom: 75px; left: 34px; transform: rotate(32deg) scale(.8); }
.plant-bloom { position: absolute; top: 13px; right: 14px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: #1b212a; background: #5591d3; font: 15px 'Playfair Display', serif; }
.word-plant.sage .plant-bloom { color: #253125; background: #96ac7e; }
.word-plant.terracotta .plant-bloom { color: #351e18; background: #bd765b; }
.word-plant.blue .plant-bloom { color: #1e2b2d; background: #7d9da1; }
.word-plant.lilac .plant-bloom { color: #32282f; background: #b19ba3; }
.word-plant.moss .plant-bloom { color: #293124; background: #a2a978; }
.plant-copy { display: flex; flex-direction: column; gap: 5px; margin-left: 30px; }
.plant-copy strong { color: #cbd7e5; font: 17px 'Playfair Display', serif; font-weight: 500; }
.plant-copy small { max-width: 150px; color: #8a8a7d; font-size: 9px; line-height: 1.3; }
.plant-stage { margin: 13px 0 0 30px; color: #718067; text-transform: uppercase; letter-spacing: .12em; font: 8px 'DM Mono', monospace; }
.garden-detail { display: flex; align-items: center; gap: 13px; margin-top: 16px; padding: 13px 16px; border: 1px solid #2e384e; border-radius: 11px; background: #161a21; }
.detail-seed { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #1b212a; background: #5591d3; }
.detail-seed.sage { background: #96ac7e; }
.detail-seed.terracotta { background: #bd765b; }
.detail-seed.blue { background: #7d9da1; }
.detail-seed.lilac { background: #b19ba3; }
.detail-seed.moss { background: #a2a978; }
.detail-copy { flex: 1; min-width: 0; }
.detail-copy span { color: #5e80a1; text-transform: uppercase; letter-spacing: .12em; font: 8px 'DM Mono', monospace; }
.detail-copy h2 { margin: 3px 0; color: #c5d6ea; font: 17px 'Playfair Display', serif; font-weight: 500; }
.detail-copy p { margin: 0; color: #7d8693; font-size: 10px; }
.practice-word { display: flex; align-items: center; gap: 6px; border: 0; border-bottom: 1px solid #4679a8; padding: 4px 0; color: #70aae0; background: transparent; font-size: 10px; }
.practice-word svg { transform: rotate(45deg); }
@media (max-width: 700px) {
  .garden-view { width: calc(100% - 30px); padding-top: 35px; }
  .garden-summary { flex-wrap: wrap; gap: 14px; }
  .garden-water { width: 100%; margin-left: 0; }
  .word-plant-grid { grid-template-columns: 1fr 1fr; }
  .garden-meadow { padding: 22px 16px; }
  .garden-header > p { margin-left: 0; }
  .garden-detail { align-items: flex-start; flex-wrap: wrap; }
  .detail-copy { min-width: calc(100% - 55px); }
  .practice-word { margin-left: 44px; }
}
@media (max-width: 460px) {
  .word-plant-grid { grid-template-columns: 1fr; }
  .garden-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .garden-header h1 { font-size: 32px; }
}


/* ---- ek: sol menu akordeon (Egitimler + Reading) ---- */
.group-toggle { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 0; border-radius: 8px; background: transparent; color: #9aa0a9; text-align: left; font-size: 12px; transition: .2s ease; }
.group-toggle:hover { color: #e4e8f0; background: #1b1d21; }
.group-toggle svg { color: #8b867d; }
.group-toggle.open { color: #e4e8f0; }
.group-caret { margin-left: auto; color: #61666f; transition: transform .2s ease; }
.group-toggle.open .group-caret, .level-toggle.open .group-caret { transform: rotate(180deg); }
.group-body { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 2px 8px; max-height: 300px; overflow: auto; }
.group-empty { padding: 6px 11px; color: #61666f; font: 9px 'DM Mono', monospace; }
.pool-head { display: flex; justify-content: space-between; padding: 1px 11px 7px; color: #61666f; font: 9px 'DM Mono', monospace; }
.pool-group { display: flex; flex-direction: column; }
.pool-cat { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px 4px; color: #7f8a95; text-transform: uppercase; letter-spacing: .1em; font: 9px 'DM Mono', monospace; }
.pool-cat span { color: #565b63; }
#lessonsBody { max-height: 430px; }
.lesson-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; padding: 8px 11px; border: 0; border-radius: 8px; background: transparent; color: #9aa0a9; text-align: left; transition: .18s ease; }
.lesson-item:hover { background: #1b1d21; color: #e4e8f0; }
.lesson-title { min-width: 0; color: #aeb5c0; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-item:hover .lesson-title { color: #e4e8f0; }
.lesson-meta { display: flex; align-items: center; gap: 5px; flex: none; }
.lesson-meta .imp { padding: 1px 6px; border: 1px solid #2a3c49; border-radius: 5px; color: #6493bd; font: 9px 'DM Mono', monospace; }
.lesson-meta .mins { color: #61666f; font: 9px 'DM Mono', monospace; }
.lesson-item.pending { opacity: .6; }
.lesson-item.pending .lesson-title::after { content: 'AI'; margin-left: 6px; padding: 0 4px; border: 1px dashed #3a4250; border-radius: 4px; color: #5f6b7a; font: 8px 'DM Mono', monospace; }
.lesson-item.busy { opacity: 1; }
.lesson-item.busy .lesson-title::after { content: 'yazılıyor…'; border-style: solid; border-color: #2b5a8a; color: #82b8ef; }
.level-group { display: flex; flex-direction: column; }
.level-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 11px; border: 0; border-radius: 8px; background: transparent; color: #9aa0a9; text-align: left; font-size: 11px; transition: .18s ease; }
.level-toggle:hover { background: #1b1d21; color: #e4e8f0; }
.level-tag { color: #70aae0; font: 10px 'DM Mono', monospace; letter-spacing: .06em; }
.level-count { color: #61666f; font: 9px 'DM Mono', monospace; }
.level-body { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 4px 12px; }
.reading-item { width: 100%; padding: 7px 11px; border: 0; border-radius: 7px; background: transparent; color: #88909a; text-align: left; font-size: 11px; line-height: 1.4; }
.reading-item:hover { background: #1b1d21; color: #e4e8f0; }

.dict-senses { margin: 5px 0 0; padding-left: 16px; }
.dict-senses li { color: #acb3bd; font-size: 11.5px; line-height: 1.55; margin-bottom: 3px; }
.dict-learn { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; padding: 6px 11px; border: 1px solid #2b506d; border-radius: 7px; background: #141c23; color: #82b8ef; font-size: 10px; }
.dict-learn:hover { background: #18232b; color: #95c2f7; }
.dict-learn svg { transform: rotate(180deg); }

.study-view { flex: 1; overflow: auto; overflow-x: hidden; width: min(1080px, calc(100% - 64px)); margin: 0 auto; padding: 46px 0 40px; }
.study-head { max-width: 760px; }
.study-title-row { display: flex; align-items: center; gap: 15px; }
.study-mark { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid #4d759d; border-radius: 14px; color: #69a6e5; background: #172028; flex: none; }
.study-title-row h1 { margin: 6px 0 0; color: #e4e8f0; font: 500 34px/1 'Playfair Display', serif; letter-spacing: -.03em; }
.study-tools { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.study-head > p { max-width: 560px; margin: 20px 0 0 56px; color: #798189; font-size: 12px; line-height: 1.75; }
.study-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 34px; align-items: start; }
.study-main { min-width: 0; }
.study-body > * { min-width: 0; }
.study-article { padding: 26px 30px; border: 1px solid #282a30; border-radius: 16px; background: linear-gradient(160deg, #191b18 0%, #181816 60%, #17191b 100%); overflow-wrap: anywhere; }
.study-article h1 { margin: 0 0 4px; color: #e4e8f0; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.study-article h2 { margin: 22px 0 8px; color: #c2d2e7; font-size: 14px; font-weight: 600; }
.study-article h3 { margin: 18px 0 6px; color: #aec0d9; font-size: 12.5px; font-weight: 600; }
.study-article p { margin: 9px 0; color: #acb3bd; font-size: 13px; line-height: 1.8; }
.study-article ul { margin: 8px 0; padding-left: 18px; }
.study-article li { color: #acb3bd; font-size: 13px; line-height: 1.75; margin-bottom: 4px; }
.study-article em { color: #70aae0; font-style: italic; }
.study-article strong { color: #dfe4ee; font-weight: 600; }
.study-article ol { margin: 8px 0; padding-left: 20px; }
.study-article table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 12.5px; }
.study-article th, .study-article td { padding: 8px 10px; border: 1px solid #2b2d34; text-align: left; vertical-align: top; line-height: 1.5; color: #acb3bd; }
.study-article th { color: #c2d2e7; background: #1a1b1f; font-weight: 600; }
.study-article td strong, .study-article th strong { color: #dfe4ee; }
.study-src { margin-top: 18px; padding-top: 12px; border-top: 1px solid #21242a; color: #52575f; font: 9px 'DM Mono', monospace; }
.study-load { color: #6f767f; font-size: 12.5px; }
.study-load.err { color: #d98261; }
.study-translation { margin-top: 16px; }

.study-chat { position: sticky; top: 20px; align-self: start; display: flex; flex-direction: column; max-height: calc(100vh - 120px); border: 1px solid #282a30; border-radius: 14px; background: #151618; overflow: hidden; }
.study-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #21242a; color: #5e80a1; text-transform: uppercase; letter-spacing: .12em; font: 9px 'DM Mono', monospace; }
.study-chat-log { flex: 1; min-height: 240px; overflow: auto; overflow-wrap: anywhere; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.study-chat-form { display: flex; align-items: center; gap: 6px; padding: 9px; border-top: 1px solid #21242a; }
.study-chat-form input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: #d5dde7; font-size: 11.5px; padding: 6px 4px; }
.study-chat-form input::placeholder { color: #67635c; }
.study-chat-form .send-button { width: 28px; height: 28px; border-radius: 8px; }
.study-hint { color: #6c6760; font-size: 11px; line-height: 1.6; }
.sc-msg { font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.sc-msg.coach { color: #bdc5cf; }
.sc-msg.coach:before { content: 'Lingo Agent'; display: block; color: #5e80a1; font: 8px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 3px; }
.sc-msg.user { color: #d2d9e2; }
.sc-msg.user:before { content: 'You'; display: block; color: #61666f; font: 8px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 3px; }
.sc-msg.err { color: #d98261; }
@media (max-width: 980px) {
  .study-view { width: calc(100% - 32px); padding-top: 32px; }
  .study-body { grid-template-columns: 1fr; }
  .study-body > * { min-width: 0; }
  .study-article { padding: 20px 18px; }
  .study-chat { position: static; max-height: none; }
  .study-chat-log { max-height: 340px; }
  .study-head > p { margin-left: 0; }
}
@media (max-width: 560px) {
  .study-view { width: calc(100% - 24px); }
  .study-title-row { gap: 11px; }
  .study-title-row h1 { font-size: 26px; }
  .study-article { padding: 16px 14px; }
}


/* ---- ek: profil paneli ---- */
.profile-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-big { padding: 14px 15px; border: 1px solid #282c34; border-radius: 11px; background: linear-gradient(130deg, #161c22, #161719); }
.stat-big span { display: block; color: #6e7680; font: 9px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .1em; }
.stat-big strong { display: block; margin: 6px 0 3px; color: #82b8ef; font: 500 26px/1 'Playfair Display', serif; }
.stat-big small { color: #64778b; font: 9px 'DM Mono', monospace; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.stat-card { padding: 12px; border: 1px solid #25272c; border-radius: 10px; background: #17181b; text-align: center; }
.stat-card strong { display: block; color: #cbd7e5; font-size: 17px; font-weight: 600; }
.stat-card span { display: block; margin-top: 4px; color: #6c717a; font: 9px 'DM Mono', monospace; }
.heat-wrap { margin-top: 14px; padding: 14px 15px 12px; border: 1px solid #25272c; border-radius: 11px; background: #17181b; }
.heat-label { color: #6e7680; font: 9px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .12em; }
.heat { display: flex; align-items: flex-end; gap: 4px; height: 54px; margin-top: 10px; }
.heat i { flex: 1; min-height: 5px; border-radius: 3px 3px 0 0; background: #22242a; }
.heat i.on { background: linear-gradient(180deg, #5591d3, #315f8a); }
.heat i.today { box-shadow: 0 0 0 1px #5591d3; }
.sel-sm { flex: none; padding: 6px 9px; border: 1px solid #2e3137; border-radius: 7px; background: #17191c; color: #b2b9c3; font-size: 10px; }
.rate { flex: none; width: 120px; accent-color: #4386bd; }
@media (max-width: 620px) {
  .profile-hero { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

.dict-base { margin-top: 7px; color: #8f9a7c; font: 9px 'DM Mono', monospace; letter-spacing: .06em; }
.dict-base b { color: #cfd6c4; font-size: 11px; }

/* ---- ek: Focus time (sol menu ogesi + istatistik) ---- */
.sidebar-link.focus-link, .sidebar-link.focus-link svg { color: #d98261; }
.sidebar-link.focus-link:hover { color: #f2a07d; background: #241a16; }
.sidebar-link.focus-link:hover svg { color: #f2a07d; }
.focus-live { margin-left: auto; color: #d98261; font: 10px 'DM Mono', monospace; }
.focus-list { margin-top: 14px; padding: 13px 15px; border: 1px solid #25272c; border-radius: 11px; background: #17181b; }
.focus-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #1f2126; color: #b2b9c3; font-size: 11px; }
.focus-row:last-child { border-bottom: 0; }
.focus-row span:last-child { color: #70aae0; font: 10px 'DM Mono', monospace; }
.focus-row.off { color: #5d626b; }
.focus-row.off span:last-child { color: #494d56; }

/* ---- ek: ders cevirisi (markdown) + Reading AI uretimi ---- */
.lesson-md { margin-top: 9px; }
.lesson-md h1 { margin: 10px 0 4px; color: #dfe6d4; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.lesson-md h2 { margin: 13px 0 5px; color: #d3dcc4; font-size: 12.5px; font-weight: 600; }
.lesson-md h3 { margin: 11px 0 4px; color: #cbd4bd; font-size: 11.5px; font-weight: 600; }
.lesson-md p { margin: 7px 0; color: #cfd6c4; font-size: 12.5px; line-height: 1.7; }
.lesson-md ul, .lesson-md ol { margin: 7px 0; padding-left: 18px; }
.lesson-md li { color: #cfd6c4; font-size: 12.5px; line-height: 1.7; margin-bottom: 3px; }
.lesson-md strong { color: #eef3e6; font-weight: 700; }
.lesson-md em { color: #e8dcc0; font-style: italic; }
.lesson-md code { color: #dbe4cd; font-family: 'DM Mono', monospace; font-size: 11.5px; }
.lesson-md table { width: 100%; margin: 10px 0; border-collapse: collapse; font-size: 11.5px; }
.lesson-md th, .lesson-md td { padding: 6px 8px; border: 1px solid #3c4436; text-align: left; vertical-align: top; color: #cfd6c4; }
.lesson-md th { color: #dfe6d4; background: #1e221b; font-weight: 600; }

/* ---- ek: tam sayfa gorunumleri (gramer havuzu + reading) ---- */
.stage-page { flex: 1; overflow: auto; overflow-x: hidden; width: min(1080px, calc(100% - 64px)); margin: 0 auto; padding: 46px 0 40px; }
.gen-panel { margin-top: 30px; padding: 16px 18px; border: 1px solid #262b31; border-radius: 14px; background: #14171b; }
.gen-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gen-row input { flex: 1; min-width: 220px; padding: 10px 12px; border: 1px solid #2c333b; border-radius: 9px; background: #0f1216; color: #e1e5ee; font-size: 12px; outline: none; }
.gen-row input::placeholder { color: #5f6b7a; }
.gen-row input:focus { border-color: #3e5a7a; }
.gen-hint { color: #6c7684; font-size: 10px; line-height: 1.5; }
.gen-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lib-chip { padding: 5px 10px; border: 1px solid #2a2f36; border-radius: 7px; background: transparent; color: #8f97a1; font-size: 10px; transition: .18s ease; }
.lib-chip:hover { color: #82b8ef; border-color: #3e5a7a; }
.lib-chip.active { border-color: #3e5a7a; color: #b6d2f0; background: #19212b; }
.lib-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.lib-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-search { flex: none; width: 190px; padding: 7px 11px; border: 1px solid #2a2f36; border-radius: 8px; background: #12151a; color: #dfe4ec; font-size: 11px; outline: none; }
.lib-search::placeholder { color: #5f6b7a; }
.lib-search:focus { border-color: #3e5a7a; }
.lib-count { margin-left: auto; color: #61666f; font: 9px 'DM Mono', monospace; }
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.lib-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 15px; border: 1px solid #262b31; border-radius: 12px; background: #15181d; color: #c8ced8; text-align: left; transition: .2s ease; }
.lib-card:hover { border-color: #3e5a7a; background: #182029; transform: translateY(-2px); }
.lib-card.pending { opacity: .72; }
.lib-card.busy { opacity: 1; border-color: #2b5a8a; }
.lib-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lib-tag { padding: 1px 7px; border: 1px solid #2a3c49; border-radius: 5px; color: #6493bd; font: 9px 'DM Mono', monospace; }
.lib-level { color: #70aae0; font: 10px 'DM Mono', monospace; letter-spacing: .06em; }
.lib-title { color: #dfe4ec; font-size: 13px; font-weight: 500; line-height: 1.35; }
.lib-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; color: #61666f; font: 9px 'DM Mono', monospace; }
.lib-meta .imp { padding: 1px 6px; border: 1px solid #2a3c49; border-radius: 5px; color: #6493bd; }
.lib-meta .state { margin-left: auto; color: #5f6b7a; }
.suggest-box { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #262b31; border-radius: 10px; background: #12151a; }
.suggest-copy { flex: 1; min-width: 0; }
.suggest-copy strong { display: block; color: #dfe4ec; font-size: 12px; }
.suggest-copy span { display: block; margin-top: 3px; color: #6c7684; font: 9px 'DM Mono', monospace; }
.suggest-copy small { display: block; margin-top: 4px; color: #8f97a1; font-size: 10px; line-height: 1.45; }
.suggest-all { align-self: flex-start; }
.lib-levels { margin-left: 4px; }
.lib-chip.sm { padding: 4px 8px; font-size: 9px; }
.lib-card.done { border-color: #2c4a3a; }
.lib-card.done .state { color: #7fc9a0; }
.done-tag { margin-left: 10px; padding: 1px 7px; border: 1px solid #2c4a3a; border-radius: 5px; color: #7fc9a0; }

/* ---- ek: ilerleme & motivasyon (profil) ---- */
.pref-block { margin-top: 14px; padding: 14px 15px; border: 1px solid #25272c; border-radius: 11px; background: #17181b; }
.goal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; }
.goal-top strong { color: #dfe4ec; font-size: 15px; }
.goal-top span { color: #7f8a95; font-size: 10px; text-align: right; }
.goal-bar { height: 6px; margin-top: 8px; border-radius: 6px; overflow: hidden; background: #22262b; }
.goal-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3f7fbf, #82b8ef); }
.pref-block .gen-chips { margin-top: 10px; }
.lvl-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 9px; }
.lvl-tag { color: #70aae0; font: 10px 'DM Mono', monospace; }
.lvl-bar { height: 6px; border-radius: 6px; background: #22262b; overflow: hidden; }
.lvl-bar span { display: block; height: 100%; background: linear-gradient(90deg, #3f7fbf, #82b8ef); }
.lvl-num { color: #7f8a95; font: 9px 'DM Mono', monospace; }
.hmap { display: flex; gap: 3px; margin-top: 10px; padding-bottom: 4px; overflow-x: auto; }
.hmap-col { display: flex; flex-direction: column; gap: 3px; }
.hmap i { display: block; width: 11px; height: 11px; border-radius: 3px; background: #1e2226; }
.hmap i.l1 { background: #26405c; }
.hmap i.l2 { background: #3f7fbf; }
.hmap i.l3 { background: #82b8ef; }
.hmap i.future { background: transparent; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge { padding: 4px 8px; border: 1px solid #2a2f36; border-radius: 6px; color: #626a74; font-size: 9.5px; }
.badge.on { border-color: #3e5a7a; color: #b6d2f0; background: #19212b; }

/* ---- ek: flashcard + sulanmis kelimeler ---- */
.flash-panel { margin-top: 26px; padding: 18px 20px; border: 1px solid #262b31; border-radius: 14px; background: #14171b; }
.flash-head { display: flex; align-items: center; gap: 10px; }
.flash-kicker { color: #8f97a1; text-transform: uppercase; letter-spacing: .14em; font: 9px 'DM Mono', monospace; }
.flash-progress { margin-left: auto; color: #61666f; font: 9px 'DM Mono', monospace; }
.flash-mini { padding: 4px 9px; border: 1px solid #2a2f36; border-radius: 6px; background: transparent; color: #8f97a1; font-size: 10px; transition: .18s ease; }
.flash-mini:hover { color: #82b8ef; border-color: #3e5a7a; }
.flash-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 156px; margin-top: 14px; padding: 22px; border: 1px solid #2c333b; border-radius: 12px; background: linear-gradient(150deg, #171b20, #12161a); color: #dfe4ec; text-align: center; transition: .2s ease; }
.flash-card:hover { border-color: #3e5a7a; }
.flash-card.learned { border-color: #2c4a3a; }
.flash-word { font: 500 30px/1.1 'Playfair Display', serif; letter-spacing: -.02em; }
.flash-hint { color: #5f6b7a; font: 9px 'DM Mono', monospace; }
.flash-back { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.flash-back b { color: #82b8ef; font-size: 15px; font-weight: 600; }
.flash-back span { color: #b2b9c3; font-size: 12px; line-height: 1.5; }
.flash-back em { color: #8f97a1; font-size: 11.5px; }
.flash-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.flash-btn { flex: 1 1 auto; padding: 9px 12px; border: 1px solid #2b5a8a; border-radius: 9px; background: #141e2b; color: #82b8ef; font-size: 11px; transition: .18s ease; }
.flash-btn:hover { border-color: #4f86c6; background: #1a2736; color: #9ccaf7; }
.flash-btn.ghost { border-color: #2a2f36; background: transparent; color: #8f97a1; }
.flash-btn.ghost:hover { border-color: #3e5a7a; color: #b6d2f0; }
.flash-btn.ok { border-color: #2c4a3a; background: #14211a; color: #7fc9a0; }
.flash-btn.ok:hover { border-color: #3d6b52; color: #a8e0c2; }
.word-plant.watered { border-color: #2f6a8a; background: rgba(24, 34, 42, .85); }
.plant-drop { position: absolute; top: 14px; left: 16px; width: 8px; height: 11px; border-radius: 70% 30% 70% 30%; transform: rotate(45deg); background: #7895a0; box-shadow: 0 0 10px rgba(120, 149, 160, .5); }
.learn-toggle { flex: none; padding: 7px 12px; border: 1px solid #2c4a3a; border-radius: 8px; background: #14211a; color: #7fc9a0; font-size: 11px; }
.learn-toggle.on { border-color: #3d6b52; color: #a8e0c2; }
@media (max-width: 620px) {
  .flash-actions { flex-direction: column; }
  .flash-word { font-size: 25px; }
}
.sel-sm { max-width: 210px; }
@media (max-width: 900px) { .lib-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .lib-grid { grid-template-columns: 1fr; }
  .stage-page { width: calc(100% - 24px); padding-top: 30px; }
  .lib-count { width: 100%; margin-left: 0; }
  .lib-search { width: 100%; }
}
.gen-go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 9px; border: 1px solid #2b5a8a; border-radius: 7px; background: #141e2b; color: #82b8ef; font-size: 10px; transition: .18s ease; }
.gen-go:hover { border-color: #4f86c6; background: #1a2736; color: #9ccaf7; }
.gen-go:disabled { opacity: .6; cursor: default; }
