.global-search{display:flex;align-items:center;gap:8px;flex:1;max-width:480px;margin:0 16px}.global-search input{min-height:36px;padding:7px 12px;background:var(--surface-soft)}.global-search button{flex-shrink:0}.work-topbar>span{flex-shrink:0}
.search-form{display:flex;gap:12px;max-width:700px;margin-bottom:20px}.search-results{display:grid;gap:12px;margin:20px 0}.search-result{text-align:left;background:var(--surface);border:1px solid var(--line);padding:18px 20px;display:grid;gap:8px;transition:border-color .3s,background .3s}.search-result:hover{border-color:var(--brand);background:var(--surface-soft)}.search-result>span,.search-result small{color:var(--muted);font-size:.8rem}.search-result p{color:var(--muted);overflow-wrap:anywhere}
.calendar-toolbar{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:22px 0}.calendar-toolbar label{display:grid;gap:5px;color:var(--muted);font-size:.82rem}.calendar-toolbar select{min-height:38px;padding:7px 10px;width:auto}.calendar-period{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.calendar-period h2{min-width:145px;font-size:1.2rem}.calendar-check{display:flex!important;flex-direction:row;align-items:center;max-width:210px}.calendar-check input{width:16px;min-height:16px}
.calendar-legend{display:flex;gap:18px;font-size:.8rem;margin:12px 0}.calendar-legend span:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:var(--brand)}.calendar-legend .hearing:before{background:#397dad}.calendar-legend .reminder:before{background:#b17a28}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid var(--line);border-top:1px solid var(--line);background:var(--surface)}.calendar-weekday{padding:10px;text-align:center;font-size:.8rem;color:var(--muted);border-bottom:1px solid var(--line);border-right:1px solid var(--line)}.calendar-day{min-height:125px;padding:8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0}.calendar-day.selected{background:var(--surface-soft);box-shadow:inset 0 0 0 1px var(--brand)}.calendar-day.outside{opacity:.6}.calendar-day-number{border:0;background:none;display:flex;align-items:center;gap:8px;width:100%;text-align:left;min-height:30px}.calendar-day-number small{margin-left:auto;color:var(--muted)}.calendar-day.today .calendar-day-number{font-weight:700;color:var(--brand)}.calendar-event{display:grid;gap:4px;text-align:left;max-width:100%;width:100%;margin:7px 0;padding:8px;background:var(--surface-soft);color:var(--ink);border:0;border-left:3px solid var(--brand);transition:background .3s}.calendar-event.hearing{border-color:#397dad}.calendar-event.reminder{border-color:#b17a28}.calendar-event span,.calendar-event small{font-size:.7rem;color:var(--muted)}.calendar-event strong{font-size:.78rem;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event.completed{opacity:.6}.calendar-event.completed strong{text-decoration:line-through}.calendar-agenda{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:20px;margin:20px 0}.calendar-agenda h2{margin-bottom:16px}.calendar-agenda .calendar-event{max-width:650px;padding:12px}.calendar-agenda .calendar-event strong{font-size:.92rem}.calendar-footnote{font-size:.8rem;margin-top:20px}
@media(max-width:1000px){.work-topbar>span{display:none}.global-search{margin-left:0}.calendar-day-events{display:none}.calendar-day{min-height:64px}.calendar-grid.week .calendar-day-events{display:block}.calendar-grid.week{min-width:740px}.calendar-scroll{overflow-x:auto}}
@media(max-width:600px){.global-search{margin-right:8px;min-width:0}.global-search input{min-width:0}.global-search button{font-size:.75rem}.work-topbar-actions #top-new-task{display:none}.calendar-period h2{font-size:1rem}.calendar-day{padding:3px;min-height:54px}.calendar-day-number{gap:2px;font-size:.8rem}.calendar-toolbar{gap:10px}.search-form{gap:8px}.search-form input{min-width:0}.search-result{padding:14px}.calendar-agenda{padding:14px}}
.work-topbar{position:relative;z-index:20}.global-search{position:relative;max-width:600px;min-width:0;margin:0 auto;width:100%}.global-search input{padding-right:46px;min-height:44px}.global-search input::-webkit-search-cancel-button{display:none}.global-search input::placeholder{opacity:1;transition:opacity .22s ease}.global-search input.search-hint-changing::placeholder{opacity:0}.global-search .search-clear{position:absolute;right:4px;top:4px;width:36px;height:36px;color:#45645d}.search-clear .icon{width:25px;height:25px;stroke-width:2.5}.search-clear:hover{background:color-mix(in srgb,#45645d 12%,var(--surface))}.search-clear[hidden],.top-popover[hidden]{display:none}.top-popover{position:absolute;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px #162d2824;animation:header-popover-in .18s ease-out;z-index:30}.search-preview{top:calc(100% + 12px);left:0;right:0;max-height:min(200px,45vh);overflow:auto}.search-preview-results{display:grid}.search-preview-results button{text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 16px;background:transparent;display:grid;gap:4px;overflow-wrap:anywhere}.search-preview-results button:hover,.search-preview-results button:focus-visible{background:var(--surface-soft)}.search-preview-results span,.search-preview-results small,.search-preview-results p{font-size:.78rem;color:var(--muted)}.search-preview-results p{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.search-preview-info,.search-preview-footer{padding:14px 16px;font-size:.82rem;color:var(--muted)}.search-preview-footer{border-top:1px solid var(--line)}.work-topbar-actions{position:relative;gap:12px;flex-shrink:0}.work-topbar-actions #top-new-task{display:inline-flex;min-width:112px;min-height:44px;padding:10px 18px}.notification-popover{top:calc(100% + 12px);right:0;width:min(380px,calc(100vw - 32px));max-height:min(520px,75vh);overflow:auto}.notification-popover .dialog-top{position:sticky;top:0;background:var(--surface);padding:14px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;z-index:1}.notification-popover h2{font-size:1.05rem}.notification-popover .notification-list{padding:0 16px 16px}.notification-popover .notification-list>p{padding-top:16px}.notification-popover .notification-list article{padding:16px 0}.notification-popover .notification-list .text-button{margin:10px 12px 0 0}.notification-popover [data-error]{padding:0 16px}.notification-popover .form-error{margin-top:12px}@keyframes header-popover-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.work-topbar{padding:10px 12px;gap:8px}.global-search{margin:0}.work-topbar-actions{gap:6px}.work-topbar-actions #top-new-task{display:inline-flex;min-width:68px;padding:8px 10px;font-size:.8rem}.notification-popover{position:fixed;right:12px;top:66px}.search-preview{width:min(600px,calc(100vw - 88px));right:auto}}@media(prefers-reduced-motion:reduce){.top-popover{animation:none}.global-search input::placeholder{transition:none}}
.workspace .sidebar{isolation:isolate}
@media(max-width:700px){.workspace .sidebar{z-index:21}}

/* Takvim: sıkı yerleşim. Renkler aynı, boyutlar küçüldü. */
.calendar-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.calendar-head h1{margin:0;font-size:1.45rem}
.calendar-panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px}
.calendar-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin-bottom:8px}
.calendar-bar h2{margin:0;font-size:1.1rem;text-align:center;white-space:nowrap}
.calendar-nav{display:flex;align-items:center;gap:6px}
.calendar-nav-button,.calendar-today-button,.calendar-modes button{min-height:30px;padding:4px 11px;border:1px solid var(--line);border-radius:7px;background:var(--surface-soft);color:var(--ink);font:inherit;font-size:.82rem;font-weight:600;cursor:pointer}
.calendar-nav-button{width:32px;padding:0;font-size:1.05rem;line-height:1;background:var(--brand);color:var(--on-brand);border-color:var(--brand)}
.calendar-nav-button:hover{filter:brightness(1.08)}
.calendar-today-button:hover,.calendar-modes button:hover{border-color:var(--brand)}
.calendar-modes{display:flex;gap:5px;justify-self:end}
.calendar-modes button[aria-pressed="true"]{background:var(--brand);color:var(--on-brand);border-color:var(--brand)}
.calendar-filters{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-bottom:10px;font-size:.8rem}
.calendar-filters select{min-height:30px;width:auto;margin:0;padding:3px 26px 3px 8px;font-size:.8rem}
.calendar-filters .calendar-check{display:flex!important;align-items:center;gap:6px;max-width:none;margin:0;color:var(--muted);font-size:.8rem}
.calendar-filters .calendar-check input{width:14px;min-height:14px;margin:0}
.calendar-filters .calendar-legend{margin:0 0 0 auto;gap:12px;font-size:.75rem;color:var(--muted)}
.calendar-filters .text-button{margin:0;font-size:.8rem}
.calendar-panel .calendar-grid{border-radius:8px;overflow:hidden}
.calendar-panel .calendar-weekday{padding:6px 4px;font-size:.75rem;font-weight:600}
.calendar-panel .calendar-day{min-height:76px;padding:3px 4px 4px}
.calendar-panel button.calendar-day{display:flex;flex-direction:column;align-items:stretch;width:100%;margin:0;border-top:0;border-left:0;border-radius:0;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer;outline-offset:-3px}
.calendar-panel button.calendar-day.weekend,.calendar-panel button.calendar-day:hover{background:var(--surface-soft)}
.calendar-panel .calendar-grid.month .calendar-day{min-height:clamp(76px,calc((100dvh - 260px)/6),150px)}
.calendar-day-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
.calendar-day-dialog .dialog-top{align-items:flex-start;gap:12px}
.calendar-day-dialog .dialog-top h2{font-size:1.1rem}
.calendar-day-preview{display:grid;gap:8px}
.calendar-day-preview .calendar-event{max-width:none;width:100%;margin:0;padding:12px;text-align:left;overflow-wrap:anywhere}
.calendar-preview-hint{font-size:.8rem;margin-top:10px}
.calendar-panel .calendar-grid.week .calendar-day{min-height:220px}
.calendar-weekday.weekend,.calendar-day.weekend{background:var(--surface-soft)}
.calendar-panel .calendar-day.selected{box-shadow:inset 0 0 0 2px var(--brand)}
.calendar-day-head{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:20px}
.calendar-week{font-size:.68rem;color:var(--muted);white-space:nowrap}
.calendar-panel .calendar-day-number{display:inline-flex;align-items:center;gap:4px;width:auto;min-height:20px;margin-left:auto;padding:0 4px;border-radius:5px;font-size:.75rem;color:var(--muted);cursor:pointer}
.calendar-panel .calendar-day-number small{display:none;font-size:.65rem}
.calendar-panel .calendar-day.today .calendar-day-number{background:var(--brand);color:var(--on-brand);font-weight:700}
.calendar-panel .calendar-day-events{display:grid;gap:2px;margin-top:2px}
.calendar-bar-event{display:block;width:100%;min-width:0;padding:1px 5px;border:0;border-left:3px solid var(--brand);border-radius:3px;background:color-mix(in srgb,var(--brand) 16%,var(--surface));color:var(--ink);font:inherit;font-size:.7rem;line-height:1.45;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.calendar-bar-event span{margin-right:4px;font-size:.62rem;color:var(--muted)}
.calendar-bar-event.hearing{border-left-color:#397dad;background:color-mix(in srgb,#397dad 16%,var(--surface))}
.calendar-bar-event.reminder{border-left-color:#b17a28;background:color-mix(in srgb,#b17a28 16%,var(--surface))}
.calendar-bar-event:hover{filter:brightness(.96)}
.calendar-bar-event.completed{opacity:.55;text-decoration:line-through}
.calendar-more{padding:0 4px;border:0;background:none;color:var(--brand);font:inherit;font-size:.68rem;font-weight:600;text-align:left;cursor:pointer}
.calendar-head+.calendar-panel+.calendar-agenda{margin:14px 0 0;padding:14px 16px}
.calendar-agenda h2{font-size:1rem;margin-bottom:10px}
.calendar-agenda .calendar-event{margin:5px 0;padding:8px 10px}
.calendar-footnote{margin-top:12px;font-size:.75rem}
@media (max-width:700px){
 .calendar-panel{padding:8px}
 .calendar-bar{grid-template-columns:1fr auto}
 .calendar-bar h2{grid-column:1/-1;grid-row:1;text-align:left}
 .calendar-filters .calendar-legend{margin:0}
 .calendar-panel .calendar-day{min-height:48px;padding:2px}
 .calendar-panel .calendar-grid.month .calendar-day{min-height:clamp(48px,calc((100dvh - 310px)/6),90px)}
 .calendar-panel .calendar-grid.month .calendar-day-events{display:none}
 .calendar-panel .calendar-grid.month .calendar-day-number small{display:inline;padding:0 4px;border-radius:8px;background:var(--accent);color:var(--accent-ink)}
 .calendar-week{display:none}
}
.calendar-head .button{min-height:36px;padding:7px 14px;font-size:.85rem}
@media (max-width:1100px){.calendar-week{display:none}.calendar-bar-event span{display:none}}
/* Dar ekranda arama kutusu büyüteç simgesine dönüşür; dokununca üst çubuğun tamamını kaplar. */
.global-search .search-toggle{display:none;flex:none;width:44px;height:44px}
@media(max-width:480px){.global-search{flex:0 0 auto;width:auto;margin:0}.work-topbar-actions{margin-left:auto}.global-search:not(.open)>input,.global-search:not(.open)>.search-clear{display:none}.global-search:not(.open)>[data-search-open]{display:inline-flex}.global-search.open{position:absolute;left:8px;right:8px;top:0;bottom:0;z-index:25;display:flex;align-items:center;gap:6px;width:auto;background:var(--surface);animation:search-expand .18s ease-out}.global-search.open>input{flex:1;min-width:0}.global-search.open>[data-search-close]{display:inline-flex}.global-search.open .search-clear{right:4px;top:50%;margin-top:-18px}.global-search.open .search-preview{width:auto;left:0;right:0}}
@keyframes search-expand{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.global-search.open{animation:none}}
/* Bildirimler: solda simge, okunaklı küçük yazı, simgeli eylemler. */
.notification-popover .notification-list{padding:0}
.notification-popover .notification-readonly{margin:0;padding:12px 16px;border-bottom:1px solid var(--line);font-size:.82rem}
.notification-popover .notification-list .notice{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);transition:background .2s}
.notification-popover .notification-list .notice:last-child{border-bottom:0}
.notification-popover .notification-list .notice:hover{background:color-mix(in srgb,var(--brand) 4%,var(--surface))}
.notice-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:color-mix(in srgb,var(--brand) 11%,var(--surface));color:var(--brand)}
.notice-icon .icon{width:18px;height:18px}
.notice-body{min-width:0}
.notice-title{display:block;font-size:1rem;font-weight:600;line-height:1.35;color:var(--ink);overflow-wrap:anywhere}
.notification-popover .notice-body p{margin:3px 0 0;padding:0;font-size:.9rem;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.notice-body time{display:block;margin-top:5px;font-size:.8rem;color:var(--muted);opacity:.85}
.notice-actions{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px}
.notification-popover .notification-list .notice-actions .text-button{display:inline-flex;align-items:center;gap:5px;margin:0;padding:2px 0;font-size:.86rem;font-weight:600}
.notice-actions .text-button .icon{width:15px;height:15px;flex:none}
.notice-actions [data-read-notice]{color:var(--muted)}
.notice-actions [data-read-notice]:hover{color:var(--brand)}
.notification-popover .notification-list>.notice-empty{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;padding:28px 16px;color:var(--muted);font-size:.85rem}
.notice-empty .icon{width:26px;height:26px;opacity:.6}
.notice-footer{position:sticky;bottom:0;display:flex;justify-content:center;padding:10px 16px;border-top:1px solid var(--line);background:var(--surface)}
.notice-footer .text-button{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:.84rem;font-weight:600}
.notice-footer .icon{width:16px;height:16px}
@media (max-width:360px){.calendar-bar{gap:6px}.calendar-nav-button,.calendar-today-button,.calendar-modes button{padding:4px 7px}}
/* Dokunmatik ekran: takvim gün numarası en az 28 px dokunma alanı. */
@media (pointer:coarse){.calendar-panel .calendar-day-number{min-height:28px;min-width:28px;justify-content:center}}
/* Takvim türleri: seçili tür dolu, diğerleri soluk; ikinci tıklama tüm türlere döner. */
.calendar-legend button{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 13px;border:1px solid currentColor;border-radius:9px;font:inherit;font-size:1rem;font-weight:600;cursor:pointer;opacity:.65;background:transparent;transition:background .15s,opacity .15s}
.calendar-legend button.hearing{color:#397dad}.calendar-legend button.task{color:var(--brand)}.calendar-legend button.reminder{color:#9a6317}
.calendar-legend button[aria-pressed="true"]{opacity:1;color:#fff}
.calendar-legend button.hearing[aria-pressed="true"]{background:#397dad;border-color:#397dad}.calendar-legend button.task[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}.calendar-legend button.reminder[aria-pressed="true"]{background:#9a6317;border-color:#9a6317}
.calendar-legend button:hover{opacity:1}.calendar-legend button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.calendar-filters .calendar-legend{flex-wrap:wrap;gap:8px;max-width:100%}

/* Gün ayrıntıları: okunaklı metin ve rahat kapatma alanı. */
dialog.calendar-day-dialog{width:min(560px,calc(100vw - 32px));font-size:1.1rem}.calendar-day-dialog .dialog-top h2{font-size:1.4rem}.calendar-day-dialog .dialog-top .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;font-size:1.9rem;line-height:1}.calendar-day-dialog .calendar-event span{font-size:1rem}.calendar-day-dialog .calendar-event small{font-size:.95rem}

.notification-popover .dialog-top h2{font-size:1.4rem;line-height:1.3;font-weight:700}
