/* VM Notes — assistant screens (Today, homework, review, Story Bank, tasks). */

/* five tabs now: tighten the nav so it fits a phone */
nav button { font-size: 12px; letter-spacing: 0.5px; padding: 10px 0; }

.pad { padding: 20px; }
.muted { color: var(--text-muted); font-size: 13px; }
.ok { color: var(--green); }
.bad { color: var(--coral); }

.card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
}
.card-title {
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: var(--green-mid);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

/* ── Today header ─────────────────────────────────────────── */
#screen-today, #screen-review, #screen-stories, #screen-task { padding-top: 4px; }
.today-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--text);
    margin: 4px 0 6px;
}
.today-title span { color: var(--green); font-size: 22px; margin-left: 6px; }
.today-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    padding: 3px 8px;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    color: var(--text-muted);
}
.chip.ok { color: var(--green); border-color: var(--green-dim); background: var(--green-soft); }
.today-links { display: flex; gap: 8px; margin: 4px 0 16px; }
.today-links .btn { flex: 1; padding: 10px 8px; }

.review-banner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: rgba(255, 176, 0, 0.08);
    border: 1px solid var(--amber);
    border-radius: var(--radius);
    color: var(--amber);
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    cursor: pointer;
}

/* ── Homework ─────────────────────────────────────────────── */
.hw-prompt { margin-bottom: 10px; font-style: italic; }
.hw-text {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.45;
    resize: vertical;
}
.hw-text:focus { outline: none; border-color: var(--green-dim); }
.hw-draft { font-size: 15px; }
.hw-actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hw-headline { font-size: 16px; line-height: 1.45; color: var(--text); margin-bottom: 8px; }
.hw-memory { font-size: 15px; line-height: 1.55; color: var(--text); padding: 10px 12px; border-left: 2px solid var(--green-dim); margin: 8px 0; }
.hw-label { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--green-mid); text-transform: uppercase; margin-bottom: 6px; }
.hw-question { margin: 10px 0 6px; padding: 12px; border: 1px solid var(--green-dim); border-radius: var(--radius); background: var(--green-soft); }
.hw-qlabel { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--green-mid); text-transform: uppercase; }
.hw-qtext { font-size: 17px; line-height: 1.4; margin: 6px 0 10px; color: var(--text); }
.hw-footer { margin-top: 12px; }
.hw-details { margin: 8px 0; font-size: 13px; }
.hw-details summary { cursor: pointer; color: var(--text-muted); }
.hw-qa { margin-top: 8px; }
.hw-q { color: var(--text-muted); font-size: 12px; }
.hw-a { color: var(--text); font-size: 14px; }
.hw-error { color: var(--coral); font-size: 13px; margin: 8px 0; }
.hw-warn { color: var(--amber); font-size: 12px; margin-top: 6px; }
.hw-regen { display: flex; gap: 8px; margin-top: 10px; }
.hw-regen .task-input { margin-bottom: 0; }
.hw-badge { font-family: 'Share Tech Mono', monospace; font-size: 10px; padding: 2px 6px; border: 1px solid var(--surface-border); border-radius: 8px; color: var(--text-muted); margin-right: auto; }
.hw-badge.ok { color: var(--green); border-color: var(--green-dim); }
.hw-working { margin-bottom: 8px; }
.is-busy { opacity: 0.6; pointer-events: none; }
.btn.recording { background: rgba(255, 68, 68, 0.15); color: var(--coral); border-color: var(--coral); }
.shot-story .card-title { color: var(--amber); }

