:root{--green:#155c43;--deep:#104b38;--dark:#203b32;--forest:#0f4735;--pale:#f1f7f0;--yellow:#f3cc56;--yellow-light:#fff8dd;--border:#dde8df;--muted:#75837b;--bg:#f6f8f4;--shadow:0 10px 35px rgba(19,62,40,.045)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:#203d32;font:14px/1.56 'DM Sans','Manrope',system-ui,-apple-system,Segoe UI,sans-serif}button,textarea,select{font:inherit}button{cursor:pointer;transition:background .16s,border-color .16s,transform .16s}button:hover{transform:translateY(-1px)}button:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #eac45c;outline-offset:2px}.app-shell{min-height:100vh;display:grid;grid-template-columns:250px minmax(0,1fr)}.sidebar{background:var(--deep);color:#eef8ed;min-height:100vh;display:flex;flex-direction:column;padding:30px 18px 22px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:4px 8px 46px}.brand-mark{background:var(--yellow);color:var(--deep);font-size:25px;font-weight:700;width:41px;height:41px;display:grid;place-items:center;border-radius:12px;box-shadow:0 6px 13px rgba(0,0,0,.12)}.brand strong{font-size:21px;letter-spacing:-.9px;display:block;line-height:1.25}.brand span{font-size:9px;letter-spacing:2.25px;color:#a8cbb9;font-weight:800}.side-label{font-size:10px;color:#87b19b;letter-spacing:1.7px;font-weight:800;margin:0 13px 15px}.side-nav{display:flex;align-items:center;gap:12px;padding:14px 15px;border-radius:12px;font-size:13px;font-weight:700;color:#eaf6ef}.side-nav.active{background:#287457;border-left:3px solid var(--yellow)}.side-icon{font-size:19px;color:#f2d365}.sidebar-stats{border-top:1px solid #38715a;margin:35px 8px 0;padding:27px 0 0}.sidebar-stats .side-label{margin-left:4px}.statline{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:#bed8c9;padding:10px 4px}.statline strong{font-size:14px;color:#f9de83}.sidebar-bottom{margin:auto 8px 0;padding:22px 0 0;border-top:1px solid #38715a;font-size:12px;color:#e5f2e9;line-height:1.9}.sidebar-bottom small{font-size:11px;color:#91bca6}.sidebar-status,.green-dot{display:inline-block;background:#8cda9c;border-radius:100%;height:8px;width:8px;margin-right:6px;box-shadow:0 0 0 3px rgba(133,222,153,.12)}.main-shell{min-width:0}.topbar{background:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:27px 35px 26px;border-bottom:1px solid #e5ece4}.top-title h1{font-family:Manrope,'DM Sans',sans-serif;font-size:26px;letter-spacing:-1px;line-height:1.2;margin:5px 0 4px;font-weight:800}.top-title p{margin:0;color:#788a7f;font-size:13px}.top-eyebrow{color:#559279;font-size:10px;font-weight:800;letter-spacing:1.35px}.top-pill{display:flex;align-items:center;flex-shrink:0;color:#44725c;background:#f1f7ef;border:1px solid #e1eddf;border-radius:30px;padding:9px 13px;font-size:11px;font-weight:700}.green-dot{background:#3d9b65;box-shadow:none}.wrap{max-width:1640px;margin:0 auto;padding:29px 35px 36px}.notice{background:#fff9e8;border:1px solid #f1e4b6;border-left:4px solid #eac454;border-radius:14px;padding:15px 18px;display:flex;gap:14px;align-items:flex-start;margin-bottom:24px;box-shadow:0 4px 16px rgba(123,98,24,.025)}.notice-symbol{width:23px;height:23px;flex:0 0 23px;display:grid;place-items:center;background:#f5df8f;color:#634d14;border-radius:50%;font-weight:800}.notice strong{display:block;font-size:12px;color:#635621}.notice p{margin:4px 0 0;color:#827849;font-size:11.5px;line-height:1.7}.workspace{display:grid;grid-template-columns:minmax(340px,.9fr) minmax(410px,1.1fr);gap:20px;align-items:start}.card{background:#fff;border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow);min-width:0}.input-card{padding:24px}.section-head{display:flex;align-items:center;gap:12px}.section-icon{display:grid;place-items:center;flex:0 0 41px;height:41px;border-radius:12px;background:#e7f4eb;color:#26734e;font-size:12px;font-weight:800}.section-icon.yellow{color:#947013;background:#fff3c8}.eyebrow{color:#83a78c;font-size:10px;letter-spacing:1.5px;font-weight:800;margin-bottom:1px}h2{font-family:Manrope,'DM Sans',sans-serif;font-size:19px;margin:0;letter-spacing:-.6px;line-height:1.4;font-weight:800}h3{font-size:15px} .section-head p{font-size:11px;color:#82918a;margin:1px 0 0}label{display:block;color:#3f5a4d;font-weight:700;font-size:12px;margin:23px 0 9px}.label-row{display:flex;align-items:baseline;justify-content:space-between;gap:9px;margin-top:20px}.label-row label{margin:0 0 9px}.muted{font-size:10px;color:#a1aca4}select,textarea{width:100%;border:1px solid #d5e2d8;background:#fbfdfb;color:#274b39;border-radius:10px;padding:12px 13px;line-height:1.65}select{height:46px;font-weight:600;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23557964' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;padding-right:39px}textarea{resize:vertical;min-height:210px;font-size:13px;display:block}textarea::placeholder{color:#aab8ac}.input-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.input-actions button{flex:0 0 auto}.btn-subtle,.btn-ghost,.copy-btn{padding:9px 13px;border-radius:9px;font-size:11.5px;font-weight:700;border:1px solid #dce8de;color:#387054;background:#f7faf6}.btn-subtle:hover,.copy-btn:hover{background:#edf7ec}.btn-ghost{background:#fff;color:#819187}.btn-ghost:hover{background:#f5f7f4}.exam-panel,.shortcut-panel{margin-top:17px;border:1px solid #e2eae3;border-radius:11px;overflow:hidden;background:#fff}.exam-panel summary,.shortcut-panel summary,.validation summary{display:flex;justify-content:space-between;gap:10px;align-items:center;cursor:pointer;list-style:none;font-weight:700;color:#43654f;padding:13px 14px;font-size:12px}.exam-panel summary::-webkit-details-marker,.shortcut-panel summary::-webkit-details-marker,.validation summary::-webkit-details-marker{display:none}.exam-panel summary small{font-size:10.5px;color:#94a499;display:block;font-weight:400;margin-top:3px}.chevron{font-size:19px;color:#8ba394;transition:transform .2s}details[open]>.chevron,details[open]>summary .chevron{transform:rotate(180deg)}.checks{border-top:1px solid #edf0eb;padding:13px;display:grid;grid-template-columns:1fr 1fr;gap:6px 10px}.check{font-size:11.5px;font-weight:500;margin:0;display:flex;gap:7px;align-items:center;color:#4f6658}.check input{accent-color:#16704b}.shortcuts{padding:12px;display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid #edf0eb}.shortcuts span{font-size:10px;border-radius:7px;background:#f1f6ef;border:1px solid #e5eee2;padding:5px 7px;color:#53735a}.primary{margin-top:21px;display:flex;align-items:center;justify-content:center;gap:13px;background:var(--green);border:1px solid var(--green);color:#fff;border-radius:10px;padding:15px 16px;width:100%;font-size:13px;font-weight:800;box-shadow:0 8px 18px rgba(18,93,58,.14)}.primary:hover{background:#0b4e34}.primary span:first-child{color:#e8cc6a;font-size:20px}.primary span:last-child{font-size:19px}#status{min-height:25px;margin-top:9px;font-size:11px;color:#557963;text-align:center}.results{display:flex;flex-direction:column;gap:18px}.result-card{padding:21px 22px 22px}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.result-heading .section-head{min-width:0}.copy-btn{background:#f1f8f1;white-space:nowrap}.output{min-height:260px;max-height:700px;background:#fcfefb;border-color:#e2e9df;font-size:12.5px;line-height:1.7}#leaflet{min-height:225px}.validation{padding:0 18px 14px}.validation summary{padding:15px 2px;font-size:12px}.validation summary span:first-child{display:flex;align-items:center;gap:8px}.validation summary span:first-child:before{content:"✓";display:grid;place-items:center;width:20px;height:20px;background:#e8f3e8;border-radius:50%;color:#3d8255}#info{white-space:pre-wrap;font-size:11px;line-height:1.7;background:#f8faf7;border:1px solid #e8eee6;color:#72887b;border-radius:9px;padding:12px;max-height:240px;overflow:auto}footer{text-align:center;color:#94a399;padding:8px 20px 24px;font-size:10.5px}
@media(max-width:1270px){.app-shell{grid-template-columns:215px minmax(0,1fr)}.workspace{grid-template-columns:1fr}.wrap{max-width:960px}.sidebar{padding-left:14px;padding-right:14px}.result-card .output{min-height:220px}.input-card textarea#raw{min-height:190px}}
@media(max-width:790px){.app-shell{display:block}.sidebar{height:auto;min-height:0;position:static;padding:13px 18px}.brand{padding:0}.brand strong{font-size:18px}.brand-mark{width:34px;height:34px;font-size:19px}.sidebar>.side-label,.side-nav,.sidebar-stats,.sidebar-bottom{display:none}.topbar{padding:24px 20px;align-items:flex-start}.top-title h1{font-size:23px}.top-pill{display:none}.wrap{padding:19px 15px 26px}.workspace{grid-template-columns:minmax(0,1fr)}.input-card,.result-card{padding:18px}.notice{margin-bottom:17px}.result-heading{flex-wrap:wrap;align-items:flex-start}.copy-btn{margin-left:auto}.checks{grid-template-columns:1fr 1fr}}
@media(max-width:470px){.top-title h1{font-size:22px}.muted{display:none}.checks{grid-template-columns:1fr}.section-head{gap:9px}.section-icon{height:37px;flex-basis:37px}.result-heading .copy-btn{width:100%;margin-top:8px}.input-actions button{flex:1}.notice{padding:13px}.brand span{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Kurumsal marka düzeni: tek sembol stetoskop */
.brand{gap:11px;padding-left:4px;padding-right:4px}
.brand-mark{flex:0 0 43px;width:43px;height:43px;border-radius:13px;background:#f3cc56;color:#164b38;box-shadow:none}
.brand-stethoscope{display:block;width:27px;height:27px}
.brand-name{min-width:0}
.brand-name strong{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:17px;letter-spacing:-.48px;white-space:nowrap;font-weight:760}
.brand-name span{font-size:8px;letter-spacing:.95px;color:#c0dccc;white-space:nowrap}
.top-title h1{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-weight:750;letter-spacing:-.8px}
.top-eyebrow{color:#477e5e;letter-spacing:1.05px}
@media(max-width:790px){.brand-mark{flex-basis:36px;width:36px;height:36px}.brand-stethoscope{width:23px;height:23px}.brand-name strong{font-size:16px}.brand-name span{font-size:7px;letter-spacing:.7px}}


/* Kişisel şablon yönetimi */
.template-nav{width:100%;border:0;background:transparent;text-align:left;font:inherit;cursor:pointer}
.template-nav:hover{background:#287457}
.template-manager{padding:25px;margin-bottom:15px}
.templates-manager-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;border-bottom:1px solid #e3ece5;padding-bottom:17px;margin-bottom:20px}
.templates-manager-head h2{font-size:23px}.templates-manager-head p{font-size:12px;color:#768b7b;margin:5px 0;max-width:700px}
.templates-editor-grid{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(0,1.5fr);gap:22px}
.templates-chooser{background:#f4f9f2;border-radius:13px;padding:16px;align-self:start;position:sticky;top:20px}
.templates-chooser label,.template-editor label{margin:13px 0 5px;display:block;font-weight:700;font-size:12px;color:#3e674d}
.template-manager input,.template-manager select,.template-manager textarea{border:1px solid #d5e2d8;background:#fff;width:100%;padding:11px 12px;border-radius:9px;font:inherit;color:#214937}
.template-manager textarea{min-height:75px;resize:vertical}
.template-manager input:focus,.template-manager textarea:focus,.template-manager select:focus{outline:2px solid #e8cc63;outline-offset:1px}
.template-manager select[size]{height:340px;background-image:none;padding:4px}
.template-manager select[size] option{padding:9px 10px;border-bottom:1px solid #e9eee9;white-space:normal;font-size:12px}
.template-manager select[size] option:checked{background:#dfeee1;color:#135a3c;font-weight:700}
.template-new-button{width:100%;margin-top:12px;border:1px solid #b8cfb8;background:#fff;color:#176248;padding:12px;border-radius:10px;font-weight:700}
.template-new-button:hover{background:#e8f5e9}
.template-tip{font-size:11px;color:#708773;line-height:1.6;margin-top:16px}
.template-meta{font-size:11px;color:#347654}
.template-editor{min-width:0}
.template-title-line{display:flex;align-items:center;justify-content:space-between;gap:10px}
.template-title-line h3{font-size:18px;margin:4px 0 0}
.template-state{display:inline-flex;padding:6px 9px;background:#eff7e9;color:#39744b;border-radius:20px;font-size:10px;white-space:nowrap}
.template-editor small{color:#7e9281;display:block;font-size:11px;margin-top:5px}
.template-subheading{font-weight:800;color:#164d38;border-bottom:1px solid #e7eee5;padding:16px 0 7px;margin-top:10px}
.template-actions{display:flex;align-items:stretch;gap:10px;margin-top:17px;flex-wrap:wrap}
.template-actions .primary{width:auto;flex:2;margin-top:0;padding:12px 15px}
.template-actions .btn-ghost{flex:1;min-width:155px}
#template-status{font-size:12px;color:#316c49;min-height:18px}
@media(max-width:1100px){.templates-editor-grid{grid-template-columns:1fr}.templates-chooser{position:static}.template-manager select[size]{height:220px}}
@media(max-width:790px){.templates-manager-head{flex-direction:column}.template-manager{padding:17px}.template-actions{flex-direction:column}.template-actions .primary,.template-actions .btn-ghost{width:100%}}


/* Hekim planı/öneri taslaklarında ortak başlangıç metni yükleme */
.template-field-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}
.template-field-heading label{margin:0!important}
.template-load-default{border:1px solid #c9dfcf;background:#f3f9f2;color:#1b694e;border-radius:7px;font:inherit;font-size:11px;padding:6px 9px}
.template-load-default:hover{background:#e5f2e5}
.template-load-default[hidden]{display:none}
@media(max-width:540px){.template-field-heading{align-items:flex-start;flex-direction:column;gap:5px}}


/* Açılır-kapanır yeşil menü ve hekim başlığı */
.app-shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}
.app-shell.sidebar-collapsed>.sidebar{display:none}
.top-header-left{display:flex;align-items:flex-start;gap:16px;min-width:0}
#sidebar-toggle{flex:0 0 35px;height:35px;background:#eff7ef;border:1px solid #d4e8d8;color:#185d42;border-radius:9px;font-size:20px;display:grid;place-items:center}
.brand{padding-bottom:32px;align-items:flex-start}
.brand-name span{display:block!important;white-space:normal;letter-spacing:.4px;font-size:11px;line-height:1.55;font-weight:600;text-transform:none}
.brand-name span:first-of-type{margin-top:5px}
.nav-icon{width:21px;height:21px;color:#f3d265;flex:0 0 21px}
.sidebar .side-nav{width:100%;cursor:pointer;border:0;background:transparent;text-align:left;transition:background .15s ease}
.sidebar .side-nav.active{background:#287457;border-left:3px solid var(--yellow)}
.sidebar .side-nav:hover{background:#287457}
.top-pill{border-radius:14px;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px 8px;padding:9px 11px;max-width:395px}
.header-doctor{display:block;width:100%;text-align:right;font-size:13px;font-weight:800;color:#145c42}
.account-duration{margin:0!important;font-size:11px!important}
@media(max-width:1000px){.topbar{align-items:flex-start;flex-wrap:wrap}.top-pill{max-width:100%;justify-content:flex-start}.header-doctor{text-align:left}}
@media(max-width:790px){
 .app-shell.sidebar-collapsed{display:block}
 .sidebar{display:flex;min-height:0;height:auto;position:static;padding:15px 18px}
 .sidebar>.side-label{display:block}
 .sidebar .side-nav{display:flex}
 .sidebar .sidebar-stats{display:block;margin:14px 0 0;padding:8px 0}
 .brand{padding-bottom:12px}
 .brand-name span{font-size:10px}
 .top-header-left{align-items:flex-start}
 .topbar{padding:18px 18px}
}
@media(max-width:470px){.top-header-left{gap:9px}.top-title h1{font-size:20px}.header-doctor{font-size:12px}}
/* Şablonlarım içindeki muayene tercihleri */
.template-settings-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.template-tab{border:1px solid #bfd7c3;background:#f3f8f2;color:#245c40;border-radius:9px;font-size:12px;font-weight:750;padding:10px 14px}
.template-tab.active{background:#185e43;color:white;border-color:#185e43}
.exam-settings-form{max-width:870px}
.exam-settings-form h3{font-size:19px;color:#164c36}
.exam-settings-form>p{color:#65816a;font-size:12px}
.exam-settings-toggle{display:flex!important;gap:10px;align-items:center;background:#eff9ee;padding:15px;border:1px solid #c8e2ca;border-radius:11px;font-size:13px!important}
.exam-settings-toggle input{width:19px!important;height:19px;flex:0 0 19px;margin:0!important;accent-color:#176749}
.exam-settings-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:15px 0}
.exam-settings-presets label{display:flex;gap:8px;align-items:center;margin:0!important;padding:9px;background:#f6faf5;border:1px solid #e3ece1;border-radius:9px;font-size:12px}
.exam-settings-presets input{width:17px!important;height:17px;margin:0!important;flex:0 0 17px;accent-color:#176749}
.exam-settings-form label[for=exam-settings-custom]{display:block;margin-top:17px;font-weight:700}
#exam-settings-custom{width:100%;padding:12px;border:1px solid #d2e4d4;border-radius:10px;resize:vertical}
#exam-settings-save{width:auto;padding:12px 22px;margin-top:14px}
#exam-settings-status{font-size:12px;color:#206e42}
@media(max-width:640px){.exam-settings-presets{grid-template-columns:1fr}}


/* Uzun marka başlığı ve üç satırlık alan listesinde taşmayı önle. */
.sidebar .brand-name{min-width:0}
.sidebar .brand-name strong{white-space:normal;overflow-wrap:break-word;line-height:1.22;font-size:16px}


/* İsteğe bağlı poliklinik yapılandırılmış anamnez alanı */
.structured-selector-wrap{margin-top:12px}
.structured-selector-wrap>label{margin:13px 0 7px}
.structured-panel{border:1px solid #cee2d2;background:#f5faf5;border-radius:12px;margin-top:12px;padding:14px}
.structured-panel-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.structured-panel-top strong{font-size:13px;color:#185a40}
.structured-panel-top button{width:auto;margin:0;padding:7px 11px;font-size:11px}
.structured-panel p{font-size:11px;color:#58765e;margin:6px 0 10px;line-height:1.6}
.structured-panel textarea{min-height:215px;background:#fff;font-size:12px;line-height:1.7;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical;white-space:pre-wrap}
.structured-panel small{display:block;margin-top:8px;color:#7a8d7e;font-size:10px}
@media(max-width:480px){.structured-panel-top{align-items:flex-start;flex-direction:column}.structured-panel{padding:12px}}


/* Doktor rehber kutusu — poliklinik notunun yanında, HBYS çıktılarından bağımsız */
.admission-card{padding:18px 20px 15px;border-left:4px solid #d3ae46;max-height:600px;overflow:auto;scrollbar-width:thin}
.admission-card[hidden],.admission-card #admission-body[hidden]{display:none!important}
.admission-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.admission-badge{font-size:10px;letter-spacing:1px;color:#806218;font-weight:850}
.admission-toggle{border:1px solid #d9e5d9;background:#f7faf7;border-radius:8px;color:#285b43;font-size:11px;font-weight:700;padding:7px 10px}
.admission-card h3{font-size:18px;color:#204b39;font-weight:800;margin:9px 0 7px;line-height:1.35}
.admission-intro{font-size:11px;color:#72816f;margin:0 0 13px;line-height:1.5}
.admission-group{border-top:1px solid #e4ebdf;padding:11px 0 4px}
.admission-group h4{font-size:12px;letter-spacing:.1px;color:#25573c;margin:0 0 7px;font-weight:800}
.admission-emergency h4{color:#9e3e30}
.admission-watch h4{color:#4a6583}
.admission-group ul,.admission-sources ul{margin:0 0 8px;padding-left:19px}
.admission-group li{font-size:12px;line-height:1.6;margin-bottom:7px;color:#384c3f}
.admission-note{padding:10px;background:#f5f7f2;border-radius:9px;font-size:11px;color:#607260;line-height:1.6;margin:6px 0 12px}
.admission-sources{border-top:1px solid #dce6dc;padding-top:10px}
.admission-sources>strong{color:#385747;font-size:11px}
.admission-sources li{font-size:11px;line-height:1.65;margin-top:5px;color:#728176}
.admission-sources a{color:#1c694e;text-underline-offset:2px}
.admission-disclaimer{color:#6b796d;font-size:10px;line-height:1.55;margin:12px 0 0;border-top:1px dashed #d8e1d5;padding-top:9px}
@media(max-width:900px){.admission-card{max-height:520px}}
@media(max-width:600px){.admission-card{padding:15px;max-height:460px}.admission-card h3{font-size:16px}}

/* Hekim planı ayrı kutudadır; HBYS klinik notunun parçası değildir. */
#doctor-plan-card[hidden]{display:none!important}
.plan-card{border-color:#e4e7ce;background:#fffef9}
.plan-card .plan-output{min-height:145px;max-height:480px;background:#fffffb}

/* Ana menüden hata ve öneri bildirimi. */
.feedback-link{text-decoration:none;line-height:1.3;margin-top:10px;border:1px solid rgba(255,255,255,.2)}
.feedback-link:hover{background:rgba(255,255,255,.09);color:#fff}

/* Sürüm: alt sabit geri bildirim ve mobil dar yeşil çekmece menü */
.sidebar-feedback{margin-top:auto;padding:18px 3px 5px}
.sidebar-feedback .feedback-link{
 display:flex;align-items:center;justify-content:center;gap:7px;
 text-align:center;line-height:1.45;padding:13px 10px;border-radius:11px;
 background:#e8ddb7;border:1px solid #d8cda9;color:#285443;
 text-decoration:none;font-size:12px;font-weight:700;letter-spacing:0;
 box-shadow:0 2px 7px rgba(65,67,27,.06);
}
.sidebar-feedback .feedback-link:hover,
.sidebar-feedback .feedback-link:focus-visible{
 background:#dfd0a4;color:#244b3c;border-color:#cbbd92
}
.sidebar-backdrop[hidden]{display:none!important}
.family-advice-card{border-left:4px solid #88bb91}
.family-advice-output{min-height:115px;max-height:350px;background:#f8fcf7}
@media(max-width:790px){
 .app-shell,.app-shell.sidebar-collapsed{display:block!important}
 .app-shell .sidebar,.app-shell.sidebar-collapsed>.sidebar{
  display:flex!important;flex-direction:column;
  position:fixed!important;top:0;bottom:0;left:0;
  width:min(290px,85vw);height:100dvh;min-height:100dvh;
  padding:65px 17px 22px;overflow-y:auto;overscroll-behavior:contain;
  background:var(--deep);z-index:110;
  transform:translateX(calc(-100% + 18px));
  transition:transform .26s ease,box-shadow .26s ease;
  box-shadow:none;
 }
 .app-shell.sidebar-mobile-open .sidebar{
  transform:translateX(0);
  box-shadow:6px 0 28px rgba(0,0,0,.25);
 }
 .app-shell .sidebar .side-nav{display:flex!important}
 .app-shell .sidebar>.side-label{display:block!important}
 .app-shell .sidebar .brand{padding-bottom:26px}
 .app-shell .sidebar .brand-name strong{font-size:16px}
 .app-shell .sidebar .sidebar-feedback{display:block}
 .app-shell .main-shell{margin-left:18px;min-width:0}
 .app-shell #sidebar-toggle{
  position:fixed;left:25px;top:13px;
  width:36px;height:38px;z-index:140;
  display:grid;place-items:center;
  background:#e1f3e4;border:1px solid #b6d4bf;color:#145c42;
  border-radius:9px;box-shadow:0 3px 8px rgba(0,0,0,.09)
 }
 .app-shell.sidebar-mobile-open #sidebar-toggle{
  left:min(calc(85vw - 56px),234px);
  background:#24674d;color:#fff;border-color:#4b8c6d;
 }
 .app-shell .topbar{padding:18px 15px 17px 57px}
 .app-shell .top-header-left{min-width:0}
 .sidebar-backdrop:not([hidden]){
  position:fixed;inset:0;display:block;
  background:rgba(4,30,19,.5);z-index:105
 }
}
@media(prefers-reduced-motion:reduce){
 .app-shell .sidebar{transition:none}
}

/* WHO persentil ve SDS çalışma alanı: uygulamanın mevcut açık yeşil temasına uyumlu. */
.growth-manager{padding:24px;margin-bottom:18px}
.growth-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;border-bottom:1px solid #e1ebe3;padding-bottom:16px;margin-bottom:20px}
.growth-head h2{font-size:22px}
.growth-head p{font-size:12px;line-height:1.6;color:#748a7a;margin:7px 0}
.growth-grid{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(290px,1.1fr);gap:20px}
.growth-form{padding:15px;background:#f4f9f2;border:1px solid #e1ebdf;border-radius:13px}
.growth-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
.growth-fields label{margin:5px 0 8px;font-size:12px;color:#3e674d}
.growth-fields input,.growth-fields select{display:block;width:100%;min-width:0;height:44px;border:1px solid #d0dfd2;border-radius:9px;padding:9px 11px;color:#214e37;background:#fff;font-size:14px;line-height:1.4;margin-top:6px}
.growth-fields input:focus,.growth-fields select:focus{outline:2px solid #e8cc63;outline-offset:1px}
.growth-fields select{background-image:none;appearance:auto}
.growth-tip{font-size:11px;color:#6f806f;line-height:1.65;margin:14px 0 0}
.growth-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.growth-results{padding:15px;border:1px solid #e3ece4;border-radius:13px}
.growth-results h3{margin:0 0 9px;color:#205940}
#growth-state{min-height:24px;font-size:11px;color:#58725e;line-height:1.5}
.growth-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.growth-metric{min-height:116px;padding:13px;background:#f7faf6;border:1px solid #dbe9dc;border-radius:11px;display:flex;flex-direction:column;gap:5px}
.growth-metric-label{font-size:11px;color:#608369;font-weight:700}
.growth-metric strong{color:#1c5b40;font-size:17px;line-height:1.3}
.growth-metric-sds{font-size:11px;color:#536c57;line-height:1.5}
.growth-note-preview{margin-top:18px}
.growth-note-preview strong{font-size:12px;color:#365b40}
#growth-note-preview{min-height:135px;font-size:12px;margin-top:8px;resize:vertical;background:#fdfefb}
.growth-source{margin-top:16px;border-top:1px solid #e5ece7;padding-top:11px;font-size:10.5px;color:#6e7f70;line-height:1.65}
.growth-source a{color:#245e43}
@media(max-width:1030px){.growth-grid{grid-template-columns:1fr}}
@media(max-width:580px){.growth-manager{padding:16px}.growth-head{flex-direction:column}.growth-head h2{font-size:19px}.growth-fields{gap:5px 9px}.growth-result-grid{grid-template-columns:1fr 1fr}.growth-metric{padding:10px;min-height:108px}.growth-metric strong{font-size:14px}}

.quick-growth{margin:7px 0 9px;padding:0;border:1px solid #d8e8da;border-radius:8px;background:#f5faf4;min-width:0}
.quick-growth>summary{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 9px;min-height:30px;cursor:pointer;list-style:none;font-size:11.5px;font-weight:700;color:#245e43;line-height:1.4}
.quick-growth>summary::-webkit-details-marker{display:none}
.quick-growth-chevron{font-size:15px;line-height:1;transition:transform .15s}
.quick-growth[open] .quick-growth-chevron{transform:rotate(180deg)}
.quick-growth[open]>summary{border-bottom:1px solid #e0ebe0}
.quick-growth-content{padding:6px 8px 7px}
.quick-growth-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 6px}
.quick-growth-fields label,.quick-growth-bottom label{display:block;font-size:10.5px;font-weight:700;line-height:1.25;color:#3e674d;margin:0}
.quick-growth-fields input,.quick-growth-fields select,.quick-growth-bottom select{display:block;width:100%;min-width:0;height:29px;border:1px solid #d0dfd2;border-radius:6px;padding:3px 5px;margin:2px 0 0;background:#fff;color:#214e37;font-size:12px;line-height:1.2;box-sizing:border-box}
.quick-growth-bottom{display:flex;align-items:center;gap:6px;margin-top:5px;flex-wrap:wrap}
.quick-growth-bottom label{display:flex;align-items:center;gap:5px;min-width:0;flex:0 1 auto}
.quick-growth-bottom select{width:auto;max-width:100%;margin:0}
#quick-growth-status{flex:1;min-width:100px;font-size:10px;line-height:1.3;color:#58725e}
@media(min-width:1450px){.quick-growth-fields{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Üst başlık ve hekim kimliği */
.top-eyebrow>span{display:block;line-height:1.5}
.top-pill{justify-content:flex-start;text-align:left}
.account-identity{display:flex;align-items:center;gap:10px;width:100%;min-width:0;text-align:left}
.account-identity-text{display:flex;flex:1;flex-direction:column;align-items:flex-start;min-width:0;gap:2px}
.account-identity .header-doctor{text-align:left;width:auto;overflow-wrap:anywhere}
.guest-avatar{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:50%;background:#dcece0;border:1px solid #c5dfcb;color:#427756}
.footer-version{display:block;font:inherit;color:inherit}

/* Gizlilik uyarısı: varsayılan tek satır, ayrıntılar tıklamayla açılır. */
.notice.privacy-notice{display:block;padding:0;margin-bottom:10px;border-radius:8px}
.privacy-notice>summary{display:flex;align-items:center;gap:8px;padding:5px 9px;min-height:30px;cursor:pointer;list-style:none}
.privacy-notice>summary::-webkit-details-marker{display:none}
.privacy-notice .notice-symbol{width:19px;height:19px;flex-basis:19px;font-size:11px}
.privacy-notice>summary strong{font-size:11.5px;line-height:1.3;flex:1;min-width:0}
.privacy-chevron{font-size:15px;line-height:1;color:#635621;transition:transform .15s}
.privacy-notice[open] .privacy-chevron{transform:rotate(180deg)}
.privacy-notice[open]>summary{border-bottom:1px solid #f1e4b6}
.privacy-notice>p{margin:0;padding:6px 10px 8px 36px;font-size:11px;line-height:1.5}

/* Klinik giriş: üç seçim aynı ölçülerde, özgün renkleri korunur. */
.input-card #mode,.input-card #structured-template,.input-card .quick-growth>summary{height:46px;min-height:46px;width:100%;font-size:14px;font-weight:600;line-height:1.65;padding:0 39px 0 13px;border-radius:10px;color:#274b39}
.input-card #mode,.input-card #structured-template{background-color:#fbfdfb;border-color:#d5e2d8}
.input-card .structured-selector-wrap{margin-top:8px}
.input-card .quick-growth{margin:8px 0 9px;border:0;background:transparent;border-radius:10px}
.input-card .quick-growth>summary{position:relative;border:1px solid #d8e8da;background:#f5faf4;box-sizing:border-box;display:flex;align-items:center;cursor:pointer;list-style:none}
.input-card .quick-growth-chevron{position:absolute;right:13px;top:50%;width:18px;height:18px;font-size:0;transform:translateY(-50%);background:no-repeat center/18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23557964' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.input-card .quick-growth[open] .quick-growth-chevron{transform:translateY(-50%) rotate(180deg)}
.input-card .quick-growth[open]>summary{border-radius:10px 10px 0 0}
.input-card .quick-growth-content{border:1px solid #d8e8da;border-top:0;border-radius:0 0 10px 10px;background:#f5faf4}

/* Marka alan adı: uygulama menüsünde başlığın hemen altında. */
.sidebar .brand-name .brand-domain{display:block;font-size:12px;font-weight:600;line-height:1.3;letter-spacing:.2px;margin-top:3px;color:#c0dccc}

/* Ortak üst başlık: uzmanlık, marka, bölüm adı. */
.top-title .top-eyebrow{display:block;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:21px;font-weight:750;letter-spacing:-.45px;color:#24664c;text-transform:none;line-height:1.3}
.top-title .top-eyebrow>span{display:block;line-height:1.3}
.top-title .top-eyebrow>span+span{font-size:15px;font-weight:650;letter-spacing:-.2px;color:#285a47;margin-top:2px}
.top-title #top-main-title{font-size:18px;line-height:1.25;letter-spacing:-.3px;font-weight:700;margin:7px 0 3px}
@media(min-width:1001px){.topbar{min-height:116px;padding-top:8px;padding-bottom:8px;align-items:center}.top-header-left{padding:4px 0}}
@media(max-width:470px){.top-title .top-eyebrow{font-size:19px;letter-spacing:-.3px}.top-title .top-eyebrow>span+span{font-size:14px}.top-title #top-main-title{font-size:16px}}

/* Yönetici panelinden seçilen güvenli tema ve yoğunluk önayarları. */
.admin-link{text-decoration:none;align-items:center}
:root[data-site-theme="blue"]{--green:#245c86;--deep:#173e59;--forest:#173e59;--bg:#f2f6fa}
:root[data-site-theme="slate"]{--green:#485a60;--deep:#303f45;--forest:#303f45;--bg:#f3f5f5}
:root[data-site-theme="blue"] .sidebar,:root[data-site-theme="slate"] .sidebar{background:var(--deep)}
:root[data-site-theme="blue"] .primary,:root[data-site-theme="slate"] .primary{background:var(--green)}
:root[data-site-theme="blue"] .top-title .top-eyebrow,:root[data-site-theme="slate"] .top-title .top-eyebrow{color:var(--green)}
:root[data-site-density="compact"] .wrap{padding-top:12px}
:root[data-site-density="compact"] .input-card,:root[data-site-density="compact"] .result-card{padding:14px}
:root[data-site-density="compact"] .workspace{gap:12px}

/* Klinik antropometri: yaşa bağlı baş çevresi alanı, kompakt ortak satır. */
.quick-growth-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 6px;align-items:end}
.quick-growth-bottom #quick-growth-head-wrap{display:block;min-width:0;line-height:1.25}
.quick-growth-bottom #quick-growth-head-wrap[hidden]{display:none!important}
.quick-growth-bottom #quick-growth-head,.quick-growth-bottom #quick-growth-reference{display:block;width:100%;min-width:0;height:29px;border:1px solid #d0dfd2;border-radius:6px;padding:3px 5px;margin:2px 0 0;background-color:#fff;color:#214e37;font-size:12px;line-height:1.2;box-sizing:border-box}
.quick-growth-bottom #quick-growth-reference{appearance:auto;background-image:none;margin:0}
.quick-growth-date-hint{font-size:10px;line-height:1.3;color:#58725e;align-self:center}
.quick-growth-bottom.has-head .quick-growth-date-hint{grid-column:1/-1}
#quick-growth-status{grid-column:1/-1;min-width:0}
#quick-growth-status:empty{display:none}

/* Üye teması: hesap tercihi, site varsayılanını yalnızca ilgili kullanıcı için geçersiz kılar. */
:root[data-site-theme="yellow"]{--green:#796015;--deep:#806318;--forest:#735b18;--bg:#fcf8e8;--pale:#fff9db;--yellow:#f7dc75}
:root[data-site-theme="pink"]{--green:#924064;--deep:#86365a;--forest:#78334f;--bg:#fff3f8;--pale:#fcecf4;--yellow:#ffd7e7}
:root[data-site-theme="orange"]{--green:#9b481e;--deep:#91451f;--forest:#813c1a;--bg:#fff5ea;--pale:#fff0dc;--yellow:#ffd38c}
:root:is([data-site-theme="yellow"],[data-site-theme="pink"],[data-site-theme="orange"],[data-site-theme="blue"],[data-site-theme="slate"]) .sidebar{background:var(--deep)}
:root:is([data-site-theme="yellow"],[data-site-theme="pink"],[data-site-theme="orange"],[data-site-theme="blue"],[data-site-theme="slate"]) .primary{background:var(--green)}
:root:is([data-site-theme="yellow"],[data-site-theme="pink"],[data-site-theme="orange"],[data-site-theme="blue"],[data-site-theme="slate"]) .top-title .top-eyebrow,:root:is([data-site-theme="yellow"],[data-site-theme="pink"],[data-site-theme="orange"],[data-site-theme="blue"],[data-site-theme="slate"]) .top-title .top-eyebrow>span+span{color:var(--green)}
:root:is([data-site-theme="yellow"],[data-site-theme="pink"],[data-site-theme="orange"],[data-site-theme="blue"],[data-site-theme="slate"]) .side-nav.active{background:color-mix(in srgb,var(--deep) 78%,white)}
.top-pill{position:relative}
.theme-picker{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:218px;max-width:calc(100vw - 24px);padding:10px;background:#fff;border:1px solid #d8e5d9;border-radius:10px;box-shadow:0 8px 24px #183d2320}
.theme-options{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:7px}
.theme-options button{display:flex;align-items:center;gap:5px;text-align:left;font-size:11px;border:1px solid #d8e5d9;background:#fff;border-radius:6px;padding:5px;color:#203d32}
.theme-options button span{width:16px;height:16px;background:var(--swatch);border-radius:50%;flex:none}
.theme-options button[data-theme="default"]{grid-column:1/-1}

:root:is([data-site-theme="yellow"],[data-site-theme="pink"],[data-site-theme="orange"],[data-site-theme="blue"],[data-site-theme="slate"]) .top-pill{background:color-mix(in srgb,var(--deep) 8%,white);border-color:color-mix(in srgb,var(--deep) 18%,white)}
:root:is([data-site-theme="yellow"],[data-site-theme="pink"],[data-site-theme="orange"],[data-site-theme="blue"],[data-site-theme="slate"]) .account-button,:root:is([data-site-theme="yellow"],[data-site-theme="pink"],[data-site-theme="orange"],[data-site-theme="blue"],[data-site-theme="slate"]) .header-doctor{color:var(--green)}
