* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f4f6fb; color: #111827; font: 15px/1.6 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; }
.inbox-nav { position: relative; z-index: 999; height: 60px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #e5e7eb; }
.inbox-nav img { display: block; width: auto; height: 58px; }
.inbox-nav .nav-links { display: flex; gap: 22px; align-items: center; margin: 0; padding: 0; list-style: none; }
.inbox-nav .nav-links a { color: #4b5563; text-decoration: none; font-size: 14px; }
.inbox-nav .nav-about { position: relative; }
.inbox-nav .dropdown { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 140px; padding: 6px 0; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.10); }
.inbox-nav .nav-about:hover .dropdown, .inbox-nav .nav-about:focus-within .dropdown { display: block; }
.inbox-nav .dropdown a { display: block; padding: 8px 14px; white-space: nowrap; }
.inbox-nav .dropdown a:hover { background: #f4f6fb; }
.inbox { width: min(100%, 760px); padding: 23px 22px 60px; margin: 0 auto; }
.inbox-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.inbox-heading h1 { margin: 0; color: #0f1f3d; font-size: clamp(25px, 5vw, 34px); letter-spacing: -.04em; }
.inbox-count, .inbox-new { border-radius: 18px; background: var(--message-alert); padding: 2px 9px; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.inbox-panel { background: #fff; padding: 18px 20px; border: 1px solid #dce3ef; border-radius: 14px; margin-bottom: 14px; }
.inbox-panel p { margin: 0; }
#inbox-login p { margin-bottom: 13px; }
.inbox-notifications { display: flex; flex-wrap: wrap; gap: 10px 15px; justify-content: space-between; align-items: center; }
.inbox-notifications h2 { margin: 0 0 3px; font-size: 15px; color: #0f1f3d; }
.inbox-notifications p, .inbox-status { font-size: 13px; color: #4b5563; }
.inbox-status { margin: 14px 0 8px; }
.inbox-primary, .inbox-secondary { min-height: 40px; border: 1px solid #bccbe2; border-radius: 9px; padding: 6px 13px; background: #fff; color: #164489; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.inbox-primary { color: #fff; background: #2459ae; border-color: #2459ae; }
.inbox-secondary:hover { background: #eef4ff; }
.inbox-primary:hover { background: #164489; }
.inbox-secondary:disabled { opacity: .6; cursor: wait; }
.inbox-more { display: block; margin: 14px auto 0; }
.inbox-item { margin-bottom: 8px; border: 1px solid #dce3ef; border-radius: 12px; background: #fff; }
.inbox-item:focus { outline: 2px solid #6388c0; outline-offset: 2px; }
.inbox-item.is-unread { border-color: #e8aeb8; box-shadow: inset 3px 0 var(--message-alert); }
.inbox-message { display: block; width: 100%; border: 0; border-radius: inherit; background: none; padding: 14px 16px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.inbox-message:disabled { cursor: default; }
.inbox-message:not(:disabled):hover { background: #f4f6fb; }
.inbox-message:focus-visible { outline: 2px solid #6388c0; outline-offset: -2px; }
.inbox-item-header { display: flex; flex-wrap: wrap; gap: 4px 9px; align-items: center; }
.inbox-item-header strong { font-size: 14px; color: #0f1f3d; }
.inbox-item-header time { margin-left: auto; font-size: 12px; color: #4b5563; }
.inbox-chevron { width: 8px; height: 8px; margin: -3px 2px 0 3px; border: solid #4b5563; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.is-expanded .inbox-chevron { transform: rotate(225deg); margin-top: 4px; }
.inbox-excerpt, .inbox-original p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.is-unread:not(.is-expanded) .inbox-excerpt { display: none; }
.is-expanded .inbox-excerpt { display: block; }
.inbox-original { margin: 0 16px 12px; padding-top: 8px; border-top: 1px solid #e5e7eb; color: #4b5563; font-size: 14px; }
.inbox-original summary { cursor: pointer; font-weight: 600; }
.inbox-original p { margin-top: 8px; }
.inbox-card-status { margin: 0 16px 12px; color: #4b5563; font-size: 13px; }
.inbox-card-status:empty { display: none; }
@media (max-width: 640px) {
  .inbox-nav { padding: 0 14px 0 5px; }
  .inbox-nav .nav-links { gap: 16px; }
  .inbox-nav .nav-links a { font-size: 12px; }
  .inbox { padding: 17px 14px 42px; }
  .inbox-panel { padding: 14px 16px; }
}
