/* ============ Files (Nautilus) ============ */
.files{display:flex;flex-direction:column;flex:1;min-height:0}
.files-hb{display:flex;align-items:center;gap:2px;flex:1;min-width:0;margin-left:6px}
.hb-pathbox{
  min-width:60px;max-width:180px;height:28px;display:flex;align-items:center;
  padding:0 10px;border-radius:6px;cursor:default;
}
.hb-pathbox:hover{background:var(--row-hover)}
.hb-path-label{font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-search{margin-left:6px;height:30px;font-size:13.5px}
.files-main{display:flex;flex:1;min-height:0}
.files-sidebar{
  width:190px;flex:none;background:var(--sidebar-bg);border-right:1px solid var(--border);
  padding:8px 6px;overflow-y:auto;
}
.sb-item{
  display:flex;align-items:center;gap:9px;padding:7px 9px;border-radius:7px;
  font-size:13.5px;cursor:default;color:var(--text);
}
.sb-item:hover{background:var(--row-hover)}
.sb-item.sel{background:var(--sel-strong);font-weight:500}
.sb-item.drop-target{background:var(--sel)}
.sb-ic{width:18px;height:18px;flex:none;display:flex;align-items:center;justify-content:center}
.sb-ic svg{width:18px;height:18px}
.sb-other{margin-top:14px}
.sb-other-title{font-size:11.5px;color:var(--faint);text-transform:uppercase;letter-spacing:.03em;padding:0 9px 5px}
.files-content{display:flex;flex-direction:column;flex:1;min-width:0}
.files-pathbar{
  display:flex;align-items:center;gap:0;padding:5px 10px;border-bottom:1px solid var(--border);
  min-height:34px;overflow:hidden;
}
.pb-crumb{
  padding:3px 8px;border-radius:6px;font-size:13.5px;white-space:nowrap;cursor:default;
  max-width:180px;overflow:hidden;text-overflow:ellipsis;
}
.pb-crumb:hover{background:var(--row-hover)}
.pb-sep{width:13px;height:13px;color:var(--faint);flex:none}
.pb-sep svg{width:13px;height:13px}
.pb-ellipsis{padding:3px 5px}
.pb-search{font-size:13.5px;color:var(--muted);font-weight:500}
.files-view{flex:1;overflow-y:auto;padding:14px;position:relative;display:flex;flex-wrap:wrap;align-content:flex-start;gap:2px}
.files-status{
  border-top:1px solid var(--border);padding:4px 12px;font-size:12.5px;color:var(--muted);
  display:flex;justify-content:space-between;
}
.file-cell{
  width:112px;padding:10px 4px 8px;border-radius:10px;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:default;position:relative;
}
.file-cell:hover{background:var(--row-hover)}
.file-cell.sel{background:var(--sel)}
.file-cell.drop-target{background:var(--sel-strong)}
.fc-ic{width:64px;height:52px;display:flex;align-items:center;justify-content:center;position:relative}
.fc-ic svg{width:52px;height:52px}
.fc-ic .file-thumb{width:56px;height:44px;object-fit:cover;border-radius:5px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.fc-ic .thumb-png{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#7fb8d9,#2a7f9e);border-radius:5px;width:56px;height:44px;color:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.fc-ic.trashed{filter:saturate(.4) opacity(.7)}
.fc-name{
  font-size:12.5px;text-align:center;max-width:104px;line-height:1.3;
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word;
}
.file-cell.sel .fc-name{background:var(--sel-strong);border-radius:4px;padding:0 3px}
.rename-input{width:100px;font-size:12.5px;text-align:center;border:1px solid var(--accent);border-radius:4px;background:var(--card);color:var(--text);outline:none;padding:1px 2px}
.files-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted)}
.fe-ic{width:80px;height:80px;opacity:.6}
.fe-ic svg{width:80px;height:80px}
.fe-title{font-size:17px;font-weight:500;color:var(--text)}
.fe-sub{font-size:13.5px}

/* list view */
.files-view.list{display:block;padding:6px 10px}
.file-table{width:100%}
.ft-row{display:flex;align-items:center;border-radius:6px;min-height:34px;padding:0 8px;cursor:default}
.ft-row:hover{background:var(--row-hover)}
.ft-row.sel{background:var(--sel)}
.ft-row.drop-target{background:var(--sel-strong)}
.ft-row.ft-head:hover{background:transparent}
.ft-head .ft-cell{font-size:12px;color:var(--faint);font-weight:500;cursor:pointer;padding:2px 8px;border-radius:4px}
.ft-head .ft-cell:hover{background:var(--row-hover)}
.ft-head .ft-cell.sorted{color:var(--text-2)}
.ft-cell{font-size:13.5px;padding:2px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 0 130px}
.ft-name{display:flex;align-items:center;gap:9px;min-width:0}
.ft-ic{width:24px;height:24px;flex:none;display:flex;align-items:center;justify-content:center}
.ft-ic svg{width:22px;height:22px}
.ft-ic .file-thumb{width:24px;height:20px;object-fit:cover;border-radius:3px}
.ft-ic.trashed{filter:saturate(.4) opacity(.7)}
.ft-label{overflow:hidden;text-overflow:ellipsis}
.ft-size{color:var(--muted)}
.ft-type{color:var(--muted)}
.ft-mtime{color:var(--muted)}

/* rubber band */
.rubber-band{position:fixed;z-index:9900;border:1px solid var(--accent);background:rgba(233,84,32,.12);pointer-events:none}

/* properties dialog */
.props-grid{display:grid;grid-template-columns:110px 1fr;gap:6px 14px;font-size:13.5px;min-width:320px}
.prop-k{color:var(--muted)}
.prop-v{word-break:break-word}

/* ============ Text Editor ============ */
.editor{display:flex;flex:1;min-height:0;position:relative;background:var(--card)}
.ed-hb{display:flex;align-items:center;flex:1;min-width:0;margin-left:6px}
.ed-hb-title{font-weight:500;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 6px}
.ed-gutter{
  width:48px;flex:none;background:var(--card-alt);border-right:1px solid var(--border);
  text-align:right;padding:12px 8px 12px 0;font-family:var(--font-mono);font-size:13px;
  color:var(--faint);overflow:hidden;user-select:none;line-height:1.6;
}
.ed-area{
  flex:1;background:transparent;border:none;outline:none;resize:none;
  color:var(--text);font-family:var(--font-mono);font-size:13.5px;line-height:1.6;
  padding:12px 14px;white-space:pre;overflow:auto;
}
.saveas{display:flex;flex-direction:column;gap:8px;min-width:340px}
.saveas-label{font-size:13px;color:var(--muted)}
.open-dialog{min-width:420px}
.od-crumb{font-size:13.5px;color:var(--muted);margin-bottom:8px;padding:4px 8px;background:var(--card-alt);border-radius:6px}
.od-list{max-height:280px;overflow-y:auto}
.od-row{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:8px;cursor:default}
.od-row:hover{background:var(--row-hover)}
.od-ic{width:26px;height:26px;flex:none}
.od-ic svg{width:26px;height:26px}
.od-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.od-size{font-size:12.5px;color:var(--muted)}
.od-empty{padding:20px;text-align:center;color:var(--faint)}

/* ============ Terminal ============ */
.term{display:flex;flex-direction:column;flex:1;min-height:0;background:#300a24}
#desktop.theme-light .term{background:#fbf6fb}
.term-scroll{
  flex:1;overflow-y:auto;padding:10px 12px;
  font-family:var(--font-mono);font-size:13.5px;line-height:1.5;
  color:#e8e8e8;cursor:text;
}
#desktop.theme-light .term-scroll{color:#300a24}
.t-line{white-space:pre-wrap;word-break:break-all;min-height:20px}
.t-line:empty::after{content:"\00a0"}
.t-prompt{white-space:pre}
.t-ps-user{color:#4e9a06;font-weight:700}
.t-ps-path{color:#3465a4;font-weight:700}
.t-ps-dim{color:#8a8a8a}
.t-ps-dollar{color:#c4a000}
.t-ps-root{color:#cc0000;font-weight:700}
#desktop.theme-dark .t-ps-path{color:#729fcf}
.t-dir{color:#3465a4;font-weight:700}
#desktop.theme-dark .t-dir{color:#729fcf}
.t-exe{color:#4e9a06;font-weight:700}
.t-sym{color:#06989a;font-weight:700}
.t-arch{color:#cc0000}
.t-err{color:#cc0000}
.t-dim{color:#8a8a8a}
.t-bold{font-weight:700}
.t-ok{color:#4e9a06}
.t-warn{color:#c4a000;font-weight:700}
.t-accent{color:#e95420;font-weight:700}
.t-grep{color:#cc0000;font-weight:700}
.t-num{color:#ad7fa8}
#desktop.theme-dark .t-num{color:#75507b}
.t-txt{color:#e8e8e8}
#desktop.theme-light .t-txt{color:#300a24}
.t-img{color:#c4a000}
.t-file{color:#e8e8e8}
#desktop.theme-light .t-file{color:#300a24}
.t-link{color:#3465a4;text-decoration:underline}
.t-logo{color:#e95420;display:inline-block;min-width:40ch}
.t-logo-s{color:#c01c28}
.t-neo-k{color:#4e9a06;font-weight:700;display:inline-block;min-width:12ch;padding-left:2ch}
.t-neo-k.accent{color:#e95420}
.t-neo-k.dim{color:#8a8a8a;font-weight:400}
.t-neo-v{color:#e8e8e8}
#desktop.theme-light .t-neo-v{color:#300a24}
.t-ls-mode{color:#8a8a8a}
.t-ls-size{color:#ad7fa8;padding-right:6px}
.t-help-cmd{color:#729fcf}
.t-pkg{color:#4e9a06}
.t-sudo{color:#c4a000;font-weight:700}
.t-prog{display:inline-block;width:180px;height:12px;border:1px solid #555;border-radius:6px;margin:0 6px;vertical-align:-2px;position:relative;overflow:hidden}
.t-prog-track{display:block;height:100%;width:0;background:#4e9a06;transition:width .08s linear}
.term-input-row{
  display:flex;align-items:center;gap:0;padding:8px 12px 10px;border-top:1px solid rgba(255,255,255,.06);
  font-family:var(--font-mono);font-size:13.5px;color:#e8e8e8;
}
#desktop.theme-light .term-input-row{color:#300a24}
.t-input{
  flex:1;background:transparent;border:none;outline:none;color:inherit;
  font-family:var(--font-mono);font-size:13.5px;caret-color:#e8e8e8;padding:0;
}
#desktop.theme-light .t-input{caret-color:#300a24}
.term-hb{display:flex;align-items:center;flex:1;justify-content:flex-end;margin-left:6px}
