/* Chrome redesign. Loaded after style.css and scoped to body[data-skin="chrome"],
   which app.js sets on start. Dark stage, one chrome object, a small quiet interface. */

body[data-skin="chrome"] {
  --bg-color: #050506;
  --panel-bg: #0e0e10;
  --border-color: #1f1f23;
  --border-hover: #34343b;
  --text-primary: #ececf1;
  --text-secondary: #8d8d96;
  --chrome-ink-3: #5a5a62;
  --chrome-light: #e6e8ff;
  --chrome-fire: #ff9a2e;
  --chrome-out: cubic-bezier(.16, 1, .3, 1);
  font-family: "Inter Tight", system-ui, sans-serif;
  background: var(--bg-color);
}
body[data-skin="chrome"] * { font-family: inherit; }
html:has(body[data-skin="chrome"]) { background: #050506; }
body[data-skin="chrome"] ::selection { background: var(--chrome-light); color: #000; }

/* film grain over everything, tile and motion set in chrome-grain.js */
.grain { display: none; }
body[data-skin="chrome"] .grain { display: block; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045; background-size: 220px; }

/* ---------- Stage (login) ---------- */
#chrome-stage-wrap { display: none; }
body[data-skin="chrome"]:not(.vault-active) #chrome-stage-wrap { display: block; position: fixed; inset: 0; z-index: 0; background: #020203; }
#chrome-stage-wrap.gone { display: none !important; }
#chrome-stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-corner {
  position: absolute; z-index: 1; margin: 0;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--text-primary);
  opacity: 0; transition: opacity 1.2s var(--chrome-out);
}
#chrome-stage-wrap.ready .stage-corner { opacity: 1; }
/* If the 3D module never arrives (opened as file://, CDN down, no WebGL),
   a flat chrome wordmark and the corners fade in instead of an empty black screen. */
#chrome-stage-wrap:not(.ready) .stage-corner { animation: stage-fallback-in 1s var(--chrome-out) 2.5s forwards; }
#chrome-stage-wrap:not(.ready)::after {
  content: "NEVO"; position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  font-family: "Inter Tight", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(96px, 22vw, 340px);
  background: linear-gradient(180deg, #ffffff 0%, #d9dcf5 38%, #6c7096 50%, #e6e8ff 62%, #9aa0c8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(230, 232, 255, .25));
  opacity: 0; animation: stage-fallback-in 1s var(--chrome-out) 2.5s forwards;
}
@keyframes stage-fallback-in { to { opacity: 1; } }
.stage-tl { top: 18px; left: 22px; }
.stage-tr { top: 18px; right: 22px; text-align: right; font-size: clamp(16px, 1.7vw, 26px); line-height: 1.05; letter-spacing: -0.02em; }
.stage-ml { top: 50%; left: 22px; }
.stage-mr { top: 50%; right: 22px; }
body.stage-opening #chrome-stage-wrap .stage-corner,
body.stage-opening #login-zone { opacity: 0; transition: opacity .5s; }

#chrome-whiteout { position: fixed; inset: 0; z-index: 200; background: #fff; opacity: 0; pointer-events: none; transition: opacity .7s ease; }
#chrome-whiteout.on { opacity: 1; }
#chrome-whiteout.fade { transition: opacity 1.2s ease; }
/* bloom passes leave the canvas opaque black; screen blending turns that black into see-through */
#chrome-fire { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 150; pointer-events: none; display: none; mix-blend-mode: screen; }
#chrome-fire.on { display: block; }

/* the login card becomes a quiet panel at the foot of the stage */
body[data-skin="chrome"] #login-zone.login-card {
  /* centred without transform: the old tilt effect in app.js writes inline transforms on .glass-panel */
  position: fixed; left: 0; right: 0; bottom: 28px; z-index: 5; transform: none !important;
  width: min(460px, calc(100% - 32px)); max-width: none; margin: 0 auto;
  padding: 0; background: none; border: 0; box-shadow: none; text-align: left;
  transition: opacity .5s;
}
body[data-skin="chrome"] #login-zone .logo-icon { display: none; }
body[data-skin="chrome"] #login-pane > h1,
body[data-skin="chrome"] #login-pane > p {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* password + button as one pill */
body[data-skin="chrome"] #login-pane form {
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px; background: #121214;
  box-shadow: inset 0 0 0 1px #2a2a30, 0 20px 50px rgba(0, 0, 0, .7);
}
body[data-skin="chrome"] #login-pane .input-wrapper { flex: 1; min-width: 0; margin: 0; }
body[data-skin="chrome"] #login-pane .input-wrapper svg { display: none; }
body[data-skin="chrome"] #login-zone .input-field {
  height: 42px; margin: 0; padding: 0 18px; border: 0; border-radius: 999px;
  background: #1b1b1f; color: var(--text-primary); font-size: 15px; letter-spacing: .04em;
}
body[data-skin="chrome"] #login-zone .input-field::placeholder { color: var(--chrome-ink-3); letter-spacing: 0; }
body[data-skin="chrome"] #login-zone .input-field:focus { box-shadow: inset 0 0 0 1px #4a4a55; border: 0; }

/* white pill buttons replace the liquid glass */
body[data-skin="chrome"] .liquid-glass-wrap { width: auto; }
body[data-skin="chrome"] .liquid-glass-shadow { display: none; }
body[data-skin="chrome"] .liquid-glass-btn {
  height: 42px; padding: 0 22px; border-radius: 999px;
  background: #f4f4f7; color: #050506; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  font-weight: 700; font-size: 14px;
  transition: transform .4s var(--chrome-out), background .2s;
}
body[data-skin="chrome"] .liquid-glass-btn:hover { background: #fff; transform: scale(1.03); box-shadow: none; }
body[data-skin="chrome"] .liquid-glass-btn:active { transform: scale(.96); }
body[data-skin="chrome"] .liquid-glass-btn::after,
body[data-skin="chrome"] .liquid-glass-btn span::after { display: none; }
body[data-skin="chrome"] .liquid-glass-btn span { height: 100%; color: #050506; font-weight: 700; text-shadow: none; }
body[data-skin="chrome"] .liquid-glass-btn span svg { stroke: #050506; }
body[data-skin="chrome"] .liquid-glass-btn:disabled { opacity: .7; cursor: progress; }

/* passkey unlock reads as a plain link */
body[data-skin="chrome"] #login-zone .passkey-action {
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
  width: 100%; margin: 14px 0 0; padding: 0; min-height: 0;
  background: none; border: 0; box-shadow: none; color: var(--text-primary); font-size: 14px;
}
body[data-skin="chrome"] #login-zone .passkey-action.hidden { display: none; }
body[data-skin="chrome"] #login-zone .passkey-action span { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
body[data-skin="chrome"] #login-zone .passkey-action small { color: var(--text-secondary); font-size: 13px; }
body[data-skin="chrome"] #login-zone .passkey-action:hover span { color: #fff; }

/* vault key step: a compact panel */
body[data-skin="chrome"] #vault-key-pane {
  padding: 22px; border-radius: 22px; background: #0e0e10;
  box-shadow: inset 0 0 0 1px #24242a, 0 30px 80px rgba(0, 0, 0, .8);
}
body[data-skin="chrome"] #vault-key-pane h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 6px; text-align: left; }
body[data-skin="chrome"] #vault-key-pane > p { font-size: 14px; color: var(--text-secondary); margin: 0 0 18px; text-align: left; }
body[data-skin="chrome"] #vault-key-pane .liquid-glass-wrap { width: 100%; }
body[data-skin="chrome"] #vault-key-pane .liquid-glass-btn { width: 100%; }
body[data-skin="chrome"] #vault-key-pane .passkey-action { margin: 0 0 14px; }
body[data-skin="chrome"] .glass-btn { border-radius: 999px; background: #18181c; border: 1px solid #2a2a30; color: var(--text-primary); }
body[data-skin="chrome"] .glass-btn:hover { background: #202026; border-color: #3a3a42; }
body[data-skin="chrome"] .pin-entry { border-radius: 999px; background: #141417; border-color: #2a2a30; }
body[data-skin="chrome"] .pin-slot { border-radius: 999px; background: #1b1b1f; border-color: #2a2a30; }
body[data-skin="chrome"] .pin-slot.active { border-color: var(--chrome-light); box-shadow: 0 0 10px rgba(230, 232, 255, .35); }
body[data-skin="chrome"] .pin-slot.filled::after { background: var(--chrome-light); box-shadow: 0 0 8px rgba(230, 232, 255, .8); }
body[data-skin="chrome"] .passkey-divider span { background: #0e0e10; }
body[data-skin="chrome"] #login-status:empty { display: none; }
body[data-skin="chrome"] #login-status { margin-top: 12px; }

/* ---------- Vault shell ---------- */
body[data-skin="chrome"].vault-active { align-items: flex-start; }
body[data-skin="chrome"].vault-active .container { max-width: 1760px; padding: 0; }
body[data-skin="chrome"] .vault-panel.glass-panel {
  position: relative; gap: 0; padding: 18px 22px 80px;
  background: none; border: 0; border-radius: 0; box-shadow: none;
}
body[data-skin="chrome"] .vault-header { border: 0; padding: 0; min-height: 40px; }
body[data-skin="chrome"] .vault-brand .brand-icon { display: none; }
body[data-skin="chrome"] .brand-title h2 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }
body[data-skin="chrome"] .brand-title h2::after { content: "\00AE"; font-size: 9px; vertical-align: super; }
body[data-skin="chrome"] .brand-title span { display: none; }
body[data-skin="chrome"] .btn-logout {
  border: 0; background: none; padding: 6px 0 6px 12px; border-radius: 0;
  color: var(--text-primary); font-size: 15px; font-weight: 600;
}
@media (min-width: 1440px) {
  body[data-skin="chrome"] .btn-logout svg { display: none; }
}
/* below 1440px the centred tab row needs the room: header actions become icons */
@media (max-width: 1439px) {
  body[data-skin="chrome"].vault-active .vault-header-actions .btn-logout {
    width: 44px; min-height: 44px; padding: 0; justify-content: center; gap: 0;
  }
  body[data-skin="chrome"].vault-active .vault-header-actions .btn-logout span { display: none; }
}
body[data-skin="chrome"] .btn-logout svg { stroke: currentColor; }
body[data-skin="chrome"] .btn-logout:hover { background: none; color: #fff; }
body[data-skin="chrome"] .passkey-setup-btn { color: var(--text-secondary); }

/* tabs: plain words, the active one carries a thin chrome light */
body[data-skin="chrome"] .vault-tabs {
  gap: clamp(14px, 2.6vw, 44px); margin: 0; padding: 0;
  background: none; border: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
}
body[data-skin="chrome"] .vault-tabs .tab-btn {
  position: relative; flex: none; min-height: 40px; padding: 0;
  background: none; box-shadow: none; border-radius: 0;
  color: var(--chrome-ink-3); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
body[data-skin="chrome"] .vault-tabs .tab-btn:hover { background: none; color: var(--text-secondary); }
body[data-skin="chrome"] .vault-tabs .tab-btn.active { background: none; box-shadow: none; color: var(--text-primary); }
body[data-skin="chrome"] .vault-tabs .tab-btn.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--chrome-light); box-shadow: 0 0 12px rgba(230, 232, 255, .7);
}
@media (min-width: 1024px) {
  body[data-skin="chrome"] .vault-tabs { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); }
  body[data-skin="chrome"].vault-active .vault-tabs .tab-btn { min-height: 40px; font-size: 15px; }
}

/* ---------- Files: the drop stage, facts on the right, the list below ---------- */
body[data-skin="chrome"].vault-active #files-tab-content { margin-top: 24px; gap: 22px; }
@media (min-width: 1024px) {
  body[data-skin="chrome"].vault-active #files-tab-content {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 22px; row-gap: 22px; align-items: start;
  }
  body[data-skin="chrome"].vault-active #files-tab-content.hidden { display: none; }
  body[data-skin="chrome"] #files-tab-content > .upload-container { grid-column: 1; grid-row: 1 / span 2; }
  body[data-skin="chrome"] #files-tab-content > .storage-widget { grid-column: 2; grid-row: 1; }
  body[data-skin="chrome"] #files-tab-content > .stats-grid { grid-column: 2; grid-row: 2; }
  body[data-skin="chrome"] #files-tab-content > #vault-status,
  body[data-skin="chrome"] #files-tab-content > .files-section { grid-column: 1 / -1; }
}

body[data-skin="chrome"].vault-active #files-tab-content .storage-widget {
  padding: 4px 0 0; background: none; border: 0; box-shadow: none; text-align: right;
}
body[data-skin="chrome"].vault-active #files-tab-content .storage-info {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin: 0 0 16px;
  font-size: 13px; font-weight: 600; color: var(--chrome-ink-3);
}
body[data-skin="chrome"] #files-tab-content .storage-info span:last-child {
  font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; letter-spacing: -0.035em; line-height: 1;
  color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap;
}
body[data-skin="chrome"] #files-tab-content .storage-info strong { color: var(--text-primary); font-weight: 700; }
body[data-skin="chrome"] #files-tab-content .storage-bar-bg { height: 3px; background: #1d1d22; border-radius: 99px; }
body[data-skin="chrome"] #files-tab-content .storage-bar-fill { background: var(--chrome-light); box-shadow: 0 0 12px rgba(230, 232, 255, .6); border-radius: 99px; transition: width 2s var(--chrome-out); }

