.oaf-wrap { display: flex; flex-direction: column; gap: 20px; }
.oaf-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.oaf-tab { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid #e5d8c5; background: #fffaf2; color: #2b2118; font-weight: 700; font-size: 14px; cursor: pointer; }
.oaf-tab[aria-selected="true"] { background: #b8332a; color: #ffffff; border-color: #b8332a; }
.oaf-panel[hidden] { display: none; }
.oaf-card { background: #fdf7ed; border: 1px solid #e5d8c5; border-radius: 12px; padding: 20px; }
.oaf-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin: 0 auto; }
.oaf-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: #2b2118; }
.oaf-input, .oaf-textarea { width: 100%; border: 1px solid #d7c7b0; border-radius: 10px; padding: 12px 14px; font-size: 16px; font-family: inherit; background: #ffffff; color: #2b2118; }
.oaf-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.oaf-theme-btn { min-height: 76px; padding: 12px; border-radius: 12px; border: 2px solid #e5d8c5; background: #ffffff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 14px; color: #2b2118; }
.oaf-theme-btn[aria-pressed="true"] { border-color: #b8332a; box-shadow: 0 0 0 3px rgba(184, 51, 42, 0.16); }
.oaf-swatch { width: 28px; height: 10px; border-radius: 999px; display: inline-block; }
.oaf-code-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.oaf-code-row .oaf-input { flex: 1; min-width: 180px; }
.oaf-btn { min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.oaf-btn-pri { background: #b8332a; color: #ffffff; }
.oaf-btn-pri:hover { background: #94261f; }
.oaf-btn-sec { background: #245c3f; color: #ffffff; }
.oaf-btn-sec:hover { background: #1b4730; }
.oaf-btn-ghost { background: #ffffff; color: #2b2118; border-color: #d7c7b0; }
.oaf-btn-ghost:hover { border-color: #b8332a; color: #b8332a; }
.oaf-err { padding: 12px 14px; border-radius: 10px; background: #fdecec; border: 1px solid #f5b5b2; color: #8c1d18; font-size: 14px; font-weight: 600; }
.oaf-ok { padding: 10px 14px; border-radius: 10px; background: #eaf5ee; border: 1px solid #b5dcc3; color: #1b4730; font-size: 14px; font-weight: 600; }
.oaf-board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #e5d8c5; }
.oaf-board-title { margin: 0; font-size: 26px; font-family: var(--font-display, Georgia, serif); color: #2b2118; }
.oaf-stats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.oaf-chip { padding: 4px 12px; border-radius: 999px; background: #efe4d2; font-size: 13px; font-weight: 700; color: #2b2118; }
.oaf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.oaf-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px; }
.oaf-board-theme-gingerbread { background: linear-gradient(160deg, #f3e4cf 0%, #ead2b4 100%); border-color: #d4b084; }
.oaf-board-theme-snowy { background: linear-gradient(160deg, #edf4f0 0%, #dcebe3 100%); border-color: #b3cfc0; }
.oaf-board-theme-candycane { background: linear-gradient(160deg, #fdf0ef 0%, #f8dfdf 100%); border-color: #eab8b4; }
.oaf-door { min-height: 104px; padding: 10px 8px; border-radius: 12px; border: 2px dashed rgba(43, 33, 24, 0.25); background: rgba(255, 250, 242, 0.85); color: #2b2118; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; transition: transform 0.12s ease, border-color 0.12s ease; }
.oaf-door:hover { transform: translateY(-2px); border-color: #b8332a; }
.oaf-door-claimed { border-style: solid; border-color: #245c3f; background: #fffaf2; }
.oaf-door-unlockable { border-style: solid; border-color: #d4942a; background: #fff6de; box-shadow: 0 4px 14px rgba(212, 148, 42, 0.22); }
.oaf-door-num { font-family: var(--font-display, Georgia, serif); font-size: 20px; font-weight: 700; line-height: 1; }
.oaf-door-icon { font-size: 22px; line-height: 1.2; }
.oaf-door-meta { font-size: 12px; font-weight: 600; color: #6b5b4b; word-break: break-word; max-width: 100%; }
.oaf-board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(43, 33, 24, 0.12); font-size: 13px; }
.oaf-link-btn { background: none; border: none; color: #6b5b4b; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 6px 4px; }
.oaf-my-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.oaf-my-item { background: #ffffff; border: 1px solid #e5d8c5; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.oaf-modal-bg { position: fixed; inset: 0; background: rgba(43, 33, 24, 0.56); z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; }
.oaf-modal-bg[hidden] { display: none; }
.oaf-modal { width: 100%; max-width: 480px; background: #fffaf2; border: 1px solid #e5d8c5; border-radius: 16px; padding: 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24); max-height: 90vh; overflow-y: auto; }
.oaf-stickers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.oaf-stk { min-height: 44px; border-radius: 10px; border: 1px solid #e5d8c5; background: #ffffff; font-size: 20px; cursor: pointer; }
.oaf-stk[aria-pressed="true"] { border-color: #b8332a; background: #fdecec; }
.oaf-note-body { background: #ffffff; border: 1px solid #e5d8c5; border-radius: 12px; padding: 18px; font-size: 17px; line-height: 1.6; color: #2b2118; margin: 14px 0; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 900px) { .oaf-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) {
  .oaf-themes { grid-template-columns: 1fr; }
  .oaf-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .oaf-door { min-height: 88px; padding: 8px 4px; }
  .oaf-stickers { grid-template-columns: repeat(4, 1fr); }
  .oaf-actions .oaf-btn { width: 100%; }
}
