/* Shared phone layout for the portal, authentication pages and installed PWA. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Authentication controls retain the existing themes and sign-in behavior. */
html .shell .login-brand-transparent{display:block}
html .shell .login-appearance{flex-wrap:wrap}
html .shell .login-appearance label{margin:0;flex-shrink:0}
html .shell .login-appearance select{max-width:100%;min-width:0;min-height:44px}
html .shell input{scroll-margin-block:24px}
html .shell #error{overflow-wrap:anywhere}
@media(max-width:650px){
 html .kd-app{min-height:100dvh}
 html .kd-main,html .kd-content,html .finance-embedded,html .finance-embedded .main,html .kd-card,html .card,html .kd-conversation{min-width:0;max-width:100%}
 html .kd-topbar{height:calc(62px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left));gap:2px}
 html .kd-topbar>div,html .kd-header-right{gap:2px!important}
 html .kd-topbar .kd-icon,html .kd-topbar .kd-theme-trigger,html .kd-session-trigger{min-width:44px;width:44px;min-height:44px;height:44px;padding:0;justify-content:center;box-sizing:border-box}
 html .kd-topbar .kd-session-trigger .kd-avatar{width:32px;height:32px}
 html .kd-sidebar{top:calc(62px + env(safe-area-inset-top));width:min(280px,calc(100vw - 32px));padding:18px 16px max(18px,env(safe-area-inset-bottom))}
 html .kd-sidebar.show{max-height:calc(100dvh - 62px - env(safe-area-inset-top));overflow-y:auto;overscroll-behavior:contain}
 html .kd-drawer-shade{top:calc(62px + env(safe-area-inset-top))}
 html .kd-sidebar nav button{min-height:46px;font-size:14px}
 html .kd-content{padding:16px max(12px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 html .kd-title-row h1{font-size:24px;overflow-wrap:anywhere}html .kd-title-row p{font-size:13px;line-height:1.6}
 html .kd-title-actions{width:100%;gap:8px}html .kd-title-actions .kd-button{min-height:44px;font-size:12px;padding:10px}
 html .kd-stats{gap:12px}html .kd-stat{padding:16px}html .kd-stat>strong{font-size:clamp(25px,6.5vw,32px);margin-top:12px}html .kd-stat>p{font-size:12px;line-height:1.6;margin:10px 0 14px;min-height:0}
 html .kd-stat>div:first-child,html .kd-stat-bottom,html .kd-stat-bottom b,html .kd-stat .kd-text{font-size:12px}html .kd-stat .kd-text{min-height:36px}html .kd-pill{font-size:11px}
 html .kd-holdings .kd-stat{padding:14px}html .kd-holdings .kd-stat>strong{font-size:clamp(21px,5.4vw,27px)}html .kd-holdings .kd-stat>p{font-size:11px}
 html .kd-card-head{flex-wrap:wrap;gap:12px;padding:16px}html .kd-card-head>div{min-width:0}html .kd-card-head h2{font-size:15px}html .kd-card-head p{font-size:12px}
 html .kd-search{width:100%;min-width:0}html .kd-search input{width:100%!important;min-width:0}
 html .kd-content input,html .kd-content select,html .kd-content textarea,html .kd-modal input,html .kd-modal select,html .kd-modal textarea,html .modal input,html .modal select,html .modal textarea{font-size:16px!important;min-width:0;max-width:100%;box-sizing:border-box;scroll-margin-block:90px}
 html .kd-content input:not([type=checkbox]):not([type=radio]),html .kd-content select,html .kd-modal input:not([type=checkbox]),html .kd-modal select,html .modal input,html .modal select{min-height:44px}
 html .kd-account-bar{flex-wrap:wrap;gap:10px}html .kd-account-bar>div,html .kd-account-bar label{width:100%;min-width:0}html .kd-account-bar label{font-size:12px}html .kd-account-bar select{min-width:0;max-width:100%;width:100%}html .kd-account-bar>.kd-pill{margin-top:0;font-size:11px}
 html .kd-table-wrap,html .table-scroll{max-width:100%;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 html .kd-table-wrap table,html .table-scroll table{min-width:580px}html .kd-table th,html .kd-table td{font-size:12px;padding:12px 14px}
 html .kd-table-wrap::before,html .table-scroll::before{content:'Diğer sütunlar için yana kaydırın →';display:block;position:sticky;left:0;padding:8px 14px;font-size:11px;color:var(--color-text-muted);width:max-content;max-width:100%;box-sizing:border-box}
 html .kd-table button,html .table-scroll button{min-height:40px}html .kd-pagination{flex-wrap:wrap;justify-content:center;padding:12px;gap:8px}html .kd-pagination>span{flex-basis:100%;text-align:center}
 html .kd-button,html .primary,html .secondary{min-height:44px}html .finance-embedded .page-heading{display:block}html .finance-embedded .heading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}html .finance-embedded .heading-actions button{min-width:0;font-size:12px!important;padding:10px!important}
 html .kd-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px 16px}html .kd-filters label{min-width:0;font-size:12px}html .kd-filters button{width:100%}
 html .kd-modal,html .modal{width:calc(100vw - 24px);max-width:520px;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:18px;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;border-radius:14px}
 html .modal-overlay{padding:12px;align-items:center}html .kd-modal-head h2,html .modal h2{font-size:21px}html .kd-modal-head .kd-icon,html .modal-head .icon-btn{width:44px;height:44px;flex-shrink:0}html .kd-field,html .field{font-size:13px}html .kd-form-actions,html .form-actions{flex-wrap:wrap;gap:8px}html .kd-form-actions>button,html .form-actions>button{flex:1;min-width:110px}html .form-grid{grid-template-columns:1fr}html .kd-modal-sub,html .kd-check small,html .kd-drop small,html .kd-drop span{font-size:12px;line-height:1.6}html .kd-drop{padding:20px 12px}html .kd-drop b{overflow-wrap:anywhere}
 html .kd-theme-menu,html .kd-session-panel{top:calc(66px + env(safe-area-inset-top));max-height:calc(100dvh - 90px);overflow:auto}
 html .kd-file-stats{grid-template-columns:repeat(3,minmax(0,1fr))}html .kd-file-stats span{font-size:11px;line-height:1.5}html .kd-file-stats>div{min-width:0;padding:12px 8px}html .kd-segments{gap:4px}html .kd-segments button{min-height:40px;font-size:12px;padding:8px}
 html .kd-info-strip p,html .kd-card-note,html .kd-chat-note{font-size:12px;line-height:1.6}html .kd-messages{height:clamp(200px,42dvh,420px)}html .kd-composer textarea{min-height:48px}html .kd-message>p{overflow-wrap:anywhere}html .kd-threads{max-width:100%;overscroll-behavior-x:contain}html .kd-threads button{min-height:48px}
 html .kd-market-refined .kd-market-controls .kd-button{min-width:36px;width:36px;height:40px;min-height:40px}html .kd-market-refined .kd-market-label>b{font-size:11px}
 html .kd-toast,html .toast{bottom:max(14px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px);overflow-wrap:anywhere}
 /* Authentication shell also uses this file. */
 html body:has(>.shell){padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));min-height:100dvh;align-items:start}
 html .shell{display:block;max-width:460px;min-width:0;border-radius:16px}html .shell .brand{padding:20px 24px}html .shell .brand h1,html .shell .brand p{display:none}html .shell .login-brand-transparent{max-width:220px;margin:0 auto}html .shell .form{padding:20px}html .shell h2{font-size:23px}html .shell p,html .shell small{font-size:13px}html .shell label{font-size:14px}html .shell input,html .shell select{font-size:16px;min-height:44px;min-width:0;width:100%}html .shell button{min-height:46px}html .shell .login-appearance{margin-bottom:18px}html .shell .login-appearance select{width:auto}html .shell .cf-turnstile{min-width:0}
}
@media(max-width:374px){html .kd-stats,html .kd-holdings{grid-template-columns:minmax(0,1fr)!important}html .kd-holdings .kd-stat:last-child{grid-column:auto}html .kd-file-stats{grid-template-columns:1fr}html .kd-file-stats>div{display:flex;align-items:center;gap:12px}html .kd-file-stats span{margin:0}html .kd-filters{grid-template-columns:1fr}html .shell .brand{padding:16px}html .shell .form{padding:14px}html .shell .cf-turnstile{transform:scale(.88);transform-origin:left top;margin-bottom:-8px}}
@media(max-height:500px) and (max-width:980px){html .kd-modal,html .modal{max-height:calc(100dvh - 16px);padding:14px}html .modal-overlay{padding:8px}html .kd-messages{height:180px}}
@media(max-height:500px) and (max-width:980px){html .modal input,html .modal select,html .kd-modal input,html .kd-modal select,html .kd-modal textarea{font-size:16px!important}}
@media(max-width:760px){
 html body:has(>.shell){min-height:100svh;min-height:100dvh;align-items:start;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 html .shell{display:block;width:100%;max-width:460px;min-width:0;border-radius:16px}
 html .shell .brand{padding:18px 24px}
 html .shell .brand h1,html .shell .brand p{display:none}
 html .shell .login-brand-transparent{width:190px;max-width:100%;margin:0 auto}
 html .shell .form{padding:20px}
 html .shell h2{font-size:24px;line-height:1.25}
 html .shell .login-appearance{gap:10px;margin-bottom:20px}
 html .shell input,html .shell select{font-size:16px;min-height:48px}
 html .shell button{min-height:48px}
 html .shell .form>p:last-child a{display:inline-flex;align-items:center;min-height:44px}
}
@media(max-width:374px){html .shell .form{padding:14px}html .shell .brand{padding:14px}html .shell .login-brand-transparent{width:170px}}
@media(max-height:500px) and (max-width:980px){html body:has(>.shell){align-items:start}html .shell .brand{padding:20px}html .shell .form{padding:20px}html .shell .brand h1{font-size:26px}html .shell input,html .shell select{font-size:16px}}
