/* UI-only refinements. Existing editor themes, fonts and actions are retained. */
.hint.ui-start { pointer-events:auto; white-space:normal; width:min(540px, calc(100% - 32px)); text-align:center; border-radius:16px; padding:14px 18px; }
.ui-start strong { display:block; color:var(--text); font-size:15px; margin-bottom:9px; }
.ui-start-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:7px; }
.ui-start-actions button { min-height:36px; padding:7px 12px; border:1px solid var(--line2); border-radius:10px; color:var(--text); background:var(--bg); font:600 12px/1.3 Inter,sans-serif; }
.ui-start-actions button:hover { border-color:var(--acc); background:var(--acc-soft); }
.ui-start-actions button:focus-visible, .dock .tool:focus-visible, .ppt-acts button:focus-visible { outline:2px solid var(--acc); outline-offset:3px; }
.lp-tabs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:4px; border-radius:16px; }
/* 5 tabs as two even rows: 3 on top, 2 below (each row fills the width) */
.lp-tabs button { grid-column:span 2; }
.lp-tabs button:nth-child(n+4) { grid-column:span 3; }
.lp-tabs button { font-size:12px; min-height:34px; padding:6px 4px; }
.dock .tool .tl { font-size:11px; color:inherit; }
.dock .tool { min-width:48px; min-height:48px; }
.ly-empty, .empty-sel { font-size:13px; }
body[data-mode="ppt"] .hint.ui-start { width:min(450px, calc(100% - 32px)); top:66px; }
.ppt-acts { width:150px; grid-template-columns:repeat(2, minmax(0,1fr)); gap:4px; }
.ppt-acts button { font-size:11px; min-height:27px; padding:3px 5px; }
.ppt-acts button[data-pa="notes"], .ppt-acts button.wide { grid-column:auto; }
.ppt-acts button[data-pa="del"] { color:#b13b4b; }
[data-theme="dark"] .ppt-acts button[data-pa="del"] { color:#ffa5af; }
.ppt-count { font-size:12px; }
.ppt-add { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; }
.ppt-add span { font-size:11px; font-weight:600; }
.vtr .ib { border:1px solid transparent; }
.vtr .ib:not(:disabled) { color:var(--text); background:var(--bg2); }
.vtr .ib:not(:disabled):hover { border-color:var(--acc2); background:var(--bg3); }
.vtr .ib:disabled { opacity:.32; }
.vtr .ib.tog.on, .vtr .ib.on { color:var(--acc2); background:var(--acc-soft); border-color:var(--acc2); }
.vtr button:focus-visible { outline:2px solid var(--acc2); outline-offset:2px; }
.vtr .ib .i { width:22px; height:22px; }
.vpanel .phint { font-size:13px; line-height:1.65; }
.phint details { margin-top:14px; border:1px solid var(--line); border-radius:12px; padding:10px 12px; }
.phint summary { cursor:pointer; color:var(--text); font-weight:600; }
.phint details dl { font-size:12px; }
.vempty span { max-width:350px; font-size:13px; line-height:1.6; }
.tools-page .nx-hero { min-height:0; padding-top:100px; padding-bottom:36px; }
.tools-page .nx-in { padding-top:0; padding-bottom:0; }
.tools-page .nx-hero h1 { font-size:clamp(44px, 6vw, 80px); line-height:1.08; }
.tools-page .nx-lead { max-width:680px; font-size:16px; line-height:1.65; }
.tools-page .chips { margin-top:20px; }
.tools-page .picker { padding-top:24px; }
.tools-page .picker .sec-title { font-size:clamp(30px, 4vw, 50px); }
.tools-page .tp-card { border-radius:16px; }
@media (max-width:767px) {
  .hint.ui-start { top:66px; width:calc(100% - 24px); padding:12px; }
  .ui-start strong { font-size:14px; }
  .ui-start-actions button { min-height:40px; font-size:11px; padding:7px 9px; }
  .dock { max-width:calc(100% - 16px); overflow-x:auto; }
  .dock .tool { min-width:40px; }
  .ppt-acts { width:126px; }
  .ppt-row { height:118px; }
  body[data-mode="ppt"] .dock { bottom:128px; }
  .ppt-acts button[data-pa="notes"] span { display:inline; }
  .tools-page .nx-hero { padding-top:90px; padding-bottom:24px; }
  .tools-page .nx-lead { font-size:14px; }
}
/* the design name gets the whole first row (it was cut to «Нэргүй диза…»); the save status sits under it */
.lp-file .file-name { order:0; }
.lp-file .pw { order:1; }
.lp-file .saved { order:2; flex:1 1 100%; padding:0 7px; margin-top:-4px; }
.lp-file .ed-savefile { order:3; }