/* ── Plan ─────────────────────────────────────────────────── */
.plan-summary { font-size: 15px; line-height: 1.45; margin-bottom: 10px; }
.plan-block { margin-bottom: 10px; }
.plan-block-name { font-family: 'Share Tech Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.plan-item { padding: 6px 0; border-bottom: 1px solid var(--surface-border); cursor: pointer; }
.plan-item:last-child { border-bottom: none; }
.plan-item-title { font-size: 14px; }
.plan-questions { margin: 10px 0; padding: 8px 10px; border: 1px dashed var(--amber); border-radius: var(--radius); font-size: 13px; }
.plan-applied { margin: 8px 0; font-size: 12px; }
.plan-tell { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.plan-tell .task-input { margin-bottom: 0; }

/* ── Today tasks ──────────────────────────────────────────── */
.tt-section { margin-bottom: 8px; }
.tt-title { font-family: 'Share Tech Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.tt-section.bad .tt-title { color: var(--coral); }
.mini-task { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.mini-task-title { font-size: 14px; cursor: pointer; flex: 1; }
.otd { padding: 6px 0; font-size: 14px; border-top: 1px solid var(--surface-border); }
.otd-date { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--green-mid); }

/* ── Review ───────────────────────────────────────────────── */
.review-bar { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.review-bar .btn:last-child { margin-left: auto; }
.review-group-title { font-family: 'Share Tech Mono', monospace; font-size: 12px; text-transform: uppercase; color: var(--amber); margin: 12px 0 6px; }
.review-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); margin-bottom: 8px; }
.review-main { flex: 1; min-width: 0; }
.review-main .task-input { margin-bottom: 4px; }
.review-main .muted { word-break: break-word; margin-bottom: 4px; }

/* ── Story Bank ───────────────────────────────────────────── */
.bank-tools { margin-bottom: 10px; }
.bank-item { padding: 12px; background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; }
.bank-item:hover { background: var(--surface-hover); }
.bank-date { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--green-mid); display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.bank-date .hw-badge { margin-right: 0; }
.bank-text { font-size: 15px; line-height: 1.4; }
.digest-line { font-size: 14px; line-height: 1.45; margin-bottom: 6px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-family: 'Share Tech Mono', monospace; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 11px; color: var(--text-muted); font-family: 'Share Tech Mono', monospace; }
.cal-cell { aspect-ratio: 1; border: 1px solid var(--surface-border); border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; position: relative; background: var(--surface); }
.cal-cell.empty { border: none; background: transparent; cursor: default; }
.cal-cell.future { opacity: 0.35; cursor: default; }
.cal-cell.today { border-color: var(--green); }
.cal-cell.has { background: var(--green-soft); }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-top: 2px; }
.cal-dot.ok { background: var(--green); }

/* ── Tasks ────────────────────────────────────────────────── */
.area-chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; }
.area-chips .filter-chip { white-space: nowrap; }
.subtask-row { display: flex; gap: 10px; align-items: center; padding: 4px 0 4px 4px; }
.subtask-row .task-title { font-size: 13px; cursor: pointer; flex: 1; }
.task-title { cursor: pointer; }
.task-done { text-decoration: line-through; opacity: 0.6; }
.td-chat { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.td-chat .chat-bubble { max-width: 92%; white-space: pre-wrap; }
.chat-subtasks { display: flex; gap: 6px; flex-wrap: wrap; }
.task-badge-today { color: var(--amber); }

/* ── Shared screenshot confirmation ───────────────────────── */
.shared-prompt { position: fixed; top: 64px; left: 16px; right: 16px; z-index: 60; box-shadow: 0 8px 30px rgba(0,0,0,0.6); border-color: var(--amber); }
.shared-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 4px; }
.shared-thumbs img { max-height: 160px; max-width: 45%; border-radius: var(--radius); border: 1px solid var(--surface-border); object-fit: contain; }

.hw-badge.warn { color: #ffb347; border-color: #8a5a1a; }
.receipt-row { padding: 10px 12px; }
.receipt-edit { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }

/* Photos on a task (theme: dark surface, thin green borders) */
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.photo-tile { position: relative; width: 96px; height: 96px; border: 1px solid var(--surface-border); border-radius: var(--radius);
    overflow: hidden; background: var(--surface); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.photo-tile.photo-big { width: 100%; height: auto; }
.photo-tile.photo-big img { height: auto; object-fit: contain; cursor: zoom-out; }
.photo-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 1px solid var(--green-dim); border-radius: var(--radius);
    background: rgba(13, 2, 8, .85); color: var(--green); font-size: 16px; line-height: 22px; padding: 0; cursor: pointer; }

/* Library */
.library-chips { display: flex; gap: 8px; padding: 10px 20px 4px; overflow-x: auto; }
.library-chip { flex: 0 0 auto; padding: 6px 14px; border: 1px solid var(--surface-border); border-radius: var(--radius);
    background: transparent; color: var(--text-muted); font: inherit; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; }
.library-chip:hover:not(.active) { border-color: var(--green-dim); color: var(--green); }
.library-chip.active { background: var(--green-soft); border-color: var(--green-dim); color: var(--green); }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 0 0 12px; }
.library-tile { border: 1px solid var(--surface-border); border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: pointer; }
.library-tile:hover { border-color: var(--green-dim); box-shadow: 0 0 14px var(--green-glow); }
.library-tile img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg); }
.library-cap { padding: 6px 8px 8px; font-size: 12px; line-height: 1.3; color: var(--text); word-break: break-word; }

/* Photo viewer and the + sheet */
.photo-viewer, .capture-sheet { position: fixed; inset: 0; z-index: 200; background: rgba(13, 2, 8, .88); align-items: center; justify-content: center; padding: 16px; }
.photo-viewer-card, .capture-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius);
    padding: 14px; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; }
.photo-viewer-img img { width: 100%; height: auto; border: 1px solid var(--surface-border); border-radius: var(--radius); display: block; }
.capture-fab { position: fixed; right: 18px; bottom: 22px; z-index: 150; width: 52px; height: 52px; border-radius: var(--radius);
    border: 1px solid var(--green-dim); background: var(--surface); color: var(--green); font-size: 28px; line-height: 1; padding: 0;
    box-shadow: 0 0 18px var(--green-glow); align-items: center; justify-content: center; cursor: pointer; }
.capture-fab:hover { background: var(--surface-hover); box-shadow: 0 0 26px var(--green-glow); }
.capture-task { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 4px; }
.capture-task label { flex: 1 0 100%; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.capture-task select { flex: 1 1 auto; min-width: 0; }
