/* =============================================================================
   Universal Studio — "Aqua Light" görünümü (macOS tarzı, açık tema)
   Tüm kurallar html.theme-light önekiyle: tema kapalıyken hiçbir şeyi etkilemez.
   ============================================================================= */
html.theme-light {
    --apple-bg: #f5f5f7;
    --apple-panel: rgba(255, 255, 255, 0.86);
    --apple-panel-border: rgba(0, 0, 0, 0.08);
    --apple-accent: #007aff;
    --apple-accent-hover: #0062cc;
    --apple-text: #1d1d1f;
    --apple-text-muted: #6e6e73;
    --l-field: #ffffff;
    --l-field-border: #d2d2d7;
    --l-fill: rgba(118, 118, 128, 0.12);
    --l-hover: rgba(0, 0, 0, 0.05);
    --l-sep: rgba(0, 0, 0, 0.08);
    --l-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    color-scheme: light;
}
html.theme-light body { background: var(--apple-bg); color: var(--apple-text); }
html.theme-light ::selection { background: rgba(0, 122, 255, .22); }
html.theme-light * { scrollbar-color: rgba(0, 0, 0, .22) transparent; scrollbar-width: thin; }
html.theme-light ::-webkit-scrollbar { width: 10px; height: 10px; }
html.theme-light ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .18); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
html.theme-light ::-webkit-scrollbar-track { background: transparent; }

