/* 알림센터 (al-) + 상단바 알림 종 + 홈 달력 새 종류(할 일 · 회의 · 면접 · 지원 마감) */

/* ---- 종류 색: 점 · 뱃지 · 칩이 --al-kind 하나를 쓴다 ---- */
.al-k-todo { --al-kind: #0f766e; }
.al-k-event { --al-kind: #6366f1; }
.al-k-work { --al-kind: #dc2626; }
.al-k-billing { --al-kind: #d97706; }
.al-k-renewal { --al-kind: #ea580c; }
.al-k-recontact { --al-kind: #059669; }
.al-k-meeting { --al-kind: #0891b2; }
.al-k-action { --al-kind: #7c3aed; }
.al-k-routine { --al-kind: #0284c7; }
.al-k-interview { --al-kind: #c026d3; }
.al-k-application { --al-kind: #65a30d; }
.al-k-system { --al-kind: #e11d48; }
.al-k-mailread { --al-kind: #16a34a; }
html[data-theme="dark"] .al-k-todo { --al-kind: #2dd4bf; }
html[data-theme="dark"] .al-k-event { --al-kind: #a5b4fc; }
html[data-theme="dark"] .al-k-work { --al-kind: #f87171; }
html[data-theme="dark"] .al-k-billing { --al-kind: #f5a524; }
html[data-theme="dark"] .al-k-renewal { --al-kind: #fb923c; }
html[data-theme="dark"] .al-k-recontact { --al-kind: #34d399; }
html[data-theme="dark"] .al-k-meeting { --al-kind: #22d3ee; }
html[data-theme="dark"] .al-k-action { --al-kind: #a78bfa; }
html[data-theme="dark"] .al-k-routine { --al-kind: #38bdf8; }
html[data-theme="dark"] .al-k-interview { --al-kind: #e879f9; }
html[data-theme="dark"] .al-k-application { --al-kind: #a3e635; }
html[data-theme="dark"] .al-k-system { --al-kind: #fb7185; }
html[data-theme="dark"] .al-k-mailread { --al-kind: #4ade80; }
.al-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--al-kind, var(--brand-text-muted)); }

/* ---- 화면 머리 ---- */
.al-page { padding-bottom: 72px; }
.al-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.al-header .page-description { max-width: 640px; }
.al-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.al-header-actions form { margin: 0; }
.al-header-actions .mydesk-pill .lucide { width: 16px; height: 16px; }
.al-header-actions .mydesk-pill:disabled { opacity: .5; cursor: default; }

/* ---- 요약 ---- */
.al-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 14px; }
.al-stat { --al-tone: var(--brand-text-muted); position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; min-width: 0; padding: 16px 18px; overflow: hidden; border: 1px solid var(--brand-border); border-radius: 14px; background: var(--brand-surface); color: var(--brand-text-primary); text-decoration: none; transition: border-color var(--transition-fast), background-color var(--transition-fast); }
.al-stat::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--al-tone); content: ""; }
.al-stat:hover { border-color: var(--brand-border-strong); text-decoration: none; }
.al-stat span { color: var(--brand-text-secondary); font-size: 13px; font-weight: 600; }
.al-stat small { color: var(--brand-text-muted); font-size: 12px; font-weight: 500; }
.al-stat b { color: var(--text-accent, var(--al-tone)); font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.al-stat.is-overdue { --al-tone: var(--brand-danger); }
.al-stat.is-today { --al-tone: var(--brand-accent); }
.al-stat.is-soon { --al-tone: #d97706; }
html[data-theme="dark"] .al-stat.is-soon { --al-tone: #f5a524; }

/* ---- 종류 칩 + 숨긴 것 보기 ---- */
.al-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.al-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.al-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--brand-border); border-radius: 999px; background: var(--brand-surface); color: var(--brand-text-secondary); font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast); }
.al-chip b { color: var(--brand-text-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.al-chip:hover { border-color: var(--brand-border-strong); color: var(--brand-text-primary); text-decoration: none; }
.al-chip.is-active { border-color: color-mix(in srgb, var(--al-kind, var(--brand-accent)) 55%, var(--brand-border)); background: color-mix(in srgb, var(--al-kind, var(--brand-accent)) 12%, var(--brand-surface)); color: var(--brand-text-primary); font-weight: 600; }
.al-chip.is-active b { color: inherit; }
.al-hidden-toggle { display: inline-flex; flex: none; align-items: center; gap: 8px; color: var(--brand-text-secondary); font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.al-hidden-toggle:hover { color: var(--brand-text-primary); text-decoration: none; }
.al-hidden-toggle b { color: var(--brand-text-muted); font-weight: 600; }
.al-switch { position: relative; width: 32px; height: 18px; border-radius: 999px; background: var(--brand-border-strong); transition: background-color var(--transition-fast); }
.al-switch::after { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); content: ""; transition: transform .18s cubic-bezier(.16, 1, .3, 1); }
.al-hidden-toggle.is-on .al-switch { background: var(--brand-accent); }
.al-hidden-toggle.is-on .al-switch::after { transform: translateX(14px); }
.al-warn, .al-note { margin: 8px 0 0; color: var(--brand-text-muted); font-size: 13px; }
.al-warn { color: var(--brand-danger); }
.al-note a { color: var(--text-accent, var(--brand-accent)); }

/* ---- 묶음 · 목록 ---- */
.al-groups { display: grid; gap: 22px; margin-top: 18px; }
.al-group { scroll-margin-top: 110px; }
.al-group-title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.al-group-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand-surface-muted); color: var(--brand-text-secondary); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.al-group.is-overdue .al-group-count { background: color-mix(in srgb, var(--brand-danger) 12%, var(--brand-surface)); color: var(--brand-danger); }
.al-more { display: inline-flex; align-items: center; height: 32px; margin-top: 8px; padding: 0 14px; border: 1px dashed var(--brand-border-strong); border-radius: 999px; color: var(--brand-text-secondary); font-size: 13px; font-weight: 600; text-decoration: none; }
.al-more:hover { border-style: solid; color: var(--brand-text-primary); text-decoration: none; }
.al-group.is-today .al-group-count { background: color-mix(in srgb, var(--brand-accent) 12%, var(--brand-surface)); color: var(--text-accent, var(--brand-accent)); }
.al-group-title small { color: var(--brand-text-muted); font-size: 12px; font-weight: 500; }
.al-list { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--brand-border); border-radius: 14px; background: var(--brand-surface); list-style: none; }
.al-item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--brand-border); transition: background-color var(--transition-fast), opacity .18s ease, transform .18s ease; }
.al-item:first-child { border-top: 0; }
.al-item:hover { background: color-mix(in srgb, var(--brand-surface-muted) 60%, var(--brand-surface)); }
.al-new { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-accent); }
.al-item.is-read .al-new { background: transparent; }
.al-item-main { min-width: 0; }
.al-item-title { display: block; overflow: hidden; color: var(--brand-text-primary); font-size: 15px; font-weight: 600; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.al-item-title:hover { color: var(--text-accent, var(--brand-accent)); text-decoration: none; }
.al-item.is-read .al-item-title { color: var(--brand-text-secondary); font-weight: 500; }
.al-item.is-dismissed { opacity: .62; }
.al-item.is-leaving { opacity: 0; transform: translateX(12px); }
.al-item-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.al-badge, .al-when, .al-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--brand-border); border-radius: 999px; background: var(--brand-bg); color: var(--brand-text-secondary); font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.al-badge { color: var(--brand-text-primary); }
.al-when .lucide { width: 13px; height: 13px; color: var(--brand-text-muted); }
.al-when.is-overdue { border-color: color-mix(in srgb, var(--brand-danger) 35%, var(--brand-border)); color: var(--brand-danger); }
.al-when.is-overdue .lucide { color: currentColor; }
.al-when.is-today { border-color: color-mix(in srgb, var(--brand-accent) 35%, var(--brand-border)); color: var(--text-accent, var(--brand-accent)); }
.al-when.is-today .lucide { color: currentColor; }
.al-meta { overflow: hidden; max-width: 280px; color: var(--brand-text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.al-meta.is-muted { padding: 1px 8px; border-radius: 999px; background: var(--brand-surface-muted); }
.al-item-actions { display: flex; align-items: center; gap: 4px; }
.al-state-form { margin: 0; }
.al-act { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 11px; border: 1px solid var(--brand-border); border-radius: 8px; background: var(--brand-surface); color: var(--brand-text-secondary); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); }
.al-act:hover { border-color: var(--brand-border-strong); background: var(--brand-surface-muted); color: var(--brand-text-primary); text-decoration: none; }
.al-act:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 1px; }
.al-act:disabled { opacity: .5; cursor: default; }
.al-act.is-quiet { border-color: transparent; background: transparent; color: var(--brand-text-muted); }
.al-act.is-quiet:hover { background: var(--brand-surface-muted); color: var(--brand-text-primary); }
.al-empty { display: grid; justify-items: center; gap: 6px; margin-top: 18px; padding: 44px 20px; border: 1px dashed var(--brand-border-strong); border-radius: 14px; background: var(--brand-surface); text-align: center; }
.al-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-surface-muted); color: var(--brand-text-muted); }
.al-empty h2 { margin: 6px 0 0; font-size: 17px; }
.al-empty p { max-width: 460px; margin: 0; color: var(--brand-text-muted); font-size: 14px; }

/* 어두운 화면에서는 빨강(지난 것)을 조금 밝혀 읽기 쉽게 한다(설정 팝오버의 로그아웃과 같은 방식). */
html[data-theme="dark"] .al-page, html[data-theme="dark"] .al-bell-panel { --al-overdue: color-mix(in srgb, var(--brand-danger) 72%, var(--brand-text-primary)); }
html[data-theme="dark"] .al-stat.is-overdue { --al-tone: var(--al-overdue); }
html[data-theme="dark"] .al-when.is-overdue, html[data-theme="dark"] .al-bell-text .is-overdue,
html[data-theme="dark"] .al-group.is-overdue .al-group-count { color: var(--al-overdue); }

/* ---- 설정 · 카카오 ---- */
.al-panels { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 16px; margin-top: 32px; }
.al-panel { min-width: 0; padding: 20px 22px 22px; scroll-margin-top: 110px; border: 1px solid var(--brand-border); border-radius: 16px; background: var(--brand-surface); }
.al-panel:target { border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--brand-border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 12%, transparent); }
.al-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.al-panel-head h2 { margin: 2px 0 0; font-size: 18px; }
.al-panel-head .section-kicker { margin: 0; }
.al-settings { display: grid; gap: 18px; margin: 0; }
.al-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.al-field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.al-label { padding: 0; color: var(--brand-text-secondary); font-size: 13px; font-weight: 600; }
.al-field small { color: var(--brand-text-muted); font-size: 12px; line-height: 1.5; }
.al-field select, .al-input-unit input { height: 40px; min-width: 0; padding: 0 12px; border: 1px solid var(--brand-border-strong); border-radius: 8px; background: var(--brand-surface); color: var(--brand-text-primary); font: inherit; font-size: 14px; }
.al-field select:focus-visible, .al-input-unit input:focus-visible { border-color: var(--brand-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 18%, transparent); }
.al-input-unit { display: flex; align-items: center; gap: 8px; }
.al-input-unit input { width: 88px; font-variant-numeric: tabular-nums; }
.al-input-unit em { color: var(--brand-text-secondary); font-size: 14px; font-style: normal; }
.al-kind-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.al-check { position: relative; display: inline-flex; cursor: pointer; }
.al-check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.al-check span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--brand-border); border-radius: 999px; background: var(--brand-bg); color: var(--brand-text-muted); font-size: 13px; font-weight: 500; transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast); }
.al-check span .al-dot { opacity: .45; }
.al-check:hover span { border-color: var(--brand-border-strong); }
.al-check input:checked + span { border-color: color-mix(in srgb, var(--al-kind) 50%, var(--brand-border)); background: color-mix(in srgb, var(--al-kind) 11%, var(--brand-surface)); color: var(--brand-text-primary); font-weight: 600; }
.al-check input:checked + span .al-dot { opacity: 1; }
.al-check input:focus-visible + span { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.al-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.al-channel { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 12px 14px; border: 1px solid var(--brand-border); border-radius: 12px; background: var(--brand-bg); cursor: pointer; }
.al-channel input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand-accent); }
.al-channel:has(input:checked) { border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--brand-border)); background: color-mix(in srgb, var(--brand-accent) 6%, var(--brand-surface)); }
.al-channel-body { display: grid; gap: 2px; min-width: 0; }
.al-channel-body strong { font-size: 14px; }
.al-channel-body small { color: var(--brand-text-muted); font-size: 12px; line-height: 1.45; }
.al-channel.is-locked { cursor: not-allowed; }
.al-channel.is-locked strong { color: var(--brand-text-muted); }
.al-channel.is-locked input { opacity: .45; }
.al-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--brand-border); }
.al-form-foot small { color: var(--brand-text-muted); font-size: 12px; }
.al-status .al-dot { --al-kind: var(--brand-text-muted); }
.al-status.is-on { color: #047857; }
.al-status.is-on .al-dot { --al-kind: #10b981; }
.al-status.is-off { color: #b45309; }
.al-status.is-off .al-dot { --al-kind: #f59e0b; }
html[data-theme="dark"] .al-status.is-on { color: #34d399; }
html[data-theme="dark"] .al-status.is-off { color: #fbbf24; }
.al-notice { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid color-mix(in srgb, #f59e0b 40%, var(--brand-border)); border-radius: 12px; background: color-mix(in srgb, #f59e0b 8%, var(--brand-surface)); }
.al-notice strong { font-size: 14px; }
.al-notice p { margin: 0; color: var(--brand-text-secondary); font-size: 13px; line-height: 1.55; }
.al-steps { display: grid; gap: 8px; margin: 14px 0 0; padding-left: 20px; color: var(--brand-text-secondary); font-size: 13.5px; line-height: 1.6; }
.al-steps li::marker { color: var(--brand-text-muted); font-weight: 700; }
.al-steps a { color: var(--text-accent, var(--brand-accent)); }
.al-steps code { padding: 1px 6px; border: 1px solid var(--brand-border); border-radius: 6px; background: var(--brand-bg); color: var(--brand-text-primary); font-size: 12.5px; overflow-wrap: anywhere; }
.al-kakao-intro { margin: 0 0 14px; color: var(--brand-text-secondary); font-size: 14px; line-height: 1.6; }
.al-kakao-connect .lucide, .al-kakao-actions .lucide { width: 16px; height: 16px; }
.al-kakao-info { display: grid; gap: 0; margin: 0 0 16px; overflow: hidden; border: 1px solid var(--brand-border); border-radius: 12px; }
.al-kakao-info > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-top: 1px solid var(--brand-border); }
.al-kakao-info > div:first-child { border-top: 0; }
.al-kakao-info dt { color: var(--brand-text-muted); font-size: 13px; }
.al-kakao-info dd { margin: 0; overflow-wrap: anywhere; color: var(--brand-text-primary); font-size: 13.5px; font-weight: 500; }
.al-kakao-info .is-error dd { color: var(--brand-danger); }
.al-kakao-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.al-kakao-actions form { margin: 0; }

/* ---- 상단바 알림 종 ---- */
.al-bell { position: relative; display: flex; flex: none; }
.al-bell-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--brand-border); border-radius: 999px; background: var(--brand-surface-muted); color: var(--brand-text-secondary); text-decoration: none; transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); }
.al-bell-btn:hover, .al-bell.is-open .al-bell-btn { border-color: var(--brand-border-strong); background: color-mix(in srgb, var(--brand-text-primary) 6%, var(--brand-surface-muted)); color: var(--brand-text-primary); text-decoration: none; }
.al-bell-btn:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.al-bell-ico { width: 18px; height: 18px; }
.al-bell-btn.has-unread .al-bell-ico { color: var(--brand-text-primary); }
.al-bell-count { position: absolute; top: -7px; right: -10px; display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid var(--brand-surface); border-radius: 999px; background: var(--brand-danger); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; box-sizing: content-box; }
.al-bell-count[hidden] { display: none; }
/* PC 큰 창의 납작한 메뉴바는 창 맨 위에 붙어 있어 종 위로 튀어나온 숫자가 창 밖으로 잘렸다(2026-11-13 사용자) */
html[data-desk-frameless] .al-bell-count { top: -2px; right: -7px; }
.al-bell-panel { position: fixed; top: 80px; right: 16px; z-index: 1150; width: 340px; max-width: calc(100vw - 24px); max-height: min(520px, calc(100vh - 120px)); overflow-y: auto; padding: 6px; border: 1px solid var(--brand-border); border-radius: 14px; background: var(--brand-surface); color: var(--brand-text-primary); font-size: 14px; text-align: left; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 16px 32px -8px rgba(0, 0, 0, 0.18); transform-origin: top right; }
.al-bell-panel[hidden] { display: none; }
.al-bell-panel[data-state="open"] { animation: al-pop-in .16s cubic-bezier(.16, 1, .3, 1); }
.al-bell-panel[data-state="closed"] { animation: al-pop-out .12s ease forwards; }
@keyframes al-pop-in { from { opacity: 0; transform: translateY(-4px) scale(.96); } }
@keyframes al-pop-out { to { opacity: 0; transform: translateY(-4px) scale(.96); } }
html[data-theme="dark"] .al-bell-panel { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 16px 36px -8px rgba(0, 0, 0, 0.7); }
.al-bell-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 6px; }
.al-bell-head strong { font-size: 14px; }
.al-bell-head span { color: var(--brand-text-muted); font-size: 12px; font-weight: 500; }
.al-bell-list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.al-bell-item { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: start; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--brand-text-primary); text-decoration: none; }
.al-bell-item .al-dot { margin-top: 7px; }
.al-bell-item:hover, .al-bell-item:focus-visible { background: var(--brand-surface-muted); text-decoration: none; outline: none; }
.al-bell-item:focus-visible { box-shadow: 0 0 0 2px var(--brand-accent) inset; }
.al-bell-text { display: grid; gap: 2px; min-width: 0; }
.al-bell-text strong { overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.al-bell-text small { overflow: hidden; color: var(--brand-text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.al-bell-text small b { color: var(--brand-text-secondary); font-weight: 600; }
.al-bell-text .is-overdue { color: var(--brand-danger); }
.al-bell-text .is-today { color: var(--text-accent, var(--brand-accent)); }
.al-bell-item.is-read strong { color: var(--brand-text-secondary); font-weight: 500; }
/* 읽은 알림은 점을 흐리게 · 날짜를 빨갛게 칠하지 않는다 - 점 색은 종류 색(시스템 = 빨강)이라 읽은 것도 '안 읽음' 처럼
   보였다(2026-11-09 사용자).  안 읽은 것만 또렷하다. */
.al-bell-item.is-read .al-dot { opacity: .35; }
.al-bell-item.is-read .al-bell-text small span { color: inherit; }
.al-bell-empty { margin: 0; padding: 14px 10px 16px; color: var(--brand-text-muted); font-size: 13px; text-align: center; }
.al-bell-foot { display: block; margin: 6px -6px -6px; padding: 10px; border-top: 1px solid var(--brand-border); color: var(--text-accent, var(--brand-accent)); font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; }
.al-bell-foot:hover { background: var(--brand-surface-muted); text-decoration: none; }

/* ---- 홈 달력: 알림센터와 같은 표를 읽는 새 종류(agenda.py) ----
   이미 쓰는 색(업무 = 강조 파랑, 결제 = 호박, 재연락 = 에메랄드, 다이어리 = 보라, 카테고리
   blue · indigo · violet · pink · rose · amber · lime · emerald · cyan · gray)과 겹치지 않게:
   할 일 = 짙은 청록, 회의 = 짙은 하늘, 면접 = 자홍, 지원 마감 = 짙은 황토. */
.desk-cal { --cal-todo: #0f766e; --cal-meeting: #0369a1; --cal-interview: #c026d3; --cal-career: #a16207; }
html[data-theme="dark"] .desk-cal { --cal-todo: #2dd4bf; --cal-meeting: #7dd3fc; --cal-interview: #e879f9; --cal-career: #facc15; }
.desk-cal .is-todo { --kind: var(--cal-todo); }
.desk-cal .is-meeting { --kind: var(--cal-meeting); }
.desk-cal .is-interview { --kind: var(--cal-interview); }
.desk-cal .is-career { --kind: var(--cal-career); }
/* 회의 조치 = 주황, 루틴 = 따뜻한 회색(날마다 돌아오는 배경 같은 일이라 눈에 덜 띄게).
   월 칸의 '루틴 N' 묶음 칩은 점선 테두리로 낱개 일정과 가른다(agenda._routine_summary). */
.desk-cal { --cal-action: #c2410c; --cal-routine: #78716c; }
html[data-theme="dark"] .desk-cal { --cal-action: #fb923c; --cal-routine: #a8a29e; }
.desk-cal .is-action { --kind: var(--cal-action); }
.desk-cal .is-routine { --kind: var(--cal-routine); }
.desk-cal .ec-chip.is-summary { border: 1px dashed color-mix(in srgb, var(--kind) 55%, transparent); background: transparent; line-height: 18px; }
.desk-cal .ec-chip.is-summary .ec-chip-title { color: var(--brand-text-secondary); }
.desk-cal .ec-chip.is-summary.is-done .ec-chip-title { color: var(--brand-text-muted); text-decoration: none; }
/* 목록 보기: 내 일정 옆 '회의록' - 눈에 덜 띄게, 줄에 올리면 진해진다 */
.desk-cal .ec-agenda-day li { display: flex; align-items: center; gap: 4px; min-width: 0; }
.desk-cal .ec-agenda-meet { display: inline-flex; flex: none; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; color: var(--brand-text-muted); font-size: 12px; text-decoration: none; opacity: .75; }
.desk-cal .ec-agenda-meet svg { width: 14px; height: 14px; }
.desk-cal .ec-agenda-day li:hover .ec-agenda-meet, .desk-cal .ec-agenda-meet:focus-visible { opacity: 1; }
.desk-cal .ec-agenda-meet:hover { background: var(--brand-surface-muted); color: var(--text-accent, var(--brand-accent)); text-decoration: none; }
@media (max-width: 640px) { .desk-cal .ec-agenda-meet span { display: none; } }

/* ---- 좁은 화면 ---- */
@media (max-width: 980px) {
  .al-panels { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .al-summary { gap: 8px; }
  .al-stat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 12px 12px 16px; }
  .al-stat b { font-size: 24px; }
  .al-stat small { display: none; }
  .al-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .al-chips { flex-wrap: nowrap; margin: 0 calc(var(--shell-gutter, 16px) * -1); padding: 2px var(--shell-gutter, 16px); overflow-x: auto; scrollbar-width: none; }
  .al-chips::-webkit-scrollbar { display: none; }
  .al-hidden-toggle { align-self: flex-end; }
  .al-item { grid-template-columns: 8px minmax(0, 1fr); grid-template-areas: "dot main" ". actions"; row-gap: 10px; padding: 14px; }
  .al-new { grid-area: dot; align-self: start; margin-top: 7px; }
  .al-item-main { grid-area: main; }
  .al-item-title { white-space: normal; }
  .al-item-actions { grid-area: actions; flex-wrap: wrap; }
  .al-meta { max-width: 100%; }
  .al-field-row, .al-channels { grid-template-columns: 1fr; }
  .al-panel { padding: 18px 16px; }
  .al-kakao-info > div { grid-template-columns: 92px minmax(0, 1fr); }
  .al-bell-btn { width: 36px; height: 36px; }
  .al-bell-count { top: -6px; right: -11px; min-width: 15px; height: 16px; padding: 0 4px; font-size: 10px; }
}
/* 회원용 알림 봇(관리자, 2026-11-08) */
.al-member-bot { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--brand-border); }
.al-member-bot h3 { margin: 0; font-size: 15px; }
.al-member-bot p { margin: 0; color: var(--brand-text-secondary); font-size: 13px; line-height: 1.55; }
.al-member-bot-form { display: flex; flex-wrap: wrap; gap: 8px; }
.al-member-bot-form input { flex: 1 1 260px; padding: 9px 12px; border: 1px solid var(--brand-border); border-radius: 10px; background: var(--brand-surface); color: var(--brand-text-primary); font: inherit; }
