/* Application library */

.library-shell,.settings-shell {
  display:flex;
  height:100%;
  min-height:0;
}

.lib-side,.settings-nav {
  width:157px;
  flex:none;
  display:flex;
  flex-direction:column;
  padding:17px 9px 10px;
  background:linear-gradient(130deg,color-mix(in srgb,var(--sidebar) 87%,var(--paper)),var(--sidebar));
  border-left:1px solid var(--line);
}

.lib-brand {
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 9px 17px;
  font:700 16px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  letter-spacing:-.4px;
}

.brand-tile {
  width:30px;
  height:30px;
}

.library-nav {
  overflow:auto;
}

.side-link {
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  text-align:start;
  border-radius:6px;
  padding:5px 8px;
  font-size:12px;
  min-height:32px;
  white-space:nowrap;
}

.side-link i,.side-link>span:first-child {
  display:inline-flex;
  color:var(--muted);
}

.side-link.selected {
  background:var(--focus);
  font-weight:700;
}

.side-link.selected i {
  color:var(--accent);
}

.side-heading {
  display:block;
  font-size:11px;
  color:var(--muted);
  padding:17px 9px 3px;
}

.foot {
  margin-top:auto;
}

.library-main {
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
}

.library-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:15px 24px 0;
}

.searchbox {
  display:flex;
  align-items:center;
  gap:6px;
  padding:1px 9px;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:7px;
  color:var(--muted);
}

.searchbox:focus-within {
  box-shadow:0 0 0 2px var(--focus);
}

.searchbox input {
  outline:none;
  border:0;
  background:none;
  width:100%;
  min-width:0;
  height:29px;
  font-size:12px;
}

.searchbox input:focus-visible {
  outline:none;
}

.library-tools .searchbox {
  max-width:192px;
}

.segmented {
  display:flex;
  direction:rtl;
  align-items:center;
  background:var(--surface);
  border-radius:6px;
  padding:2px;
}

.segmented .icon-btn {
  width:27px;
  height:22px;
}

.segmented svg {
  width:14px;
}

.segmented .on {
  background:var(--paper);
  box-shadow:0 1px 4px #1c142520;
}

.lib-scroll {
  overflow:auto;
  padding:13px 24px 20px;
  flex:1;
}

.library-heading h1 {
  font-size:26px;
  line-height:1.65;
  letter-spacing:-1px;
}

.library-heading p {
  font-size:12px;
  color:var(--muted);
  line-height:1.55;
}

.lib-section {
  margin-top:15px;
}

.lib-section h3 {
  font-size:13px;
  font-weight:650;
  margin:0 0 7px;
}

.featured-apps {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}

