/* The staff app: the panel's own screens as they look INSIDE the native staff app, at phone width.
   In a browser nothing here applies: every rule is scoped to html[data-shell], which only the app's shell sets (before the
   first paint). The panel's design itself lives in studio.css and is not changed here; this is the app's coat over it:
   a dark band on top, framed cards, and the floating bar (the same language as the member app, static/css/member.css).
   Colours come from the panel's own tokens, so the three looks (white, calm, dark) keep working.
   Approved sketch: docs/sketches/app-front-and-staff.html (owner, 23/11/2026). */
.app-brand,.app-me{display:none}

html[data-shell]{--app-deep:color-mix(in srgb,var(--brand) 26%,#0B1610);--app-page:#EDF1EC;--app-card:#fff;--app-frame:#D5DCD6;--app-hair:#E4E9E4}
html[data-shell][data-look=calm]{--app-page:var(--chalk);--app-card:var(--linen);--app-frame:#CFD7CF;--app-hair:var(--line)}
html[data-shell][data-look=dark]{--app-page:var(--chalk);--app-card:var(--linen);--app-frame:var(--line-2);--app-hair:var(--line)}

@media (max-width:860px){
  html[data-shell] body:has(>.shell){background:var(--app-page);padding-top:0}
  html[data-shell] .shell main{padding:0 14px 104px}

  /* ---- the band: the studio, the search, the account; on the home screen also the greeting ---- */
  html[data-shell] main>.quickbar{position:relative;display:flex;align-items:center;gap:10px;margin:0 -14px 14px;
    padding:calc(12px + var(--native-top,0px)) 16px 14px;border-radius:0 0 24px 24px;color:#fff;
    background:radial-gradient(120% 140% at 0% 0%,rgba(201,166,107,.34),transparent 58%),linear-gradient(160deg,color-mix(in srgb,var(--brand) 46%,#0B1610) 0%,var(--app-deep) 72%)}
  html[data-shell] .app-brand{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:44px;color:#fff;text-decoration:none}
  html[data-shell] .app-brand .mark{width:44px;height:44px;border-radius:14px;font-size:1.3rem;border:1.5px solid rgba(255,255,255,.22)}
  html[data-shell] .app-brand span{min-width:0}
  html[data-shell] .app-brand b{display:block;font-size:1.03rem;font-weight:600;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html[data-shell] .app-brand small{display:block;font-size:.83rem;color:#B9C8BD}
  html[data-shell] main>.quickbar .find{width:44px;height:44px;min-height:44px;padding:0;border-radius:14px;justify-content:center;flex:none;
    border:1.5px solid rgba(255,255,255,.22);background:rgba(255,255,255,.07);color:#fff}
  html[data-shell] main>.quickbar .find span,html[data-shell] main>.quickbar .find kbd{display:none}
  html[data-shell] main>.quickbar .find .ico{width:21px;height:21px}
  html[data-shell] .app-me{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;flex:none;font-weight:600;font-size:1.05rem;color:#14241A;background:#E8D2A6;text-decoration:none}
  html[data-shell] main>.quickbar :focus-visible{outline:3px solid #fff;outline-offset:2px}

  /* the home screen: the greeting belongs to the band, and the first row of figures rides up over it */
  html[data-shell] main>.quickbar:has(+ .head .v-head){margin-bottom:0;border-radius:0;padding-bottom:4px;
    background:linear-gradient(180deg,color-mix(in srgb,var(--brand) 44%,#0B1610),color-mix(in srgb,var(--brand) 36%,#0B1610))}
  html[data-shell] main>.head:has(.v-head){position:relative;overflow:hidden;display:block;margin:0 -14px 14px;padding:14px 18px 22px;border-radius:0 0 30px 30px;color:#fff;
    background:radial-gradient(80% 110% at 0% 100%,rgba(201,166,107,.3),transparent 62%),linear-gradient(180deg,color-mix(in srgb,var(--brand) 36%,#0B1610),var(--app-deep) 80%)}
  html[data-shell] main>.head:has(.v-head):has(+ .v-grid){padding-bottom:78px;margin-bottom:0}
  html[data-shell] main>.head:has(.v-head)::after{content:"";position:absolute;inset-inline-end:-60px;bottom:-150px;width:200px;height:200px;border-radius:50%;border:32px solid rgba(255,255,255,.05);pointer-events:none}
  html[data-shell] main>.head:has(.v-head) .v-face{display:none}
  html[data-shell] main>.head:has(.v-head) h1{color:#fff;font-size:1.8rem;font-weight:600;letter-spacing:-.025em;line-height:1.1}
  html[data-shell] main>.head:has(.v-head) .v-head p{color:#E8D2A6;font-weight:500;font-size:.93rem;margin-top:7px}
  html[data-shell] main>.head:has(.v-head)>div + div{margin-top:4px;position:relative;z-index:1}
  html[data-shell] main>.head:has(.v-head) .v-date{display:inline;color:#D6E0D9;font-size:.9rem}
  html[data-shell] main>.head:has(.v-head) .help-link{color:#D6E0D9;min-height:44px;display:inline-flex;align-items:center}
  html[data-shell] main>.head:has(.v-head) + .v-grid{margin-top:-62px;position:relative}

  /* the four figures of the morning: each with its own colour, as in the member app */
  html[data-shell] main:has(>.head .v-head) .v-grid[aria-label]>.v-card.c3{padding:13px 14px 12px;gap:8px}
  html[data-shell] main:has(>.head .v-head) .v-grid[aria-label]>.v-card.c3>h2{display:flex;align-items:center;gap:8px;font-size:.87rem;color:var(--ink-2)}
  html[data-shell] main:has(>.head .v-head) .v-grid[aria-label]>.v-card.c3>h2::before{content:"";width:26px;height:26px;border-radius:9px;flex:none;background:var(--calm-soft) center/15px no-repeat}
  html[data-shell] main:has(>.head .v-head) .v-grid[aria-label]>.v-card.c3:nth-child(1)>h2::before{background-color:var(--money-soft);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F9D63' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16l5-5 4 4 7-8'/%3E%3Cpath d='M15 7h5v5'/%3E%3C/svg%3E")}
  html[data-shell] main:has(>.head .v-head) .v-grid[aria-label]>.v-card.c3:nth-child(2)>h2::before{background-color:var(--lead-soft);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B74E2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M17 5.500a3 3 0 0 1 0 5.500M21.500 20a5 5 0 0 0-3.500-4.800'/%3E%3C/svg%3E")}
  html[data-shell] main:has(>.head .v-head) .v-grid[aria-label]>.v-card.c3:nth-child(3)>h2::before{background-color:var(--risk-soft);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0552F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 16H3z'/%3E%3Cpath d='M12 10v4M12 17v.01'/%3E%3C/svg%3E")}
  html[data-shell] main:has(>.head .v-head) .v-grid[aria-label]>.v-card.c3:nth-child(4)>h2::before{background-color:var(--wait-soft);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B97A06' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='3'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E")}
  html[data-shell] main:has(>.head .v-head) .v-grid[aria-label]>.v-card.c3 .v-num{font-size:1.5rem}

  /* ---- framed surfaces ---- */
  html[data-shell] .v-card,html[data-shell] main .panel,html[data-shell] main .card{border:1.5px solid var(--app-frame);border-radius:20px;box-shadow:none}
  html[data-shell] .v-card{background:var(--app-card);padding:14px 14px 13px}
  html[data-shell] .v-card.lit{border-color:var(--money)}
  html[data-shell] .v-card.lit-risk{border-color:var(--risk)}
  html[data-shell] .v-card:not(.c3) h2{font-size:1.05rem;letter-spacing:-.01em}
  html[data-shell] .v-todo>a,html[data-shell] .v-row,html[data-shell] .v-item{border-top:1.5px solid var(--app-hair);min-height:56px}
  html[data-shell] .v-chip{border-radius:10px}
  html[data-shell] .v-go{font-size:.83rem;padding:7px 12px}
  html[data-shell] .v-row{grid-template-columns:58px 4px minmax(0,1fr) 76px;padding:9px 0}
  html[data-shell] .v-row time{display:grid;place-items:center;height:44px;border-radius:12px;background:var(--well);font-size:1rem;font-weight:600;letter-spacing:-.02em}
  html[data-shell] .v-row b{font-size:1rem}
  html[data-shell] .v-bar{height:6px}
  html[data-shell] main .btn{border-radius:14px;min-height:46px;font-weight:600}
  html[data-shell] main .btn.sm{border-radius:12px;min-height:44px}
  html[data-shell] main .field input,html[data-shell] main .field select,html[data-shell] main .field textarea,html[data-shell] main input[type=search]{min-height:50px;border-radius:14px;border-width:1.5px;font-size:1rem}
  html[data-shell] main .field textarea{padding-block:12px}
  html[data-shell] main>.head{margin-bottom:14px}
  html[data-shell] main>.head h1{letter-spacing:-.02em}
  html[data-shell] .hubtabs,html[data-shell] .sectabs{margin-inline:-14px;padding-inline:14px}
  html[data-shell] main>.notice{border-radius:16px}

  /* ---- the floating bar: the panel's own five places, drawn like the member app's bar ---- */
  html[data-shell] .side{inset:auto 12px 2px 12px;height:68px;padding:0;border:1.5px solid var(--app-frame);border-radius:26px;background:var(--app-card);
    box-shadow:0 16px 30px -14px rgba(18,22,19,.38);overflow:visible}
  html[data-shell] .side .nav{align-items:stretch;justify-content:stretch;height:100%;width:100%;gap:0}
  html[data-shell] .side .nav a{flex:1 1 0;min-width:0;min-height:0;height:100%;padding:0;flex-direction:column;align-items:center;justify-content:center;gap:4px;
    font-size:.8rem;font-weight:500;color:var(--ink-3);background:none;border-radius:20px}
  html[data-shell] .side .nav a .ico{width:44px;height:30px;padding:4px 11px;border-radius:15px;box-sizing:border-box;color:inherit}
  html[data-shell] .side .nav a[aria-current]{color:var(--ink);font-weight:600;background:none}
  html[data-shell] .side .nav a[aria-current] .ico{background:var(--mat-soft);color:var(--mat-ink)}
}

/* ---- the sign-in screen of the staff app ---- */
html[data-shell] body:has(>.center){padding-top:0;background:#EDF1EC}
html[data-shell] body:has(>.center) .center{position:relative;place-items:start center;min-height:calc(100dvh - 64px);padding:calc(84px + var(--native-top,0px)) 16px 24px;
  background:radial-gradient(90% 240px at 100% 0%,rgba(201,166,107,.4),transparent 70%),linear-gradient(180deg,#234231 0,#14241A 270px,#EDF1EC 270px)}
html[data-shell] body:has(>.center) .center .card{border:1.5px solid #D5DCD6;border-radius:26px;padding:26px 22px 22px;box-shadow:0 22px 40px -26px rgba(20,36,26,.7);background:#fff}
html[data-shell] body:has(>.center) .center .card h1{font-size:1.6rem;letter-spacing:-.02em}
html[data-shell] body:has(>.center) .center .field input{min-height:54px;border-radius:14px;border-width:1.5px;font-size:1.07rem}
html[data-shell] body:has(>.center) .center .btn.primary{min-height:56px;border-radius:16px;font-weight:600;font-size:1.07rem}
html[data-shell] body:has(>.center) .legal-foot{margin-top:0}
