/* More and Settings: the pieces of this redesigned screen only (docs/mockups/redesign/screens.css); shared ones are
   css/widgets.css. Colours come from the tokens in style.css only. The shell's .screen class is not on #app for this
   route, so the one column and the card's gap are set here; the sections drawn by older views keep their own cards. */
/* padding-inline: main's 16 px plus 4 makes the 20 px side margin of the .screen routes (Today, Meals, Insights) */
.mor{display:flex;flex-direction:column;gap:18px;max-width:560px;margin-inline:auto;padding-block-end:24px;padding-inline:4px}
.mor>.card,.mor-group>.card{display:flex;flex-direction:column;gap:14px;margin:0}
.mor-group{display:flex;flex-direction:column;gap:8px}
.mor-group>.card{padding-block:6px}

/* a row: the item's text is the ink colour, the value and chevron sit together at the end */
.mor .item{color:var(--ink);font:inherit}
.mor .item .val .chev{color:var(--mut)}
/* a long value (a time zone name) wraps at the end instead of squeezing the row's name into a narrow column */
.mor .item .val .ltr{max-width:9.5em;text-align:end}

/* one setting: its name and line above the segmented control */
.mor-setting{display:flex;flex-direction:column;gap:10px}
.mor-setting+.mor-setting{padding-block-start:14px;border-block-start:1px solid var(--line)}
.mor-setting .tt,.mor-account .tt{display:flex;flex-direction:column;min-width:0}
.mor-setting .tt small,.mor-account .tt small{color:var(--mut);font-size:.8rem;font-weight:500}
/* a setting's detail (Amounts per food under Food tracking): its row indented under the setting it belongs to */
.mor-detail{margin-block-start:-6px;padding-inline-start:20px;border-inline-start:2px solid var(--line)}
/* Food preferences: two text fields, one above the other, inside the group's card */
.mor-prefs{display:flex;flex-direction:column;gap:12px;padding-block:8px}

/* the account: who, the sync state in a line, Sign out at the end */
.mor>.mor-account{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.mor-account .tt b{overflow-wrap:anywhere}
.mor-account .btn{flex:none;white-space:nowrap}
/* with no account, Sign in is the card's one way on: full width, as a form's Save */
.mor-account .mor-acts:has(>.btn.block){flex:1 0 100%}
.mor-account .mor-acts>.btn.block{justify-content:center}
/* the open offer of this phone's entries: a line of its own under who, its Add at the end */
.mor-account .mor-bring{flex:1 0 100%;flex-wrap:wrap;align-items:center;justify-content:space-between}
.mor-account .mor-bring>span{flex:1 1 12em}
/* the account form's Forgot password?, as on the sign-in screen (legacy.css .auth .btn.forgot) */
.mor-acct .btn.forgot{align-self:flex-start;min-height:48px;padding-inline:0;font-size:.9em;font-weight:500}

/* the sync state: its notes, then the one action, then what was refused */
.mor-sync .btn{align-self:flex-start}
.mor-refused{cursor:default}
.mor-refused .rowic{color:var(--red)}
.mor-sync .note>.i+span b{display:block}

/* Share with a friend (views/share-friend.js): the intro, a tick per panel, the link's length, one action, the links */
.fs{display:flex;flex-direction:column;gap:14px}
.fs .card{margin:0}
.fs .sec{margin:6px 0 0}
.fs-head{grid-template-columns:minmax(0,1fr) auto;cursor:default}
.fs-row:first-child .fs-head{border-top:0}
.fs-open{display:flex;align-items:center;gap:10px;min-width:0;min-height:48px;background:none;border:0;padding:0;font:inherit;color:inherit;text-align:start;cursor:pointer}
.fs-open .tt{flex:1}
.fs-open:disabled{cursor:default}
.fs-count{color:var(--mut);white-space:nowrap}
.fs-chev{flex:none;color:var(--mut);transform:rotate(90deg);transition:transform .15s}
.fs-row.open .fs-chev{transform:rotate(-90deg)}
.fs-pick:disabled{cursor:default;opacity:.6}
/* A dietitian's or coach's link (views/grant-panels.js): its panels' switches across the form's width */
.gr-panels{flex:1 1 100%;min-width:0}
.gr-panels>p{margin:4px 0}
.fs-items{display:flex;flex-direction:column;padding:0 0 10px}
.fs-item{display:flex;align-items:center;gap:12px;min-height:48px;background:none;border:0;padding:0 4px;font:inherit;color:inherit;text-align:start;cursor:pointer}
.fs-item:disabled{cursor:default;opacity:.55}
.fs-box{flex:none;width:22px;height:22px;border-radius:6px;border:2px solid var(--line);background:var(--surface2);position:relative}
.fs-item[aria-checked=true] .fs-box{background:var(--a);border-color:var(--a)}
.fs-box .i{position:absolute;inset:1px;width:16px;height:16px;color:var(--on-accent);opacity:0}
.fs-item[aria-checked=true] .fs-box .i{opacity:1}
.fs-lbl{min-width:0}
.fs-days{display:flex;flex-direction:column;gap:8px}
.fs-made{display:flex;flex-direction:column;gap:12px}
/* Advanced access: one quiet line at the very bottom of More, far from Share with a friend */

/* Search (views/search.js): the field under the title, then the directory by place or the groups of results; a
   result names its place at the end of its row, short enough to leave the name the width */
.sch-find>.i{position:absolute;inset-inline-start:14px;top:16px;color:var(--mut);pointer-events:none}
.sch-find input::-webkit-search-cancel-button{display:none}
.sch-body{display:flex;flex-direction:column;gap:18px}
.sch-intro{margin:-8px 0 0;color:var(--mut)}
.sch-place{font-weight:600;font-size:.78rem;max-width:7em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sch-times{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 12px;padding-inline-start:50px}
.sch-time{font-weight:600;font-size:.82rem;padding:0 12px}
.sch-none{display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center}
.sch-none .actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