.feature-card {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  grid-template-columns:50px minmax(0,1fr);
  grid-template-rows:1fr 1fr;
  align-items:center;
  column-gap:10px;
  text-align:start;
  min-height:86px;
  border-radius:12px;
  padding:13px 12px;
  background:linear-gradient(120deg,#c1ded6,#e3efea 75%);
  box-shadow:inset 0 0 0 1px #32594712;
  color:#284940;
}

.feature-card:after {
  content:'';
  position:absolute;
  inset:-110px auto auto -102px;
  width:190px;
  height:190px;
  border-radius:50%;
  border:1px solid #ffffff70;
  box-shadow:0 0 0 8px #ffffff19,0 0 0 15px #ffffff26,0 0 0 24px #ffffff20,0 0 0 35px #ffffff16;
  z-index:-1;
}

.feature-card.tone-1 {
  background:linear-gradient(120deg,#d7c7e8,#eee7f6 75%);
  color:#4b3a61;
}

.feature-card:hover {
  filter:brightness(1.025);
}

.feature-card .app-icon {
  grid-row:1/3;
  width:48px;
  height:48px;
  filter:drop-shadow(0 3px 4px #24413325);
}

.feature-card strong {
  align-self:end;
  font-size:14px;
  line-height:1.65;
  position:relative;
  z-index:1;
}

.feature-cat {
  font-size:11px;
  align-self:start;
  opacity:.82;
}

.feature-arrow {
  display:grid;
  place-items:center;
  position:absolute;
  left:8px;
  bottom:7px;
  border-radius:50%;
  width:16px;
  height:16px;
  color:inherit;
  opacity:.7;
}

.catalog-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(73px,1fr));
  gap:4px;
}

.app-tile {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-direction:column;
  gap:6px;
  padding:8px 3px;
  border-radius:9px;
  min-width:0;
}

.app-tile strong {
  font-size:11px;
  font-weight:550;
}

.app-tile:hover,.mini-app:hover,.fav-icon:hover {
  background:var(--hover);
}

.catalog-grid .app-icon {
  width:42px;
  height:42px;
}

.catalog-list .app-tile {
  width:100%;
  flex-direction:row;
  gap:12px;
  padding:7px;
  border-bottom:1px solid var(--line);
  border-radius:4px;
}

.catalog-list .app-icon {
  width:28px;
  height:28px;
}

.catalog-list .app-tile small {
  margin-inline-start:auto;
  color:var(--muted);
}

.window-content:has(.library-shell) {
  container-type:inline-size;
}

@container(max-width:535px) {
  .lib-side {
    width:118px;
    padding-inline:5px;
  }

  .lib-scroll {
    padding-inline:14px;
  }

  .library-tools {
    padding-inline:14px;
  }

  .featured-apps {
    grid-template-columns:1fr;
  }

  .lib-brand {
    padding-inline:2px;
  }

  .feature-card {
    min-height:66px;
  }

  .catalog-grid {
    grid-template-columns:repeat(auto-fill,minmax(62px,1fr));
  }

}

/* Desktop widgets */

.widget {
  position:absolute;
  width:207px;
  border-radius:18px;
  overflow:hidden;
  padding:12px 15px 15px;
  background:color-mix(in srgb,var(--paper) calc(27% + var(--glass)*68%),transparent);
  backdrop-filter:blur(16px) saturate(1.14);
  -webkit-backdrop-filter:blur(16px) saturate(1.14);
  box-shadow:inset 0 0 0 1px var(--edge),0 6px 19px #190f2920;
  line-height:1.55;
}

.widget-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  cursor:grab;
  touch-action:none;
}

.widget-head>span {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:650;
}

.widget-more {
  width:22px;
  height:22px;
  opacity:.5;
}

.widget-more:hover {
  opacity:1;
}

.widget-more svg {
  width:16px;
}

.moving .widget-head {
  cursor:grabbing;
}

