/* ============================================================
   Ubuntu 26.04 — GNOME Shell chrome (panel, dock, overview)
   Values per compiled Yaru gnome-shell.css (26.04)
   ============================================================ */

/* ---------- desktop ---------- */
#desktop {
  position: fixed; inset: 0; z-index: 1;
  background: var(--jet);
}
#wallpaper {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: background-image .4s var(--ease-out), filter .3s;
}
#desktop-icons {
  position: absolute; inset: var(--panel-height) 0 var(--panel-height) 0;
  padding: 24px;
  display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 4px;
  pointer-events: none;
}
.desk-icon {
  pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 96px; padding: 8px 4px; border-radius: 12px;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6);
  cursor: default;
}
.desk-icon img { width: 48px; height: 48px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.desk-icon span { font-size: var(--fs-s); text-align: center; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-icon:hover { background: rgba(255,255,255,.14); }
.desk-icon.selected { background: rgba(255,255,255,.22); outline: 1.5px dashed rgba(255,255,255,.5); outline-offset: -3px; }

/* ---------- top panel ---------- */
#panel {
  position: fixed; top: 0; left: 0; right: 0; height: var(--panel-height);
  z-index: 8000;
  background: var(--panel-bg);
  color: var(--panel-fg);
  display: flex; align-items: center;
  font-size: var(--fs-m);
  font-weight: 400;
  box-shadow: none;
  pointer-events: auto;
}
.p-pill {
  display: flex; align-items: center; gap: 10px;
  height: 100%;
  padding: 0 10px;
  color: var(--panel-fg);
  cursor: default;
  border-radius: 0;
  position: relative;
  white-space: nowrap;
}
.p-pill:hover { background: var(--panel-hover); }
.p-pill:active, .p-pill.open { background: var(--panel-active); }
.p-pill svg { width: 16px; height: 16px; flex: none; }
#panel .p-left { display: flex; align-items: center; height: 100%; gap: 2px; }
#panel .p-center { position: absolute; left: 50%; transform: translateX(-50%); height: 100%; }
#panel .p-right { margin-left: auto; display: flex; align-items: center; height: 100%; }

#pActivities .acts-dots { display: grid; grid-template-columns: repeat(3, 4px); gap: 3px; }
#pActivities .acts-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--panel-fg); }
#pAppMenu .appmenu-icon { width: 18px; height: 18px; }
#pAppMenu .appmenu-icon img { width: 100%; height: 100%; }
#pAppMenu.placeholder { opacity: .55; }

#pClock { font-weight: 400; }
#pClock .p-date { opacity: .92; }

#pStatus { display: flex; align-items: center; gap: 2px; height: 100%; }
.p-indic { position: relative; display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 8px; color: var(--panel-fg); cursor: default; }
.p-indic:hover { background: var(--panel-hover); }
.p-indic.open { background: var(--panel-active); }
.p-indic svg { width: 17px; height: 17px; }

.power-mode-ic { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); width: 12px; height: 12px; color: var(--panel-fg); }
.power-mode-ic svg { width: 12px; height: 12px; }

