/* Reflective Space — approved Quiet Luxury baseline; static licensed artwork. */
:root {
  color-scheme: light;
  font-family: "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  font-size: 18px; line-height: 1.9; color: #292b28; background: #f5f2ea;
  --muted: #62675e; --line: #b1b2a5;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
main {
  width: min(100%, 1440px); margin: 0 auto; padding: 40px 72px 48px;
  display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 440px);
  gap: 56px 96px; align-items: start;
}
.space-heading { grid-column: 1 / -1; margin: 0; }
.functional-content { grid-column: 1; grid-row: 2; min-width: 0; }
#artwork-slot { grid-column: 2; grid-row: 2; width: 100%; height: 620px; }
#session-artwork { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 4px; }
.artwork-suppressed { visibility: hidden; }
#view-heading { font-family: "Noto Serif JP", "Noto Serif CJK JP", "Yu Mincho", serif; font-size: 2rem; margin: 0 0 24px; }
.eyebrow { font-size: .9rem; color: var(--muted); letter-spacing: .12em; margin: 0 0 1.4rem; }
h1, h2 { font-weight: 400; line-height: 1.6; }
h1 { font-family: "Noto Serif JP", "Noto Serif CJK JP", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: 0; margin: 0; }
h2 { font-size: 1.15rem; margin-top: 2.4rem; }
.invitation, .hint, footer { color: var(--muted); }
.invitation { margin-top: 1.2rem; }
.hint { font-size: .9rem; }
label { display: block; }
input, textarea {
  display: block; width: 100%; padding: 1rem; border: 1px solid var(--line);
  border-radius: 4px; background: #fcfaf5; color: #292b28; font: inherit;
}
textarea { resize: vertical; min-height: 9rem; line-height: 2; }
input { margin: .6rem 0 1rem; }
button, summary { font: inherit; font-size: .9rem; cursor: pointer; }
button { padding: .55rem 1rem; min-height: 44px; margin: .4rem .4rem .4rem 0;
  border: 1px solid var(--line); border-radius: 4px; background: transparent; color: #292b28; }
button:hover:not(:disabled) { background: #e9ebdd; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid #415848; outline-offset: 5px;
}
#send, #login button { background: #415848; border-color: #415848; color: #fff; }
#send:hover:not(:disabled), #login button:hover:not(:disabled) { background: #304b3a; }
#close { display: block; margin-top: 1.2rem; }
.writing-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; margin-top: .65rem; }
#notice { color: #843f34; overflow-wrap: anywhere; }
#notice:empty { margin: 0; }
#state:not(:empty) { border-inline-start: 2px solid #d1b77c; padding-inline-start: 1rem; }
#conversation { list-style: none; padding: 0; margin: 0; }
#conversation li { margin: 0 0 3.5rem; overflow-wrap: anywhere; }
.voice-label { font-size: .9rem; color: var(--muted); margin-bottom: .7rem; }
.reflection-text { white-space: pre-wrap; line-height: 2.15; margin: 0; }
.participant-turn { padding-inline-start: 1.25rem; border-inline-start: 1px solid var(--line); }
.ai-turn { padding: .5rem 0; }
.response-surface { position: relative; }
/* Reserve final wrapping/height so writing below never moves on each tick. */
.response-measure { visibility: hidden; }
.response-visible { position: absolute; inset: 0; }
.response-actions { min-height: 3.8rem; display: flex; align-items: center; gap: .5rem; }
.response-tools button, .response-tools summary { font-size: .9rem; color: var(--muted); }
.response-tools details { flex-basis: 100%; }
.response-tools p, #error-detail p { overflow-wrap: anywhere; }
.presence { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
#reflect { margin-top: 1.5rem; }
#memory-review { border-top: 1px solid var(--line); margin-top: 4rem; padding-top: .5rem; }
#candidates article { margin: 2rem 0; }
#candidates article > p { white-space: pre-wrap; overflow-wrap: anywhere; }
#candidates label { color: var(--muted); font-size: .9rem; }
#candidates textarea { font-size: 1rem; }
.space-settings { margin-top: 4rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
summary { min-height: 44px; padding: .4rem 0; color: var(--muted); }
.choice { display: flex; align-items: center; gap: .8rem; min-height: 44px; margin: .6rem 0; }
.choice input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: #a9c0ad; }
footer { grid-column: 1 / -1; margin: 0; font-size: .9rem; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 2; padding: .5rem; background: #f5f2ea; color: #292b28; }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
  main { max-width: 720px; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 24px 48px; }
  #artwork-slot { grid-column: 1; grid-row: 2; height: 144px; }
  .functional-content { grid-row: 3; }
  h1 { font-size: 28px; }
  #view-heading { font-size: 28px; }
  footer { grid-row: 4; }
}
@media (max-width: 360px) {
  main { padding-inline: 20px; }
  button { max-width: 100%; }
}
@media (forced-colors: active) {
  #artwork-slot { visibility: hidden; }
  button, input, textarea { border: 1px solid ButtonText; }
}

/* Post-reflection review uses the same reading column and touch targets. */
#approve-review { background: #415848; color: #fff; white-space: normal; max-width: 100%; }
#review-log-heading { margin-top: 1rem; }
#selection-count { color: var(--muted); }

.admission-content { white-space: pre-wrap; font: inherit; overflow-wrap: anywhere; }
#failed-input-preview { white-space: pre-wrap; }
#language { font: inherit; padding: .35rem; }
