/* Hola Feeds — interfaz. Colores y medidas del sistema de Apple; acento naranja de Hola. */
:root {
  color-scheme: light;
  --accent: #ea5b13;
  --bg: #fff; --side: #f2f2f7; --card: #fff; --sheet: #f2f2f7; --sheet-card: #fff;
  --text: #000; --text2: #6e6e73; --text3: #aeaeb2;
  --sep: rgba(60, 60, 67, .2); --fill: rgba(120, 120, 128, .12); --fill2: rgba(120, 120, 128, .22);
  --bar: rgba(255, 255, 255, .82); --bar-side: rgba(242, 242, 247, .82);
  --sel: rgba(234, 91, 19, .13); --seg-on: #fff; --red: #ff3b30; --blue: #007aff; --yellow: #ffb800;
  --reader-size: 18px; --reader-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --bar-h: 52px; --top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.32, .72, 0, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #ff6a1f;
  --bg: #000; --side: #000; --card: #1c1c1e; --sheet: #1c1c1e; --sheet-card: #2c2c2e;
  --text: #fff; --text2: #98989f; --text3: #636366;
  --sep: rgba(84, 84, 88, .6); --fill: rgba(118, 118, 128, .24); --fill2: rgba(118, 118, 128, .36);
  --bar: rgba(0, 0, 0, .78); --bar-side: rgba(0, 0, 0, .78);
  --sel: rgba(255, 106, 31, .22); --seg-on: #636366; --red: #ff453a; --blue: #0a84ff; --yellow: #ffd60a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --accent: #ff6a1f;
    --bg: #000; --side: #000; --card: #1c1c1e; --sheet: #1c1c1e; --sheet-card: #2c2c2e;
    --text: #fff; --text2: #98989f; --text3: #636366;
    --sep: rgba(84, 84, 88, .6); --fill: rgba(118, 118, 128, .24); --fill2: rgba(118, 118, 128, .36);
    --bar: rgba(0, 0, 0, .78); --bar-side: rgba(0, 0, 0, .78);
    --sel: rgba(255, 106, 31, .22); --seg-on: #636366; --red: #ff453a; --blue: #0a84ff; --yellow: #ffd60a;
  }
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body {
  font: 17px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.grow { flex: 1; }
.ic { width: 24px; height: 24px; flex: none; display: block; }

/* ---------- estructura ---------- */
.app { position: fixed; inset: 0; display: grid; grid-template-columns: 272px 384px minmax(0, 1fr); }
.pane { position: relative; min-width: 0; height: 100%; overflow: hidden; background: var(--bg); }
.sidebar { background: var(--side); border-right: .5px solid var(--sep); }
.list { border-right: .5px solid var(--sep); }
.scroll { height: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-top: calc(var(--bar-h) + var(--top)); overscroll-behavior-y: contain; }
.bar {
  position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: calc(var(--bar-h) + var(--top)); padding: var(--top) 8px 0;
  display: flex; align-items: center; gap: 2px; background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid transparent; transition: border-color .2s;
}
.sidebar .bar { background: var(--bar-side); }
.scrolled > .bar { border-bottom-color: var(--sep); }
.bar-title {
  position: absolute; left: 50%; top: var(--top); height: var(--bar-h); display: flex; align-items: center; transform: translateX(-50%);
  max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.scrolled > .bar .bar-title { opacity: 1; }
.ib { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); border-radius: 50%; flex: none; text-decoration: none; transition: opacity .15s, background .15s; }
.ib:active { opacity: .45; }
.ib[disabled] { color: var(--text3); pointer-events: none; }
.ib.txt { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.ib.on { color: var(--accent); }
.ib .fill { fill: currentColor; }
.back { display: none; align-items: center; color: var(--accent); height: 44px; padding: 0 8px 0 0; max-width: 46%; }
.back span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back .ic { width: 28px; height: 28px; margin-right: -3px; stroke-width: 2.2; }
.back:active { opacity: .45; }
.large { font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.022em; margin: 2px 20px 12px; overflow-wrap: anywhere; }

/* ---------- barra lateral ---------- */
#side-nav { padding: 0 10px; }
.group { margin: 0 0 18px; }
.group-title { font-size: 13px; font-weight: 600; color: var(--text2); padding: 0 12px 6px; text-transform: uppercase; letter-spacing: .02em; }
.srow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 5px 10px 5px 10px; border-radius: 9px; text-align: left; font-size: 15px; position: relative; }
.srow .label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .count { color: var(--text2); font-size: 14px; font-variant-numeric: tabular-nums; flex: none; }
.srow .ic { width: 22px; height: 22px; color: var(--accent); }
.srow.sel { background: var(--sel); font-weight: 600; }
.srow.sel .count { color: var(--text); }
.srow.err .label { color: var(--text2); }
.srow .warn { color: var(--red); font-weight: 700; flex: none; }
.srow.child { padding-left: 34px; }
.srow .tw { width: 22px; height: 22px; margin: 0 -4px 0 -4px; display: inline-flex; align-items: center; justify-content: center; color: var(--text3); flex: none; border-radius: 6px; }
.srow .tw .ic { width: 16px; height: 16px; color: inherit; stroke-width: 2.4; transition: transform .2s; transform: rotate(90deg); }
.srow.closed .tw .ic { transform: none; }
.fav { width: 20px; height: 20px; border-radius: 5px; flex: none; object-fit: cover; background: var(--fill); }
.fav.letter { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--text3); text-transform: uppercase; }
.side-foot { padding: 4px 22px calc(28px + var(--bottom)); }
.foot-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--text2); font-size: 13px; min-height: 36px; }
.foot-btn .ic { width: 18px; height: 18px; }
.foot-btn.busy .ic { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- lista ---------- */
.list-tools { padding: 0 16px 10px; display: flex; flex-direction: column; gap: 10px; }
.search { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px; background: var(--fill); border-radius: 10px; color: var(--text2); }
.search .ic { width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 17px; padding: 0; height: 100%; color: var(--text); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--text2); }
.search input::-webkit-search-decoration { display: none; }
.seg { display: flex; background: var(--fill); border-radius: 9px; padding: 2px; }
.seg button { flex: 1; height: 28px; border-radius: 7px; font-size: 13px; font-weight: 500; transition: background .2s; }
.seg button.on { background: var(--seg-on); box-shadow: 0 1px 4px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }
.day { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .02em; padding: 16px 20px 6px; }
.day:first-child { padding-top: 6px; }
.row { position: relative; overflow: hidden; touch-action: pan-y; cursor: pointer; }
.row-in { position: relative; display: flex; gap: 12px; padding: 12px 16px 12px 30px; background: var(--bg); }
.row.swiping .row-in { transition: none; }
.row-in { transition: transform .3s var(--ease); }
.row::after { content: ""; position: absolute; left: 30px; right: 0; bottom: 0; border-bottom: .5px solid var(--sep); }
.row.sel .row-in { background: color-mix(in srgb, var(--accent) 13%, var(--bg)); }
.dot { position: absolute; left: 11px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .2s; }
.row.unread .dot { opacity: 1; }
.row-main { flex: 1; min-width: 0; }
.row-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); margin-bottom: 3px; }
.row-meta .fav { width: 16px; height: 16px; border-radius: 4px; }
.row-meta .fav.letter { font-size: 9px; }
.row-meta .src { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.row-meta .time { flex: none; margin-left: auto; padding-left: 6px; font-variant-numeric: tabular-nums; }
.row-meta .st { display: none; color: var(--yellow); flex: none; }
.row-meta .st .ic { width: 13px; height: 13px; fill: currentColor; }
.row.starred .st { display: block; }
.row-title { font-size: 16px; line-height: 1.28; font-weight: 600; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.row-sum { font-size: 14px; line-height: 1.35; color: var(--text2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.row:not(.unread) .row-title { color: var(--text2); font-weight: 500; }
.thumb { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; flex: none; background: var(--fill); align-self: flex-start; margin-top: 2px; }
.act { position: absolute; top: 0; bottom: 0; width: 100%; display: none; align-items: center; color: #fff; padding: 0 26px; }
.act .ic { transition: transform .2s var(--ease); }
.row.swiping[data-dir="r"] .act.a-star { display: flex; background: var(--yellow); }
.row.swiping[data-dir="l"] .act.a-read { display: flex; justify-content: flex-end; background: var(--blue); }
.row.armed .act .ic { transform: scale(1.35); }
.act.a-star .ic { fill: currentColor; }
#sentinel { height: 1px; }
.list-end { text-align: center; color: var(--text3); font-size: 13px; padding: 22px 0 calc(40px + var(--bottom)); }
.ptr { position: relative; height: 0; }
.ptr .spinner { position: absolute; left: 50%; top: -40px; margin-left: -11px; opacity: 0; }
.ptr.busy .spinner, .spinner.on { animation: spin .8s linear infinite; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--fill2); border-top-color: var(--text2); display: inline-block; }
.pill {
  position: absolute; z-index: 7; top: calc(var(--bar-h) + var(--top) + 10px); left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}

/* ---------- estados vacíos ---------- */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 32px; color: var(--text2); min-height: 60%; gap: 6px; }
.empty .ic { width: 52px; height: 52px; color: var(--text3); stroke-width: 1.3; margin-bottom: 8px; }
.empty h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 0; letter-spacing: -.01em; }
.empty p { margin: 0 0 14px; font-size: 15px; line-height: 1.4; max-width: 300px; }
.empty .btn { width: auto; min-width: 220px; padding: 0 22px; }
#reader-empty { height: 100%; min-height: 0; }

/* ---------- lector ---------- */
.actions { position: absolute; z-index: 7; top: var(--top); right: 8px; height: var(--bar-h); display: flex; align-items: center; gap: 2px; }
.act-nav { display: inline-flex; margin-left: 6px; padding-left: 6px; border-left: .5px solid var(--sep); }
.article { max-width: 720px; margin: 0 auto; padding: 18px 28px 120px; }
.art-feed { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }
.art-title { font-size: 30px; line-height: 1.16; font-weight: 800; letter-spacing: -.022em; margin: 0 0 10px; overflow-wrap: anywhere; }
.art-title a { color: inherit; text-decoration: none; }
.art-meta { font-size: 14px; color: var(--text2); margin-bottom: 20px; }
.art-hero { width: 100%; border-radius: 14px; margin: 0 0 22px; display: block; background: var(--fill); }
.content { font-family: var(--reader-font); font-size: var(--reader-size); line-height: 1.62; overflow-wrap: anywhere; }
.content > :first-child { margin-top: 0; }
.content p, .content ul, .content ol, .content blockquote, .content pre, .content figure, .content table, .content .video { margin: 0 0 1.05em; }
.content h2, .content h3, .content h4, .content h5, .content h6 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; line-height: 1.22; letter-spacing: -.015em; margin: 1.5em 0 .5em; }
.content h2 { font-size: 1.36em; } .content h3 { font-size: 1.18em; } .content h4, .content h5, .content h6 { font-size: 1em; }
.content img, .content video { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 0 auto; }
.content figure { margin-left: 0; margin-right: 0; }
.content figcaption { font-size: .78em; color: var(--text2); text-align: center; margin-top: 8px; line-height: 1.4; }
.content blockquote { border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; margin-left: 0; margin-right: 0; color: var(--text2); }
.content pre { background: var(--fill); border-radius: 10px; padding: 14px; overflow-x: auto; font: .8em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--fill); padding: .1em .35em; border-radius: 5px; }
.content pre code { background: none; padding: 0; font-size: 1em; }
.content hr { border: 0; border-top: .5px solid var(--sep); margin: 1.6em 0; }
.content table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .85em; }
.content td, .content th { border: .5px solid var(--sep); padding: 6px 10px; text-align: left; vertical-align: top; }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin-bottom: .3em; }
.content audio { width: 100%; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.art-foot { margin-top: 34px; padding-top: 20px; border-top: .5px solid var(--sep); display: flex; justify-content: center; }
.art-foot .btn { width: auto; padding: 0 24px; }
.art-loading { display: flex; justify-content: center; padding: 60px 0; }

/* ---------- botones y formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; transition: opacity .15s, transform .15s; }
.btn:active { opacity: .75; transform: scale(.985); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.gray { background: var(--fill); color: var(--accent); }
.btn.red { background: var(--red); }
.btn.small { height: 34px; width: auto; padding: 0 14px; font-size: 15px; border-radius: 17px; flex: none; }
.input, .select { width: 100%; height: 48px; border-radius: 12px; border: 0; background: var(--sheet-card); padding: 0 14px; font-size: 17px; outline: 0; -webkit-appearance: none; appearance: none; color: var(--text); }
.input::placeholder { color: var(--text3); }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-radius: 12px; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--text2) 50%), linear-gradient(135deg, var(--text2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

/* ---------- hojas ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .38); opacity: 0; transition: opacity .28s; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg.on { opacity: 1; }
.sheet { width: 100%; max-width: 540px; max-height: calc(100dvh - var(--top) - 24px); background: var(--sheet); border-radius: 18px 18px 0 0; transform: translateY(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; padding-bottom: var(--bottom); box-shadow: 0 -8px 40px rgba(0, 0, 0, .18); }
.on .sheet { transform: none; }
.sheet-head { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 56px; padding: 6px 10px 0 16px; flex: none; }
.sheet-head h2 { position: absolute; left: 60px; right: 60px; text-align: center; font-size: 17px; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-close { width: 30px; height: 30px; border-radius: 50%; background: var(--fill2); color: var(--text2); display: inline-flex; align-items: center; justify-content: center; margin: 7px; }
.sheet-close .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.sheet-body { overflow-y: auto; padding: 8px 16px 22px; -webkit-overflow-scrolling: touch; }
.sheet-body > p { color: var(--text2); font-size: 14px; line-height: 1.4; margin: 0 4px 14px; }
.sheet-body .btn + .btn { margin-top: 10px; }
.form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.lbl { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .02em; margin: 6px 4px 6px; display: block; }
.cells { background: var(--sheet-card); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.cell { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 14px; text-align: left; font-size: 17px; position: relative; text-decoration: none; color: var(--text); }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: .5px solid var(--sep); }
.cell .ic { color: var(--accent); width: 22px; height: 22px; }
.cell.red, .cell.red .ic { color: var(--red); }
.cell .cell-main { flex: 1; min-width: 0; }
.cell .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .s { display: block; font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.cell .val { color: var(--text2); flex: none; }
button.cell:active { background: var(--fill); }
.cell .seg { flex: none; width: 190px; }
.switch { width: 51px; height: 31px; border-radius: 16px; background: var(--fill2); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.switch.on { background: #34c759; }
.switch.on::after { transform: translateX(20px); }
.note { font-size: 13px; color: var(--text2); line-height: 1.4; margin: -12px 14px 20px; }
.hint { text-align: center; color: var(--text2); font-size: 15px; padding: 22px 10px; line-height: 1.4; }
.sizes { display: flex; align-items: center; gap: 12px; }
.sizes button { width: 64px; height: 44px; border-radius: 12px; background: var(--sheet-card); font-weight: 600; }
.sizes button:first-child { font-size: 14px; } .sizes button:last-child { font-size: 22px; }
.sizes .bars { flex: 1; display: flex; justify-content: center; gap: 5px; }
.sizes .bars i { width: 7px; height: 7px; border-radius: 50%; background: var(--fill2); }
.sizes .bars i.on { background: var(--accent); }

.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(86px + var(--bottom)); transform: translateX(-50%); background: rgba(40, 40, 42, .94); color: #fff; font-size: 15px; font-weight: 500; padding: 11px 18px; border-radius: 22px; max-width: calc(100vw - 40px); text-align: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- acceso ---------- */
.auth { position: fixed; inset: 0; z-index: 90; background: var(--side); display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.auth-card { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.auth-icon { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 8px 26px rgba(0, 0, 0, .16); margin-bottom: 8px; }
.auth-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.auth-card p { margin: 0 0 8px; color: var(--text2); font-size: 15px; line-height: 1.4; }
.auth .input { background: var(--card); }
.auth-error { color: var(--red) !important; min-height: 20px; margin: 0 !important; font-size: 14px !important; }

/* ---------- escritorio ---------- */
@media (min-width: 900px) {
  .large { font-size: 26px; margin: 0 20px 12px; }
  .sidebar .large { display: none; }
  .sidebar .bar-title { position: static; transform: none; opacity: 1; font-size: 20px; font-weight: 800; letter-spacing: -.02em; padding-left: 12px; max-width: none; }
  .list .bar-title { display: none; }
  .scrolled.list > .bar .bar-title { display: flex; }
  .ib { width: 38px; height: 38px; border-radius: 9px; }
  .ib:hover { background: var(--fill); }
  .srow:hover:not(.sel) { background: var(--fill); }
  .row:hover:not(.sel) .row-in { background: color-mix(in srgb, var(--text) 3.5%, var(--bg)); }
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 18px; transform: scale(.95); opacity: 0; transition: transform .25s var(--ease), opacity .2s; max-width: 480px; max-height: 84vh; padding-bottom: 0; }
  .on .sheet { opacity: 1; }
  .toast { bottom: 32px; }
  .act-nav { display: inline-flex; }
}
@media (min-width: 900px) and (max-width: 1139px) { .app { grid-template-columns: 232px 320px minmax(0, 1fr); } }

/* ---------- iPhone ---------- */
@media (max-width: 899px) {
  .app { display: block; }
  .pane { position: absolute; inset: 0; transition: transform .42s var(--ease); will-change: transform; border: 0; }
  .app.no-anim .pane { transition: none; }
  .list, .reader { box-shadow: -1px 0 0 var(--sep); }
  .app[data-view="sidebar"] .list, .app[data-view="sidebar"] .reader, .app[data-view="list"] .reader { transform: translateX(102%); }
  .app[data-view="list"] .sidebar, .app[data-view="reader"] .sidebar, .app[data-view="reader"] .list { transform: translateX(-28%); }
  .back { display: inline-flex; }
  #side-nav { padding: 0 16px; }
  .group { background: var(--card); border-radius: 12px; margin-bottom: 22px; }
  .group-title { display: none; }
  .srow { min-height: 46px; font-size: 17px; padding: 6px 14px; border-radius: 0; gap: 12px; }
  .srow.sel { background: none; font-weight: 400; }
  .srow.sel .count { color: var(--text2); }
  .srow:active { background: var(--fill); }
  .srow + .srow::before { content: ""; position: absolute; top: 0; left: 48px; right: 0; border-top: .5px solid var(--sep); }
  .srow.child { padding-left: 44px; }
  .srow.child + .srow::before, .srow + .srow.child::before { left: 76px; }
  .srow .count { font-size: 16px; }
  .srow .go { color: var(--text3); width: 14px; height: 14px; stroke-width: 2.6; margin-left: -4px; }
  .srow .ic { width: 24px; height: 24px; }
  .fav { width: 22px; height: 22px; }
  .srow .tw { width: 28px; height: 28px; }
  .row.sel .row-in { background: var(--bg); }
  .actions { top: auto; bottom: 0; left: 0; right: 0; height: calc(50px + var(--bottom)); padding: 0 6px var(--bottom); justify-content: space-around; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--sep); }
  .act-nav { display: none; }
  .article { padding: 10px 20px calc(96px + var(--bottom)); }
  .art-title { font-size: 26px; }
  #reader-scroll { padding-bottom: 0; }
  .side-foot { text-align: center; }
}
@media (min-width: 900px) { .srow .go { display: none; } }
@media (prefers-reduced-motion: reduce) { .pane, .sheet, .sheet-bg, .row-in { transition: none !important; } }

/* tirar para refrescar: mientras actualiza, el indicador ocupa su hueco */
.ptr.busy { height: 44px; }
.ptr.busy .spinner { top: 11px; opacity: 1; }