/* ---------- clock/calendar popover ---------- */
.cal-popover { width: 344px; padding: var(--pad-m); }
.cal-popover .cal-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 8px; }
.cal-popover .cal-month { font-size: var(--fs-m); font-weight: 550; }
.cal-popover .cal-nav { display: flex; gap: 4px; }
.cal-table { width: 100%; border-collapse: separate; border-spacing: 1px; }
.cal-table th {
  font-size: var(--fs-xs); font-weight: 400; color: var(--fg-dim);
  padding: 4px 0; text-align: center; width: 14.28%;
}
.cal-day {
  height: 36px; width: 36px; margin: auto;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-s);
  cursor: default;
}
.cal-day:hover { background: var(--row-hover); }
.cal-day.today { background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.cal-day.today:hover { background: var(--accent-hover); }
.cal-day.other { color: var(--fg-faint); }
.cal-day.selected:not(.today) { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.cal-day.has-events::after { content: ""; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin: -14px auto 0; }
.cal-day.today.has-events::after { background: var(--accent-fg); }

.cal-events { margin-top: 8px; border-top: 1px solid var(--menu-border); padding-top: 8px; max-height: 200px; overflow: auto; }
.cal-event {
  display: flex; gap: 10px; padding: 8px; border-radius: var(--radius-s); align-items: flex-start;
}
.cal-event:hover { background: var(--row-hover); }
.cal-event .ev-time { color: var(--fg-dim); font-size: var(--fs-xs); width: 44px; flex: none; padding-top: 2px; text-align: right; }
.cal-event .ev-body { flex: 1; min-width: 0; }
.cal-event .ev-title { font-size: var(--fs-s); font-weight: 500; }
.cal-event .ev-desc { font-size: var(--fs-xs); color: var(--fg-dim); }
.cal-event .ev-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex: none; }
.cal-none { padding: 12px; text-align: center; color: var(--fg-dim); font-size: var(--fs-s); }

/* ---------- quick settings ---------- */
.qs-popover { width: 380px; padding: var(--pad-m); }
.qs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qs-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  cursor: default;
  min-height: 44px;
  position: relative;
}
.qs-toggle:hover { background: var(--btn-bg-hover); }
.qs-toggle .qt-icon { width: 22px; height: 22px; color: var(--fg-dim); display: flex; flex: none; }
.qs-toggle .qt-icon svg { width: 22px; height: 22px; }
.qs-toggle .qt-label { font-size: var(--fs-s); }
.qs-toggle.on { background: var(--accent-soft); border-color: var(--accent-border); }
.qs-toggle.on .qt-icon { color: var(--accent); }
.qs-toggle .qt-arrow { margin-left: auto; color: var(--fg-faint); font-size: 10px; }
.qs-sliders { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px 6px; }
.qs-slider-row { display: flex; align-items: center; gap: 12px; }
.qs-slider-row .ic { color: var(--fg-dim); display: flex; }
.qs-slider-row .ic svg { width: 18px; height: 18px; }
.qs-slider-row .slider { flex: 1; }
.qs-power { display: flex; justify-content: flex-end; gap: 4px; padding: 10px 4px 2px; border-top: 1px solid var(--menu-border); margin-top: 6px; }
.qs-power .icon-btn { width: 40px; height: 40px; }
.qs-power .icon-btn svg { width: 20px; height: 20px; }
.qs-power .icon-btn.power { color: var(--error); }
.qs-footer { display: flex; align-items: center; justify-content: flex-end; padding: 4px 6px 2px; }
.qs-details {
  padding: 6px 8px;
  font-size: var(--fs-xs); color: var(--fg-dim);
  display: flex; flex-direction: column; gap: 8px;
}
.qs-details-row { display: flex; align-items: center; gap: 12px; }
.qs-details-row .ic { display: flex; color: var(--fg-dim); width: 20px; }
.qs-details-row .ic svg { width: 20px; height: 20px; }
.qs-details-row .lbl { width: 88px; font-size: var(--fs-s); }
.qs-details-row .val { flex: 1; font-size: var(--fs-s); }
.qs-details-row .val .row-sub { font-size: var(--fs-xs); }

/* wifi submenu */
.qs-wifi { padding: 8px; display: flex; flex-direction: column; gap: 2px; width: 340px; }
.qs-wifi .wifi-title { padding: 8px 12px 6px; font-weight: 550; }
.qs-wifi .wifi-net {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-s); cursor: default;
}
.qs-wifi .wifi-net:hover { background: var(--row-hover); }
.qs-wifi .wifi-net .wn-icon { display: flex; color: var(--fg-dim); }
.qs-wifi .wifi-net .wn-icon svg { width: 20px; height: 20px; }
.qs-wifi .wifi-net .wn-name { flex: 1; }
.qs-wifi .wifi-net .wn-status { font-size: var(--fs-xs); color: var(--fg-dim); }
.qs-wifi .wifi-net.connected { background: var(--accent-soft); }
.qs-wifi .wifi-net.connected .wn-name { color: var(--accent); }
.qs-wifi .wifi-net .wn-lock { display: flex; color: var(--fg-faint); }
.qs-wifi .wifi-net .wn-lock svg { width: 14px; height: 14px; }

