/* Shared component: host tokens supply the palette; every rule is scoped. */
.wish-page { --bg: #f5f8f6; --paper: #fff; --ink: #182a24; --muted: #5f7068; --line: #dce5df; --accent: #087b4b; color-scheme: light; margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 system-ui, sans-serif; }
.wish-page-header { width: min(calc(100% - 40px), 1100px); margin: auto; padding: 24px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; border-bottom: 1px solid var(--line); }
.wish-page-header a { color: var(--ink); text-decoration: none; }
.wish-page-brand { font-size: 20px; font-weight: 750; margin-right: auto; }
.wish-page-header nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.wish-page-header [aria-current] { color: var(--accent); }
.wish-page-header select { font: inherit; font-size: 14px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; min-height: 44px; padding: 8px; }
.wish-page-header .lang-chevron { display: none; }
.wish-page-footer { width: min(calc(100% - 40px), 1100px); margin: 0 auto 32px; font-size: 14px; }
.wish-page-footer a { color: var(--muted); }
.wish-page .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wish-page a:focus-visible, .wish-page select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-color-scheme: dark) { .wish-page { --bg: #0d1814; --paper: #16251e; --ink: #eaf3ee; --muted: #a7bdb0; --line: #2d4035; --accent: #70dcad; color-scheme: dark; } }
.wish-wall {
  --wish-paper: var(--paper, var(--surface, #fff));
  --wish-ink: var(--ink, var(--text, #172c25));
  --wish-muted: var(--secondary, var(--muted, #526b60));
  --wish-accent: var(--accent-strong, var(--accent, var(--blue-deep, #126a4d)));
  width: min(calc(100% - 40px), 1100px); margin: 32px auto 64px; padding: 40px 0;
  color: var(--wish-ink); scroll-margin-top: 32px;
}
.wish-wall *, .wish-wall *::before, .wish-wall *::after { box-sizing: border-box; }
.wish-wall [hidden] { display: none !important; }
.wish-wall .wish-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.wish-wall .wish-eyebrow { color: var(--wish-accent); font-size: 12px; font-weight: 700; letter-spacing: .06em; margin: 0 0 8px; }
.wish-wall h1 { color: var(--wish-ink); font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; line-height: 1.2; letter-spacing: -.03em; }
.wish-wall .wish-heading p:last-child { max-width: 600px; margin: 0; color: var(--wish-muted); }
.wish-wall .wish-heading-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.wish-wall .wish-heading-actions .wish-submit { width: auto; }
.wish-wall .wish-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.wish-wall.is-composing .wish-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.wish-wall:not(.is-composing) .wish-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wish-wall .wish-form { background: var(--wish-paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px; min-width: 0; }
.wish-wall label { display: block; color: var(--wish-ink); font-size: 14px; font-weight: 650; margin: 0 0 8px; }
.wish-wall input, .wish-wall textarea { display: block; width: 100%; min-width: 0; margin: 0 0 18px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--wish-ink); font: inherit; font-size: 16px; line-height: 1.5; }
.wish-wall textarea { resize: vertical; min-height: 120px; }
.wish-wall .wish-form > textarea { margin-bottom: 4px; }
.wish-wall .wish-counter { text-align: right; font-size: 12px; color: var(--wish-muted); margin-bottom: 16px; }
.wish-wall button { min-height: 44px; margin: 0; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; box-shadow: none; letter-spacing: normal; white-space: normal; }
.wish-wall button:disabled { opacity: .55; cursor: wait; }
.wish-wall button:focus-visible, .wish-wall input:focus-visible, .wish-wall textarea:focus-visible, .wish-wall a:focus-visible { outline: 3px solid var(--wish-accent); outline-offset: 3px; }
.wish-wall .wish-quiet { color: var(--wish-accent); background: var(--wish-paper); }
.wish-wall .wish-submit { display: block; width: 100%; color: var(--wish-paper); background: var(--wish-accent); border-color: var(--wish-accent); }
.wish-wall .wish-captcha-row { display: flex; gap: 12px; align-items: stretch; }
.wish-wall .wish-captcha-row input { flex: 1; width: 0; margin: 0; text-transform: uppercase; letter-spacing: .12em; }
.wish-wall .wish-captcha { flex: 0 0 132px; padding: 0; overflow: hidden; height: 48px; background: #eaf2ef; color: #183f32; border: 0; }
.wish-wall .wish-captcha img { display: block; width: 132px; height: 48px; max-width: none; }
.wish-wall .wish-note, .wish-wall .wish-message, .wish-wall .wish-login { font-size: 12px; line-height: 1.7; color: var(--wish-muted); margin: 12px 0 16px; overflow-wrap: anywhere; }
.wish-wall .wish-message { font-size: 14px; color: var(--wish-ink); }
.wish-wall .wish-message[data-error="true"] { border-left: 3px solid currentColor; padding-left: 10px; }
.wish-wall .wish-feed { min-width: 0; }
.wish-wall .wish-feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wish-wall h3 { margin: 0; font-size: 18px; color: var(--wish-ink); }
.wish-wall .wish-list { display: grid; gap: 14px; }
.wish-wall .wish-card { padding: 22px; background: var(--wish-paper); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.wish-wall .wish-text, .wish-wall .wish-reply-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--wish-ink); margin: 0; line-height: 1.75; }
.wish-wall .wish-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--wish-muted); font-size: 12px; margin-top: 18px; overflow-wrap: anywhere; }
.wish-wall .wish-reply { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.wish-wall .wish-reply b { display: block; color: var(--wish-accent); font-size: 12px; margin-bottom: 6px; }
.wish-wall .wish-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.wish-wall .wish-reply-form { margin-top: 16px; }
.wish-wall .wish-reply-form textarea { min-height: 80px; }
.wish-wall .wish-state { padding: 28px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; color: var(--wish-muted); font-size: 14px; }
.wish-wall .wish-more { display: block; margin: 20px auto 0; }
@media (max-width: 700px) {
  .wish-wall { margin-top: 16px; padding: 32px 0; }
  .wish-wall .wish-heading { flex-wrap: wrap; gap: 12px; }
  .wish-wall .wish-heading > button { padding: 8px 12px; }
  .wish-wall .wish-layout, .wish-wall.is-composing .wish-layout, .wish-wall:not(.is-composing) .wish-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .wish-wall .wish-form, .wish-wall .wish-card { padding: 18px; }
  .wish-page-header { gap: 12px; padding: 16px 0; }
  .wish-page-header nav { order: 3; flex-basis: 100%; }
}
