/* Simulador da /logo-webmail: a logo do visitante nas telas do webmail e do Colabora.
   Tudo no navegador (js/logo-sim.js). As telas são uma simulação montada em HTML, com as cores e medidas
   dos temas reais (lua_plus/src/vars.css, whitelabel.css, lua_whitelabel/BrandingListener.php). */

.ls { margin-top: 1.25rem; }
.ls-privacy {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .75rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: rgba(var(--color-accent-rgb), .06); color: var(--color-text);
}
.ls-privacy .icon { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .2rem; color: var(--color-accent); }
.docs-content .ls-privacy { margin-bottom: 1rem; }

/* escolher o arquivo */
.ls-drop {
  position: relative; display: grid; place-items: center; text-align: center; gap: .35rem;
  padding: 2rem 1rem; border: 1.5px dashed rgba(255, 255, 255, .28); border-radius: var(--radius-lg);
  background: var(--color-surface); transition: border-color var(--transition), background var(--transition);
}
.ls-drop.is-over { border-color: var(--color-accent); background: var(--color-surface-hover); }
.ls-drop:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-dim); }
.ls-drop--small { padding: 1rem; grid-template-columns: auto 1fr; text-align: left; justify-items: start; }
.ls-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ls-drop__btn { pointer-events: none; }
.ls-drop__hint { color: var(--color-text-muted); font-size: .9rem; }
.ls-drop label { cursor: pointer; display: grid; gap: .5rem; justify-items: center; }
.ls-drop--small label { justify-items: start; }

.ls-error { color: var(--color-danger); margin: .75rem 0 0; }
.ls-error:empty { display: none; }

/* painel de opções */
.ls-body { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
.ls-body[hidden] { display: none; }
.ls-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.25rem; min-width: 0;
}
.ls-card > h3 { margin: 0 0 .9rem; font-size: 1.05rem; }
.ls-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ls-grid--2 { grid-template-columns: 1fr 1fr; } }