/* ---------- notifications ---------- */
.notif-popover { width: 400px; }
.notif-header { display: flex; align-items: center; padding: 14px 16px 8px; }
.notif-header .nh-title { font-weight: 550; font-size: var(--fs-m); flex: 1; }
.notif-empty { padding: 40px 20px; text-align: center; color: var(--fg-dim); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.notif-empty svg { width: 40px; height: 40px; color: var(--fg-faint); }

.notif-group { margin: 4px 8px; border-radius: var(--radius-m); }
.notif-group:hover { background: var(--row-hover); }
.notif-group-header {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: default;
}
.notif-group-header .ng-icon { width: 28px; height: 28px; flex: none; }
.notif-group-header .ng-icon img { width: 100%; height: 100%; }
.notif-group-header .ng-app { font-weight: 550; flex: 1; font-size: var(--fs-s); }
.notif-group-header .ng-count { color: var(--fg-dim); font-size: var(--fs-xs); }
.notif-group .ng-dismiss { color: var(--fg-faint); }
.notif-group .ng-items { display: flex; flex-direction: column; }

.notif-banner {
  position: fixed; top: calc(var(--panel-height) + 10px); right: 14px;
  width: 372px; z-index: 8700;
  background: var(--notif-bg); color: var(--notif-fg);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-3);
  animation: notif-in var(--speed-slow) var(--ease-spring);
  display: flex; flex-direction: column;
  overflow: hidden;
}
@keyframes notif-in { from { opacity: 0; transform: translateX(40px) scale(.95); } to { opacity: 1; transform: none; } }
.notif-banner.out { animation: notif-out var(--speed-normal) forwards; }
@keyframes notif-out { to { opacity: 0; transform: translateX(30px); } }
.notif-item { display: flex; gap: 12px; padding: 14px 16px; }
.notif-item .ni-icon { width: 32px; height: 32px; flex: none; }
.notif-item .ni-icon img { width: 100%; height: 100%; }
.notif-item .ni-icon svg { width: 32px; height: 32px; }
.notif-item .ni-body { flex: 1; min-width: 0; }
.notif-item .ni-title { font-weight: 700; font-size: var(--fs-m); }
.notif-item .ni-text { font-size: var(--fs-s); color: var(--fg-dim); margin-top: 2px; line-height: 1.45; }
.notif-item .ni-actions { display: flex; gap: 8px; margin-top: 8px; }
.notif-item .ni-close { color: var(--fg-faint); flex: none; }
.notif-item .ni-time { font-size: var(--fs-xs); color: var(--fg-faint); margin-top: 2px; }
.notif-banner .ni-close-btn { position: absolute; top: 8px; right: 8px; }
.notif-banner .ni-tb { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; }
.notif-banner .ni-tb .ni-app { font-size: var(--fs-xs); color: var(--fg-dim); flex: 1; }
.notif-banner .ni-icon { width: 28px; height: 28px; }
.notif-banner .ni-icon img, .notif-banner .ni-icon svg { width: 28px; height: 28px; }
.notif-banner .ni-title { font-weight: 700; }
.notif-banner .ni-text { color: var(--window-fg); opacity: .9; }

/* ---------- dock ---------- */
#dock-wrap {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--dock-width);
  z-index: 8100;
  display: flex; align-items: center;
  pointer-events: none;
  transition: transform var(--speed-slow) var(--ease-out);
}
#dock-wrap.hidden { transform: translateX(-100%); }
#dock {
  pointer-events: auto;
  margin-left: 4px;
  background: var(--dash-bg);
  border-radius: var(--radius-xxl);
  padding: var(--pad-l) var(--pad-m);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.d-item {
  position: relative;
  width: 44px; height: 44px;
  border-radius: var(--radius-l);
  display: flex; align-items: center; justify-content: center;
  cursor: default;
  transition: transform var(--speed-fast) var(--ease-spring), background var(--speed-fast);
}
.d-item img, .d-item svg { width: 40px; height: 40px; pointer-events: none; }
.d-item:hover { background: var(--dash-item-hover); }
.d-item:active { background: var(--dash-item-checked); transform: scale(.92); }
.d-item.focused { background: var(--dash-item-focus); }
.d-item.urgency { animation: urgency 1.2s var(--ease-in-out) infinite; }
@keyframes urgency {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent); }
  50% { box-shadow: 0 0 0 5px transparent; }
}
.d-item .d-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px;
  background: var(--error); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.d-dot {
  position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--speed-normal), height var(--speed-normal), transform var(--speed-normal);
}
.d-item.running .d-dot { opacity: 1; }
.d-item.running.focused .d-dot { height: 16px; border-radius: 3px; }
.d-sep { width: 36px; height: 1px; background: var(--dash-separator); margin: 6px 0; flex: none; }
#dock .d-spacer { flex: 1; min-height: 8px; }
#dShowApps { margin-top: 4px; }
#dShowApps img { border-radius: 50%; }

