/* ioDrive web — design/drive-reference-v1 (design-tokens.json). SVG viewBox birimi × 1,6 = CSS px. */
:root{--shell:#1b1b1b;--surface:#131314;--raised:#282a2c;--line:#373739;--text:#e3e3e3;--muted:#c4c7c5;--blue:#a8c7fa;--active:#144e73;--selected:#004a77;--action:#164ba0;--chip-line:#626466;--hover:#1e1f20;--menu-hover:#3c4043;--ok:#a8dab5;--conflict:#ffb86b;--error:#f2b8b5;--sidebar:256px;--topbar:64px;--rail:57.6px;--row:48px;--pad:22.4px;color-scheme:dark}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--shell);color:var(--text);font:400 14.4px/1.25 Arial,"Segoe UI",sans-serif;overflow:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
button:disabled{cursor:default;opacity:.45}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
[hidden]{display:none!important}
svg{width:19.2px;height:19.2px;flex:none;display:block}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.sr-only{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.icon-btn{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:var(--muted);flex:none}
.icon-btn:hover:not(:disabled){background:#ffffff14}
.link-btn{color:var(--blue);padding:6px 9.6px;border-radius:16px;white-space:nowrap}
.link-btn:hover{background:#a8c7fa1a}
.avatar{display:grid;place-items:center;border-radius:50%;background:#3c6c27;color:var(--text);flex:none;width:24px;height:24px;font-size:11.2px}

/* Kabuk */
.app{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr) var(--rail);grid-template-rows:var(--topbar) minmax(0,1fr);height:100vh;height:100dvh}
.topbar{grid-column:1/-1;display:flex;align-items:center;padding-right:19.2px;min-width:0}
.nav-toggle{display:none;margin-left:12px}
.brand{width:var(--sidebar);flex:none;display:flex;align-items:center;gap:9.6px;padding:8px 0 0 27.2px;font-size:25.6px;font-weight:500;color:var(--text);text-decoration:none}
.brand-mark{width:33.6px;height:33.6px}
.search{flex:0 1 832px;min-width:0;height:48px;border-radius:24px;background:var(--raised);display:flex;align-items:center;gap:22.4px;padding:0 19.2px;color:var(--muted);cursor:text}
.search svg{width:27.2px;height:27.2px}
.search input{flex:1;min-width:0;border:0;background:none;outline:0;font-size:16.8px;color:var(--text);height:100%}
.search input::placeholder{color:var(--muted);opacity:1}
.search:focus-within{background:#303134;outline:2px solid var(--blue);outline-offset:-2px}
.top-actions{margin-left:auto;display:flex;align-items:center;gap:16px;padding-left:16px;flex:none}
.top-actions .icon-btn svg{width:22.4px;height:22.4px}
.dev-badge{font-size:12px;color:var(--muted);border:1px solid var(--chip-line);border-radius:6.4px;padding:4px 8px;white-space:nowrap}
.account{height:48px;border:1px solid #999;border-radius:24px;display:flex;align-items:center;gap:8px;padding:0 5.6px 0 16px;font-size:22.4px;font-weight:600}
.account .avatar{width:38.4px;height:38.4px;font-size:16px;font-weight:400;box-shadow:inset 0 0 0 3.2px #355e24;background:#426e2e}
.account:hover{background:#ffffff0f}

/* Sol gezinme */
.sidebar{display:flex;flex-direction:column;padding:8px 0 20px;min-height:0;overflow:hidden auto}
.new-btn{margin-left:16px;width:99.2px;height:56px;border-radius:17.6px;background:#37393b;display:flex;align-items:center;gap:11.2px;padding-left:16px;font-size:15.2px;font-weight:500;flex:none}
.new-btn svg{width:24px;height:24px;color:var(--muted)}
.new-btn:hover{background:#414345}
.sidebar nav{margin-top:16px;display:flex;flex-direction:column;gap:16px}
.nav-group{display:flex;flex-direction:column}
.nav-group button{margin-left:16px;width:224px;height:32px;border-radius:16px;display:flex;align-items:center;gap:12.8px;padding-left:19.2px;text-align:left;white-space:nowrap}
.nav-group button svg{color:var(--muted)}
.nav-group button:hover{background:#ffffff0f}
.nav-group button.active{background:var(--active)}
.usage-short{margin:9px 0 0 40px;font-size:12px;color:var(--muted)}
.sidebar-bottom{margin-top:auto;padding:24px 40px 0 33.6px;font-size:12px;color:var(--muted)}
.quota{height:4px;border-radius:2px;background:#454746;overflow:hidden}
.quota div{height:100%;width:0;border-radius:2px;background:var(--blue)}
.sidebar-bottom p{margin:14px 0 0;line-height:14.4px}
.scrim{position:fixed;inset:0;background:#0008;z-index:30}

/* Çalışma yüzeyi */
.content{grid-column:2;background:var(--surface);border-radius:19.2px;margin-bottom:12.8px;display:flex;min-width:0;min-height:0;overflow:hidden;position:relative}
.content.drag::after{content:"Yüklemek için dosyaları bırakın";position:absolute;inset:6px;border:2px dashed var(--blue);border-radius:14px;background:#a8c7fa14;display:grid;place-items:end center;padding-bottom:32px;font-size:16px;color:var(--blue);pointer-events:none;z-index:5}
.workspace{flex:1;min-width:0;display:flex;flex-direction:column;padding-left:var(--pad)}
.titlebar{height:67.2px;flex:none;padding:6.4px 32px 0 0;display:flex;align-items:center;gap:16px}
.crumbs{flex:1;min-width:0;display:flex;align-items:center;font-size:25.6px;white-space:nowrap;overflow:hidden}
.crumbs button,.crumbs h1{font:inherit;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;border-radius:8px;padding:2px 0;flex:0 1 auto}
.crumbs h1{flex-shrink:0;max-width:100%;display:flex}
.crumbs .title-menu span{overflow:hidden;text-overflow:ellipsis}
.crumbs button{color:var(--muted)}
.crumbs button:hover{color:var(--text)}
.crumbs .sep{width:19.2px;height:19.2px;margin:0 6.4px;color:var(--muted)}
.crumbs .title-menu{display:flex;align-items:center;gap:8px;color:var(--text)}
.crumbs .title-menu svg{width:11.2px;height:11.2px;color:var(--muted);margin-top:4px}
.view-tools{display:flex;align-items:center;gap:9.6px;flex:none}
.view-toggle{display:flex;width:108.8px;height:32px;border:1px solid #666;border-radius:16px;overflow:hidden}
.view-toggle button{flex:1;display:flex;align-items:center;justify-content:center;gap:3.2px;color:var(--muted)}
.view-toggle button[aria-pressed=true]{background:var(--active)}
.view-toggle .tick{width:16px;height:16px;display:none}
.view-toggle button[aria-pressed=true] .tick{display:block}
.filterbar{height:46.4px;flex:none;display:flex;align-items:center;gap:9.6px;padding:0 var(--pad) 0 3.2px;min-width:0;overflow:hidden}
.chip{height:32px;border:1px solid var(--chip-line);border-radius:6.4px;padding:0 11.2px 0 16px;display:flex;align-items:center;gap:12.8px;white-space:nowrap;flex:none}
.chip svg{width:12.8px;height:12.8px;color:var(--muted)}
.chip:hover{background:#ffffff0f}
.chip.on{background:var(--selected);border-color:var(--selected)}
.selectionbar{height:46.4px;flex:none;margin-right:var(--pad);border-radius:24px;background:#183b51;display:flex;align-items:center;padding:0 12px;gap:8px;min-width:0}
.selectionbar #sel-count{font-size:16px;margin:0 24px 0 8px;white-space:nowrap}
.sel-actions{display:flex;gap:12.8px}
.selectionbar .icon-btn{width:40px;height:40px}
.selectionbar .icon-btn svg{width:22.4px;height:22.4px}
.banner{margin:0 var(--pad) 6px 0;padding:8px 12px;border-radius:8px;background:#3b2a2a;color:var(--error);display:flex;align-items:center;gap:10px}
.banner span{flex:1;min-width:0}
.backups{margin:0 var(--pad) 10px 0;border-bottom:1px solid var(--line)}
.backups-head{display:flex;align-items:baseline;gap:16px;padding:4px 12px 8px}
.backups-head h2{margin:0;font-size:14.4px;font-weight:500;white-space:nowrap}
.backups-head p{margin:0;font-size:12px;color:var(--muted);min-width:0}
.backup-row{display:flex;align-items:center;gap:12px;height:48px;padding:0 4px 0 12px;border-top:1px solid var(--line)}
.backup-row svg{width:20px;height:20px;flex:none;color:var(--muted)}
.backup-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.backup-meta,.backup-size{color:var(--muted);white-space:nowrap}
.backup-size{width:96px;text-align:right}
@container ws (max-width:760px){.backups-head{display:block}.backup-meta{display:none}}

/* Tablo */
.grid{flex:1;min-height:0;display:flex;flex-direction:column;--cols:minmax(0,1fr) 212.8px 216px 184px 96px}
.row{display:grid;grid-template-columns:var(--cols);align-items:center;height:var(--row);border-bottom:1px solid var(--line);min-width:0}
.row.head{height:46.4px;flex:none;margin-right:var(--pad);padding-top:4px;color:var(--muted)}
.row.head button{display:inline-flex;align-items:center;gap:8px;height:28px;border-radius:6px;white-space:nowrap}
.row.head button:hover{color:var(--text)}
.row.head .name{padding-left:3.2px}
.row.head .name button{color:var(--text)}
.sort-mark{width:22.4px;height:22.4px;border-radius:50%;background:var(--active);display:grid;place-items:center;color:#bde0fa}
.sort-mark svg{width:12.8px;height:12.8px}
.row.head .act svg{width:16px;height:16px}
.rows{flex:1;min-height:0;overflow-y:scroll;outline:0}
.rows::-webkit-scrollbar{width:22.4px}
.rows::-webkit-scrollbar-thumb{background:#4c4e4d;background-clip:padding-box;border:solid transparent;border-width:0 3.2px 0 12.8px;border-radius:8px}
.rows::-webkit-scrollbar-thumb:hover{background-color:#6a6c6b}
.rows .row{margin-right:max(0px,calc(var(--pad) - var(--sbw,0px)));cursor:default;user-select:none;outline:0}
.rows .row:hover{background:var(--hover)}
.rows .row[aria-selected=true]{background:var(--selected);border-bottom-color:var(--selected)}
.rows .row:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.cell{min-width:0;display:flex;align-items:center;color:var(--muted);white-space:nowrap;overflow:hidden}
.cell.name{padding-left:16px;gap:16px;color:var(--text);font-weight:500}
.cell.name>svg{width:22.4px;height:22.4px;color:var(--muted)}
.cell.name>svg.small{width:20.8px;height:20.8px;margin-right:1.6px}
.ftext{overflow:hidden;text-overflow:ellipsis;min-width:0}
.fmeta{display:none}
.fpath{font-weight:400;color:var(--muted);overflow:hidden;text-overflow:ellipsis;flex:0 10 auto;min-width:0;margin-left:-6px}
.fstar{width:16px!important;height:16px!important;margin-left:-6px;color:var(--muted)}
.tag{font-weight:400;font-size:12px;border:1px solid var(--conflict);color:var(--conflict);border-radius:10px;padding:1px 8px;flex:none;margin-left:-6px}
.cell.owner{gap:6.4px}
.cell.owner .avatar{margin-left:-.8px}
.cell.date,.cell.size{overflow:hidden;text-overflow:ellipsis;display:block;line-height:var(--row)}
.row.head .cell.date,.row.head .cell.size{display:flex;line-height:inherit}
.cell.act{overflow:visible}
.rows .cell.act .icon-btn{margin-left:53.6px}
.rows .cell.act svg{width:17.6px;height:17.6px}
.skeleton .bar{height:12px;border-radius:6px;background:#2a2b2d;width:40%}
.skeleton .cell:not(.name) .bar{width:60%}
.empty{display:flex;flex-direction:column;align-items:center;gap:12px;padding:72px 16px;color:var(--muted);text-align:center}
.empty svg{width:40px;height:40px}
.empty strong{font-weight:400;font-size:16px;color:var(--text);overflow-wrap:anywhere}
.btn-outline{height:36px;padding:0 20px;border:1px solid #747775;border-radius:18px;color:var(--blue)}
.btn-outline:hover{background:#a8c7fa14}

/* Izgara görünümü */
.grid.tiles .cell.owner,.grid.tiles .cell.date,.grid.tiles .cell.size{display:none}
.grid.tiles .row.head{grid-template-columns:minmax(0,1fr) 96px}
.grid.tiles .rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));grid-auto-rows:152px;gap:12px;align-content:start;padding:12px 0 12px 3px}
.grid.tiles .rows .row{display:block;position:relative;height:auto;border:1px solid var(--line);border-radius:12px;margin-right:0}
.grid.tiles .rows .cell.name{flex-direction:column;justify-content:center;gap:10px;height:100%;padding:12px;text-align:center;white-space:normal}
.grid.tiles .rows .cell.name>svg,.grid.tiles .rows .cell.name>svg.small{width:56px;height:56px;margin:0}
.grid.tiles .ftext{max-width:100%;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.grid.tiles .fpath,.grid.tiles .tag,.grid.tiles .fmeta{display:none!important}
.grid.tiles .rows .cell.act{position:absolute;top:4px;right:4px}
.grid.tiles .rows .cell.act .icon-btn{margin-left:0}
.grid.tiles .fstar{position:absolute;top:12px;left:12px;margin:0}
.grid.tiles .empty{grid-column:1/-1}
.fab{display:none;position:fixed;right:16px;bottom:16px;width:56px;height:56px;border-radius:17.6px;background:#37393b;box-shadow:0 4px 16px #0009;z-index:25;place-items:center}
.fab svg{width:24px;height:24px}
.session-last{width:150px}

/* Ayrıntılar */
.details{width:524.8px;flex:none;padding:33.6px 33.6px 24px 32px;position:relative;overflow:hidden auto;background:var(--surface)}
.details::before{content:"";position:absolute;left:0;top:24px;bottom:12.8px;width:1px;background:var(--line)}
.details header{display:flex;align-items:center;gap:16px;height:32px}
.details header>svg{width:32px;height:32px;color:var(--muted)}
.details h2{flex:1;min-width:0;margin:0;font-size:22.4px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.details header .icon-btn{margin-right:-9.6px}
.details header .icon-btn svg{width:22.4px;height:22.4px}
.tabs{margin:43.2px -4.8px 0 -3.2px;display:flex;gap:11.2px;border-bottom:1px solid var(--line);padding-left:3.2px}
.tabs button{width:153.6px;height:44.8px;font-size:16px;position:relative;padding-bottom:8px}
.tabs button[aria-selected=true]{color:var(--blue)}
.tabs button[aria-selected=true]::after{content:"";position:absolute;left:24.8px;right:24.8px;bottom:-2.4px;height:4.8px;border-radius:3.2px;background:var(--blue)}
.detail-thumb{margin-top:25.6px;height:232px;border-radius:12.8px;background:#202124;display:grid;place-items:center;color:var(--muted)}
.detail-thumb svg{width:97.6px;height:97.6px}
.detail-body h3{font-size:17.6px;font-weight:400;margin:28.8px 0 0;line-height:22px}
.access{display:flex;align-items:center;gap:14.4px;margin-top:22px;font-size:16px}
.access .avatar{width:35.2px;height:35.2px;font-size:16px}
.detail-body .btn-outline{margin-top:24px;height:41.6px;min-width:190.4px;border-radius:22px;font-size:16px}
.detail-body hr{border:0;border-top:1px solid var(--line);margin:32px 0 0}
.detail-body hr+h3{margin-top:22.4px}
.detail-body dl{margin:11px 0 0}
.detail-body dt{color:var(--muted);line-height:17.6px;margin-top:27.2px}
.detail-body dd{margin:8px 0 0;font-size:16px;line-height:20.8px;overflow-wrap:anywhere}
.detail-body dd.ok{color:var(--ok)}.detail-body dd.conflict{color:var(--conflict)}
.detail-note{color:var(--muted);margin-top:24px;line-height:1.45}
.detail-empty{display:flex;flex-direction:column;align-items:center;gap:16px;margin-top:96px;color:var(--muted);text-align:center}
.detail-empty svg{width:64px;height:64px}
.vlist{list-style:none;margin:16px 0 0;padding:0}
.vlist li{padding:14px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center}
.vlist .vmeta{color:var(--muted);font-size:12.8px;grid-column:1}
.vlist .vacts{grid-row:1/3;grid-column:2;display:flex;gap:4px}
.vlist a{color:var(--blue);overflow-wrap:anywhere}
.comments{list-style:none;margin:16px 0 0;padding:0}
.comments li{padding:12px 0;border-bottom:1px solid var(--line);display:grid;gap:4px}
.comments .vmeta{color:var(--muted);font-size:12.8px}
.comments li span:first-child{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4}
.comment-form{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.comment-form textarea{width:100%;border:1px solid var(--chip-line);border-radius:6.4px;background:transparent;padding:8px 12px;resize:vertical;min-height:56px}
.comment-form .btn-outline{align-self:flex-end;margin-top:0!important;height:36px!important;min-width:0!important;font-size:14.4px!important}

/* Menü */
#menu-layer{position:fixed;inset:0;pointer-events:none;z-index:60}
.menu{position:absolute;pointer-events:auto;min-width:240px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:hidden auto;background:var(--raised);border-radius:8px;box-shadow:0 8px 28px #000a;padding:11.2px 0;font-size:16px}
.menu button{display:flex;align-items:center;gap:17.6px;width:calc(100% - 12.8px);height:48px;margin:3.2px 6.4px;padding:0 12.8px;text-align:left;white-space:nowrap}
.menu button svg{width:20.8px;height:20.8px;color:var(--muted)}
.menu button .label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.menu button .hint{font-size:14.4px;color:var(--muted)}
.menu button .hint svg{width:14.4px;height:14.4px}
.menu button:hover:not(:disabled),.menu button:focus-visible,.menu button.open{background:var(--menu-hover);outline:0}
.menu .mgap{width:20.8px;flex:none}
.menu .msep{height:0;border-top:1px solid #454749;margin:-.5px 12.8px}
.menu .mhead{padding:6px 19.2px 8px;font-size:12.8px;color:var(--muted);white-space:normal;max-width:320px;line-height:1.4}
.menu.compact button{height:40px;margin-block:0}
.menu.compact{padding:8px 0;font-size:14.4px}
.menu.compact .msep{margin-block:6px}

/* Aktarımlar */
.transfers{position:fixed;right:96px;bottom:35.2px;width:563.2px;max-width:calc(100vw - 24px);height:348.8px;max-height:calc(100vh - 24px);background:var(--raised);border-radius:12.8px;box-shadow:0 8px 28px #000a;display:flex;flex-direction:column;z-index:40}
.transfers header{height:64px;flex:none;display:flex;align-items:center;padding:0 16px 0 28.8px;border-bottom:1px solid #444746}
.transfers h2{flex:1;margin:0;font-size:17.6px;font-weight:400}
.transfers header svg{width:22.4px;height:22.4px}
.transfers ul{list-style:none;margin:0;padding:19.2px 0 0;flex:1;min-height:0;overflow:hidden auto}
.transfers li{display:grid;grid-template-columns:28.8px minmax(0,400px) 1fr;column-gap:19.2px;padding:12.8px 22.4px 0 28.8px;height:102.4px;align-items:start}
.transfers li>svg{width:28.8px;height:28.8px;color:var(--blue)}
.transfers li.done>svg{color:var(--ok)}.transfers li.error>svg{color:var(--error)}.transfers li.canceled>svg{color:var(--muted)}
.t-name{font-size:16px;line-height:19.2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.t-sub{font-size:13.6px;line-height:16px;color:var(--muted);margin-top:8.8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.transfers li.error .t-sub{color:var(--error)}
.t-bar{height:4.8px;border-radius:3.2px;background:#48505a;margin-top:10.4px;overflow:hidden}
.t-bar div{height:100%;width:0;border-radius:3.2px;background:var(--blue)}
.transfers li.done .t-bar div{background:var(--ok)}.transfers li.error .t-bar div{background:var(--error)}
.t-acts{justify-self:end;display:flex;align-items:center;margin-top:-1.6px}
.t-acts .link-btn{font-size:13.6px}
.transfers p{margin:0;padding:12.8px 28.8px 27px;color:var(--muted);flex:none}
.transfers p.waiting{color:var(--conflict)}
.transfers-chip{position:fixed;right:96px;bottom:35.2px;height:40px;padding:0 20px;border-radius:20px;background:var(--raised);box-shadow:0 4px 16px #0009;z-index:40}

/* Bildirim, pencereler */
.toast{position:fixed;left:278.4px;bottom:32px;max-width:min(560px,calc(100vw - 32px));background:var(--raised);box-shadow:0 4px 16px #0009;border-radius:8px;padding:10px 12px 10px 20px;display:flex;align-items:center;gap:12px;z-index:50;line-height:1.4}
.toast.error{color:var(--error)}
dialog{border:0;border-radius:19.2px;background:var(--raised);color:var(--text);width:min(480px,calc(100vw - 32px));padding:24px;box-shadow:0 12px 40px #000c}
dialog::backdrop{background:#0009}
dialog h2{margin:0;font-size:22.4px;font-weight:400;overflow-wrap:anywhere}
dialog p{color:var(--muted);line-height:1.45;margin:12px 0 0;overflow-wrap:anywhere}
#dialog-body{margin-top:16px}
#dialog-body label{display:block;color:var(--muted);margin:12px 0 6px;font-size:12.8px}
#dialog-body input[type=text],#dialog-body input[type=password],#dialog-body select{width:100%;height:44px;border:1px solid var(--chip-line);border-radius:6.4px;background:transparent;padding:0 12px;font-size:16px}
#dialog-body select option{background:var(--raised)}
#dialog-body input[aria-invalid=true]{border-color:var(--error)}
.field-error{color:var(--error)!important}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}
.btn-text{height:40px;padding:0 16px;border-radius:20px;color:var(--blue)}
.btn-text:hover{background:#a8c7fa14}
.btn-primary{height:40px;padding:0 24px;border-radius:20px;background:var(--action);color:var(--text)}
.btn-primary:hover:not(:disabled){background:#1d5cc0}
.pick{max-height:280px;overflow:auto;border:1px solid var(--chip-line);border-radius:6.4px;padding:4px}
.pick button{display:flex;align-items:center;gap:12px;width:100%;height:40px;padding:0 12px;border-radius:6px;text-align:left}
.pick button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pick button svg{color:var(--muted)}
.pick button:hover{background:#ffffff0f}
.pick button[aria-selected=true]{background:var(--selected)}
.sharelist{list-style:none;margin:8px 0 0;padding:0;max-height:200px;overflow:auto}
.sharelist li{padding:10px 0;border-top:1px solid #454749;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sharelist a{color:var(--blue);flex:1;min-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sharelist small{color:var(--muted);flex-basis:100%}
.sharelist .who{flex:1;min-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.share-add{display:flex;gap:8px;align-items:center}
.share-add input{flex:1;min-width:0}
.share-add .btn-outline{height:44px;flex:none}
.share-sep{font-size:14.4px;font-weight:500;margin:20px 0 0;padding-top:16px;border-top:1px solid #454749}
.preview{width:min(1100px,calc(100vw - 48px));max-height:calc(100vh - 48px);padding:0;overflow:hidden}
.preview[open]{display:flex;flex-direction:column}
.preview header{display:flex;align-items:center;gap:8px;padding:16px 16px 16px 24px;border-bottom:1px solid #454749}
.preview h2{flex:1;min-width:0;font-size:17.6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#preview-content{overflow:auto;padding:24px;min-height:160px;display:grid;place-items:center}
#preview-content pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;justify-self:stretch;font:14px/1.5 Consolas,monospace}
#preview-content img,#preview-content video{max-width:100%;max-height:70vh}
#preview-content audio{width:min(480px,100%)}
#preview-content iframe{width:100%;height:72vh;border:0;background:#fff;justify-self:stretch}
.preview-note{justify-self:stretch;margin:0 0 12px;font-size:12.8px}
.doc-text{justify-self:stretch;line-height:1.55;max-width:820px;margin:0 auto}
.doc-text p{color:var(--text);margin:0 0 10px;min-height:1em}
.sheet{justify-self:stretch;border-collapse:collapse;font-size:13px}
.sheet td{border:1px solid var(--line);padding:4px 8px;white-space:nowrap;max-width:320px;overflow:hidden;text-overflow:ellipsis}

/* Sütunlar çalışma alanının gerçek genişliğine göre daralır (ayrıntı paneli dahil) */
.workspace{container:ws/inline-size}
@container ws (min-width:1100.01px){.content.with-details .grid{--cols:minmax(0,1fr) 214.4px 217.6px 163.2px 96px}}
@container ws (max-width:1100px){.grid{--cols:minmax(0,1fr) 190px 120px 96px}.cell.owner{display:none}}
@container ws (max-width:760px){.grid{--cols:minmax(0,1fr) 150px 64px}.cell.size,.row.head .cell.size{display:none}.rows .cell.act .icon-btn{margin-left:16px}.row.head .act span{display:none}}
@container ws (max-width:520px){.grid{--cols:minmax(0,1fr) 56px;--row:60px}.cell.date,.row.head .cell.date,.row.head .act svg{display:none}.row.head .act{visibility:hidden}
.cell.name .ftext{display:flex;flex-direction:column;gap:3px}.fname{overflow:hidden;text-overflow:ellipsis}.fmeta{display:block;font-weight:400;font-size:12.8px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}.fpath{display:none}.rows .cell.act .icon-btn{margin-left:4px}}

/* Daralan pencere */
@media(max-width:1439px){.details{width:400px}.dev-badge{display:none}}
@media(max-width:1279px){.details{position:absolute;right:0;top:0;bottom:0;z-index:20;box-shadow:-12px 0 32px #000a;width:min(440px,100%)}}
@media(max-width:1023px){
.app{grid-template-columns:0 minmax(0,1fr) 12px}
.nav-toggle{display:grid}.brand{width:auto;padding:0 16px 0 8px}
.sidebar{position:fixed;left:0;top:0;bottom:0;width:var(--sidebar);background:var(--shell);z-index:35;transform:translateX(-100%);transition:transform .15s;padding-top:16px}
.sidebar.open{transform:none;box-shadow:12px 0 32px #000a}
.content{margin-left:12px}
.transfers,.transfers-chip{right:24px;bottom:24px}.toast{left:24px}
}
@media(max-width:767px){
:root{--pad:12px}
.brand span{display:none}
.account span:first-child{display:none}.account{padding:0 4px;border:0}
.search{height:44px;gap:10px;padding:0 12px}.search svg{width:22px;height:22px}
.titlebar{padding-right:12px}.crumbs{font-size:20px}.view-toggle{width:88px}
.fab{display:grid}
.cell.name{padding-left:8px;gap:12px}
.icon-btn{width:44px;height:44px}
.rows::-webkit-scrollbar{width:12px}.rows::-webkit-scrollbar-thumb{border-width:0 3px}
.details{position:fixed;inset:0;width:auto;z-index:45;padding:20px}
.selectionbar #sel-count{margin-right:4px}.sel-actions{gap:0}
.transfers,.transfers-chip{right:12px;bottom:84px}.toast{left:12px;bottom:12px;max-width:calc(100vw - 96px)}
}

/* Paylaşılan dosya sayfası */
body.shared{overflow:auto;display:grid;place-items:center;padding:24px}
body.shared main{width:min(440px,100%);background:var(--surface);border-radius:19.2px;padding:32px}
body.shared .brand{width:auto;padding:0}
body.shared h1{font-size:22.4px;font-weight:400;margin:24px 0 0}
body.shared p{color:var(--muted);line-height:1.45}
body.shared label{display:block;color:var(--muted);margin:20px 0 6px;font-size:12.8px}
body.shared input{width:100%;height:44px;border:1px solid var(--chip-line);border-radius:6.4px;background:transparent;padding:0 12px;font-size:16px}
body.shared form button{margin-top:20px}