.ls-files { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ls-files { grid-template-columns: 1.6fr 1fr; } }
.ls-file-out { margin: 0; min-width: 0; }
.ls-file-out figcaption { font-size: .85rem; color: var(--color-text-muted); margin-top: .4rem; line-height: 1.45; }
.ls-file-out figcaption strong { color: var(--color-text); font-weight: 600; }
.ls-checker {
  display: grid; place-items: center; min-height: 120px; padding: .75rem; border-radius: var(--radius-sm);
  background-color: #fff;
  background-image: linear-gradient(45deg, #e6e8eb 25%, transparent 25%), linear-gradient(-45deg, #e6e8eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e6e8eb 75%), linear-gradient(-45deg, transparent 75%, #e6e8eb 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.ls-checker img { max-width: 100%; height: auto; display: block; }
.ls-checker--sq img { width: 120px; height: 120px; }

.ls-field { display: grid; gap: .35rem; min-width: 0; }
.ls-field label, .ls-legend { font-size: .875rem; font-weight: 500; color: var(--color-text); }
.ls-field small, .ls-help { font-size: .8rem; color: var(--color-text-subtle); line-height: 1.45; }
.ls input[type="text"], .ls input[type="url"] {
  width: 100%; min-width: 0; padding: .6rem .75rem; font: inherit; font-size: .95rem; color: var(--color-text);
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ls input[type="text"]:hover, .ls input[type="url"]:hover { border-color: rgba(255, 255, 255, .3); }
.ls input[type="text"]:focus-visible, .ls input[type="url"]:focus-visible {
  outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-dim);
}
.ls input[aria-invalid="true"] { border-color: var(--color-danger); }
.ls-field__err { color: var(--color-danger); font-size: .8rem; }
.ls-field__err:empty { display: none; }
.ls-mono { font-family: var(--font-mono); }

/* grupo de opções em botões (rádio) */
.ls fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ls-seg { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.ls-seg label {
  position: relative; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  padding: .45rem .8rem; border: 1px solid var(--color-border); border-radius: 999px; font-size: .875rem;
  color: var(--color-text-muted); transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.ls-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ls-seg label:hover { border-color: rgba(255, 255, 255, .3); color: var(--color-text); }
.ls-seg label:has(input:checked) { border-color: var(--color-accent); color: var(--color-text); background: var(--color-accent-dim); }
.ls-seg label:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.ls-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: var(--color-text-body); cursor: pointer; margin-top: .75rem; }
.ls-check input { margin-top: .25rem; accent-color: var(--color-accent); width: 1rem; height: 1rem; flex: none; }

/* cores */
.ls-colors { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ls-colors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ls-color { display: grid; grid-template-columns: auto 1fr; gap: .4rem .6rem; align-items: center; }
.ls-color > label, .ls-color > .ls-legend { grid-column: 1 / -1; }
.ls-color input[type="color"] {
  width: 2.75rem; height: 2.5rem; padding: 2px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-bg); cursor: pointer;
}
.ls-color input[type="color"]:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.ls-color .ls-help { grid-column: 1 / -1; }
.ls-swatch-text {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0 .75rem;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; border: 1px solid var(--color-border);
}
.ls-palette { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; align-items: center; }
.ls-palette__label { font-size: .85rem; color: var(--color-text-muted); margin-right: .25rem; }
.ls-chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem .3rem .3rem; font: inherit; font-size: .8rem;
  color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 999px; cursor: pointer;
}
.ls-chip:hover { border-color: rgba(255, 255, 255, .35); }
.ls-chip i { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.ls-chip[aria-pressed="true"] { border-color: var(--color-accent); }
.ls-linkbtn {
  font: inherit; font-size: .85rem; color: var(--color-secondary-text); background: none; border: 0; padding: 0;
  text-decoration: underline; cursor: pointer;
}

/* conferências */
.ls-checks { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.docs-content .ls-checks li { margin: 0; display: grid; grid-template-columns: 1.25rem 1fr; gap: .55rem; line-height: 1.5; }
.ls-checks .icon { width: 1.1rem; height: 1.1rem; margin-top: .2rem; }
.ls-checks .is-ok .icon { color: var(--color-accent); }
.ls-checks .is-warn .icon { color: var(--color-warm); }
.ls-checks .is-warn strong { color: var(--color-warm); }

/* prévia */
.ls-tabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid var(--color-border); margin-bottom: 1rem; }
.ls-tab {
  font: inherit; font-size: .9rem; color: var(--color-text-muted); background: none; border: 0; cursor: pointer;
  padding: .55rem .75rem; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.ls-tab:hover { color: var(--color-text); }
.ls-tab[aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-accent); font-weight: 600; }
.ls-preview-bar { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.ls-preview-bar .ls-seg { margin-top: 0; }
.ls-stage-wrap { position: relative; }
.ls-stage {
  position: relative; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid var(--color-border);
  background: #fff; box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.ls-stage > .ls-scr { position: absolute; top: 0; left: 0; transform-origin: 0 0; transform: scale(var(--k, 1)); }
.ls-stage--login { max-width: 560px; margin-inline: auto; }
.ls-caption { font-size: .85rem; color: var(--color-text-muted); margin: .6rem 0 0; line-height: 1.5; }
.ls-zoom { margin-top: .6rem; }
.ls-dialog {
  padding: 0; border: 0; background: #111; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
}
.ls-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.ls-dialog__bar { position: sticky; top: 0; left: 0; z-index: 2; display: flex; justify-content: flex-end; padding: .5rem; background: #111; }
.ls-dialog__scroll { overflow: auto; height: calc(100vh - 3.5rem); -webkit-overflow-scrolling: touch; }
.ls-dialog__scroll > .ls-scr { position: relative; transform: none; margin: 0 auto; }

.ls-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.ls-actions p { margin: 0; color: var(--color-text-muted); font-size: .9rem; flex: 1 1 16rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Telas simuladas (tamanho fixo em px; o JS escala para caber) ===== */
.ls-scr { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #1f2328; background: #fff; overflow: hidden; line-height: 1.35; text-align: left; }
.ls-scr * { box-sizing: border-box; }
.ls-scr img { display: block; }
.ls-scr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ls-scr[hidden] { display: none; }
/* a .docs-content pinta p, a, strong e listas com as cores do site escuro: dentro da tela simulada vale a cor da tela */
.docs-content .ls-scr p, .docs-content .ls-scr a, .docs-content .ls-scr strong { color: inherit; line-height: inherit; font-weight: inherit; }
.docs-content .ls-scr .lsx-login p { color: #57606a; }
.docs-content .ls-scr .lsx-from a { color: var(--acc-line); }

/* barra do navegador: aba com o ícone e o título, e o endereço */
.lsx-browser { height: 38px; display: flex; align-items: flex-end; gap: 10px; padding: 0 12px; background: #dee1e6; font-size: 12px; color: #3c4043; }
.lsx-tab { display: flex; align-items: center; gap: 8px; height: 31px; padding: 0 14px; max-width: 280px; background: #fff; border-radius: 9px 9px 0 0; white-space: nowrap; overflow: hidden; }
.lsx-tab img { width: 16px; height: 16px; object-fit: contain; }
.lsx-tab span { overflow: hidden; text-overflow: ellipsis; }
.lsx-url { flex: 1; display: flex; align-items: center; gap: 6px; height: 26px; margin-bottom: 4px; padding: 0 12px; border-radius: 13px; background: #f1f3f4; color: #202124; white-space: nowrap; overflow: hidden; }
.lsx-url svg { width: 12px; height: 12px; color: #5f6368; }

/* tela de entrada (whitelabel.css + lua_login): sempre clara */
.lsx-login { height: calc(100% - 38px); background: #f3f4f6; display: grid; place-items: center; }
.lsx-login__card { width: 400px; background: #fff; border: 1px solid #d9dde3; border-radius: 22px; padding: 34px 40px 26px; box-shadow: 0 2px 16px rgba(31, 35, 40, .08); }
.lsx-login__logo { display: flex; justify-content: center; height: 64px; align-items: center; }
.lsx-login__logo img { max-width: 220px; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.lsx-login h4 { margin: 18px 0 6px; font-size: 26px; font-weight: 600; text-align: center; color: #1f2328; }
.lsx-login p { margin: 0 0 20px; text-align: center; color: #57606a; font-size: 14px; }
.lsx-login__label { font-size: 13px; font-weight: 600; color: #57606a; margin: 0 0 6px; }
.lsx-login__input { height: 44px; border: 1px solid #d9dde3; border-radius: 10px; background: #f3f4f6; color: #6e7781; font-size: 14px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; margin-bottom: 14px; }
.lsx-login__btn { height: 44px; border-radius: 10px; background: #2f3a48; color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; letter-spacing: .02em; margin-top: 6px; }
.lsx-login__foot { border-top: 1px solid #d9dde3; margin-top: 22px; padding-top: 14px; text-align: center; font-size: 13px; color: #2f8fa3; }

/* caixa de entrada: base */
.lsx-app { height: calc(100% - 38px); display: grid; }
.lsx-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 9px 14px 9px 22px; border-bottom: 1px solid var(--l-border); position: relative; }
.lsx-row b { font-weight: 400; font-size: 14px; color: var(--l-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsx-row time { font-size: 12px; color: var(--l-muted); }
.lsx-row span { grid-column: 1 / -1; font-size: 12.5px; color: var(--l-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsx-row.is-unread b, .lsx-row.is-unread time { font-weight: 700; color: var(--l-text); }
.lsx-row.is-unread::before { content: ""; position: absolute; left: 9px; top: 33px; width: 6px; height: 6px; border-radius: 50%; background: var(--l-link); }
.lsx-row.is-sel { background: var(--l-sel); }

/* Lua+ (cores de lua_plus/src/vars.css; destaque e barra pelo lua_plus_tune; medidas dos prints reais do site) */
.lsx-lua {
  --l-bg: #ffffff; --l-alt: #f4f5f6; --l-menu: #f4f5f6; --l-border: #dde1e6; --l-text: #1f2328; --l-muted: #4f5a64; --l-link: #0b6178; --l-sel: var(--lua-sel);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  grid-template-columns: 56px 218px 300px 1fr; grid-template-rows: 52px 1fr; background: var(--l-bg); color: var(--l-text);
}
.is-dark .lsx-lua { --l-bg: #222222; --l-alt: #2a2a2a; --l-menu: #1a1a1a; --l-border: rgba(255, 255, 255, .22); --l-text: #f0f0f0; --l-muted: #a8b0b8; --l-link: #67e8f9; }
.lsx-lua__head { grid-column: 1 / -1; display: flex; align-items: center; background: var(--hdr-bg); color: var(--hdr-fg); padding-right: 12px; }
.lsx-lua__brand { width: 56px; display: grid; place-items: center; flex: none; }
.lsx-sym { width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.lsx-sym img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lsx-account { width: 196px; line-height: 1.2; padding-left: 6px; }
.lsx-account b { display: block; font-size: 14px; }
.lsx-account small { font-size: 11px; opacity: .85; }
.lsx-kebab { font-size: 20px; font-weight: 700; width: 24px; text-align: center; margin-right: 18px; }
.lsx-tools { display: flex; gap: 16px; align-items: center; }
.lsx-tool { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; text-align: center; line-height: 1.1; }
.lsx-tool svg { width: 17px; height: 17px; }
.lsx-rail { background: var(--l-menu); display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 6px; color: var(--l-text); }
.lsx-rail i { display: grid; place-items: center; width: 56px; height: 40px; }
.lsx-rail svg { width: 17px; height: 17px; }
.lsx-rail i.is-on { background: color-mix(in srgb, var(--l-text) 8%, transparent); box-shadow: inset 3px 0 0 var(--acc-line); }
.lsx-rail .lsx-rail__end { margin-top: auto; margin-bottom: 8px; }
.lsx-folders { border-right: 1px solid var(--l-border); padding: 4px 0 0; font-size: 13.5px; display: flex; flex-direction: column; }
.lsx-folder { display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 16px; color: var(--l-text); white-space: nowrap; }
.lsx-folder.is-on { background: var(--l-sel); box-shadow: inset 4px 0 0 var(--acc-line); font-weight: 700; padding-left: 6px; }
.lsx-folder em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--acc); color: var(--acc-fg); }
.lsx-folder svg { width: 15px; height: 15px; }
.lsx-folder .lsx-chev { width: 13px; height: 13px; }
.lsx-folder--sub { padding-left: 40px; }
.lsx-folder--mark { padding-top: 6px; padding-bottom: 6px; }
.lsx-marks { margin-top: 8px; padding: 10px 16px 4px; border-top: 1px solid var(--l-border); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--l-muted); }
.lsx-quota { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--l-border); font-size: 11px; color: var(--l-muted); }
.lsx-quota span { flex: 1; height: 5px; border-radius: 3px; background: var(--l-border); }
.lsx-quota i { display: block; width: 6%; height: 100%; border-radius: 3px; background: var(--acc-line); }
.lsx-list { border-right: 1px solid var(--l-border); overflow: hidden; }
.lsx-search { margin: 8px 10px 4px; height: 36px; border: 1px solid var(--l-border); border-radius: 8px; background: var(--l-alt); display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--l-muted); font-size: 13.5px; }
.lsx-search svg { width: 15px; height: 15px; }
.lsx-search .lsx-search__end { margin-left: auto; }
.lsx-lua .lsx-row { padding: 7px 30px 7px 32px; }
.lsx-lua .lsx-row b { font-size: 13.5px; }
.lsx-lua .lsx-row span { font-size: 11.5px; position: relative; }
.lsx-lua .lsx-row span::before { content: ""; position: absolute; left: -14px; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--l-text); }
.lsx-lua .lsx-row.is-unread::before { left: 14px; top: 9px; }
.lsx-clip { position: absolute; right: 10px; top: 26px; width: 12px !important; height: 12px !important; color: var(--l-muted); }
.lsx-read { padding: 10px 22px 16px; overflow: hidden; color: var(--l-text); }
.lsx-read__tools { display: flex; justify-content: flex-end; gap: 14px; padding: 6px 12px; border: 1px solid var(--l-border); border-radius: 999px; width: max-content; margin-left: auto; color: var(--l-text); }
.lsx-read__tools svg { width: 15px; height: 15px; }
.lsx-read h5 { margin: 10px 0 12px; font-size: 20px; font-weight: 700; color: var(--l-text); }
.lsx-from { display: grid; grid-template-columns: 46px 1fr; gap: 1px 12px; align-items: center; font-size: 12.5px; margin-bottom: 12px; }
.lsx-from small { color: var(--l-muted); font-weight: 600; display: inline-block; width: 34px; font-size: 12px; }
.lsx-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; background: var(--acc); color: var(--acc-fg); grid-row: span 3; }
.lsx-from a { color: var(--acc-line); }
.lsx-att { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--l-border); border-radius: 8px; background: var(--l-alt); font-size: 12.5px; margin-bottom: 14px; }
.lsx-att svg { width: 15px; height: 15px; }
.lsx-body { font-size: 13.5px; line-height: 1.55; }
.lsx-body p { margin: 0 0 8px; }
.lsx-reply { margin-top: 14px; border: 1px solid var(--l-border); border-radius: 10px; padding: 10px 12px; }
.lsx-reply__tabs { display: inline-flex; border: 1px solid var(--l-border); border-radius: 999px; overflow: hidden; font-size: 12px; margin-bottom: 8px; }
.lsx-reply__tabs span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; color: var(--l-muted); }
.lsx-reply__tabs span.is-on { background: var(--l-sel); color: var(--l-text); font-weight: 700; }
.lsx-reply__tabs svg { width: 13px; height: 13px; }
.lsx-reply__txt { color: var(--l-muted); font-size: 12.5px; height: 30px; }
.lsx-send { display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--acc); color: var(--acc-fg); }
.lsx-send svg { width: 14px; height: 14px; }

/* Colabora (Nextcloud com a paleta neutra do host do cliente: BrandingListener::NEUTRAL_CSS) */
.lsx-nc {
  --n-bg: #f3f4f6; --n-main: #ffffff; --n-text: #1f2328; --n-muted: #6e7781; --n-border: #e1e4e8; --n-primary: #2f3a48; --n-primary-fg: #ffffff; --n-hover: #e7eaee;
  height: calc(100% - 38px); display: grid; grid-template-columns: 300px 1fr; grid-template-rows: 50px 1fr; gap: 0 8px;
  background: var(--n-bg); color: var(--n-text); padding: 0 8px 8px; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.is-dark .lsx-nc { --n-bg: #171717; --n-main: #1f1f1f; --n-text: #e8eaed; --n-muted: #9aa0a6; --n-border: #333; --n-primary: #3d4a5c; --n-hover: #2b3542; }
.lsx-nc__head { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 0 6px; }
.lsx-nc__logo { width: 62px; height: 44px; display: grid; place-items: center; }
.lsx-nc__logo img { max-width: 62px; max-height: 44px; object-fit: contain; }
.lsx-nc__app { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.lsx-nc__search { margin-left: 140px; width: 420px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--n-text) 10%, transparent); display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--n-muted); font-size: 14px; }
.lsx-nc__nav { background: var(--n-main); border-radius: 12px; padding: 10px; font-size: 15px; }
.lsx-nc__nav div { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; }
.lsx-nc__nav div.is-on { background: var(--n-hover); }
.lsx-nc__main { background: var(--n-main); border-radius: 12px; padding: 12px 18px; overflow: hidden; }
.lsx-nc__bar { display: flex; align-items: center; gap: 14px; font-size: 15px; margin-bottom: 18px; }
.lsx-nc__new { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--n-primary); color: var(--n-primary-fg); font-weight: 600; }
.lsx-nc__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 22px; }
.lsx-nc__item { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.lsx-nc__item small { display: block; color: var(--n-muted); font-size: 12px; margin-top: 2px; }
.lsx-nc__folder { height: 92px; position: relative; margin-bottom: 10px; }
.lsx-nc__folder::before { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; bottom: 0; background: var(--n-primary); border-radius: 10px; }
.lsx-nc__folder::after { content: ""; position: absolute; left: 6px; top: 0; width: 45%; height: 20px; background: var(--n-primary); border-radius: 8px 8px 0 0; }
.lsx-nc__file { height: 92px; display: grid; place-items: center; margin-bottom: 10px; }
.lsx-nc__file i { width: 64px; height: 84px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 700; font-size: 13px; }

/* seletor de tema do simulador */
.ls-themepick { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.ls-themepick .ls-help { display: block; margin-top: .35rem; }
.ls-scr { position: relative; }
/* o tema que não está em uso fica na mesma tela, invisível (o [hidden] do site vira display:none !important, e o Chromium deixava de pintar as cores ao voltar) */
.lsx-app.is-off { visibility: hidden; position: absolute; left: 0; right: 0; top: 38px; pointer-events: none; }

/* Lua Next (skins/lua_next: tokens.css, base.css, mail.css e tema.html; a cor da marca vai em --ln-accent, --ln-link e no item ativo
   do trilho; o trilho fica escuro ou na cor da marca; o símbolo é 40 x 40 no alto do trilho, com cantos arredondados) */
.lsx-next {
  --nx-canvas: #eceef1; --nx-panel: #ffffff; --nx-panel2: #f4f5f7; --nx-line: #e2e5e9; --nx-text: #1b1f24; --nx-muted: #525c66; --nx-sel: color-mix(in srgb, var(--nx-link) 14%, #ffffff);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--nx-canvas); color: var(--nx-text);
  grid-template-columns: 64px 196px 300px 1fr; gap: 0 6px; padding: 0 6px 6px 0;
}
.is-dark .lsx-next { --nx-canvas: #0f1011; --nx-panel: #1a1c1e; --nx-panel2: #232629; --nx-line: #2d3135; --nx-text: #e8eaed; --nx-muted: #a4acb4; --nx-sel: color-mix(in srgb, var(--nx-link) 15%, #1a1c1e); }
.lsx-nx-rail { background: var(--nx-rail-bg); color: var(--nx-rail-fg); display: flex; flex-direction: column; align-items: stretch; padding: 8px 5px; gap: 2px; margin-right: 0; }
.lsx-nx-brand { height: 56px; display: grid; place-items: center; }
.lsx-nx-brand img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }
.lsx-nx-item { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; font-size: 9.5px; line-height: 1.1; border-radius: 8px; position: relative; text-align: center; }
.lsx-nx-item svg { width: 18px; height: 18px; }
.lsx-nx-item.is-on { color: var(--nx-rail-accent); background: color-mix(in srgb, var(--nx-rail-accent) 14%, transparent); font-weight: 700; }
.lsx-nx-item em { position: absolute; top: 2px; right: 8px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: #d93025; color: #fff; font-style: normal; font-size: 9px; font-weight: 700; display: grid; place-items: center; }
.lsx-nx-end { margin-top: auto; }
.lsx-nx-side { padding: 10px 10px 0; font-size: 13px; display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.lsx-nx-compose { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; margin-bottom: 8px; border-radius: 10px; background: var(--nx-acc); color: var(--nx-on); font-weight: 700; }
.lsx-nx-compose svg { width: 16px; height: 16px; }
.lsx-nx-folder { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--nx-text); white-space: nowrap; }
.lsx-nx-folder svg { width: 16px; height: 16px; }
.lsx-nx-folder.is-on { background: var(--nx-sel); font-weight: 700; }
.lsx-nx-folder em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--nx-link); font-weight: 700; }
.lsx-nx-marks { margin: 8px 0 2px; padding: 8px 10px 2px; border-top: 1px solid var(--nx-line); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--nx-muted); }
.lsx-nx-list, .lsx-nx-read { background: var(--nx-panel); border-radius: 12px; margin-top: 6px; overflow: hidden; }
.lsx-nx-list { padding: 10px 8px; }
.lsx-nx-title { font-size: 15px; font-weight: 700; padding: 2px 6px 8px; }
.lsx-nx-search { height: 34px; border-radius: 10px; background: var(--nx-panel2); color: var(--nx-muted); display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12.5px; margin-bottom: 6px; }
.lsx-nx-search svg { width: 15px; height: 15px; }
.lsx-nx-row { display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; padding: 8px 8px; border-radius: 10px; position: relative; }
.lsx-nx-row i { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; align-self: center; }
.lsx-nx-row b { font-weight: 400; font-size: 13px; display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; overflow: hidden; }
.lsx-nx-row time { font-size: 11px; color: var(--nx-muted); font-weight: 400; }
.lsx-nx-row span { font-size: 12px; color: var(--nx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsx-nx-row.is-unread b, .lsx-nx-row.is-unread span { font-weight: 700; color: var(--nx-text); }
.lsx-nx-row.is-unread::before { content: ""; position: absolute; left: 1px; top: 22px; width: 5px; height: 5px; border-radius: 50%; background: var(--nx-link); }
.lsx-nx-row.is-sel { background: var(--nx-sel); }
.lsx-nx-read { padding: 10px 20px 16px; }
.lsx-nx-tools { display: flex; justify-content: flex-end; gap: 16px; color: var(--nx-text); padding-bottom: 8px; border-bottom: 1px solid var(--nx-line); }
.lsx-nx-tools svg { width: 16px; height: 16px; }
.lsx-nx-read h5 { margin: 12px 0 10px; font-size: 19px; font-weight: 700; color: var(--nx-text); }
.lsx-nx-from { display: flex; gap: 10px; align-items: center; font-size: 12.5px; margin-bottom: 12px; color: var(--nx-text); }
.lsx-nx-from i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; color: #fff; flex: none; }
.lsx-nx-from a { color: var(--nx-link); }
.lsx-nx-from small { color: var(--nx-muted); font-size: 11.5px; }
.lsx-nx-body { font-size: 13px; line-height: 1.55; color: var(--nx-text); }
.lsx-nx-body p { margin: 0 0 8px; }
.lsx-nx-reply { margin-top: 12px; border: 1.5px solid var(--nx-link); border-radius: 10px; padding: 8px 10px; }
.lsx-nx-reply__tabs { display: inline-flex; border: 1px solid var(--nx-line); border-radius: 999px; overflow: hidden; font-size: 11.5px; margin-bottom: 6px; }
.lsx-nx-reply__tabs span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; color: var(--nx-muted); }
.lsx-nx-reply__tabs span.is-on { background: var(--nx-sel); color: var(--nx-text); font-weight: 700; }
.lsx-nx-reply__tabs svg { width: 12px; height: 12px; }
.lsx-nx-reply__txt { color: var(--nx-muted); font-size: 12.5px; height: 28px; }
.lsx-nx-send { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 8px; font-weight: 700; font-size: 12.5px; background: var(--nx-acc); color: var(--nx-on); }
.lsx-nx-send svg { width: 13px; height: 13px; }
.docs-content .ls-scr .lsx-nx-from a { color: var(--nx-link); }