body[data-skin="chrome"].vault-active #files-tab-content .stats-grid { grid-template-columns: 1fr; gap: 0; }
body[data-skin="chrome"].vault-active #files-tab-content .stat-card {
  min-height: 0; padding: 12px 0 0; background: none; border: 0; border-radius: 0; box-shadow: none; justify-content: flex-end;
}
body[data-skin="chrome"].vault-active #files-tab-content .stat-icon,
body[data-skin="chrome"].vault-active #files-tab-content .stat-icon-pulse { display: none; }
body[data-skin="chrome"] #files-tab-content .stat-info { text-align: right; }
body[data-skin="chrome"] #files-tab-content .stat-info p { font-size: 13px; font-weight: 600; color: var(--chrome-ink-3); margin: 0 0 2px; }
body[data-skin="chrome"] #files-tab-content .stat-info h4 {
  font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
/* the CPU and RAM bars show random numbers, not real server load (see BUGS.md) */

body[data-skin="chrome"].vault-active #files-tab-content .drop-zone {
  display: grid; place-items: center; align-content: center; gap: 6px; text-align: center;
  min-height: min(52vh, 460px); padding: 28px;
  border: 0; border-radius: 14px;
  background: radial-gradient(70% 60% at 50% 55%, #121216, #050506 75%);
  box-shadow: inset 0 0 0 1px var(--border-color);
  transition: box-shadow .3s;
}
body[data-skin="chrome"].vault-active #files-tab-content .drop-zone:hover,
body[data-skin="chrome"].vault-active #files-tab-content .drop-zone.dragover { box-shadow: inset 0 0 0 1px #3a3a42; background: radial-gradient(70% 60% at 50% 55%, #17171c, #050506 75%); }
body[data-skin="chrome"] #files-tab-content .drop-zone-icon { display: none; }
body[data-skin="chrome"] #files-tab-content .drop-zone > * { transition: opacity .4s; }
body.chrome-burning #files-tab-content .drop-zone > * { opacity: 0; }
body[data-skin="chrome"].vault-active #files-tab-content .drop-zone { grid-template-columns: 1fr; grid-template-rows: none; }
body[data-skin="chrome"].vault-active #files-tab-content .drop-zone > h3,
body[data-skin="chrome"].vault-active #files-tab-content .drop-zone > p,
body[data-skin="chrome"].vault-active #files-tab-content .drop-zone > .glass-btn { grid-column: 1; grid-row: auto; align-self: center; justify-self: center; min-height: 0; }
body[data-skin="chrome"] #files-tab-content .drop-zone h3 { margin: 0; font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.03em; }
body[data-skin="chrome"] #files-tab-content .drop-zone p { margin: 0; font-size: 14px; color: var(--text-secondary); }
body[data-skin="chrome"] #files-tab-content .drop-zone .glass-btn { margin-top: 14px !important; height: 36px; padding: 0 16px; font-size: 13px; font-weight: 600; }

body[data-skin="chrome"] .files-section-header h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
body[data-skin="chrome"] .breadcrumbs { background: none; border: 0; padding: 0; }
body[data-skin="chrome"] .file-search-bar .input-field,
body[data-skin="chrome"] #file-search { border-radius: 999px; background: #121214; border: 1px solid #24242a; }
body[data-skin="chrome"] .file-item { border: 0; border-top: 1px solid var(--border-color); border-radius: 0; padding: 10px 8px; }
body[data-skin="chrome"] .file-item:hover { background: #0d0d10; border-color: var(--border-color); }
body[data-skin="chrome"] .file-list { gap: 0; }
body[data-skin="chrome"] .file-name { font-size: 15px; font-weight: 500; }

/* ---------- Phone ---------- */
@media (max-width: 768px) {
  /* style.css pins the old floating login card with !important; undo that for the stage */
  body[data-skin="chrome"] #login-zone.login-card {
    margin: 0 auto !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  body[data-skin="chrome"] #vault-key-pane { padding: 18px; border-radius: 20px; }
  body[data-skin="chrome"] #vault-key-pane h1 { font-size: 20px; }

  body[data-skin="chrome"] .vault-panel.glass-panel { padding: 14px 16px calc(104px + env(safe-area-inset-bottom)) !important; }
  body[data-skin="chrome"].vault-active .vault-header { display: flex; flex-direction: row; align-items: center; gap: 12px; }
  body[data-skin="chrome"].vault-active .vault-brand { width: auto; margin-right: auto; }
  body[data-skin="chrome"].vault-active .vault-header-actions { width: auto; }
  body[data-skin="chrome"] .btn-logout { align-self: center; padding: 6px 0 6px 10px; }
  /* header actions: icons only on phones, so brand and three actions share one row */
  body[data-skin="chrome"] .vault-header-actions { gap: 2px; }
  body[data-skin="chrome"] .btn-logout:focus-visible { outline: 2px solid var(--chrome-light); outline-offset: 2px; border-radius: 999px; }

  /* tabs become a dock under the thumb */
  body[data-skin="chrome"] .vault-tabs {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    width: auto; height: 56px; padding: 0 6px; gap: 2px; align-items: center;
    border-radius: 999px; background: rgba(18, 18, 20, .96);
    box-shadow: inset 0 0 0 1px #2a2a30, 0 20px 40px rgba(0, 0, 0, .7);
  }
  body[data-skin="chrome"] .vault-tabs .tab-btn {
    min-height: 44px; padding: 0 15px; border-radius: 999px; font-size: 14px;
    transition: background .3s, color .3s;
  }
  body[data-skin="chrome"] .vault-tabs .tab-btn.active { background: #f4f4f7; color: #050506; }
  body[data-skin="chrome"] .vault-tabs .tab-btn.active::after { display: none; }
  body.modal-open[data-skin="chrome"] .vault-tabs { display: none; }

  /* Files: upload first, then the numbers in one compact row, then the list */
  body[data-skin="chrome"].vault-active #files-tab-content { margin-top: 18px; gap: 18px; }
  body[data-skin="chrome"] #files-tab-content > .upload-container { order: -1; }
  body[data-skin="chrome"].vault-active #files-tab-content .drop-zone { min-height: 220px; padding: 22px; }
  body[data-skin="chrome"].vault-active #files-tab-content .storage-widget { text-align: left; padding: 0; }
  body[data-skin="chrome"].vault-active #files-tab-content .storage-info { align-items: flex-start; margin-bottom: 12px; }
  body[data-skin="chrome"].vault-active #files-tab-content .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  body[data-skin="chrome"].vault-active #files-tab-content .stat-card { padding: 0; justify-content: flex-start; min-height: 0; }
  body[data-skin="chrome"] #files-tab-content .stat-info { text-align: left; }
  body[data-skin="chrome"] #files-tab-content .stat-info h4 { font-size: 20px; }
}

@media (max-width: 860px) {
  .stage-ml, .stage-mr { display: none; }
  .stage-tr { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-corner, #chrome-whiteout { transition: none; }
}

/* ---------- NevoDrop: two devices facing each other ---------- */
body[data-skin="chrome"] #drop-tab-content { position: relative; margin-top: 24px; }
body[data-skin="chrome"] #drop-tab-content:not(.hidden) {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(48px, 22vw) minmax(0, 1fr); column-gap: 0; row-gap: 40px; align-items: center;
}
body[data-skin="chrome"] #drop-tab-content .drop-panel,
body[data-skin="chrome"] #drop-tab-content .drop-send-section { display: contents; }
body[data-skin="chrome"] #drop-tab-content > .drop-my-device-card { grid-column: 1; grid-row: 1; }
body[data-skin="chrome"] #drop-tab-content .drop-send-section > div:first-child { grid-column: 3; grid-row: 1; margin: 0 !important; }
body[data-skin="chrome"] #drop-tab-content #drop-action-zone { grid-column: 1 / -1; grid-row: 2; }
body[data-skin="chrome"] #drop-tab-content .drop-receive-section { grid-column: 1 / -1; grid-row: 3; }
body[data-skin="chrome"] #drop-tab-content::before {
  content: ""; grid-column: 2; grid-row: 1; align-self: center; height: 1px; background: #2a2a30;
}
body[data-skin="chrome"] #drop-tab-content::after {
  content: ""; grid-column: 2; grid-row: 1; align-self: center; justify-self: start;
  width: 6px; height: 6px; border-radius: 50%; background: var(--chrome-light); box-shadow: 0 0 12px rgba(230, 232, 255, .9);
  opacity: 0; pointer-events: none;
}
body[data-skin="chrome"] #drop-tab-content.drop-pulse::after { animation: drop-travel .9s var(--chrome-out) forwards; }
/* margin percentages resolve against the grid cell, so the dot crosses exactly the line */
@keyframes drop-travel { 0% { margin-left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { margin-left: calc(100% - 6px); opacity: 0; } }

body[data-skin="chrome"] #drop-tab-content .drop-my-device-card {
  display: flex !important; flex-direction: column; align-items: flex-start !important; justify-content: flex-start !important; gap: 10px;
  margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important;
}
body[data-skin="chrome"] #drop-tab-content #my-device-icon { display: none !important; }
body[data-skin="chrome"] #drop-tab-content .drop-my-device-card > div:first-child { display: block !important; width: 100%; }
body[data-skin="chrome"] #drop-tab-content .drop-my-device-card span[style*="uppercase"],
body[data-skin="chrome"] #drop-tab-content label[style*="uppercase"] {
  display: block !important; margin: 0 0 6px !important; font-size: 13px !important; font-weight: 600 !important;
  text-transform: none !important; letter-spacing: 0 !important; color: var(--chrome-ink-3) !important;
}
body[data-skin="chrome"] #drop-tab-content #drop-devices-list { align-items: flex-end; }
body[data-skin="chrome"] #drop-tab-content .drop-send-section > div:first-child label { text-align: right; }
body[data-skin="chrome"] #my-device-name-input {
  width: 100% !important; max-width: 100%; padding: 0 !important; border: 0 !important; border-bottom: 1px solid transparent !important;
  font-size: clamp(26px, 3.4vw, 46px) !important; font-weight: 700 !important; letter-spacing: -0.035em; line-height: 1.1; color: var(--text-primary) !important;
  transition: border-color .2s;
}
body[data-skin="chrome"] #my-device-name-input:hover,
body[data-skin="chrome"] #my-device-name-input:focus { border-bottom-color: #34343b !important; }
body[data-skin="chrome"] #drop-polling-status { font-size: 13px; font-weight: 600; color: var(--chrome-ink-3); background: none; border: 0; padding: 0; }
body[data-skin="chrome"] #drop-polling-status .pulse-dot { background: var(--chrome-light); box-shadow: 0 0 8px rgba(230, 232, 255, .6); }