/* ---------- Üst bar ---------- */
html.theme-light #app-topbar {
    background: rgba(250, 250, 252, 0.82); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--l-sep); box-shadow: none; color: var(--apple-text);
}
html.theme-light .tb-brand-text b { color: #1d1d1f; }
html.theme-light .tb-brand-text span { color: #86868b; }
html.theme-light .tb-group { background: transparent; border: none; box-shadow: none; }
html.theme-light .tb-btn { color: #3a3a3c; background: transparent; border: none; }
html.theme-light .tb-btn:hover { background: var(--l-hover); color: #1d1d1f; }
html.theme-light .tb-btn:active { background: rgba(0, 0, 0, .09); }
html.theme-light .tb-btn.active { background: rgba(0, 122, 255, .12); color: #007aff; }
html.theme-light .tb-btn.ghost-disabled, html.theme-light .tb-btn:disabled { color: #c7c7cc; }
html.theme-light .tb-btn.primary { background: #007aff; color: #fff; box-shadow: 0 1px 2px rgba(0, 122, 255, .3); }
html.theme-light .tb-btn.primary:hover { background: #0062cc; color: #fff; }
html.theme-light .tb-select, html.theme-light .us-pop select {
    background: var(--l-field); color: #1d1d1f; border: 1px solid var(--l-field-border); box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}
html.theme-light .tb-select:hover { border-color: #b8b8be; }
html.theme-light .tb-select:focus { border-color: #007aff; box-shadow: 0 0 0 3px rgba(0, 122, 255, .2); }
html.theme-light .tb-right { background: transparent !important; box-shadow: none !important; }
@media (max-width:1366px) { html.theme-light .tb-right { background: rgba(250, 250, 252, .96) !important; box-shadow: -14px 0 14px -10px rgba(0, 0, 0, .12) !important; } }
html.theme-light [data-tip]:hover::after { background: rgba(29, 29, 31, .92); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }

/* ---------- Sol çubuk ---------- */
html.theme-light #left-rail { background: rgba(240, 240, 244, 0.92); border-right: 1px solid var(--l-sep); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
html.theme-light .rail-btn { color: #6e6e73; background: transparent; }
html.theme-light .rail-btn:hover { background: var(--l-hover); color: #1d1d1f; }
html.theme-light .rail-btn.active, html.theme-light .rail-btn.active.ai-rail { background: rgba(0, 122, 255, .12); color: #007aff; box-shadow: none; }
html.theme-light .rail-divider { background: var(--l-sep); }

/* ---------- Çekmeceler ---------- */
html.theme-light .drawer-panel {
    background: var(--apple-panel); border: 1px solid var(--l-sep); color: #1d1d1f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .05);
}
html.theme-light .drawer-panel.pinned { box-shadow: none !important; border-right: 1px solid var(--l-sep); }
html.theme-light .drawer-resizer:hover, html.theme-light .drawer-resizer.resizing { background: rgba(0, 122, 255, .35); }
html.theme-light .panel-header { border-bottom: 1px solid var(--l-sep); }
html.theme-light .panel-title { color: #1d1d1f; }
html.theme-light .pin-btn { background: #fff; color: #3a3a3c; border: 1px solid var(--l-field-border); }
html.theme-light .pin-btn:hover { background: #f5f5f7; }
html.theme-light .pin-btn.active { background: rgba(0, 122, 255, .12) !important; color: #007aff !important; border-color: rgba(0, 122, 255, .4) !important; }

/* ---------- Form alanları ---------- */
html.theme-light .edit-row label, html.theme-light .toolbar-label, html.theme-light .dyn-check-row label, html.theme-light .dyn-color-row label { color: #6e6e73; }
html.theme-light .edit-row input[type="text"], html.theme-light .edit-row input[type="number"], html.theme-light .edit-row select, html.theme-light .edit-row textarea,
html.theme-light .legend-item-row input[type="text"], html.theme-light textarea, html.theme-light #right-drawer textarea#code-input {
    background: var(--l-field); color: #1d1d1f; border: 1px solid var(--l-field-border); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .03);
}
html.theme-light .edit-row input:focus, html.theme-light .edit-row select:focus, html.theme-light .edit-row textarea:focus, html.theme-light textarea:focus {
    border-color: #007aff; box-shadow: 0 0 0 3px rgba(0, 122, 255, .18); outline: none;
}
html.theme-light #right-drawer textarea#code-input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: #fbfbfd; }
html.theme-light input[type="range"], html.theme-light input[type="checkbox"], html.theme-light input[type="radio"] { accent-color: #007aff; }
html.theme-light .font-val-badge, html.theme-light .dyn-count { color: #007aff; background: transparent; }
html.theme-light .sub-panel-box { background: rgba(0, 0, 0, .025); border: 1px solid var(--l-sep); }
html.theme-light .sub-panel-header, html.theme-light .dyn-hdr { color: #007aff; border-color: var(--l-sep); }
html.theme-light .dyn-hint, html.theme-light .dyn-mixed { color: #86868b; }
html.theme-light .dyn-btn, html.theme-light .mirror-btn { background: #fff; color: #1d1d1f; border: 1px solid var(--l-field-border); }
html.theme-light .dyn-btn:hover, html.theme-light .mirror-btn:hover { background: #f5f5f7; }
html.theme-light .mirror-btn.active { background: rgba(0, 122, 255, .12); color: #007aff; border-color: rgba(0, 122, 255, .4); }
html.theme-light .color-preset-chip { border-color: rgba(0, 0, 0, .12); }
html.theme-light button.action-btn { background: #007aff; color: #fff; box-shadow: 0 1px 2px rgba(0, 122, 255, .3); }
html.theme-light button.action-btn:hover { background: #0062cc; }

/* ---------- Kütüphane ---------- */
html.theme-light .library-search-box { background: var(--l-fill); color: #1d1d1f; border: 1px solid transparent; }
html.theme-light .library-search-box:focus { background: #fff; border-color: #007aff; box-shadow: 0 0 0 3px rgba(0, 122, 255, .18); }
html.theme-light .library-search-box::placeholder { color: #8e8e93; }
html.theme-light .lib-item-card { background: #fff; border: 1px solid rgba(0, 0, 0, .07); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
html.theme-light .lib-item-card:hover { border-color: rgba(0, 122, 255, .45); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transform: translateY(-1px); }
html.theme-light .lib-card-preview-box { background: #fafafc; border-color: rgba(0, 0, 0, .05); }
html.theme-light .lib-card-top span, html.theme-light .lib-card-top { color: #1d1d1f; }
html.theme-light .lib-card-top small, html.theme-light .lib-card-desc { color: #86868b; }
html.theme-light .lib-category-title { color: #6e6e73; }
html.theme-light .us-lib-views { background: var(--l-fill) !important; border: none !important; }
html.theme-light .us-lib-views button { color: #3a3a3c !important; }
html.theme-light .us-lib-views button.on { background: #fff !important; color: #1d1d1f !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
html.theme-light .us-lib-domains button { background: #fff !important; border: 1px solid rgba(0, 0, 0, .1) !important; color: #3a3a3c !important; }
html.theme-light .us-lib-domains button.mine { border-color: rgba(0, 122, 255, .5) !important; }
html.theme-light .us-lib-domains button.on { background: #007aff !important; border-color: #007aff !important; color: #fff !important; }
html.theme-light .us-domain-h { color: #1d1d1f !important; border-top-color: var(--l-sep) !important; }
html.theme-light .us-sec-h { color: #3a3a3c !important; }
html.theme-light .us-sec-h:hover { background: var(--l-hover) !important; }
html.theme-light .us-sec-h small, html.theme-light .us-caret { color: #86868b !important; }
html.theme-light .us-star { color: #aeaeb2; }
html.theme-light .us-star.on { color: #ff9f0a; }
html.theme-light .us-empty { color: #6e6e73 !important; }
html.theme-light .us-hint-box { background: rgba(0, 122, 255, .07) !important; border-color: rgba(0, 122, 255, .25) !important; color: #1d1d1f !important; }

/* ---------- Kod paneli ---------- */
html.theme-light .ai-checks label { color: #3a3a3c; }
html.theme-light .ai-examples button { background: #fff; color: #1d1d1f; border: 1px solid var(--l-field-border); }
html.theme-light .ai-examples button:hover { background: #f5f5f7; border-color: #b8b8be; }
html.theme-light .ai-examples span { color: #86868b !important; }
html.theme-light #parse-status { color: #6e6e73; }
html.theme-light #parse-status.ok { color: #248a3d; }
html.theme-light #parse-status.err { color: #d70015; }
html.theme-light #us-code-badge { color: #007aff !important; }
html.theme-light .us-det { background: #fff !important; border: 1px solid rgba(0, 0, 0, .1) !important; color: #1d1d1f !important; }
html.theme-light .us-det:hover { border-color: #007aff !important; }
html.theme-light .us-det small { color: #86868b !important; }
html.theme-light .us-chk-line { color: #3a3a3c !important; }

/* ---------- Menüler ---------- */
html.theme-light #context-menu, html.theme-light #us-more-menu, html.theme-light .us-pop {
    background: rgba(250, 250, 252, .92) !important; color: #1d1d1f !important; border: .5px solid rgba(0, 0, 0, .14) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .16), 0 0 0 .5px rgba(0, 0, 0, .04) !important; backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
}
html.theme-light .ctx-item, html.theme-light .us-mi { color: #1d1d1f !important; }
html.theme-light .ctx-item:hover, html.theme-light .us-mi:hover { background: #007aff !important; color: #fff !important; }
html.theme-light .ctx-item.disabled { color: #c7c7cc !important; }
html.theme-light .ctx-item:hover .ctx-shortcut, html.theme-light .us-mi:hover kbd { color: rgba(255, 255, 255, .85) !important; }
html.theme-light .ctx-shortcut, html.theme-light .us-mi kbd { color: #8e8e93 !important; }
html.theme-light .ctx-divider, html.theme-light .us-md { background: rgba(0, 0, 0, .1) !important; }

/* ---------- Pencereler ---------- */
html.theme-light .us-modal-back { background: rgba(0, 0, 0, .22) !important; }
html.theme-light .us-modal { background: rgba(255, 255, 255, .97) !important; color: #1d1d1f !important; border: .5px solid rgba(0, 0, 0, .12) !important; box-shadow: 0 30px 80px rgba(0, 0, 0, .22), 0 0 0 .5px rgba(0, 0, 0, .05) !important; }
html.theme-light .us-modal-head { border-bottom-color: var(--l-sep) !important; color: #1d1d1f !important; }
html.theme-light .us-x { color: #8e8e93; }
html.theme-light .us-lbl { color: #6e6e73 !important; }
html.theme-light .us-in, html.theme-light .us-preview-tools select { background: #fff !important; color: #1d1d1f !important; border: 1px solid var(--l-field-border) !important; }
html.theme-light .us-in:focus { border-color: #007aff !important; box-shadow: 0 0 0 3px rgba(0, 122, 255, .18); outline: none; }
html.theme-light .us-seg { background: var(--l-fill) !important; border: none !important; }
html.theme-light .us-seg button { color: #3a3a3c !important; }
html.theme-light .us-seg button.on { background: #fff !important; color: #1d1d1f !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
html.theme-light .us-seg button:disabled { color: #c7c7cc !important; }
html.theme-light .us-fmt, html.theme-light .us-tpl, html.theme-light .us-welcome-grid button, html.theme-light .us-chip {
    background: #fff !important; color: #1d1d1f !important; border: 1px solid rgba(0, 0, 0, .1) !important;
}
html.theme-light .us-fmt small, html.theme-light .us-tpl small, html.theme-light .us-welcome-grid small { color: #86868b !important; }
html.theme-light .us-fmt:hover, html.theme-light .us-tpl:hover, html.theme-light .us-welcome-grid button:hover { border-color: #007aff !important; background: rgba(0, 122, 255, .04) !important; }
html.theme-light .us-fmt.on { border-color: #007aff !important; background: rgba(0, 122, 255, .08) !important; box-shadow: 0 0 0 1px #007aff inset; }
html.theme-light .us-chip.on { background: rgba(0, 122, 255, .1) !important; border-color: #007aff !important; }
html.theme-light .us-btn.ghost { background: rgba(0, 0, 0, .05) !important; color: #1d1d1f !important; }
html.theme-light .us-btn.ghost:hover { background: rgba(0, 0, 0, .09) !important; }
html.theme-light .us-btn.primary { background: #007aff !important; color: #fff !important; }
html.theme-light .us-btn.primary:hover { background: #0062cc !important; }
html.theme-light .us-preview-pane { background: repeating-conic-gradient(#f0f0f3 0% 25%, #fafafc 0% 50%) 50%/20px 20px !important; }
html.theme-light .us-preview-tools, html.theme-light .us-preview-info { background: rgba(255, 255, 255, .85) !important; color: #3a3a3c !important; border-bottom: 1px solid var(--l-sep); }
html.theme-light .us-preview img { box-shadow: 0 8px 30px rgba(0, 0, 0, .14) !important; }
html.theme-light .us-side { border-left-color: var(--l-sep) !important; }
html.theme-light .us-mini-check { background: #f5f5f7 !important; color: #1d1d1f !important; }
html.theme-light .us-mini-check a { color: #007aff !important; }
html.theme-light .us-check, html.theme-light .us-chk-row { color: #1d1d1f !important; }
html.theme-light .us-chk-item { color: #3a3a3c !important; }
html.theme-light .us-chk-item button, html.theme-light .us-uc button { background: rgba(0, 0, 0, .06) !important; color: #1d1d1f !important; }
html.theme-light .us-chk-head, html.theme-light .us-chk-note, html.theme-light .us-hint { color: #86868b !important; }
html.theme-light .us-msg { color: #6e6e73 !important; }
html.theme-light .us-msg.err { color: #d70015 !important; }
html.theme-light .us-tpl-disc { color: #6e6e73 !important; }
html.theme-light .us-set-tabs { border-right-color: var(--l-sep) !important; }
html.theme-light .us-set-tabs button { color: #3a3a3c !important; }
html.theme-light .us-set-tabs button.on { background: #007aff !important; color: #fff !important; }
html.theme-light .us-set-row { border-bottom-color: var(--l-sep) !important; }
html.theme-light .us-set-row small { color: #86868b !important; }
html.theme-light .us-set-foot { border-top-color: var(--l-sep) !important; }
html.theme-light .us-onb-hero span, html.theme-light .us-welcome-hero span { color: #6e6e73 !important; }
html.theme-light .us-keys td { color: #3a3a3c !important; border-bottom-color: var(--l-sep) !important; }
html.theme-light .us-keys td:last-child { color: #1d1d1f !important; }
html.theme-light .us-keys kbd, html.theme-light .us-tips code { background: #f5f5f7 !important; color: #1d1d1f !important; border-color: rgba(0, 0, 0, .14) !important; }
html.theme-light .us-tips { color: #3a3a3c !important; }

/* Uygulama içi diyaloglar */
html.theme-light .usd-back { background: rgba(0, 0, 0, .2) !important; }
html.theme-light .usd-card { background: rgba(255, 255, 255, .98) !important; color: #1d1d1f !important; border: .5px solid rgba(0, 0, 0, .12) !important; box-shadow: 0 30px 80px rgba(0, 0, 0, .22) !important; }
html.theme-light .usd-msg { color: #6e6e73 !important; }
html.theme-light .usd-msg b { color: #1d1d1f !important; }
html.theme-light .usd-input { background: #fff !important; color: #1d1d1f !important; border-color: var(--l-field-border) !important; }
html.theme-light .usd-btn.cancel { background: rgba(0, 0, 0, .06) !important; color: #1d1d1f !important; }
html.theme-light .usd-btn.cancel:hover { background: rgba(0, 0, 0, .1) !important; }
html.theme-light .usd-btn:focus-visible { outline-color: rgba(0, 122, 255, .6) !important; }

/* Hakkında */
html.theme-light #about-card { background: rgba(255, 255, 255, .97); color: #1d1d1f; border: .5px solid rgba(0, 0, 0, .12); box-shadow: 0 30px 80px rgba(0, 0, 0, .22); }
html.theme-light .about-hero h3 { color: #fff; }
html.theme-light .about-dev-name, html.theme-light .about-row .v { color: #1d1d1f; }
html.theme-light .about-hero p { color: rgba(255,255,255,.88); }
html.theme-light .about-row .k, html.theme-light .about-dev .k { color: #6e6e73; }
html.theme-light .about-row { border-bottom-color: var(--l-sep); }
html.theme-light .about-x { color: #fff; background: rgba(0, 0, 0, .18); }
html.theme-light .about-close { color: #fff; background: #007aff; }
html.theme-light .about-close:hover { background: #0062cc; }

/* ---------- Tuval üstü öğeler ---------- */
html.theme-light #studio-toast { background: rgba(255, 255, 255, .96); color: #1d1d1f; border: .5px solid rgba(0, 0, 0, .12); box-shadow: 0 12px 40px rgba(0, 0, 0, .14); }
html.theme-light #studio-toast button { background: rgba(0, 122, 255, .1); color: #007aff; border: none; }
html.theme-light #studio-toast button:hover { background: rgba(0, 122, 255, .18); }
html.theme-light #us-tabbar { background: rgba(250, 250, 252, .9) !important; border: .5px solid rgba(0, 0, 0, .12) !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .1) !important; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
html.theme-light .us-tab { color: #3a3a3c !important; }
html.theme-light .us-tab:hover { background: var(--l-hover) !important; color: #1d1d1f !important; }
html.theme-light .us-tab.active { background: #fff !important; color: #1d1d1f !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
html.theme-light .us-tab-add { color: #8e8e93 !important; }
html.theme-light #zoom-dock { background: transparent; border: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.theme-light .zoom-cluster { background: rgba(250, 250, 252, .9); border: .5px solid rgba(0, 0, 0, .12); box-shadow: 0 8px 24px rgba(0, 0, 0, .1); color: #1d1d1f; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
html.theme-light .zoom-cluster button { color: #3a3a3c; background: transparent; }
html.theme-light .zoom-cluster button:hover { background: var(--l-hover); color: #1d1d1f; }
html.theme-light #zoom-badge { color: #1d1d1f; }

/* ---------- Üst bar açılır menüleri (theme.js) ---------- */
.us-pop-btn { display: inline-flex; align-items: center; gap: 5px; font: 600 12.5px -apple-system, "SF Pro Text", Inter, sans-serif; padding: 0 10px !important; width: auto !important; }
.us-pop-btn .chev { opacity: .55; font-size: 9px; margin-left: 1px; }
.us-pop { position: fixed; z-index: 2700; display: none; min-width: 250px; padding: 12px; border-radius: 12px; background: #1c1e24; color: #e5e7eb; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); font: 13px -apple-system, "SF Pro Text", Inter, sans-serif; }
.us-pop .pop-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .6; margin: 8px 2px 6px; }
.us-pop .pop-l:first-child { margin-top: 0; }
.us-pop select { width: 100%; height: 32px; border-radius: 8px; padding: 0 8px; font: 13px -apple-system, "SF Pro Text", Inter, sans-serif; }
.us-pop .pop-row { display: flex; gap: 6px; }
.us-pop .pop-row .tb-btn { flex: 1; width: auto; height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; font: 600 12px -apple-system, "SF Pro Text", Inter, sans-serif; }
.us-pop .pop-row .tb-btn svg { width: 16px; height: 16px; }
html.theme-light .us-pop .pop-row .tb-btn { background: rgba(0, 0, 0, .05); color: #1d1d1f; }
html.theme-light .us-pop .pop-row .tb-btn:hover { background: rgba(0, 0, 0, .09); }

/* Uygulama adı: sade araç çubuğunda yer var */
@media (min-width: 1180px) { html.theme-light .tb-brand-text { display: flex; } }
html.theme-light .us-mi { font-weight: 500 !important; }

/* ---------- Kod paneli: öz önde, ayrıntılar "Options" altında (iki tema) ---------- */
#us-example-select { width: 100%; height: 34px; border-radius: 9px; padding: 0 10px; margin: 2px 0 8px; font: 13px -apple-system, "SF Pro Text", Inter, sans-serif; cursor: pointer; }
#us-code-opts { margin-top: 12px; border-top: 1px solid rgba(127, 127, 127, .2); padding-top: 4px; }
#us-code-opts > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 2px; font: 600 13px -apple-system, "SF Pro Text", Inter, sans-serif; user-select: none; }
#us-code-opts > summary::-webkit-details-marker { display: none; }
#us-code-opts > summary::before { content: '›'; display: inline-block; width: 12px; font-size: 16px; line-height: 1; transition: transform .15s; opacity: .6; }
#us-code-opts[open] > summary::before { transform: rotate(90deg); }
#us-code-opts > summary small { margin-left: auto; font-weight: 500; opacity: .55; font-size: 11.5px; }
.us-opts-body { padding: 4px 0 6px; }
.us-opts-body .us-code-extra { margin-top: 6px; }
.us-opts-body .us-code-extra .edit-row { margin-bottom: 10px; }
.us-opts-body .ai-checks { margin-top: 8px; }
html.theme-light #us-example-select { background: #fff; color: #1d1d1f; border: 1px solid #d2d2d7; }
html:not(.theme-light) #us-example-select { background: #1e2127; color: #e5e7eb; border: 1px solid rgba(255, 255, 255, .12); }
html.theme-light #us-code-opts > summary { color: #1d1d1f; }
html.theme-light #us-code-opts { border-top-color: rgba(0, 0, 0, .08); }

/* ---------- Sekmeli denetleyici (her iki tema) ---------- */
.us-insp-tabs { display: flex; gap: 2px; padding: 3px; margin: 0 0 14px; border-radius: 10px; background: #24262c; position: sticky; top: 0; z-index: 3; }
.us-insp-tabs button { flex: 1; border: none; background: none; color: #cbd5e1; font: 600 12.5px -apple-system, "SF Pro Text", Inter, sans-serif; padding: 7px 0; border-radius: 8px; cursor: pointer; }
.us-insp-tabs button.on { background: #0a84ff; color: #fff; }
.us-insp-advanced { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(127,127,127,.2); }
html.theme-light .us-insp-tabs { background: #ebebf0; }
html.theme-light .us-insp-tabs button { color: #3a3a3c; }
html.theme-light .us-insp-tabs button.on { background: #fff; color: #1d1d1f; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
html.theme-light .about-mail { color: #0066cc !important; }

/* ---------- Panel başlıkları: üç panelde aynı düzen (başlık · Pin · ✕) ---------- */
.panel-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.panel-close { min-width: 30px; text-align: center; font-weight: 700; }

/* ---------- Üst araç çubuğu ipuçları ---------- */
#app-topbar [data-tip]:hover::after, #app-topbar [data-tip]:hover::before { display: none !important; }   /* eski, kırpılan ipucu */
#us-tip { position: fixed; z-index: 100000; left: 0; top: 0; max-width: 300px; padding: 6px 10px; border-radius: 8px;
  background: rgba(29, 29, 31, 0.94); color: #fff; font: 600 12px/1.35 -apple-system, "SF Pro Text", Inter, sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(-3px);
  transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s; white-space: normal; }
#us-tip.show { opacity: 1; visibility: visible; transform: none; transition: opacity .12s ease, transform .12s ease; }
html:not(.theme-light) #us-tip { background: rgba(245, 245, 247, 0.96); color: #1d1d1f; }

/* ---------- Koyu tema: tuval de koyu (renkler uyarlanarak ters çevrilir; dışa aktarılan dosyalar etkilenmez) ---------- */
html:not(.theme-light):not(.canvas-paper) #viewport { background: #121316 !important; }
html:not(.theme-light):not(.canvas-paper) svg#svg-canvas { filter: invert(0.9) hue-rotate(180deg); }
html:not(.theme-light):not(.canvas-paper) svg#svg-canvas image,
html:not(.theme-light):not(.canvas-paper) svg#svg-canvas foreignObject img { filter: invert(1) hue-rotate(180deg); }   /* fotoğraflar orijinal renklerinde */