.widget-clock {
  direction:rtl;
  color:#fff;
  background:linear-gradient(120deg,rgba(62,53,87,.94),rgba(84,74,110,.89)),linear-gradient(20deg,#332c47,#72638d);
  box-shadow:inset 0 0 0 1px #ffffff38,0 9px 24px #24182a30;
}

.widget-clock:before {
  content:'';
  position:absolute;
  inset:20% -7% -65% -45%;
  pointer-events:none;
  border-radius:50%;
  border:1px solid #ffffff0f;
  transform:rotate(-15deg);
  box-shadow:0 0 0 14px #ffffff05,0 0 0 28px #ffffff05,0 0 0 42px #ffffff05;
}

.clock-line {
  display:flex;
  direction:ltr;
  justify-content:space-between;
  align-items:center;
  padding:9px 0 2px;
}

.clock-digits {
  font-size:40px;
  line-height:1.35;
  font-weight:500;
  letter-spacing:-1.2px;
  font-variant-numeric:tabular-nums;
}

.clock-dial {
  position:relative;
  width:41px;
  height:41px;
  border-radius:50%;
  background:#ffffff0d;
  border:1px solid #ffffff50;
}

.clock-dial i {
  position:absolute;
  top:2px;
  left:calc(50% - .65px);
  width:1.3px;
  height:3px;
  transform-origin:50% 17.5px;
  transform:rotate(var(--angle));
  background:#e1dcebbb;
}

.clock-dial b,.clock-dial em {
  position:absolute;
  bottom:50%;
  left:calc(50% - 1px);
  width:2px;
  height:10px;
  background:#fff;
  border-radius:2px;
  transform-origin:bottom;
}

.clock-dial em {
  height:15px;
  width:1.7px;
  background:#f1bb8b;
}

.clock-dial s {
  position:absolute;
  left:calc(50% - 2px);
  top:calc(50% - 2px);
  width:4px;
  height:4px;
  background:#fff;
  border-radius:50%;
}

.clock-date {
  font-size:12px;
  color:#e8e4f1;
  margin-top:6px;
}

.widget-calendar .widget-head>span {
  color:var(--muted);
}

.calendar-head {
  display:flex;
  align-items:center;
  margin:7px 0 6px;
}

.calendar-head strong {
  font-size:15px;
  margin-inline-end:auto;
}

.calendar-head .icon-btn {
  height:18px;
  width:18px;
}

.calendar-head svg {
  width:13px;
}

.calendar-grid {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  place-items:center;
  row-gap:2px;
  line-height:20px;
  text-align:center;
  font-variant-numeric:tabular-nums;
}

.calendar-grid b,.calendar-grid span {
  font-size:11px;
  width:21px;
  height:20px;
}

.calendar-grid .weekday {
  font-weight:400;
  color:var(--muted);
}

.calendar-grid .today {
  background:var(--accent);
  color:#fff;
  border-radius:50%;
}

.widget[data-size=small] {
  width:169px;
  padding:9px 11px;
}

.widget[data-size=large] {
  width:251px;
  padding:16px 19px;
}

.widget[data-size=small] .clock-digits {
  font-size:31px;
}

.widget[data-size=large] .clock-digits {
  font-size:49px;
}

.widget[data-size=large] .calendar-grid {
  row-gap:6px;
}

.widget[data-size=small] .calendar-grid {
  row-gap:0;
}

.widget-note {
  background:color-mix(in srgb,var(--paper) 83%,#efcb83);
}

.note-field,.task-form input {
  width:100%;
  min-width:0;
  border:0;
  background:transparent;
  outline:none;
  font-size:13px;
}

.note-field {
  resize:none;
  height:85px;
  margin-top:8px;
  line-height:1.8;
}

.widget[data-size=large] .note-field {
  height:140px;
}

.widget[data-size=small] .note-field {
  height:58px;
}

.task-form,.task-row,.task-row label,.mini-app {
  display:flex;
  align-items:center;
  gap:5px;
}

.task-form {
  border-bottom:1px solid var(--line);
  margin:6px 0;
}

.task-list {
  max-height:120px;
  overflow:auto;
}

.task-row {
  justify-content:space-between;
  font-size:12px;
}

.task-row label {
  overflow-wrap:anywhere;
}

.task-row label:has(:checked) {
  text-decoration:line-through;
  color:var(--muted);
}

.task-row .icon-btn {
  flex-shrink:0;
  height:20px;
  width:20px;
}

.task-row svg {
  width:12px;
}

.mini-app {
  width:100%;
  font-size:12px;
  padding:5px;
  border-radius:5px;
}

.fav-icon {
  display:inline-flex;
  padding:4px;
  border-radius:5px;
}

.fav-icon .app-icon {
  width:32px;
  height:32px;
}

.widget-favorites .widget-body,.widget-recent .widget-body {
  margin-top:9px;
}

/* Galleries, preferences and panels */

.gallery-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:11px;
}

.widget-choice {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:start;
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
}

.widget-choice[aria-pressed=true] {
  box-shadow:inset 0 0 0 1.5px var(--accent);
}

.widget-choice strong {
  font-size:14px;
}

.widget-choice small {
  font-size:11px;
  color:var(--muted);
}

.choice-symbol {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:39px;
  height:39px;
  border-radius:10px;
  background:var(--focus);
  color:var(--accent);
  margin-bottom:8px;
}

.wall-preview {
  height:124px;
  border-radius:11px;
  background-position:center;
  background-repeat:no-repeat;
  background-color:var(--surface);
  margin:13px 0;
  position:relative;
  overflow:hidden;
}

.wall-preview strong {
  position:absolute;
  inset:auto 0 0;
  padding:18px 12px 6px;
  color:white;
  background:linear-gradient(transparent,#23173177);
  font-size:13px;
}

.wall-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(105px,1fr));
  gap:9px;
}

