/* Desktop layout follows the approved 1672 × 941 design.
   Real announcements and conversations are never replaced with sample data. */
:root { --blue:#0757ff; --navy:#172942; --ink:#101b3d; --muted:#7284b4; --line:#e2ebfc; }
body { font-family:"Malgun Gothic","맑은 고딕","Segoe UI",sans-serif; background:#f4f8ff; }
body:has(#app-view:not([hidden])) .ambient { display:none; }
.app-shell { grid-template-columns:272px minmax(0,1fr); }
.sidebar { padding:32px 16px 24px; background:linear-gradient(110deg,#192c46,#15263e); overflow:auto; }
.sidebar-brand { padding:0 8px 43px; }
.sidebar-brand b { font-size:23px; letter-spacing:-1px; }
.sidebar nav { gap:7px; }
.nav-item { color:#f3f6ff; min-height:54px; font-size:19px; font-weight:500; padding:11px 18px; gap:18px; border-radius:9px; }
.nav-item.active { background:linear-gradient(110deg,#23549e,#274b89); box-shadow:none; font-weight:700; }
.nav-item:hover { background:#25466f; }
.nav-item span { width:28px; height:28px; display:grid; place-items:center; }
.ui-icon { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.nav-health-dot { margin-left:0; width:12px; height:12px; }
.nav-group-label { border-top:1px solid #365576; padding:18px 4px 0; margin:24px 8px 6px; font-size:15px; color:#dce6fa; }
.sidebar-footer { display:none; }
.secondary-nav { order:10; margin:26px 8px 0; color:#99b0d0; font-size:13px; }
.secondary-nav summary { cursor:pointer; padding:10px 0; }
.secondary-nav .nav-item { font-size:15px; min-height:44px; padding:8px; }
.account-menu .secondary-nav { margin:0; border-top:1px solid var(--line); color:#45618a; }
.account-menu .secondary-nav .nav-item { color:#45618a; width:100%; font-size:13px; }
.account-menu .secondary-nav .nav-item:hover,.account-menu .secondary-nav .nav-item.active { background:#edf3ff; color:#0757ff; }
.main-content { padding:0 28px 16px 30px; max-width:none; margin:0; min-width:0; }
.topbar { height:84px; margin:0 -28px 14px -30px; padding:0 28px 0 30px; background:#fff; }
.topbar h1 { font-size:30px; font-weight:800; letter-spacing:-1.2px; }
.top-actions { gap:17px; }
.top-date { font-size:13px; color:#7584b4; }
.system-pill { background:#e8faf2; border:0; box-shadow:none; padding:10px 15px; color:#008963; font-size:14px; }
.system-pill i { box-shadow:none; width:9px; height:9px; }
.mini-health { font-size:12px; color:#7483b2; padding-left:16px; border-left:1px solid #edf1fc; white-space:nowrap; }
.mini-health b { font-weight:500; }
.mini-health i { width:8px; height:8px; }
.account-menu-button { gap:10px; border:0; padding:0; color:#183776; background:none; font-size:21px; }
.account-menu-button #top-avatar { width:44px; height:44px; font-size:19px; color:var(--blue); background:#e6efff; border-radius:50%; }
.account-menu-button #top-name { display:none; }
.account-menu { top:49px; min-width:164px; border-color:var(--line); border-radius:11px; padding:8px; box-shadow:0 6px 18px #1736691c; }
.account-menu button { padding:12px 8px; font-size:14px; color:#18336a; }
.welcome-card { height:92px; min-height:92px; border-radius:12px; padding:16px 28px; background:linear-gradient(105deg,#e7f2ff,#e4f0ff); color:var(--ink); justify-content:flex-start; gap:20px; box-shadow:none; }
.welcome-avatar { width:64px; height:64px; font-size:25px; border-radius:50%; background:#cfe4ff; color:var(--blue); flex-shrink:0; }
.welcome-card h2 { font-size:26px; font-weight:800; letter-spacing:-1px; }
#welcome-name { color:var(--blue); }
.welcome-card p:last-child { margin:4px 0 0; color:#667db4; font-size:18px; }
.urgent-announcement { margin:8px 0 0; min-height:44px; padding:10px 22px; border:1px solid #ffc7d2; border-radius:10px; background:#fff2f5; gap:18px; }
.urgent-announcement b { font-size:17px; color:#ff204d; white-space:nowrap; }
.urgent-announcement p { font-size:15px; color:#471b2b; }
.urgent-announcement button { color:#476393; font-size:24px; }
.home-grid { grid-template-columns:minmax(0,1.525fr) minmax(0,1fr); gap:14px; margin:14px 0; align-items:stretch; }
.home-card { border:1px solid var(--line); box-shadow:none; border-radius:12px; padding:16px 21px 8px; background:#fff; min-width:0; }
.home-grid > .home-card { min-height:465px; }
.home-card-title { min-height:46px; margin-bottom:11px; gap:10px; align-items:center; }
.home-card-title h2 { font-size:25px; font-weight:800; letter-spacing:-1px; }
.home-card-title > div { display:flex; align-items:center; gap:12px; }
.text-button { background:#f3f6ff; color:#29477f; border-radius:24px; padding:8px 15px; font-size:14px; font-weight:500; white-space:nowrap; }
.home-card-title .primary-button { background:#0757ff; padding:11px 19px; font-size:16px; border-radius:10px; gap:9px; }
.announcement-list { border:1px solid #e4ecfc; border-radius:10px; overflow:hidden; }
.announcement-row { min-height:69px; padding:9px 12px; grid-template-columns:54px minmax(0,1fr) auto; gap:15px; border-bottom:1px solid #e7effc; align-items:center; }
.announcement-row:last-child { border-bottom:0; }
.announcement-row.urgent { background:#fff3f6; border:1px solid #ffd1dc; border-radius:10px; min-height:105px; }
.announcement-icon { width:43px; height:48px; display:grid; place-items:center; background:#f3f6ff; border-radius:10px; color:#2e467d; }
.urgent .announcement-icon { color:#ff3159; background:none; }
.announcement-row b { font-size:16px; line-height:1.5; }
.announcement-row small { font-size:14px; color:#7284b4; line-height:1.5; margin-top:3px; display:block; }
.announcement-meta { min-width:130px; display:grid; grid-template-columns:auto auto; align-items:center; gap:6px 12px; font-size:13px; }
.announcement-meta > span { background:#ebf3ff; color:#3069cc; padding:3px 12px; border-radius:20px; text-align:center; margin:0; }
.announcement-meta time { font-size:13px; color:#7486ba; white-space:nowrap; }
.announcement-meta em { grid-column:1/-1; justify-self:end; background:#eaf0ff; border-radius:12px; padding:3px 8px; font-size:12px; font-style:normal; }
.announcement-row .status-badge { background:#ff3159; color:#fff; padding:2px 8px; font-size:11px; }
.chat-preview-card { display:flex; flex-direction:column; }
.icon-control { width:42px; height:42px; border:0; background:#f2f6ff; color:#36518a; border-radius:10px; display:grid; place-items:center; }
.primary-button .ui-icon { width:21px; height:21px; }
.recipient-search label { grid-column:1/-1; color:#5e78b0; font-size:14px; }
.unread-pill { width:29px; height:29px; border-radius:50%; font-size:14px; background:#ff2854; }
.chat-tabs { gap:7px; margin-bottom:10px; }
.chat-tabs button { min-height:47px; padding:9px; border:1px solid transparent; font-size:15px; background:#f4f7fd; color:#455f91; display:flex; align-items:center; justify-content:center; gap:9px; }
.chat-tabs button.active { border:1.5px solid #0757ff; color:#0757ff; background:#edf6ff; }
.recipient-search { padding:0 0 10px; }
.recipient-search input,.recipient-search select { font-size:13px; border-color:var(--line); }
.company-recipient { display:flex; align-items:center; gap:16px; height:49px; margin-bottom:10px; font-size:14px; color:#5e78b0; }
.company-recipient span:last-child { flex:1; padding:10px 16px; border:1px solid var(--line); border-radius:9px; color:#8a9bc0; }
.compact-chat { height:213px; flex:1; min-height:190px; padding:12px 16px; border:1px solid var(--line); border-radius:10px; background:#fff; gap:14px; }
.chat-message { max-width:92%; display:flex; gap:10px; align-items:flex-start; }
.chat-message.mine { flex-direction:row-reverse; }
.message-avatar { width:40px; height:40px; display:grid; place-items:center; border-radius:50%; background:#e8f3ff; color:#0757ff; font-size:17px; font-weight:700; flex-shrink:0; }
.message-body { min-width:0; }
.message-heading { display:flex; align-items:center; gap:9px; margin-bottom:4px; }
.chat-message.mine .message-heading { justify-content:flex-end; }
.chat-message b { font-size:12px; margin:0; }
.chat-message time { font-size:11px; color:#8090b8; margin:0; }
.compact-chat .chat-bubble,.chat-bubble { font-size:14px; padding:8px 13px; border:0; background:#f3f6ff; border-radius:16px; color:#334c80; line-height:1.5; overflow-wrap:anywhere; }
.mine .chat-bubble { color:#2861c1; background:#eaf4ff; border-radius:16px; }
.chat-preview-card .chat-compose { padding:8px 0 0; gap:6px; }
.chat-preview-card .chat-compose input { height:48px; font-size:14px; border-color:var(--line); }
.chat-preview-card .chat-compose button { height:48px; padding:10px 20px; background:#0757ff; font-size:14px; }
.home-bottom-grid { gap:14px; }
.home-bottom-grid .home-card { min-height:190px; padding:11px 22px 8px; }
.home-bottom-grid .home-card-title { margin-bottom:0; min-height:39px; }
.home-bottom-grid h2 { font-size:22px; }
.timeline-item { grid-template-columns:88px minmax(0,1fr) auto; font-size:14px; padding:7px 3px; }
.timeline-item time { color:#7d8fbb; position:relative; font-weight:500; }
.timeline-item time:after { content:""; position:absolute; right:10px; top:5px; width:9px; height:9px; background:#4284ff; border-radius:50%; }
.timeline-item b { font-weight:500; }
.recent-notice-item { background:none; border-radius:0; grid-template-columns:24px minmax(0,1fr) auto; padding:4px 3px; font-size:13px; text-align:left; }
.recent-notice-item b { font-weight:500; }
.home-card .empty-state { border:0; background:transparent; color:#8695b7; font-size:14px; min-height:110px; display:grid; place-items:center; padding:28px 10px; }
.announcement-list > .empty-state { min-height:355px; }
.compact-chat > .empty-state { min-height:190px; margin:auto; }
.calendar-toolbar { display:flex; justify-content:center; align-items:center; gap:16px; margin:9px 0 16px; }
.calendar-toolbar strong { font-size:17px; min-width:125px; text-align:center; }
.calendar-toolbar button { border:1px solid var(--line); border-radius:8px; background:#f6f9ff; color:#43618f; min-width:34px; height:32px; font-size:19px; }
.calendar-toolbar #calendar-today { font-size:12px; padding:0 10px; }
.calendar-weekdays,.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.calendar-weekdays { text-align:center; color:#7385ad; font-size:12px; padding:8px 0; }
.calendar-weekdays span:first-child { color:#db5571; }
.calendar-weekdays span:last-child { color:#4380d4; }
.calendar-grid { border-top:1px solid var(--line); border-left:1px solid var(--line); border-radius:9px; overflow:hidden; }
.calendar-day { min-width:0; min-height:66px; padding:6px; background:#fff; border:0; border-right:1px solid var(--line); border-bottom:1px solid var(--line); color:#34476c; text-align:left; position:relative; }
.calendar-day:hover { background:#f0f6ff; }
.calendar-day:focus-visible { outline:2px solid #0757ff; outline-offset:-3px; }
.calendar-number { width:24px; height:24px; display:grid; place-items:center; border-radius:50%; font-size:12px; }
.calendar-day.sunday { color:#d45771; }
.calendar-day.saturday { color:#4b7bc5; }
.calendar-day.outside { background:#f8faff; color:#b3bed2; }
.calendar-day.is-today .calendar-number { background:#0757ff; color:white; font-weight:700; }
.calendar-count { position:absolute; right:5px; top:9px; font-size:10px; color:#4279cf; }
.calendar-event-name { display:block; font-size:10px; padding:4px 3px; border-radius:4px; background:#edf4ff; color:#4366a3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:3px; }
.calendar-help { font-size:11px; color:#8a99b7; margin:12px 0 3px; }
.detail-modal-card { width:min(760px,100%); }
.detail-modal-card .modal-header { gap:20px; align-items:flex-start; }
.detail-modal-card .modal-header h2 { font-size:23px; line-height:1.5; overflow-wrap:anywhere; }
.detail-modal-card .modal-close { flex-shrink:0; }
.detail-modal-card .announcement-detail { padding:0; border:0; background:none; }
.detail-meta { display:flex; flex-wrap:wrap; gap:12px; align-items:center; color:#7a89a8; font-size:13px; line-height:1.8; }
.detail-modal-card .full-detail-text { white-space:pre-wrap; overflow-wrap:anywhere; font-size:15px; line-height:1.9; color:#344363; margin:22px 0; max-height:none; }
.calendar-event-detail { padding:18px 0; border-bottom:1px solid var(--line); }
.calendar-event-detail:first-child { padding-top:0; }
.calendar-event-detail:last-child { border-bottom:0; }
.calendar-event-detail h3 { font-size:19px; margin:12px 0; overflow-wrap:anywhere; }
.calendar-no-events { color:#7c8dab; padding:35px 0; text-align:center; }
@media(max-width:700px) { .calendar-day{min-height:59px;padding:4px} .calendar-count{font-size:9px;right:3px;top:9px} .calendar-number{width:21px;height:21px;font-size:11px} .calendar-event-name{font-size:9px} .detail-modal-card{padding:22px} }
@media(min-width:1500px) { .home-grid { grid-template-columns:minmax(0,1.525fr) minmax(0,1fr); } }
@media(max-width:1250px) { .app-shell{grid-template-columns:240px minmax(0,1fr)} .sidebar-brand b{font-size:20px} .top-date{display:none} .nav-item{font-size:17px} .home-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)} .announcement-meta{min-width:0;grid-template-columns:1fr;font-size:11px;gap:3px} .announcement-row{gap:8px;grid-template-columns:42px minmax(0,1fr) auto} .announcement-row b{font-size:14px} .announcement-row small{font-size:12px} .home-card-title h2{font-size:22px} .home-card-title .primary-button{padding:10px;font-size:13px} }
@media(max-width:1050px) { .home-grid{grid-template-columns:1fr} .home-grid>.home-card{min-height:400px} .compact-chat{flex:none;height:240px} .mini-health{display:none} }
@media(max-width:960px) { .app-shell{grid-template-columns:1fr} .sidebar{width:272px;left:-280px} .sidebar.open{left:0} .main-content{padding:0 20px 20px} .topbar{margin:0 -20px 14px;padding:0 20px} .topbar h1{font-size:25px} .top-actions{gap:8px} }
@media(max-width:700px) { .topbar{height:72px} .system-pill{font-size:11px;padding:8px} .account-menu-button #top-avatar{width:34px;height:34px} .welcome-card{padding:14px;height:92px;gap:12px} .welcome-avatar{width:48px;height:48px;font-size:20px} .welcome-card h2{font-size:19px} .welcome-card p:last-child{font-size:13px} .home-card{padding:14px} .home-bottom-grid{grid-template-columns:1fr} .home-card-title>div{gap:6px} .text-button{font-size:12px;padding:7px 10px} .announcement-meta{grid-column:2;display:flex;flex-wrap:wrap} .announcement-row{grid-template-columns:36px minmax(0,1fr)} .announcement-icon{width:34px;height:40px} .announcement-row.urgent{min-height:100px} .urgent-announcement{padding:10px;gap:9px} .urgent-announcement p{font-size:12px} .urgent-announcement b{font-size:14px} }
