[hidden] { display: none !important; }
.page { max-width: 1280px !important; margin: 0 auto !important; padding: 24px 16px 80px !important; overflow-x: hidden !important; }
.app-shell { margin-bottom: 28px; }
.app-shell .app-nav { max-width: 1280px; margin: 0 auto; padding: 20px 18px 16px; border: 1px solid rgba(121, 106, 78, 0.16); border-radius: 28px; background: rgba(255, 255, 255, 0.78); box-shadow: 0 20px 50px rgba(105, 88, 62, 0.08); backdrop-filter: blur(14px); position: sticky; top: 12px; z-index: 20; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.app-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; min-width: 0; color: inherit; text-decoration: none; }
.app-brand-logo { width: 46px; height: 46px; border-radius: 14px; object-fit: contain; background: #fff; box-shadow: 0 10px 24px rgba(30, 84, 160, 0.12); flex: 0 0 auto; }
.app-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; min-height: 52px; }
.app-button { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(34, 32, 29, 0.08); background: white; color: var(--text, #22201d); font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
.app-button.secondary { background: rgba(255, 255, 255, 0.72); }
.app-auth-loading { min-width: 92px; min-height: 42px; border-radius: 999px; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(34, 32, 29, 0.06); }
.app-user-menu { position: relative; min-width: 0; }
.app-user { display: none; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.84); border: 1px solid rgba(34, 32, 29, 0.08); min-width: 0; min-height: 52px; font: inherit; cursor: pointer; }
.app-user.open { display: flex; }
.app-user[aria-expanded="true"] { box-shadow: 0 10px 24px rgba(34, 32, 29, 0.10); }
.app-user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5200; display: grid; gap: 4px; min-width: 156px; padding: 8px; border-radius: 18px; background: rgba(255, 251, 245, 0.98); border: 1px solid rgba(34, 32, 29, 0.10); box-shadow: 0 18px 40px rgba(34, 32, 29, 0.16); }
.app-user-dropdown[hidden] { display: none; }
.app-user-dropdown button { min-height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--text, #22201d); font: inherit; font-weight: 800; text-align: left; cursor: pointer; padding: 0 12px; }
.app-user-dropdown button:hover { background: rgba(188, 108, 37, 0.10); }
.app-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #f0e3d4; flex: 0 0 auto; }
.app-user-copy { display: grid; gap: 2px; min-width: 0; }
.app-user-name { font-size: 14px; font-weight: 800; color: var(--text, #22201d); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.app-user-email { font-size: 12px; color: var(--muted, #7a7368); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.app-segment { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #f4efe6; border: 1px solid rgba(34, 32, 29, 0.06); width: 100%; overflow-x: auto; min-width: 0; }
.app-segment a { padding: 10px 16px; border-radius: 999px; color: #5a5349; font-weight: 700; white-space: nowrap; text-decoration: none; }
.app-segment a.active { background: white; color: var(--text, #22201d); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.app-login-backdrop { position: fixed; inset: 0; background: rgba(30, 21, 13, 0.42); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 80; }
.app-login-backdrop.open { display: flex; }
.app-login-sheet { width: min(100%, 420px); max-height: min(80vh, 640px); overflow-y: auto; background: rgba(255, 251, 245, 0.98); border: 1px solid rgba(86, 67, 46, 0.12); border-radius: 28px; padding: 22px; box-shadow: var(--shadow, 0 20px 50px rgba(105, 88, 62, 0.08)); }
.app-login-sheet h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.04em; }
.app-login-sheet p { margin: 0; color: var(--muted, #7a7368); line-height: 1.6; }
.app-login-options { display: grid; gap: 10px; margin-top: 18px; }
.app-login-option {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 6px; /* 브랜드 규격에 가까운 부드러운 직각형 */
  border: 1px solid rgba(34,32,29,0.08);
  background: white;
  color: #22201d;
  font: inherit;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}
.app-login-option:hover { filter: brightness(0.98); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.app-login-option svg { flex-shrink: 0; }
.app-login-option span { white-space: nowrap; }
.app-login-option[data-app-provider="google"] {
  background: #ffffff;
  border: 1px solid #dadce0;
  color: #3c4043;
  font-family: 'Roboto', 'SUIT', sans-serif;
  justify-content: center;
}
.app-login-option[data-app-provider="naver"] {
  background: #03C75A;
  border: none;
  color: #ffffff;
  justify-content: center;
}
.app-login-option[data-app-provider="naver"] svg { width: 26px; height: 26px; }
.app-login-option:disabled { opacity: 0.55; cursor: not-allowed; }
.app-sheet-footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.app-version-note { margin: 18px 0 2px; color: #8a7d6d; font-size: 12px; text-align: center; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.18s; }
@media (max-width: 640px) { .page { padding: 18px 12px 72px !important; } .app-nav { padding: 16px 14px 14px; } .app-topbar { gap: 10px; } .app-brand { font-size: 20px; } .app-brand-logo { width: 42px; height: 42px; border-radius: 13px; } .app-button { min-height: 40px; padding: 0 14px; } .app-user-copy { display: none; } .app-segment a { padding: 10px 14px; } .app-login-backdrop { padding: 12px; } .app-login-sheet { width: 100%; border-radius: 24px; padding: 20px; } .app-login-option { padding: 14px 16px; align-items: center; flex-direction: row; gap: 12px; } }

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(188, 108, 37, 0.15);
  border-top-color: #bc6c25;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.spinning svg {
  animation: spin 1s linear infinite;
}
.loading-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--muted);
  font-weight: 700;
}

.setting-sheet-backdrop { position: fixed; inset: 0; background: rgba(30, 21, 13, 0.38); backdrop-filter: blur(6px); display: none; align-items: end; justify-content: center; padding: 16px; z-index: 90; }
.setting-sheet-backdrop.open { display: flex; }
.setting-sheet { width: min(100%, 520px); background: rgba(255, 251, 245, 0.98); border: 1px solid rgba(86, 67, 46, 0.12); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }

/* Notifications */
.app-notification-trigger {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(34, 32, 29, 0.08);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.app-notification-trigger:hover {
  background: #f7f2e9;
  transform: translateY(-1px);
}
.app-notification-trigger .icon-solid { display: none; }
.app-notification-trigger .icon-outline { display: block; }
.app-notification-trigger.has-unread .icon-solid { display: block; }
.app-notification-trigger.has-unread .icon-outline { display: none; }

.app-notification-trigger .icon-solid { display: none; }
.app-notification-trigger .icon-outline { display: block; }
.app-notification-trigger.has-unread .icon-solid { display: block; }
.app-notification-trigger.has-unread .icon-outline { display: none; }

.app-notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #e63946;
  border-radius: 999px;
  border: 2px solid white;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.app-notification-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 21, 13, 0.3);
  backdrop-filter: blur(4px);
  z-index: 5000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.app-notification-backdrop.open {
  display: block;
  opacity: 1;
}


.app-notification-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: min(100%, 360px);
  height: 100%;
  background: rgba(255, 251, 245, 0.98);
  box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  z-index: 5001;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.app-notification-panel.open {
  right: 0;
}
.app-notification-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-notification-header h3 { margin: 0; font-size: 20px; letter-spacing: -0.04em; }
.app-notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.app-notification-item {
  padding: 16px;
  border-radius: 18px;
  background: white;
  border: 1px solid rgba(34, 32, 29, 0.06);
  margin-bottom: 10px;
  transition: all 0.2s;
  cursor: pointer;
}
.app-notification-item:hover {
  border-color: #bc6c25;
  transform: translateX(-4px);
}
.app-notification-item.unread {
  background: #fffdf5;
  border-left: 4px solid #bc6c25;
  box-shadow: 0 4px 12px rgba(188, 108, 37, 0.08);
}
.app-notification-item.unread .title {
  color: #22201d;
  font-weight: 800;
}
.app-notification-item:not(.unread) {
  opacity: 0.75;
  background: white;
}
.app-notification-item:not(.unread) .title {
  font-weight: 600;
  color: var(--muted);
}
.app-notification-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.04);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  z-index: 2;
}
.app-notification-delete:hover {
  background: #e63946;
  color: white;
}
.app-notification-item .title { display: block; font-size: 14px; margin-bottom: 4px; padding-right: 24px; }
.app-notification-item .body { font-size: 13px; color: var(--muted); line-height: 1.5; }
.app-notification-item .time { display: block; font-size: 11px; color: #aaa; margin-top: 8px; }
.app-notification-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.app-notification-empty .icon { font-size: 32px; opacity: 0.5; margin-bottom: 4px; }
.app-notification-empty p { margin: 0; font-weight: 600; font-size: 14px; opacity: 0.8; }


