/* Eden staff site on a phone, in the style of Shopify's mobile admin (Polaris): light grey canvas, white
 * cards with soft edges, a white top bar, black-and-grey tabs along the bottom, and More as a full page of
 * grouped rows with chevrons. Phones only (700px and narrower); desktop and iPad are untouched.
 * Loaded after the other stylesheets so it wins where they overlap. Goes with js/phone.js. */
.ph-nav,.ph-top,.ph-logo,.ph-page{display:none}

@media (max-width:700px){
  :root{--p-card:0 2px 10px rgba(91,60,30,.06),0 0 0 1px rgba(91,60,30,.05)}
  html body .sb-main{padding-bottom:calc(64px + env(safe-area-inset-bottom))}

  /* top bar: Eden's wordmark, the page, search and your account */
  html body .ed-bar.sb-bar{min-height:54px;padding:calc(8px + env(safe-area-inset-top,0px)) 12px 8px;gap:10px;flex-wrap:nowrap}
  html body #sbOpen,html body .sb-scrim,html body .sb-pin,html body .sb-back,html body .ph-logo{display:none!important}
  html body .sb-barbrand{display:inline-block;margin:0 2px 0 4px;flex:none}
  html body .sb-crumb{flex:1 1 auto;min-width:0;margin:0;font-size:.98rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body .sb-crumb .sb-crumb-g{display:none}
  html body .ph-top{display:flex;align-items:center;gap:4px;flex:none;margin-left:auto}
  html body .ph-ib{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:0;background:transparent;color:var(--ink)}
  html body .ph-ib:active{background:var(--fill,#efe7db)}
  html body .ph-ib svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  html body .ph-me{border:0;background:none;padding:2px}
  html body .ph-meav{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--ember,#b0703f);color:#fff;font-size:.72rem;font-weight:600}
  html body .sb-bar .ed-actions .ed-btn{padding:6px 10px;font-size:.8rem}

  /* tabs along the bottom */
  html body .ph-nav{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;left:0;right:0;bottom:0;z-index:160;background:rgba(247,244,238,.97);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border-top:1px solid rgba(91,60,30,.12);padding:4px 2px calc(4px + env(safe-area-inset-bottom))}
  html body .ph-nav[hidden]{display:none}
  html body .ph-nav>a,html body .ph-nav>button{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px 3px;border:0;background:none;font:inherit;font-size:.66rem;font-weight:500;color:#6e6457;text-decoration:none;min-width:0;-webkit-tap-highlight-color:transparent}
  html body .ph-nav span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  html body .ph-nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  html body .ph-nav [aria-current]{color:#8a5226;font-weight:650}
  html body .ph-nav [aria-current] svg{stroke-width:2.2}
  html body .ph-badge{position:absolute;top:2px;left:calc(50% + 5px);min-width:17px;height:17px;padding:0 5px;border-radius:9px;background:var(--ember,#b0703f);color:#fff;font-style:normal;font-size:.6rem;font-weight:700;line-height:17px;text-align:center}
  html body .ph-dot{position:absolute;top:6px;left:calc(50% + 8px);width:8px;height:8px;border-radius:50%;background:var(--ember,#b0703f)}

  /* More: every section, in grouped rows */
  html body .ph-page{display:flex;flex-direction:column;position:fixed;left:0;right:0;top:0;bottom:calc(57px + env(safe-area-inset-bottom));z-index:150;background:var(--ivory,#f3eee5);color:var(--ink);animation:phIn .2s ease}
  body.ph-page-open{overflow:hidden}
  html body .ph-ph{background:rgba(247,244,238,.98);border-bottom:1px solid rgba(91,60,30,.1);padding:calc(10px + env(safe-area-inset-top,0px)) 16px 12px}
  html body .ph-phrow{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
  html body .ph-ph h2{margin:0;font-family:var(--serif);font-weight:400;font-size:1.7rem;letter-spacing:.3em;text-transform:uppercase;color:var(--ink)}
  html body .ph-search{display:flex;align-items:center;gap:8px;background:#efe7db;border-radius:10px;padding:0 12px;height:40px;color:#6e6457}
  html body .ph-search svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  html body .ph-search input{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:16px;color:var(--ink);outline:none;-webkit-appearance:none;appearance:none;padding:0}
  html body .ph-body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:14px 12px 24px}
  html body .ph-card{background:#fff;border-radius:16px;box-shadow:var(--p-card);margin-bottom:14px;overflow:hidden}
  html body .ph-card h3{margin:0;padding:12px 16px 4px;font-family:var(--sans);font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#8b8376}
  html body .ph-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto 16px;align-items:center;gap:12px;width:100%;padding:12px 16px;border:0;border-top:1px solid rgba(91,60,30,.08);background:#fff;color:var(--ink);text-decoration:none;text-align:left;font:inherit;-webkit-tap-highlight-color:transparent}
  html body .ph-card h3+.ph-row,html body .ph-card>.ph-row:first-child{border-top:0}
  html body .ph-row:active,html body .ph-row[aria-current]{background:#f6e6d6}
  html body .ph-row[aria-current] b{color:#8a5226}
  html body .ph-ri{display:grid;place-items:center;color:#8a5226}
  html body .ph-ri svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  html body .ph-rt{display:flex;flex-direction:column;min-width:0}
  html body .ph-rt b{font-size:.92rem;font-weight:550;line-height:1.3}
  html body .ph-rt small{font-size:.78rem;color:#6e6457;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body .ph-row.sub{padding-top:10px;padding-bottom:10px}
  html body .ph-row.sub .ph-ri{visibility:hidden}
  html body .ph-row.sub b{font-weight:450;font-size:.88rem;color:#4a4e53}
  html body .ph-chev{width:16px;height:16px;fill:none;stroke:#b3ada3;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  html body .ph-badge.inline{position:static;display:inline-block}
  html body .ph-tag{font-style:normal;font-size:.72rem;font-weight:600;background:#f6e6d6;color:#8a5226;border-radius:8px;padding:2px 8px;white-space:nowrap}
  html body .ph-row.danger,html body .ph-row.danger .ph-ri{color:#a33a2c}
  html body .ph-acctrow{display:flex;align-items:center;gap:12px;padding:14px 16px}
  html body .ph-acctrow b{display:block;font-size:.95rem;font-weight:600}
  html body .ph-acctrow small{font-size:.8rem;color:#6e6457}
  html body .ph-av{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--ember,#b0703f);color:#fff;font-weight:600;font-size:.85rem;flex:none}
  html body .ph-acct .ph-acctrow+.ph-row{border-top:1px solid rgba(91,60,30,.08)}
  html body .ph-empty{text-align:center;color:#6e6457;font-size:.9rem;padding:24px 0}
  html body input,html body select,html body textarea{font-size:16px}
}
@keyframes phIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media print{.ph-nav,.ph-page,.ph-top,.ph-logo{display:none!important}}