.wall-choice {
  min-width:0;
  text-align:start;
  padding:3px;
  border-radius:8px;
}

.wall-choice[aria-pressed=true] {
  box-shadow:0 0 0 2px var(--accent);
}

.wall-choice i {
  display:block;
  height:50px;
  border-radius:5px;
  background-position:center;
  background-size:cover;
}

.wall-choice span {
  font-size:11px;
  padding-inline:2px;
}

.wall-actions {
  margin:16px 0 0;
}

.settings-nav {
  width:135px;
  gap:3px;
}

.settings-page {
  flex:1;
  min-width:0;
}

.settings-page h1 {
  margin-bottom:13px;
}

.pref-row {
  justify-content:space-between;
  min-height:43px;
  padding:7px 0;
  border-bottom:1px solid var(--line);
  font-size:13px;
}

.pref-row select {
  max-width:52%;
  padding:3px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:5px;
}

.pref-row input[type=color] {
  width:40px;
  height:28px;
  border:0;
  background:none;
}

.pref-row input[type=range] {
  width:32%;
  max-width:140px;
  accent-color:var(--accent);
  direction:ltr;
}

.pref-row output {
  width:24px;
  text-align:end;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}

.slider-row>span {
  flex:1;
}

.toggle {
  appearance:none!important;
  width:34px;
  height:20px;
  background:#a39ba4;
  border-radius:20px;
  position:relative;
  cursor:pointer;
  flex-shrink:0;
  transition:background var(--fast);
}

.toggle:after {
  content:'';
  position:absolute;
  width:16px;
  height:16px;
  left:2px;
  top:2px;
  border-radius:50%;
  background:white;
  box-shadow:0 1px 3px #1113;
  transition:transform var(--fast);
}

.toggle:checked {
  background:var(--accent);
}

.toggle:checked:after {
  transform:translateX(14px);
}

.settings-page>.secondary {
  margin:12px 0 0 7px;
}

.control h2,.notices h2 {
  font-size:16px;
}

.control-theme {
  display:flex;
  gap:9px;
  align-items:center;
  font-size:14px;
  border-radius:9px;
  background:var(--focus);
  width:100%;
  padding:8px 10px;
  margin:9px 0;
}

.control>.secondary {
  margin-top:12px;
  width:100%;
}

.notice-empty {
  display:grid;
  justify-items:center;
  gap:8px;
  padding:25px;
  color:var(--muted);
}

.notice-row,.win-row,.win-link {
  display:flex;
  align-items:center;
  gap:10px;
}

.notice-row,.win-row {
  border-bottom:1px solid var(--line);
  padding:9px 2px;
  justify-content:space-between;
}

.notice-row p,.notice-row small {
  color:var(--muted);
  font-size:12px;
}

.win-link {
  flex:1;
  text-align:start;
  font-size:13px;
}

.spotlight {
  width:min(550px,80vw);
  padding:0!important;
  align-self:start;
  margin-top:17vh;
}

.spot-input {
  border:0;
  border-radius:0;
  padding:12px 16px;
  border-bottom:1px solid var(--line);
  background:transparent;
}

