/* BLOTHOR v3 · layout for phones (the kit's, 0.1.0). It assumes no routes, tabs or offline behaviour. The bottom
   sheet is here because the kit has it; the owner has not approved it yet. The bottom bar he has (2026-10-09): the
   kit only left room for one, so the bar itself is written here, at the end. */
[data-blothor] .bt-mobile-shell{box-sizing:border-box;min-height:100dvh;padding-top:env(safe-area-inset-top,0px)}
[data-blothor] .bt-mobile-content{padding:16px 16px calc(24px + env(safe-area-inset-bottom,0px))}
[data-blothor] .bt-mobile-content.has-bottom-navigation{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
[data-blothor] .bt-mobile-topbar{min-height:56px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--bt-border)}
[data-blothor] .bt-touch-action{min-width:48px;min-height:48px}
[data-blothor] .bt-mobile-actions{display:flex;gap:12px;flex-wrap:wrap;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));background:var(--bt-bg);border-top:1px solid var(--bt-border)}
@media(max-width:480px){[data-blothor] .bt-dialog.sheet{width:100%;max-width:none;margin:auto 0 0;border-radius:20px 20px 0 0;max-height:85dvh;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}}
/* The bottom bar: up to four places, each an icon over a word. Buttons or links; the one the person is in carries
   aria-current="page" (leave the attribute out on the others), one that opens a panel carries aria-expanded.
   Give the content `has-bottom-navigation` (above) so nothing ends up under it.
     <nav class="bt-bottom-nav" aria-label="Secciones"><button type="button" aria-current="page"><svg class="bt-icon">…</svg><span>Inicio</span></button>…</nav> */
[data-blothor] .bt-bottom-nav{position:fixed;z-index:6;left:0;right:0;bottom:0;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--bt-border);background:var(--bt-bg)}
[data-blothor] .bt-bottom-nav :is(a,button){position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:56px;padding:4px;border:0;border-radius:var(--bt-radius-control);background:transparent;color:var(--bt-muted);font:400 11px/1.4 var(--bt-display);text-decoration:none;cursor:pointer}
[data-blothor] .bt-bottom-nav :is([aria-current='page'],[aria-expanded='true']){background:var(--bt-active);color:var(--bt-text)}
[data-blothor] .bt-bottom-nav :disabled{opacity:.45;cursor:not-allowed}
[data-blothor] .bt-bottom-nav :focus-visible{outline:2px solid var(--bt-focus);outline-offset:-2px}
[data-blothor] .bt-bottom-nav .bt-icon{width:22px;height:22px}
/* T20 tanda 5 (owner, 2026-10-19): the phone like a native app. One set of measures for every app, close to what
   iPhone and Android do: a 64 px bar with 26 px icons and 12 px words, the place you are in marked with a soft pill
   behind its icon (Material 3), a translucent bar where the browser can blur, a 56 px top bar with a 20 px title and a
   40 px round account button. Apps that draw their own bar take these values from the variables below. */
[data-blothor]{--bt-nav-height:64px;--bt-nav-icon:26px;--bt-nav-label:12px;--bt-nav-pill-width:60px;--bt-nav-pill-height:34px;--bt-topbar-height:56px;--bt-topbar-title:20px;--bt-avatar-size:40px}
[data-blothor] .bt-bottom-nav{padding:4px 8px calc(4px + env(safe-area-inset-bottom,0px));gap:0}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){[data-blothor] .bt-bottom-nav{background:color-mix(in srgb,var(--bt-bg) 86%,transparent);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}
[data-blothor] .bt-bottom-nav :is(a,button){min-height:calc(var(--bt-nav-height) - 8px);gap:4px;font:500 var(--bt-nav-label)/1.2 var(--bt-display);-webkit-tap-highlight-color:transparent;transition:transform var(--bt-fast)}
[data-blothor] .bt-bottom-nav :is(a,button):active{transform:scale(.94)}
[data-blothor] .bt-bottom-nav :is([aria-current='page'],[aria-expanded='true']){background:transparent;color:var(--bt-text);font-weight:700}
[data-blothor] .bt-bottom-nav .bt-icon{box-sizing:content-box;width:var(--bt-nav-icon);height:var(--bt-nav-icon);padding:4px calc((var(--bt-nav-pill-width) - var(--bt-nav-icon)) / 2);border-radius:var(--bt-radius-pill);transition:background var(--bt-fast)}
[data-blothor] .bt-bottom-nav :is([aria-current='page'],[aria-expanded='true']) .bt-icon{background:var(--bt-active)}
[data-blothor] .bt-mobile-content.has-bottom-navigation{padding-bottom:calc(var(--bt-nav-height) + 32px + env(safe-area-inset-bottom,0px))}
[data-blothor] .bt-mobile-topbar{min-height:var(--bt-topbar-height)}
[data-blothor] .bt-mobile-title{margin:0;font:700 var(--bt-topbar-title)/1.2 var(--bt-display);letter-spacing:-.01em}
[data-blothor] .bt-avatar{display:inline-grid;place-items:center;width:var(--bt-avatar-size);height:var(--bt-avatar-size);flex:none;border-radius:50%;border:0;background:var(--bt-primary);color:var(--bt-on-primary,#fff);font:700 15px/1 var(--bt-display);cursor:pointer;-webkit-tap-highlight-color:transparent}
/* U2 (doc 270, rule 4): on a computer the same places go in a bar at the left, as in Drive or Spotify. Give the bottom
   bar the class `bt-side-on-desk` and <body> the class `has-side-navigation`; from 768 px (a tablet too, where the «+»
   already sits in the corner), below it nothing changes. The bar
   starts under the app's top bar (--bt-side-top, its height) and the page keeps clear of it. */
[data-blothor]{--bt-side-width:232px;--bt-side-top:72px}
@media(min-width:768px){
[data-blothor] .bt-bottom-nav.bt-side-on-desk{top:var(--bt-side-top);right:auto;bottom:0;width:var(--bt-side-width);box-sizing:border-box;display:flex;flex-direction:column;gap:4px;padding:24px 12px;border-top:0;border-right:1px solid var(--bt-border);background:var(--bt-bg);-webkit-backdrop-filter:none;backdrop-filter:none}
[data-blothor] .bt-bottom-nav.bt-side-on-desk :is(a,button){flex:none;flex-direction:row;justify-content:flex-start;gap:12px;min-height:48px;padding:0 12px;border-radius:var(--bt-radius-pill);font-size:14px;text-align:left}
[data-blothor] .bt-bottom-nav.bt-side-on-desk .bt-icon{padding:0;width:22px;height:22px;background:transparent}
[data-blothor] .bt-bottom-nav.bt-side-on-desk :is([aria-current='page'],[aria-expanded='true']){background:var(--bt-active)}
[data-blothor] .bt-bottom-nav.bt-side-on-desk :is([aria-current='page'],[aria-expanded='true']) .bt-icon{background:transparent}
[data-blothor] body.has-side-navigation{padding-left:var(--bt-side-width)}
}
