/* Finishing layer: strong industrial contrast and a focused correspondence workspace. */
:root{--focus-ring:#1587e8;--motion-duration:180ms}
button,input,select,textarea{transition:background-color var(--motion-duration),border-color var(--motion-duration),box-shadow var(--motion-duration)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}
.sidebar .icon{stroke-width:1.9;opacity:1}.sidebar button.active{box-shadow:inset 3px 0 #fb791b}.table-wrap{overscroll-behavior-x:contain}
.mail-composer{width:min(900px,100vw)!important;max-width:100vw!important}.mail-composer .drawer-head{border-bottom:3px solid #f47721}.mail-composer .drawer-body{padding:24px}.composer-context,.composer-tools,.composer-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.composer-context{padding:12px 16px;border-radius:12px;background:#102b49;color:#fff;margin-bottom:20px;font-size:12px}.composer-context>span:first-child{display:flex;gap:9px;align-items:center}.composer-tools{margin:20px 0 10px}.composer-tools .actions{gap:8px}.composer-tools button{font-size:12px}.rich-mail-shell{border:1px solid #c6d2df;border-radius:12px;background:#fff;color:#18314f;min-width:0}.mail-composer .ql-toolbar.ql-snow{border:0;border-bottom:1px solid #d8e0eb;border-radius:12px 12px 0 0;background:#f1f5f9;padding:12px 8px;display:flex;flex-wrap:wrap;gap:4px}.mail-composer .ql-container.ql-snow{border:0;font:14px/1.7 Arial,sans-serif;min-height:240px}.mail-composer .ql-editor{min-height:240px;padding:20px;overflow-wrap:anywhere}.mail-composer .ql-toolbar button{border-radius:5px;box-shadow:none;min-height:28px;min-width:28px;padding:3px 5px;background:transparent}.mail-composer .ql-toolbar button:hover,.mail-composer .ql-toolbar button.ql-active{background:#dceaff;color:#1d56a4}.mail-composer .ql-snow .ql-picker{color:#18314f}.mail-composer .ql-snow .ql-stroke{stroke:#18314f}.mail-composer .ql-snow .ql-fill{fill:#18314f}.mail-composer .ql-toolbar .ql-formats{margin-right:6px}.composer-meta{font-size:12px;margin:12px 0;color:var(--muted,#65758b)}.signature-toggle{display:flex;gap:10px;align-items:center;padding:10px 0;font-size:13px}.signature-toggle input{width:18px;height:18px;accent-color:#eb691b}.signature-preview,.mail-preview{background:white;color:#18314f;border:1px solid #dbe3ec;border-radius:12px;padding:20px;overflow-wrap:anywhere}.signature-preview:empty{display:none}.signature-preview>div{margin-top:0!important}.mail-preview{margin:18px 0}.mail-preview[hidden]{display:none}.mail-composer .pdf-attachment{margin-top:18px}.mail-composer .drawer-footer{background:var(--surface,#fff);display:flex;flex-wrap:wrap;gap:10px}.personal-mail-settings{flex-shrink:0}.mail-composer .ql-tooltip{left:8px!important;max-width:calc(100% - 16px);white-space:normal;z-index:5}.mail-composer .ql-tooltip input{max-width:160px}
@media(max-width:600px){.mail-composer .drawer-body{padding:16px}.composer-context{gap:8px}.mail-composer .drawer-footer>button{flex:1 1 130px}.mail-composer .form-grid{grid-template-columns:1fr}.mail-composer .ql-toolbar.ql-snow{padding:8px 4px}.mail-composer .ql-editor{padding:14px}.signature-preview,.mail-preview{padding:16px}.personal-mail-settings{display:none}}
@media(prefers-reduced-motion:no-preference){.mail-composer{animation:mail-enter 220ms cubic-bezier(.2,.8,.2,1)}@keyframes mail-enter{from{opacity:.3;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.revision-composer{width:min(1180px,100vw)!important}.revision-banner{display:flex;gap:16px;align-items:center;border:1px solid #254e73;background:linear-gradient(120deg,#10253d,#143b60);color:#fff;padding:24px;border-radius:16px;margin-bottom:24px}.revision-banner .eyebrow{color:#7dd3fc}.revision-banner h3{font-size:22px;color:#fff;margin:5px 0}.revision-banner h3 span{font-size:12px;background:#ffffff1a;border:1px solid #ffffff30;border-radius:6px;padding:4px 8px;vertical-align:middle;margin-left:8px}.revision-banner p{font-size:12px;color:#c4d7e8;margin:8px 0 0}.revision-symbol{width:48px;height:48px;border-radius:14px;background:#f47721;display:grid;place-items:center;flex-shrink:0}.revision-symbol .icon{width:25px;height:25px}.revision-lock{margin-left:auto;display:flex;gap:7px;align-items:center;font-size:11px;white-space:nowrap;color:#a5e7dc}.revision-layout{grid-template-columns:minmax(0,1fr) 290px;align-items:start}.revision-main{min-width:0}.revision-section{padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff);margin-bottom:18px}.section-caption{display:flex;gap:12px;align-items:center;margin-bottom:20px}.section-caption>span{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:9px;background:#e5f0ff;color:#1e56a1;font-size:11px;font-weight:700}.section-caption h3{margin:0 0 4px}.section-caption small{color:var(--muted)}.customer-locked input[readonly]{background:#f1f5f9;border-color:#dce4ed;color:#435972;cursor:default}.revision-products{margin-bottom:18px}.revision-summary{position:sticky;top:86px;border-top:3px solid #f47721;border-radius:14px}.discount-presets{display:flex;flex-wrap:wrap;margin:12px 0;gap:6px}.revision-delta{display:grid;grid-template-columns:1fr auto;gap:10px;font-size:12px;border-top:1px dashed var(--line);margin-top:20px;padding-top:18px}.revision-delta small{grid-column:1/-1;color:var(--muted)}.revision-delta .up{color:#137661}.revision-delta .down{color:#b94c32}.form-error:not(:empty){color:#b91c35;background:#fff0f3;border:1px solid #f3b4c1;padding:14px;border-radius:10px}.quality-records{margin-top:20px}.mail-composer .form-grid>.full{grid-column:1/-1}
[data-theme="dark"] .revision-section,[data-theme="dark"] .revision-summary{background:#152b43;border-color:#30465e}[data-theme="dark"] .customer-locked input[readonly]{background:#102136;color:#c0d5e8;border-color:#30465e}[data-theme="dark"] .section-caption>span{background:#163f65;color:#83caff}[data-theme="dark"] .revision-delta .up{color:#5ce0bb}[data-theme="dark"] .revision-delta .down{color:#ffa38e}[data-theme="dark"] .mail-composer .drawer-footer{background:#152b43}
@media(max-width:850px){.revision-layout{grid-template-columns:1fr}.revision-summary{position:static}.revision-banner{padding:18px;flex-wrap:wrap}.revision-lock{margin-left:64px}.revision-section{padding:16px}.revision-composer .drawer-footer{display:flex;flex-wrap:wrap;gap:8px}.revision-composer .drawer-footer button{flex:1 1 140px}}
.mobile-signature-settings{display:none}.ql-editor p,.ql-editor li,.ql-editor h1,.ql-editor h2,.ql-editor h3{color:inherit}.ql-editor{color:#18314f}.revision-composer .drawer-head,.revision-composer .drawer-footer{z-index:4}.revision-products .line-input{min-width:84px}.revision-composer .drawer-body{min-width:0}.sidebar .nav-item{transition:background .16s,color .16s,box-shadow .16s}.sidebar .nav-item .icon{width:20px;height:20px}.panel-head h2{letter-spacing:-.35px}.table-wrap thead th{font-size:11px;letter-spacing:.02em}.table-wrap tbody td{font-size:12px}.table-wrap tbody tr[data-action]:focus-visible{outline:2px solid #168be0;outline-offset:-2px}.quality-records .phase2-row{padding:20px;border-radius:12px;border:1px solid var(--line);margin-bottom:12px}.quality-records small{line-height:1.7}.revision-composer .drawer-footer>button.primary{min-width:210px}
@media(max-width:600px){.mobile-signature-settings{display:flex;width:100%;gap:8px}.compact .mobile-signature-settings span{display:inline}.revision-composer .drawer-footer>button.primary{min-width:0;flex-basis:100%}}
#overlay .mail-composer #mail-toolbar button{background:transparent;border:0;color:#18314f}#overlay .mail-composer #mail-toolbar button:hover,#overlay .mail-composer #mail-toolbar button.ql-active{background:#dceaff;color:#215aba}#overlay .composer-tools>strong{color:var(--ink)}#overlay .signature-preview p,#overlay .signature-preview strong,#overlay .mail-preview p,#overlay .mail-preview h1,#overlay .mail-preview h2,#overlay .mail-preview h3,#overlay .mail-preview strong{color:#18314f}#overlay .mail-preview a,#overlay .signature-preview a{color:#215aba}
[data-theme="dark"] #overlay .rich-mail-shell{background:#102136;border-color:#385271}[data-theme="dark"] #overlay .mail-composer .ql-toolbar{background:#1a3450;border-color:#385271}[data-theme="dark"] #overlay .mail-composer #mail-toolbar button,[data-theme="dark"] #overlay .mail-composer .ql-picker{color:#e7f1fc}[data-theme="dark"] #overlay .mail-composer #mail-toolbar button:hover,[data-theme="dark"] #overlay .mail-composer #mail-toolbar button.ql-active{background:#2f5478}[data-theme="dark"] #overlay .mail-composer .ql-stroke{stroke:#e7f1fc}[data-theme="dark"] #overlay .mail-composer .ql-fill{fill:#e7f1fc}[data-theme="dark"] #overlay .mail-composer .ql-editor{color:#e7f1fc}[data-theme="dark"] #overlay .mail-composer .ql-editor p{color:inherit}[data-theme="dark"] #overlay .mail-composer .ql-picker-options{background:#1a3450;border-color:#385271}[data-theme="dark"] #overlay .mail-composer .ql-tooltip{background:#1a3450;color:#e7f1fc;border-color:#385271}
/* Dark mode okunabilirlik düzeltmeleri */
[data-theme="dark"] .task-row strong,[data-theme="dark"] .task-row .right,[data-theme="dark"] .task-row .right *{color:#e9f2ff}
[data-theme="dark"] .task-row small{color:#a9bdd7}
[data-theme="dark"] .stack-value{color:#c7d7ea}[data-theme="dark"] .stack-label{color:#a9bdd7}
[data-theme="dark"] .distribution-legend small,[data-theme="dark"] .fx-card small,[data-theme="dark"] .metal-ticker small,[data-theme="dark"] .metal-ticker strong small{color:#a9bdd7}
[data-theme="dark"] .market-status{background:#12233a;color:#a9bdd7;border-color:#2a405d}
[data-theme="dark"] .category-row span{color:#b8c9dc}[data-theme="dark"] .category-row strong{color:#edf4ff}
[data-theme="dark"] .market-change.up{color:#5ee0b4}[data-theme="dark"] .market-change.down{color:#ff9d8f}
[data-theme="dark"] .funnel b{color:#0d223d}
[data-theme="dark"] .clock-seconds .clock-face,[data-theme="dark"] .clock-seconds .clock-outgoing{color:#8fb0d6}
[data-theme="dark"] .signature-toggle,[data-theme="dark"] label{color:#d3e1f2}
[data-theme="dark"] .signature-toggle{display:flex;align-items:center;gap:10px;margin:16px 0}
[data-theme="dark"] .cart-steps b{color:#ffb36a}
[data-theme="dark"] .summary-row span:not(.badge),[data-theme="dark"] .summary-row b,[data-theme="dark"] .summary-row strong{color:#e9f2ff}
[data-theme="dark"] .summary-row strong.risk-text,[data-theme="dark"] .trade-card .summary-row strong.risk-text{color:#ff9d8f}
[data-theme="dark"] .report-row strong{color:#e9f2ff}
/* Revizyon formu · modern görünüm */
.revision-banner{position:relative;overflow:hidden;flex-wrap:wrap;box-shadow:0 14px 34px #0c223c33}
.revision-banner:after{content:"";position:absolute;right:-60px;top:-80px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,#f4772133,transparent 70%);pointer-events:none}
.revision-chips{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:11px;font-weight:600}
.revision-chips .icon{width:14px;height:14px;color:#9cc3e6}
.revision-chips span{padding:5px 10px;border-radius:999px;border:1px solid #ffffff2e;background:#ffffff14;color:#e6f1fb}
.revision-chips .chip-to{background:#f47721;border-color:#f47721;color:#fff}
.revision-chips .chip-status{background:transparent;color:#a5e7dc;border-color:#a5e7dc55}
.revision-lock{margin-left:0;padding:6px 11px;border-radius:999px;background:#0f6b5a33;border:1px solid #a5e7dc44}
.revision-section{transition:box-shadow .2s,border-color .2s;box-shadow:0 1px 2px #10244010}
.revision-section:focus-within{border-color:#4f8fdc;box-shadow:0 0 0 3px #4f8fdc22}
.customer-card{display:flex;align-items:center;gap:14px;padding:14px 16px;margin-bottom:16px;border-radius:12px;border:1px solid #d3e0ef;background:linear-gradient(120deg,#f4f8fd,#eaf2fb)}
.customer-avatar{width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,#1e56a1,#2f7fd6);color:#fff;font-weight:700;font-size:15px;letter-spacing:.5px}
.customer-card-body{min-width:0;display:flex;flex-direction:column;gap:3px}
.customer-card-body strong{font-size:15px;color:#14324f}
.customer-card-body small{color:#5a7189;font-size:11.5px}
.customer-pin{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#fff;border:1px solid #cfdceb;color:#35557a;font-size:11px;font-weight:600;white-space:nowrap}
.customer-pin .icon{width:13px;height:13px}
.customer-locked input[readonly]{background-image:none;font-weight:500}
.customer-note{display:flex;gap:10px;align-items:flex-start;margin:16px 0 0;padding:11px 13px;border-radius:10px;background:#fff7ed;border:1px solid #f6d7b5;color:#7a4412;font-size:12px;line-height:1.55}
.customer-note .icon{width:16px;height:16px;flex-shrink:0;margin-top:2px}
.link-btn{all:unset;cursor:pointer;color:#c4560a;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.link-btn:hover{color:#8f3a05}.link-btn:focus-visible{outline:2px solid #f47721;outline-offset:2px;border-radius:3px}
.line-flag{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:700;vertical-align:middle}
.line-flag.changed{background:#fff1d6;color:#8a5200}.line-flag.added{background:#dcf5ec;color:#0b6b54}
.revision-summary{box-shadow:0 10px 30px #10244018;background:linear-gradient(180deg,#fff,#f8fbff)}
[data-theme="dark"] .customer-card{background:linear-gradient(120deg,#16314e,#12263d);border-color:#30516f}
[data-theme="dark"] .customer-card-body strong{color:#edf4ff}[data-theme="dark"] .customer-card-body small{color:#a9bdd7}
[data-theme="dark"] .customer-pin{background:#0f2237;border-color:#30516f;color:#b8d2ee}
[data-theme="dark"] .customer-note{background:#3a2a14;border-color:#7a5524;color:#ffd9a6}
[data-theme="dark"] .link-btn{color:#ffb36a}[data-theme="dark"] .link-btn:hover{color:#ffd0a0}
[data-theme="dark"] .line-flag.changed{background:#4a3216;color:#ffd083}[data-theme="dark"] .line-flag.added{background:#103f33;color:#74dfbd}
[data-theme="dark"] .revision-summary{background:linear-gradient(180deg,#152b43,#112338)}
[data-theme="dark"] .revision-section:focus-within{border-color:#4f8fdc}
@media(max-width:850px){.revision-chips{margin-left:64px}.customer-card{flex-wrap:wrap}.customer-pin{margin-left:0}}
/* İmza logosu yükleme */
.logo-upload{display:flex;gap:16px;align-items:center;margin:18px 0;padding:14px;border:1px dashed #b7c8dc;border-radius:12px;background:#f7faff}
.logo-upload-preview{width:112px;height:72px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:#fff;border:1px solid #dbe5f0;overflow:hidden}
.logo-upload-preview img{max-width:100%;max-height:100%;object-fit:contain}
.logo-upload-preview .icon{width:28px;height:28px;color:#8aa0b8}
.logo-upload-body{display:flex;flex-direction:column;gap:6px;min-width:0}
.logo-upload-body small{color:#5a7189;font-size:11.5px}
.logo-upload-actions{display:flex;gap:8px;flex-wrap:wrap}
.logo-upload-btn{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border:1px solid #cbd7e5;border-radius:8px;cursor:pointer;font-weight:600;color:#284c78;background:#fff}
.logo-upload-btn .icon{width:15px;height:15px}.logo-upload-btn:hover{background:#eef4fb}
.logo-upload-btn:focus-within,#signature-logo-file:focus-visible+*{outline:2px solid #f47721}
[data-theme="dark"] .logo-upload{background:#12263d;border-color:#3a5675}
[data-theme="dark"] .logo-upload-body strong{color:#edf4ff}[data-theme="dark"] .logo-upload-body small{color:#a9bdd7}
[data-theme="dark"] .logo-upload-btn{background:#1a3450;border-color:#385271;color:#d3e1f2}[data-theme="dark"] .logo-upload-btn:hover{background:#22425f}
@media(max-width:560px){.logo-upload{flex-direction:column;align-items:flex-start}}
[data-theme="dark"] .revision-delta span,[data-theme="dark"] .revision-delta strong{color:#e9f2ff}
.revision-chips .chip-to{background:#c4560a;border-color:#e0721f}
[data-theme="dark"] .chart-axis span,[data-theme="dark"] .chart-controls span{color:#a9bdd7}
.topbar .profile .avatar{background:#c4560a}
[data-theme="dark"] .risk-text{color:#ff9d8f!important}
.flow button:nth-child(3n + 2) .step-num{background:#c4560a}.flow button:nth-child(3n) .step-num{background:#006b54}
/* Mobil çakışma düzeltmeleri */
@media(max-width:760px){
html,body{max-width:100%;overflow-x:hidden}
.shell,.main,.content{max-width:100vw;min-width:0}
.topbar{flex-wrap:nowrap;min-width:0;overflow:hidden}
.topbar .personal-mail-settings{display:none}
.topbar>*{flex-shrink:0}.topbar .profile{flex-shrink:1;min-width:0}.profile select{min-width:0;max-width:100%}
.team-launch{width:50px;height:50px;min-height:50px!important;padding:0!important;justify-content:center;border-radius:50%;bottom:calc(78px + env(safe-area-inset-bottom))!important;right:12px!important}
.team-launch>span:not(.chat-unread):not(.chat-dot){display:none}
.team-launch .chat-unread,.team-launch b{position:absolute;top:-4px;right:-4px}
.mail-layout,.mail-layout>*{min-width:0}
.mail-folders{display:flex;overflow-x:auto;gap:6px;-webkit-overflow-scrolling:touch;scrollbar-width:none}.mail-folders::-webkit-scrollbar{display:none}
.mail-folders>*{flex-shrink:0}
.page-heading{flex-wrap:wrap}.page-heading>.actions{width:100%}
.panel-head{min-width:0}.panel-head>*{min-width:0}
.workspace-clock{max-width:100%}
.drawer-footer{position:sticky;bottom:0;padding-bottom:max(12px,env(safe-area-inset-bottom))}
.toast,#toast{max-width:calc(100vw - 24px);bottom:calc(84px + env(safe-area-inset-bottom))}
}
@media(max-width:760px){.revision-chips,.revision-lock{margin-left:0!important}.revision-banner>div:nth-child(2){flex:1 1 200px}.team-launch .chat-dot,.team-launch i{position:absolute;top:6px;right:6px}}
[data-theme="dark"] .badge:not(.orange):not(.green):not(.red):not(.blue){color:#c3d3e6;background:#243a55}
/* Tanıtım turu */
body.tour-open{overflow:hidden}
#tour{position:fixed;inset:0;z-index:3000}
.tour-blur{position:fixed;background:rgba(7,17,32,.55);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);transition:left .28s ease,top .28s ease,width .28s ease,height .28s ease}
.tour-ring{position:fixed;border:2px solid #f47721;border-radius:12px;box-shadow:0 0 0 4px #f4772133,0 0 28px #f4772166;pointer-events:none;transition:left .28s ease,top .28s ease,width .28s ease,height .28s ease,opacity .2s}
.tour-arrow{position:fixed;width:28px;height:28px;pointer-events:none;transition:left .28s ease,top .28s ease,opacity .2s}
.tour-arrow span{display:block;width:28px;height:28px;animation:tour-bob-right 1s ease-in-out infinite}
.tour-arrow svg{width:28px;height:28px;stroke:#ffb36a;stroke-width:2.8;filter:drop-shadow(0 2px 6px #000a)}
.tour-arrow[data-side="right"] svg{transform:rotate(180deg)}.tour-arrow[data-side="bottom"] svg{transform:rotate(-90deg)}.tour-arrow[data-side="top"] svg{transform:rotate(90deg)}
.tour-arrow[data-side="left"] span{animation-name:tour-bob-left}.tour-arrow[data-side="bottom"] span{animation-name:tour-bob-bottom}.tour-arrow[data-side="top"] span{animation-name:tour-bob-top}
@keyframes tour-bob-right{50%{transform:translateX(-8px)}}@keyframes tour-bob-left{50%{transform:translateX(8px)}}
@keyframes tour-bob-bottom{50%{transform:translateY(-8px)}}@keyframes tour-bob-top{50%{transform:translateY(8px)}}
.tour-card{position:fixed;box-sizing:border-box;max-width:calc(100vw - 24px);padding:20px;border-radius:16px;background:#fff;color:#1d3350;border:1px solid #d6e2f0;box-shadow:0 24px 60px #040e1e66;transition:left .28s ease,top .28s ease;outline:none}
.tour-progress{position:absolute;left:20px;right:20px;top:0;height:3px;border-radius:0 0 3px 3px;background:#e4ecf5;overflow:hidden}.tour-progress i{display:block;height:100%;background:linear-gradient(90deg,#f47721,#ffb36a);transition:width .28s ease}
.tour-head{display:flex;gap:12px;align-items:center;margin:6px 0 10px}.tour-head h2{margin:2px 0 0;font-size:17px;line-height:1.3;color:#14304e}.tour-head small{color:#6a7f96;font-size:11px;font-weight:600;letter-spacing:.4px}
.tour-icon{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:12px;background:linear-gradient(135deg,#f47721,#ff9a4d);color:#fff}.tour-icon .icon{width:21px;height:21px}
.tour-card p{margin:0 0 16px;font-size:13px;line-height:1.65;color:#40566f}
.tour-actions{display:flex;align-items:center;gap:8px}.tour-spacer{flex:1}.tour-actions button{min-height:38px;display:inline-flex;align-items:center;gap:6px}.tour-actions .icon{width:15px;height:15px}
[data-theme="dark"] .tour-card{background:#14283f;color:#e6f0fb;border-color:#34506e}[data-theme="dark"] .tour-head h2{color:#f2f7fd}[data-theme="dark"] .tour-card p{color:#b9cbe0}[data-theme="dark"] .tour-head small{color:#9fb5ce}[data-theme="dark"] .tour-progress{background:#24405d}
.tour-help .icon{width:19px;height:19px}
/* Uygulamayı yükle çubuğu */
.install-bar{position:fixed;left:10px;right:10px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:84;display:flex;align-items:center;gap:12px;padding:12px;border-radius:16px;background:#fff;color:#1d3350;border:1px solid #d6e2f0;box-shadow:0 14px 40px #0a1c3a40;animation:install-up .35s cubic-bezier(.2,.8,.2,1)}
.install-bar img{border-radius:11px;flex-shrink:0}.install-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.install-copy strong{font-size:13px;color:#14304e}.install-copy small{font-size:11.5px;color:#587089;line-height:1.45}
.install-steps{margin:8px 0 0;padding-left:18px;font-size:11.5px;line-height:1.6;color:#33506e}.install-steps[hidden]{display:none}
.install-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.install-actions .primary{min-height:38px;padding:0 16px}.install-actions .ghost{min-width:36px;min-height:36px;padding:0}
@keyframes install-up{from{transform:translateY(24px);opacity:0}}
[data-theme="dark"] .install-bar{background:#14283f;color:#e6f0fb;border-color:#34506e}[data-theme="dark"] .install-copy strong{color:#f2f7fd}[data-theme="dark"] .install-copy small,[data-theme="dark"] .install-steps{color:#b9cbe0}
@media(min-width:761px){.install-bar{left:auto;right:20px;bottom:20px;width:400px}}
@media(max-width:760px){body.install-bar-open .team-launch{display:none!important}}
.help-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}.help-actions p{margin:6px 0 12px}
@media(prefers-reduced-motion:reduce){.tour-arrow span,.install-bar{animation:none}.tour-blur,.tour-ring,.tour-card,.tour-arrow,.tour-progress i{transition:none}}
@media(max-width:400px){.topbar-chat{display:none!important}.topbar .profile{min-width:92px}.topbar .profile select{min-width:92px}.topbar{gap:6px}}
/* Dark mode · okunabilirlik katmanı: etiketler ve yardımcı metinler belirgin */
[data-theme="dark"] .field,[data-theme="dark"] label,[data-theme="dark"] .signature-toggle{color:#e8f0fa}
[data-theme="dark"] .field{font-weight:600;font-size:12.5px;letter-spacing:.1px}
[data-theme="dark"] .field>input,[data-theme="dark"] .field>select,[data-theme="dark"] .field>textarea{font-weight:400}
[data-theme="dark"] ::placeholder{color:#93abc6;opacity:1}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{color:#f2f7fd}
[data-theme="dark"] .muted,[data-theme="dark"] .stat-foot,[data-theme="dark"] .section-caption small,[data-theme="dark"] .panel-head small,[data-theme="dark"] td small,[data-theme="dark"] .page-heading p{color:#c6d5e8}
[data-theme="dark"] .content small,[data-theme="dark"] .drawer small,[data-theme="dark"] .drawer-body p{color:#c6d5e8}
[data-theme="dark"] .stat small,[data-theme="dark"] .stat .stat-foot{color:#eaf3ff}
[data-theme="dark"] .demo-label,[data-theme="dark"] .footnote span,[data-theme="dark"] .legend span,[data-theme="dark"] .vivid-legend span,[data-theme="dark"] .chart-summary>span,[data-theme="dark"] .toolbar label{color:#b9cce2}
[data-theme="dark"] .clock-colon{color:#9bb6d6}
[data-theme="dark"] th{color:#c6d5e8}
[data-theme="dark"] .scan-box,[data-theme="dark"] .stock-breakdown{background:#12263d;border-color:#34506e;color:#e6f0fb}
[data-theme="dark"] .scan-box h3,[data-theme="dark"] .scan-box strong,[data-theme="dark"] .stock-breakdown strong{color:#f2f7fd}
[data-theme="dark"] .scan-box small,[data-theme="dark"] .stock-breakdown small{color:#c6d5e8}
[data-theme="dark"] .scan-box button.ghost{color:#e6f0fb;border-color:#3a5675}
[data-theme="dark"] .approval-step strong,[data-theme="dark"] .approval-step b,[data-theme="dark"] .help-actions strong{color:#eaf3ff}
[data-theme="dark"] .approval-step .avatar{background:#223a57;color:#d9e6f5}
[data-theme="dark"] .approval-step.current .avatar,.sidebar .nav-item.active{background:#c4560a;color:#fff}
[data-theme="dark"] .funnel b{color:#06162a}
[data-theme="dark"] .catalog-caption span{color:#c6d5e8}
.sidebar .nav-item.active,[data-theme="dark"] .approval-step.current .avatar,.topbar .profile .avatar{background:#b84d08}
.clock-calendar .clock-month{background:#b84d08}
.sidebar .nav-item b.count{color:#a83d00}
[data-theme="dark"] .funnel b{color:#fff!important;background-image:linear-gradient(rgba(6,22,42,.62),rgba(6,22,42,.62))}
/* Uygulamayı yükle · cihaza özel adım sayfası */
body.install-open{overflow:hidden}
#install-sheet{position:fixed;inset:0;z-index:3100}
.install-scrim{position:fixed;inset:0;background:rgba(7,17,32,.58);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:install-fade .25s ease}
.install-card{position:fixed;left:0;right:0;bottom:0;box-sizing:border-box;max-height:88vh;overflow:auto;padding:18px 18px calc(18px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#fff;color:#1d3350;box-shadow:0 -18px 50px #040e1e55;animation:install-up .35s cubic-bezier(.2,.8,.2,1);outline:none}
#install-sheet[data-edge^="bottom"] .install-card{bottom:46px;left:8px;right:8px;border-radius:20px;padding-bottom:18px}
.install-card header{display:flex;align-items:center;gap:12px;margin-bottom:14px}.install-card header img{border-radius:12px;flex-shrink:0}.install-card header>div{flex:1;min-width:0}
.install-card h2{margin:0;font-size:18px;color:#14304e}.install-detected{display:block;margin-top:2px;font-size:12px;color:#587089;font-weight:600}
.install-tabs{display:flex;gap:4px;padding:4px;border-radius:12px;background:#eaf0f7;margin-bottom:14px}
.install-tabs button{flex:1;min-height:36px;border:0;border-radius:9px;background:transparent;color:#476079;font-size:12px;font-weight:600;white-space:nowrap}
.install-tabs button.on{background:#fff;color:#14304e;box-shadow:0 1px 4px #10244022}
.install-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:10px}
.install-list li{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #dbe5f0;border-radius:14px;background:#f6f9fd}
.install-step-ic{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:12px;background:linear-gradient(135deg,#f47721,#ff9a4d);color:#fff}.install-step-ic .icon{width:22px;height:22px;stroke-width:2}
.install-step-tx{font-size:13.5px;line-height:1.5;color:#27425e}.install-step-tx i{display:inline-grid;place-items:center;width:20px;height:20px;margin-right:7px;border-radius:50%;background:#14304e;color:#fff;font:700 11px/1 inherit;font-style:normal}
.install-step-tx b{color:#14304e}
.install-note{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#fff7ed;border:1px solid #f6d7b5;color:#7a4412;font-size:12px;line-height:1.55}.install-note[hidden]{display:none}
.install-foot .primary{width:100%;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.install-foot .icon{width:17px;height:17px}
.install-pointer{position:fixed;z-index:1;width:30px;height:30px;pointer-events:none}.install-pointer[hidden]{display:none}
.install-pointer span{display:block;width:30px;height:30px;animation:install-bob 1s ease-in-out infinite}.install-pointer svg{width:30px;height:30px;stroke:#ffb36a;stroke-width:3;filter:drop-shadow(0 2px 6px #000b)}
.install-pointer[data-edge="bottom"]{bottom:8px;left:calc(50% - 15px)}.install-pointer[data-edge="bottom-right"]{bottom:8px;right:22px}.install-pointer[data-edge="top-right"]{top:8px;right:22px}
.install-pointer[data-edge^="bottom"] svg{transform:rotate(90deg)}.install-pointer[data-edge="top-right"] svg{transform:rotate(-90deg)}
.install-pointer[data-edge="top-right"] span{animation-name:install-bob-up}
@keyframes install-bob{50%{transform:translateY(7px)}}@keyframes install-bob-up{50%{transform:translateY(-7px)}}@keyframes install-fade{from{opacity:0}}
[data-theme="dark"] .install-card{background:#14283f;color:#e6f0fb}[data-theme="dark"] .install-card h2,[data-theme="dark"] .install-step-tx b{color:#f2f7fd}
[data-theme="dark"] .install-detected{color:#b9cce2}[data-theme="dark"] .install-tabs{background:#0f2237}[data-theme="dark"] .install-tabs button{color:#b9cce2}[data-theme="dark"] .install-tabs button.on{background:#24425f;color:#fff}
[data-theme="dark"] .install-list li{background:#1a3450;border-color:#34506e}[data-theme="dark"] .install-step-tx{color:#d3e1f2}[data-theme="dark"] .install-step-tx i{background:#f47721;color:#fff}
[data-theme="dark"] .install-note{background:#3a2a14;border-color:#7a5524;color:#ffd9a6}
@media(min-width:761px){.install-card{left:50%;right:auto;bottom:auto;top:50%;width:440px;border-radius:22px;transform:translate(-50%,-50%);animation:none}#install-sheet[data-edge^="bottom"] .install-card{left:50%;right:auto;bottom:auto}}
@media(prefers-reduced-motion:reduce){.install-pointer span,.install-card,.install-scrim{animation:none}}
.install-tabs button[aria-selected="true"]{background:#c4560a!important;color:#fff!important;box-shadow:0 2px 8px #c4560a55}
/* Dark mode · hover ve ekip sohbeti */
[data-theme="dark"] button:where(:not(.primary,.danger,.stock-info,.team-launch,.link-btn)):hover:not(:disabled){background-color:#24415f;border-color:#3d6089;color:#f2f7fd}
[data-theme="dark"] button:where(:not(.primary,.danger,.stock-info,.team-launch,.link-btn)):focus-visible{background-color:#24415f}
[data-theme="dark"] .ghost:hover .icon,[data-theme="dark"] .topbar button:hover .icon{color:#f2f7fd}
[data-theme="dark"] tbody tr:hover,[data-theme="dark"] .table-wrap tbody tr:hover,[data-theme="dark"] .task-row:hover,[data-theme="dark"] .scenario-step:hover{background:#1b3552;color:#e6f0fb}
[data-theme="dark"] tbody tr:hover td,[data-theme="dark"] tbody tr:hover strong,[data-theme="dark"] .task-row:hover strong{color:#f2f7fd}
[data-theme="dark"] tbody tr:hover small,[data-theme="dark"] .task-row:hover small{color:#c6d5e8}
[data-theme="dark"] .team-self{background:#1a3450;color:#edf4ff;border:1px solid #34506e}
[data-theme="dark"] .team-self strong{color:#f2f7fd;font-size:13px}
[data-theme="dark"] .team-self select{color:#e6f0fb;background:transparent}
[data-theme="dark"] .team-self select option{background:#14283f;color:#e6f0fb}
[data-theme="dark"] .team-search{color:#c6d5e8;font-weight:600}
[data-theme="dark"] .team-person{color:#e6f0fb}[data-theme="dark"] .team-person strong{color:#f2f7fd;font-size:13px}[data-theme="dark"] .team-person small{color:#b9cce2;font-size:11px}
[data-theme="dark"] .team-panel footer{color:#b9cce2;border-top-color:#2b4362}
[data-theme="dark"] .team-panel header h2{color:#f2f7fd}
[data-theme="dark"] .chat-avatar{background:#264566;color:#e3efff}
[data-theme="dark"] .chat-window header,[data-theme="dark"] .chat-window form,[data-theme="dark"] .chat-compose{background:#101b2d;border-color:#30496a;color:#e6f0fb}
[data-theme="dark"] .chat-window textarea,[data-theme="dark"] .chat-compose textarea{background:#16283f;color:#f2f7fd;border-color:#385271}
[data-theme="dark"] .chat-person-title strong,[data-theme="dark"] .chat-bubble p{color:#f2f7fd}
[data-theme="dark"] .chat-person-title small,[data-theme="dark"] .chat-bubble small,[data-theme="dark"] .chat-window form small,[data-theme="dark"] .chat-empty{color:#b9cce2}
[data-theme="dark"] .chat-attachment,[data-theme="dark"] .chat-file-button{background:#1a3450;border-color:#385271;color:#e6f0fb}
/* Mobil / PWA: toast, iOS yakınlaştırma ve çentik (güvenli alan) düzeltmeleri */
#toast{visibility:hidden;opacity:0;pointer-events:none;transform:translateX(-50%) translateY(calc(100% + 160px));transition:transform .2s,opacity .2s,visibility 0s .2s}
#toast.show{visibility:visible;opacity:1;pointer-events:auto;transform:translateX(-50%) translateY(0);transition:transform .2s,opacity .2s,visibility 0s}
@media(max-width:760px),(pointer:coarse){
input,select,textarea,.ql-editor{font-size:16px!important}
}
@media(max-width:760px){
.topbar{height:calc(65px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
.drawer{height:100dvh;max-height:100dvh;width:100%;max-width:100vw}
.drawer-head{padding-top:calc(18px + env(safe-area-inset-top))}
.sidebar{padding-top:calc(26px + env(safe-area-inset-top));height:100dvh}
.team-panel{top:calc(72px + env(safe-area-inset-top))!important}
.content{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
.drawer-head .ghost,.drawer-head button{min-width:44px;min-height:44px}
}
@media(display-mode:standalone){
html,body{overscroll-behavior-y:none}
#toast{bottom:calc(84px + env(safe-area-inset-bottom))}
}
.profile select{text-overflow:ellipsis}
