/* Fit the approved phone contents to the actual viewport; app.css stays copied. */
body{padding:0;background:var(--bg-page)}
.phone{width:100%;max-width:none;height:100dvh;border-radius:0;box-shadow:none}
.screen{top:env(safe-area-inset-top,0px)}
.screen.mail{padding-bottom:140px}
.screen.mail[data-send-preview="true"]:not(.withpanel){padding-bottom:var(--s-32)}
.screen.mail[data-send-preview="true"]:not(.withpanel) > :not(.navbar):not(.remind){display:none}
.dock[hidden]{display:none}
.tabbar{bottom:max(var(--s-24),env(safe-area-inset-bottom,0px))}
/* Design 3 parts: design/proposed/2026-11-12-owner-changes/parts.css as drawn (ticket 95), then the build's own rules. */
/* 1a. The card title is a link to the mail; the name and arrow are one button that opens the details */
.t-head h3{position:relative}
.t-title{display:block;color:inherit;text-decoration:none;border-radius:var(--r-12)}
.t-title::after{content:"";position:absolute;inset:-12px -8px 0 -8px;border-radius:var(--r-12)}
.t-title:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.t-title:focus-visible{outline:none} .t-title:focus-visible::after{outline:2px solid var(--focus)}
.t-more{font:inherit;font-size:var(--t-subhead);line-height:var(--lh-subhead);min-height:var(--tap-min);margin:-4px 0 -8px calc(-1 * var(--s-8));padding:0 var(--s-8);border-radius:var(--r-pill);background:none;text-align:left}
.t-more .chev{color:var(--text-second)}
.t-more:hover{background:var(--bg-hover)} .t-more:active{background:var(--bg-pressed)}
.task.hero .t-more:hover{background:var(--hero-hover)} .task.hero .t-more:active{background:var(--hero-pressed)}
.t-more[aria-expanded="true"] .chev{transform:rotate(180deg)}
.task.hero .t-more .chev{color:var(--hero-text)}

/* 1b. The round button opens a short menu (sheet): Done, Change due date, Not mine, Delete */
.menu .opt{gap:var(--s-12);text-decoration:none;color:var(--text-main);min-height:60px}
.menu .oico{width:32px;height:32px;border-radius:50%;background:var(--quiet);display:grid;place-items:center;flex:none;color:var(--text-main)}
.menu .oico svg{width:18px;height:18px}
.menu .oico.ok{background:var(--signal-done);color:var(--check-on-done)}
.menu .otxt{flex:1;min-width:0;display:grid}
.menu .otxt b{font-size:var(--t-body);line-height:var(--lh-body);font-weight:600}
.menu .otxt span{font-size:var(--t-footnote);line-height:var(--lh-footnote);color:var(--text-second)}
.menu .go{width:20px;height:20px;color:var(--text-faint);flex:none}
.sheet .sub{text-align:center;margin-top:calc(-1 * var(--s-12))}
/* due date: the approved week strip with a month line and week chevrons */
.duehead{display:flex;align-items:center;justify-content:space-between}
.duehead b{font-size:var(--t-body);line-height:var(--lh-body);font-weight:600}
.sheet .week{margin-top:0}

/* 1c. Reply panel: the approved sheet, docked under the mail with no dimming, so the mail stays readable above */
.panel{position:absolute;left:0;right:0;bottom:0;z-index:5;background:var(--bg-raised);color:var(--text-main);border-radius:var(--r-32) var(--r-32) 0 0;box-shadow:var(--shadow-raised),0 -1px 0 var(--line);padding:var(--s-8) var(--screen-side) var(--s-32);display:grid;gap:var(--s-12)}
.panel h2{font-size:var(--t-headline);line-height:var(--lh-headline);font-weight:600;text-align:center}
.panel .field textarea{min-height:112px}
.drafted{display:inline-flex;align-items:center;gap:var(--s-4)}
.drafted svg{width:14px;height:14px}
.screen.withpanel{padding-bottom:400px}

/* 1d. Mail text, tidied: attachments as files, earlier mails in the thread folded into rows */
.mailfiles{display:flex;flex-wrap:wrap;gap:var(--s-8);margin-top:var(--s-16)}
.mailfiles .file{padding-right:var(--s-12)}
.thread{margin-top:var(--s-24)}
.thread .row .txt b{font-size:var(--t-subhead);line-height:var(--lh-subhead)}
.mine{font-size:var(--t-caption);line-height:var(--lh-caption);font-weight:600;color:var(--text-second);margin-top:var(--s-24)}
.waiting{margin-top:var(--s-16)}

/* 2c. Another week: a quiet Today link at the top right brings you back */
.lthead{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--s-8)}
.lthead .navlink{display:inline-flex;align-items:center;text-decoration:none;margin-top:6px;margin-right:calc(-1 * var(--s-8))}

/* 3c. A CAD-only drawing is listed but does not open on the phone */
.row.cad .txt b{color:var(--text-main)}
.row.cad .ico{color:var(--text-second)}

