/* Make cards: Neuron's New set sheet, the From notes screen, the file and photo sheets, Paste list, the editor
   and its Edit card sheet (CreateDeckSheet, AIGenerateView, ImportMaterialSheet, QuickPasteDeckSheet,
   DeckEditorView). Each view is a full screen; the chapter slides them the way iOS does. */
.mk-v { position: absolute; left: 0; top: 0; width: 393px; height: 886px; transform-origin: 0 0; visibility: hidden; overflow: hidden; }
.mk-home { overflow: hidden; }
.mk-dim { position: absolute; inset: 0; background: rgba(12, 18, 36, 0.32); opacity: 0; visibility: hidden; }

/* sheets: paper, 28 pt corners, a grabber */
.mk-sheetv { top: 62px; height: 824px; border-radius: 28px 28px 0 0; box-shadow: 0 -10px 30px rgba(10, 20, 50, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 50%), radial-gradient(420px circle at 88% 4%, rgba(148, 179, 224, 0.2), rgba(148, 179, 224, 0) 100%), #f4f5f9; }
.mk-grab { position: absolute; left: 178.5px; top: 6px; width: 36px; height: 5px; border-radius: 3px; background: rgba(31, 31, 36, 0.18); }
.mk-pad { position: absolute; left: 22px; right: 22px; top: 22px; display: flex; flex-direction: column; }
.mk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mk-head h4 { font-size: 28px; font-weight: 700; line-height: 1.2; }
.mk-head p { margin-top: 6px; font-size: 14px; line-height: 1.24; color: var(--ink2); }
.mk-x { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--muted); color: var(--ink2); }
.mk-x .sym { width: 11px; height: 11px; }
.mk-sec { margin-top: 22px; }
.mk-sec > b { display: block; font-size: 16px; font-weight: 600; }
.mk-sec > small { display: block; margin-top: 3px; font-size: 10px; font-weight: 800; color: var(--ink3); }
.mk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.mk-tile { height: 128px; padding: 16px; border-radius: 20px; background: #fefdfb; box-shadow: inset 0 0 0 1px var(--border); display: flex; flex-direction: column; gap: 14px; transform-origin: 50% 50%; }
.mk-tile > i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--acc); background: linear-gradient(135deg, rgba(46, 97, 209, 0.15), rgba(46, 97, 209, 0.03)); }
.mk-tile > i .sym { width: 18px; height: 18px; }
.mk-tile b { font-size: 16px; font-weight: 600; }
.mk-tile small { display: block; margin-top: 3px; font-size: 10px; font-weight: 800; color: var(--ink3); }
.mk-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.mk-row { height: 68px; padding: 0 14px; border-radius: 16px; display: flex; align-items: center; gap: 14px; background: #fefdfb; box-shadow: inset 0 0 0 1px var(--border); transform-origin: 50% 50%; }
.mk-row > i { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--acc); background: rgba(46, 97, 209, 0.12); --knock: #eef2fb; }
.mk-row > i .sym { width: 17px; height: 17px; }
.mk-row p { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mk-row p b { font-size: 14px; font-weight: 500; color: var(--ink); }
.mk-row p small { font-size: 10px; font-weight: 800; color: var(--ink3); }
.mk-row > .sym { width: 11px; height: 11px; color: var(--ink3); }
.mk-press { position: absolute; inset: 0; border-radius: inherit; background: rgba(46, 97, 209, 0.1); opacity: 0; }

/* pushed screens: a nav bar with a glass back button, and the paper behind */
.mk-push { background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 50%), radial-gradient(420px circle at 88% 4%, rgba(148, 179, 224, 0.2), rgba(148, 179, 224, 0) 100%), #f4f5f9; }
.mk-push.atmo { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 50%), radial-gradient(340px circle at 86% 8%, rgba(148, 179, 224, 0.16), rgba(148, 179, 224, 0) 100%), linear-gradient(135deg, #e6ebf5, #f2f5fa 50%, #e0e6f0); }
.mk-nav { position: absolute; left: 0; right: 0; top: 54px; height: 44px; display: flex; align-items: center; justify-content: center; z-index: 3; }
.mk-nav > b { font-size: 17px; font-weight: 600; font-family: var(--sf); }
.mk-back { position: absolute; left: 16px; top: 2px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.06); }
.mk-back .sym { width: 17px; height: 17px; }
.mk-study { position: absolute; right: 16px; top: 7px; padding: 7px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--acc), var(--deep)); transform-origin: 50% 50%; }
.mk-cancel { position: absolute; left: 16px; top: 2px; height: 40px; padding: 0 14px; border-radius: 20px; display: grid; place-items: center; font-family: var(--sf); font-size: 17px; color: var(--ink); background: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.mk-save { left: auto; right: 16px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--acc), var(--deep)); }
.mk-scroll { position: absolute; left: 0; right: 0; top: 98px; bottom: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24px); mask-image: linear-gradient(180deg, transparent 0, #000 24px); }
.mk-col { position: absolute; left: 16px; right: 16px; top: 8px; display: flex; flex-direction: column; gap: 16px; }

/* the From notes screen */
.mg-intro { font-size: 14px; line-height: 1.32; color: var(--ink2); }
.mg-on { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink2); }
.mg-on .sym { width: 13px; height: 13px; }
.mg-src small { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 800; color: var(--ink3); }
.mg-ed { position: relative; height: 220px; padding: 12px; border-radius: 16px; overflow: hidden; background: rgba(224, 224, 230, 0.55); font-size: 15px; line-height: 1.38; color: var(--ink); }
.mg-ed p { min-height: 20.7px; }
.mg-ed p.gap { height: 12px; min-height: 0; }
.mg-txt { position: absolute; left: 12px; right: 12px; top: 12px; }
.mg-placeholder { color: #b6b6bd; }
.mg-menu { position: absolute; left: 20px; top: 6px; padding: 9px 14px; border-radius: 12px; font-family: var(--sf); font-size: 15px; font-weight: 500; color: #fff; background: rgba(36, 36, 40, 0.92); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); opacity: 0; }
.mg-menu::after { content: ""; position: absolute; left: 24px; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.mg-btn { height: 52px; font-size: 16px; transform-origin: 50% 50%; }
.mg-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.4px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; display: none; }
.mg-btn.busy .mg-spin { display: block; }
.mg-btn.busy .sym, .mg-btn.busy .mg-lbl { display: none; }
.mg-prevh b { display: block; font-size: 20px; font-weight: 700; }
.mg-prevh small { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-card { padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); display: flex; flex-direction: column; gap: 12px; }
.mg-card > small { font-size: 10px; font-weight: 800; color: var(--ink3); }
.mg-lab { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; color: var(--acc); margin-bottom: 6px; }
.mg-lab .sym { width: 12px; height: 12px; }
.mg-lab.g { color: var(--learnt); }
.mg-q { font-size: 16px; font-weight: 600; line-height: 1.25; }
.mg-opts { margin-top: 6px; font-size: 14px; line-height: 1.38; color: var(--ink2); white-space: pre-line; }
.mg-a { font-size: 14px; line-height: 1.3; }
.mg-card hr { border: 0; height: 1px; background: rgba(0, 0, 0, 0.07); }

/* the import sheets: Upload file / From photo */
.mi-row { margin-top: 18px; height: 76px; padding: 0 16px; border-radius: 18px; display: flex; align-items: center; gap: 14px; background: #fefdfb; box-shadow: inset 0 0 0 1px var(--border); position: relative; }
.mi-row > i { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--acc); background: rgba(46, 97, 209, 0.12); --knock: #eef2fb; }
.mi-row > i .sym { width: 19px; height: 19px; }
.mi-row p { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mi-row p b { font-size: 16px; font-weight: 600; }
.mi-row p small { font-size: 10px; font-weight: 800; color: var(--ink3); }
.mi-row > .sym { width: 11px; height: 11px; color: var(--ink3); }
.mi-prev { margin-top: 18px; }
.mi-prev > small { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 800; color: var(--ink3); }
.mi-box { position: relative; padding: 14px; border-radius: 16px; background: #fefdfb; box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; line-height: 1.3; color: var(--ink2); overflow: hidden; }
.mi-box p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-box p.opt { padding-left: 12px; }
.mi-scan { position: absolute; left: 0; right: 0; height: 26px; background: linear-gradient(180deg, rgba(46, 97, 209, 0), rgba(46, 97, 209, 0.16) 70%, rgba(46, 97, 209, 0.5) 100%); opacity: 0; }
.mi-go { margin-top: 10px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 16px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--acc), var(--deep)); transform-origin: 50% 50%; }

/* Paste list */
.mq-title { height: 47px; padding: 0 14px; border-radius: 14px; display: flex; align-items: center; font-size: 16px; font-weight: 600; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), 0 4px 10px rgba(0, 0, 0, 0.04); }
.mq-hint { font-size: 14px; color: var(--ink2); }
.mq-ed { position: relative; height: 196px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), 0 4px 10px rgba(0, 0, 0, 0.04); font-size: 16px; line-height: 1.5; overflow: hidden; }
.mq-ed p { white-space: nowrap; }
.mq-ed p i { font-style: normal; color: var(--acc); font-weight: 700; }
.mq-count { font-size: 12px; font-weight: 700; color: var(--ink3); font-variant-numeric: tabular-nums; }
.mq-go { height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 16px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--acc), var(--deep)); transform-origin: 50% 50%; }
.mk-caret { display: inline-block; width: 2px; height: 1.1em; margin: 0 -2px 0 0; border-radius: 1px; background: var(--acc); vertical-align: -0.16em; }

