/* My Drive 2.0 (v1.36): document windows, the taskbar, the document view and shortcut lists */
.dk-win, .dk-taskbar, .dk-sc, .dk-modal, .dk-page {
  --dk-ink: #1B2A3A; --dk-muted: #586A7C; --dk-line: #D5DEE8; --dk-soft: #F5F7FA; --dk-ground: #EDF1F5; --dk-cobalt: #0965B5; --dk-cobalt-d: #064E93;
  --dk-red: #AB3032; --dk-green: #237357; --dk-amber: #9A5B00; --dk-violet: #5C4BA6; --dk-slate: #546476;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: var(--dk-ink); font-size: 14px;
}
.dk-win { position: fixed; display: flex; flex-direction: column; background: #fff; border: 1px solid #B9C7D6; border-radius: 10px; box-shadow: 0 18px 50px rgba(20, 40, 70, .28); overflow: hidden; min-width: 320px; min-height: 220px; }
.dk-win.max { left: 0 !important; top: 0 !important; width: 100vw !important; height: calc(100vh - 44px) !important; border-radius: 0; }
.dk-win.fs { inset: 0; width: 100vw; height: 100vh; border-radius: 0; }
.dk-win.min { display: none; }
.dk-title { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; height: 40px; background: #1459A7; color: #fff; cursor: move; user-select: none; touch-action: none; flex: none; }
.dk-win.max .dk-title { cursor: default; }
.dk-title strong { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-wbtns { display: flex; gap: 2px; }
.dk-wbtns button { all: unset; width: 32px; height: 30px; display: grid; place-items: center; border-radius: 6px; cursor: pointer; font-size: 16px; line-height: 1; }
.dk-wbtns button:hover, .dk-wbtns button:focus-visible { background: rgba(255, 255, 255, .18); }
.dk-wbtns button.x:hover { background: #C42B2B; }
.dk-grip { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none; background: linear-gradient(135deg, transparent 50%, #9AABBE 50%, #9AABBE 58%, transparent 58%, transparent 70%, #9AABBE 70%, #9AABBE 78%, transparent 78%); }
.dk-taskbar { position: fixed; left: 0; right: 0; bottom: 0; height: 44px; z-index: 199990; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #13314F; overflow-x: auto; }
.dk-taskbar button { all: unset; flex: none; max-width: 220px; height: 30px; padding: 0 12px; border-radius: 6px; color: #DCE7F2; background: rgba(255, 255, 255, .08); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; border-bottom: 2px solid transparent; }
.dk-taskbar button.is-top { background: rgba(255, 255, 255, .2); color: #fff; border-bottom-color: #7FB8F0; }
.dk-taskbar button.is-min { opacity: .7; }
.dk-taskbar button:focus-visible { outline: 2px solid #7FB8F0; }
.dk-taskbar .dk-closeall { margin-left: auto; background: transparent; }
.dk-tnote { color: #FFE0A3; font-size: 13px; margin-left: 8px; }

/* the document view */
.dk-view { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.dk-page .dk-view { height: calc(100vh - 150px); min-height: 480px; border: 1px solid var(--dk-line); border-radius: 10px; overflow: hidden; }
.dk-bar { display: flex; align-items: center; gap: 8px; padding: 0 8px; border-bottom: 1px solid var(--dk-line); background: var(--dk-soft); flex: none; flex-wrap: wrap; }
.dk-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; min-width: 0; max-width: 100%; scrollbar-width: none; }
.dk-tabs button { flex: none; }
.dk-tabs button { all: unset; padding: 10px 12px; cursor: pointer; color: var(--dk-muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.dk-tabs button.is-on { color: var(--dk-cobalt); border-bottom-color: var(--dk-cobalt); }
.dk-tabs button:focus-visible { outline: 2px solid var(--dk-cobalt); outline-offset: -2px; }
.dk-tabs small { margin-left: 5px; background: #DCE7F2; color: var(--dk-cobalt-d); border-radius: 9px; padding: 0 6px; font-size: 11px; }
.dk-acts { margin-left: auto; display: flex; gap: 6px; align-items: center; padding: 5px 0; }
.dk-role { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #E6ECF2; color: var(--dk-slate); }
.dk-role.r-owner, .dk-role.r-editor { background: #DDEFE6; color: var(--dk-green); }
.dk-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--dk-line); border-radius: 6px; background: #fff; color: var(--dk-ink); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.dk-btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.dk-btn:hover { border-color: #9AABBE; }
.dk-btn.primary { background: var(--dk-cobalt); border-color: var(--dk-cobalt); color: #fff; }
.dk-btn.primary:hover { background: var(--dk-cobalt-d); }
.dk-btn.danger { color: var(--dk-red); }
.dk-btn:disabled { opacity: .5; cursor: default; }
.dk-btn:focus-visible { outline: 2px solid var(--dk-cobalt); outline-offset: 2px; }
.dk-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.dk-editor, .dk-editor > div { flex: 1; min-height: 0; height: 100%; }
.dk-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #525659; }
.dk-frame.light { background: #fff; }
.dk-pv { flex: 1; display: grid; place-items: center; background: #2B3138; padding: 12px; min-height: 0; }
.dk-pv img, .dk-pv video { max-width: 100%; max-height: 100%; object-fit: contain; }
.dk-none, .dk-msg { margin: auto; text-align: center; padding: 30px; color: var(--dk-muted); max-width: 460px; }
.dk-msg strong { display: block; color: var(--dk-ink); font-size: 16px; margin-bottom: 6px; }
.dk-msg.err, .dk-hint.err { color: var(--dk-red); }
.dk-note { margin: 0; padding: 8px 14px; background: #FFF6E5; color: #6B4600; border-bottom: 1px solid #F0DDB5; font-size: 13px; }
.dk-note.err { background: #FDECEC; color: var(--dk-red); border-color: #F2C9C9; }
.dk-flash { margin: 6px 10px; padding: 7px 12px; border-radius: 6px; background: #E5F2EB; color: var(--dk-green); font-size: 13px; }
.dk-panel { padding: 14px 18px; max-width: 860px; }
.dk-panel header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.dk-panel h4 { margin: 0; font-size: 16px; flex: 1; }
.dk-panel h5 { margin: 18px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--dk-muted); }
.dk-hint { color: var(--dk-muted); font-size: 13px; margin: 4px 0 10px; }
.dk-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dk-line); }
.dk-list li { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid #E6ECF2; flex-wrap: wrap; }
.dk-list li.is-cur { background: #F1F7FD; }
.dk-list li > strong { width: 34px; color: var(--dk-cobalt-d); }
.dk-list li > span:first-of-type, .dk-list li > span:nth-child(2) { flex: 1; min-width: 180px; }
.dk-list small { display: block; color: var(--dk-muted); font-size: 12px; margin-top: 2px; }
.dk-row-acts { display: flex; gap: 6px; align-items: center; flex: none !important; min-width: 0 !important; }
.dk-row-acts i { color: var(--dk-green); font-style: normal; font-size: 13px; padding: 0 6px; }
.dk-row-acts select, .dk-share-add select, .dk-linkadd select, .dk-pickrow select { height: 28px; border: 1px solid var(--dk-line); border-radius: 6px; font: inherit; font-size: 13px; padding: 0 6px; background: #fff; }
.dk-share-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; background: var(--dk-soft); border: 1px solid var(--dk-line); border-radius: 8px; margin-bottom: 12px; }
.dk-pick, .dk-linkadd { position: relative; flex: 1 1 260px; }
.dk-pick input, .dk-linkadd input, .dk-msgin, .dk-pdf input, .dk-pickrow input, .dk-until input { width: 100%; box-sizing: border-box; height: 32px; border: 1px solid var(--dk-line); border-radius: 6px; padding: 0 10px; font: inherit; }
.dk-linkadd { display: flex; gap: 8px; }
.dk-msgin { flex: 1 1 100%; }
.dk-until { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dk-muted); }
.dk-until input { width: 150px; }
.dk-ck { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.dk-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 10px; border-radius: 15px; background: #DCE7F2; color: var(--dk-cobalt-d); font-weight: 500; }
.dk-chip button { all: unset; cursor: pointer; width: 20px; text-align: center; }
.dk-found { position: absolute; z-index: 5; left: 0; right: 0; top: 34px; list-style: none; margin: 0; padding: 4px; background: #fff; border: 1px solid var(--dk-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(20, 40, 70, .16); max-height: 260px; overflow: auto; }
.dk-found button { all: unset; display: block; width: 100%; box-sizing: border-box; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.dk-found button:hover, .dk-found button:focus-visible { background: #EEF4FB; }
.dk-found small { display: block; color: var(--dk-muted); font-size: 12px; }
.dk-props { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.dk-prop { display: contents; }
.dk-prop span { color: var(--dk-muted); }
.dk-prop strong { font-weight: 500; word-break: break-word; }
.dk-tags { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dk-tags li { background: #E6ECF2; border-radius: 12px; padding: 3px 10px; font-size: 13px; }
.dk-pdf { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-pdf input { width: 180px; }
.dk-badge { display: inline-grid; place-items: center; width: 30px; height: 34px; border-radius: 4px; flex: none; color: #fff; font-size: 9px; letter-spacing: .02em; background: var(--dk-slate); }
.dk-badge.big { width: 64px; height: 76px; font-size: 14px; border-radius: 6px; }
.dk-badge.cobalt { background: #2B6CB0; } .dk-badge.green { background: var(--dk-green); } .dk-badge.amber { background: #B06A00; } .dk-badge.red { background: var(--dk-red); } .dk-badge.violet { background: var(--dk-violet); }

/* shortcut lists (task popup, project page, dashboard) */
.dk-sc { width: 100%; }
.dk-sc header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dk-sc header strong { font-size: 14px; }
.dk-sc header span { color: var(--dk-muted); font-size: 12px; flex: 1; }
.dk-sc ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--dk-line); border-radius: 8px; }
.dk-sc-row { display: flex; align-items: center; border-bottom: 1px solid #E6ECF2; }
.dk-sc-row:last-child { border-bottom: 0; }
.dk-sc-name { all: unset; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 7px 10px; cursor: pointer; }
.dk-sc-name.dim { cursor: default; color: var(--dk-muted); }
.dk-sc-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-sc-name small { display: block; color: var(--dk-muted); font-size: 12px; }
.dk-sc-name:hover > span { color: var(--dk-cobalt); }
.dk-sc-name:focus-visible { outline: 2px solid var(--dk-cobalt); outline-offset: -2px; }
.dk-sc-row.trash .dk-sc-name > span { opacity: .65; }
.dk-sc-more { position: relative; }
.dk-sc-more > button { all: unset; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; border-radius: 6px; color: var(--dk-muted); font-size: 18px; }
.dk-sc-more > button:hover, .dk-sc-more > button:focus-visible { background: #EEF4FB; }
.dk-menu { position: absolute; right: 4px; top: 34px; z-index: 20; min-width: 190px; padding: 4px; background: #fff; border: 1px solid var(--dk-line); border-radius: 8px; box-shadow: 0 10px 28px rgba(20, 40, 70, .2); display: flex; flex-direction: column; }
.dk-menu button, .dk-menu a { all: unset; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--dk-ink); }
.dk-menu button:hover, .dk-menu a:hover, .dk-menu button:focus-visible, .dk-menu a:focus-visible { background: #EEF4FB; }
.dk-menu button:disabled { opacity: .45; cursor: default; }
.dk-menu .danger { color: var(--dk-red); }
.dk-menu hr { border: 0; border-top: 1px solid var(--dk-line); margin: 4px 0; }
.dk-sc.compact .dk-sc-name { padding: 5px 8px; }
.dk-modal { position: fixed; inset: 0; z-index: 199995; background: rgba(15, 30, 50, .45); display: grid; place-items: center; padding: 16px; }
.dk-dialog { background: #fff; border-radius: 10px; width: min(620px, 100%); max-height: 86vh; display: flex; flex-direction: column; padding: 18px; box-sizing: border-box; }
.dk-dialog h3 { margin: 0 0 10px; font-size: 17px; }
.dk-pickrow { display: flex; gap: 8px; }
.dk-pickrow input { flex: 1; }
.dk-results { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; border: 1px solid var(--dk-line); border-radius: 8px; min-height: 120px; }
.dk-results button { all: unset; display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 8px 10px; cursor: pointer; border-bottom: 1px solid #E6ECF2; }
.dk-results button:hover, .dk-results button:focus-visible { background: #EEF4FB; }
.dk-results span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-results small { display: block; color: var(--dk-muted); font-size: 12px; }
.dk-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
/* v1.39: save status, print options */
.dk-saved { margin: 0; padding: 4px 14px; font-size: 12px; color: var(--dk-muted); border-bottom: 1px solid var(--dk-line); background: #FAFBFD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-radio { display: grid; gap: 8px; margin: 4px 0 8px; font-size: 14px; }
.dk-radio label { display: flex; align-items: center; gap: 8px; }
.dk-radio input[type=text] { font: inherit; padding: 4px 8px; border: 1px solid var(--dk-line); border-radius: 6px; }
.dk-snip { display: block; color: #3B4C5E; font-size: 12px; margin-top: 2px; white-space: normal; }
.dk-snip mark { background: #FFF1B8; color: inherit; padding: 0 1px; }

@media (max-width: 760px) {
  .dk-win:not(.fs) { left: 0 !important; top: 0 !important; width: 100vw !important; height: calc(100vh - 44px) !important; border-radius: 0; }
  .dk-grip { display: none; }
  .dk-acts { margin-left: 0; }
  .dk-panel { padding: 12px; }
  .dk-props { grid-template-columns: 1fr; gap: 2px; }
  .dk-prop strong { margin-bottom: 6px; }
}
.v136-pinned:empty { display: none; }
.v136-pinned { margin-bottom: 16px; }
/* v1.39: the dashboard fills the window and its panels may shrink; the document panels keep their height */
html[data-look="tiles"] .tl-dash .tl-panel.v136-pinned { flex: none; min-height: auto; }

/* the task popups: the documents list spans the popup */
.modal-docs { grid-column: 1 / -1; display: block !important; }
.modal-docs > span { display: block; }
