/* The iPhone tutor (2026-11-09: moved here from tutor-embed.css, unchanged).
   The iPhone app's page loads this at 700 px and under; the web app loads it
   at 1024 px and under, where app.js sets body.tutor-web-phone, so phones and
   iPads on the web get the iPhone's tutor exactly. */
/* iPhone: the board's writing sized for a phone. */
body:is(.tutor-embed,.tutor-web-phone) .tutor-board-surface{grid-template-columns:minmax(0,1fr);padding:18px 16px 60vh;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-board-side{border-left:0;border-top:0;padding:10px 0 0;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-board-side:empty{display:none;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-board-write{font-size:20px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-board-math{font-size:18px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-board-math.has-eq{padding-left:32px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-eq{left:4px;font-size:11px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-tools{bottom:10px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-tools button{width:32px;height:32px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-form textarea{font-size:16px;}
/* iPhone: the board fills the screen. Her current sentence shows in one
 caption row above the composer (with the orb while talking); the whole
 transcript opens over the board from the Transcript button. */
body:is(.tutor-embed,.tutor-web-phone) .tutor-body{grid-template-rows:minmax(0,1fr) auto;position:relative;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-side-panel{min-height:0;overflow:visible;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-side-title{display:none;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-transcript{display:none;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-shell.is-transcript-open .tutor-transcript{display:flex;position:absolute;left:0;right:0;top:0;bottom:calc(var(--tutor-dock, 150px) + 12px);z-index:40;padding:14px 16px;background:#fff;border:1px solid var(--tutor-line);border-radius:14px;box-shadow:0 10px 30px rgba(20,20,15,.12);}
body:is(.tutor-embed,.tutor-web-phone) .tutor-transcript-toggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-height:0;padding:0;border:0;border-radius:12px;background:transparent;color:#3d3d3a;font:inherit;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-shell.is-transcript-open .tutor-transcript-toggle{background:#e9e9e4;color:#111;}
/* The phone's header (2026-10-29): quiet, borderless controls in the Claude style: the
   transcript symbol and the new-lesson icon as plain glyphs, End as a plain word.
   The page reaches the top of the screen; the app's back chevron (38 pt wide at
   6 pt, 44 pt tall, below the status bar) floats over the row's left end, so the
   row starts after it and sits level with it. */
body:is(.tutor-embed,.tutor-web-phone) .tutor-header{margin:0 0 10px;padding:calc(env(safe-area-inset-top) - 6px) 0 0 46px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-transcript-toggle svg{width:21px;height:21px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-new{width:38px;height:38px;border-radius:12px;color:#3d3d3a;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-new svg{width:21px;height:21px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-end{width:auto;height:38px;padding:0 10px;border:0;border-radius:12px;background:transparent;color:#3d3d3a;font:inherit;font-size:16px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-end svg{display:none;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-end .tutor-end-word{display:inline;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-end:hover,body:is(.tutor-embed,.tutor-web-phone) .tutor-end:focus-visible{background:#fbeeec;color:#a3372b;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-live-row{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 14px 0;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-orb-stage{flex:none;padding:0;animation:none;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-caption{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;flex:1;min-width:0;font-size:15px;line-height:1.35;color:var(--tutor-ink);}
body:is(.tutor-embed,.tutor-web-phone) .tutor-caption:empty{display:none;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-caption[data-kind="student"]{color:var(--tutor-muted);}
body:is(.tutor-embed,.tutor-web-phone) .tutor-caption[data-kind="status"]{font-size:13px;color:var(--tutor-muted);}
/* No box at the bottom (2026-10-29): the panel is a frosted stretch of the
   page in its own colour, the board blurring softly under its top edge; her
   line, the composer and the mic float on it. The toolbar sits just above
   the frost. The transcript, opened, floats over the blurred board the same
   way, with no sheet behind it. */
body:is(.tutor-embed,.tutor-web-phone) .tutor-side-panel{border:0;border-radius:0;background:transparent;box-shadow:none;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-body{isolation:isolate;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-body::after{content:"";position:absolute;left:-12px;right:-12px;bottom:calc(-10px - env(safe-area-inset-bottom));height:calc(var(--tutor-dock, 150px) + 74px + env(safe-area-inset-bottom));z-index:1;pointer-events:none;background:linear-gradient(to top,rgba(251,250,247,.97) 58%,rgba(251,250,247,.86) 76%,rgba(251,250,247,0) 100%);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);-webkit-mask-image:linear-gradient(to top,#000 72%,transparent 100%);mask-image:linear-gradient(to top,#000 72%,transparent 100%);}
body:is(.tutor-embed,.tutor-web-phone) .tutor-form{position:relative;z-index:2;background:transparent;padding:6px 2px 2px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-live-row{position:relative;z-index:2;padding:8px 4px 0;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-board-surface{padding-bottom:60vh;}
/* The toolbar floats just above her line and the composer, over the frost,
   wherever the board's own bottom edge is (2026-10-29: pinned to the board's
   edge it hung in the middle of the screen). Fixed to the screen, so it
   leaves the board's stacking context; the board wrap gives up its own. */
body:is(.tutor-embed,.tutor-web-phone) .tutor-board-wrap{z-index:auto;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-tools{position:fixed;left:50%;bottom:calc(var(--tutor-dock, 150px) + 14px + env(safe-area-inset-bottom));z-index:8;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-shell.is-transcript-open .tutor-transcript{background:rgba(251,250,247,.74);border:0;border-radius:0;box-shadow:none;bottom:calc(var(--tutor-dock, 150px) - 40px);padding:14px 16px 60px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);-webkit-mask-image:linear-gradient(to top,transparent 0,#000 56px);mask-image:linear-gradient(to top,transparent 0,#000 56px);}
body:is(.tutor-embed,.tutor-web-phone) .tutor-shell.is-transcript-open .tutor-line-student{background:rgba(255,255,255,.78);}
body:is(.tutor-embed,.tutor-web-phone) .tutor-shell.is-transcript-open .tutor-caption{opacity:0;}
/* iPhone (and the phone website): the study list is a pill under the top bar
 (what is being taught, how far) that opens the whole list as a sheet from the
 bottom; picking an item closes it (2026-11-09). */
body:is(.tutor-embed,.tutor-web-phone) .tutor-shell.has-study .tutor-board-surface{padding-top:58px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact{position:fixed;z-index:30;top:calc(env(safe-area-inset-top, 0px) + 54px);left:50%;transform:translateX(-50%);width:auto;max-width:calc(100vw - 32px);max-height:none;padding:0;border:1px solid #e6e2d9;border-radius:999px;background:rgba(255,255,255,.96);box-shadow:0 2px 12px rgba(0,0,0,.08);}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact.is-collapsed .tutor-study-progress,body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact.is-collapsed .tutor-study-now{display:none;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-shell .tutor-study.is-compact .tutor-study-head{height:36px;padding:0 14px;gap:10px;border-radius:999px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact .tutor-study-name{font-size:15px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact .tutor-study-meta{font-size:13px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact .tutor-study-chevron{transform:none;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact:not(.is-collapsed){top:auto;bottom:0;left:0;right:0;transform:none;max-width:none;max-height:72vh;padding:22px 12px calc(16px + env(safe-area-inset-bottom, 0px));border:0;border-radius:16px 16px 0 0;background:#fff;box-shadow:0 0 0 100vmax rgba(0,0,0,.22),0 -8px 30px rgba(0,0,0,.14);z-index:60;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact:not(.is-collapsed)::before{content:"";position:absolute;top:8px;left:50%;width:36px;height:5px;margin-left:-18px;border-radius:3px;background:#d8d6d0;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact:not(.is-collapsed) .tutor-study-chevron{transform:rotate(180deg);}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact:not(.is-collapsed) .tutor-study-list{max-height:none;flex:1 1 auto;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-shell .tutor-study.is-compact .tutor-study-item button{height:44px;padding:0 10px;border-radius:10px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact .tutor-study-title{font-size:16px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact .tutor-study-mark{width:22px;font-size:14px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact .tutor-study-group{padding:12px 10px 4px;font-size:13px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact .tutor-study-replies button{min-height:40px;font-size:15px;}
.tutor-study-scrim{display:none;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-study.is-compact .tutor-study-scrim{display:block;position:fixed;inset:0;z-index:-1;min-height:0;padding:0;border:0;border-radius:0;background:transparent;}
