/* Fatih Çay Evi — sistem geneli tema katmanı (R571). */
:root{
  --theme-primary:#741722;
  --theme-primary-dark:#4c0d14;
  --theme-primary-bright:#8f2028;
  --theme-accent:#e3b84c;
  --theme-page:#f8f1e7;
  --theme-page-glow:#fffdf9;
  --theme-surface:#fffdf9;
  --theme-surface-2:#f4ece4;
  --theme-input:#fff;
  --theme-text:#271d1f;
  --theme-muted:#77686a;
  --theme-border:#eadfd3;
  --theme-shadow:0 12px 30px rgba(67,28,25,.1);
  --theme-on-primary:#fff;
  --theme-header-text:#fff;
  --theme-header-muted:rgba(255,255,255,.7);
}

:root[data-color-theme="graphite"]{
  --theme-primary:#642d35;--theme-primary-dark:#2b2225;--theme-primary-bright:#88404a;--theme-accent:#c9ab70;
}
:root[data-color-theme="gold"]{
  --theme-primary:#795219;--theme-primary-dark:#4b310e;--theme-primary-bright:#a77927;--theme-accent:#efc861;
}
:root[data-color-theme="coffee"]{
  --theme-primary:#654032;--theme-primary-dark:#3e241c;--theme-primary-bright:#8b5b43;--theme-accent:#d9aa3b;
}
:root[data-color-theme="navy"]{
  --theme-primary:#244a70;--theme-primary-dark:#162b45;--theme-primary-bright:#356d9a;--theme-accent:#e0b64d;
}
:root[data-color-theme="mono"]{
  --theme-primary:#292929;--theme-primary-dark:#111;--theme-primary-bright:#4a4a4a;--theme-accent:#e2e2e2;
}
:root[data-color-theme="emerald"]{
  --theme-primary:#28624f;--theme-primary-dark:#173d31;--theme-primary-bright:#3b826b;--theme-accent:#d8b85f;
}
:root[data-color-theme="orange"]{
  --theme-primary:#a65324;--theme-primary-dark:#633018;--theme-primary-bright:#cf7135;--theme-accent:#f0bd63;
}

