:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans KR",
    sans-serif;
  color: #263347;
  font-synthesis: none;
  --muted: #7a8799;
  --border: rgba(255, 255, 255, 0.76);
  --blue: #596ddd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #dbe5ed;
  font-size: 14px;
}
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 12% 10%, #f0e9ec 0, transparent 42%),
    radial-gradient(ellipse at 92% 15%, #ccdcf0 0, transparent 48%),
    radial-gradient(ellipse at 20% 95%, #adc3ca 0, transparent 40%),
    linear-gradient(125deg, #e6e8ec, #c9d9e9 55%, #b8c7df);
}
.ambient:after {
  content: "";
  position: absolute;
  inset: 40% -15% -60%;
  border-radius: 50%;
  background: linear-gradient(120deg, #ffffff45, #8aa5b12b);
  transform: rotate(-20deg);
  box-shadow: 0 -2px 30px #ffffff40;
}
.menubar {
  height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  font-size: 12px;
  background: #fff3;
  border-bottom: 1px solid #fff4;
}
.menubar > div {
  display: flex;
  gap: 22px;
  align-items: center;
}
.brand-mark {
  font-size: 23px;
}
.menu-label,
.private-label {
  color: #53627a;
}
.glass {
  background: linear-gradient(125deg, #ffffffb5, #ffffff70);
  backdrop-filter: blur(35px) saturate(140%);
  -webkit-backdrop-filter: blur(35px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow:
    0 25px 70px #3e557a20,
    inset 0 1px 0 #fff9;
}
.window {
  width: min(1380px, calc(100% - 100px));
  margin: 38px auto 115px;
  min-height: 740px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 226px 1fr;
  overflow: hidden;
}
aside {
  padding: 24px 20px 18px;
  background: #f5f8ff30;
  border-right: 1px solid #fff8;
  display: flex;
  flex-direction: column;
}
.traffic {
  display: flex;
  gap: 8px;
  margin: 0 0 35px 2px;
}
.traffic i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fa7973;
  box-shadow: inset 0 0 0 1px #0001;
}
.traffic i:nth-child(2) {
  background: #f6ca62;
}
.traffic i:nth-child(3) {
  background: #70c790;
}
.workspace-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  letter-spacing: -0.6px;
}
.workspace-brand span:not(.logo) {
  display: block;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-top: 6px;
}
.logo {
  display: grid;
  place-items: center;
  background: #fff8;
  width: 43px;
  height: 43px;
  border: 1px solid white;
  border-radius: 14px;
  font-size: 29px;
  color: #596a9e;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #8b97a8;
  margin: 40px 12px 15px;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  color: inherit;
}
nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 11px;
  background: transparent;
  color: #657187;
  text-align: left;
  margin-bottom: 5px;
}
nav button.active {
  background: #ffffffa8;
  color: #455aaf;
  box-shadow: 0 3px 12px #506a8b0b;
  font-weight: 600;
}
nav button:hover {
  background: #fff8;
}
nav .nav-icon {
  font-size: 19px;
  width: 22px;
  text-align: center;
}
.sidebar-note {
  margin-top: auto;
  padding: 60px 12px 28px;
}
.sidebar-note > span {
  font-size: 27px;
  color: #8c9ba9;
}
.sidebar-note strong {
  display: block;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 12px;
  font-weight: 500;
}
.sidebar-note p {
  font-size: 11px;
  color: var(--muted);
}
.profile {
  border-top: 1px solid #fff9;
  padding: 20px 0 0;
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  text-align: left;
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #d9e1ed;
  border: 2px solid #fff9;
  border-radius: 50%;
  color: #647492;
  font-weight: 700;
}
.profile strong {
  font-size: 12px;
}
.profile small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.logout {
  margin-left: auto;
  color: #8b98a9;
}
main {
  min-width: 0;
  background: #f9fbff35;
}
.toolbar {
  height: 66px;
  padding: 0 32px;
  border-bottom: 1px solid #fff7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.toolbar b {
  font-weight: 400;
  margin: 0 12px;
  color: #a5afbc;
}
.toolbar > div {
  display: flex;
  gap: 16px;
  align-items: center;
}
.saved {
  font-size: 10px;
  color: #698d86;
}
.icon-button {
  background: transparent;
  font-size: 23px;
  padding: 3px 9px;
  border-radius: 8px;
}
.icon-button:hover {
  background: #fff8;
}
.content {
  padding: 36px 38px 20px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #8793a5;
  font-weight: 600;
  margin: 0 0 12px;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 0 0 12px;
}
.page-heading p:last-child {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.primary {
  background: linear-gradient(#7485e6, #596cd5);
  color: white;
  border: 1px solid #596ad1;
  border-radius: 10px;
  padding: 11px 16px;
  box-shadow:
    0 4px 10px #5e71d126,
    inset 0 1px 0 #ffffff40;
  font-size: 12px;
  white-space: nowrap;
}
.primary:hover {
  filter: brightness(1.06);
}
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 17px;
  background: linear-gradient(115deg, #fafbffd9, #e2e8fa95 65%, #d1ddf799);
  padding: 29px 30px;
  min-height: 155px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.hero h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.6px;
  line-height: 1.55;
  margin: 0 0 10px;
}
.hero p {
  font-size: 11px;
  color: #8390a5;
  line-height: 1.8;
  margin: 0;
}
.hero-art {
  width: 140px;
  height: 112px;
  position: relative;
  flex-shrink: 0;
}
.orb {
  position: absolute;
  width: 90px;
  height: 90px;
  top: 8px;
  left: 15px;
  border-radius: 25px;
  transform: rotate(-18deg);
  background: linear-gradient(140deg, #ffffffc7, #8fa8e266);
  border: 1px solid #fff;
  box-shadow:
    8px 12px 28px #5368bd20,
    inset 2px 2px 9px white;
  display: grid;
  place-items: center;
  color: #6e82c5;
  font-size: 44px;
}
.orb.small {
  width: 51px;
  height: 51px;
  left: 80px;
  top: 57px;
  transform: rotate(14deg);
  border-radius: 17px;
  background: linear-gradient(140deg, #fff9, #9fcbda77);
  font-size: 23px;
  color: #6a9b9d;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 14px;
}
.section-title h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.section-title span,
.section-title button {
  font-size: 10px;
  color: var(--muted);
  background: none;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.app-card {
  background: #ffffff85;
  border: 1px solid #ffffffd9;
  border-radius: 15px;
  padding: 20px;
  text-align: left;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
  min-height: 142px;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px #687da01a;
}
.app-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 23px;
  color: white;
  box-shadow:
    inset 0 1px 1px #fff9,
    0 5px 10px #0000000a;
  background: linear-gradient(145deg, #7da8f1, #6582d7);
}
.notes .app-icon {
  background: linear-gradient(145deg, #f0d99a, #dcb86c);
}
.links .app-icon {
  background: linear-gradient(145deg, #aa9bdc, #8e81c9);
}
.app-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 7px;
}
.app-card p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}
.card-arrow {
  position: absolute;
  right: 19px;
  top: 22px;
  color: #a1adbf;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.panel {
  background: #fff6;
  border: 1px solid #fffc;
  border-radius: 14px;
  min-height: 140px;
  padding: 16px;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  color: #8c98a8;
  padding: 25px 10px;
  font-size: 11px;
}
.empty > span {
  font-size: 23px;
  color: #a2aec1;
}
.empty p {
  margin: 0;
  font-size: 10px;
}
.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 3px;
  border-bottom: 1px solid #d5dfec66;
}
.item-row:last-child {
  border: 0;
}
.item-row .item-open {
  background: none;
  text-align: left;
  flex: 1;
  min-width: 0;
  padding: 0;
}
.item-row strong {
  display: block;
  font-weight: 500;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.check {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}
.done strong {
  text-decoration: line-through;
  color: #8b98a9;
}
.item-row a {
  color: #687ac0;
  text-decoration: none;
  padding: 8px;
}
.item-list {
  display: grid;
  gap: 12px;
}
.note-card {
  background: #fff8;
  border: 1px solid #fff;
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  text-align: left;
}
.note-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
}
.note-card p {
  white-space: pre-wrap;
  color: #788699;
  font-size: 12px;
  line-height: 1.8;
  max-height: 130px;
  overflow: hidden;
}
.note-card small {
  color: #97a2b2;
  font-size: 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #96a2b2;
  font-size: 9px;
  margin-top: 32px;
  padding-top: 17px;
  border-top: 1px solid #fff8;
}
footer span:first-child {
  font-size: 8px;
  letter-spacing: 1.8px;
}
.dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  padding: 10px 13px;
  gap: 10px;
  border-radius: 22px;
}
.dock button {
  position: relative;
  width: 47px;
  height: 47px;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #fff, #e1e8f7);
  box-shadow:
    inset 0 0 0 1px #fff9,
    0 3px 8px #50607a13;
  border-radius: 13px;
  color: #6a7bab;
  font-size: 25px;
}
.dock button.active:after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #687896;
}
.dock button:hover {
  transform: translateY(-4px);
}
.auth {
  width: min(440px, calc(100% - 32px));
  margin: 10vh auto;
  padding: 38px;
  border-radius: 24px;
  text-align: center;
}
.auth-logo {
  font-size: 45px;
  color: #7183ba;
  margin-bottom: 20px;
}
.auth h1 {
  font-size: 25px;
}
.auth > p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.auth form {
  text-align: left;
  margin: 27px 0;
}
.auth .primary {
  width: 100%;
}
.auth small {
  font-size: 10px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 12px;
  color: #6b7890;
  margin-bottom: 16px;
}
input:not([type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cdd7e6;
  border-radius: 9px;
  padding: 12px 13px;
  background: #ffffffa6;
  color: #33425b;
  font: inherit;
  font-size: 13px;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: #7f92d8;
  box-shadow: 0 0 0 3px #7f92d821;
}
textarea {
  resize: vertical;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8e9fed;
  outline-offset: 3px;
}
dialog {
  width: min(520px, calc(100% - 30px));
  border: 1px solid white;
  border-radius: 20px;
  background: #edf2f9;
  padding: 27px;
  color: inherit;
  box-shadow: 0 30px 100px #20375940;
}
dialog::backdrop {
  background: #35476055;
  backdrop-filter: blur(7px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 19px;
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.danger {
  background: transparent;
  color: #bd596a;
  margin-right: auto;
}
#auth-error,
#editor-error {
  color: #b4475b;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: #33435eee;
  color: white;
  border-radius: 12px;
  z-index: 5;
  font-size: 12px;
}
.search-wrap {
  margin-bottom: 22px;
}
.search-wrap input {
  background: #fff8;
}
[hidden] {
  display: none !important;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
@media (min-width: 1500px) {
  .window {
    margin-top: 65px;
    min-height: 780px;
  }
  .content {
    padding: 42px 50px;
  }
}
@media (max-width: 1050px) {
  .window {
    width: calc(100% - 40px);
    grid-template-columns: 190px 1fr;
  }
  .content {
    padding: 28px 24px;
  }
  .saved {
    display: none;
  }
  .app-card {
    padding: 16px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .sidebar-note {
    padding-left: 0;
  }
}
@media (max-width: 720px) {
  .menubar {
    padding: 0 17px;
  }
  .private-label,
  .menu-label {
    display: none;
  }
  .menubar > div {
    gap: 10px;
  }
  .window {
    display: block;
    width: calc(100% - 24px);
    margin: 16px auto 110px;
    min-height: 75vh;
    border-radius: 18px;
  }
  aside {
    display: none;
  }
  .toolbar {
    padding: 0 20px;
    height: 48px;
  }
  .content {
    padding: 24px 18px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 23px;
    line-height: 1.4;
  }
  .page-heading .primary {
    padding: 10px;
    font-size: 11px;
  }
  .page-heading p:last-child {
    font-size: 11px;
    line-height: 1.8;
  }
  .hero {
    padding: 22px 20px;
    min-height: 145px;
  }
  .hero h2 {
    font-size: 17px;
  }
  .hero-art {
    width: 90px;
    transform: scale(0.8);
    transform-origin: left center;
  }
  .apps-grid {
    gap: 8px;
  }
  .app-card {
    padding: 13px 10px;
    min-height: 140px;
  }
  .app-card p {
    font-size: 9px;
    line-height: 1.6;
  }
  .app-card h3 {
    font-size: 12px;
  }
  .card-arrow {
    display: none;
  }
  .lower-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  footer span:last-child {
    display: none;
  }
  .dock {
    bottom: 13px;
  }
  .auth {
    padding: 28px;
    margin-top: 7vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
/* Finder-inspired shell: restrained chrome, translucent materials, familiar app icons. */
:root {
  --blue: #087cf0;
  --muted: #77818e;
  color: #30363e;
}
.ambient {
  background:
    radial-gradient(ellipse at 15% 100%, #263f6866, transparent 60%),
    linear-gradient(155deg, #becddc 0%, #94b4c8 38%, #557e9b 75%, #304763 100%);
}
.ambient:after {
  inset: 34% -35% -100%;
  transform: rotate(-27deg);
  background: linear-gradient(120deg, #bcded955, #45628688);
  box-shadow:
    0 -2px 0 #d9eeed33,
    0 -70px 180px #d6f0e266;
}
.menubar {
  background: #e6eef54f;
  color: #233142;
}
.window {
  background: linear-gradient(130deg, #f7f8fbd9, #f1f4f8c7);
  border-color: #fff9;
  box-shadow:
    0 35px 85px #142d4e4a,
    0 2px 6px #20374c15;
  min-height: 700px;
  grid-template-columns: 210px 1fr;
}
.window aside {
  background: #dce4ee61;
  padding-top: 21px;
}
.traffic {
  margin-bottom: 32px;
}
.workspace-brand {
  font-size: 19px;
}
.logo {
  background: #fff6;
  border-color: #fff7;
  border-radius: 12px;
  width: 37px;
  height: 37px;
  font-size: 25px;
  color: #627488;
}
.workspace-brand span:not(.logo) {
  font-size: 7px;
  letter-spacing: 1.1px;
}
.nav-label {
  letter-spacing: 0;
  font-size: 11px;
  text-transform: none;
  margin: 32px 12px 10px;
  color: #6d7887;
  font-weight: 600;
}
nav button {
  padding: 10px 12px;
  font-size: 12px;
  color: #3e4a5b;
  gap: 10px;
  border-radius: 7px;
}
nav .nav-icon {
  color: #197bd1;
  display: grid;
  place-items: center;
}
nav .nav-icon svg {
  width: 18px;
  height: 18px;
}
nav button.active {
  background: #b8c8da63;
  color: #273e55;
  box-shadow: none;
}
.sidebar-spacer {
  flex: 1;
  min-height: 150px;
}
.toolbar {
  height: 61px;
  background: #f7f9fc55;
  border-bottom: 1px solid #b7c4d533;
  color: #627082;
}
.toolbar #breadcrumb {
  font-weight: 600;
  font-size: 12px;
}
.content {
  padding-top: 30px;
}
.page-heading {
  margin-bottom: 28px;
}
h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 400;
}
.primary {
  background: linear-gradient(#2393ff, #087bea);
  border-color: #0874df;
  border-radius: 7px;
  box-shadow:
    0 1px 2px #00000012,
    inset 0 1px 0 #ffffff33;
  font-size: 12px;
  padding: 8px 13px;
}
.section-title {
  margin-top: 22px;
}
.section-title h2 {
  font-size: 12px;
  color: #5e6b7b;
}
.apps-grid {
  gap: 14px;
  margin-bottom: 30px;
  padding: 8px 0 24px;
  border-bottom: 1px solid #bfcad64d;
  grid-template-columns: repeat(3, minmax(0, 180px));
}
.app-card {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 158px;
  text-align: center;
  padding: 18px 12px 14px;
}
.app-card:hover {
  background: #ffffff59;
  transform: none;
  box-shadow: none;
  border-color: #ffffff88;
}
.app-card .app-icon {
  margin: 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 15px;
  background: linear-gradient(#fdfefe, #dceaf5);
  color: #288ce3;
  border: 1px solid #ffffffbd;
  box-shadow:
    0 5px 9px #2a4c7117,
    inset 0 0 0 1px #fff6;
}
.app-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.6;
}
.app-card.notes .app-icon {
  background: linear-gradient(#ffdc68 0 28%, #fffef7 28%);
  color: #bba666;
}
.app-card.links .app-icon {
  background: linear-gradient(#64c0f5, #0772d7);
  color: white;
}
.app-card h3 {
  margin: 13px 0 5px;
  font-size: 12px;
}
.app-card p {
  font-size: 10px;
}
.card-arrow {
  display: none;
}
.lower-grid {
  gap: 24px;
}
.panel {
  border: 1px solid #bdcbd65c;
  background: #ffffff50;
  border-radius: 10px;
  min-height: 170px;
}
.item-row {
  border-bottom-color: #b8c7d533;
}
.dock {
  background: linear-gradient(130deg, #eaf2fac2, #eaf2fa78);
  border-color: #e7f1ffbd;
  box-shadow:
    0 14px 35px #0b294c40,
    inset 0 0 0 1px #fff3;
  gap: 12px;
  padding: 11px 14px;
}
.dock button {
  border-radius: 12px;
  width: 46px;
  height: 46px;
  background: linear-gradient(#fdfefe, #dceaf5);
  color: #2286d5;
}
.dock .dock-home {
  background: linear-gradient(90deg, #8bccf4 50%, #dfedfa 50%);
  color: #24567b;
}
.dock .dock-notes {
  background: linear-gradient(#ffdb62 0 28%, #fffef7 28%);
  color: #b29c5a;
}
.dock .dock-links {
  background: linear-gradient(#64c0f5, #0772d7);
  color: white;
}
.dock button svg {
  width: 28px;
  height: 28px;
}
.dock #mobile-logout {
  width: 34px;
  background: transparent;
  box-shadow: none;
  border-left: 1px solid #7993aa44;
  border-radius: 0;
  color: #55728a;
  font-size: 22px;
}
.dock button.active:after {
  background: #2e485d;
}
.auth {
  background: linear-gradient(135deg, #f4f7fbd9, #e3edf7b8);
}
.auth-logo {
  color: #56748c;
}
.auth form {
  text-align: left;
}
.note-card {
  border-color: #c5d0de70;
  background: #ffffff70;
}
footer {
  margin-top: 45px;
  border-top-color: #b8c7d533;
}
.saved {
  color: #638577;
}
@media (max-width: 1050px) {
  .window {
    grid-template-columns: 185px 1fr;
  }
}
@media (max-width: 720px) {
  .window {
    display: block;
  }
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .app-card {
    padding: 15px 5px;
    min-height: 140px;
  }
  .app-card .app-icon {
    width: 54px;
    height: 54px;
    border-radius: 13px;
  }
  .app-icon svg {
    width: 30px;
    height: 30px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .panel {
    min-height: 130px;
  }
  .lower-grid {
    gap: 0;
  }
}

/* Desktop window manager */
.spaces {
  position: fixed;
  z-index: 10;
  top: 49px;
  right: 20px;
  left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  background: #e9f2fb85;
  border: 1px solid #ffffff88;
  border-radius: 12px;
  backdrop-filter: blur(24px);
  max-width: calc(100% - 40px);
}
#space-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  min-width: 0;
}
.spaces button {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  white-space: nowrap;
  font-size: 11px;
  color: #40586d;
}
.spaces button[aria-pressed="true"] {
  background: #fff9;
  box-shadow: 0 1px 4px #1d38571a;
  color: #203e5d;
  font-weight: 600;
}
.spaces button:hover {
  background: #fff6;
}
.spaces > button {
  padding: 6px 10px;
  font-size: 18px;
}
.space-help {
  font-size: 12px;
  line-height: 1.8;
  color: #6b7890;
}
.space-setting {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.space-setting label {
  flex: 1;
  margin: 0;
}
.space-setting input {
  margin-top: 5px;
}
.space-setting .danger {
  margin: 18px 0 0;
  padding: 10px;
}
#desktop-empty {
  position: fixed;
  inset: 110px 0 100px;
  display: grid;
  place-items: center;
}
#restore-window {
  border-radius: 20px;
  padding: 25px 35px;
  font-size: 42px;
  color: #405f7b;
}
#restore-window span {
  display: block;
  font-size: 13px;
  margin-top: 12px;
}
.traffic button {
  width: 13px;
  height: 13px;
  padding: 0;
  border-radius: 50%;
  background: #fa7973;
  box-shadow: inset 0 0 0 1px #0001;
  font-size: 11px;
  line-height: 13px;
  color: transparent;
}
.traffic button:nth-child(2) {
  background: #f6ca62;
}
.traffic button:nth-child(3) {
  background: #70c790;
}
.traffic:hover button,
.traffic button:focus-visible {
  color: #354050;
}
.window .toolbar {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.window-gesture,
.window-gesture * {
  user-select: none !important;
}
.window-gesture .toolbar {
  cursor: grabbing;
}
.resize-handle {
  position: absolute;
  z-index: 4;
  touch-action: none;
}
.resize-n,
.resize-s {
  height: 8px;
  left: 16px;
  right: 16px;
  cursor: ns-resize;
}
.resize-n {
  top: 0;
}
.resize-s {
  bottom: 0;
}
.resize-e,
.resize-w {
  width: 8px;
  top: 16px;
  bottom: 16px;
  cursor: ew-resize;
}
.resize-e {
  right: 0;
}
.resize-w {
  left: 0;
}
.resize-ne,
.resize-nw,
.resize-se,
.resize-sw {
  width: 18px;
  height: 18px;
}
.resize-ne {
  right: 0;
  top: 0;
  cursor: nesw-resize;
}
.resize-nw {
  left: 0;
  top: 0;
  cursor: nwse-resize;
}
.resize-se {
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}
.resize-sw {
  left: 0;
  bottom: 0;
  cursor: nesw-resize;
}
.resize-se:after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #8096ad66;
  border-bottom: 2px solid #8096ad66;
}
@media (min-width: 721px) {
  body.desktop-session {
    overflow: hidden;
    height: 100dvh;
    min-height: 0;
  }
  .desktop-session .window {
    position: fixed;
    margin: 0;
    min-height: 0;
    min-width: 0;
    max-width: none;
    grid-template-columns: 185px 1fr;
    border-radius: 15px;
  }
  .desktop-session .window main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
  }
  .desktop-session .toolbar {
    flex-shrink: 0;
    height: 60px;
    padding: 0 24px;
  }
  .desktop-session .content {
    overflow: auto;
    min-height: 0;
    flex: 1;
    padding: 25px 28px;
    overscroll-behavior: contain;
  }
  .desktop-session .window aside {
    min-height: 0;
    padding: 20px 17px 15px;
    overflow: auto;
  }
  .desktop-session .sidebar-spacer {
    min-height: 10px;
  }
  .desktop-session .traffic {
    margin-bottom: 25px;
  }
  .desktop-session .workspace-brand {
    font-size: 17px;
  }
  .desktop-session .workspace-brand span:not(.logo) {
    font-size: 6px;
  }
  .desktop-session .lower-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  }
  .desktop-session .apps-grid {
    grid-template-columns: repeat(3, minmax(0, 150px));
  }
  .desktop-session .dock {
    z-index: 12;
  }
  .desktop-session .window.maximized {
    border-radius: 12px;
  }
}
@media (max-width: 720px) {
  .spaces {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 10px 12px 10px auto;
    right: auto;
    width: max-content;
    max-width: calc(100% - 20px);
  }
  .spaces button {
    padding: 7px 9px;
    font-size: 10px;
  }
  .spaces > button {
    font-size: 17px;
  }
  .resize-handle {
    display: none;
  }
  .window .toolbar {
    cursor: default;
    touch-action: auto;
  }
  .desktop-session .window {
    margin-top: 12px;
  }
}
#context-menu {
  position: fixed;
  z-index: 100;
  margin: 0;
  padding: 5px;
  min-width: 205px;
  max-width: calc(100vw - 12px);
  max-height: calc(100dvh - 12px);
  overflow: auto;
  background: #f2f6faed;
  border: 1px solid #ffffffb3;
  border-radius: 9px;
  box-shadow:
    0 10px 35px #162e4840,
    0 0 0 1px #536d8526;
  backdrop-filter: blur(24px);
  color: #283b4e;
}
#context-menu button {
  display: block;
  width: 100%;
  background: transparent;
  border-radius: 5px;
  padding: 7px 12px;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
#context-menu button:hover:not(:disabled),
#context-menu button:focus-visible {
  background: #1782ed;
  color: white;
  outline: none;
}
#context-menu button:disabled {
  opacity: 0.4;
  cursor: default;
}
#context-menu .context-danger {
  color: #b84d59;
}
.context-separator {
  height: 1px;
  margin: 4px 8px;
  background: #8195a533;
}

/* File library */
.app-card.library .app-icon,
.dock .dock-library {
  background: linear-gradient(#71cbf2, #329cd4);
  color: #f8fdff;
}
.library-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.library-actions button {
  background: #fff9;
  border: 1px solid #c5d1df;
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 11px;
}
.library-actions button:hover {
  background: #fff;
}
.library-path {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  color: #92a0b1;
}
.library-path button {
  background: transparent;
  color: #4f6d8c;
  padding: 5px;
  font-size: 12px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.library-path button:last-child {
  color: #283e57;
  font-weight: 600;
}
.library-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 22px 12px;
  background: #f3f9ff55;
  border: 1px dashed #99b5ce;
  border-radius: 11px;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.library-drop strong {
  font-size: 12px;
  font-weight: 500;
}
.library-drop > span:last-child {
  font-size: 10px;
  color: #778fa5;
}
.library-drop .drop-icon {
  font-size: 24px;
  color: #6492b8;
}
.library-drop.drag-over {
  background: #d6eaff;
  border: 2px solid #2c8fe7;
}
.library-table {
  border: 1px solid #c0cedc80;
  border-radius: 10px;
  overflow: hidden;
  background: #fff6;
}
.library-row,
.library-table-head {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 80px 105px 64px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.library-table-head {
  font-size: 10px;
  color: #778597;
  background: #e0e8f14d;
  border-bottom: 1px solid #c0cedc66;
}
.library-row {
  border-bottom: 1px solid #c0cedc55;
  font-size: 11px;
  min-height: 49px;
}
.library-row:last-child {
  border-bottom: 0;
}
.library-row:hover {
  background: #e0effa77;
}
.library-name {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  min-width: 0;
  background: none;
  padding: 3px 0;
}
.library-name > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-icon {
  font-size: 22px;
  color: #849db2;
}
.file-icon.folder {
  color: #38a2d6;
}
.file-size,
.library-row time {
  font-size: 10px;
  color: #778597;
}
.file-actions {
  display: flex;
  gap: 4px;
}
.file-actions button {
  border-radius: 5px;
  background: none;
  font-size: 18px;
  padding: 2px 6px;
  color: #6284a3;
}
.file-actions button:hover {
  background: #fff9;
}
.library-summary {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8092a5;
  margin-top: 12px;
  gap: 10px;
}
#library-error,
#folder-error {
  color: #b4475b;
  font-size: 12px;
}
#library-transfers {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 20;
  width: 350px;
  max-width: calc(100vw - 24px);
  border-radius: 13px;
  overflow: hidden;
  background: #edf5fcf2;
}
.transfer-heading {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #c3d0dd80;
}
.transfer-heading strong {
  font-size: 12px;
  margin-right: auto;
}
.transfer-heading button {
  font-size: 11px;
  padding: 4px;
  background: transparent;
  color: #507296;
}
#transfer-list {
  max-height: 220px;
  overflow: auto;
  padding: 6px 12px;
}
.transfer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  font-size: 11px;
  padding: 8px 0;
}
.transfer-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.transfer-row small {
  font-size: 10px;
  color: #69839a;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.transfer-row progress {
  grid-column: 1/-1;
  width: 100%;
  height: 4px;
  accent-color: #258de8;
}
@media (min-width: 721px) {
  .desktop-session .apps-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 150px));
  }
}
@media (max-width: 720px) {
  .library-row,
  .library-table-head {
    grid-template-columns: minmax(100px, 1fr) 62px 54px;
    gap: 5px;
    padding: 9px;
  }
  .library-row time,
  .library-table-head > span:nth-child(3) {
    display: none;
  }
  .library-summary span {
    display: none;
  }
  .library-actions button {
    padding: 8px;
    font-size: 10px;
  }
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #library-transfers {
    right: 12px;
    bottom: 90px;
  }
}
@media (max-width: 400px) {
  .dock {
    gap: 8px;
    padding: 10px;
  }
  .dock button {
    width: 40px;
    height: 40px;
  }
  .dock #mobile-logout {
    width: 26px;
  }
}

.window-animating {
  will-change: transform, opacity;
}
.window-animating .resize-handle {
  pointer-events: none;
}

/* A droplet sends three light, concentric waves across the glass desktop. */
.water-ripple {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 15;
  contain: strict;
}
.water-ripple i {
  position: absolute;
  left: var(--ripple-x);
  top: var(--ripple-y);
  width: var(--ripple-size);
  height: var(--ripple-size);
  border-radius: 50%;
  border: 2px solid #e7f8ff9c;
  box-shadow:
    0 0 0 2px #759ab329,
    inset 0 0 15px #e4f7ff33,
    0 0 16px #d3ecff33;
  opacity: 0;
  animation: pond-wave 760ms cubic-bezier(0.16, 0.65, 0.3, 1)
    var(--ripple-delay) both;
}
@keyframes pond-wave {
  0% {
    transform: translate(-50%, -50%) scale(0.015);
    opacity: 0;
  }
  12% {
    opacity: 0.6;
  }
  60% {
    opacity: 0.24;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .water-ripple {
    display: none;
  }
  .water-ripple i {
    animation: none;
  }
}