.spot-input input {
  font-size:18px;
  height:35px;
}

.spot-input>svg {
  width:22px;
  height:22px;
}

.spot-input kbd {
  border:1px solid var(--line);
  padding:2px 5px;
  border-radius:4px;
}

.spot-results {
  padding:7px;
  max-height:44vh;
  overflow:auto;
}

.spot-app {
  display:flex;
  position:relative;
  width:100%;
  align-items:center;
  text-align:start;
  gap:10px;
  padding:7px 48px 7px 10px;
  border-radius:6px;
  min-height:41px;
}

.spot-app.chosen,.spot-app:focus-visible {
  background:var(--focus);
}

.spot-app .small-icon {
  position:absolute;
  right:9px;
  width:27px;
  height:27px;
}

.spot-app span {
  color:var(--muted);
  margin-inline-start:auto;
  font-size:11px;
}

.launcher {
  width:min(880px,82vw);
  color:white;
  max-height:85vh;
  padding:18px 34px 26px;
}

.launch-head,.launch-bar,.launch-chips,.folder-form {
  display:flex;
  align-items:center;
  gap:10px;
}

.launch-head {
  justify-content:space-between;
}

.launch-head h1 {
  font-size:30px;
}

.launch-head .icon-btn:hover {
  background:#ffffff22;
}

.launcher>.searchbox {
  width:260px;
  margin:13px 0 14px;
  background:#ffffff19;
  border-color:#ffffff40;
  color:white;
}

.launcher input::placeholder {
  color:#efecf5;
}

.launch-chips {
  margin-bottom:17px;
  flex-wrap:wrap;
}

.chip,.launch-action,.drop-target {
  padding:4px 13px;
  border-radius:20px;
  background:#ffffff12;
  color:white;
  font-size:12px;
}

.chip.chosen,.launch-action {
  background:#ffffff30;
}

.launch-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
  gap:9px;
  min-height:180px;
  align-content:start;
}

.launch-app {
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:6px;
  padding:12px 3px;
  color:white;
  border-radius:12px;
}

.launch-app:hover {
  background:#ffffff16;
}

.launch-app strong {
  font-size:13px;
  font-weight:550;
  text-shadow:0 1px 4px #221a32;
}

.launch-app .app-icon,.folder-art {
  width:62px;
  height:62px;
}

.folder-art {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  align-content:start;
  place-items:center;
  border-radius:16px;
  background:#ffffff45;
  padding:7px;
  gap:3px;
}

.folder-art .app-icon {
  width:22px;
  height:22px;
}

.folder-art>svg {
  grid-column:span 2;
  margin-top:7px;
}

.launch-empty {
  grid-column:1/-1;
  text-align:center;
  margin:25px;
}

.launch-bar {
  border-top:1px solid #ffffff35;
  padding-top:13px;
  justify-content:space-between;
}

.drop-target {
  background:none;
  border:1px dashed #ffffff65;
}

.folder-form input {
  color:var(--ink);
  background:var(--paper);
  border-radius:6px;
  border:0;
  padding:3px 8px;
}

.folder-form input::placeholder {
  color:var(--muted);
}

.switcher {
  width:min(650px,78vw);
}

.switch-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:9px;
  margin-top:12px;
}

.switch-item {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  background:var(--surface);
  padding:12px;
  border-radius:9px;
}

.switch-preview {
  display:grid;
  place-items:center;
  width:100%;
  height:60px;
  background:var(--focus);
  border-radius:6px;
}

.switch-preview .app-icon {
  width:36px;
  height:36px;
}

.switch-item small {
  color:var(--muted);
}

.switch-item strong {
  font-size:13px;
}

.account-settings-frame{width:100%;height:max(350px,65vh);border:0}.widget-app{font:inherit;text-align:start;white-space:pre-line;border:none;color:inherit;background:transparent;cursor:pointer;width:100%}.dock-item img{object-fit:contain}