:root[data-effective-theme="dark"]{
  --theme-page:#171315;
  --theme-page-glow:#211b1d;
  --theme-surface:#241e20;
  --theme-surface-2:#30282b;
  --theme-input:#2b2426;
  --theme-text:#f5ece8;
  --theme-muted:#bcaeb0;
  --theme-border:#4a3b3f;
  --theme-shadow:0 14px 34px rgba(0,0,0,.28);
}
:root[data-effective-theme="dark"][data-color-theme="graphite"]{--theme-page:#151416;--theme-page-glow:#211f22;--theme-surface:#242225;--theme-surface-2:#302d31;--theme-input:#2a282c;--theme-border:#49454b}
:root[data-effective-theme="dark"][data-color-theme="gold"]{--theme-page:#18150f;--theme-page-glow:#242016;--theme-surface:#29241a;--theme-surface-2:#342e20;--theme-input:#302a1e;--theme-border:#50462e}
:root[data-effective-theme="dark"][data-color-theme="coffee"]{--theme-page:#171210;--theme-page-glow:#241b18;--theme-surface:#29201d;--theme-surface-2:#352923;--theme-input:#302520;--theme-border:#514039}
:root[data-effective-theme="dark"][data-color-theme="navy"]{--theme-page:#101720;--theme-page-glow:#172331;--theme-surface:#1b2836;--theme-surface-2:#243547;--theme-input:#213142;--theme-border:#38516a}
:root[data-effective-theme="dark"][data-color-theme="mono"]{--theme-page:#0f0f0f;--theme-page-glow:#171717;--theme-surface:#1d1d1d;--theme-surface-2:#282828;--theme-input:#242424;--theme-border:#414141;--theme-text:#f7f7f7;--theme-muted:#bdbdbd}
:root[data-effective-theme="dark"][data-color-theme="emerald"]{--theme-page:#0d1915;--theme-page-glow:#13251f;--theme-surface:#192c25;--theme-surface-2:#223a31;--theme-input:#1e342c;--theme-border:#35594c}
:root[data-effective-theme="dark"][data-color-theme="orange"]{--theme-page:#17110e;--theme-page-glow:#251a15;--theme-surface:#2a201b;--theme-surface-2:#382920;--theme-input:#32251f;--theme-border:#5b4032}

/* Eski sayfalardaki ortak değişkenleri tek tema diline bağlar. */
:root{
  --wine:var(--theme-primary);--wine-dark:var(--theme-primary-dark);
  --burgundy-950:var(--theme-primary-dark);--burgundy-900:var(--theme-primary-dark);
  --burgundy-800:var(--theme-primary);--burgundy-700:var(--theme-primary-bright);
  --red:var(--theme-primary);--red2:var(--theme-primary-bright);
  --gold:var(--theme-accent);--gold-500:var(--theme-accent);--gold-400:color-mix(in srgb,var(--theme-accent) 76%,#fff);
  --cream:var(--theme-page);--cream-50:var(--theme-surface);--cream-100:var(--theme-page-glow);
  --paper:var(--theme-surface);--ink:var(--theme-text);--muted:var(--theme-muted);--line:var(--theme-border);--shadow:var(--theme-shadow);
}

html,body{background-color:var(--theme-page);color:var(--theme-text)}
body{
  background-image:radial-gradient(circle at 10% 0,color-mix(in srgb,var(--theme-accent) 12%,transparent),transparent 25rem),linear-gradient(180deg,var(--theme-page-glow),var(--theme-page));
  transition:background-color .2s ease,color .2s ease;
}

/* Marka alanı seçilen vurgu rengini kullanır. */
.app-header,.hero,.menu-hero{
  color:var(--theme-header-text)!important;
  background:radial-gradient(circle at 12% 0,color-mix(in srgb,var(--theme-accent) 24%,transparent),transparent 12rem),linear-gradient(145deg,var(--theme-primary-dark),var(--theme-primary) 62%,var(--theme-primary-bright))!important;
}
body>footer{background:linear-gradient(140deg,var(--theme-primary-dark),var(--theme-primary))!important}
.brand-copy .eyebrow,.live-time strong{color:color-mix(in srgb,var(--theme-accent) 78%,#fff)!important}
.brand-copy h1,.app-header a,.app-header button,.hero,.menu-hero{color:var(--theme-header-text)}
.live-time span{color:var(--theme-header-muted)!important}
.panel-menu-list{border-color:var(--theme-border)!important;background:var(--theme-surface)!important;box-shadow:var(--theme-shadow)!important}
.panel-menu-list a,.panel-menu-list span{color:var(--theme-text)!important}.panel-menu-list a:hover{background:var(--theme-surface-2)!important}.panel-menu-list .is-current{color:#fff!important;background:var(--theme-primary)!important}

/* Ana yüzeyler. Durum kartları ve renkli masa kartları bu listede özellikle yoktur. */
:is(.center-section,.panel,.panel-card,.control-card,.ledger-card,.balances,.card,.history-card,.notification-card,.profile-request-card,.settings-section,.layout-setting-section,.summary-grid article,.daily-summary article,.balance,.menu-toolbar,.product-card,.login-card,.price-dialog-card,.cost-groups-dialog,.product-settings-host,.cash-settings-host,.internal-pos-card,.receipt-settings-preview,.sound-setting,.region-settings-card){
  border-color:var(--theme-border)!important;
  color:var(--theme-text);
  background:var(--theme-surface)!important;
  box-shadow:var(--theme-shadow);
}
:is(.settings-dialog form,.dialog-card,dialog>form,.management-dialog-card){color:var(--theme-text);background-color:var(--theme-surface)!important}

:is(input:not([type="checkbox"]):not([type="radio"]),textarea,select,.search-box,.product-search,.input-wrap){
  border-color:var(--theme-border)!important;
  color:var(--theme-text)!important;
  background-color:var(--theme-input)!important;
}
input::placeholder,textarea::placeholder{color:color-mix(in srgb,var(--theme-muted) 78%,transparent)!important}
option{color:var(--theme-text);background:var(--theme-input)}

:is(.secondary,.secondary-button,.soft,.date-control button,.category-tabs button:not(.active),.category-tab:not(.is-active),.close,.dialog-close,.definition-close-button){
  border-color:var(--theme-border)!important;
  color:var(--theme-text)!important;
  background-color:var(--theme-surface-2)!important;
}
:is(.primary,.primary-button,.dialog-primary,.settings-save,.login-button,.submit-order,.management-create-button){
  color:var(--theme-on-primary)!important;
  background:linear-gradient(135deg,var(--theme-primary-bright),var(--theme-primary-dark))!important;
}

:is(.kicker,.dialog-kicker,.eyebrow,.section-heading p,.heading p,.section-head p,.summary-grid b,.product-card strong,.product-price,.section-title){color:var(--theme-primary)!important}
:is(.dialog-copy,.empty,.lead,.card-copy small,.section-heading small,label small,.menu-note){color:var(--theme-muted)}

/* Karanlık modda eski sabit açık yüzeyleri güvenli şekilde dönüştürür. */
:root[data-effective-theme="dark"] :is(.table-region-row,.region-table-row,.category-row,.cash-group-row,.movement,.order-item:not(.is-gift),.detail-items article,.content-item,.product,.price-product-card,.bundle-item,.cost-product,.sound-setting,.setting-group,.theme-setting-panel,.theme-preview-card,.profile-request-row){
  border-color:var(--theme-border)!important;
  color:var(--theme-text)!important;
  background:var(--theme-surface)!important;
}
:root[data-effective-theme="dark"] :is(.stats article,.detail-meta div,.detail-payments div,.order-summary,.preview,.lock-notice,.request-count,.profile-change-grid>span,.profile-request-empty,.weather,.receipt-options fieldset,.region-choices button,.permission-grid label){
  border-color:var(--theme-border)!important;
  color:var(--theme-text);
  background:var(--theme-surface-2)!important;
}
:root[data-effective-theme="dark"] dialog::backdrop{background:rgba(4,3,4,.78)}
:root[data-effective-theme="dark"] img:not(.brand-logo):not(.settings-receipt-logo){filter:saturate(.94)}

/* Yönetim ve Tanımlamalar kartları karanlık modda seçilen temanın koyu yüzeyini kullanır. */
:root[data-effective-theme="dark"] .card-grid:not(.card-grid-daily) .center-card{
  border-color:color-mix(in srgb,var(--theme-primary) 32%,var(--theme-border))!important;
  color:#fff!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--theme-surface-2) 88%,var(--theme-primary)),var(--theme-surface))!important;
  box-shadow:0 9px 22px rgba(0,0,0,.2)!important;
}
:root[data-effective-theme="dark"] .card-grid:not(.card-grid-daily) .center-card strong{color:#fff!important}
:root[data-effective-theme="dark"] .card-grid:not(.card-grid-daily) .center-card small{color:var(--theme-muted)!important}
:root[data-effective-theme="dark"] .card-grid:not(.card-grid-daily) .center-card .arrow{color:color-mix(in srgb,#fff 56%,transparent)!important}
:root[data-effective-theme="dark"] .card-grid:not(.card-grid-daily) .center-card:hover{border-color:color-mix(in srgb,var(--theme-primary-bright) 68%,var(--theme-border))!important}

@media(prefers-reduced-motion:reduce){body{transition:none}}

/* R545 — iç kartlı modalların şeffaf dış kabuğunu ve gizli çubukları koru. */
:root dialog.sensitive-pin-dialog,:root #movementDialog{background:transparent!important;border-radius:20px!important}
:root .sensitive-pin-dialog form{border-radius:20px!important}
:root #movementDialog>.dialog-card{border-radius:18px!important}
:root dialog:has(>.dialog-card){background:transparent!important;border-radius:18px}
:root:not(.definitions-settings-mode) dialog:has(>.settings-dialog){background:transparent!important}
:root :is(html,body,dialog,dialog *,main,main *,#fceNumberPad){scrollbar-width:none!important;-ms-overflow-style:none!important}
:root::-webkit-scrollbar,:root *::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

/* R543 — yönetici PIN penceresi ve ortak numerik tuş takımı. */
:root .sound-setting-actions .sound-primary-action{background:linear-gradient(135deg,var(--theme-primary-bright),var(--theme-primary-dark))!important;color:var(--theme-on-primary)!important}
:root .sound-setting-actions .sound-secondary-action{background:var(--theme-surface-2)!important;color:var(--theme-text)!important}
:root .sound-setting-copy>i{background:var(--theme-surface-2)!important;color:var(--theme-text)!important}
:root .sound-setting-actions :is(button,label):focus-visible{outline-color:var(--theme-accent)!important}
:root.definitions-settings-mode,:root.definitions-settings-mode body{background:var(--theme-surface)!important;background-image:none!important}
:root.definitions-settings-mode .cash-settings-modal{inset:0;margin:0;width:100%;max-width:100%;height:100%;max-height:100%;padding:0;border:0;border-radius:0;background:var(--theme-surface)!important}
:root.definitions-settings-mode .cash-settings-modal::backdrop{background:transparent!important;backdrop-filter:none!important}
:root.definitions-settings-mode .cash-settings-modal .settings-dialog{box-sizing:border-box;width:100%;max-width:100%;height:100%!important;max-height:100%!important;margin:0;padding:20px;border:0;border-radius:0;box-shadow:none;background:var(--theme-surface)!important}
:root.definitions-settings-mode .settings-menu button{background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
:root .sensitive-pin-dialog form{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
:root .sensitive-pin-dialog :is(h2,label){color:var(--theme-text)!important}
:root .sensitive-pin-dialog .pin-copy{color:var(--theme-muted)!important}
:root .sensitive-pin-dialog .pin-kicker{color:var(--theme-accent)!important}
:root .sensitive-pin-dialog .pin-close{color:var(--theme-muted)!important;background:transparent!important}
:root .sensitive-pin-dialog :is(.pin-icon,.pin-submit){background:linear-gradient(145deg,var(--theme-primary-bright),var(--theme-primary-dark))!important;color:var(--theme-on-primary)!important}
:root #fceNumberPad{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
:root #fceNumberPad button{background:var(--theme-input)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
:root #fceNumberPad button:active{background:var(--theme-surface-2)!important}
:root #fceNumberPad button:focus-visible{outline-color:var(--theme-accent)!important}
:root #fceNumberPad button[data-key="clear"]{background:var(--theme-surface-2)!important;color:var(--theme-text)!important}
:root #fceNumberPad button[data-key="done"]{background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;border-color:var(--theme-primary)!important}

/* R541 — bütün hazır temalarda ortak panel, kart ve metin yüzeyleri. */
:root:not([data-effective-theme="dark"]):not([data-color-theme="classic"]):not([data-color-theme="custom"]){
 --theme-page:color-mix(in srgb,var(--theme-primary) 7%,#faf8f3);
 --theme-page-glow:color-mix(in srgb,var(--theme-primary) 3%,#fffefa);
 --theme-surface:color-mix(in srgb,var(--theme-primary) 3%,#fffefa);
 --theme-surface-2:color-mix(in srgb,var(--theme-primary) 9%,#fffefa);
 --theme-border:color-mix(in srgb,var(--theme-primary) 20%,#e7e1d9);
}
:root :is(.stock-card,.category-card,.menu-product-card,.price-product-card,.bundle-item,.cost-product,.content-item,.history-row,.movement-item,.customer-card,.account-card,.staff-card,.personnel-card,.notification-item,.center-card,.category-row,.cash-group-row,.product-row){
 background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
}
:root :is(.stock-title-row strong,.movement-copy strong,.center-card strong,.product-card strong,.category-row strong,.stock-quantity){color:var(--theme-text)!important}
:root :is(.center-card small,.stock-note,.movement-copy span){color:var(--theme-muted)!important}
:root .card-grid-daily .center-card{background:linear-gradient(145deg,var(--theme-primary-dark),var(--theme-primary))!important;color:var(--theme-on-primary)!important}
:root .card-grid-daily .center-card strong{color:var(--theme-on-primary)!important}
:root .card-grid-daily .center-card small{color:color-mix(in srgb,var(--theme-on-primary) 75%,transparent)!important}
:root :is(dialog,.modal-content,.modal-card,.modal-panel,.dialog-content,.dialog-body,.dialog-footer,.dialog-header,.product-settings-host-heading,.logo-field,.tea-definition-fields>label,.setting-toggle,.paper-width-field,.password-request-row,.conversion-preview,.dialog-summary,.empty-copy,.instagram-input,.tea-number-input){background:var(--theme-surface)!important;color:var(--theme-text);border-color:var(--theme-border)!important}
:root :is(.icon-button:not(.is-danger),.layout-row-actions button,.category-row button){background:var(--theme-surface-2)!important;color:var(--theme-text);border-color:var(--theme-border)!important}
:root[data-effective-theme="dark"] :is(h2,h3,.section-title,.section-heading h2,.dialog-heading h2,.settings-dialog label,.field-grid label>span,.dialog-field>span){color:var(--theme-text)!important}
:root[data-effective-theme="dark"] :is(.kicker,.dialog-kicker,.section-heading p,.heading p,.section-head p){color:var(--theme-accent)!important}
:root[data-effective-theme="dark"] .stock-card.is-critical{border-color:#c69239!important}
:root[data-effective-theme="dark"] .stock-card.is-empty{border-color:#cd5c67!important}
:root[data-color-theme="custom"] .card-grid:not(.card-grid-daily) .center-card{background:var(--theme-surface-2)!important;color:var(--theme-text)!important}
:root[data-color-theme="custom"] .card-grid:not(.card-grid-daily) .center-card strong{color:var(--theme-text)!important}

/* R546 — Tanımlamalar ve ortak bildirimlerde eksik tema eşlemeleri. */
:root :is(.price-selection-tools button,.bulk-price-tools button,.category-add button,.settings-done){background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;border-color:var(--theme-primary)!important}
:root :is(.price-card-open,.price-card-open strong,.price-card-open b,#priceSelectedCount,.product-settings-host-heading h2,.stats strong,.stats .product-summary-card,.section-heading h2){color:var(--theme-text)!important}
:root .price-card-open{background:transparent!important}
:root .price-card-open small{color:var(--theme-muted)!important}
:root .price-select input{accent-color:var(--theme-primary)!important}
:root :is(.bulk-price-tools,.product-price-history,.product-summary-card){background:var(--theme-surface)!important;border-color:var(--theme-border)!important}
:root :is(.definition-close-button,.dialog-close.definition-close-button,#productSettingsClose,#closePriceSettings,#closeSinglePrice,#closePriceHistory,#closeBulkPrice,#closePricePreview,.management-dialog-close){background:transparent!important;border-color:transparent!important;color:var(--theme-muted)!important;box-shadow:none!important}
:root.definitions-settings-mode .cash-settings-modal .settings-dialog{height:auto!important;min-height:0!important;max-height:100dvh!important;overflow:auto!important;padding:18px}
:root.definitions-settings-mode .settings-dialog>.dialog-head{display:flex!important;align-items:center;justify-content:space-between;gap:12px}
:root.definitions-settings-mode .settings-dialog>.dialog-head>div{min-width:0;flex:1}
:root.definitions-settings-mode .settings-dialog>.dialog-head>button{flex:0 0 38px;margin-left:auto!important;background:transparent!important;color:var(--theme-muted)!important}
:root.definitions-settings-mode :is(.opening-grid label,.cash-group-row,.category-row,.settings-subpanel){color:var(--theme-text)!important}
:root.definitions-settings-mode :is(.settings-section,.settings-subpanel){background:var(--theme-surface-2)!important}
:root.definitions-settings-mode .settings-menu button :is(b,small,i){color:inherit!important}
:root #reportDialog .report-scroll-controls{display:none!important}
:root #reportDialog .report-scroll-area{display:flex!important;min-height:0;overflow:hidden}
:root #reportDialog #reportContent{width:100%;min-width:0;overflow-y:auto!important;scrollbar-width:none!important}
:root #reportDialog #reportContent::-webkit-scrollbar{display:none!important}
:root .history-modal-dialog{background:transparent!important;border-radius:24px!important}
:root :is(.history-modal-card,.history-modal-head){background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
:root .history-modal-head h2{color:var(--theme-text)!important}
:root .history-modal-head button{background:transparent!important;color:var(--theme-muted)!important}
:root .internal-products .product-search{display:flex!important;align-items:center;gap:9px;min-width:0;min-height:38px;padding:0 10px;border:1px solid var(--theme-border)!important;background:var(--theme-input)!important}
:root .internal-products .product-search>i{flex:0 0 auto;color:var(--theme-muted)}
:root .internal-products .product-search input{display:block;flex:1 1 0;min-width:0;width:100%;height:100%!important;min-height:0!important;margin:0;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--theme-text)!important}
:root .internal-pos-dialog{background:transparent!important;border-radius:20px}
:root :is(.admin-notification-panel,.admin-notification-row){background:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
:root .admin-notification-row{background:var(--theme-surface-2)!important}
:root .admin-notification-bell{color:var(--theme-primary)!important;background:transparent!important}
:root[data-effective-theme="dark"] .admin-notification-bell{color:var(--theme-accent)!important}
:root :is(.admin-notification-toast,.admin-notification-panel>header,.notification-order-icon,.notification-actions button){background:var(--theme-primary)!important;color:var(--theme-on-primary)!important}
:root .notification-actions button+button{background:var(--theme-surface-2)!important;color:var(--theme-text)!important}
:root :is(.admin-notification-row small,.admin-notification-row em,.admin-notification-empty){color:var(--theme-muted)!important}
:root .admin-notification-panel header button{color:var(--theme-on-primary)!important}
:root :is(#closeCostGroups,#closeProductList,#closeBulkPrices){background:transparent!important;color:var(--theme-muted)!important;border-color:transparent!important;box-shadow:none!important}

/* R547 — kasa pencereleri tek yüzey, sabit başlık ve alt işlemler. */
html:root dialog.sensitive-pin-dialog{padding:0!important;background:transparent!important;border:0!important;border-radius:20px!important;box-shadow:none!important}
html:root .sensitive-pin-dialog form{margin:0!important;border-radius:20px!important}
html:root .sensitive-pin-dialog input:focus{outline:2px solid var(--theme-accent)!important;outline-offset:1px}
html:root.definitions-settings-mode .cash-settings-modal .settings-dialog{
 display:flex!important;flex-direction:column!important;box-sizing:border-box;width:100%!important;
 height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important;
 padding:18px!important;gap:12px;border-radius:0!important;
}
html:root.definitions-settings-mode .settings-dialog>.dialog-head{flex:none;min-height:40px;margin:0!important;padding:0!important;gap:10px}
html:root.definitions-settings-mode .dialog-head h2{font-size:1.12rem!important;line-height:1.3}
html:root.definitions-settings-mode .dialog-head>button{width:40px!important;height:40px!important;min-width:40px!important;align-self:center}
html:root.definitions-settings-mode .settings-dialog>.cash-modal-scroll{
 flex:1 1 auto!important;min-height:0!important;overflow:auto!important;
 padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;
}
html:root.definitions-settings-mode .cash-modal-scroll form{background:transparent!important;padding:0!important;margin:0!important}
html:root.definitions-settings-mode .settings-dialog>.cash-modal-footer{
 flex:none!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;
 gap:10px;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
html:root.definitions-settings-mode .cash-modal-footer button{box-sizing:border-box;flex:0 0 120px!important;width:120px!important;min-width:0!important;height:46px!important;min-height:46px!important;margin:0!important;padding:0 12px!important;font:700 .73rem Poppins,sans-serif!important}
html:root.definitions-settings-mode .opening-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
html:root.definitions-settings-mode .opening-grid label{margin:0!important}
html:root.definitions-settings-mode .opening-grid input{height:46px!important}
html:root.definitions-settings-mode .settings-menu{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;min-height:0;overflow:auto}
html:root.definitions-settings-mode .settings-menu button{
 display:grid!important;grid-template-columns:42px minmax(0,1fr) 12px!important;align-items:center!important;
 min-height:100px!important;height:auto!important;padding:12px!important;gap:10px!important;text-align:left!important;
 background:var(--theme-surface-2)!important;box-shadow:none!important;
}
html:root.definitions-settings-mode .settings-menu button>i:first-child{display:grid!important;place-items:center;width:42px!important;height:42px!important;border-radius:12px;background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;box-shadow:none!important}
html:root.definitions-settings-mode .settings-menu button span{min-width:0}
html:root.definitions-settings-mode .settings-menu button b{font-size:.76rem!important}
html:root.definitions-settings-mode .settings-menu button small{font-size:.61rem!important;color:var(--theme-muted)!important}
html:root.definitions-settings-mode :is(.category-list,.cash-group-list){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;height:auto!important;max-height:none!important;overflow:visible!important}
html:root.definitions-settings-mode .cash-group-chip{display:grid!important;grid-template-columns:minmax(0,1fr) auto 40px!important;width:100%!important;gap:7px;padding:8px;border:1px solid var(--theme-border)!important;border-radius:12px;background:var(--theme-surface-2)!important;box-sizing:border-box}
html:root.definitions-settings-mode .cash-group-chip input{width:100%!important;min-width:0!important;height:42px!important}
html:root.definitions-settings-mode .category-row{display:grid!important;grid-template-columns:minmax(170px,1.4fr) minmax(120px,1fr)!important;gap:8px!important;padding:10px!important}
html:root.definitions-settings-mode .category-row>input{width:100%!important;min-width:0!important}
html:root.definitions-settings-mode .category-row>div{grid-column:1/-1!important;display:flex!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:wrap}
html:root.definitions-settings-mode .transfer-mode .category-row{grid-template-columns:minmax(0,1fr)!important}
html:root.definitions-settings-mode .category-row button,html:root.definitions-settings-mode .cash-group-chip button{height:40px!important;min-height:40px!important;background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html:root.definitions-settings-mode :is([data-category-delete],[data-group-delete]){color:#c33d49!important}
html:root.definitions-settings-mode .category-add{background:transparent!important;gap:8px!important}
html:root.definitions-settings-mode .settings-note{margin:10px 0 0!important}
html:root #costGroupsDialog{max-height:calc(100dvh - 24px)!important;overflow:hidden!important}
html:root #costGroupForm{display:flex!important;flex-direction:column!important;gap:12px;max-height:calc(100dvh - 24px)!important;overflow:hidden!important;padding:18px!important}
html:root #costGroupForm>.management-dialog-heading,html:root #costGroupForm>.cost-actions{flex:none;margin:0!important}
html:root #costGroupForm>.cost-modal-scroll{flex:1 1 auto;min-height:0;overflow:auto}
html:root #costGroupsDialog :is(h2,#costPreview){color:var(--theme-text)!important}
html:root #costGroupsDialog .cost-help{color:var(--theme-muted)!important}
html:root #costGroupsDialog .cost-notice{background:var(--theme-surface-2)!important;color:var(--theme-text)!important}
html:root #costGroupsDialog .cost-actions button{box-sizing:border-box;width:120px;height:46px;min-height:46px;padding:0 12px}
@media(max-width:600px){
 html:root.definitions-settings-mode .cash-settings-modal .settings-dialog{padding:14px!important;gap:10px}
 html:root.definitions-settings-mode .settings-menu{grid-template-columns:minmax(0,1fr)!important}
 html:root.definitions-settings-mode .settings-menu button{min-height:78px!important}
 html:root.definitions-settings-mode .opening-grid{grid-template-columns:minmax(0,1fr)!important;gap:10px}
 html:root.definitions-settings-mode .category-row{grid-template-columns:minmax(0,1fr)!important}
 html:root.definitions-settings-mode .category-row>select{width:100%!important;min-width:0!important}
 html:root.definitions-settings-mode .category-add{display:flex!important;flex-wrap:wrap}
 html:root.definitions-settings-mode .category-add>select{flex:1 1 100%}
 html:root.definitions-settings-mode .category-add>input{flex:1 1 120px;min-width:0}
 html:root.definitions-settings-mode .category-add>button{flex:0 0 auto}
 html:root.definitions-settings-mode .cash-group-chip{grid-template-columns:minmax(0,1fr) auto 36px!important;gap:5px;padding:6px}
 html:root.definitions-settings-mode .cash-group-chip button{font-size:.62rem!important;padding:0 6px!important}
 html:root #costGroupsDialog .cost-actions{justify-content:flex-end}
}

/* R548 — dar ve geniş ekranlarda gereksiz boşluksuz kasa satırları. */
html:root.definitions-settings-mode .settings-menu{flex:0 0 auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important;gap:8px!important}
html:root.definitions-settings-mode .settings-menu button{min-height:84px!important;padding:10px!important;gap:8px!important}
html:root.definitions-settings-mode .settings-menu button>i:last-child{position:static!important;justify-self:end}
html:root.definitions-settings-mode .category-row{grid-template-columns:minmax(0,1fr) minmax(100px,.55fr) auto!important;padding:7px!important;gap:6px!important;min-height:0!important}
html:root.definitions-settings-mode .category-row>div{grid-column:auto!important;grid-row:auto!important;flex-wrap:nowrap!important;justify-content:flex-end!important;gap:4px!important}
html:root.definitions-settings-mode .category-row button{height:36px!important;min-height:36px!important;padding:0 7px!important;font-size:.62rem!important}
html:root.definitions-settings-mode .category-row>input,html:root.definitions-settings-mode .category-row>select{height:38px!important;font-size:.69rem!important}
html:root.definitions-settings-mode .cash-group-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html:root.definitions-settings-mode .cash-group-chip{padding:6px!important;gap:5px!important}
html:root.definitions-settings-mode .cash-group-chip input{height:36px!important}
html:root.definitions-settings-mode .cash-group-chip button{height:36px!important;min-height:36px!important;padding:0 7px!important}
html:root.definitions-settings-mode #transferSettingsDialog .category-row{grid-template-columns:minmax(0,1fr) auto!important}
html:root.definitions-settings-mode #transferSettingsDialog :is(.cash-group-list,[data-group-form],[data-category-group]){display:none!important}
@media(max-width:620px){
 html:root.definitions-settings-mode .settings-menu{grid-template-columns:minmax(0,1fr)!important}
 html:root.definitions-settings-mode .settings-menu button{min-height:64px!important;grid-template-columns:36px minmax(0,1fr) 12px!important;padding:8px 10px!important}
 html:root.definitions-settings-mode .settings-menu button>i:first-child{width:36px!important;height:36px!important}
 html:root.definitions-settings-mode .settings-menu button small{font-size:.57rem!important}
 html:root.definitions-settings-mode .cash-group-list{grid-template-columns:minmax(0,1fr)!important}
 html:root.definitions-settings-mode .category-row{grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important}
 html:root.definitions-settings-mode .category-row>input{grid-column:1/-1!important}
 html:root.definitions-settings-mode .category-row>select{grid-column:1!important;grid-row:2!important}
 html:root.definitions-settings-mode .category-row>div{grid-column:2!important;grid-row:2!important}
 html:root.definitions-settings-mode #transferSettingsDialog .category-row>input{grid-column:1!important}
 html:root.definitions-settings-mode #transferSettingsDialog .category-row>div{grid-column:2!important;grid-row:1!important}
}

/* R549 — Tanımlamalar > Kasa Ayarları: dört standart kart. Alt paneller değişmez. */
html:root.definitions-settings-mode #settingsDialog .settings-menu{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  margin:0!important;
  overflow:visible!important;
}
html:root.definitions-settings-mode #settingsDialog .settings-menu>button{
  box-sizing:border-box;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  aspect-ratio:1 / 1;
  min-width:0!important;
  min-height:0!important;
  padding:18px!important;
  gap:12px!important;
  border-radius:18px!important;
  text-align:left!important;
}
html:root.definitions-settings-mode #settingsDialog .settings-menu>button>i:first-child{
  flex:none;
  width:49px!important;
  height:49px!important;
  font-size:1.12rem!important;
}
html:root.definitions-settings-mode #settingsDialog .settings-menu>button>i:last-child{
  position:absolute!important;
  top:18px!important;
  right:18px!important;
}
html:root.definitions-settings-mode #settingsDialog .settings-menu>button span{padding-right:0;min-width:0;width:100%}
html:root.definitions-settings-mode #settingsDialog .settings-menu>button b{font-size:.9rem!important;line-height:1.3}
html:root.definitions-settings-mode #settingsDialog .settings-menu>button small{font-size:.64rem!important;line-height:1.45}
@media(max-width:900px){
  html:root.definitions-settings-mode #settingsDialog .settings-menu{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
  html:root.definitions-settings-mode #settingsDialog .settings-menu{gap:9px!important}
  html:root.definitions-settings-mode #settingsDialog .settings-menu>button{padding:12px!important;gap:8px!important}
  html:root.definitions-settings-mode #settingsDialog .settings-menu>button>i:first-child{width:40px!important;height:40px!important;font-size:.95rem!important}
  html:root.definitions-settings-mode #settingsDialog .settings-menu>button>i:last-child{top:12px!important;right:12px!important}
  html:root.definitions-settings-mode #settingsDialog .settings-menu>button b{font-size:.76rem!important}
  html:root.definitions-settings-mode #settingsDialog .settings-menu>button small{font-size:.57rem!important}
}

/* R551 — Kasa Ayarları giriş kartları, Tanımlamalar kart ölçüsünde 2 × 2. */
html:root.definitions-settings-mode #settingsDialog .settings-menu{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
html:root.definitions-settings-mode #settingsDialog .settings-menu>button{
  aspect-ratio:auto!important;
  height:130px!important;
  min-height:130px!important;
  padding:18px!important;
  gap:10px!important;
}
@media(max-width:620px){
  html:root.definitions-settings-mode #settingsDialog .settings-menu{gap:9px!important}
  html:root.definitions-settings-mode #settingsDialog .settings-menu>button{
    height:130px!important;
    min-height:130px!important;
    padding:12px!important;
    gap:8px!important;
  }
}
@media(max-width:400px){
  html:root.definitions-settings-mode #settingsDialog .settings-menu>button{
    height:155px!important;
    min-height:155px!important;
  }
}

/* R560: sistem işlem mesajları aynı tema ve ekran konumunu kullanır. */
html:root :is(.toast,#toast,.admin-notification-toast){position:fixed!important;inset:auto!important;top:auto!important;right:auto!important;left:50%!important;bottom:max(22px,env(safe-area-inset-bottom))!important;margin:0!important;width:max-content;max-width:min(380px,calc(100vw - 36px))!important;padding:12px 16px!important;border:0!important;border-radius:14px!important;background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;box-shadow:var(--theme-shadow)!important;font:600 .75rem/1.5 Poppins,sans-serif!important;pointer-events:none!important;opacity:0;transform:translate(-50%,8px)!important;transition:opacity .18s,transform .18s;z-index:2147483646!important;white-space:normal!important;overflow-wrap:anywhere}
html:root :is(.toast,#toast,.admin-notification-toast).show{opacity:1;transform:translate(-50%,0)!important}
html:root :is(.toast,#toast,.admin-notification-toast)::backdrop{background:transparent!important;pointer-events:none}
/* R561: kartlar kalan yüksekliğe yayılmaz; kısa menüler üstten başlar. */
html:root.definitions-settings-mode .cash-settings-modal[open]{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important}
html:root.definitions-settings-mode #settingsDialog .settings-menu{flex:1 1 auto!important;min-height:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,152px)!important;align-content:start!important;overflow:auto!important;gap:12px!important;margin:0!important}
html:root.definitions-settings-mode #settingsDialog .settings-menu>button{height:152px!important;min-height:0!important;aspect-ratio:auto!important;padding:16px!important;gap:10px!important;border:0!important}
html:root.definitions-settings-mode #settingsDialog .settings-menu>button b{font-size:.82rem!important}
html:root.definitions-settings-mode #settingsDialog .settings-menu>button small{font-size:.61rem!important}
html:root.definitions-settings-mode #settingsDialog .settings-menu>button>i:first-child{width:42px!important;height:42px!important;font-size:1rem!important}
html:root.definitions-settings-mode .settings-menu-dialog{gap:12px!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu{display:grid!important;flex:0 0 auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:92px!important;align-content:start!important;gap:12px!important;margin:0!important;overflow:auto!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;align-items:center!important;align-content:center!important;min-height:0!important;height:92px!important;padding:12px!important;gap:10px!important;border:0!important;aspect-ratio:auto!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button>i:first-child{width:40px!important;height:40px!important;font-size:.95rem!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button>i:last-child{display:none!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button span{padding:0!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button b{font-size:.78rem!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button small{font-size:.6rem!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-form-actions{margin-top:auto!important}
html:root #paymentMethodsError{color:var(--theme-text)!important;background:var(--theme-surface-2);padding:10px;border-radius:10px}
@media(max-width:620px){
 html:root.definitions-settings-mode #settingsDialog .settings-menu{grid-template-rows:repeat(2,164px)!important;gap:12px!important}
 html:root.definitions-settings-mode #settingsDialog .settings-menu>button{height:164px!important;padding:12px!important;gap:9px!important}
 html:root.definitions-settings-mode #settingsDialog .settings-menu>button b{font-size:.73rem!important}
 html:root.definitions-settings-mode #settingsDialog .settings-menu>button small{font-size:.56rem!important}
 html:root.definitions-settings-mode #categorySettingsDialog .settings-menu{grid-template-rows:130px!important;gap:10px!important}
 html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button{height:130px!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;gap:8px!important}
}

/* R562: onay pencereleri seçili renk ve açık/koyu yüzeyleri izler. */
html:root .system-theme-confirm,html:root .system-theme-confirm>:is(form,.dialog-card,.dialog-body,.reopen-confirm-card){background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html:root .system-theme-confirm :is(h2,h3){color:var(--theme-text)!important}
html:root .system-theme-confirm :is(p,.notice,.reopen-confirm-text){color:var(--theme-muted)!important}
html:root .system-theme-confirm :is(.system-confirm-icon,.confirm-icon,.reopen-confirm-icon,.reminder-paid-icon,.pos-warning-icon,.dialog-icon){background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;border-color:var(--theme-border)!important}
html:root .system-theme-confirm>form>i,html:root .system-theme-confirm>.confirm-card>i,html:root .system-theme-confirm .warning-icon{color:var(--theme-primary)!important}
html:root .system-theme-confirm button:is([value="confirm"],.primary,.primary-button,.danger,.danger-button,.danger-confirm-action,.reminder-paid-confirm,[id^="confirm"]){background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;border-color:var(--theme-primary)!important}
html:root .system-theme-confirm button:is([value="cancel"],.secondary,.secondary-button,.secondary-action,.soft,.cancel-button){background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
/* Pencere ölçüleri korunur; sadece Gelir/Gider kartları kare olur. */
html:root.definitions-settings-mode #categorySettingsDialog .settings-dialog{gap:8px!important;padding:12px!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu{grid-template-columns:repeat(2,128px)!important;grid-template-rows:128px!important;justify-content:center!important;gap:12px!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button{width:128px!important;height:128px!important;aspect-ratio:1!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:8px!important;padding:12px!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button>i:first-child{width:36px!important;height:36px!important;font-size:.95rem!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button b{font-size:.78rem!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button small{font-size:.57rem!important;line-height:1.35!important;margin-top:3px!important}
html:root.definitions-settings-mode .cash-modal-footer [data-settings-back],html:root.definitions-settings-mode #categorySettingsDialog .settings-form-actions [data-settings-back]{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:110px!important;height:40px!important;min-height:40px!important;padding:0 14px!important;border:0!important;border-radius:12px!important;background:var(--theme-surface-2)!important;color:var(--theme-text)!important;font:700 .7rem Poppins,sans-serif!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-form-actions{justify-content:flex-end!important}
@media(max-width:620px){html:root.definitions-settings-mode #categorySettingsDialog .settings-menu{grid-template-columns:repeat(2,128px)!important;grid-template-rows:128px!important}html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button{width:128px!important;height:128px!important;padding:12px!important;gap:8px!important}html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button small{font-size:.56rem!important}}

/* R563: iki kat kenar uzunluğu, dört kat kart alanı. */
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu{grid-template-columns:repeat(2,minmax(0,256px))!important;grid-template-rows:auto!important;flex:1 1 auto!important;align-content:center!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button{width:100%!important;height:auto!important;aspect-ratio:1!important;padding:22px!important;gap:14px!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button>i:first-child{width:52px!important;height:52px!important;font-size:1.3rem!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button b{font-size:1rem!important}
html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button small{font-size:.72rem!important}
@media(max-width:620px){html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button{padding:12px!important;gap:8px!important}html:root.definitions-settings-mode #categorySettingsDialog .settings-menu>button small{font-size:.6rem!important}}

/* R571 — PWA işlemleri ve taramada bulunan sabit açık yüzeyler. */
html:root :is(#pwaInstallButton,#pwaUpdateButton){background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;box-shadow:var(--theme-shadow)!important}
html:root :is(#pwaInstallButton,#pwaUpdateButton):focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
html:root :is(.savings-account,.savings-report-section,.record-card,.top-filter-bar){background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html:root :is(.savings-summary>div,.savings-detail-summary>div,.savings-month-picker,.savings-preview,.account-code-preview,.history-categories button,.detail-facts div,.change-row h3,.snapshot,.simple-summary){background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html:root :is(.savings-row-actions button,.record-icon,.history-categories i){background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html:root .history-categories button.active{background:var(--theme-surface)!important;border-color:var(--theme-primary)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-primary) 15%,transparent)!important}
html:root :is(.savings-account,.record-card):hover{border-color:var(--theme-primary)!important}
html:root .account-code-preview{color:var(--theme-text)!important}
html:root :is(.savings-toolbar button,.savings-report-section button:not(.soft),.lock-icon,.summary-icon){background:var(--theme-primary)!important;color:var(--theme-on-primary)!important}
html:root .filter-input{background:var(--theme-input)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html:root .filter-input:focus-within{border-color:var(--theme-primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-primary) 15%,transparent)!important}
html:root .timeline-mark:after{background:var(--theme-border)!important}
html:root[data-effective-theme="dark"] :is(.timeline-row time,.simple-products h3,.simple-changes h3,.change-values small){color:var(--theme-accent)!important}

:root[data-color-theme="blackGold"] {
  --theme-primary:#342c20; --theme-primary-dark:color-mix(in srgb,#342c20 55%,black);
  --theme-primary-bright:color-mix(in srgb,#342c20 80%,white); --theme-accent:#ebc775;
  --appearance-finish:linear-gradient(125deg,#171510,#322b20 70%,#151412); --appearance-radius:3px; --appearance-edge:double;
}
:root[data-effective-theme="dark"][data-color-theme="blackGold"] {--theme-page:color-mix(in srgb,#101419 93%,#342c20);--theme-page-glow:color-mix(in srgb,#101419 80%,#342c20);--theme-surface:color-mix(in srgb,#101419 85%,#342c20);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#101419 73%,#342c20);--theme-text:#f6f4ee;--theme-muted:color-mix(in srgb,#f6f4ee 78%,#101419);--theme-border:color-mix(in srgb,#ebc775 37%,var(--theme-surface));}
:root[data-effective-theme="light"][data-color-theme="blackGold"] {--theme-page:color-mix(in srgb,#faf9f7 93%,#342c20);--theme-page-glow:color-mix(in srgb,#faf9f7 80%,#342c20);--theme-surface:color-mix(in srgb,#faf9f7 85%,#342c20);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#faf9f7 73%,#342c20);--theme-text:#202227;--theme-muted:color-mix(in srgb,#202227 78%,#faf9f7);--theme-border:color-mix(in srgb,#ebc775 37%,var(--theme-surface));}

:root[data-color-theme="glass"] {
  --theme-primary:#324e6b; --theme-primary-dark:color-mix(in srgb,#324e6b 55%,black);
  --theme-primary-bright:color-mix(in srgb,#324e6b 80%,white); --theme-accent:#9de3ef;
  --appearance-finish:linear-gradient(135deg,#7899b655,transparent 50%,#87acbe33); --appearance-radius:18px; --appearance-edge:solid;
}
:root[data-effective-theme="dark"][data-color-theme="glass"] {--theme-page:color-mix(in srgb,#101419 93%,#324e6b);--theme-page-glow:color-mix(in srgb,#101419 80%,#324e6b);--theme-surface:color-mix(in srgb,#101419 85%,#324e6b);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#101419 73%,#324e6b);--theme-text:#f6f4ee;--theme-muted:color-mix(in srgb,#f6f4ee 78%,#101419);--theme-border:color-mix(in srgb,#9de3ef 37%,var(--theme-surface));}
:root[data-effective-theme="light"][data-color-theme="glass"] {--theme-page:color-mix(in srgb,#faf9f7 93%,#324e6b);--theme-page-glow:color-mix(in srgb,#faf9f7 80%,#324e6b);--theme-surface:color-mix(in srgb,#faf9f7 85%,#324e6b);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#faf9f7 73%,#324e6b);--theme-text:#202227;--theme-muted:color-mix(in srgb,#202227 78%,#faf9f7);--theme-border:color-mix(in srgb,#9de3ef 37%,var(--theme-surface));}

:root[data-color-theme="teahouse"] {
  --theme-primary:#66412d; --theme-primary-dark:color-mix(in srgb,#66412d 55%,black);
  --theme-primary-bright:color-mix(in srgb,#66412d 80%,white); --theme-accent:#cd9264;
  --appearance-finish:repeating-linear-gradient(3deg,#aa825810 0 1px,transparent 2px 9px); --appearance-radius:8px; --appearance-edge:solid;
}
:root[data-effective-theme="dark"][data-color-theme="teahouse"] {--theme-page:color-mix(in srgb,#101419 93%,#66412d);--theme-page-glow:color-mix(in srgb,#101419 80%,#66412d);--theme-surface:color-mix(in srgb,#101419 85%,#66412d);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#101419 73%,#66412d);--theme-text:#f6f4ee;--theme-muted:color-mix(in srgb,#f6f4ee 78%,#101419);--theme-border:color-mix(in srgb,#cd9264 37%,var(--theme-surface));}
:root[data-effective-theme="light"][data-color-theme="teahouse"] {--theme-page:color-mix(in srgb,#faf9f7 93%,#66412d);--theme-page-glow:color-mix(in srgb,#faf9f7 80%,#66412d);--theme-surface:color-mix(in srgb,#faf9f7 85%,#66412d);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#faf9f7 73%,#66412d);--theme-text:#202227;--theme-muted:color-mix(in srgb,#202227 78%,#faf9f7);--theme-border:color-mix(in srgb,#cd9264 37%,var(--theme-surface));}

:root[data-color-theme="future"] {
  --theme-primary:#29346b; --theme-primary-dark:color-mix(in srgb,#29346b 55%,black);
  --theme-primary-bright:color-mix(in srgb,#29346b 80%,white); --theme-accent:#88cbff;
  --appearance-finish:linear-gradient(135deg,#709dff35,transparent 30%); --appearance-radius:2px 18px; --appearance-edge:solid;
}
:root[data-effective-theme="dark"][data-color-theme="future"] {--theme-page:color-mix(in srgb,#101419 93%,#29346b);--theme-page-glow:color-mix(in srgb,#101419 80%,#29346b);--theme-surface:color-mix(in srgb,#101419 85%,#29346b);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#101419 73%,#29346b);--theme-text:#f6f4ee;--theme-muted:color-mix(in srgb,#f6f4ee 78%,#101419);--theme-border:color-mix(in srgb,#88cbff 37%,var(--theme-surface));}
:root[data-effective-theme="light"][data-color-theme="future"] {--theme-page:color-mix(in srgb,#faf9f7 93%,#29346b);--theme-page-glow:color-mix(in srgb,#faf9f7 80%,#29346b);--theme-surface:color-mix(in srgb,#faf9f7 85%,#29346b);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#faf9f7 73%,#29346b);--theme-text:#202227;--theme-muted:color-mix(in srgb,#202227 78%,#faf9f7);--theme-border:color-mix(in srgb,#88cbff 37%,var(--theme-surface));}

:root[data-color-theme="minimal"] {
  --theme-primary:#415563; --theme-primary-dark:color-mix(in srgb,#415563 55%,black);
  --theme-primary-bright:color-mix(in srgb,#415563 80%,white); --theme-accent:#94b4ae;
  --appearance-finish:linear-gradient(180deg,transparent,#8498900d); --appearance-radius:12px; --appearance-edge:solid;
}
:root[data-effective-theme="dark"][data-color-theme="minimal"] {--theme-page:color-mix(in srgb,#101419 93%,#415563);--theme-page-glow:color-mix(in srgb,#101419 80%,#415563);--theme-surface:color-mix(in srgb,#101419 85%,#415563);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#101419 73%,#415563);--theme-text:#f6f4ee;--theme-muted:color-mix(in srgb,#f6f4ee 78%,#101419);--theme-border:color-mix(in srgb,#94b4ae 37%,var(--theme-surface));}
:root[data-effective-theme="light"][data-color-theme="minimal"] {--theme-page:color-mix(in srgb,#faf9f7 93%,#415563);--theme-page-glow:color-mix(in srgb,#faf9f7 80%,#415563);--theme-surface:color-mix(in srgb,#faf9f7 85%,#415563);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#faf9f7 73%,#415563);--theme-text:#202227;--theme-muted:color-mix(in srgb,#202227 78%,#faf9f7);--theme-border:color-mix(in srgb,#94b4ae 37%,var(--theme-surface));}

:root[data-color-theme="jade"] {
  --theme-primary:#154c41; --theme-primary-dark:color-mix(in srgb,#154c41 55%,black);
  --theme-primary-bright:color-mix(in srgb,#154c41 80%,white); --theme-accent:#d8bc79;
  --appearance-finish:linear-gradient(145deg,#4295782c,transparent 60%); --appearance-radius:16px 3px; --appearance-edge:double;
}
:root[data-effective-theme="dark"][data-color-theme="jade"] {--theme-page:color-mix(in srgb,#101419 93%,#154c41);--theme-page-glow:color-mix(in srgb,#101419 80%,#154c41);--theme-surface:color-mix(in srgb,#101419 85%,#154c41);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#101419 73%,#154c41);--theme-text:#f6f4ee;--theme-muted:color-mix(in srgb,#f6f4ee 78%,#101419);--theme-border:color-mix(in srgb,#d8bc79 37%,var(--theme-surface));}
:root[data-effective-theme="light"][data-color-theme="jade"] {--theme-page:color-mix(in srgb,#faf9f7 93%,#154c41);--theme-page-glow:color-mix(in srgb,#faf9f7 80%,#154c41);--theme-surface:color-mix(in srgb,#faf9f7 85%,#154c41);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#faf9f7 73%,#154c41);--theme-text:#202227;--theme-muted:color-mix(in srgb,#202227 78%,#faf9f7);--theme-border:color-mix(in srgb,#d8bc79 37%,var(--theme-surface));}

:root[data-color-theme="original"] {
  --theme-primary:#701927; --theme-primary-dark:color-mix(in srgb,#701927 55%,black);
  --theme-primary-bright:color-mix(in srgb,#701927 80%,white); --theme-accent:#ffcb67;
  --appearance-finish:linear-gradient(120deg,#ce455221,transparent 60%); --appearance-radius:4px 14px; --appearance-edge:solid;
}
:root[data-effective-theme="dark"][data-color-theme="original"] {--theme-page:color-mix(in srgb,#101419 93%,#701927);--theme-page-glow:color-mix(in srgb,#101419 80%,#701927);--theme-surface:color-mix(in srgb,#101419 85%,#701927);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#101419 73%,#701927);--theme-text:#f6f4ee;--theme-muted:color-mix(in srgb,#f6f4ee 78%,#101419);--theme-border:color-mix(in srgb,#ffcb67 37%,var(--theme-surface));}
:root[data-effective-theme="light"][data-color-theme="original"] {--theme-page:color-mix(in srgb,#faf9f7 93%,#701927);--theme-page-glow:color-mix(in srgb,#faf9f7 80%,#701927);--theme-surface:color-mix(in srgb,#faf9f7 85%,#701927);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#faf9f7 73%,#701927);--theme-text:#202227;--theme-muted:color-mix(in srgb,#202227 78%,#faf9f7);--theme-border:color-mix(in srgb,#ffcb67 37%,var(--theme-surface));}

:root[data-color-theme="corum"] {
  --theme-primary:#8c1529; --theme-primary-dark:color-mix(in srgb,#8c1529 55%,black);
  --theme-primary-bright:color-mix(in srgb,#8c1529 80%,white); --theme-accent:#f6c6c8;
  --appearance-finish:repeating-linear-gradient(125deg,#b9333e17 0 4px,transparent 4px 20px); --appearance-radius:2px; --appearance-edge:solid;
}
:root[data-effective-theme="dark"][data-color-theme="corum"] {--theme-page:color-mix(in srgb,#101419 93%,#8c1529);--theme-page-glow:color-mix(in srgb,#101419 80%,#8c1529);--theme-surface:color-mix(in srgb,#101419 85%,#8c1529);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#101419 73%,#8c1529);--theme-text:#f6f4ee;--theme-muted:color-mix(in srgb,#f6f4ee 78%,#101419);--theme-border:color-mix(in srgb,#f6c6c8 37%,var(--theme-surface));}
:root[data-effective-theme="light"][data-color-theme="corum"] {--theme-page:color-mix(in srgb,#faf9f7 93%,#8c1529);--theme-page-glow:color-mix(in srgb,#faf9f7 80%,#8c1529);--theme-surface:color-mix(in srgb,#faf9f7 85%,#8c1529);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#faf9f7 73%,#8c1529);--theme-text:#202227;--theme-muted:color-mix(in srgb,#202227 78%,#faf9f7);--theme-border:color-mix(in srgb,#f6c6c8 37%,var(--theme-surface));}

:root[data-color-theme="hud"] {
  --theme-primary:#123955; --theme-primary-dark:color-mix(in srgb,#123955 55%,black);
  --theme-primary-bright:color-mix(in srgb,#123955 80%,white); --theme-accent:#4edcff;
  --appearance-finish:repeating-linear-gradient(0deg,#1dc9fc11 0 1px,transparent 1px 5px); --appearance-radius:2px 16px; --appearance-edge:solid;
}
:root[data-effective-theme="dark"][data-color-theme="hud"] {--theme-page:color-mix(in srgb,#101419 93%,#123955);--theme-page-glow:color-mix(in srgb,#101419 80%,#123955);--theme-surface:color-mix(in srgb,#101419 85%,#123955);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#101419 73%,#123955);--theme-text:#f6f4ee;--theme-muted:color-mix(in srgb,#f6f4ee 78%,#101419);--theme-border:color-mix(in srgb,#4edcff 37%,var(--theme-surface));}
:root[data-effective-theme="light"][data-color-theme="hud"] {--theme-page:color-mix(in srgb,#faf9f7 93%,#123955);--theme-page-glow:color-mix(in srgb,#faf9f7 80%,#123955);--theme-surface:color-mix(in srgb,#faf9f7 85%,#123955);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#faf9f7 73%,#123955);--theme-text:#202227;--theme-muted:color-mix(in srgb,#202227 78%,#faf9f7);--theme-border:color-mix(in srgb,#4edcff 37%,var(--theme-surface));}

:root[data-color-theme="holo"] {
  --theme-primary:#354668; --theme-primary-dark:color-mix(in srgb,#354668 55%,black);
  --theme-primary-bright:color-mix(in srgb,#354668 80%,white); --theme-accent:#83f2ea;
  --appearance-finish:linear-gradient(120deg,#82e4ee25,transparent 40%,#af8add26); --appearance-radius:22px; --appearance-edge:solid;
}
:root[data-effective-theme="dark"][data-color-theme="holo"] {--theme-page:color-mix(in srgb,#101419 93%,#354668);--theme-page-glow:color-mix(in srgb,#101419 80%,#354668);--theme-surface:color-mix(in srgb,#101419 85%,#354668);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#101419 73%,#354668);--theme-text:#f6f4ee;--theme-muted:color-mix(in srgb,#f6f4ee 78%,#101419);--theme-border:color-mix(in srgb,#83f2ea 37%,var(--theme-surface));}
:root[data-effective-theme="light"][data-color-theme="holo"] {--theme-page:color-mix(in srgb,#faf9f7 93%,#354668);--theme-page-glow:color-mix(in srgb,#faf9f7 80%,#354668);--theme-surface:color-mix(in srgb,#faf9f7 85%,#354668);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#faf9f7 73%,#354668);--theme-text:#202227;--theme-muted:color-mix(in srgb,#202227 78%,#faf9f7);--theme-border:color-mix(in srgb,#83f2ea 37%,var(--theme-surface));}

:root[data-color-theme="control"] {
  --theme-primary:#193e48; --theme-primary-dark:color-mix(in srgb,#193e48 55%,black);
  --theme-primary-bright:color-mix(in srgb,#193e48 80%,white); --theme-accent:#54ebc8;
  --appearance-finish:repeating-linear-gradient(90deg,transparent 0 23px,#30dfcd10 23px 24px); --appearance-radius:5px; --appearance-edge:solid;
}
:root[data-effective-theme="dark"][data-color-theme="control"] {--theme-page:color-mix(in srgb,#101419 93%,#193e48);--theme-page-glow:color-mix(in srgb,#101419 80%,#193e48);--theme-surface:color-mix(in srgb,#101419 85%,#193e48);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#101419 73%,#193e48);--theme-text:#f6f4ee;--theme-muted:color-mix(in srgb,#f6f4ee 78%,#101419);--theme-border:color-mix(in srgb,#54ebc8 37%,var(--theme-surface));}
:root[data-effective-theme="light"][data-color-theme="control"] {--theme-page:color-mix(in srgb,#faf9f7 93%,#193e48);--theme-page-glow:color-mix(in srgb,#faf9f7 80%,#193e48);--theme-surface:color-mix(in srgb,#faf9f7 85%,#193e48);--theme-input:var(--theme-surface);--theme-surface-2:color-mix(in srgb,#faf9f7 73%,#193e48);--theme-text:#202227;--theme-muted:color-mix(in srgb,#202227 78%,#faf9f7);--theme-border:color-mix(in srgb,#54ebc8 37%,var(--theme-surface));}
:root:is([data-color-theme="blackGold"],[data-color-theme="glass"],[data-color-theme="teahouse"],[data-color-theme="future"],[data-color-theme="minimal"],[data-color-theme="jade"],[data-color-theme="original"],[data-color-theme="corum"],[data-color-theme="hud"],[data-color-theme="holo"],[data-color-theme="control"]) :is(.boiler-card,.boiler-quick-card,.theme-preview-card,.table-card,.settings-card,.panel,.modal-card) {background-image:var(--appearance-finish);border-radius:var(--appearance-radius);border-style:var(--appearance-edge);}
:root[data-tech-theme="true"]{--motion-time:7s;--light-strength:.45}
:root[data-speed="fast"]{--motion-time:4s}
:root[data-speed="slow"]{--motion-time:12s}
:root[data-intensity="low"]{--light-strength:.22}
:root[data-intensity="high"]{--light-strength:.75}
[data-tech-theme="true"] :is([data-current],[data-target]){text-shadow:0 0 .4em color-mix(in srgb,var(--theme-accent) 52%,transparent)}
[data-tech-theme="true"] [data-current]{position:relative;isolation:isolate}
[data-tech-theme="true"] [data-current][data-fresh="true"]::before{content:"";position:absolute;inset:-4px -14px;border-radius:50%;border:1px dashed var(--theme-accent);border-inline-color:transparent;pointer-events:none;opacity:var(--light-strength)}
@keyframes appearance-orbit{to{transform:rotate(360deg)}}
@keyframes appearance-sweep{from{transform:scaleX(.15);opacity:.15}50%{opacity:var(--light-strength)}to{transform:scaleX(1);opacity:.1}}
@keyframes appearance-heat{to{transform:scaleY(.32)}}
@media(prefers-reduced-motion:no-preference){
[data-tech-theme="true"][data-effects="true"][data-page-visible="true"] [data-current][data-fresh="true"]::before{animation:appearance-orbit calc(var(--motion-time)*2) linear infinite}
[data-tech-theme="true"][data-effects="true"][data-page-visible="true"] :is(.section-heading,.boiler-temperature-card:has([data-fresh="true"])){position:relative}
[data-tech-theme="true"][data-effects="true"][data-page-visible="true"] :is(.section-heading,.boiler-temperature-card:has([data-fresh="true"]))::after{content:"";position:absolute;bottom:0;inset-inline:5%;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,var(--theme-accent),transparent);animation:appearance-sweep var(--motion-time) ease-in-out infinite alternate}
[data-tech-theme="true"][data-effects="true"][data-page-visible="true"] [data-heater][data-phase="heating"]::after{content:"";display:inline-block;width:30px;height:12px;background:repeating-linear-gradient(90deg,var(--theme-accent) 0 3px,transparent 3px 6px);transform-origin:bottom;animation:appearance-heat calc(var(--motion-time)/5) ease-in-out infinite alternate}
}

/* R675: Görünüm katmanı, ana yüzeylerin important kuralına takılmamalı.
   Durum/ödeme/masa kartlarının mevcut renkleri ve işlem mantığı değiştirilmez. */
:root[data-effective-theme="light"][data-color-theme="blackGold"] {
  --appearance-finish:linear-gradient(125deg,#ebc77528,transparent 65%,#342c2010);
}
:root:is([data-color-theme="blackGold"],[data-color-theme="glass"],[data-color-theme="teahouse"],[data-color-theme="future"],[data-color-theme="minimal"],[data-color-theme="jade"],[data-color-theme="original"],[data-color-theme="corum"],[data-color-theme="hud"],[data-color-theme="holo"],[data-color-theme="control"]) :is(.boiler-card,.boiler-quick-card,.theme-preview-card,.settings-card,.panel,.modal-card,.panel-card,.control-card,.ledger-card,.center-section) {
  background-image:var(--appearance-finish)!important;
  border-radius:var(--appearance-radius);
  border-style:var(--appearance-edge);
}
:root[data-effective-theme="dark"] {--appearance-focus:var(--theme-accent)}
:root[data-effective-theme="light"] {--appearance-focus:var(--theme-primary)}
#themeSettingsDialog :is(.theme-setting-panel,.theme-live-preview,.theme-preview-card) {
  background-color:var(--theme-surface)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-border)!important;
}
#themeSettingsDialog .theme-setting-panel h3 {color:var(--theme-text)}
#themeSettingsDialog :is(.theme-mode-options,.theme-palette-options) label>span {
  background-color:var(--theme-surface-2);
  color:var(--theme-text);
  border-color:var(--theme-border);
}
#themeSettingsDialog :is(.theme-mode-options,.theme-palette-options) input:checked+span {
  border-color:var(--appearance-focus);
  background-color:color-mix(in srgb,var(--appearance-focus) 9%,var(--theme-surface));
  box-shadow:inset 0 0 0 1px var(--appearance-focus);
}
#themeSettingsDialog :is(.theme-mode-options,.theme-palette-options) input:focus-visible+span {
  outline:2px solid var(--appearance-focus);outline-offset:2px;
}
#themeSettingsDialog :is(.theme-mode-options i,.theme-live-preview>div p) {color:var(--appearance-focus)}
#themeSettingsDialog .theme-setting-panel:has(#appearanceEffects) {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
}
#themeSettingsDialog .theme-setting-panel:has(#appearanceEffects)>h3,
#themeSettingsDialog .theme-setting-panel:has(#appearanceEffects)>label:first-of-type {grid-column:1/-1}
#themeSettingsDialog .theme-setting-panel:has(#appearanceEffects)>label {
  display:grid;gap:6px;color:var(--theme-text);font-size:.75rem;min-width:0;
}
#themeSettingsDialog .theme-setting-panel:has(#appearanceEffects)>label:first-of-type {
  display:flex;align-items:center;gap:8px;min-height:44px;
}
#themeSettingsDialog #appearanceEffects {accent-color:var(--appearance-focus);width:20px;height:20px;flex:none}
#themeSettingsDialog :is(#appearanceIntensity,#appearanceSpeed) {width:100%;min-width:0;min-height:44px;padding:7px 10px}
#themeSettingsDialog .theme-sample {max-width:100%}
#themeSettingsDialog .theme-preview-card {position:relative;overflow:hidden}
@media(max-width:420px){
  #themeSettingsDialog .theme-setting-panel:has(#appearanceEffects){grid-template-columns:minmax(0,1fr)}
}
:root[data-tech-theme="true"] :is(.boiler-card,.boiler-quick-card,.theme-preview-card) {
  box-shadow:inset 0 0 12px color-mix(in srgb,var(--theme-accent) 12%,transparent),var(--theme-shadow);
}
:root[data-tech-theme="true"][data-effective-theme="dark"] :is(.section-heading p,.section-title,.theme-live-preview>div p) {
  color:var(--theme-accent)!important;
}
@keyframes appearance-r675-scan {
  0%,100%{transform:translateY(0);opacity:0}
  18%,82%{opacity:var(--light-strength)}
  85%{transform:translateY(1.05em);opacity:0}
}
@keyframes appearance-r675-travel {
  0%{transform:translateX(-100%);opacity:0}
  15%,85%{opacity:var(--light-strength)}
  100%{transform:translateX(300%);opacity:0}
}
@media(prefers-reduced-motion:no-preference){
  [data-tech-theme="true"][data-effects="true"][data-page-visible="true"] [data-current][data-fresh="true"]::after {
    content:"";position:absolute;inset-inline:-.3em;top:0;height:1px;pointer-events:none;
    background:linear-gradient(90deg,transparent,var(--theme-accent),transparent);
    box-shadow:0 0 6px var(--theme-accent);animation:appearance-r675-scan var(--motion-time) linear infinite;
  }
  [data-tech-theme="true"][data-effects="true"][data-page-visible="true"] #themeSettingsDialog .theme-preview-card::after {
    content:"";position:absolute;left:0;bottom:0;width:34%;height:2px;pointer-events:none;
    background:linear-gradient(90deg,transparent,var(--theme-accent),transparent);
    box-shadow:0 0 8px var(--theme-accent);animation:appearance-r675-travel var(--motion-time) linear infinite;
  }
  [data-tech-theme="true"][data-effects="true"][data-page-visible="true"] [data-current][data-fresh="true"]::before {
    border-width:2px;filter:drop-shadow(0 0 3px var(--theme-accent));
  }
}

/* R676 — gerçek işletme ekranlarından gelen tema düzeltmeleri.
   Yerleşim, masa kimliği, durum ve işlem kuralları korunur. */
:root[data-effective-theme="dark"] body:has(#brewList) :is(.summary-panel,.active-panel,.history-panel,.history-item,.empty-state,.history-empty,.meta-item,.stat-card) {
  background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
}
:root[data-effective-theme="dark"] body:has(#brewList) .brew-card {
  background:radial-gradient(ellipse at top right,var(--state-soft),transparent 65%),var(--theme-surface-2)!important;
  color:var(--theme-text);border-color:color-mix(in srgb,var(--state-color) 55%,var(--theme-border));
}
:root[data-effective-theme="dark"] body:has(#brewList) :is(.stat-card strong,.meta-item strong,.brew-name,.reset-count-button strong) {color:var(--theme-text)!important}
:root[data-effective-theme="dark"] body:has(#brewList) :is(.brew-started,.timer-label,.timer-note,.progress-meta span,.progress-heading span,.capacity-note,.history-empty,.stat-card span,.meta-item span) {color:var(--theme-muted)!important}
:root[data-effective-theme="dark"] body:has(#brewList) :is(.timer-value,.state-badge,.progress-heading strong,.progress-meta strong) {color:color-mix(in srgb,var(--state-color) 62%,white)!important}
:root[data-effective-theme="dark"] body:has(#brewList) .progress-track {background:var(--theme-input)}
:root[data-effective-theme="dark"] body:has(#brewList) :is(.live-badge,.connection-badge:not(.is-error),.ready-button) {color:#88e6ae;background:#17422c}
:root[data-effective-theme="dark"] body:has(#brewList) :is(.finish-button,.connection-badge.is-error) {color:#ffb2b7;background:#4b2129}
:root[data-effective-theme="dark"] #tableEditDialog :is(.notice,.org-toggle,.current-account-form-hint) {
  color:var(--theme-text)!important;background:var(--theme-surface-2)!important;border:1px solid var(--theme-border);
}
:root[data-effective-theme="dark"] #tableEditDialog .org-toggle small {color:var(--theme-muted)!important}
:root[data-effective-theme="dark"] #tableEditDialog .current-account-form-hint {border-color:#3281ae}
#themeSettingsDialog {overflow:hidden;box-sizing:border-box;max-height:calc(100dvh - 24px)}
#themeSettingsDialog>form {box-sizing:border-box;max-height:calc(100dvh - 24px);min-height:0;overflow-y:auto;overscroll-behavior:contain}
#themeSettingsDialog .dialog-actions {position:sticky;bottom:-1px;z-index:4;background:var(--theme-surface);padding:10px 0 4px;border-top:1px solid var(--theme-border)}
#themeSettingsDialog .dialog-actions>* {min-height:44px}
#themeSettingsDialog :is(#appearanceIntensity,#appearanceSpeed) {border-radius:12px;padding-inline:12px 30px}
:root[data-tech-theme="true"][data-effective-theme="dark"] {--fce-neon:var(--theme-accent);--fce-card-neon:var(--theme-accent)}
:root[data-tech-theme="true"][data-effective-theme="light"] {--fce-neon:var(--theme-primary);--fce-card-neon:var(--theme-primary)}
:root[data-tech-theme="true"] #tablesView {
  border-color:color-mix(in srgb,var(--fce-neon) 60%,var(--theme-border));
  background-image:radial-gradient(ellipse at top,color-mix(in srgb,var(--theme-accent) 10%,transparent),transparent 70%),var(--appearance-finish);
  border-radius:var(--appearance-radius);
}
:root[data-tech-theme="true"] #tablesView .table-card {
  --fce-state:var(--fce-card-neon);
  --fce-tint:var(--fce-card-neon);
  --fce-fill:var(--theme-surface-2);
  border:1px solid color-mix(in srgb,var(--fce-state) 67%,var(--theme-border));
  border-radius:var(--appearance-radius);
  background:linear-gradient(145deg,color-mix(in srgb,var(--fce-fill) 82%,var(--fce-tint)),var(--fce-fill))!important;
  background-image:var(--appearance-finish),linear-gradient(145deg,color-mix(in srgb,var(--fce-fill) 82%,var(--fce-tint)),var(--fce-fill))!important;
  box-shadow:inset 0 0 14px color-mix(in srgb,var(--fce-state) 13%,transparent),0 3px 10px color-mix(in srgb,var(--fce-state) 12%,transparent);
  isolation:isolate;
}
:root[data-tech-theme="true"] #tablesView .table-card.empty-table {--fce-state:var(--fce-card-neon)}
:root[data-tech-theme="true"][data-effective-theme="dark"] #tablesView .table-card.occupied {
  box-shadow:inset 0 0 18px color-mix(in srgb,var(--fce-state) 20%,transparent),0 0 8px color-mix(in srgb,var(--fce-state) 23%,transparent);
}
:root[data-tech-theme="true"] #tablesView .table-card.empty-table.has-region-style {border-inline-start:4px solid var(--region-end)}
:root[data-tech-theme="true"] #tablesView .table-card.occupied {--fce-state:#38875f;--fce-tint:#38875f;border-inline-start-width:4px}
:root[data-tech-theme="true"][data-effective-theme="dark"] #tablesView .table-card.occupied {--fce-state:#55eaa3}
:root[data-tech-theme="true"] #tablesView .table-card:is(.credit-table,.current-account-table) {--fce-state:#3281ae;--fce-tint:#3281ae}
:root[data-tech-theme="true"][data-effective-theme="dark"] #tablesView .table-card:is(.credit-table,.current-account-table) {--fce-state:#69caff}
:root[data-tech-theme="true"] #tablesView .table-card.organization-table {--fce-state:#c47d22;--fce-tint:#c47d22}
:root[data-tech-theme="true"][data-effective-theme="dark"] #tablesView .table-card.organization-table {--fce-state:#ffc168}
:root[data-tech-theme="true"] #tablesView .table-card::before {
  content:"";position:absolute;inset:5px;pointer-events:none;z-index:0;
  border-radius:inherit;
  background:linear-gradient(var(--fce-state),var(--fce-state)) left top/15px 1px no-repeat,
             linear-gradient(var(--fce-state),var(--fce-state)) left top/1px 15px no-repeat,
             linear-gradient(var(--fce-state),var(--fce-state)) right bottom/15px 1px no-repeat,
             linear-gradient(var(--fce-state),var(--fce-state)) right bottom/1px 15px no-repeat;
  opacity:.65;
}
:root[data-tech-theme="true"] #tablesView .table-open {position:relative;z-index:1}
:root[data-tech-theme="true"] #tablesView .table-open>i {color:var(--fce-state)!important;opacity:1}
:root[data-tech-theme="true"][data-effective-theme="dark"] #tablesView .table-card.occupied .table-open>b {color:var(--fce-state)!important;text-shadow:0 0 9px color-mix(in srgb,var(--fce-state) 35%,transparent)}
:root[data-tech-theme="true"] #tablesView .table-card.empty-table .table-open>b {color:var(--theme-muted)!important}
:root[data-tech-theme="true"] #tablesView .pos-tea-card.is-empty {
  background-image:var(--appearance-finish)!important;border-radius:var(--appearance-radius);
}
:root[data-tech-theme="true"] #tablesView .quick-actions button {
  border:1px solid var(--theme-border);box-shadow:inset 0 0 8px color-mix(in srgb,var(--theme-accent) 10%,transparent);
}
:root[data-tech-theme="true"] :is(.center-card,.stat-card,.brew-card,.boiler-card,.boiler-quick-card) {
  border-radius:var(--appearance-radius);box-shadow:inset 0 0 15px color-mix(in srgb,var(--theme-accent) 12%,transparent),var(--theme-shadow);
}
:root[data-tech-theme="true"] .card-grid .center-card {
  background-image:var(--appearance-finish)!important;
  border-color:color-mix(in srgb,var(--fce-neon) 43%,var(--theme-border))!important;
}
:root[data-tech-theme="true"] .card-grid-daily .center-card {
  background-image:var(--appearance-finish),linear-gradient(145deg,var(--theme-primary-dark),var(--theme-primary))!important;
}
:root[data-tech-theme="true"] .card-grid .center-card .card-icon {background:var(--theme-primary);color:var(--theme-on-primary)}
:root[data-tech-theme="true"] :is(.boiler-temperature-card,.boiler-quick-current):has([data-current][data-fresh="true"]) {
  isolation:isolate;overflow:hidden;
}
:root[data-tech-theme="true"] :is(.boiler-temperature-card,.boiler-quick-current) [data-current]::before {content:none!important}
:root[data-tech-theme="true"] :is(.boiler-temperature-card,.boiler-quick-current):has([data-current][data-fresh="true"])::before {
  content:"";position:absolute;width:min(66%,164px);aspect-ratio:1;left:50%;top:55%;translate:-50% -50%;
  border-radius:50%;pointer-events:none;z-index:-1;
  background:repeating-conic-gradient(from 0deg,var(--fce-neon) 0deg 2deg,transparent 2deg 12deg);
  mask:radial-gradient(circle,transparent 0 63%,#000 64% 67%,transparent 68%);
  opacity:.58;
}
:root[data-tech-theme="true"] #smartBoilerQuickDialog .boiler-quick-current>i {color:var(--fce-neon)}
:root[data-tech-theme="true"] :is(.boiler-temperature-card,.boiler-quick-current) [data-current] {color:var(--theme-text)}
@keyframes fce-r676-edge {
  0%{transform:translateX(-115%);opacity:0}
  20%,80%{opacity:var(--light-strength)}
  100%{transform:translateX(390%);opacity:0}
}
@keyframes fce-r676-breath {0%,100%{opacity:1}50%{opacity:.55}}
@media(prefers-reduced-motion:no-preference){
  :root[data-tech-theme="true"][data-effects="true"][data-page-visible="true"] #tablesView .table-card.occupied::after {
    content:"";position:absolute;bottom:0;left:0;width:28%;height:2px;pointer-events:none;z-index:2;
    background:linear-gradient(90deg,transparent,var(--fce-state),transparent);
    box-shadow:0 0 8px var(--fce-state);animation:fce-r676-edge var(--motion-time) linear infinite;
  }
  :root[data-tech-theme="true"][data-effects="true"][data-page-visible="true"] :is(.boiler-temperature-card,.boiler-quick-current):has([data-current][data-fresh="true"])::before {
    animation:appearance-orbit calc(var(--motion-time)*2) linear infinite;
  }
  :root[data-tech-theme="true"][data-effects="true"][data-page-visible="true"] .boiler-quick-heading-actions>span[data-state="online"] {
    box-shadow:inset 0 0 12px #7af1b1;animation:fce-r676-breath calc(var(--motion-time)/2) ease-in-out infinite;
  }
}
:root[data-tech-theme="true"][data-effects="false"] .live-badge>span,
:root[data-tech-theme="true"][data-effects="false"] .progress-fill::after {animation:none}
@media(prefers-reduced-motion:reduce){
  :root[data-tech-theme="true"] .live-badge>span,
  :root[data-tech-theme="true"] .progress-fill::after {animation:none}
}

/* Diğer yeni temalarda da masa kartları kendi yüzey ve köşe dilini taşır. */
:root:is([data-color-theme="blackGold"],[data-color-theme="glass"],[data-color-theme="teahouse"],[data-color-theme="future"],[data-color-theme="minimal"],[data-color-theme="jade"],[data-color-theme="original"],[data-color-theme="corum"]) #tablesView .table-card {
  background-image:var(--appearance-finish)!important;border-radius:var(--appearance-radius);border-style:var(--appearance-edge);
}


/* R677 — holografik Adisyon: mevcut durum renkleriyle tam çevre ışığı. */
:root[data-tech-theme="true"] #tablesView {
  box-shadow:inset 0 0 24px color-mix(in srgb,var(--fce-neon) 12%,transparent),var(--theme-shadow);
}
:root[data-tech-theme="true"] #tablesView .control-panel-divider::before,
:root[data-tech-theme="true"] #tablesView .control-panel-divider::after {
  background:linear-gradient(90deg,transparent,var(--fce-neon),transparent);
}
:root[data-tech-theme="true"] #tablesView :is(.open-total-card,.pos-tea-card,#startPosTeaBrew,.quick-actions .icon-action) {
  border-radius:var(--appearance-radius);
}
:root[data-tech-theme="true"] #tablesView .open-total-card {
  background:var(--appearance-finish),linear-gradient(145deg,var(--theme-primary),var(--theme-primary-dark));
  color:var(--theme-on-primary);border-color:var(--theme-accent);--orbit-color:var(--theme-accent);
}
:root[data-tech-theme="true"] #tablesView .pos-tea-card:not(.is-empty) {
  background:var(--appearance-finish),linear-gradient(145deg,color-mix(in srgb,var(--tea-state) 24%,var(--theme-surface)),var(--theme-surface-2));
  border-color:var(--tea-state);box-shadow:inset 0 0 15px color-mix(in srgb,var(--tea-state) 22%,transparent);
}
:root[data-tech-theme="true"] #tablesView .pos-tea-card:not(.is-empty) :is(span,strong,small) {
  color:var(--theme-text);opacity:1;
}
:root[data-tech-theme="true"] #tablesView #startPosTeaBrew {
  background:var(--appearance-finish),linear-gradient(145deg,var(--theme-primary),var(--theme-primary-dark));
  color:var(--theme-on-primary);border-color:var(--theme-accent);--orbit-color:var(--theme-accent);
}
:root[data-tech-theme="true"] #tablesView #startPosTeaBrew i {color:var(--theme-accent)}
:root[data-tech-theme="true"] #tablesView .quick-actions .icon-action {
  background-image:var(--appearance-finish);border-color:color-mix(in srgb,var(--fce-neon) 48%,var(--theme-border));color:var(--fce-neon)!important;
}
@media(prefers-reduced-motion:no-preference){
  :root[data-tech-theme="true"][data-effects="true"][data-page-visible="true"] #tablesView :is(.open-total-card,.pos-tea-card,.pos-tea-start)::before {
    animation-duration:var(--motion-time);
  }
  @supports(mask-composite:exclude){
    :root[data-tech-theme="true"][data-effects="true"][data-page-visible="true"] #tablesView .table-card.occupied::after {
      inset:0;width:auto;height:auto;padding:2px;border-radius:inherit;
      background:conic-gradient(from var(--tea-border-angle),transparent 0deg 245deg,var(--fce-state) 290deg,color-mix(in srgb,var(--fce-state) 38%,white) 325deg,transparent 360deg);
      mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;
      box-shadow:none;opacity:calc(.4 + var(--light-strength) * .6);animation:teaBorderOrbit var(--motion-time) linear infinite;
    }
  }
}
:root[data-tech-theme="true"]:is([data-effects="false"],[data-page-visible="false"]) #tablesView :is(.open-total-card,.pos-tea-card,.pos-tea-start)::before {
  animation:none!important;display:none!important;
}
