/* The photo sheet on phones (partials/photo-sheet): the 作文助手's upload sheet (css/essay.css .ea-sheet) reused as-is
   for the chat box's + and the 计算器's 拍照解题 (owner 2026-11-21: 手机端用底部抽屉，直接复用相同样式). The colours
   are the essay page's (css/paper-ui-a.css .pui-a), set here because these pages have no .pui-a. */
.ea-sheet { --pa-card: #ffffff; --pa-soft: #f4f2ee; --pa-line: #ebe8e2; --pa-ink: #23232b; --pa-muted: #7a7a85; }
:root[data-theme="dark"] .ea-sheet { --pa-card: #141414; --pa-soft: #22211f; --pa-line: #2e2c28; --pa-ink: #e2e3ee; --pa-muted: #9f9faa; }
.ea-sheet[hidden] { display: none !important; }

/* ---- copied from css/essay.css (upload sheet) ---- */
.ea-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; }
.ea-sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); animation: ea-fade .2s ease both; }
@keyframes ea-fade { from { opacity: 0; } }
.ea-sheet-panel { position: relative; width: 100%; box-sizing: border-box; padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0;
                  background: var(--pa-card); animation: ea-sheet-up .28s cubic-bezier(.22,1,.36,1) both; }
@keyframes ea-sheet-up { from { transform: translateY(100%); } }
.ea-sheet-grip { width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 999px; background: var(--pa-line); }
.ea-sheet-panel button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; color: var(--pa-ink); font: inherit; }
.ea-sheet-panel button:active { background: var(--pa-soft); }
.ea-sheet-panel button > .material-symbols-outlined { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--pa-soft); font-size: 22px; flex: none; }
.ea-sheet-panel button > span:last-child { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; }
.ea-sheet-panel small { font-size: 12px; font-weight: 500; color: var(--pa-muted); }
.ea-sheet-panel .ea-sheet-cancel { justify-content: center; margin-top: 6px; padding: 13px; background: var(--pa-soft); font-size: 15px; font-weight: 600; }

/* Closing (owner 2026-11-21): the panel slides back down and the dim fades, then the sheet is hidden (js adds .is-closing). */
.ea-sheet.is-closing .ea-sheet-panel { animation: ea-sheet-down .22s cubic-bezier(.4,0,1,1) both; }
.ea-sheet.is-closing .ea-sheet-scrim { animation: ea-fade-out .22s ease both; }
@keyframes ea-sheet-down { to { transform: translateY(100%); } }
@keyframes ea-fade-out { to { opacity: 0; } }