body[data-skin="chrome"] #drop-devices-list { flex-direction: column; gap: 6px !important; text-align: right; }
body[data-skin="chrome"] #drop-devices-list .device-card {
  display: block; width: auto; min-width: 0; max-width: 100%; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; text-align: right; cursor: pointer;
}
body[data-skin="chrome"] #drop-devices-list .device-icon-wrapper { display: none; }
body[data-skin="chrome"] #drop-devices-list .device-card-name {
  font-size: clamp(26px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1;
  color: var(--chrome-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s;
}
body[data-skin="chrome"] #drop-devices-list .device-card:hover .device-card-name { color: var(--text-secondary); }
body[data-skin="chrome"] #drop-devices-list .device-card.selected .device-card-name { color: var(--chrome-light); text-shadow: 0 0 24px rgba(230, 232, 255, .35); }
body[data-skin="chrome"] #drop-devices-list .empty-state {
  width: auto !important; padding: 0 !important; background: none !important; border: 0 !important; text-align: right;
}
body[data-skin="chrome"] #drop-devices-list .empty-state p { font-size: 14px !important; color: var(--chrome-ink-3) !important; }

body[data-skin="chrome"] #drop-tab-content #drop-file-zone {
  display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; min-height: 180px; padding: 24px;
  border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border-color);
  background: radial-gradient(70% 60% at 50% 55%, #121216, #050506 75%); transition: box-shadow .3s;
}
body[data-skin="chrome"] #drop-tab-content #drop-file-zone:hover,
body[data-skin="chrome"] #drop-tab-content #drop-file-zone.dragover { box-shadow: inset 0 0 0 1px #3a3a42; }
body[data-skin="chrome"] #drop-tab-content #drop-file-zone .drop-zone-icon { display: none; }
body[data-skin="chrome"] #drop-tab-content #drop-file-zone h3 { margin: 0; font-size: clamp(20px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.03em; }
body[data-skin="chrome"] #drop-tab-content #drop-file-zone p { margin: 0; font-size: 14px; color: var(--text-secondary); }
body[data-skin="chrome"] #drop-action-panel { background: none; border: 0; border-top: 1px solid var(--border-color); border-radius: 0; padding: 14px 0 0; box-shadow: none; }
body[data-skin="chrome"] #drop-action-panel .selected-file-name { font-size: 15px; font-weight: 600; }
body[data-skin="chrome"] #drop-action-panel .selected-file-size { font-size: 13px; color: var(--chrome-ink-3); }
body[data-skin="chrome"] #drop-action-panel .upload-progress-bar-bg { height: 3px; background: #1d1d22; border-radius: 99px; }
body[data-skin="chrome"] #drop-progress-fill { background: var(--chrome-light) !important; box-shadow: 0 0 12px rgba(230, 232, 255, .6); }
body[data-skin="chrome"] #drop-tab-content .drop-divider { font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--chrome-ink-3); }
body[data-skin="chrome"] #drop-tab-content .drop-divider span { text-transform: none; }
body[data-skin="chrome"] #drop-tab-content .drop-text-area-container textarea {
  padding: 16px 18px; border: 1px solid #24242a; border-radius: 18px; background: #121214; color: var(--text-primary); font-size: 15px;
}
body[data-skin="chrome"] #drop-tab-content .drop-text-area-container textarea:focus { border-color: #4a4a55; box-shadow: none; }
body[data-skin="chrome"] #send-drop-btn,
body[data-skin="chrome"] #send-text-btn {
  height: 42px; padding: 0 22px; border-radius: 999px; background: #f4f4f7 !important; border: 0 !important; color: #050506 !important; font-weight: 700; font-size: 14px;
}
body[data-skin="chrome"] #send-drop-btn:hover,
body[data-skin="chrome"] #send-text-btn:hover { background: #fff !important; }
body[data-skin="chrome"] #send-text-btn { margin-top: 12px !important; width: auto; }

body[data-skin="chrome"] #drop-tab-content .drop-receive-section { margin-top: 8px; }
body[data-skin="chrome"] #drop-list { gap: 0; }
body[data-skin="chrome"] #drop-list .empty-state { padding: 18px 0; text-align: left; }
body[data-skin="chrome"] #drop-list .empty-state svg { display: none; }
body[data-skin="chrome"] #drop-list .empty-state p { margin: 0 !important; font-size: 14px; color: var(--chrome-ink-3); }
body[data-skin="chrome"] #drop-list .drop-card {
  margin: 0; padding: 14px 8px; background: none; border: 0; border-top: 1px solid var(--border-color); border-radius: 0;
}
body[data-skin="chrome"] #drop-list .drop-card:hover { background: #0d0d10; }
body[data-skin="chrome"] #drop-list .drop-card-left .file-icon { display: none; }
body[data-skin="chrome"] #drop-list .drop-card-title { font-size: 15px; font-weight: 500; }
body[data-skin="chrome"] #drop-list .drop-card-subtitle { font-size: 13px; color: var(--chrome-ink-3); }
body[data-skin="chrome"] #drop-list .drop-actions { align-items: center; gap: 14px; flex-shrink: 0; }
body[data-skin="chrome"] #drop-list .btn-accept {
  height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: #f4f4f7; color: #050506; font-size: 13px; font-weight: 700;
}
body[data-skin="chrome"] #drop-list .btn-accept:hover { background: #fff; }
body[data-skin="chrome"] #drop-list .btn-decline {
  padding: 0; background: none; border: 0; color: var(--text-secondary); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
body[data-skin="chrome"] #drop-list .btn-decline:hover { color: var(--text-primary); background: none; }