/* tooltip for dock items */
.dock-tip {
  position: fixed; z-index: 9800;
  background: var(--osd-bg); color: var(--osd-fg);
  border-radius: 8px; padding: 8px 12px;
  font-size: var(--fs-s); font-weight: 500;
  box-shadow: var(--shadow-2);
  pointer-events: none;
  animation: tooltip-in var(--speed-fast);
  display: flex; align-items: center; gap: 8px;
}
.dock-tip img, .dock-tip svg { width: 20px; height: 20px; }

/* ---------- overview ---------- */
#overview {
  position: fixed; inset: 0; z-index: 8200;
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(9px) saturate(1.1);
  -webkit-backdrop-filter: blur(9px) saturate(1.1);
  opacity: 0; pointer-events: none;
  transition: opacity var(--speed-slow) var(--ease-out);
  display: flex; flex-direction: column;
}
#overview.open { opacity: 1; pointer-events: auto; }
#overview .ov-top { flex: none; padding: calc(var(--panel-height) + 14px) 24px 6px; display: flex; justify-content: center; }
#overview .ov-main { flex: 1; min-height: 0; display: flex; }
#overview .ov-center { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 8px 16px 24px; }
#overview .ov-right { width: 92px; flex: none; display: flex; align-items: center; justify-content: center; }

.search-entry {
  display: flex; align-items: center; gap: 10px;
  width: 480px; max-width: 80vw;
  padding: 10px 20px;
  background: var(--search-entry-bg);
  border-radius: var(--radius-pill);
  color: var(--overview-fg);
  border: 1px solid transparent;
  transition: background var(--speed-normal), box-shadow var(--speed-normal);
}
.search-entry:focus-within { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 2px var(--focus-ring); }
.search-entry .se-icon { display: flex; color: rgba(255,255,255,.6); }
.search-entry .se-icon svg { width: 18px; height: 18px; }
.search-entry input {
  flex: 1; border: none; outline: none; background: transparent;
  color: var(--overview-fg); font-size: var(--fs-m);
}
.search-entry input::placeholder { color: rgba(255,255,255,.45); }
.search-entry .se-clear { color: rgba(255,255,255,.55); display: none; cursor: default; }
.search-entry.has-text .se-clear { display: flex; }
.search-entry .se-clear:hover { color: #fff; }

.ov-results { overflow: auto; flex: 1; }
.ov-result-section { margin: 14px 0; }
.ov-result-section > h4 { color: rgba(255,255,255,.55); font-weight: 400; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; padding: 0 8px 8px; }
.ov-result-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; margin: 2px 0;
  border-radius: var(--radius-l);
  color: var(--overview-fg);
  cursor: default;
}
.ov-result-row:hover { background: var(--overview-tile-hover); }
.ov-result-row .rr-icon { width: 40px; height: 40px; flex: none; }
.ov-result-row .rr-icon img { width: 100%; height: 100%; }
.ov-result-row .rr-icon svg { width: 40px; height: 40px; }
.ov-result-row .rr-name { font-size: var(--fs-m); }
.ov-result-row .rr-sub { font-size: var(--fs-xs); color: rgba(255,255,255,.5); }

