/* The island (the site's menu, built like the mod's) and the dock (the site's
   tabs). Self-contained: their own --isl-* tokens, set by data-color. */

.screen-dim, .screen-warm { position: fixed; inset: 0; pointer-events: none; z-index: 45; opacity: 0; transition: opacity .35s; }
.screen-dim { background: #000; }
.screen-warm { background: #ff9a3c; mix-blend-mode: multiply; z-index: 44; }

/* ---------------------------------------------------------------- island */

/* The mod's own numbers (DIPs at 100%): a 30 tall pill 6 from the edge, 12 of
   padding, items 6 apart in 26 wide slots, 15 px glyphs, 13 px text; a 28 tall
   bar; panels 8 under it, 16 of padding and radius. Notches: radius and
   shoulder from the curve (75%: h/4 x 1.125 and h/4 x 1.125^2). */
.island-anchor {
  --isl-bg: #000; --isl-ink: #fff; --isl-icon: #fff; --isl-sub: rgba(255, 255, 255, .6);
  --isl-btn: rgba(255, 255, 255, .1); --isl-hover: rgba(255, 255, 255, .14); --isl-on: #4cc2ff; --isl-on-ink: #00283d;
  --isl-h: 30px; --isl-r: 8px; --isl-sh: 9px; --isl-edge: rgba(255, 255, 255, .1);
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; pointer-events: none;
  font: 400 13px/1.35 'Segoe UI Variable Text', 'Segoe UI', var(--sans); color: var(--isl-ink);
}
/* The themes' colors, as the mod draws them. */
.island-anchor[data-color="graphite"] { --isl-bg: #2b2b30; }
.island-anchor[data-color="light"] { --isl-bg: #f5f5f7; --isl-ink: #050508; --isl-icon: #050508; --isl-sub: rgba(5, 5, 8, .56); --isl-btn: rgba(0, 0, 0, .06); --isl-hover: rgba(0, 0, 0, .09); --isl-flash: rgba(0, 0, 0, .16); --isl-on: #005fb8; --isl-on-ink: #fff; --isl-edge: rgba(0, 0, 0, .1); --wx-cloud: #9aa3b1; --wx-cloud2: #8a94a3; }
.island-anchor[data-color="accent"] { --isl-bg: #004274; --isl-on: #fff; --isl-on-ink: #004274; --isl-sub: rgba(255, 255, 255, .72); --isl-btn: rgba(255, 255, 255, .13); }
.island-anchor[data-color="glass"] { --isl-bg: rgba(48, 48, 54, .5); --isl-edge: rgba(255, 255, 255, .22); }
.island-anchor[data-color="own"] { --isl-bg: #1c1c1e; --isl-ink: #fff; --isl-icon: #64d2ff; --isl-on: #64d2ff; --isl-on-ink: #00283d; }
.island-anchor[data-color="glass"] .seg, .island-anchor[data-color="glass"] .isl-panel { backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 1px var(--isl-edge), 0 10px 30px -12px rgba(0, 0, 0, .5); }
/* Segoe Fluent Icons (MDL2 on Windows 10), drawn like the mod's glyphs. */
.fg { font: normal 400 1em/1 'Segoe Fluent Icons', 'Segoe MDL2 Assets'; display: inline-grid; place-items: center; width: 1em; height: 1em; flex: none; speak: never; -webkit-font-smoothing: antialiased; }
.wx-emoji { font: 13px/1 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }

.isl { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; transition: opacity .3s var(--ease), transform .45s var(--spring); }
.island-anchor.covered .isl { opacity: 0; transform: translateY(-6px) scale(.97); }
.seg-l { grid-column: 1; justify-self: start; }
.seg-c { grid-column: 2; }
.seg-r { grid-column: 3; justify-self: end; }
.seg {
  pointer-events: auto; position: relative; display: flex; align-items: center; gap: 2px;
  height: var(--isl-h); padding: 0 8px; white-space: nowrap; background: var(--isl-bg);
  transition: background-color .45s cubic-bezier(.65, 0, .35, 1), border-radius .4s var(--ease), height .4s var(--ease);
}
.isl-pill { padding-top: 6px; }
/* Never wider than the screen (6 from each edge): its items keep their size and,
   when they don't fit, the pill scrolls sideways (see fitSegs). */
.seg > *, .gi > * { flex: none; }
/* (cqw: the page's width without its scrollbar, which 100vw includes.) */
#islandAnchor { container-type: inline-size; }
.isl .seg-c { max-width: calc(100cqw - 2 * var(--isl-room, 6px)); }
.isl .seg-l, .isl .seg-r { max-width: calc(50cqw - 30px); }
.seg.scrolls { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; justify-content: flex-start; }
.seg.scrolls::-webkit-scrollbar { display: none; }
.isl-pill .seg { border-radius: calc(var(--isl-h) / 2); box-shadow: 0 0 0 1px var(--isl-edge), 0 8px 24px -10px rgba(0, 0, 0, .6); }
/* Notches hang from the screen's edge: concave shoulders, a rounded bottom. */
.isl-notch1 .seg, .isl-notch3 .seg, .isl-corners .seg { border-radius: 0 0 var(--isl-r) var(--isl-r); }
.isl-notch3 .seg-l, .isl-corners .seg-l { border-radius: 0 0 var(--isl-r) 0; padding-left: 12px; }
.isl-notch3 .seg-r, .isl-corners .seg-r { border-radius: 0 0 0 var(--isl-r); padding-right: 12px; }
.isl-bar { display: block; }
.isl-bar .seg-c { --isl-h: 28px; width: 100%; justify-content: center; padding: 0 12px; border-radius: 0; box-shadow: 0 1px 0 var(--isl-edge); }
.isl-bar .seg-c > :first-child { margin-right: auto; }
.isl-bar .seg-c > :last-child { margin-left: auto; }
.sh-l::before, .sh-r::after { content: ''; position: absolute; top: 0; width: var(--isl-sh); height: var(--isl-sh); pointer-events: none; }
.sh-l::before { left: calc(var(--isl-sh) * -1); background: radial-gradient(circle at 0 100%, transparent var(--isl-sh), var(--isl-bg) calc(var(--isl-sh) + .6px)); }
.sh-r::after { right: calc(var(--isl-sh) * -1); background: radial-gradient(circle at 100% 100%, transparent var(--isl-sh), var(--isl-bg) calc(var(--isl-sh) + .6px)); }

.isl-btn, .isl-clock, .isl-mctl button, .isl-cover, .isl-mtitle {
  border: 0; background: none; color: var(--isl-icon); font: inherit; cursor: pointer;
  transition: background-color .2s, transform .3s var(--spring);
}
/* A 26 wide slot per item; the hover shape is the mod's discreet grey. */
.isl-btn, .isl-clock { height: 24px; min-width: 26px; padding: 0 5px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; position: relative; }
.isl-btn:hover, .isl-clock:hover, .isl-mctl button:hover { background: var(--isl-hover); }
.isl-btn:active, .isl-clock:active, .isl-mctl button:active { transform: scale(.9); }
.isl-btn svg { width: 15px; height: 15px; }
.isl-btn .fg { font-size: 15px; }
.isl-small { font-size: 13px; font-weight: 600; color: var(--isl-ink); font-variant-numeric: tabular-nums; }
.isl-clock { color: var(--isl-ink); font-size: 13px; font-weight: 600; padding: 0 8px; font-variant-numeric: tabular-nums; }
.isl-media { display: inline-flex; align-items: center; gap: 2px; }
.isl-cover { width: 15px; height: 15px; border-radius: 4px; margin: 0 5px 0 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.isl-mtitle { font-size: 13px; color: var(--isl-ink); position: relative; display: inline-block; width: 120px; height: 24px; padding: 0; overflow: hidden; text-align: left; transition: width .45s cubic-bezier(.3, 1.2, .5, 1), background-color .2s; }
.mt { position: absolute; left: 0; top: 50%; transform: translateY(-50%); max-width: 182px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .42s cubic-bezier(.3, 1.2, .5, 1), opacity .3s; }
.mt.in { transform: translateY(60%); opacity: 0; }
.mt.out { transform: translateY(-160%); opacity: 0; }
.isl-cover.pop { animation: isl-pop .45s cubic-bezier(.3, 1.4, .5, 1); }
.isl-mctl { display: inline-flex; gap: 0; margin-left: 2px; }
.isl-mctl button { width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; }
.isl-mctl svg { width: 14px; height: 14px; }
.isl-mctl .fg { font-size: 14px; }
.dot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .4s var(--spring); }
.dot.on { transform: scale(1); }
/* The tooltip of the island and its panels (one element, placed by island.js). */
.isl-tip {
  position: fixed; z-index: 120; pointer-events: none; padding: 6px 10px; border-radius: 8px; max-width: 280px;
  background: #000; color: #fff; font: 400 12px/1.3 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 24px -8px rgba(0, 0, 0, .55);
  opacity: 0; transform: scale(.92); transform-origin: 50% 0; transition: opacity .15s, transform .15s;
}
.isl-tip.on { opacity: 1; transform: none; transition: opacity .3s cubic-bezier(.2, .8, .2, 1), transform .3s cubic-bezier(.2, .8, .2, 1); }
.isl-tip[data-color="light"] { background: #f5f5f7; color: #050508; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 8px 24px -8px rgba(0, 0, 0, .3); }
.isl-tip[data-color="graphite"] { background: #2b2b30; }
.isl-tip[data-color="accent"] { background: #004274; }
.isl-tip[data-color="own"] { background: #1c1c1e; }

.isl-line {
  pointer-events: auto; border: 0; padding: 0; width: 120px; height: 5px; border-radius: 3px; background: #000;
  position: absolute; top: 2px; left: 50%; margin-left: -60px; opacity: 0; transform: scaleX(.3); visibility: hidden;
  transition: opacity .3s, transform .5s var(--spring);
}
.island-anchor.minimized .isl { opacity: 0; transform: translateY(-40px) scale(.3); pointer-events: none; }
.island-anchor.minimized .seg { pointer-events: none; }
.island-anchor.minimized .isl-line { opacity: 1; transform: none; visibility: visible; }
/* panels */
.isl-panel {
  position: fixed; z-index: 51; pointer-events: none; visibility: hidden; opacity: 0;
  background: var(--isl-bg); color: var(--isl-ink); overflow: hidden;
  border-radius: 16px; padding: 16px; max-width: calc(100vw - 20px);
  box-shadow: 0 0 0 1px var(--isl-edge), 0 24px 56px -24px rgba(0, 0, 0, .7);
}
/* Out from behind the pill, under the item: sideways first (0.55 s, a little
   spring), then down (0.65 s, 0.05 s later, no overshoot); the contents fade in
   from 45%; it closes in 0.42 s. */
.isl-panel.show { visibility: visible; opacity: 1; pointer-events: auto; animation: isl-open .7s linear both; }
.isl-panel.show > * { animation: isl-in .32s .3s ease-out both; }
.isl-panel.hiding { visibility: visible; animation: isl-close .42s cubic-bezier(.4, 0, .2, 1) both; }
.isl-panel.banner.show { animation-name: isl-banner; }
.isl-panel.banner { border-radius: 26px; padding: 12px 16px; }
.isl-panel[data-kind="calendar"], .isl-panel[data-kind="weather"] { max-height: calc(100vh - 80px); overflow: auto; overflow-x: hidden; }
.scroll { overflow: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--isl-btn) transparent; }
.isl-panel ::-webkit-scrollbar-thumb { background: var(--isl-sub); background-clip: content-box; border: 3px solid transparent; }
.isl-panel ::-webkit-scrollbar { width: 10px; height: 10px; }
.isl-panel :is(svg,.fg) { flex: none; }

.p-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.p-title { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.p-title svg { width: 17px; height: 17px; }
.p-title .fg { font-size: 17px; }
.p-sub { color: var(--isl-sub); font-size: 12.5px; }
.dim { opacity: .75; }
.cap { text-transform: capitalize; }
.teal { color: #38d4c8; font-size: 12.5px; }
.center { text-align: center; padding: 14px 0; }
.p-link { color: var(--isl-sub); font-size: 12.5px; text-decoration: none; }
.p-link:hover { color: var(--isl-ink); }
.icon-btn, .cal-nav button { border: 0; background: none; color: var(--isl-icon); width: 28px; height: 28px; border-radius: 14px; display: inline-grid; place-items: center; }
.icon-btn:hover, .cal-nav button:hover { background: var(--isl-btn); }
.icon-btn svg, .cal-nav svg { width: 16px; height: 16px; }
.icon-btn .fg, .cal-nav .fg { font-size: 16px; }

.cc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cc-wide { grid-column: 1 / -1; }
.cc-tile { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; border-radius: 14px; padding: 10px 12px; background: var(--isl-btn); color: var(--isl-ink); transition: background-color .25s, transform .3s var(--spring); min-width: 0; }
.cc-tile:active, .cc-mini:active { transform: scale(.95); }
.cc-tile .ic, .cc-mini .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--isl-btn); flex: none; transition: background-color .25s, color .25s; }
.cc-tile .ic svg { width: 16px; height: 16px; }
.cc-tile .ic .fg { font-size: 16px; }
.cc-tile[aria-pressed="true"] .ic, .cc-mini[aria-pressed="true"] .ic { background: var(--isl-on); color: #fff; }
.island-anchor[data-color="accent"] .cc-tile[aria-pressed="true"] .ic, .island-anchor[data-color="own"] .cc-tile[aria-pressed="true"] .ic { color: #0b2a2a; }
.cc-tile .tx { min-width: 0; }
.cc-tile b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tile small { display: block; font-size: 11.5px; color: var(--isl-sub); }
.cc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cc-mini { display: grid; justify-items: center; gap: 5px; border: 0; background: none; color: var(--isl-ink); padding: 4px 0; }
.cc-mini .ic svg { width: 17px; height: 17px; }
.cc-mini .ic .fg { font-size: 17px; }
.cc-mini small { font-size: 11px; color: var(--isl-sub); text-align: center; }
.cc-slider { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--isl-btn); }
.cc-slider input { flex: 1; accent-color: var(--isl-on); min-width: 0; }
.cc-slider svg { width: 16px; height: 16px; }
.cc-slider .fg { font-size: 16px; }
.cc-langs { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; border: 0; border-radius: 9px; padding: 5px 8px 5px 10px; background: var(--isl-btn); font-size: 12.5px; font-weight: 600; color: var(--isl-ink); }
.cc-langs:hover { background: var(--isl-hover); }
.cc-langs :is(svg, .fg) { width: 11px; height: 11px; font-size: 11px; opacity: .7; }
.cc-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 8px; padding: 11px 12px; border: 0; border-radius: 12px; background: var(--isl-btn); color: var(--isl-ink); font-size: 13px; }
.cc-toggle i { width: 38px; height: 22px; border-radius: 11px; background: rgba(128, 128, 128, .5); position: relative; transition: background-color .25s; }
.cc-toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); }
.cc-toggle[aria-pressed="true"] i { background: var(--isl-on); }
.cc-toggle[aria-pressed="true"] i::after { transform: translateX(16px); }
.cc-note { margin: 12px 2px 0; font-size: 11px; }

.m-top { display: flex; gap: 14px; align-items: center; }
.m-cover { width: 76px; height: 76px; border-radius: 12px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.m-meta { min-width: 0; }
.m-meta .p-title { font-size: 18px; }
.m-seek { display: block; width: 100%; margin: 16px 0 2px; accent-color: var(--isl-ink); cursor: pointer; }
.m-time { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 11.5px; color: var(--isl-sub); font-variant-numeric: tabular-nums; }
.m-ctrl { display: flex; justify-content: center; gap: 26px; margin-bottom: 12px; }
.m-ctrl button { border: 0; background: none; color: var(--isl-ink); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background-color .2s, transform .3s var(--spring); }
.m-ctrl button:hover { background: var(--isl-btn); }
.m-ctrl button:active { transform: scale(.9); }
.m-ctrl svg { width: 20px; height: 20px; }
.m-ctrl .fg { font-size: 20px; }
.m-ctrl .big svg { width: 26px; height: 26px; }
.m-ctrl .big .fg { font-size: 26px; }

.cal-clock { font: 600 34px/1.1 'Segoe UI Variable Display', 'Segoe UI', var(--sans); font-variant-numeric: tabular-nums; }
.cal-date { margin: 2px 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--isl-btn); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 13px; }
.cal-grid > * { height: 36px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; color: var(--isl-ink); padding: 0; position: relative; font-weight: 600; }
.cal-grid button:hover { background: var(--isl-btn); }
.cal-grid .dow { color: var(--isl-sub); font-size: 11.5px; font-weight: 500; }
.cal-grid .out { opacity: .3; font-weight: 400; }
.cal-grid .sel { background: rgba(120, 140, 140, .32); }
.cal-grid .today { box-shadow: inset 0 0 0 1.5px var(--isl-on); }
.cal-grid .c-blue { color: #3b9bff; } .cal-grid .c-orange { color: #ff9f1c; } .cal-grid .c-green { color: #4ed07a; }
.cal-sec { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--isl-btn); }
.cal-sec p { margin: 6px 0 0; display: flex; gap: 12px; font-size: 12.5px; }
.cal-sec p b { min-width: 52px; font-weight: 500; }
.c-blue { color: #3b9bff; } .c-orange { color: #ff9f1c; } .c-green { color: #4ed07a; }
.cal-ev { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cal-ev i { width: 3px; height: 16px; border-radius: 2px; background: #4ed07a; }
.cal-new { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px; border: 0; border-radius: 10px; background: var(--isl-btn); color: var(--isl-ink); font-size: 13px; }
.cal-new svg { width: 14px; height: 14px; }
.cal-new .fg { font-size: 14px; }

.bell-list { max-height: 360px; display: grid; gap: 6px; align-content: start; }
.bell-item { display: flex; gap: 10px; padding: 10px; border-radius: 12px; background: var(--isl-btn); text-decoration: none; color: var(--isl-ink); transition: background-color .2s; min-width: 0; }
.bell-item:hover { background: rgba(128, 128, 128, .28); }
.bell-item img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.bell-item span { min-width: 0; }
.bell-item b { font-weight: 600; font-size: 13px; display: block; overflow-wrap: anywhere; }
.bell-item small { color: var(--isl-sub); font-size: 11.5px; }

.w-top { text-align: center; }
.w-top h3 { font: 600 26px/1.2 'Segoe UI Variable Display', 'Segoe UI', var(--sans); letter-spacing: 0; }
.w-top h3 span { font-weight: 500; }
.w-sun { display: flex; justify-content: center; gap: 18px; margin: 8px 0; }
.amber { color: #f0b429; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.amber svg { width: 15px; height: 15px; }
.amber .fg { font-size: 15px; }
.w-top .p-sub { line-height: 1.7; }
.w-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0 10px; }
.w-day { border: 1px solid transparent; border-radius: 10px; background: var(--isl-btn); color: var(--isl-ink); padding: 10px 0; display: grid; justify-items: center; gap: 4px; font-size: 12px; transition: border-color .2s; }
.w-day.on { border-color: var(--isl-on); }
.w-day svg { width: 30px; height: 30px; }
.w-day .fg { font-size: 30px; }
.w-day b { font-size: 14px; }
.w-day small { color: var(--isl-sub); }
.w-hours { border-radius: 12px; background: var(--isl-btn); padding: 12px 0 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; user-select: none; touch-action: pan-x; }
.w-hours::-webkit-scrollbar { display: none; }
.w-hours.dragging { cursor: grabbing; }
.w-line { position: relative; padding: 0 0 4px; }
.w-temps { position: relative; height: 18px; }
.w-temps span { position: absolute; transform: translateX(-50%); font-size: 12px; }
.w-line svg { display: block; width: 100%; height: 40px; margin-top: -2px; }
.w-cols { display: flex; }
.w-cols div { flex: none; display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--isl-sub); }
.w-cols svg { width: 22px; height: 22px; }
.w-cols .fg { font-size: 22px; }
.w-cols b { color: var(--isl-ink); font-size: 13px; }
.w-src { text-align: center; margin: 10px 0 0; }

.tray-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 6px 4px 12px; justify-items: center; }
.tray-cell svg.tr { width: 22px; height: 22px; }
.tray-row svg.tr { width: 20px; height: 20px; }
.tray-cell { border: 0; background: none; padding: 4px; border-radius: 10px; }
.tray-cell:hover { background: var(--isl-btn); }
.tray-list { max-height: 300px; display: grid; gap: 2px; }
.tray-row { display: flex; align-items: center; gap: 12px; border: 0; background: none; color: var(--isl-ink); padding: 7px 8px; border-radius: 10px; text-align: left; font-size: 13.5px; }
.tray-row:hover { background: var(--isl-btn); }
.tray-row span { flex: 1; }
.tray-row > svg:last-child { width: 15px; height: 15px; opacity: .55; }
.tray-hint { text-align: center; margin: 6px 6px 0; line-height: 1.5; }
.seg-ico { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--isl-btn); }
.seg-ico button { border: 0; background: none; color: var(--isl-sub); width: 30px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.seg-ico button[aria-pressed="true"] { background: var(--isl-on); color: #fff; }
.seg-ico svg { width: 15px; height: 15px; }
.seg-ico .fg { font-size: 15px; }

.n-area { width: 100%; min-height: 92px; resize: none; border: 1.5px solid var(--isl-on); border-radius: 12px; background: var(--isl-btn); color: var(--isl-ink); padding: 10px 12px; outline: none; }
.n-add { width: 100%; margin: 10px 0; padding: 11px; border: 0; border-radius: 10px; background: var(--isl-btn); color: var(--isl-ink); font-weight: 600; font-size: 13px; }
.n-list { max-height: 200px; display: grid; gap: 8px; }
.n-card { display: grid; grid-template-columns: 22px 1fr 22px; gap: 10px; padding: 12px; border-radius: 12px; background: var(--isl-btn); }
.n-card small { color: var(--isl-sub); font-size: 11.5px; }
.n-card p { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.n-card button { border: 0; background: none; color: var(--isl-sub); }
.n-ed svg, .n-card button svg { width: 15px; height: 15px; }
.n-ed .fg, .n-card button .fg { font-size: 15px; }

.t-form { display: flex; align-items: center; gap: 10px; flex: 1; }
.t-form button { border: 0; background: none; color: var(--isl-ink); width: 24px; height: 24px; display: grid; place-items: center; }
.t-form input { flex: 1; border: 0; background: none; outline: none; font-weight: 600; font-size: 15px; min-width: 0; }
.t-list { max-height: 240px; display: grid; gap: 6px; align-content: start; }
.t-sep { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--isl-btn); }
.task { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--isl-btn); cursor: pointer; }
.task input { display: none; }
.task i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--isl-sub); display: grid; place-items: center; flex: none; }
.task i svg { width: 13px; height: 13px; opacity: 0; color: #fff; }
.task i .fg { opacity: 0; color: #fff; }
.task i .fg { font-size: 13px; }
.task.done i { background: #2f9e5a; border-color: #2f9e5a; }
.task.done i :is(svg,.fg) { opacity: 1; }
.task.done span { text-decoration: line-through; color: var(--isl-sub); }

.sc-filter { width: 100%; border: 1.5px solid var(--isl-on); border-radius: 10px; background: var(--isl-btn); color: var(--isl-ink); padding: 10px 12px; outline: none; margin-bottom: 8px; }
.sc-list { max-height: 300px; }
.sc-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 7px 0; font-size: 12.5px; }
.sc-row code { color: var(--isl-ink); overflow-wrap: anywhere; }
kbd { display: inline-block; font: 600 11.5px/1 'Segoe UI', sans-serif; padding: 5px 7px; border-radius: 6px; background: var(--isl-btn); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35); }
.sc-row i { font-style: normal; color: var(--isl-sub); margin: 0 4px; }
.sc-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sc-foot button, .wide-btn { border: 0; border-radius: 10px; background: var(--isl-btn); color: var(--isl-ink); padding: 10px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sc-foot svg { width: 13px; height: 13px; }
.sc-foot .fg { font-size: 13px; }
.wide-btn { width: 100%; margin-top: 12px; }

.up-h { margin: 14px 0 8px; }
.up-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.up-row b { display: block; font-size: 14px; }
.up-row small { color: var(--isl-sub); font-size: 12px; }
.up-row button { border: 0; border-radius: 10px; background: var(--isl-btn); color: var(--isl-ink); padding: 9px 22px; font-weight: 600; font-size: 13px; }

.cpu-chart { width: 100%; height: 72px; margin: 8px 0 10px; border-radius: 8px; background: var(--isl-btn); color: var(--isl-ink); display: block; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cpu-st { background: var(--isl-btn); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cpu-st small { color: var(--isl-sub); font-size: 12px; }
.cpu-st b { font-size: 16px; font-weight: 600; }
.pw-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.pw-mode { border: 0; border-radius: 10px; padding: 10px 4px; background: var(--isl-btn); color: var(--isl-ink); font-size: 12.5px; }
.pw-mode[aria-pressed="true"] { background: var(--isl-on); color: #fff; }

.n-banner { display: flex; gap: 12px; align-items: center; }
.n-ico svg { width: 42px; height: 42px; display: block; }
.n-ico .fg { font-size: 42px; }
.n-tx { min-width: 0; flex: 1; }
.n-row { display: flex; justify-content: space-between; gap: 10px; }
.n-row small { color: var(--isl-sub); font-size: 11.5px; }
.n-b { color: var(--isl-ink); opacity: .85; font-size: 13.5px; }
.u-wrap { display: flex; align-items: center; gap: 12px; }
.u-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--isl-btn); flex: none; }
.u-ico svg { width: 22px; height: 22px; }
.u-ico .fg { font-size: 22px; }
.u-ico.accent { color: var(--isl-on); }
.big-num { font: 600 30px/1 var(--sans); font-variant-numeric: tabular-nums; }


/* ---------------------------------------------------------------- the mod's motion */

/* Parts of the pill grow in and out sideways; the pill follows their width. */
.grow { display: inline-grid; grid-template-columns: 0fr; opacity: 0; vertical-align: middle; transition: grid-template-columns .5s cubic-bezier(.3, 1.12, .5, 1), opacity .28s ease; }
.grow.on { grid-template-columns: 1fr; opacity: 1; }
.gi { min-width: 0; overflow-x: clip; overflow-y: visible; display: inline-flex; align-items: center; gap: 2px; }
.grow:not(.on) .gi { pointer-events: none; }
/* Faísca on the pill (js/island-pet.js): a slot as wide as the mod gives her
   (0.86 of the pill, a little wider), her canvas wider than it for her glow. */
.isl-btn.isl-pet { width: calc(var(--isl-h) * .9); min-width: 0; height: var(--isl-h); padding: 0; border-radius: 50%; }
.isl-btn.isl-pet:hover { background: none; }
.isl-pet canvas { position: absolute; left: 50%; top: 0; width: calc(var(--isl-h) * 2.2); height: 100%; transform: translateX(-50%); pointer-events: none; }
.isl-btn.isl-pet .pet-still { width: calc(var(--isl-h) * .86); height: calc(var(--isl-h) * .86); }
.isl-pet.live .pet-still { visibility: hidden; }
.grow.on[data-g="pet"] .gi { overflow-x: visible; }
.isl-media { display: inline-flex; align-items: center; }

/* A press flashes the button, like the mod's. */
.island-anchor { --isl-flash: rgba(255, 255, 255, .26); }
.blink { animation: isl-blink .38s ease-out; }
@keyframes isl-blink { 0% { background-color: var(--isl-flash); transform: scale(.86); } 100% { transform: none; } }

/* Glyphs crossfade instead of jumping: play and pause, bell and moon. */
.pp, .bell-g { display: inline-grid; place-items: center; }
.pp :is(svg,.fg), .bell-g :is(svg,.fg) { grid-area: 1 / 1; transition: opacity .22s, transform .34s cubic-bezier(.3, 1.4, .5, 1); }
.pp .g-pause, .pp.is-playing .g-play, .bell-g .g-moon, .bell-g.dnd .g-bell { opacity: 0; transform: scale(.55) rotate(-25deg); }
.pp.is-playing .g-pause, .bell-g.dnd .g-moon { opacity: 1; transform: none; }
.m-ctrl .pp svg { width: 26px; height: 26px; }
.m-ctrl .pp .fg { font-size: 26px; }
.chev { transition: transform .4s cubic-bezier(.3, 1.3, .5, 1); }
.chev.turned { transform: rotate(180deg); }

.isl-btn svg.tr { width: 17px; height: 17px; }
.isl-stat { flex-direction: column; gap: 0; line-height: 1; padding: 0 5px; }
.isl-stat small { font-size: 8.5px; font-weight: 600; letter-spacing: .04em; color: var(--isl-sub); }
.isl-stat b { font-size: 11.5px; font-weight: 600; color: var(--isl-ink); font-variant-numeric: tabular-nums; margin-top: 2px; }
.bubble { position: absolute; top: 0; right: -1px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: #ff3b30; color: #fff; font: 700 10px/15px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--isl-bg); }
.bubble:empty { display: none; }
.app-n svg.app-ico { width: 19px; height: 19px; }

@keyframes isl-open {
  0% { clip-path: inset(0 calc(100% - var(--ox) - 15px) calc(100% - 30px) calc(var(--ox) - 15px) round 15px); transform: translateY(-38px); opacity: 0; animation-timing-function: cubic-bezier(.25, 1.25, .45, 1); }
  10% { opacity: 1; }
  48% { clip-path: inset(0 0 calc(100% - 32px) 0 round 16px); transform: none; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  100% { clip-path: inset(0 0 0 0 round 16px); transform: none; opacity: 1; }
}
@keyframes isl-close {
  0% { clip-path: inset(0 0 0 0 round 16px); opacity: 1; }
  55% { clip-path: inset(0 0 calc(100% - 32px) 0 round 16px); transform: none; opacity: 1; }
  100% { clip-path: inset(0 calc(100% - var(--ox) - 15px) calc(100% - 30px) calc(var(--ox) - 15px) round 15px); transform: translateY(-38px); opacity: 0; }
}
/* A banner comes out of the pill itself, widening from its size. */
@keyframes isl-banner {
  0% { clip-path: inset(0 calc(50% - 110px) calc(100% - 38px) calc(50% - 110px) round 19px); opacity: .6; }
  55% { clip-path: inset(0 0 calc(100% - 50px) 0 round 24px); opacity: 1; }
  100% { clip-path: inset(0 0 0 0 round 26px); opacity: 1; }
}
/* (Only a fade: a contents that moved would show the panels' scroll bars for a moment.) */
@keyframes isl-in { from { opacity: 0; } }
/* While a panel opens, moves or resizes, nothing in it scrolls: it would flash a
   scroll bar until it reaches its size. */
.isl-panel.moving, .isl-panel.moving .scroll, .isl-panel.moving .w-hours { overflow: hidden !important; }
@keyframes isl-pop { 0% { transform: scale(.6); } 100% { transform: none; } }

/* ---------------------------------------------------------------- sound, settings, gear */

.snd-h { margin: 14px 2px 6px; }
.snd-devs { display: grid; gap: 4px; }
.snd-dev { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; padding: 9px 10px; background: none; color: var(--isl-ink); text-align: left; font-size: 13px; }
.snd-dev:hover { background: var(--isl-btn); }
.snd-dev span { flex: 1; }
.snd-dev svg { width: 16px; height: 16px; }
.snd-dev .fg { font-size: 16px; }
.snd-dev .ok { opacity: 0; color: var(--isl-on); transform: scale(.5); transition: opacity .2s, transform .3s var(--spring); }
.snd-dev[aria-pressed="true"] .ok { opacity: 1; transform: none; }
.snd-app { display: grid; grid-template-columns: 26px 1fr 120px; align-items: center; gap: 10px; padding: 6px 4px; font-size: 13px; }
.snd-ico { display: grid; place-items: center; }
.snd-ico svg { width: 18px; height: 18px; }
.snd-ico .fg { font-size: 18px; }
.snd-app input { accent-color: var(--isl-on); min-width: 0; }
.wide-btn svg { width: 15px; height: 15px; }
.wide-btn .fg { font-size: 15px; }
.cc-gear { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 10px; background: var(--isl-btn); color: var(--isl-ink); font-size: 13px; font-weight: 600; }
.cc-gear svg { width: 15px; height: 15px; }
.cc-gear .fg { font-size: 15px; }
.isl-panel[data-kind="gear"] { padding: 4px; border-radius: 26px; }
.gear-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--isl-btn); color: var(--isl-icon); display: grid; place-items: center; }
.gear-btn svg { width: 20px; height: 20px; transition: transform .6s var(--spring); }
.gear-btn .fg { font-size: 20px; }
.gear-btn:hover svg { transform: rotate(90deg); }
.set-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 12px; background: var(--isl-btn); }
.set-tabs button { border: 0; background: none; color: var(--isl-sub); border-radius: 9px; padding: 7px 4px; font-size: 12.5px; font-weight: 600; transition: background-color .25s, color .25s; }
.set-tabs button[aria-selected="true"] { background: var(--isl-on); color: #fff; }
.set-body { margin-top: 4px; min-height: 120px; }
.set-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.set-opts button { display: grid; justify-items: center; gap: 6px; border: 1.5px solid transparent; border-radius: 12px; padding: 10px 4px; background: var(--isl-btn); color: var(--isl-ink); font-size: 12px; transition: border-color .2s, transform .3s var(--spring); }
.set-opts button:active { transform: scale(.95); }
.set-opts button[aria-pressed="true"] { border-color: var(--isl-on); }
.set-opts svg { width: 18px; height: 18px; }
.set-opts .fg { font-size: 18px; }
.sty { width: 52px; height: 30px; border-radius: 4px; background: #2a3442; position: relative; overflow: hidden; flex: none; }
.sty::before, .sty::after { content: ''; position: absolute; background: #000; }
.sty-pill::before { left: 14px; right: 14px; top: 3px; height: 6px; border-radius: 6px; }
.sty-bar::before { left: 0; right: 0; top: 0; height: 6px; }
.sty-notch3::before { left: 17px; right: 17px; top: 0; height: 7px; border-radius: 0 0 4px 4px; box-shadow: -15px 0 0 -1px #000, 15px 0 0 -1px #000; }
.sty-corners::before { left: 0; width: 16px; top: 0; height: 7px; border-radius: 0 0 4px 0; }
.sty-corners::after { right: 0; width: 16px; top: 0; height: 7px; border-radius: 0 0 0 4px; }
.sty-notch1::before { left: 14px; right: 14px; top: 0; height: 8px; border-radius: 0 0 6px 6px; }
.set-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.set-colors button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; padding: 3px; background: none; transition: border-color .2s, transform .3s var(--spring); }
.set-colors button[aria-pressed="true"] { border-color: var(--isl-on); }
.set-colors button:active { transform: scale(.9); }
.set-colors i, .sw { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .5); }
.sw-black { background: #000; } .sw-graphite { background: #2a2b30; } .sw-light { background: #f4f4f6; } .sw-accent { background: #0063b1; }
.sw-glass { background: linear-gradient(135deg, rgba(255, 255, 255, .6), rgba(120, 120, 140, .25)); } .sw-own { background: linear-gradient(135deg, #10302e 50%, #ffcf6e 50%); }

/* ---------------------------------------------------------------- dock */

.dock-wrap { position: fixed; left: 0; right: 0; bottom: 12px; z-index: 40; display: flex; justify-content: center; pointer-events: none; padding: 0 8px; }
.dock {
  pointer-events: auto; list-style: none; margin: 0; display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px 9px; border-radius: 22px;
  background: rgba(30, 30, 36, .5); backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
}
:root[data-theme="light"] .dock { background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .7); }
.dock li { position: relative; display: flex; flex-direction: column; align-items: center; flex: none; }
.dock a { display: block; width: var(--sz, 46px); height: var(--sz, 46px); }
.dock .ico { display: block; width: 100%; height: 100%; }
.dock .ico svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
.dock .ico.bounce { animation: bounce .75s var(--ease) 1; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-26px); } 60% { transform: translateY(0); } 78% { transform: translateY(-7px); } }
.dock .run { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); opacity: 0; margin-top: 3px; transform: scale(0); transition: opacity .25s, transform .5s var(--spring); }
.dock li.on .run { opacity: .9; transform: none; }
.dock .tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); padding: 5px 10px; border-radius: 7px;
  background: rgba(20, 20, 24, .92); color: #fff; font-size: 12.5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.dock li:hover .tip, .dock li.tip-on .tip { opacity: 1; }
.dock .sep { width: 1px; align-self: stretch; margin: 6px 4px; background: rgba(255, 255, 255, .2); }
:root[data-theme="light"] .dock .sep { background: rgba(0, 0, 0, .18); }


@media (max-width: 760px) {
  .island-anchor [data-key="tray"], .island-anchor [data-tray], .island-anchor [data-g="trayInline"], .island-anchor [data-g="weather"], .island-anchor [data-g="extras"], .island-anchor .hide-sm { display: none !important; }
  .dock { gap: 4px; padding: 6px 7px 7px; border-radius: 18px; }
  .dock .sep { margin: 6px 3px; }
  .dock li.wide { display: none; }
  .dock a { width: min(var(--sz, 44px), calc((100vw - 96px) / 8)); height: min(var(--sz, 44px), calc((100vw - 96px) / 8)); }
}