@media (max-width: 768px) {
  body[data-skin="chrome"] #drop-tab-content:not(.hidden) { grid-template-columns: minmax(0, 1fr); row-gap: 26px; margin-top: 18px; }
  body[data-skin="chrome"] #drop-tab-content::before { grid-column: 1; grid-row: 2; width: 1px; height: 36px; justify-self: center; }
  body[data-skin="chrome"] #drop-tab-content::after { grid-column: 1; grid-row: 2; align-self: start; justify-self: center; }
  body[data-skin="chrome"] #drop-tab-content.drop-pulse::after { animation-name: drop-travel-v; }
  body[data-skin="chrome"] #drop-tab-content .drop-send-section > div:first-child { grid-column: 1; grid-row: 3; }
  body[data-skin="chrome"] #drop-tab-content #drop-action-zone { grid-row: 4; }
  body[data-skin="chrome"] #drop-tab-content .drop-receive-section { grid-row: 5; }
  body[data-skin="chrome"] #drop-list .drop-card { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@keyframes drop-travel-v { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(30px); opacity: 0; } }

/* ---------- Notes: list on the left, a quiet editor on the right ---------- */
body[data-skin="chrome"].vault-active #notes-tab-content { margin-top: 24px; }
body[data-skin="chrome"] .notes-panel { gap: 36px; margin-top: 0; grid-template-columns: 300px minmax(0, 1fr); }
body[data-skin="chrome"] .notes-sidebar { border-right: 0; padding-right: 0; gap: 10px; }
body[data-skin="chrome"] #notes-search { height: 42px; padding: 0 18px; border-radius: 999px; background: #121214; border: 1px solid #24242a; font-size: 14px; margin: 0; }
body[data-skin="chrome"] #notes-search:focus { border-color: #4a4a55; box-shadow: none; }
body[data-skin="chrome"] .btn-notes-new {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px; padding: 0 20px;
  border: 0; border-radius: 999px; background: #f4f4f7; color: #050506; font-size: 14px; font-weight: 700; box-shadow: none; transition: transform .4s var(--chrome-out), background .2s;
}
body[data-skin="chrome"] .btn-notes-new:hover { background: #fff; transform: scale(1.02); box-shadow: none; }
body[data-skin="chrome"] .btn-notes-new:active { transform: scale(.97); }
body[data-skin="chrome"] .btn-notes-new svg { stroke: #050506; transform: none; }
body[data-skin="chrome"] .btn-notes-repair {
  align-self: flex-start; padding: 0; background: none; border: 0; color: var(--chrome-ink-3); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
body[data-skin="chrome"] .btn-notes-repair:hover { background: none; color: var(--text-secondary); }

body[data-skin="chrome"] .notes-list { gap: 0; padding: 8px 0 0; }
body[data-skin="chrome"] .note-item {
  position: relative; padding: 14px 10px 14px 14px; background: none; border: 0; border-top: 1px solid var(--border-color); border-radius: 0; box-shadow: none; transform: none;
}
body[data-skin="chrome"] .note-item:hover { background: #0d0d10; }
body[data-skin="chrome"] .note-item.selected { background: #0d0d10; }
body[data-skin="chrome"] .note-item.selected::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px;
  background: var(--chrome-light); box-shadow: 0 0 12px rgba(230, 232, 255, .6);
}
body[data-skin="chrome"] .note-item-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); }
body[data-skin="chrome"] .note-item-preview { font-size: 13px; color: var(--text-secondary); }
body[data-skin="chrome"] .note-item-date { font-size: 12px; color: var(--chrome-ink-3); }
body[data-skin="chrome"] .notes-list .empty-state p { font-size: 14px !important; color: var(--chrome-ink-3) !important; }

body[data-skin="chrome"] .note-editor-container { padding: 0; background: none; border: 0; border-radius: 0; gap: 0; }
body[data-skin="chrome"] #note-editor-fields { gap: 10px !important; }
body[data-skin="chrome"] .note-title-input {
  padding: 0 0 4px; font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; border-bottom: 1px solid transparent;
}
body[data-skin="chrome"] .note-title-input::placeholder { color: var(--chrome-ink-3); }
body[data-skin="chrome"] .note-title-input:focus { border-bottom-color: #24242a; }
body[data-skin="chrome"] .note-editor-toolbar { gap: 4px !important; padding: 0 0 10px !important; margin: 0 !important; border-bottom: 1px solid var(--border-color) !important; }
body[data-skin="chrome"] .note-btn-action {
  gap: 6px; padding: 6px 10px; background: none; border: 0; border-radius: 999px; color: var(--text-secondary); font-size: 13px; font-weight: 600; transition: background .2s, color .2s;
}
body[data-skin="chrome"] .note-btn-action:hover { background: #18181c; color: var(--text-primary); border: 0; }
body[data-skin="chrome"] .note-editor-toolbar .note-btn-action { color: var(--text-primary); min-width: 32px; }
body[data-skin="chrome"] .note-btn-action.delete:hover { background: none; color: #e5646a; border: 0; }
body[data-skin="chrome"] .note-editor-textarea,
body[data-skin="chrome"] #note-editor-content { padding: 12px 0 16px; font-size: 17px; line-height: 1.7; color: var(--text-primary); background: none; }
body[data-skin="chrome"] #note-editor-content:empty::before { color: var(--chrome-ink-3); }
body[data-skin="chrome"] .note-editor-footer { padding-top: 12px; font-size: 13px; border-top: 1px solid var(--border-color); }
body[data-skin="chrome"] .note-save-status { padding-left: 0; font-style: normal; font-size: 13px; font-weight: 600; color: var(--chrome-ink-3); }
body[data-skin="chrome"] .note-save-status .pulse-dot { display: none; }
body[data-skin="chrome"] #note-editor-empty { align-items: flex-start !important; text-align: left !important; padding: 0 !important; }
body[data-skin="chrome"] #note-editor-empty svg { display: none; }
body[data-skin="chrome"] #note-editor-empty p:first-child { font-size: clamp(22px, 2.4vw, 30px) !important; font-weight: 700 !important; letter-spacing: -0.03em; color: var(--chrome-ink-3) !important; }
body[data-skin="chrome"] #note-editor-empty p:last-child { font-size: 14px !important; color: var(--chrome-ink-3) !important; }

@media (max-width: 768px) {
  body[data-skin="chrome"].vault-active #notes-tab-content { margin-top: 18px; }
  body[data-skin="chrome"] .notes-panel { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 210px); gap: 0; }
  body[data-skin="chrome"] .note-editor-container { background: #050506; }
  body[data-skin="chrome"] #notes-mobile-header { border-bottom: 1px solid var(--border-color) !important; padding-bottom: 8px !important; }
  body[data-skin="chrome"] #notes-mobile-header .note-btn-action { color: var(--text-primary) !important; font-size: 15px !important; padding: 8px 0 !important; min-width: 0; }
  body[data-skin="chrome"] #notes-mobile-header span { color: var(--chrome-ink-3) !important; font-size: 13px !important; }
  body[data-skin="chrome"] .note-title-input { font-size: 28px; }
  body[data-skin="chrome"] .note-editor-textarea,
  body[data-skin="chrome"] #note-editor-content { max-height: none; font-size: 17px; }
  body[data-skin="chrome"] .note-editor-footer { flex-direction: column; align-items: flex-start; gap: 4px; }
  body[data-skin="chrome"] .note-actions { gap: 0; margin-left: -10px; }
}

/* ---------- Passwords: one table-like list ---------- */
body[data-skin="chrome"].vault-active #passwords-tab-content { margin-top: 24px; }
body[data-skin="chrome"] #passwords-tab-content .passwords-header { margin-bottom: 18px !important; }
body[data-skin="chrome"] #passwords-search { height: 42px; padding: 0 18px; border-radius: 999px; background: #121214; border: 1px solid #24242a; font-size: 14px; }
body[data-skin="chrome"] #passwords-search:focus { border-color: #4a4a55; box-shadow: none; }
/* Export is a text action, New Entry the white pill */
body[data-skin="chrome"] .passwords-header button[onclick^="exportDecryptedPasswords"] {
  height: 42px; padding: 0 6px; background: none; border: 0; box-shadow: none; color: var(--text-secondary); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
body[data-skin="chrome"] .passwords-header button[onclick^="exportDecryptedPasswords"]:hover { background: none; color: var(--text-primary); }
body[data-skin="chrome"] .passwords-header button[onclick^="exportDecryptedPasswords"] svg { display: none; }
body[data-skin="chrome"] .passwords-header button[onclick^="openAddPasswordModal"] {
  height: 42px; padding: 0 20px !important; border: 0 !important; border-radius: 999px; background: #f4f4f7 !important; color: #050506 !important; font-size: 14px; font-weight: 700; box-shadow: none;
}
body[data-skin="chrome"] .passwords-header button[onclick^="openAddPasswordModal"]:hover { background: #fff !important; }
body[data-skin="chrome"] .passwords-header button[onclick^="openAddPasswordModal"] span,
body[data-skin="chrome"] .passwords-header button[onclick^="openAddPasswordModal"] svg { color: #050506 !important; stroke: #050506 !important; }
body[data-skin="chrome"] #passwords-empty-state { padding: 40px 0 !important; text-align: left !important; font-size: 15px; color: var(--chrome-ink-3) !important; }

body[data-skin="chrome"] .passwords-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
body[data-skin="chrome"] .password-card {
  padding: 0; background: none; border: 0; border-top: 1px solid var(--border-color); border-radius: 0; box-shadow: none; transform: none; overflow: visible;
}
body[data-skin="chrome"] .password-card:hover { background: #0d0d10; border-color: var(--border-color); box-shadow: none; transform: none; }
body[data-skin="chrome"] .pwd-card-header { padding: 14px 8px; gap: 14px; align-items: center; }
body[data-skin="chrome"] .pwd-favicon { width: 22px; height: 22px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; flex-shrink: 0; }
body[data-skin="chrome"] .pwd-favicon img { width: 20px; height: 20px; border-radius: 5px; }
body[data-skin="chrome"] .pwd-favicon svg { width: 18px; height: 18px; stroke: var(--chrome-ink-3); }
body[data-skin="chrome"] .pwd-title-info { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 1fr); align-items: baseline; column-gap: 24px; flex: 1; min-width: 0; }
body[data-skin="chrome"] .pwd-title-info h4 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-skin="chrome"] .pwd-title-info span { font-size: 14px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-skin="chrome"] .pwd-actions { gap: 16px; align-items: center; }
body[data-skin="chrome"] .pwd-action-btn {
  width: auto; height: auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
  color: var(--text-secondary); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
body[data-skin="chrome"] .pwd-action-btn svg { display: none; }
body[data-skin="chrome"] .pwd-action-btn[title="Edit Entry"]::after { content: "Edit"; }
body[data-skin="chrome"] .pwd-action-btn[title="Delete Entry"]::after { content: "Delete"; }
body[data-skin="chrome"] .pwd-action-btn:hover { background: none; color: var(--text-primary); }
body[data-skin="chrome"] .pwd-action-btn.delete-btn:hover { background: none; color: #e5646a; }

body[data-skin="chrome"] .password-card.expanded .pwd-card-body { margin-top: 0; padding: 0 8px 16px 44px; gap: 0; }
body[data-skin="chrome"] .pwd-field-row { padding: 10px 0; background: none; border: 0; border-top: 1px solid #17171a; border-radius: 0; }
body[data-skin="chrome"] .pwd-field-label { width: 110px; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--chrome-ink-3); }
body[data-skin="chrome"] .pwd-field-value { font-size: 15px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
body[data-skin="chrome"] .pwd-field-value.masked { font-size: 15px; letter-spacing: 3px; color: var(--text-secondary); }
body[data-skin="chrome"] .pwd-field-value[style*="primary-purple"] { color: var(--chrome-light) !important; font-family: inherit !important; font-size: 20px !important; font-weight: 700 !important; letter-spacing: .08em !important; }
body[data-skin="chrome"] .pwd-copy-btn { padding: 6px; border-radius: 999px; color: var(--chrome-ink-3); }
body[data-skin="chrome"] .pwd-copy-btn:hover { background: #18181c; color: var(--text-primary); }
body[data-skin="chrome"] .totp-progress-bar-bg { background: #1d1d22 !important; margin-top: 0 !important; }
body[data-skin="chrome"] .totp-progress-fill[style*="primary-purple"] { background: var(--chrome-light) !important; box-shadow: 0 0 10px rgba(230, 232, 255, .6); }
body[data-skin="chrome"] .pwd-card-notes { margin-top: 8px; padding: 0; background: none; border: 0; border-radius: 0; font-size: 14px; color: var(--text-secondary); max-height: none; }

@media (max-width: 768px) {
  body[data-skin="chrome"].vault-active #passwords-tab-content { margin-top: 18px; }
  body[data-skin="chrome"] #passwords-tab-content .passwords-header { flex-wrap: wrap; gap: 10px !important; }
  body[data-skin="chrome"] #passwords-tab-content .passwords-header > div:first-child { max-width: none !important; flex: 1 1 100% !important; }
  body[data-skin="chrome"] #passwords-tab-content .passwords-header > div:last-child { width: 100%; justify-content: space-between; }
  body[data-skin="chrome"] .pwd-card-header { padding: 14px 0; gap: 12px; }
  body[data-skin="chrome"] .pwd-title-info { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  body[data-skin="chrome"] .pwd-actions { gap: 14px; }
  body[data-skin="chrome"] .password-card.expanded .pwd-card-body { padding: 0 0 14px 34px; }
  body[data-skin="chrome"] .pwd-field-label { width: 84px; }
}

/* ---------- Shares: name, access, downloads, expiry ---------- */
body[data-skin="chrome"].vault-active #shares-tab-content { margin-top: 24px; }
body[data-skin="chrome"] .shares-panel { margin-top: 0; gap: 18px; }
body[data-skin="chrome"] .shares-header { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border: 0; padding: 0; }
body[data-skin="chrome"] .shares-header h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
body[data-skin="chrome"] .shares-subtitle { font-size: 14px; color: var(--chrome-ink-3); }
body[data-skin="chrome"] .shares-list { gap: 0; }
body[data-skin="chrome"] .shares-list .empty-state { padding: 24px 0; text-align: left; }
body[data-skin="chrome"] .shares-list .empty-state p { font-size: 14px !important; color: var(--chrome-ink-3) !important; }

body[data-skin="chrome"] .share-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 28px;
  padding: 14px 8px; background: none; border: 0; border-top: 1px solid var(--border-color); border-radius: 0; box-shadow: none; transform: none;
}
body[data-skin="chrome"] .share-item:hover { background: #0d0d10; border-color: var(--border-color); transform: none; box-shadow: none; }
body[data-skin="chrome"] .share-item.expired,
body[data-skin="chrome"] .share-item.downloaded { opacity: 1; }
body[data-skin="chrome"] .share-item-info { display: contents; }
body[data-skin="chrome"] .share-item-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-skin="chrome"] .share-item.expired .share-item-name,
body[data-skin="chrome"] .share-item.downloaded .share-item-name { color: var(--text-secondary); }
body[data-skin="chrome"] .share-item-meta {
  display: grid; grid-template-columns: 96px 92px 112px 80px; column-gap: 12px; align-items: baseline; margin: 0;
  font-size: 14px; color: var(--text-secondary); font-variant-numeric: tabular-nums;
}
body[data-skin="chrome"] .share-item-meta > span:nth-child(3) { text-align: right; }
body[data-skin="chrome"] .share-item-meta > span:nth-child(2) { text-align: right; }
body[data-skin="chrome"] .share-item-badge {
  padding: 0; background: none; border: 0; border-radius: 0; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text-secondary);
}
body[data-skin="chrome"] .share-item-badge.badge-active { color: var(--chrome-light); }
body[data-skin="chrome"] .share-item-badge.badge-downloaded { color: var(--chrome-ink-3); }
body[data-skin="chrome"] .share-item-badge.badge-expired { color: #b4585d; }
body[data-skin="chrome"] .share-item.expired .share-item-meta > span:nth-child(2) { color: #b4585d; }
body[data-skin="chrome"] .share-item-badge.badge-password { color: var(--chrome-ink-3); font-weight: 600; }
body[data-skin="chrome"] .share-item-actions { display: flex; align-items: center; gap: 8px; }
body[data-skin="chrome"] .share-item-actions button {
  width: auto; height: auto; padding: 6px !important; border-radius: 999px; background: none; border: 0; box-shadow: none; color: var(--chrome-ink-3);
}
body[data-skin="chrome"] .share-item-actions .btn-more { display: inline-flex !important; }
body[data-skin="chrome"] .share-item-actions button:hover { background: #18181c; color: var(--text-primary); }
body[data-skin="chrome"] .share-item-actions .btn-delete:hover { color: #e5646a; background: none; }

@media (max-width: 768px) {
  body[data-skin="chrome"].vault-active #shares-tab-content { margin-top: 18px; }
  body[data-skin="chrome"] .share-item { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; column-gap: 12px; padding: 14px 0; }
  body[data-skin="chrome"] .share-item-name { grid-column: 1; grid-row: 1; }
  body[data-skin="chrome"] .share-item-actions { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  body[data-skin="chrome"] .share-item-meta { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
  body[data-skin="chrome"] .share-item-badge { font-size: 13px; }
}

/* ---------- Arbeitszeitrechner: the running timer is the hero ---------- */
body[data-skin="chrome"].vault-active #arbeitszeitrechner-tab-content { margin-top: 24px; }
body[data-skin="chrome"] #arbeitszeitrechner-tab-content .glass-panel { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
body[data-skin="chrome"] #arbeitszeitrechner-tab-content .arbeitszeitrechner-dashboard-grid { gap: 40px !important; margin-bottom: 32px !important; }
@media (min-width: 1024px) {
  body[data-skin="chrome"] #arbeitszeitrechner-tab-content .arbeitszeitrechner-dashboard-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
}

/* timer card */
body[data-skin="chrome"] .timer-card { padding: 0 !important; align-items: stretch !important; text-align: left !important; }
body[data-skin="chrome"] .timer-card .card-header { margin-bottom: 0 !important; }
body[data-skin="chrome"] .timer-card .card-header h3 { font-size: 22px !important; font-weight: 700 !important; letter-spacing: -0.03em; }
body[data-skin="chrome"] #timer-status-dot { width: 8px !important; height: 8px !important; background-color: #3a3a42 !important; }
body[data-skin="chrome"] #timer-status-dot.active { background-color: var(--chrome-light) !important; box-shadow: 0 0 12px rgba(230, 232, 255, .8); }
body[data-skin="chrome"] #arbeitszeitrechner-timer-display {
  margin: 14px 0 6px !important; font-size: clamp(64px, 8.4vw, 124px) !important; font-weight: 200 !important; letter-spacing: -0.045em !important; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--text-primary) !important;
}
body[data-skin="chrome"] #tf-live-earnings { margin: 0 0 26px !important; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; }
body[data-skin="chrome"] #tf-live-earnings-content > div:first-child { font-size: 13px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--chrome-ink-3) !important; }
body[data-skin="chrome"] #tf-live-earnings-amount { margin-top: 2px !important; font-size: clamp(28px, 3vw, 40px) !important; font-weight: 700 !important; letter-spacing: -0.035em; color: var(--chrome-light) !important; font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(230, 232, 255, .3); }
body[data-skin="chrome"] #tf-live-earnings-detail { color: var(--chrome-ink-3) !important; font-size: 13px !important; }
body[data-skin="chrome"] #tf-live-earnings-toggle { color: var(--chrome-ink-3) !important; font-size: 13px !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

body[data-skin="chrome"] .timer-inputs { margin: 18px 0 22px !important; }
body[data-skin="chrome"] #arbeitszeitrechner-tab-content label[style*="uppercase"] { font-size: 13px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--chrome-ink-3) !important; }
body[data-skin="chrome"] #arbeitszeitrechner-tab-content .input-field {
  height: 42px; padding: 0 16px !important; border-radius: 999px; background: #121214; border: 1px solid #24242a; color: var(--text-primary); font-size: 14px; box-shadow: none;
}
body[data-skin="chrome"] #arbeitszeitrechner-tab-content select.input-field { padding-right: 34px !important; }
body[data-skin="chrome"] #arbeitszeitrechner-tab-content .input-field:focus { border-color: #4a4a55; box-shadow: none; }

body[data-skin="chrome"] .timer-actions { gap: 10px !important; }
body[data-skin="chrome"] .timer-actions .glass-btn {
  height: 46px; padding: 0 22px !important; border-radius: 999px; font-size: 15px; font-weight: 700 !important; box-shadow: none;
  background: #18181c !important; border: 1px solid #2a2a30 !important; color: var(--text-primary) !important;
}
body[data-skin="chrome"] .timer-actions .glass-btn:hover { background: #202026 !important; border-color: #3a3a42 !important; }
body[data-skin="chrome"] .timer-actions .glass-btn svg { stroke: currentColor !important; }
body[data-skin="chrome"] #btn-tf-start { background: #f4f4f7 !important; border: 0 !important; color: #050506 !important; }
body[data-skin="chrome"] #btn-tf-start:hover { background: #fff !important; }
body[data-skin="chrome"] #btn-tf-stop { color: #e5646a !important; }

/* numbers / chart panel */
body[data-skin="chrome"] .azr-right-panel { padding: 0 !important; min-height: 0 !important; gap: 18px; }
body[data-skin="chrome"] #azr-right-panel-title { font-size: 22px !important; font-weight: 700 !important; letter-spacing: -0.03em; }
body[data-skin="chrome"] .azr-right-panel > div:first-child { margin-bottom: 0 !important; }
body[data-skin="chrome"] .azr-right-panel div[style*="rgba(255,255,255,0.04)"] { background: #121214 !important; border: 1px solid #24242a !important; border-radius: 999px !important; padding: 3px !important; }
body[data-skin="chrome"] .azr-period-btn,
body[data-skin="chrome"] .azr-mode-btn { padding: 5px 12px !important; border-radius: 999px !important; font-size: 13px !important; font-weight: 600 !important; background: transparent !important; color: var(--chrome-ink-3) !important; }
body[data-skin="chrome"] .azr-period-btn.active,
body[data-skin="chrome"] .azr-mode-btn.active { background: #f4f4f7 !important; color: #050506 !important; }
body[data-skin="chrome"] #azr-chart-legend i[style*="10b981"] { background: #8d8d96 !important; }
body[data-skin="chrome"] #azr-chart-legend i[style*="3b82f6"] { background: #3a3a42 !important; }
body[data-skin="chrome"] #azr-chart-legend span { font-size: 13px !important; color: var(--chrome-ink-3) !important; }

body[data-skin="chrome"] #azr-stats-view { gap: 28px 24px !important; align-content: start; }
body[data-skin="chrome"] #azr-stats-view .stat-card { padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; box-shadow: none; }
body[data-skin="chrome"] #azr-stats-view .stat-icon { display: none !important; }
body[data-skin="chrome"] #azr-stats-view .stat-info { display: flex; flex-direction: column-reverse; }
body[data-skin="chrome"] #azr-stats-view .stat-info p { font-size: 13px !important; font-weight: 600; color: var(--chrome-ink-3) !important; margin: 0 0 2px !important; }
body[data-skin="chrome"] #azr-stats-view .stat-info h4 { margin: 0 !important; font-size: clamp(26px, 2.8vw, 38px) !important; font-weight: 700 !important; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
body[data-skin="chrome"] #stat-tf-paid-earnings { color: var(--chrome-light) !important; }

body[data-skin="chrome"] .azr-stacked-chart { border-bottom: 1px solid var(--border-color); height: 220px; gap: 10px; }
body[data-skin="chrome"] .azr-stacked-track { max-width: 28px; background: #0e0e10; border-radius: 6px 6px 2px 2px; }
body[data-skin="chrome"] .azr-seg-freelance { background: #5a5a62; box-shadow: none; }
body[data-skin="chrome"] .azr-seg-regular { background: #3a3a42; box-shadow: none; }
body[data-skin="chrome"] .azr-stacked-col:hover .azr-seg-freelance { background: #8d8d96; }
body[data-skin="chrome"] .azr-stacked-col:hover .azr-seg-regular { background: #5a5a62; }
body[data-skin="chrome"] .azr-stacked-col:has(.azr-stacked-label[style*="success-color"]) .azr-seg-freelance,
body[data-skin="chrome"] .azr-stacked-col:has(.azr-stacked-label[style*="success-color"]) .azr-seg-regular { background: var(--chrome-light); box-shadow: 0 0 12px rgba(230, 232, 255, .5); }
body[data-skin="chrome"] .azr-stacked-label { font-size: 12px; color: var(--chrome-ink-3); }
body[data-skin="chrome"] .azr-stacked-label[style*="success-color"] { color: var(--chrome-light) !important; }
body[data-skin="chrome"] .azr-stacked-val { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-secondary); opacity: 1; }

/* filters and actions */
body[data-skin="chrome"] .arbeitszeitrechner-filter-bar { margin-bottom: 14px !important; }
body[data-skin="chrome"] .arbeitszeitrechner-filter-bar .glass-btn {
  height: 42px; padding: 0 18px !important; border-radius: 999px; background: #18181c !important; border: 1px solid #2a2a30 !important; color: var(--text-primary) !important; font-size: 14px; font-weight: 600; box-shadow: none;
}
body[data-skin="chrome"] .arbeitszeitrechner-filter-bar .glass-btn:hover { background: #202026 !important; border-color: #3a3a42 !important; }
body[data-skin="chrome"] .arbeitszeitrechner-filter-bar .glass-btn svg { stroke: currentColor !important; width: 15px !important; height: 15px !important; }

/* sessions: a quiet list */
body[data-skin="chrome"] .arbeitszeitrechner-sessions-container { border: 0 !important; background: none !important; border-radius: 0 !important; min-height: 0 !important; }
body[data-skin="chrome"] #tf-sessions-empty { padding: 32px 0 !important; text-align: left !important; font-size: 15px; color: var(--chrome-ink-3) !important; }
body[data-skin="chrome"] .arbeitszeitrechner-table thead tr { background: #050506 !important; border-bottom: 1px solid var(--border-color) !important; }
body[data-skin="chrome"] .arbeitszeitrechner-table th { padding: 10px 12px !important; font-size: 13px; font-weight: 600 !important; color: var(--chrome-ink-3) !important; white-space: nowrap; }
body[data-skin="chrome"] .arbeitszeitrechner-table td { padding: 14px 12px !important; font-size: 14px; font-variant-numeric: tabular-nums; }
body[data-skin="chrome"] .arbeitszeitrechner-table td[style*="monospace"] { font-family: inherit !important; }
body[data-skin="chrome"] .arbeitszeitrechner-table tbody tr { border-bottom: 0; border-top: 1px solid var(--border-color); }
body[data-skin="chrome"] .arbeitszeitrechner-table tbody tr:hover { background: #0d0d10; }
body[data-skin="chrome"] .tf-status-badge {
  padding: 0; border: 0 !important; border-radius: 0; background: none !important; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0;
}
body[data-skin="chrome"] .tf-status-badge.paid { color: var(--chrome-light) !important; }
body[data-skin="chrome"] .tf-status-badge.unpaid { color: var(--text-secondary) !important; text-decoration: underline; text-underline-offset: 3px; }
body[data-skin="chrome"] .tf-status-badge.regular-badge { color: var(--chrome-ink-3) !important; }
body[data-skin="chrome"] .tf-action-btn { color: var(--chrome-ink-3); border-radius: 999px; }
body[data-skin="chrome"] .tf-action-btn:hover { background: #18181c; color: var(--text-primary); }
body[data-skin="chrome"] .tf-action-btn[style*="error-color"] { color: #b4585d !important; }
body[data-skin="chrome"] .tf-action-btn[style*="error-color"]:hover { color: #e5646a !important; background: none; }
body[data-skin="chrome"] #tf-sessions-mobile-list { background: none !important; gap: 0 !important; max-height: none !important; }
body[data-skin="chrome"] .mobile-session-card { padding: 14px 0; background: none; border: 0; border-top: 1px solid var(--border-color); gap: 6px; }
body[data-skin="chrome"] .mobile-session-card strong { font-size: 16px !important; font-weight: 700; letter-spacing: -0.02em; }
body[data-skin="chrome"] .mobile-session-card .tf-action-btn { border: 0 !important; padding: 4px 0 !important; border-radius: 0 !important; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--text-secondary); }

@media (max-width: 768px) {
  body[data-skin="chrome"].vault-active #arbeitszeitrechner-tab-content { margin-top: 18px; }
  body[data-skin="chrome"] #arbeitszeitrechner-tab-content .arbeitszeitrechner-dashboard-grid { gap: 32px !important; margin-bottom: 24px !important; }
  body[data-skin="chrome"] #arbeitszeitrechner-timer-display { font-size: clamp(56px, 20vw, 84px) !important; }
  body[data-skin="chrome"] .timer-actions .glass-btn { padding: 0 12px !important; }
  body[data-skin="chrome"] .arbeitszeitrechner-filter-bar > div { width: 100%; }
  body[data-skin="chrome"] .arbeitszeitrechner-filter-bar .glass-btn { flex: 1; justify-content: center; }
}

/* ---------- Modals: preview, move, share, confirm, password, download-all, import/edit ---------- */
body[data-skin="chrome"] .preview-modal { background: rgba(3, 3, 4, .86); backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-skin="chrome"] .preview-modal-content {
  background: #0e0e10 !important; border: 0 !important; border-radius: 22px !important;
  box-shadow: inset 0 0 0 1px #24242a, 0 30px 80px rgba(0, 0, 0, .8) !important;
}
body[data-skin="chrome"] .preview-modal-content h3 { margin: 0 0 6px !important; font-size: 22px !important; font-weight: 700 !important; letter-spacing: -0.03em; color: var(--text-primary) !important; }
body[data-skin="chrome"] .preview-modal-content h3 { padding-right: 44px; }
body[data-skin="chrome"] #tf-import-modal [style*="dashed"] { border: 1px solid #24242a !important; border-radius: 18px !important; background: #121214 !important; color: var(--text-secondary); }
body[data-skin="chrome"] #tf-import-modal [style*="dashed"] svg { stroke: var(--text-secondary) !important; color: var(--text-secondary) !important; }
body[data-skin="chrome"] .preview-modal-content h4 { font-size: 15px !important; font-weight: 700 !important; letter-spacing: -0.01em; }
body[data-skin="chrome"] .preview-modal-content p { color: var(--text-secondary); }
body[data-skin="chrome"] .preview-close-btn {
  width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 999px; background: #18181c; border: 1px solid #2a2a30; color: var(--text-secondary); font-size: 20px; line-height: 1; transition: background .2s, color .2s;
}
body[data-skin="chrome"] .preview-close-btn:hover { background: #202026; color: var(--text-primary); }
body[data-skin="chrome"] #tf-import-modal .preview-close-btn,
body[data-skin="chrome"] #tf-edit-modal .preview-close-btn { right: 16px !important; top: 16px !important; background: #18181c !important; border: 1px solid #2a2a30 !important; font-size: 20px !important; }
body[data-skin="chrome"] .preview-nav-btn { width: 46px; height: 46px; border-radius: 999px; background: #18181c; border: 1px solid #2a2a30; color: var(--text-primary); box-shadow: none; backdrop-filter: none; }
body[data-skin="chrome"] .preview-nav-btn:hover { background: #202026; border-color: #3a3a42; }
body[data-skin="chrome"] .preview-footer { background: none; border-top: 1px solid var(--border-color); font-size: 14px; color: var(--text-secondary); }
body[data-skin="chrome"] .preview-loading p { color: var(--chrome-ink-3); }

/* labels and inputs inside modals */
body[data-skin="chrome"] .preview-modal label,
body[data-skin="chrome"] .preview-modal .metadata-field span { font-size: 13px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--chrome-ink-3) !important; }
body[data-skin="chrome"] .preview-modal input[type="text"],
body[data-skin="chrome"] .preview-modal input[type="password"],
body[data-skin="chrome"] .preview-modal input[type="number"],
body[data-skin="chrome"] .preview-modal input[type="datetime-local"],
body[data-skin="chrome"] .preview-modal select,
body[data-skin="chrome"] .preview-modal .input-field {
  height: 42px; padding: 0 16px; border-radius: 999px !important; background: #121214 !important; border: 1px solid #24242a !important; color: var(--text-primary); font-size: 14px; box-shadow: none; box-sizing: border-box;
}
body[data-skin="chrome"] .preview-modal textarea { padding: 12px 16px; border-radius: 18px; background: #121214; border: 1px solid #24242a; color: var(--text-primary); font-size: 14px; }
body[data-skin="chrome"] .preview-modal input:focus,
body[data-skin="chrome"] .preview-modal select:focus,
body[data-skin="chrome"] .preview-modal textarea:focus { border-color: #4a4a55 !important; box-shadow: none !important; outline: none; }
body[data-skin="chrome"] .preview-modal input[type="checkbox"] { accent-color: var(--chrome-light) !important; }
body[data-skin="chrome"] #pwd-password { padding-right: 44px; }

/* buttons: secondary pill by default, white pill for the main action */
body[data-skin="chrome"] .preview-modal .btn-sec,
body[data-skin="chrome"] .preview-modal .btn-secondary,
body[data-skin="chrome"] .preview-modal .glass-btn {
  min-height: 42px; padding: 0 20px; border-radius: 999px; background: #18181c; border: 1px solid #2a2a30; color: var(--text-primary); font-size: 14px; font-weight: 600; box-shadow: none; transition: background .2s, border-color .2s;
}
body[data-skin="chrome"] .preview-modal .btn-sec:hover,
body[data-skin="chrome"] .preview-modal .btn-secondary:hover,
body[data-skin="chrome"] .preview-modal .glass-btn:hover { background: #202026; border-color: #3a3a42; }
body[data-skin="chrome"] .preview-modal .btn-sec svg { stroke: currentColor; }
body[data-skin="chrome"] .preview-modal .btn-sec.is-active { background: #f4f4f7; border-color: #f4f4f7; color: #050506; }
body[data-skin="chrome"] .preview-modal .btn-primary,
body[data-skin="chrome"] .preview-modal .metadata-save-btn,
body[data-skin="chrome"] .preview-modal .crop-save-btn,
body[data-skin="chrome"] .preview-modal button[style*="primary-purple"],
body[data-skin="chrome"] .preview-modal button[style*="success-color"],
body[data-skin="chrome"] .preview-modal #preview-save-btn {
  min-height: 42px; padding: 0 22px !important; border-radius: 999px; background: #f4f4f7 !important; border: 0 !important; color: #050506 !important; font-size: 14px; font-weight: 700 !important; box-shadow: none;
}
body[data-skin="chrome"] .preview-modal .btn-primary:hover,
body[data-skin="chrome"] .preview-modal .metadata-save-btn:hover,
body[data-skin="chrome"] .preview-modal .crop-save-btn:hover,
body[data-skin="chrome"] .preview-modal button[style*="primary-purple"]:hover,
body[data-skin="chrome"] .preview-modal button[style*="success-color"]:hover { background: #fff !important; }
body[data-skin="chrome"] .preview-modal button[style*="primary-purple"] svg,
body[data-skin="chrome"] .preview-modal button[style*="success-color"] svg { stroke: #050506 !important; }
body[data-skin="chrome"] .preview-modal button[style*="transparent"][class*="glass-btn"] { background: none !important; border-color: transparent !important; color: var(--text-secondary); }
body[data-skin="chrome"] .preview-modal .confirm-danger-btn { background: #18181c !important; border: 1px solid #2a2a30 !important; color: #e5646a !important; }
body[data-skin="chrome"] .preview-modal .confirm-danger-btn:hover { background: #202026 !important; border-color: #3a3a42 !important; }

body[data-skin="chrome"] .confirm-modal-content,
body[data-skin="chrome"] #move-modal .preview-modal-content,
body[data-skin="chrome"] #password-modal .preview-modal-content,
body[data-skin="chrome"] #download-all-modal .preview-modal-content,
body[data-skin="chrome"] #share-modal .preview-modal-content,
body[data-skin="chrome"] #tf-import-modal .preview-modal-content,
body[data-skin="chrome"] #tf-edit-modal .preview-modal-content { padding: 28px !important; }
body[data-skin="chrome"] #move-modal .preview-modal-content,
body[data-skin="chrome"] #password-modal .preview-modal-content,
body[data-skin="chrome"] #download-all-modal .preview-modal-content,
body[data-skin="chrome"] #share-modal .preview-modal-content,
body[data-skin="chrome"] #tf-import-modal .preview-modal-content,
body[data-skin="chrome"] #tf-edit-modal .preview-modal-content,
body[data-skin="chrome"] .confirm-modal-content { height: auto !important; overflow-y: auto; }
body[data-skin="chrome"] #password-modal h3,
body[data-skin="chrome"] #move-modal h3,
body[data-skin="chrome"] #download-all-modal h3,
body[data-skin="chrome"] #tf-edit-modal h3 { margin-bottom: 18px !important; }
body[data-skin="chrome"] #download-all-modal .preview-modal-content { text-align: left !important; }
body[data-skin="chrome"] .confirm-modal-actions,
body[data-skin="chrome"] .metadata-actions { gap: 10px; }
body[data-skin="chrome"] .confirm-modal-actions button { border-radius: 999px !important; min-height: 42px; }
body[data-skin="chrome"] .share-progress-bar { height: 3px; background: #1d1d22; border-radius: 99px; }
body[data-skin="chrome"] .share-progress-fill { background: var(--chrome-light); box-shadow: 0 0 12px rgba(230, 232, 255, .6); }
body[data-skin="chrome"] #tf-import-modal .preview-modal-content h4 { text-transform: none; }

@media (max-width: 768px) {
  body[data-skin="chrome"] .preview-modal-content { max-width: calc(100vw - 24px) !important; border-radius: 20px !important; }
  body[data-skin="chrome"] .confirm-modal-content,
  body[data-skin="chrome"] #move-modal .preview-modal-content,
  body[data-skin="chrome"] #password-modal .preview-modal-content,
  body[data-skin="chrome"] #download-all-modal .preview-modal-content,
  body[data-skin="chrome"] #share-modal .preview-modal-content,
  body[data-skin="chrome"] #tf-import-modal .preview-modal-content,
  body[data-skin="chrome"] #tf-edit-modal .preview-modal-content { padding: 22px !important; }
}

/* ---------- Notes: clean editor, checkboxes, active formats ---------- */
body[data-skin="chrome"] #note-editor-content { outline: none; caret-color: var(--chrome-light); }
body[data-skin="chrome"] #note-editor-content b,
body[data-skin="chrome"] #note-editor-content strong { font-weight: 700; }
body[data-skin="chrome"] #note-editor-content ul { margin: 6px 0; padding-left: 22px; }
body[data-skin="chrome"] .note-editor-toolbar .note-btn-action.is-active { background: #f4f4f7; color: #050506; }
body[data-skin="chrome"] #note-editor-content .checkbox-wrapper { margin-right: 10px; vertical-align: -3px; }
body[data-skin="chrome"] #note-editor-content .checkbox-wrapper .checkmark {
  background: none; border: 1.5px solid #4a4a55; border-radius: 50%; box-shadow: none; transform: none; transition: background .2s, border-color .2s;
}
body[data-skin="chrome"] #note-editor-content .checkbox-wrapper .note-cb-container:hover .checkmark { transform: none; border-color: var(--text-secondary); }
body[data-skin="chrome"] #note-editor-content .checkbox-wrapper .note-cb-container input:checked ~ .checkmark {
  background: var(--chrome-light); border-color: var(--chrome-light); transform: none; box-shadow: 0 0 10px rgba(230, 232, 255, .45);
}
body[data-skin="chrome"] #note-editor-content .checkbox-wrapper .note-cb-container .checkmark:after { border-color: #050506; }

/* empty states: plain quiet text, no dashed box, no stray padding */
body[data-skin="chrome"] .empty-state { padding: 0; background: none; border: 0; border-radius: 0; text-align: left; font-size: 14px; color: var(--chrome-ink-3); }
body[data-skin="chrome"] #drop-list .empty-state,
body[data-skin="chrome"] #shares-list-ul .empty-state,
body[data-skin="chrome"] #notes-list-ul .empty-state { padding: 14px 0 !important; border: 0; border-top: 1px solid var(--border-color); border-radius: 0; }
body[data-skin="chrome"] .empty-state p { margin: 0 !important; font-size: 14px !important; color: var(--chrome-ink-3) !important; }
body[data-skin="chrome"] #note-editor-content .checkbox-wrapper .note-cb-container .checkmark:after {
  left: 50%; top: 50%; width: 4px; height: 8px; border-width: 0 2px 2px 0; transform: translate(-50%, -60%) rotate(45deg);
}
/* the editor scrolls, so it clips; give the checkbox glow room and keep the text aligned with the title */
body[data-skin="chrome"] #note-editor-content { padding-left: 14px; margin-left: -14px; padding-right: 14px; margin-right: -14px; }
body[data-skin="chrome"] #note-editor-content .checkbox-wrapper .note-cb-container input:checked ~ .checkmark { box-shadow: 0 0 8px rgba(230, 232, 255, .4); }

/* ---------- Files: list rows, selection, batch bar ---------- */
body[data-skin="chrome"] .file-cb-label { padding: 6px; margin-right: 6px; }
body[data-skin="chrome"] .file-cb-check { width: 18px; height: 18px; border: 1.5px solid #4a4a55; border-radius: 50%; background: none; }
body[data-skin="chrome"] .file-cb-label:hover .file-cb-check { border-color: var(--text-secondary); }
body[data-skin="chrome"] .file-cb-label input:checked + .file-cb-check { background: var(--chrome-light); border-color: var(--chrome-light); box-shadow: 0 0 8px rgba(230, 232, 255, .4); }
body[data-skin="chrome"] .file-cb-check:after { left: 50%; top: 50%; width: 4px; height: 8px; border-color: #050506; transform: translate(-50%, -60%) rotate(45deg); }
body[data-skin="chrome"] .file-item.selected { background: #0d0d10; border-color: var(--border-color); box-shadow: inset 2px 0 0 var(--chrome-light); }

/* icons: plain grey line icons, no tinted squares, no yellow */
body[data-skin="chrome"] .file-icon,
body[data-skin="chrome"] .file-item.folder-row .file-icon,
body[data-skin="chrome"] .file-item.folder-row:hover .file-icon,
body[data-skin="chrome"] .file-thumbnail-placeholder { background: none; border: 0; border-radius: 0; color: var(--text-secondary); }
body[data-skin="chrome"] .file-item:hover .file-icon,
body[data-skin="chrome"] .file-item.folder-row:hover .file-icon { color: var(--text-primary); }
body[data-skin="chrome"] .file-icon svg,
body[data-skin="chrome"] .file-thumbnail-placeholder svg { width: 18px; height: 18px; fill: none !important; stroke: currentColor !important; stroke-width: 1.6; }
body[data-skin="chrome"] .file-thumbnail-placeholder:has(.file-thumbnail-img) { border-radius: 8px; }
body[data-skin="chrome"] .file-meta { font-size: 13px; color: var(--chrome-ink-3); }

/* row actions: text-weight icon buttons, no boxes */
body[data-skin="chrome"] .file-item .btn-download,
body[data-skin="chrome"] .file-item .btn-delete,
body[data-skin="chrome"] .file-item .btn-more { width: 32px; height: 32px; border: 0; border-radius: 999px; background: none; color: var(--chrome-ink-3); }
body[data-skin="chrome"] .file-item .btn-download:hover,
body[data-skin="chrome"] .file-item .btn-more:hover { background: #18181c; border: 0; color: var(--text-primary); }
body[data-skin="chrome"] .file-item .btn-delete:hover { background: none; border: 0; color: #e5646a; }

/* batch bar: a quiet pill */
body[data-skin="chrome"] .batch-action-bar { margin-top: 14px; padding: 8px 10px 8px 22px; background: #0e0e10; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px #2a2a30; }
body[data-skin="chrome"] .batch-action-bar #batch-count { font-size: 14px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
body[data-skin="chrome"] .batch-actions { gap: 4px; }
body[data-skin="chrome"] .batch-actions button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: var(--text-secondary); }
body[data-skin="chrome"] .batch-actions button:hover { background: #18181c; color: var(--text-primary); }
body[data-skin="chrome"] .batch-actions button[style*="ef4444"] { color: #b4585d !important; }
body[data-skin="chrome"] .batch-actions button[style*="ef4444"]:hover { color: #e5646a !important; }

/* ---------- Upload queue and status messages ---------- */
body[data-skin="chrome"] .upload-action-bar { background: none; border: 0; border-top: 1px solid var(--border-color); border-radius: 0; padding: 14px 0 0; }
body[data-skin="chrome"] .upload-action-bar .btn-upload { height: 42px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #f4f4f7; color: #050506; }
body[data-skin="chrome"] .upload-action-bar .btn-upload:hover { background: #fff; }
body[data-skin="chrome"] .selected-file-name { font-size: 15px; font-weight: 600; }
body[data-skin="chrome"] .selected-file-size { font-size: 13px; color: var(--chrome-ink-3); }
body[data-skin="chrome"] .upload-file-row { padding: 12px 0; background: none; border: 0; border-top: 1px solid var(--border-color); border-radius: 0; }
body[data-skin="chrome"] .upload-file-row.done,
body[data-skin="chrome"] .upload-file-row.error { background: none; border: 0 !important; border-top: 1px solid var(--border-color) !important; }
body[data-skin="chrome"] .upload-file-row-main { font-size: 15px; }
body[data-skin="chrome"] .upload-file-row .file-status { font-size: 13px; font-weight: 600; color: var(--chrome-ink-3); }
body[data-skin="chrome"] .upload-file-row.done .file-status { color: var(--chrome-light); }
body[data-skin="chrome"] .upload-file-row.error .file-status { color: #b4585d; }
body[data-skin="chrome"] .upload-remove-btn { width: 28px; height: 28px; border: 0; border-radius: 999px; color: var(--chrome-ink-3); }
body[data-skin="chrome"] .upload-remove-btn:hover { background: #18181c; border: 0; color: var(--text-primary); }
body[data-skin="chrome"] .upload-row-progress { height: 2px; background: #1d1d22; border-radius: 99px; }
body[data-skin="chrome"] .upload-row-progress-fill { background: var(--chrome-light); box-shadow: 0 0 10px rgba(230, 232, 255, .6); border-radius: 99px; }

body[data-skin="chrome"] .status-msg { padding: 8px 0; margin-top: 8px; background: none !important; border: 0 !important; border-radius: 0; font-size: 14px; font-weight: 600; color: var(--text-secondary) !important; }
body[data-skin="chrome"] .status-msg.success { color: var(--chrome-light) !important; }
body[data-skin="chrome"] .status-msg.error { color: #b4585d !important; }

/* ---------- Notes editor v2: rows, to-dos, no rich text ---------- */
body[data-skin="chrome"] .vault-brand { user-select: none; -webkit-user-select: none; cursor: default; }
body[data-skin="chrome"] #note-editor-content {
  flex: 1 1 auto !important; min-height: 0 !important; max-height: none !important; height: auto !important; overflow-y: auto;
  margin: 0 -16px; padding: 14px 16px 16px; font-size: 17px; line-height: 1.7;
}
body[data-skin="chrome"] .nl { display: flex; align-items: flex-start; gap: 12px; }
body[data-skin="chrome"] .nl-text { flex: 1; min-width: 0; min-height: 1.7em; outline: none; white-space: pre-wrap; overflow-wrap: anywhere; caret-color: var(--chrome-light); }
body[data-skin="chrome"] .nl-cb { display: none; flex: none; width: 20px; height: 20px; margin-top: 5px; padding: 0; position: relative; border-radius: 50%; border: 1.5px solid #4a4a55; background: none; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
body[data-skin="chrome"] .nl[data-t="todo"] .nl-cb { display: block; }
body[data-skin="chrome"] .nl-cb:hover { border-color: var(--text-secondary); }
body[data-skin="chrome"] .nl[data-d="1"] .nl-cb { background: var(--chrome-light); border-color: var(--chrome-light); box-shadow: 0 0 12px rgba(230, 232, 255, .55); }
body[data-skin="chrome"] .nl[data-d="1"] .nl-cb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 9px; border: solid #050506; border-width: 0 2px 2px 0; transform: translate(-50%, -62%) rotate(45deg);
}
body[data-skin="chrome"] .nl[data-d="1"] .nl-text { color: var(--chrome-ink-3); text-decoration: line-through; text-decoration-color: #3a3a42; }
body[data-skin="chrome"] #note-editor-content[data-empty] .nl-text:empty::before { content: "Write something. Type [] for a to-do."; color: var(--chrome-ink-3); pointer-events: none; }
@media (max-width: 768px) {
  body[data-skin="chrome"] #note-editor-content { font-size: 17px; }
}

/* notes list: title and date share the first row so the date is always readable */
body[data-skin="chrome"] .note-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; }
body[data-skin="chrome"] .note-item-title { grid-column: 1; grid-row: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-skin="chrome"] .note-item-date { grid-column: 2; grid-row: 1; margin: 0; font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
body[data-skin="chrome"] .note-item-preview { grid-column: 1 / -1; grid-row: 2; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Gallery view and header actions ---------- */
body[data-skin="chrome"] .ios-gallery-grid { gap: 10px; }
body[data-skin="chrome"] .gallery-item { border: 0; border-radius: 14px; background: #0e0e10; box-shadow: inset 0 0 0 1px var(--border-color); transition: transform .4s var(--chrome-out), box-shadow .3s; }
body[data-skin="chrome"] .gallery-item:hover { transform: scale(1.02); box-shadow: inset 0 0 0 1px #3a3a42; }
body[data-skin="chrome"] .gallery-thumb svg { color: var(--text-secondary); }
body[data-skin="chrome"] .gallery-folder-item { background: #0e0e10; }
body[data-skin="chrome"] .gallery-folder-thumb svg { color: var(--text-secondary); fill: none; stroke: currentColor; stroke-width: 1.6; }
body[data-skin="chrome"] .gallery-folder-label { font-size: 14px; font-weight: 600; text-align: left; }
body[data-skin="chrome"] .gallery-video-badge { background: rgba(5, 5, 6, .8); backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 999px; padding: 3px 8px; font-size: 11px; }
body[data-skin="chrome"] .active-gallery-btn { background: #f4f4f7 !important; border-color: #f4f4f7 !important; color: #050506 !important; }

/* Quick Unlock in the header: a quiet text action */
body[data-skin="chrome"] .passkey-setup-btn { font-size: 14px; font-weight: 600; color: var(--chrome-ink-3); }
body[data-skin="chrome"] .passkey-setup-btn:hover { color: var(--text-primary); background: none; }

/* ---------- Preview stage: image-colour glow, blurred controls, mono filename ---------- */
body[data-skin="chrome"] #preview-modal::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(var(--preview-glow, 0, 0, 0), .38), transparent 70%);
  opacity: 0; transition: opacity .6s var(--chrome-out);
}
body[data-skin="chrome"] #preview-modal[data-preview-kind="image"]::before { opacity: 1; }
body[data-skin="chrome"] #preview-modal.preview-chrome-hidden::before { opacity: 0; }
body[data-skin="chrome"] #preview-modal .preview-modal-content { position: relative; }
body[data-skin="chrome"] #preview-modal[data-preview-kind="image"] > .preview-modal-content { background: transparent !important; box-shadow: none !important; }
body[data-skin="chrome"] #preview-modal .preview-nav-btn,
body[data-skin="chrome"] #preview-modal .preview-close-btn {
  background: rgba(24, 24, 28, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
body[data-skin="chrome"] #preview-title {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; letter-spacing: .02em; color: var(--text-secondary);
}

/* ---------- Tabs: sliding light, index numbers, softer content entrance ---------- */
.tab-indicator { display: none; }
@media (min-width: 1024px) {
  body[data-skin="chrome"] .vault-tabs { counter-reset: tab; }
  body[data-skin="chrome"] .vault-tabs .tab-btn.active::after { display: none; }
  body[data-skin="chrome"] .vault-tabs .tab-btn::before {
    counter-increment: tab; content: "0" counter(tab);
    position: absolute; left: 50%; top: -5px; transform: translateX(-50%);
    font: 500 9px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; color: var(--chrome-ink-3);
    opacity: 0; transition: opacity .3s;
  }
  body[data-skin="chrome"] .vault-tabs .tab-btn:hover::before,
  body[data-skin="chrome"] .vault-tabs .tab-btn.active::before { opacity: 1; }
  body[data-skin="chrome"] .vault-tabs .tab-btn { transition: color .3s; }
  body[data-skin="chrome"] .vault-tabs .tab-btn.active { text-shadow: 0 0 18px rgba(230, 232, 255, .35); }
  body[data-skin="chrome"] .vault-tabs .tab-indicator {
    display: block; position: absolute; left: 0; bottom: 4px; height: 2px; border-radius: 2px; pointer-events: none;
    background: var(--chrome-light); box-shadow: 0 0 12px rgba(230, 232, 255, .7);
    opacity: 0; transition: transform .55s var(--chrome-out), width .55s var(--chrome-out), opacity .3s;
  }
  body[data-skin="chrome"] .vault-tabs .tab-indicator.ready { opacity: 1; }
}
body[data-skin="chrome"] .vault-tab-enter { animation-duration: 480ms; animation-timing-function: var(--chrome-out); }

/* quick unlock: a small live dot */
body[data-skin="chrome"] .passkey-setup-btn.quick-unlock-on::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; flex: none;
  background: var(--chrome-fire); box-shadow: 0 0 8px var(--chrome-fire); animation: quickPulse 2.4s ease-in-out infinite;
}
@keyframes quickPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* upload zone: a slow light drifting inside */
body[data-skin="chrome"].vault-active #files-tab-content .drop-zone { position: relative; overflow: hidden; }
body[data-skin="chrome"].vault-active #files-tab-content .drop-zone::before {
  content: ""; position: absolute; width: 60%; height: 80%; left: -10%; top: 10%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(230, 232, 255, .07), transparent);
  animation: dropDrift 18s ease-in-out infinite alternate;
}
body[data-skin="chrome"].vault-active #files-tab-content .drop-zone > * { position: relative; }
@keyframes dropDrift { to { transform: translate(75%, 10%); } }
@media (prefers-reduced-motion: reduce) {
  body[data-skin="chrome"] .passkey-setup-btn.quick-unlock-on::before,
  body[data-skin="chrome"].vault-active #files-tab-content .drop-zone::before { animation: none; }
}

/* sort control next to the search field */
.file-search-row { display: flex; gap: 10px; align-items: stretch; }
.file-search-row .file-search-bar { flex: 1; min-width: 0; }
body[data-skin="chrome"] .file-sort-select {
  flex: none; padding: 0 34px 0 16px; border-radius: 999px; background: #121214 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d8d96' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid #24242a; color: var(--text-secondary); font-size: 13px; appearance: none; -webkit-appearance: none; cursor: pointer;
}
body[data-skin="chrome"] .file-sort-select:hover, body[data-skin="chrome"] .file-sort-select:focus { border-color: #4a4a55; outline: none; color: var(--text-primary); }
@media (max-width: 600px) { .file-search-row { flex-direction: column; } .file-sort-select { height: 40px; } }

/* ---------- Drag & drop ---------- */
body[data-skin="chrome"] .file-item.dragging { opacity: .4; background: #0d0d10; border: 0; border-top: 1px solid var(--border-color); transform: none; }
body[data-skin="chrome"] .file-item.drag-over-above { border-top: 2px solid var(--chrome-light) !important; box-shadow: 0 -6px 14px -8px rgba(230, 232, 255, .6); }
body[data-skin="chrome"] .file-item.drag-over-below { border-bottom: 2px solid var(--chrome-light) !important; box-shadow: 0 6px 14px -8px rgba(230, 232, 255, .6); }
body[data-skin="chrome"] .file-item.drop-into { background: rgba(230, 232, 255, .06); box-shadow: inset 0 0 0 1px var(--chrome-light), 0 0 24px rgba(230, 232, 255, .12); border-radius: 12px; }
body[data-skin="chrome"] .breadcrumb-item.drop-into { color: var(--chrome-light); background: rgba(230, 232, 255, .1); box-shadow: 0 0 0 1px var(--chrome-light); border-radius: 6px; }
.drag-count-badge {
  position: fixed; top: -100px; left: -100px; padding: 8px 14px; border-radius: 999px;
  background: #f4f4f7; color: #050506; font: 600 13px "Inter Tight", system-ui, sans-serif;
}
/* files dragged in from the OS: the whole tab lights up */
body[data-skin="chrome"] #files-tab-content.os-drag-active .files-section {
  border-radius: 18px; box-shadow: inset 0 0 0 1px var(--chrome-light), 0 0 40px rgba(230, 232, 255, .1);
  background: rgba(230, 232, 255, .03);
}

/* ---------- Password entry modal ---------- */
body[data-skin="chrome"] .pwd-form { display: flex; flex-direction: column; gap: 18px; }
body[data-skin="chrome"] .pwd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
body[data-skin="chrome"] .pwd-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
body[data-skin="chrome"] #password-modal .pwd-field label {
  display: flex; justify-content: space-between; align-items: baseline;
  font: 500 11px ui-monospace, "SF Mono", Menlo, monospace !important; letter-spacing: .08em !important;
  text-transform: uppercase !important; color: var(--chrome-ink-3) !important;
}
body[data-skin="chrome"] #password-modal .pwd-field label span { text-transform: none; letter-spacing: .02em; opacity: .7; }
body[data-skin="chrome"] #password-modal .input-field { margin: 0; width: 100%; box-sizing: border-box; height: 46px; padding: 0 16px; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
body[data-skin="chrome"] #password-modal textarea.input-field { height: auto; min-height: 84px; padding: 12px 16px; border-radius: 18px; resize: vertical; }
body[data-skin="chrome"] #password-modal .input-field:focus { border-color: #5a5a66 !important; box-shadow: 0 0 0 3px rgba(230, 232, 255, .07) !important; }
body[data-skin="chrome"] #password-modal .pwd-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; letter-spacing: .02em; }
body[data-skin="chrome"] .pwd-input-row { display: flex; gap: 10px; }
body[data-skin="chrome"] .pwd-input-wrap { position: relative; flex: 1; min-width: 0; }
body[data-skin="chrome"] #password-modal .pwd-input-wrap .input-field { padding-right: 46px; }
body[data-skin="chrome"] .pwd-eye-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; color: var(--chrome-ink-3); cursor: pointer; display: flex; transition: color .2s; }
body[data-skin="chrome"] .pwd-eye-btn:hover { color: var(--text-primary); }
body[data-skin="chrome"] .pwd-generate-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px;
  background: #18181c; border: 1px solid #2a2a30; color: var(--text-primary); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s;
}
body[data-skin="chrome"] .pwd-generate-btn svg { width: 15px; height: 15px; transition: transform .4s var(--chrome-out); }
body[data-skin="chrome"] .pwd-generate-btn:hover { background: #202026; border-color: #3a3a42; }
body[data-skin="chrome"] .pwd-generate-btn:hover svg { transform: rotate(180deg); }
body[data-skin="chrome"] .pwd-strength { display: flex; align-items: center; gap: 12px; min-height: 14px; }
body[data-skin="chrome"] .pwd-strength-bar { flex: 1; height: 3px; border-radius: 3px; background: #1d1d22; overflow: hidden; }
body[data-skin="chrome"] .pwd-strength-bar span { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .35s var(--chrome-out), background .35s; }
body[data-skin="chrome"] #pwd-strength-label { font: 500 11px ui-monospace, "SF Mono", Menlo, monospace; color: var(--text-secondary); min-width: 96px; text-align: right; }
body[data-skin="chrome"] .pwd-generator { display: flex; align-items: center; gap: 22px; padding: 2px 4px 0; color: var(--text-secondary); font-size: 13px; }
body[data-skin="chrome"] #password-modal .pwd-generator label { display: flex; align-items: center; gap: 10px; font: 500 13px "Inter Tight", system-ui, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--text-secondary) !important; justify-content: flex-start; }
body[data-skin="chrome"] .pwd-gen-length { flex: 1; }
body[data-skin="chrome"] .pwd-gen-length b { color: var(--text-primary); font-weight: 600; min-width: 20px; }
body[data-skin="chrome"] .pwd-gen-length input[type="range"] { flex: 1; max-width: 220px; accent-color: var(--chrome-light); }
body[data-skin="chrome"] .pwd-actions-row { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--border-color); }
body[data-skin="chrome"] .pwd-cancel-btn { height: 46px; padding: 0 22px; border-radius: 999px; background: none; border: 0; color: var(--text-secondary); font-size: 14px; font-weight: 600; cursor: pointer; transition: color .2s; }
body[data-skin="chrome"] .pwd-cancel-btn:hover { color: var(--text-primary); }
body[data-skin="chrome"] .pwd-save-btn { height: 46px; padding: 0 28px; border-radius: 999px; background: #f4f4f7; border: 0; color: #050506; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .2s var(--chrome-out), box-shadow .2s; }
body[data-skin="chrome"] .pwd-save-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(230, 232, 255, .18); }
@media (max-width: 600px) { body[data-skin="chrome"] .pwd-row { grid-template-columns: 1fr; } body[data-skin="chrome"] .pwd-generate-btn { padding: 0 14px; } }

/* ---------- Moments: landed upload row, vault closing ---------- */
body[data-skin="chrome"] .row-landed { animation: row-landed 1.8s var(--chrome-out); }
@keyframes row-landed {
  0% { background: rgba(230, 232, 255, .14); box-shadow: inset 2px 0 0 var(--chrome-light), 0 0 24px rgba(230, 232, 255, .18); }
  100% { background: transparent; box-shadow: inset 2px 0 0 rgba(230, 232, 255, 0), 0 0 0 rgba(230, 232, 255, 0); }
}
body.vault-closing .vault-panel { opacity: 0; filter: blur(8px); transform: scale(.985); transition: opacity .4s ease, filter .4s ease, transform .4s var(--chrome-out); }

/* ---------- Light rails in the side margins (wide screens only) ---------- */
#chrome-rails { display: none; }
@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) {
  body[data-skin="chrome"].vault-active #chrome-rails { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  body[data-skin="chrome"].vault-active .container { position: relative; z-index: 1; }
  body[data-skin="chrome"] .chrome-rail {
    position: absolute; width: 3px; border-radius: 3px; opacity: .6; will-change: transform;
    background:
      linear-gradient(180deg, transparent, #fff 50%, transparent) 0 -60% / 100% 28% no-repeat,
      linear-gradient(180deg, rgba(230, 232, 255, 0), rgba(230, 232, 255, .85) 30%, rgba(230, 232, 255, .85) 70%, rgba(230, 232, 255, 0));
    box-shadow: 0 0 22px rgba(230, 232, 255, .45), 0 0 60px rgba(230, 232, 255, .18);
    animation: rail-scan var(--scan, 9s) linear infinite, rail-float var(--float, 16s) ease-in-out infinite alternate;
    animation-delay: var(--delay, 0s), var(--delay, 0s);
  }
  body[data-skin="chrome"] .rail-l { left: max(var(--slot, 10px), calc((100vw - 1760px) / 2 - var(--off))); }
  body[data-skin="chrome"] .rail-r { right: max(var(--slot, 10px), calc((100vw - 1760px) / 2 - var(--off))); }
  body[data-skin="chrome"] .chrome-rail:nth-child(3n + 2) { opacity: .4; }
  body[data-skin="chrome"] .chrome-rail:nth-child(3n) { opacity: .24; width: 2px; }
  #chrome-rails.pulse .chrome-rail { animation: rail-scan var(--scan, 9s) linear infinite, rail-float var(--float, 16s) ease-in-out infinite alternate, rail-pulse 1.1s var(--chrome-out); }
}
@keyframes rail-scan { from { background-position: 0 -60%, 0 0; } to { background-position: 0 160%, 0 0; } }
@keyframes rail-float { from { translate: 0 -16vh; } to { translate: 0 16vh; } }
@keyframes rail-pulse { 0% { filter: brightness(2.8); } 100% { filter: brightness(1); } }
