/* 독자 의견: 내용을 빠르게 읽고 쓸 수 있는 조밀한 배치 */
.feedback-page main .wrap { max-width: 1080px; }
.feedback-page .page-head { padding: 20px 0 16px; }
.feedback-page .page-head h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.25; letter-spacing: -.045em; }
.feedback-page .page-head .lead { font-size: 15px; line-height: 1.6; }
.feedback-page .feedback-section { padding: 0 0 24px; border-top: 0; }
.feedback-page .feedback-context { margin-bottom: 12px; }
.feedback-page .feedback-compose { overflow: hidden; margin-bottom: 20px; border-radius: 10px; background: var(--bg-elev); }
.feedback-page .feedback-compose > summary { padding: 12px 16px; border-left: 3px solid var(--accent); transition: background .18s ease; }
.feedback-page .feedback-compose > summary:hover { background: var(--accent-soft); }
.compose-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.feedback-page .feedback-compose > summary strong { font-size: 17px; letter-spacing: -.035em; color: var(--text); }
.feedback-page .compose-hint { margin: 0; font-size: 13px; }
.feedback-page .compose-icon { width: 36px; height: 36px; flex-shrink: 0; color: var(--bg-elev); background: var(--accent); transition: transform .18s ease; }
.feedback-page .feedback-form { padding: 16px; }
.feedback-page .feedback-form h2 { font-size: 18px; }
.feedback-page .feedback-form .feedback-note { margin: 6px 0 12px; line-height: 1.6; }
.feedback-page .feedback-form-row { gap: 0 16px; }
.feedback-page .feedback-form label { margin-bottom: 12px; font-size: 14px; }
.feedback-page .feedback-form :is(input, select, textarea) { margin-top: 4px; padding: 9px 10px; background: var(--bg); border-radius: 6px; }
.feedback-page .feedback-form textarea { min-height: 110px; line-height: 1.6; }
.feedback-page .feedback-form button { min-height: 44px; padding: 8px 24px; border-radius: 8px; }
.feedback-page .feedback-status { margin-top: 8px; }
.feedback-page .feedback-status:empty { display: none; }
.feedback-page .feedback-inbox { margin-bottom: 16px; }
.feedback-page .inbox-heading h2 { font-size: 22px; letter-spacing: -.045em; }
.feedback-page .inbox-heading p { margin-top: 4px; }
.feedback-page #inbox-refresh { border-radius: 8px; padding: 8px 12px; background: transparent; }
.feedback-page .inbox-filters { margin-top: 12px; padding: 6px 0; }
.feedback-page .inbox-filters label { font-size: 13px; font-weight: 600; }
.feedback-page .inbox-filters select { background: var(--bg-elev); font-size: 14px; }
.feedback-page #inbox-status { margin: 8px 0; line-height: 1.6; }
.feedback-page #inbox-list:empty { min-height: 0; margin: 0; }
.feedback-page .inbox-item { padding: 14px 16px; margin-bottom: 8px; border-radius: 8px; }
.feedback-page .inbox-type { padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.feedback-page .inbox-message { margin: 10px 0; line-height: 1.65; }
.feedback-page .inbox-reactions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 10px; padding-top: 6px; }
.feedback-page .inbox-reactions > .feedback-status:not(:empty) { flex-basis: 100%; }
.feedback-page .inbox-reactions button { border-radius: 8px; background: transparent; }
.feedback-page .inbox-thread { flex-basis: 100%; min-width: 0; margin-top: 0; }
.feedback-page .inbox-comment-count { margin: 2px 0; font-size: 13px; color: var(--text-dim); }
.feedback-page .inbox-comment { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 14px; }
.feedback-page .inbox-comment .inbox-meta { flex-shrink: 0; max-width: 25%; overflow-wrap: anywhere; margin: 0; }
.feedback-page .inbox-comment .inbox-message { flex: 1; min-width: 0; margin: 0; white-space: normal; }
.feedback-page .inbox-comment time { flex-shrink: 0; font-size: 12px; color: var(--text-dim); }
.feedback-page .inbox-comment-form { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: end; gap: 6px 8px; margin-top: 8px; }
.feedback-page .inbox-comment-form label { margin: 0; font-size: 12px; }
.feedback-page .inbox-comment-form input, .feedback-page .inbox-comment-form textarea { margin-top: 3px; padding: 8px; min-height: 40px; }
.feedback-page .inbox-comment-form textarea { height: 40px; }
.feedback-page .inbox-comment-form button { grid-column: 3; grid-row: 1; min-height: 40px; }
.feedback-page .inbox-comment-form .feedback-note, .feedback-page .inbox-comment-form .feedback-status { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.feedback-page .feedback-inbox button:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
.feedback-page .feedback-alternative { margin-bottom: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.feedback-page .feedback-alternative > summary { font-weight: 600; }
.feedback-page .feedback-alternative .feedback-grid { margin-top: 12px; gap: 12px; }
.feedback-page .feedback-alternative .feedback-card { padding: 14px; background: var(--bg-elev); }
.feedback-page .feedback-alternative .feedback-card h2 { margin-top: 6px; }
.feedback-page .feedback-alternative .feedback-card p { margin-bottom: 10px; }
.feedback-page .feedback-admin { margin-top: 16px; padding: 14px; }
.feedback-page footer { padding: 16px 0 24px; }
@media (max-width: 720px) {
  .feedback-page .page-head { padding: 16px 0 12px; }
  .feedback-page .page-head h1 { font-size: 26px; }
  .feedback-page .feedback-compose { margin-bottom: 16px; }
  .feedback-page .feedback-compose > summary { padding: 10px 12px; gap: 10px; }
  .feedback-page .compose-hint { font-size: 12px; }
  .feedback-page .feedback-form { padding: 12px; }
  .feedback-page .inbox-heading { gap: 8px; }
  .feedback-page .inbox-heading h2 { font-size: 20px; }
  .feedback-page .inbox-heading p { font-size: 13px; max-width: none; }
  .feedback-page .inbox-item { padding: 12px; }
  .feedback-page .feedback-inbox button { min-height: 44px; }
  .feedback-page .inbox-comment-form { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 6px; }
  .feedback-page .inbox-comment-form input, .feedback-page .inbox-comment-form textarea { min-height: 44px; }
  .feedback-page .inbox-comment-form button { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-page .feedback-compose > summary, .feedback-page .compose-icon { transition: none; }
}

.feedback-page .author-admin { display: inline-flex; align-items: center; padding: 0 7px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 11px; line-height: 1.5; }

/* Board and writing desk: one compact workspace, with the feed first visually. */
.feedback-page main .wrap { max-width: 1240px; }
.feedback-page .page-head { padding: 22px 0 18px; }
.feedback-intro { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; }
.feedback-page .page-head h1 { margin: 0; font-size: 28px; }
.feedback-page .page-head .lead { margin: 0; font-size: 14px; color: var(--text-dim); }
.feedback-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.feedback-workspace > * { min-width: 0; }
.feedback-page .feedback-context { margin: 0; padding: 8px 12px; }
.feedback-page .feedback-compose { margin: 0; border-radius: 12px; }
.feedback-page .feedback-compose > summary { padding: 14px 16px; border-left: 0; }
.compose-label { display: grid; gap: 0; }
.feedback-page .compose-icon { width: 28px; height: 28px; background: var(--accent-soft); color: var(--accent); }
.feedback-page .feedback-form { padding: 14px 16px 16px; }
.feedback-page .feedback-form .compose-note { margin: 0 0 12px; font-size: 13px; }
.feedback-page .feedback-form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.feedback-page .feedback-form label { margin-bottom: 12px; font-size: 13px; }
.feedback-page .feedback-form :is(input, select, textarea) { min-width: 0; min-height: 44px; padding: 9px; }
.feedback-page .feedback-form textarea { min-height: 150px; }
.feedback-page .feedback-form .privacy-note { margin: -2px 0 12px; font-size: 12px; }
.feedback-page .feedback-form-foot { gap: 8px; }
.feedback-page .feedback-form-foot button { min-width: 120px; }
.feedback-page .feedback-status { font-size: 13px; overflow-wrap: anywhere; }
.feedback-page .feedback-inbox { width: 100%; margin: 0 0 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); overflow: hidden; }
.feedback-page .inbox-heading { padding: 16px 18px 12px; }
.feedback-page .inbox-heading h2 { font-size: 19px; }
.feedback-page .inbox-heading p { margin: 2px 0 0; font-size: 12px; }
.feedback-page #inbox-refresh { min-height: 44px; font-size: 12px; border-color: transparent; }
.feedback-page .inbox-filters { gap: 8px; margin: 0; padding: 0 14px; border-top: 0; background: var(--surface); }
.inbox-type-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.feedback-page .inbox-type-tabs button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 0; background: transparent; color: var(--text-dim); border-bottom: 2px solid transparent; }
.feedback-page .inbox-type-tabs button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.feedback-page #inbox-status { margin: 0; padding: 9px 18px; font-size: 12px; border-bottom: 1px solid var(--border); }
.feedback-page #inbox-status:empty { display: none; }
.feedback-page .inbox-item { padding: 15px 18px; margin: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
.feedback-page .inbox-item:last-child { border-bottom: 0; }
.feedback-page .inbox-meta { gap: 6px 10px; font-size: 12px; }
.feedback-page .inbox-type { font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.feedback-page .inbox-message { margin: 9px 0; line-height: 1.7; font-size: 15px; }
.feedback-page .inbox-reactions { gap: 4px 10px; margin-top: 8px; padding-top: 0; border-top: 0; }
.feedback-page .inbox-reactions > button { min-height: 36px; padding: 5px 9px; font-size: 12px; }
.feedback-page .inbox-thread { border-top: 1px dashed var(--border); padding-top: 6px; }
.feedback-page .inbox-comment-count { font-size: 12px; }
.feedback-page .inbox-comment { gap: 8px; padding: 7px 0; }
.feedback-page .inbox-comment .inbox-message { margin: 0; font-size: 13px; white-space: pre-wrap; }
.feedback-page .inbox-comment time { font-size: 11px; }
.comment-compose { margin-top: 6px; }
.comment-compose > summary { width: fit-content; padding: 6px 0; min-height: 36px; color: var(--accent); font-size: 13px; cursor: pointer; }
.feedback-page .inbox-comment-form { margin: 4px 0 0; }
.feedback-page .inbox-comment-form button { min-height: 44px; }
.feedback-page #inbox-more { border: 0; border-top: 1px solid var(--border); border-radius: 0; min-height: 44px; }
.feedback-page .feedback-alternative { margin: 0; padding: 10px 0; border: 0; border-radius: 0; background: transparent; }
.feedback-page .feedback-alternative > summary { width: fit-content; min-height: 44px; display: list-item; align-content: center; font-size: 13px; }
.feedback-page [hidden] { display: none !important; }
@media (min-width: 1000px) {
  .feedback-page .feedback-form :is(input, select, textarea) { min-height: 38px; padding: 7px 10px; font-size: 14px; }
  .feedback-page .feedback-form textarea { min-height: 120px; }
  .feedback-page .feedback-form-foot button { min-height: 38px; font-size: 14px; }
  .feedback-page .inbox-filters select { min-height: 36px; padding: 5px 10px; }
  .feedback-page .inbox-comment-form :is(input, textarea) { min-height: 38px; height: 38px; padding: 7px 10px; font-size: 14px; }
  .feedback-page .inbox-comment-form button { min-height: 38px; font-size: 13px; }
  .feedback-workspace { grid-template-columns: minmax(0, 1fr) 370px; gap: 16px 24px; }
  .feedback-page .feedback-context { grid-column: 1 / -1; }
  .feedback-page .feedback-compose { grid-column: 2; grid-row: 1; position: sticky; top: 78px; }
  .feedback-page .feedback-inbox { grid-column: 1; grid-row: 1; }
  .feedback-context:not([hidden]) ~ :is(.feedback-compose, .feedback-inbox) { grid-row: 2; }
}
@media (max-width: 599px) {
  .feedback-page .page-head { padding: 16px 0 12px; }
  .feedback-page .page-head h1 { font-size: 24px; }
  .feedback-intro { gap: 2px; flex-direction: column; }
  .feedback-page .feedback-compose > summary { padding: 10px 12px; }
  .compose-label { display: flex; gap: 2px 10px; }
  .feedback-page .compose-hint { font-size: 11px; }
  .feedback-page .inbox-heading { padding: 12px; }
  .feedback-page .inbox-filters { padding: 0 6px; }
  .feedback-page .inbox-type-tabs button { padding: 8px 10px; font-size: 13px; }
  .feedback-page .inbox-item { padding: 12px; }
  .feedback-page #inbox-status { padding: 8px 12px; }
  .feedback-page .inbox-comment { flex-wrap: wrap; }
  .feedback-page .inbox-comment .inbox-meta { max-width: calc(100% - 70px); }
  .feedback-page .inbox-comment .inbox-message { flex-basis: 100%; order: 3; }
  .feedback-page .inbox-comment time { margin-left: auto; }
  .comment-compose > summary { min-height: 44px; }
  .feedback-page .inbox-comment-form { grid-template-columns: minmax(0, 1fr) auto; }
  .feedback-page .inbox-comment-form label:first-child { grid-column: 1 / -1; max-width: 140px; }
  .feedback-page .inbox-comment-form button { grid-column: 2; grid-row: 2; }
}
/* Stable action row; the editor spans the feed below both buttons. */
.feedback-page .inbox-reactions { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 6px 8px; }
.feedback-page .inbox-reactions > button { grid-column: 1; grid-row: 1; }
.feedback-page .inbox-thread, .feedback-page .comment-compose { display: contents; }
.feedback-page .inbox-comment-count { display: none; }
.feedback-page .inbox-comments { grid-column: 1 / -1; }
.feedback-page .inbox-comments:empty { display: none; }
.feedback-page .inbox-reactions .feedback-status, .feedback-page .inbox-thread > button { grid-column: 1 / -1; }
.feedback-page .reaction-comment { grid-column: 2; grid-row: 1; justify-self: start; }
.feedback-page .inbox-reactions .reaction-action { position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; margin-left: -8px; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text-dim); font-size: 12.5px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.feedback-page .inbox-reactions .reaction-action::after { content: ""; position: absolute; inset: -7px -2px; }
.feedback-page .inbox-reactions .reaction-comment { margin-left: 0; }
.feedback-page .inbox-reactions .reaction-action:hover:not(:disabled) { color: var(--accent); background: var(--accent-soft); }
.feedback-page .reaction-action:is([aria-pressed="true"], [aria-expanded="true"]) { color: var(--accent); }
.feedback-page .reaction-action:disabled { opacity: .6; cursor: wait; }
.reaction-count { color: inherit; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.reaction-count:empty { display: none; }
.reaction-icon { display: inline-block; width: 15px; height: 15px; flex-shrink: 0; background: currentColor; mask: var(--reaction-icon) center / contain no-repeat; }
.reaction-heart { --reaction-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1.1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[aria-pressed="true"] .reaction-heart { --reaction-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1.1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8Z'/%3E%3C/svg%3E"); }
.reaction-bubble { --reaction-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 15a3 3 0 0 1-3 3H9l-5 3V6a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.feedback-page .comment-compose > .inbox-comment-form { grid-column: 1 / -1; margin: 2px 0 0; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.feedback-page .inbox-comment-form textarea { min-height: 44px; height: 44px; }
.feedback-page .inbox-comment-form button { background: var(--text); color: var(--bg); padding-inline: 14px; }
.feedback-page .inbox-comment-form button:hover:not(:disabled) { background: var(--accent); color: var(--bg); }
.feedback-page .inbox-comment:last-child { border-bottom: 0; }

#inbox-total:empty + .inbox-total-separator { display: none; }

.feedback-page .inbox-owner-note { margin: 0; padding: 6px 14px; font-size: 12px; }
.feedback-page .feedback-inbox:not(:has(#inbox-view option[value="mine"]:checked)) .inbox-owner-note { display: none; }

/* Compact, labeled colors keep visibility and category easy to scan. */
.feedback-page .inbox-identity { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.feedback-page .inbox-visibility { flex-shrink: 0; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.feedback-page .inbox-visibility-public { color: #14603c; background: #dcf5e7; }
.feedback-page .inbox-visibility-private { color: #854c08; background: #fff0ce; }
.feedback-page .inbox-type-error { color: #a52836; background: #ffe4e8; }
.feedback-page .inbox-type-request { color: #2456a4; background: #e2edff; }
.feedback-page .inbox-type-cheer { color: #773ba0; background: #f2e5fc; }
.feedback-page .inbox-email { margin: 6px 0; color: var(--text-dim); font-size: 12px; overflow-wrap: anywhere; }
.feedback-page #admin-session { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 8px 18px; border-block: 1px solid var(--border); background: var(--surface); }
.admin-session-info { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.admin-session-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.admin-session-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.feedback-page #admin-logout { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 7px 11px; font-size: 12px; }
@media (max-width: 599px) {
  .feedback-page #admin-session { padding: 6px 12px; }
  .admin-session-detail { display: none; }
}