/* window spread */
.ov-window-grid {
  display: flex; flex-wrap: wrap; gap: 28px;
  padding: 12px 8px;
  align-content: flex-start;
}
.ov-window-tile {
  position: relative;
  width: 220px; height: 150px;
  border-radius: var(--radius-m);
  overflow: visible;
  cursor: default;
  animation: tile-in var(--speed-slow) var(--ease-spring);
  transition: transform var(--speed-normal) var(--ease-spring);
}
.ov-window-tile:hover { transform: scale(1.04); }
.ov-window-tile .wt-preview {
  position: absolute; inset: 0;
  border-radius: var(--radius-m);
  border: 2px solid transparent;
  overflow: hidden;
  background: var(--overview-tile-hover);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.ov-window-tile:hover .wt-preview { border-color: var(--accent); }
.ov-window-tile .wt-scale { transform-origin: top left; }
.ov-window-tile .wt-close {
  position: absolute; top: -14px; right: -14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(52,52,52,.98); color: #f2f2f2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  opacity: 0; transition: opacity var(--speed-fast);
  z-index: 2;
}
.ov-window-tile:hover .wt-close { opacity: 1; }
.ov-window-tile .wt-close:hover { background: rgba(80,80,80,.98); }
.ov-window-tile .wt-label {
  position: absolute; left: 0; right: 0; bottom: -26px;
  text-align: center; color: var(--overview-fg);
  font-size: var(--fs-s);
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
@keyframes tile-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }

/* workspace switcher */
.ws-strip { display: flex; flex-direction: column; gap: 10px; }
.ws-thumb {
  position: relative;
  width: 68px; height: 42px;
  border-radius: 6px;
  background: var(--ws-thumb-bg);
  border: 1px solid transparent;
  cursor: default;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ws-thumb .ws-mini { position: absolute; inset: 4px; border-radius: 4px; opacity: .5; background: rgba(255,255,255,.08); }
.ws-thumb .ws-mini.on { background: rgba(255,255,255,.28); opacity: .9; }
.ws-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); border-radius: 8px; }
.ws-thumb .ws-add { color: rgba(255,255,255,.5); display: flex; }
.ws-thumb .ws-add svg { width: 16px; height: 16px; }
.ws-thumb:hover { background: #4a4a4a; }

/* app grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px 16px;
  padding: 8px 24px 20px;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  overflow: auto;
}
.app-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px 10px;
  border-radius: var(--radius-l);
  color: var(--overview-fg);
  cursor: default;
  position: relative;
  transition: background var(--speed-fast), transform var(--speed-fast);
}
.app-tile:hover { background: var(--overview-tile-hover); }
.app-tile:active { transform: scale(.94); }
.app-tile img, .app-tile .tile-ic { width: 56px; height: 56px; }
.app-tile span { font-size: var(--fs-s); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-tile .at-running { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0; }
.app-tile.running .at-running { opacity: 1; }
.app-tile .at-badge { position: absolute; top: 8px; right: 18px; }
.app-folder { position: relative; }
.app-folder .folder-grid { display: grid; grid-template-columns: repeat(2, 26px); gap: 3px; justify-items: center; align-items: center; width: 56px; height: 56px; }
.app-folder .folder-grid img { width: 26px; height: 26px; }

.grid-pages { display: flex; gap: 6px; justify-content: center; padding: 6px 0 0; }
.grid-page-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); cursor: default; }
.grid-page-dot.active { background: var(--overview-fg); }
.ov-footer-hint { text-align: center; color: rgba(255,255,255,.4); font-size: var(--fs-xs); padding: 4px 0 10px; }

/* folder dialog */
.folder-dialog {
  position: fixed; z-index: 8400; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(35,35,35,.92);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--pad-xxl);
  box-shadow: var(--shadow-3);
  animation: modal-in var(--speed-normal) var(--ease-spring);
  min-width: 420px;
}
.folder-dialog .fd-title { color: var(--overview-fg); font-size: var(--fs-l); text-align: center; margin-bottom: 16px; font-weight: 550; }
.folder-dialog .fd-grid { display: grid; grid-template-columns: repeat(auto-fill, 96px); gap: 8px; justify-content: center; }
.folder-dialog .fd-open { text-align: center; color: rgba(255,255,255,.7); font-size: var(--fs-s); margin-top: 16px; }

/* ---------- run dialog / alt-tab done in windows.css ---------- */

/* ---------- app menu popover (focused app) ---------- */
.appmenu-pop { min-width: 260px; padding: 6px; }

/* ---------- desktop context ---------- */