/* the editor */
.me-titlecard { padding: 18px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), 0 4px 10px rgba(0, 0, 0, 0.04); }
.me-titlecard small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--ink3); }
.me-titlecard b { display: block; margin-top: 8px; font-size: 28px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.me-sel { background: rgba(46, 97, 209, 0.22); border-radius: 3px; }
.me-cards { display: flex; align-items: center; justify-content: space-between; }
.me-cards b { font-size: 20px; font-weight: 700; }
.me-cards em { padding: 4px 8px; border-radius: 99px; background: var(--muted); font-size: 12px; font-weight: 700; color: var(--ink3); }
.me-row { padding: 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), 0 4px 10px rgba(0, 0, 0, 0.04); transform-origin: 50% 50%; position: relative; }
.me-row small { display: block; font-size: 10px; font-weight: 800; color: var(--ink3); margin-bottom: 4px; }
.me-row b { font-size: 16px; font-weight: 600; line-height: 1.25; }
.me-row span { font-size: 14px; line-height: 1.3; color: var(--ink2); }
.me-add { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--acc); }
.me-add .sym { width: 20px; height: 20px; --knock: #fff; }
.me-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(180deg, rgba(236, 240, 247, 0), rgba(236, 240, 247, 0.96) 40%); }

/* the Edit card sheet: an inset grouped form */
.mf { top: 300px; height: 586px; border-radius: 28px 28px 0 0; background: #f2f2f7; box-shadow: 0 -10px 30px rgba(10, 20, 50, 0.14); }
.mf .mk-nav { top: 12px; }
.mf-col { position: absolute; left: 16px; right: 16px; top: 76px; display: flex; flex-direction: column; }
.mf-col small { margin: 0 16px 7px; font-family: var(--sf); font-size: 13px; color: #6d6d72; text-transform: uppercase; }
.mf-cell { min-height: 76px; padding: 12px 16px; margin-bottom: 26px; border-radius: 12px; background: #fff; font-family: var(--sf); font-size: 17px; line-height: 1.3; color: #1f1f24; }

/* in the air: a block of notes becoming a card */
.mk-fly { font-family: var(--rounded); --acc: #2e61d1; --deep: #294db8; --surface: #fefefd; --cardback: #f5f5f7; --border: rgba(0, 0, 0, 0.07); --ink: #1f1f24; }
.mkf-strip { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 6px; border-radius: 8px; background: rgba(46, 97, 209, 0.14); font-size: 15px; line-height: 1.38; color: #1f1f24; white-space: nowrap; overflow: hidden; }
.mkf-card { position: absolute; inset: 0; opacity: 0; }
.mkf-card .nc-face { border-radius: 22px; padding: 18px 18px 16px 22px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07), 0 18px 34px rgba(60, 50, 20, 0.16); }
.mkf-card .nc-top { margin-bottom: 8px; }
.mkf-card .nc-text { font-size: 19px; }
/* a photo of a notebook page on a desk */
.mk-photo { border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #6b5a49, #4a3d31); box-shadow: 0 26px 50px rgba(40, 30, 10, 0.32); }
.mkp-page { position: absolute; left: 22px; top: 26px; right: 18px; bottom: 30px; padding: 16px 14px 0 30px; transform: rotate(-3deg); border-radius: 3px; font-family: var(--hand); color: #1d2a48;
  background: linear-gradient(90deg, transparent 22px, rgba(214, 74, 84, 0.4) 22px, rgba(214, 74, 84, 0.4) 23px, transparent 23px), repeating-linear-gradient(180deg, transparent 0 26px, rgba(90, 130, 200, 0.25) 26px 27px), #f7f3e8; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.mkp-page p { font-size: 17px; line-height: 27px; font-weight: 600; white-space: nowrap; }
.mkp-page p.a { padding-left: 14px; color: #2e61d1; }
/* a PDF handout */
.mk-pdf { padding: 26px 24px; border-radius: 4px; background: #fff; box-shadow: 0 26px 50px rgba(30, 30, 60, 0.26), inset 0 0 0 1px rgba(0, 0, 0, 0.06); font-family: "Times New Roman", Georgia, serif; color: #1a1a1a; }
.mk-pdf p { font-size: 13px; line-height: 1.5; white-space: nowrap; }
.mk-pdf p.o { padding-left: 16px; }
.mk-pdf p.k { margin-top: 8px; font-weight: 700; }
.mkd-h { margin-bottom: 10px; font-family: var(--sf); font-size: 10px !important; font-weight: 700; letter-spacing: 0.12em; color: #8a8a8a; }
.mkd-badge { position: absolute; right: 14px; top: 14px; padding: 3px 7px; border-radius: 5px; font-family: var(--sf); font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: #e64d57; }

/* phones: the editor's first card on its way to becoming Learn it's study card (make.js morph) */
.mk-morph { position: absolute; left: 0; top: 0; z-index: 20; visibility: hidden; transform-origin: 0 0; }
.mk-morph .mm-bg { position: absolute; inset: 0; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), 0 6px 12px rgba(0, 0, 0, 0.08); }
.mk-morph .mm-margin { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 26px 0 0 26px; background: linear-gradient(135deg, var(--acc), var(--deep)); opacity: 0; }
.mk-morph .mm-lab { position: absolute; left: 0; top: 0; font-size: 10px; font-weight: 800; transform-origin: 0 0; white-space: nowrap; }
.mk-morph .mm-r { position: absolute; left: 0; top: 0; background: none; box-shadow: none; }
.mk-morph .mm-c { position: absolute; left: 0; top: 0; text-align: center; font-weight: 600; line-height: 1.22; color: var(--ink); text-wrap: balance; transform-origin: 50% 50%; }
