/* ============================================================
   LOGICSDEV FREE TOOLS  (loaded only on tool pages)
   Uses the theme's own colours, so it follows the Customizer:
   glass look by default, raised/pressed surfaces with Neumorphism.
   ============================================================ */

.ldt-section {
  --t-accent: var(--orange, #6a4bc9);
  --t-accent-2: var(--orange-bright, #5a3db5);
  --t-ink: var(--white, #1b1530);
  --t-soft: var(--white-soft, rgba(27, 21, 48, .78));
  --t-line: var(--border, rgba(0, 0, 0, .1));
  --t-good: #128a52;
  --t-bad: #c23a3a;
  --t-radius: var(--glass-radius, 22px);
  --t-surface: var(--glass, rgba(255, 255, 255, .62));
  --t-out: 0 18px 50px rgba(40, 30, 90, .1);
  --t-in: inset 0 1px 3px rgba(0, 0, 0, .08);
  --t-field: rgba(255, 255, 255, .7);
  position: relative;
  padding: 64px 24px 90px;
  color: var(--t-ink);
  font-family: var(--font-body, inherit);
}
body.ld-neu .ldt-section {
  --t-radius: var(--neu-radius, 26px);
  --t-surface: var(--neu-base);
  --t-out: var(--neu-out-lg);
  --t-in: var(--neu-in);
  --t-field: var(--neu-base);
}

/* ── layout ─────────────────────────────────────────────────── */
.ldt { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.ldt-main { display: grid; gap: 24px; min-width: 0; }
@media (max-width: 960px) { .ldt { grid-template-columns: 1fr; } .ldt-settings { order: -1; } }

.ldt-card {
  background: var(--t-surface);
  border: 1px solid var(--glass-edge, rgba(255, 255, 255, .7));
  border-radius: var(--t-radius);
  box-shadow: var(--t-out);
  backdrop-filter: blur(var(--glass-blur, 18px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 18px));
  padding: 24px;
  min-width: 0;
}
body.ld-neu .ldt-card { border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ── buttons ────────────────────────────────────────────────── */
.ldt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border-radius: 99px; border: 0; cursor: pointer;
  font: 600 14.5px/1 var(--font-body, inherit); text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
}
.ldt-btn--primary { background: var(--t-accent); color: #fff; box-shadow: 0 8px 22px var(--orange-glow, rgba(106, 75, 201, .3)); }
.ldt-btn--primary:hover { background: var(--t-accent-2); color: #fff; transform: translateY(-1px); }
.ldt-btn--ghost { background: var(--t-field); color: var(--t-accent); box-shadow: inset 0 0 0 1px var(--t-line); }
body.ld-neu .ldt-btn--ghost { box-shadow: var(--neu-out-sm); }
.ldt-btn--ghost:hover { color: var(--t-accent-2); }
.ldt-btn:disabled, .ldt-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; pointer-events: none; }
.ldt-btn:focus-visible, .ldt-drop:focus-visible, .ldt-mode button:focus-visible, .ldt-x:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 3px; }
.ldt-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--t-soft); font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.ldt-x:hover { color: var(--t-bad); background: rgba(194, 58, 58, .08); }

/* ── drop zone ──────────────────────────────────────────────── */
.ldt-drop { text-align: center; padding: 38px 24px 30px; cursor: pointer; outline-offset: 4px; transition: transform .2s, box-shadow .2s; }
.ldt-drop::after { content: ""; position: absolute; inset: 12px; border: 2px dashed var(--t-line); border-radius: calc(var(--t-radius) - 8px); pointer-events: none; transition: border-color .2s; }
.ldt-drop { position: relative; }
.ldt-drop.is-over::after, .ldt-drop:hover::after { border-color: var(--t-accent); }
.ldt-drop.is-over { transform: scale(1.01); }
.ldt-drop__icon { width: 62px; height: 62px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 18px; color: var(--t-accent); background: var(--orange-dim, rgba(106, 75, 201, .1)); }
body.ld-neu .ldt-drop__icon { background: var(--neu-base); box-shadow: var(--neu-out); }
.ldt-drop__title { font-family: var(--font-head, inherit); font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 4px; color: var(--t-ink); text-transform: none; letter-spacing: 0; }
.ldt-drop__or { margin: 4px 0 12px; color: var(--t-soft); font-size: 14px; }
.ldt-drop__hint { margin: 14px 0 12px; font-size: 13.5px; color: var(--t-soft); }
.ldt-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ldt-chips li { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 8px; color: var(--t-soft); background: var(--t-field); box-shadow: inset 0 0 0 1px var(--t-line); }
body.ld-neu .ldt-chips li { box-shadow: var(--neu-in-sm); }

/* ── settings ───────────────────────────────────────────────── */
.ldt-settings { position: sticky; top: 100px; display: grid; gap: 18px; }
@media (max-width: 960px) { .ldt-settings { position: static; } }
.ldt-settings__title { font-family: var(--font-head, inherit); font-size: 18px; margin: 0; color: var(--t-ink); text-transform: none; letter-spacing: 0; }
.ldt-field { display: grid; gap: 7px; font-size: 14px; }
.ldt-field small, .ldt-settings small { color: var(--t-soft); font-size: 12.5px; line-height: 1.45; }
.ldt-label { font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--t-soft); }
.ldt-settings select, .ldt-settings input[type="number"] {
  width: 100%; min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--t-line);
  background: var(--t-field); color: var(--t-ink); font: 500 14.5px var(--font-body, inherit);
}
body.ld-neu .ldt-settings select, body.ld-neu .ldt-settings input[type="number"] { border: 0; box-shadow: var(--neu-in-sm); }
.ldt-settings select:focus-visible, .ldt-settings input[type="number"]:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 1px; }
.ldt-settings input:focus, .ldt-settings select:focus { outline: none; }
.ldt-range input { outline: none; border: 0; box-shadow: none; background: transparent; }
.ldt-range input:focus, .ldt-range input:focus-visible, .ldt-range input:active { outline: none; border: 0; box-shadow: none; }
.ldt-range input::-moz-focus-outer { border: 0; }
.ldt-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.ldt-inline > span:first-child { flex: 1 1 100%; font-weight: 600; }
.ldt-inline input[type="number"] { width: 120px; flex: 0 0 auto; }
.ldt-settings input[type="color"] { width: 46px; height: 34px; border: 1px solid var(--t-line); border-radius: 10px; padding: 2px; background: var(--t-field); cursor: pointer; }
.ldt-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--t-field); box-shadow: inset 0 0 0 1px var(--t-line); }
body.ld-neu .ldt-mode { box-shadow: var(--neu-in-sm); }
.ldt-mode button { min-height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--t-soft); font: 600 13.5px var(--font-body, inherit); cursor: pointer; }
.ldt-mode button.is-on { background: var(--t-accent); color: #fff; box-shadow: 0 4px 12px var(--orange-glow, rgba(106, 75, 201, .3)); }
.ldt-range { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.ldt-range b { color: var(--t-accent); }
.ldt-range input { width: 100%; accent-color: var(--t-accent); }
.ldt-show-smart, .ldt-show-custom, .ldt-show-target { display: none !important; }
.mode-smart .ldt-show-smart { display: block !important; }
.mode-custom .ldt-show-custom { display: grid !important; }
.mode-target .ldt-show-target { display: flex !important; }
.fmt-fixed .ldt-only-compress { display: none; }
.ldt-privacy { display: flex; gap: 8px; margin: 2px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 12.5px; line-height: 1.5; color: var(--t-soft); background: rgba(18, 138, 82, .07); }
.ldt-privacy svg { flex: none; color: var(--t-good); margin-top: 1px; }

/* ── results ────────────────────────────────────────────────── */
.ldt-results__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ldt-summary { margin: 0; font-size: 14.5px; color: var(--t-soft); }
.ldt-results__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ldt-empty { margin: 16px 0 0; padding: 22px; text-align: center; font-size: 14px; color: var(--t-soft); border-radius: 16px; background: var(--t-field); box-shadow: inset 0 0 0 1px var(--t-line); }
body.ld-neu .ldt-empty { box-shadow: var(--neu-in-sm); }
.ldt-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ldt-list:empty { display: none; }
.ldt-item {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 10px 12px; border-radius: 16px; background: var(--t-field); box-shadow: inset 0 0 0 1px var(--t-line);
}
body.ld-neu .ldt-item { box-shadow: var(--neu-out-sm); }
.ldt-thumb { width: 58px; height: 58px; border-radius: 12px; overflow: hidden; background: repeating-conic-gradient(#e7e4ef 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.ldt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ldt-info { display: grid; gap: 3px; min-width: 0; }
.ldt-name { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--t-ink); }
.ldt-meta { font-size: 12.5px; color: var(--t-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ldt-bar { display: none; height: 4px; border-radius: 99px; overflow: hidden; background: var(--t-line); margin-top: 3px; }
.ldt-bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--t-accent); animation: ldtBar 1.1s ease-in-out infinite; }
.is-work .ldt-bar, .is-wait .ldt-bar { display: block; }
.is-wait .ldt-bar i { animation: none; width: 0; }
@keyframes ldtBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.ldt-save { display: grid; justify-items: end; gap: 2px; font-size: 13px; color: var(--t-soft); text-align: right; }
.ldt-save.is-err { color: var(--t-bad); max-width: 240px; justify-items: start; text-align: left; }
.ldt-size { white-space: nowrap; }
.ldt-pct { color: var(--t-good); font-size: 15px; }
.ldt-pct.is-up { color: var(--t-soft); }
.ldt-actions { display: flex; align-items: center; gap: 6px; }
.ldt-actions .ldt-btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.ldt-item:not(.is-done) .ldt-cmpbtn { display: none; }
.ldt-section [hidden], .ldt-modal[hidden] { display: none !important; }
@media (max-width: 640px) {
  .ldt-section { padding: 40px 14px 60px; }
  .ldt-card { padding: 18px; }
  .ldt-item { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; }
  .ldt-thumb { width: 50px; height: 50px; }
  .ldt-save { grid-column: 2 / 4; grid-row: 2; justify-items: start; text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .ldt-actions { grid-column: 1 / 4; grid-row: 3; }
  .ldt-actions .ldt-btn { flex: 1; }
  .ldt-x { order: 3; }
}

/* ── toast ──────────────────────────────────────────────────── */
.ldt-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000; max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px; background: #1b1530; color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 14px 40px rgba(0, 0, 0, .25); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .25s, transform .25s; }
.ldt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ldt-toast.is-bad { background: #7a1f1f; }

/* ── compare (before / after) ───────────────────────────────── */
html.ldt-noscroll { overflow: hidden; }
.ldt-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(15, 10, 35, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ldt-modal[hidden] { display: none; }
.ldt-modal__box { width: min(1100px, 100%); max-height: calc(100vh - 32px); display: grid; grid-template-rows: auto minmax(0, 1fr); background: #fff; color: #1b1530; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.ldt-modal__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 20px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.ldt-modal__head b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.ldt-modal__head .ldt-btn { min-height: 34px; font-size: 13px; }
.ldt-cmp { position: relative; overflow: auto; min-height: 0; background: repeating-conic-gradient(#ece9f3 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.ldt-cmp__stage { position: relative; margin: 0 auto; height: min(70vh, 720px); }
.ldt-cmp__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.ldt-cmp-after { clip-path: inset(0 0 0 var(--split, 50%)); }
.ldt-cmp__line { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; }
.ldt-cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ldt-cmp__tag { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 99px; background: rgba(20, 15, 40, .72); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.ldt-cmp__tag.is-r { left: auto; right: 12px; background: var(--t-accent, #6a4bc9); }
.ldt-modal.is-zoom .ldt-cmp__stage { width: var(--zw, auto); height: var(--zh, auto); }
.ldt-modal.is-zoom .ldt-cmp-range { width: var(--zw, 100%); height: var(--zh, 100%); position: absolute; }
.ldt-modal.is-zoom .ldt-cmp__tag { position: sticky; }

/* ── tools list page ────────────────────────────────────────── */
.ldt-hub { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ldt-hub__card { display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--t-ink); transition: transform .2s; }
a.ldt-hub__card:hover { transform: translateY(-3px); }
.ldt-hub__card h2 { font-family: var(--font-head, inherit); font-size: 20px; margin: 4px 0 0; color: var(--t-ink); text-transform: none; letter-spacing: 0; }
.ldt-hub__card p { margin: 0; color: var(--t-soft); font-size: 14.5px; line-height: 1.6; }
.ldt-hub__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--t-accent); background: var(--orange-dim, rgba(106, 75, 201, .1)); }
body.ld-neu .ldt-hub__icon { background: var(--neu-base); box-shadow: var(--neu-out); }
.ldt-hub__icon svg { width: 22px; height: 22px; }
.ldt-hub__go { color: var(--t-accent); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.ldt-hub__card.is-soon { opacity: .85; }

.ldt-noscript { grid-column: 1 / -1; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .ldt-bar i { animation: none; width: 100%; opacity: .5; }
  .ldt-btn, .ldt-drop, .ldt-toast { transition: none; }
}

/* ── remove buttons ─────────────────────────────────────────── */
.ldt-rm { color: var(--t-soft); }
.ldt-rm:hover, .ldt-clear:hover { color: var(--t-bad); }
.ldt-clear svg, .ldt-rm svg { flex: none; }
@media (max-width: 1100px) and (min-width: 641px) { .ldt-rm span { display: none; } .ldt-rm { padding: 0 11px; } }

/* ── features strip under the tool ──────────────────────────── */
.ldt-features { max-width: 1180px; margin: 24px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .ldt-features { grid-template-columns: 1fr; } }
.ldt-features__col { display: grid; gap: 12px; align-content: start; }
.ldt-features__title { font-family: var(--font-head, inherit); font-size: 15px; margin: 0; color: var(--t-ink); text-transform: none; letter-spacing: 0; }
.ldt-features__title:not(:first-child) { margin-top: 6px; }
.ldt-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ldt-checks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--t-soft); }
.ldt-checks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--t-accent); border-bottom: 2px solid var(--t-accent); transform: rotate(-45deg); }
.ldt-features .ldt-chips { justify-content: flex-start; }

/* ── share button (inc/tools.php → ld_tool_share) ───────────── */
.ld-share { position: relative; display: inline-flex; margin: 22px 0 4px; }
body.ld-hero-center .ld-page-hero .ld-share { display: flex; justify-content: center; }
.ldt-features .ld-share { margin: 0; }
.ld-share__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; border-radius: 99px; cursor: pointer;
  font: 600 14px/1 var(--font-body, inherit); color: var(--orange, #6a4bc9);
  background: var(--glass, rgba(255, 255, 255, .7)); border: 1px solid var(--glass-edge, rgba(255, 255, 255, .8));
  box-shadow: 0 8px 22px rgba(40, 30, 90, .08); transition: transform .15s, box-shadow .2s;
}
body.ld-neu .ld-share__btn { background: var(--neu-base); border: 0; box-shadow: var(--neu-out); }
.ld-share__btn:hover { transform: translateY(-1px); }
.ld-share.is-open .ld-share__btn { box-shadow: inset 0 0 0 2px var(--orange, #6a4bc9); }
body.ld-neu .ld-share.is-open .ld-share__btn { box-shadow: var(--neu-in-sm); }
.ld-share__btn:focus-visible, .ld-share__item:focus-visible { outline: 2px solid var(--orange, #6a4bc9); outline-offset: 3px; }
.ld-share__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 60;
  width: 240px; padding: 8px; display: grid; gap: 2px; text-align: left;
  background: #fff; border-radius: 16px; box-shadow: 0 22px 60px rgba(30, 20, 70, .22), 0 0 0 1px rgba(0, 0, 0, .05);
  animation: ldShareIn .18s ease-out;
}
.ld-share__menu[hidden] { display: none; }
@keyframes ldShareIn { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ld-share__item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; color: #1b1530; font: 500 14px var(--font-body, inherit); text-decoration: none; cursor: pointer;
}
.ld-share__item:hover { background: rgba(106, 75, 201, .08); color: #1b1530; }
.ld-share__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #8a84a3; }
.ld-share__item--whatsapp .ld-share__dot { background: #25d366; }
.ld-share__item--facebook .ld-share__dot { background: #1877f2; }
.ld-share__item--x .ld-share__dot { background: #111; }
.ld-share__item--linkedin .ld-share__dot { background: #0a66c2; }
.ld-share__item--telegram .ld-share__dot { background: #29a9eb; }
.ld-share__item--reddit .ld-share__dot { background: #ff4500; }
.ld-share__item--email .ld-share__dot { background: var(--orange, #6a4bc9); }
.ld-share__copy { border-top: 1px solid rgba(0, 0, 0, .06); border-radius: 0 0 10px 10px; margin-top: 4px; }
.ld-share.is-copied .ld-share__copy { color: #128a52; }
.ld-share.is-copied .ld-share__copy .ld-share__dot { background: #128a52; }
/* In the top banner the menu opens inside the page flow (the banner clips anything that sticks out) */
.ld-page-hero .ld-share { flex-direction: column; align-items: center; }
body:not(.ld-hero-center) .ld-page-hero .ld-share { align-items: flex-start; }
.ld-page-hero .ld-share__menu {
  position: static; transform: none; margin-top: 12px; width: min(460px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr)); animation: ldShareDown .2s ease-out;
}
.ld-page-hero .ld-share__copy { grid-column: 1 / -1; }
@keyframes ldShareDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Phones: top buttons side by side, item buttons always inside their box */
@media (max-width: 640px) {
  .ldt-results__head { display: grid; gap: 12px; }
  .ldt-results__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .ldt-results__btns .ldt-btn { min-width: 0; padding: 0 10px; font-size: 13.5px; }
  .ldt-item { padding: 12px; }
  .ldt-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-width: 0; }
  .ldt-actions .ldt-btn { min-width: 0; width: 100%; padding: 0 6px; font-size: 13px; gap: 5px; }
  .ldt-actions .ldt-btn svg { width: 13px; height: 13px; }
  .ldt-item:not(.is-done) .ldt-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .ldt-actions .ldt-rm span { display: none; }
  .ldt-card { padding: 14px; }
  .ldt-item { padding: 10px; }
  .ldt-actions { gap: 4px; }
  .ldt-actions .ldt-btn { padding: 0 4px; font-size: 12px; }
  .ldt-results__btns .ldt-btn { font-size: 12.5px; }
}

/* ── rename ("Save as: name.webp ✎") ────────────────────────── */
.ldt-saveas { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; overflow: hidden; font-size: 12.5px; color: var(--t-soft); }
.ldt-saveas:empty { display: none; }
.ldt-saveas__label { flex: none; }
.ldt-rename {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 3px 8px; border-radius: 8px;
  border: 1px dashed var(--t-line); background: transparent; color: var(--t-accent); font: 600 12.5px var(--font-body, inherit); cursor: pointer;
}
.ldt-rename:hover { border-color: var(--t-accent); background: var(--orange-dim, rgba(106, 75, 201, .08)); }
.ldt-rename:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }
.ldt-rename__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ldt-rename svg { flex: none; }
.ldt-rename-input {
  flex: 1 1 auto; min-width: 0; width: 100%; height: 30px; padding: 0 8px; border-radius: 8px;
  border: 1px solid var(--t-accent); background: #fff; color: var(--t-ink); font: 500 13px var(--font-body, inherit);
}
.ldt-rename-input:focus { outline: 2px solid var(--orange-glow, rgba(106, 75, 201, .3)); outline-offset: 0; }
.ldt-rename-ext { flex: none; font-weight: 600; color: var(--t-ink); }