/* 4a. Notes become tasks: a bar under the note with what the AI found; type and day can be changed */
.screen.withtasks{padding-bottom:360px}
.bigpaper.short textarea{height:192px}
.notetasks{position:absolute;left:0;right:0;bottom:0;z-index:5;background:var(--bg-raised);color:var(--text-main);border-radius:var(--r-32) var(--r-32) 0 0;box-shadow:var(--shadow-raised),0 -1px 0 var(--line);padding:var(--s-16) var(--screen-side) var(--s-32);display:grid;gap:var(--s-12)}
.notetasks .lbl{font-size:var(--t-caption);line-height:var(--lh-caption);font-weight:600;color:var(--text-second)}
.notetasks .hint{font-size:var(--t-subhead);line-height:var(--lh-subhead);color:var(--text-second)}
.ntask{display:grid;gap:var(--s-8);padding-bottom:var(--s-12);box-shadow:inset 0 -1px 0 var(--line)}
.ntask>b{font-size:var(--t-body);line-height:var(--lh-body);font-weight:600}
.ntask .opts{display:flex;gap:var(--s-8);align-items:center}
.ntask .seg{flex:1;min-width:0}
.ntask .seg button{padding:0 var(--s-4)}
.datechip{display:inline-flex;align-items:center;gap:var(--s-4);min-height:var(--tap-min);padding:0 var(--s-12);border-radius:var(--r-pill);background:var(--quiet);color:var(--text-main);font-size:var(--t-subhead);line-height:var(--lh-subhead);font-weight:600;flex:none;text-decoration:none}
.datechip:hover{background:var(--quiet-hover)}
.datechip svg{width:16px;height:16px}
.t-title b{font-weight:inherit}
a.file{text-decoration:none;color:inherit}
/* review round 1 */
.panel .field textarea{min-height:168px}
.screen.withpanel{padding-bottom:460px}
.t-title::after{inset:-16px -8px 0 -8px}
/* swipe alternative: week buttons that show only when the strip has keyboard focus */
.wkkeys{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.wkkeys:focus-within{position:static;width:auto;height:auto;clip:auto;display:flex;justify-content:space-between;margin-top:var(--s-8)}
.notetasks .skip{justify-self:start}
.notetasks.folded{padding:var(--s-8) var(--screen-side) var(--s-32)}
.notetasks.folded .row{padding-left:0;min-height:var(--tap-min)}
/* review round 2 */
.t-more{margin-top:0}
.bigpaper.kb textarea{height:224px}
/* owner's notes on the live preview, 12 Nov */
.navbar.stick{position:sticky;top:calc(-1 * var(--s-8));z-index:3;background:var(--bg-page);margin-inline:calc(-1 * var(--screen-side));padding-inline:calc(var(--screen-side) - var(--s-8));box-shadow:0 1px 0 var(--line)}
.menu .opt .avatar{flex:none}
.mailfiles .file.photo{padding-left:var(--s-4)}
.mailfiles .file .thumb{display:inline-block;width:36px;height:36px;border-radius:var(--r-8,8px);background:linear-gradient(135deg,#B9C4CF,#7D8C99);flex:none}
.mailfiles .file.cad{color:var(--text-second);font-weight:400;padding-right:var(--s-12)}
.filestep{display:flex;align-items:center;justify-content:space-between;gap:var(--s-8);margin-top:var(--s-12);font-size:var(--t-subhead);color:var(--text-second)}
.filestep b{color:var(--text-main)}
/* owner, 12 Nov (H314): three-line menu button on the left, the action on the right */
.tick.menuic{order:-1;background:var(--quiet);color:var(--text-main);border-radius:50%}
.tick.menuic::before,.tick.menuic::after{content:none}
.tick.menuic svg{width:22px;height:22px}
.tick.menuic:hover{background:var(--quiet-hover)}
.t-foot:has(.menuic),.dock:has(.menuic){justify-content:space-between}
.t-foot:has(.menuic)>:only-child,.dock:has(.menuic)>:only-child{margin-right:auto}
.task.hero .tick.menuic{background:var(--hero-hover);color:var(--hero-text)}
/* The build's own Design 3 rules, by ticket. */
/* 92: Back and the title stay at the top; the thin line shows only once the page has scrolled. */
.screen > .navbar{position:sticky;top:calc(-1 * var(--s-8));z-index:3;background:var(--bg-page);margin-inline:calc(-1 * var(--screen-side));padding-inline:calc(var(--screen-side) - var(--s-8))}
.screen[data-scrolled="true"] > .navbar{box-shadow:0 1px 0 var(--line)}
/* 93: the day's title stands alone; another week's day has a Today link on the right. */
.lthead .navlink[hidden]{display:none}
/* 94: Previous and Next week show only while the strip has keyboard or screen-reader focus. */
.wkkeys:focus-within,.week-strip:has(:focus-visible) + .wkkeys{position:static;width:auto;height:auto;clip:auto;display:flex;justify-content:space-between;margin-top:var(--s-8)}
/* 97: the task menu is a modal sheet docked at the bottom, like the approved Move sheet. */
.task-menu{position:fixed;inset:auto 0 0;width:100%;max-width:none;margin:0;border:0}
.task-menu::backdrop{background:var(--grey-950);opacity:.45}
.task-menu .opt{color:var(--text-main);cursor:pointer}
.task-menu .day:disabled{opacity:.4}
.task-menu .iconbtn[aria-disabled="true"]{opacity:.4;pointer-events:none}
