/* Styles for what the working prototype adds to the ODAY team's click
   prototype: account sheet, teaser review, capsule links, link page, reader.
   Kept in the team's visual language: Outfit, monospace labels, ink #17151a,
   soft grey surfaces, pill buttons. */

.oday-boot {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; gap: 12px;
  background: #f4f4f4; color: #17151a; text-align: center; font: 400 14px/1.5 Outfit, system-ui, sans-serif;
}
.oday-wordmark { font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .32em; }
.oday-kicker { display: block; font: 500 10px/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: rgba(40, 40, 50, .6); }

.oday-sheet-backdrop {
  position: absolute; inset: 0; z-index: 200; display: flex; align-items: flex-end;
  background: rgba(23, 21, 26, .32); animation: oday-fade .2s ease;
}
body > .oday-sheet-backdrop { position: fixed; }
.oday-sheet {
  width: 100%; max-height: 92%; overflow-y: auto; box-sizing: border-box; padding: 20px 18px 28px;
  border-radius: 26px 26px 0 0; background: #f4f4f4; color: #17151a;
  font: 400 14px/1.5 Outfit, system-ui, sans-serif; display: grid; gap: 12px;
  animation: oday-rise .3s cubic-bezier(.22, 1, .36, 1);
}
.oday-sheet h2 { margin: 0; font: 600 22px/1.2 Outfit, system-ui, sans-serif; letter-spacing: -.01em; }
.oday-sheet p { margin: 0; color: #3c3c44; }
.oday-field { display: grid; gap: 6px; }
.oday-field > span { font: 500 9.5px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: rgba(40, 40, 50, .55); }
.oday-field input, .oday-field textarea, .oday-field select, .oday-link-row input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 0; border-radius: 14px; background: #fff;
  font: 400 15px/1.4 Outfit, system-ui, sans-serif; color: #17151a; outline: none; resize: vertical;
}
.oday-field textarea:disabled { opacity: .5; }
.oday-primary, .oday-secondary, .oday-danger, .oday-text {
  min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 11px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase;
}
.oday-primary { background: #17151a; color: #fff; }
.oday-secondary { background: #fff; color: #17151a; }
.oday-danger { background: #c4314b; color: #fff; }
.oday-text { background: none; color: rgba(40, 40, 50, .7); min-height: 36px; }
.oday-primary:disabled, .oday-secondary:disabled { opacity: .5; cursor: progress; }
.oday-primary:focus-visible, .oday-secondary:focus-visible, .oday-danger:focus-visible, .oday-text:focus-visible { outline: 2px solid #8ca0ff; outline-offset: 2px; }
.oday-error { color: #c4314b !important; min-height: 1em; }
.oday-small { font-size: 12.5px !important; color: rgba(40, 40, 50, .7) !important; }
.oday-origin { display: block; font: 500 9.5px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: #7a5bd6 !important; }
.oday-ok { color: #17786c !important; font-weight: 600; }
.oday-warn { color: #8f4b00 !important; font-size: 12.5px; }
.oday-row { display: flex; gap: 8px; flex-wrap: wrap; }

.oday-levels { display: flex; gap: 6px; flex-wrap: wrap; }
.oday-levels button {
  height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; color: #3c3c44; cursor: pointer;
  font: 500 9.5px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; text-transform: uppercase;
}
.oday-levels button[aria-pressed="true"] { background: #17151a; color: #fff; }

.oday-link-row { display: grid; gap: 6px; padding: 12px; border-radius: 16px; background: #fff; }
.oday-link-row > span { font-size: 12.5px; color: rgba(40, 40, 50, .7); }
.oday-link-row input { background: #f4f4f4; font: 400 12px/1.3 ui-monospace, "SF Mono", Menlo, monospace; }

.oday-toast {
  position: absolute; left: 16px; right: 16px; bottom: 110px; z-index: 300; padding: 12px 16px; border-radius: 16px;
  background: #17151a; color: #fff; font: 400 13.5px/1.4 Outfit, system-ui, sans-serif; text-align: center;
  box-shadow: 0 10px 30px rgba(23, 21, 26, .25); transition: opacity .4s ease;
}
body > .oday-toast { position: fixed; }
.oday-toast.is-out { opacity: 0; }

.oday-settings { display: grid; gap: 8px; margin: 16px 0; padding: 14px; border-radius: 16px; background: #fff; color: #17151a; font: 400 13.5px/1.45 Outfit, system-ui, sans-serif; }
.oday-settings p { margin: 0; }
.oday-check { display: flex; gap: 8px; align-items: center; font-size: 13px; }

/* Capsule link page */
.oday-link { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; box-sizing: border-box; background: radial-gradient(120% 80% at 50% 0%, #e9e4ff 0%, #f4f4f4 55%); color: #17151a; font: 400 15px/1.5 Outfit, system-ui, sans-serif; }
.oday-link-card { width: 100%; max-width: 440px; display: grid; gap: 16px; text-align: center; }
.oday-link-card h1 { margin: 0; font: 600 26px/1.2 Outfit, system-ui, sans-serif; letter-spacing: -.02em; text-wrap: balance; }
.oday-link-card p { margin: 0; }
.oday-link-capsule { width: 120px; height: 120px; margin: 4px auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, #ffd9a8 18%, #c79a4e 55%, #6b4a1b 100%); box-shadow: 0 30px 60px rgba(107, 74, 27, .25), inset 0 -8px 20px rgba(0, 0, 0, .15); animation: oday-float 6s ease-in-out infinite; }
.oday-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 8px; padding: 14px; border-radius: 18px; background: #fff; font-variant-numeric: tabular-nums; }
.oday-countdown b { font: 600 28px/1.1 Outfit, system-ui, sans-serif; grid-row: 1; }
.oday-countdown span { grid-row: 2; font: 500 9.5px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: rgba(40, 40, 50, .6); }
.oday-takeover { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: #fff; text-align: left; }
.oday-takeover p { font-size: 13.5px; color: #3c3c44; }

/* Reader, used on the link page and in the entry view */
.oday-reader { display: grid; gap: 14px; text-align: left; }
.oday-reader h1 { margin: 0; font: 600 26px/1.2 Outfit, system-ui, sans-serif; }
.oday-reader-text { margin: 0; font-size: 16px; line-height: 1.6; white-space: normal; }
.oday-reader-media { width: 100%; max-width: 100%; border-radius: 18px; background: #000; display: block; }
.oday-reader-audio { width: 100%; }

@keyframes oday-fade { from { opacity: 0; } }
@keyframes oday-rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes oday-float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .oday-link-capsule, .oday-sheet, .oday-sheet-backdrop { animation: none; }
}

/* On a capsule link the click prototype stays out of sight. */
body.oday-link-mode > *:not(.oday-link):not(.oday-sheet-backdrop):not(.oday-toast):not(script) { display: none !important; }
body.oday-link-mode { margin: 0; background: #f4f4f4; }

/* Import buttons above the composer's media shelf (P-02) */
.oday-import-bar { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.oday-chip { height: 32px; padding: 0 12px; border: 1px solid rgba(23, 21, 26, .12); border-radius: 999px; background: #fff; color: #17151a; cursor: pointer; font: 500 10px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.oday-chip:focus-visible { outline: 2px solid #8ca0ff; outline-offset: 2px; }

/* Account sheet */
.oday-acc { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; }
.oday-acc > strong { font: 500 10px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: rgba(40, 40, 50, .6); }
.oday-acc p { margin: 0; }
.oday-acc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; border-top: 1px solid rgba(23, 21, 26, .06); padding-top: 6px; }
.oday-acc-row.is-warn { background: #fff7e8; margin: 0 -14px; padding: 6px 14px; }
.oday-code { margin: 6px 0; font: 600 40px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; text-align: center; }
a.oday-a { display: inline-grid; place-items: center; text-decoration: none; }

/* Features not yet real stay out of sight (docs/MVP.md, phases 3-5). */
#oday-memory-flow.oday-off-feed [data-direction="feed"],
#oday-memory-flow.oday-off-feed [data-oday-feature="feed"],
#oday-memory-flow.oday-off-life [data-people-page],
#oday-memory-flow.oday-off-life [data-oday-feature="life"],
#oday-memory-flow.oday-off-voice .od36-trigger,
#oday-memory-flow.oday-off-photosearch #od20-ai-entry,
#oday-memory-flow.oday-off-photosearch #od20-search,
#oday-memory-flow .od20-bestshots { display: none !important; }
.oday-empty { display: grid; gap: 10px; }
.oday-empty p { margin: 0; font-size: 14px; color: #3c3c44; }
#oday-memory-flow.oday-free .od51-plans, #oday-memory-flow.oday-free .od51-extra,
#oday-memory-flow.oday-free #od9-payment, #oday-memory-flow.oday-free .od9-price-scale { display: none !important; }

/* Diary camera */
#oday-memory-flow .oday-cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #111; }
#oday-memory-flow .oday-camnote { position: absolute; left: 16px; right: 16px; bottom: 16px; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .6); color: #fff; font: 400 13px/1.4 Outfit, system-ui, sans-serif; }

.oday-busy { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 260; padding: 14px 18px; border-radius: 16px; background: rgba(23, 21, 26, .86); color: #fff; font: 500 13px/1.4 Outfit, system-ui, sans-serif; }
