:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #42372e;
  background: #fffaf3;
  --accent: #f5c875;
  --accent-strong: #a45a2e;
  --line: #eee4d7;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { max-width: 680px; margin: auto; padding: 0 20px 80px; }
.top { height: 70px; display: flex; align-items: center; justify-content: space-between; }
.guest-divider { border: 0; border-top: 1px solid var(--line); margin: 0 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 20px; font-weight: 800; letter-spacing: -.7px; color: #a65d2f; }
.brand-avatar { position: relative; display: grid; place-items: center; flex: none; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: #fce9c6; color: #bb7a39; }
.brand-avatar::before { content: "✦"; position: absolute; font-size: 22px; }
.brand-avatar img { position: relative; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.brand-avatar img.loaded { opacity: 1; }
.top select { width: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff1d7; border: 1px solid #f7e4c5; border-radius: 19px; padding: 18px 20px; margin: 8px 0 28px; }
.hero h1 { font-size: clamp(22px, 6vw, 28px); letter-spacing: -.8px; line-height: 1.15; margin: 0 0 5px; }
.hero p { max-width: 320px; color: #765f48; font-size: 13px; line-height: 1.4; margin: 0; }
.hero .primary { flex: none; }
button { cursor: pointer; font: inherit; font-weight: 700; }
button:disabled { opacity: .5; cursor: wait; }
.primary { border: 0; background: var(--accent); color: #513921; border-radius: 14px; padding: 13px 20px; box-shadow: 0 5px 12px #bb78351c; }
.secondary { border: 1px solid #e6d3b8; background: #fffdf8; color: #8e512b; border-radius: 12px; padding: 10px 15px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-title { display: flex; align-items: baseline; gap: 9px; }
.section-title h2 { margin: 0; }
.view-switch { display: flex; padding: 3px; border: 1px solid var(--line); background: #fff; border-radius: 11px; }
.view-switch button { border: 0; background: none; border-radius: 8px; padding: 7px 10px; color: #8d7b6a; font-size: 12px; }
.view-switch button[aria-pressed="true"] { background: #fce9c6; color: #68441f; }
.section-heading h2, .settings h2 { font-size: 22px; letter-spacing: -.5px; }
.count { color: #98897c; }
.list { display: grid; gap: 11px; }
.list.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.list.grid .empty { grid-column: 1 / -1; }
.wish { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 2px 12px #7953320a; overflow: hidden; }
.wish-main { border: 0; background: none; text-align: left; color: inherit; cursor: pointer; }
.wish-main:hover { background: #fffaf3; }
.wish-main:focus-visible, .view-switch button:focus-visible { outline: 2px solid #d99c4d; outline-offset: -2px; }
.wish.list .wish-main { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 88px; padding: 12px; }
.thumb { width: 62px; height: 62px; border-radius: 12px; background: #fff2dd; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 26px; color: #d5ad79; }
.wish-body { min-width: 0; flex: 1; }
.wish.list .wish-body { min-height: 62px; display: flex; flex-direction: column; justify-content: space-between; }
.wish-list-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 8px; }
.wish-list-meta .status-pill { margin-left: auto; }
.wish-title { font-size: 15px; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.wish-price { color: #8a7869; font-size: 12px; margin-top: 5px; }
.wish.list .wish-price { margin-top: 0; }
.status-pill { display: inline-block; border-radius: 30px; padding: 4px 8px; background: #e4f1e6; color: #2f7447; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-pill.reserved { background: #eee2d5; color: #7b5234; }
.status-pill.done { background: #ececee; color: #686a70; }
.wish.grid .wish-main { display: block; width: 100%; padding: 9px 9px 13px; min-height: 100%; }
.grid-media { position: relative; width: 100%; aspect-ratio: 1 / .92; margin-bottom: 10px; }
.grid-photo { width: 100%; height: 100%; border-radius: 11px; background: #fff2dd; object-fit: cover; display: grid; place-items: center; font-size: 52px; color: #d5ad79; }
.grid-media .status-pill { position: absolute; top: 7px; left: 7px; box-shadow: 0 2px 6px #553d2622; }
.wish.grid .wish-title { padding: 0 3px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 39px; }
.wish.grid .wish-price { padding: 0 3px; margin-top: 6px; font-size: 13px; }
.icon { border: 1px solid #edddc9; background: #fffaf3; border-radius: 9px; padding: 7px 12px; color: #8b603a; }
.empty { border: 1px dashed #e9d7ba; background: #fff; border-radius: 18px; text-align: center; padding: 36px; color: #917d68; }
.settings { margin-top: 42px; border-top: 1px solid var(--line); padding-top: 20px; }
.settings label, form label { display: block; font-size: 13px; font-weight: 750; margin: 20px 0 8px; }
.settings input, .settings textarea, form input, form textarea, form select { width: 100%; font: inherit; color: #42372e; border: 1px solid #e7d9c8; background: #fff; border-radius: 12px; padding: 12px; outline-color: #d99c4d; }
.link-row { display: flex; gap: 8px; }
.link-row input { min-width: 0; }
.hint { color: #98897c; font-size: 12px; line-height: 1.4; margin: 7px 0; }
.settings textarea { resize: vertical; }
.settings > button { margin-top: 10px; }
.guest-home { display: block; width: 100%; margin-top: 34px; }
dialog { width: min(100% - 20px, 520px); max-height: calc(100vh - 30px); border: 0; border-radius: 22px; padding: 22px; background: #fffaf3; box-shadow: 0 20px 70px #5d473755; }
dialog::backdrop { background: #35291e80; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-head h2 { margin: 0; }
.close-icon { width: 38px; height: 38px; padding: 0; font-size: 23px; }
.detail-media { position: relative; margin-bottom: 18px; }
.detail-media .close-icon { position: absolute; z-index: 1; top: 10px; right: 10px; background: #fffaf3eb; }
.detail-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff0d5; border-radius: 16px; color: #d5ad79; }
div.detail-photo { display: grid; place-items: center; font-size: 88px; }
#detail .status-pill { margin-bottom: 10px; }
#detail-title { font-size: 26px; line-height: 1.18; margin: 0 0 8px; overflow-wrap: anywhere; }
.detail-price { font-size: 18px; font-weight: 700; color: #90613a; }
.detail-description { line-height: 1.5; color: #6c5b4d; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-link { display: inline-block; color: #9d6034; margin-bottom: 8px; }
.detail-actions { display: flex; align-items: stretch; gap: 9px; margin-top: 20px; }
.detail-edit { flex: 1; min-width: 0; }
.guest-reserve { width: 100%; margin-top: 20px; }
.move-button { width: 48px; min-width: 48px; padding: 0; font-size: 22px; }
[hidden] { display: none !important; }
.dialog-actions { display: flex; justify-content: space-between; margin-top: 25px; }
.danger, .text-button { border: 0; background: none; color: #b04848; padding: 10px 0; }
.text-button { font-size: 13px; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #493b2d; color: #fff; border-radius: 12px; padding: 10px 16px; max-width: 90%; opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.show { opacity: 1; }
@media (max-width: 400px) {
  .shell { padding: 0 14px 60px; }
  .hero { padding: 16px; }
  .hero .primary { padding: 11px 12px; font-size: 12px; }
  .hero p { font-size: 12px; }
  .wish.list .wish-main { gap: 11px; }
  .thumb { width: 58px; height: 58px; }
}
