@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/schibsted-grotesk-400.woff2?v=437cd97c802be9f10f60b4db8a723261e5c35dfe1529de0562981871028bd670") format("woff2");
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/schibsted-grotesk-500.woff2?v=83c497a1c028bfc2ae231f88c49ec7da542e1e4bbdfe23ad207a6dbb91d4f15d") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #080c12;
  --silver: #dbe5ee;
  --quiet: #8c9dae;
  --hint: #66788a;
  --cyan: #9fd8df;
  --powered-by: #6f8194;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: "Schibsted Grotesk", "Helvetica Neue", system-ui, sans-serif;
  background: var(--ink);
  color: var(--silver);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}

.entrance {
  position: relative;
  min-height: 420px;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(
    ellipse 60% 55% at 50% 44%,
    #0f1b28 0%,
    var(--ink) 70%
  );
}

.orb-position {
  position: absolute;
  left: 50%;
  top: calc(50% - 40px);
  width: 104px;
  height: 104px;
  transform: translate(-50%, -50%);
}

.orb-arrival {
  position: relative;
  width: 100%;
  height: 100%;
  animation: arrive 1200ms var(--ease) both;
}

.orb-halo {
  position: absolute;
  inset: -78px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(159, 216, 223, 0.28) 0%,
    rgba(159, 216, 223, 0) 62%
  );
  filter: blur(18px);
}

.orb {
  display: block;
  position: relative;
  width: 104px;
  height: 104px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(
      circle at 35% 27%,
      rgba(219, 229, 238, 0.58),
      rgba(219, 229, 238, 0) 21%
    ),
    radial-gradient(
      circle at 52% 62%,
      rgba(159, 216, 223, 0.58),
      rgba(159, 216, 223, 0.08) 46%,
      rgba(159, 216, 223, 0) 64%
    ),
    radial-gradient(circle at 40% 32%, #1e3449 0%, #0c1621 58%, #05080c 100%);
  box-shadow:
    inset -8px -10px 24px rgba(0, 0, 0, 0.55),
    inset 6px 8px 18px rgba(159, 216, 223, 0.1),
    0 0 44px rgba(159, 216, 223, 0.14);
  animation: breathe 7s ease-in-out 1200ms infinite;
}

.orb:disabled {
  cursor: default;
}
.orb:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 8px;
}
.orb:active {
  filter: brightness(1.12);
}

.wordmark {
  position: absolute;
  top: calc(50% + 40px);
  left: 0;
  right: 0;
  margin: 0;
  padding-left: 0.46em;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.46em;
  animation: reveal 800ms ease 450ms both;
}

.hint,
.status {
  position: absolute;
  top: calc(50% + 126px);
  left: 24px;
  right: 24px;
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.hint {
  top: calc(50% + 76px);
  color: var(--hint);
}
.status {
  color: var(--quiet);
}

.powered-by {
  position: absolute;
  right: max(40px, env(safe-area-inset-right));
  bottom: max(34px, env(safe-area-inset-bottom));
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.3em;
  color: var(--powered-by);
}

.entrance .powered-by > span {
  opacity: 1;
  transition: opacity 1400ms ease;
}
.entrance .powered-by.rest > span {
  opacity: 0.4;
}
@media (prefers-reduced-motion: reduce) {
  .entrance .powered-by > span {
    opacity: 0.4;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: scale(0.88);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}
@keyframes reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@media (max-width: 600px) {
  .entrance {
    background: radial-gradient(
      ellipse 90% 50% at 50% 44%,
      #0f1b28 0%,
      var(--ink) 70%
    );
  }
  .powered-by {
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .orb {
    border: 2px solid ButtonText;
  }
}

[hidden] {
  display: none !important;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.lens-open .wordmark,
.lens-open .orb-position,
.lens-open .hint,
.lens-open .status {
  visibility: hidden;
}
.lens {
  --lens-size: 400px;
  width: var(--lens-size);
  height: var(--lens-size);
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 40px 44px 46px;
  border-radius: 50%;
  text-align: center;
  color: var(--silver);
  border: 1px solid rgba(219, 229, 238, 0.13);
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(159, 216, 223, 0.1),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(219, 229, 238, 0.09),
      rgba(219, 229, 238, 0.02)
    ),
    rgba(20, 34, 50, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 24px 64px rgba(0, 0, 0, 0.5);
  transition:
    width 240ms var(--ease),
    height 240ms var(--ease),
    padding 240ms var(--ease);
}
.lens[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: lens-arrive 420ms var(--ease) both;
}
.lens[data-size="m"] {
  --lens-size: 470px;
  padding: 40px 56px 46px;
}
.lens[data-size="l"] {
  --lens-size: 600px;
  padding: 40px 92px 44px;
}
.lens-body {
  width: 100%;
  flex-shrink: 0;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lens[data-size="m"] .lens-body {
  max-width: 320px;
}
.lens[data-size="l"] .lens-body {
  max-width: 380px;
}
.lens :focus:not(:focus-visible) {
  outline: none;
}
.lens h2:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 8px;
}
.lens::backdrop {
  background: transparent;
}
.lens-orb {
  position: relative;
  top: auto;
  left: auto;
  flex: none;
  width: 54px;
  height: 54px;
  margin: 0 0 18px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 27%,
      rgba(219, 229, 238, 0.58),
      transparent 21%
    ),
    radial-gradient(
      circle at 52% 62%,
      rgba(159, 216, 223, 0.58),
      rgba(159, 216, 223, 0.08) 46%,
      transparent 64%
    ),
    radial-gradient(circle at 40% 32%, #1e3449 0%, #0c1621 58%, #05080c 100%);
  box-shadow:
    inset -4px -5px 12px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(159, 216, 223, 0.1);
}
.lens[data-size="l"] .lens-orb {
  margin-bottom: 12px;
}
.lens h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.lens p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--quiet);
  max-width: 280px;
}
.lens[data-size="l"] h2 {
  font-size: 23px;
}
.lens[data-size="l"] #lens-message {
  max-width: 360px;
  font-size: 13.5px;
  margin-top: 6px;
}
.lens .lens-small {
  margin-top: 10px;
  font-size: 12px;
  color: var(--hint);
  max-width: 270px;
}
.lens[data-size="m"] .lens-small {
  max-width: 300px;
}
.action {
  display: block;
  width: 280px;
  max-width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  margin: 10px auto 0;
  border-radius: 999px;
  font-size: 15px;
}
.primary {
  border: 0;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 500;
}
.secondary {
  border: 1px solid rgba(219, 229, 238, 0.2);
  background: rgba(8, 12, 18, 0.35);
}
.lens .primary {
  width: 228px;
  min-height: 46px;
  margin-top: 20px;
}
.lens-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin-top: 10px;
}
.lens-links button,
.text-button {
  min-height: 36px;
  background: transparent;
  border: 0;
  padding: 4px;
  color: var(--quiet);
  font-size: 13px;
}
.lens-links button {
  min-height: 40px;
  padding: 4px 6px;
  border-radius: 8px;
}
#help {
  color: var(--cyan);
}
.lens .lens-error {
  min-height: 20px;
  margin: 12px auto 0;
  max-width: 300px;
  color: var(--silver);
}
.lens #lens-status {
  color: var(--silver);
  font-size: 13px;
  margin-top: 12px;
}
.lens-options {
  width: 100%;
  margin-top: 18px;
  display: grid;
}
.lens-option {
  display: grid;
  gap: 2px;
  text-align: left;
  width: 100%;
  padding: 11px 6px;
  background: none;
  border: 0;
  border-top: 1px solid rgba(219, 229, 238, 0.09);
  border-radius: 0;
}
.lens-option:last-child {
  border-bottom: 1px solid rgba(219, 229, 238, 0.09);
}
.lens-option strong {
  color: var(--cyan);
  font-weight: 500;
  font-size: 14px;
}
.lens-option span {
  color: var(--quiet);
  font-size: 12.5px;
}
.lens-option:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lens-option:focus-visible {
  border-radius: 10px;
  outline-offset: 0;
}
.lens-steps {
  list-style: none;
  counter-reset: lens-step;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  text-align: left;
  font-size: 13.5px;
  width: 100%;
}
.lens-steps li {
  counter-increment: lens-step;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}
.lens-steps li::before {
  content: counter(lens-step);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(159, 216, 223, 0.45);
  color: var(--cyan);
  font-size: 11.5px;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.lens-form {
  width: 100%;
  display: grid;
  gap: 9px;
  margin-top: 12px;
  text-align: left;
}
.lens-field {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}
.lens-field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--quiet);
}
.lens-field input,
.lens-field textarea {
  width: 100%;
  min-width: 0;
  background: rgba(8, 12, 18, 0.5);
  border: 1px solid rgba(219, 229, 238, 0.18);
  border-radius: 12px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--silver);
}
.lens-field textarea {
  resize: vertical;
  min-height: 96px;
  max-height: 150px;
  line-height: 1.4;
}
.lens-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lens-field input:focus-visible,
.lens-field textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: transparent;
}
.lens-field [aria-invalid="true"] {
  border-color: var(--silver);
}
.lens-field-error {
  font-size: 12px;
  color: var(--silver);
}
.lens-field-error::before {
  content: "! ";
  color: #c7aa70;
  font-weight: 500;
}
.lens-field-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--hint);
}
#help-counter {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lens-form .primary {
  margin: 6px auto 0;
}
.lens .lens-banner {
  max-width: none;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(219, 229, 238, 0.22);
  background: rgba(8, 12, 18, 0.45);
  border-radius: 12px;
  font-size: 13px;
  color: var(--silver);
  text-align: left;
}
.lens-request {
  margin-top: 16px;
  display: grid;
  gap: 4px;
  justify-items: center;
}
.lens-request small {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hint);
}
.lens-request > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
#request-number {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.lens-orb[data-mood="waiting"],
.lens-orb.sable-orb-rendered[data-mood="waiting"] {
  animation: lens-orb-light 2.6s ease-in-out infinite;
}
.lens-orb[data-mood="ok"] {
  filter: brightness(1.2);
}
@keyframes lens-orb-light {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.35) drop-shadow(0 0 14px rgba(159, 216, 223, 0.35));
  }
}
@keyframes lens-arrive {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.workspace {
  min-height: 100svh;
  padding: 32px 40px 110px;
  background: radial-gradient(ellipse at 50% 20%, #0f1b28, var(--ink) 70%);
}
.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.workspace-brand {
  font-size: 13px;
  letter-spacing: 0.42em;
  font-weight: 500;
}
.workspace-header nav {
  display: flex;
  gap: 20px;
}
.navigation-shell {
  position: fixed;
  z-index: 30;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
}
.navigation-shell.is-open {
  width: 112px;
}
.menu-toggle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(219, 229, 238, 0.16);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: #142232;
  color: var(--quiet);
  opacity: 0;
  pointer-events: none;
}
.menu-toggle:focus-visible {
  opacity: 1;
  pointer-events: auto;
  left: 108px;
}
.home-navigation {
  position: absolute;
  left: 16px;
  top: 96px;
  bottom: 24px;
  width: 84px;
  padding: 16px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(219, 229, 238, 0.1),
      rgba(219, 229, 238, 0.03)
    ),
    rgba(20, 34, 50, 0.58);
  border: 1px solid rgba(219, 229, 238, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 44px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  transform: translateX(-120px);
  visibility: hidden;
  transition:
    transform 420ms var(--ease),
    visibility 420ms;
}
.is-open .home-navigation {
  transform: none;
  visibility: visible;
}
.rail-home,
.rail-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  color: var(--silver);
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
}
.rail-home {
  width: 68px;
  min-height: 58px;
  background: rgba(159, 216, 223, 0.14);
  font-size: 11px;
  font-weight: 500;
}
.rail-pin {
  margin-top: auto;
  width: 44px;
  min-height: 44px;
  background: transparent;
  color: var(--quiet);
}
.rail-pin[aria-pressed="true"] {
  background: rgba(159, 216, 223, 0.14);
  color: var(--cyan);
}
.rail-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(219, 229, 238, 0.2);
  background: #142232;
  color: var(--silver);
  font-size: 15px;
  font-weight: 500;
}
.menu-toggle:hover,
.rail-pin:hover {
  color: var(--cyan);
}
.navigation-shell :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
@media (max-width: 540px) {
  .home-navigation {
    top: 132px;
    bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-navigation,
  .menu-toggle {
    transition: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .home-navigation {
    background: #142232;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.home-capture {
  max-width: 620px;
  margin: 18vh auto 0;
}
.home-capture h1 {
  min-height: 1lh;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.greeting-ready {
  animation: greeting-arrive 650ms ease both;
}
@keyframes greeting-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
:is(#capture-form, [data-note-id="capture-form"]) > label {
  display: block;
  min-height: 30px;
  margin-bottom: 12px;
  color: var(--quiet);
  font-size: 20px;
}
:is(#thought, [data-note-id="thought"]) {
  width: 100%;
  display: block;
  min-height: 180px;
  padding: 18px;
  resize: vertical;
  border: 1px solid #344656;
  border-radius: 16px;
  background: #0e1722;
  color: var(--silver);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
}
:is(#thought, [data-note-id="thought"])::placeholder {
  color: var(--quiet);
  opacity: 1;
}
:is(#thought, [data-note-id="thought"]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.capture-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.note-visibility {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0;
  min-width: 0;
  border: 1px solid #344656;
  border-radius: 28px;
  background: #0e1722;
}
.visibility-option {
  position: relative;
  cursor: pointer;
}
.visibility-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.visibility-option > span:first-of-type {
  display: block;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  color: var(--quiet);
}
.visibility-option input:checked + span {
  background: #263b49;
  color: var(--silver);
}
.visibility-option input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.visibility-help {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 230px;
  max-width: calc(100vw - 64px);
  z-index: 40;
  padding: 10px 12px;
  border: 1px solid #344656;
  border-radius: 10px;
  background: #142232;
  color: var(--silver);
  font-size: 13px;
  line-height: 1.5;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .visibility-option:hover .visibility-help {
    visibility: visible;
    opacity: 1;
    transition:
      visibility 0s 300ms,
      opacity 0s 300ms;
  }
}
.visibility-option input:focus-visible ~ .visibility-help {
  visibility: visible;
  opacity: 1;
}
.visibility-option:last-child .visibility-help {
  left: auto;
  right: 0;
}
.note-visibility:disabled {
  opacity: 0.65;
}
:is(#capture-message, [data-note-id="capture-message"]) {
  margin-top: 18px;
  min-height: 1.5em;
  font-size: 14px;
}
@media (max-width: 540px) {
  .home-capture {
    margin-top: 12vh;
  }
  .visibility-option > span:first-of-type {
    padding: 10px 16px;
  }
}
.workspace .powered-by {
  position: fixed;
}
.account-panel {
  width: min(680px, calc(100vw - 32px));
  max-height: 85svh;
  border: 1px solid rgba(219, 229, 238, 0.15);
  border-radius: 24px;
  background: #0e1722;
  color: var(--silver);
  padding: 28px;
}
.account-panel::backdrop {
  background: rgba(8, 12, 18, 0.7);
}
.account-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.account-panel h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}
.account-panel h3 {
  font-weight: 500;
  font-size: 16px;
  margin-top: 28px;
}
.account-panel p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--quiet);
}
.account-panel form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.account-panel label {
  flex: 1;
  min-width: 160px;
  font-size: 13px;
  color: var(--quiet);
}
.account-panel input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #394a5b;
  border-radius: 10px;
  background: #080c12;
}
.compact {
  width: auto;
  min-height: 44px;
  margin: 0;
}
.access-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.access-pending-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cyan);
  color: #10202b;
  font-size: 11px;
}
.access-pending-count[hidden] {
  display: none;
}
.access-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(219, 229, 238, 0.1);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.access-list .identity {
  flex: 1;
  min-width: 160px;
}
.access-list small {
  display: block;
  color: var(--quiet);
  margin-top: 4px;
}
.notice {
  min-height: 20px;
}
.docked-orb {
  position: fixed;
  width: 54px;
  height: 54px;
  right: 40px;
  bottom: 64px;
  pointer-events: none;
}
@media (max-width: 540px) {
  .workspace {
    padding: 24px 24px 110px;
  }
  .account-panel {
    padding: 20px;
  }
}
@media (max-height: 560px), (max-width: 560px) {
  .lens[open],
  .lens[data-size="l"][open] {
    height: fit-content;
    border-radius: 28px;
    padding: 26px 24px;
    overflow: auto;
    justify-content: flex-start;
  }
  .lens-orb {
    margin-bottom: 14px;
  }
  .lens h2 {
    font-size: 23px;
  }
}
@media (max-height: 700px) {
  .lens[data-size="l"][open] {
    height: fit-content;
    border-radius: 28px;
    padding: 26px 24px;
    overflow: auto;
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  .lens-field-row {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .lens {
    background: #142232;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lens-orb[data-mood="waiting"],
  .lens-orb.sable-orb-rendered[data-mood="waiting"] {
    animation: none;
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(159, 216, 223, 0.2));
  }
}

/* Shared Personal / Team glass control. */
.glass-toggle {
  --segment-x: 0%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 258px;
  width: 258px;
  min-width: 0;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(219, 229, 238, 0.14);
  border-radius: 28px;
  background: #0e1720;
  touch-action: pan-y;
  user-select: none;
}
.glass-toggle > button {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 8px 12px;
  background: none;
  border: 0;
  border-radius: 24px;
  color: var(--quiet);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.glass-toggle > button.is-lit {
  color: var(--silver);
}
.segment-lens {
  position: absolute;
  top: 4px;
  left: 4px;
  bottom: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 24px;
  border: 1px solid rgba(219, 229, 238, 0.28);
  background: linear-gradient(
    165deg,
    rgba(179, 205, 226, 0.25),
    rgba(87, 132, 164, 0.12)
  );
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.16),
    0 2px 5px #0006;
  transform: translateX(var(--segment-x));
  transition:
    transform 480ms cubic-bezier(0.3, 1.04, 0.5, 1),
    scale 180ms ease;
  pointer-events: none;
}
.segment-lens.stretch {
  scale: 1.04 0.98;
}
.is-pressed .segment-lens {
  scale: 1.02 1.04;
  border-color: var(--cyan);
  box-shadow: 0 0 16px #9fd8df25;
}
.is-dragging .segment-lens {
  transition: none;
}
.glass-toggle > button:hover .visibility-help {
  opacity: 1;
  visibility: visible;
  transition-delay: 1000ms;
}
.glass-toggle > button:focus-visible .visibility-help {
  opacity: 1;
  visibility: visible;
  transition-delay: 0ms;
}
@media (prefers-reduced-motion: reduce) {
  /* A stationary hover delay is useful even when all motion is disabled. */
  .glass-toggle > button:hover .visibility-help {
    transition:
      visibility 0s 1000ms,
      opacity 0s 1000ms !important;
  }
  .glass-toggle > button:focus-visible .visibility-help {
    transition: none !important;
  }
}
.glass-toggle > button:focus-visible,
.notes-layout :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.glass-toggle:disabled {
  opacity: 0.6;
}
.rail-home {
  position: relative;
  background: transparent;
  color: var(--quiet);
}
.rail-home[aria-current="page"],
.rail-home:hover {
  background: rgba(159, 216, 223, 0.14);
  color: var(--silver);
}
.unread-badge {
  position: absolute;
  top: -3px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: var(--cyan);
  color: #10202b;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}
.rail-home .unread-badge {
  right: 8px;
  top: 4px;
}
.scope-count {
  font-size: 12px;
  color: var(--quiet);
  margin-left: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.notes-page .workspace {
  height: 100svh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 96px;
}
.notes-layout {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(420px, 40%) minmax(0, 1fr);
  gap: 32px;
  margin: 48px 0 0 116px;
}
.notes-column {
  position: relative;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.notes-column h1 {
  margin: 0 0 20px;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.notes-tools {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) 44px;
  flex: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
:is(#notes-search, [data-note-id="notes-search"]) {
  flex: 1 1 150px;
  min-width: 0;
  height: 48px;
  padding: 12px 18px;
  border-radius: 26px;
  border: 1px solid #dbe5ee26;
  background: #0e1720;
  color: var(--silver);
  font: inherit;
  font-size: 14px;
}
:is(#notes-search, [data-note-id="notes-search"])::placeholder {
  color: var(--quiet);
  opacity: 1;
}
.notes-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 0 5px 4px 0;
}
.notes-list,
.reader-text {
  scrollbar-width: thin;
  scrollbar-color: #dbe5ee29 transparent;
}
.notes-list::-webkit-scrollbar,
.reader-text::-webkit-scrollbar {
  width: 5px;
}
.notes-list::-webkit-scrollbar-thumb,
.reader-text::-webkit-scrollbar-thumb {
  background: #dbe5ee29;
  border-radius: 8px;
}
.note-date-group {
  margin: 18px 0 10px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.note-date-group:first-child {
  margin-top: 0;
}
.note-card {
  display: block;
  text-align: left;
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid #dbe5ee16;
  border-radius: 16px;
  background: #0e1720;
  color: var(--silver);
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  cursor: pointer;
}
.note-card[aria-pressed="true"] {
  background: #132230;
  border-color: #9fd8df80;
}
.note-card:hover {
  border-color: #9fd8df66;
}
.note-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.note-meta {
  display: block;
  color: var(--quiet);
  font-size: 12px;
  margin-top: 8px;
}
.note-author {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--cyan);
}
.note-new {
  color: var(--cyan);
  margin-left: 14px;
}
.note-reader {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border: 1px solid #dbe5ee14;
  border-radius: 24px;
  background: #0e1720;
  padding: 40px;
}
:is(#reader-content, [data-note-id="reader-content"]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.reader-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.reader-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid #dbe5ee33;
  border-radius: 50%;
  background: #142232;
}
.reader-identity {
  font-size: 14px;
}
.reader-identity .note-meta {
  margin-top: 4px;
}
.reader-scope {
  margin-left: auto;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid #dbe5ee29;
  border-radius: 18px;
}
.reader-text {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 32px 0;
  padding-right: 8px;
  font-size: 20px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}
.reader-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #dbe5ee19;
  color: var(--quiet);
  font-size: 13px;
}
.copy-note {
  min-height: 40px;
  padding: 8px 18px;
  background: transparent;
  color: var(--silver);
  border: 1px solid #dbe5ee29;
  border-radius: 24px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.notes-tools .glass-toggle {
  width: 100%;
}
.notes-filter-wrap {
  position: relative;
}
:is(#notes-filter, [data-note-id="notes-filter"]) {
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe5ee26;
  border-radius: 24px;
  background: #0e1720;
  color: var(--quiet);
  cursor: pointer;
}
:is(#notes-filter, [data-note-id="notes-filter"]):disabled {
  opacity: 0.4;
  cursor: default;
}
:is(#notes-filter, [data-note-id="notes-filter"]).is-filtered {
  color: var(--cyan);
  border-color: var(--cyan);
  background: #142232;
}
.author-filters {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 210px;
  padding: 16px;
  border: 1px solid #344656;
  border-radius: 16px;
  background: #142232;
  box-shadow: 0 12px 24px #0005;
}
.author-filters label {
  display: block;
  color: var(--quiet);
  font-size: 13px;
  margin-bottom: 8px;
}
:is(#author-select, [data-note-id="author-select"]) {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #344656;
  border-radius: 10px;
  background: #0e1720;
  color: var(--silver);
  font: inherit;
}
.notes-list,
.reader-text {
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.note-preview {
  min-height: 3.1em;
}
.note-card .note-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reader-header,
.reader-footer,
.notes-column h1 {
  flex: none;
}
@media (min-width: 1100px) {
  body.notes-page {
    overflow: hidden;
  }
  .notes-page .workspace {
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 134px;
  }
  .notes-layout {
    margin-top: clamp(20px, 5vh, 48px);
  }
  .notes-page :is(#page-error, [data-note-id="page-error"]) {
    position: absolute;
    bottom: 12px;
    left: 156px;
    right: 180px;
    margin: 0;
  }
}
:is(#reader-back, [data-note-id="reader-back"]) {
  display: none;
  align-self: start;
  margin-bottom: 16px;
  min-height: 44px;
}
.reader-empty,
.notes-empty {
  color: var(--quiet);
  font-size: 15px;
  line-height: 1.6;
}
:is(#load-more, [data-note-id="load-more"]) {
  min-height: 44px;
  flex: none;
}
@media (max-width: 1099px) {
  .notes-layout {
    display: block;
    margin-left: 80px;
  }
  .notes-column,
  .note-reader {
    height: 100%;
  }
  .note-reader {
    display: none;
  }
  .show-reader .notes-column {
    display: none;
  }
  .show-reader .note-reader {
    display: flex;
  }
  :is(#reader-back, [data-note-id="reader-back"]) {
    display: block;
  }
}
@media (max-width: 600px) {
  .notes-page .workspace {
    padding: 24px 20px 82px;
    min-height: 580px;
  }
  .notes-layout {
    margin: 30px 0 0;
  }
  .notes-column h1 {
    font-size: 28px;
    margin-bottom: 16px;
  }
  .notes-tools {
    gap: 8px;
  }
  .notes-tools {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .notes-tools .glass-toggle {
    grid-column: 1 / -1;
    width: 100%;
  }
  .note-reader {
    padding: 20px;
  }
  .reader-header {
    flex-wrap: wrap;
  }
  .reader-text {
    font-size: 18px;
    margin: 24px 0;
  }
  .notes-page .docked-orb {
    width: 30px;
    height: 30px;
    bottom: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .segment-lens {
    transition: none;
    scale: 1 !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .segment-lens {
    background: #142232;
    box-shadow: none;
  }
}

.glass-toggle > button:last-child .visibility-help {
  left: auto;
  right: 0;
}
.glass-toggle .visibility-help {
  transition:
    visibility 0s,
    opacity 0s;
}

:is(#notes-loading, [data-note-id="notes-loading"]) {
  position: absolute;
  bottom: 8px;
  right: 12px;
  z-index: 2;
  border: 1px solid #344656;
  border-radius: 10px;
  padding: 6px 10px;
  background: #142232;
  margin: 0;
  font-size: 13px;
  color: var(--quiet);
}

/* Canvas replaces only the surface; the original control/focus and CSS fallback remain. */
.orb.sable-orb-rendered,
.lens-orb.sable-orb-rendered,
.sable-sphere.sable-orb-rendered {
  background: transparent;
  box-shadow: none;
  animation: none;
}
.sable-orb-rendered::before,
.sable-orb-rendered .sable-ring,
.orb-arrival:has(.sable-orb-rendered) .orb-halo {
  display: none;
}
.sable-orb-rendered > canvas {
  pointer-events: none;
}
.sable-sphere.sable-orb-rendered.sable-highlight {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
}

.entrance .orb-position{top:calc(50% - 10px);width:180px;height:180px;transform:translate(-50%,-50%) scale(.8);transition:top 760ms var(--ease),transform 760ms var(--ease)}
.entrance .orb{width:180px;height:180px}
.entrance .orb-arrival{animation-duration:900ms}
.entrance .orb-position::before,.entrance .orb-position::after{content:"";position:absolute;pointer-events:none;border-radius:50%;transition:opacity 450ms}
.entrance .orb-position::before{inset:-150px;background:radial-gradient(closest-side,rgba(30,52,73,.3),transparent)}
.entrance .orb-position::after{width:188px;height:27px;top:179px;left:-4px;background:radial-gradient(closest-side,rgba(159,216,223,.13),transparent)}
.entrance .wordmark{top:calc(50% + 92px)}
.entrance .hint{top:calc(50% + 126px);font-size:14px;letter-spacing:normal}
.orb-forward .orb-position{top:min(241px,33vh);transform:translate(-50%,-50%)}
.orb-forward .orb-position::before,.orb-forward .orb-position::after,.orb-forward .wordmark,.orb-forward .hint{visibility:hidden}
.orb-forward .entrance .orb-halo{display:block;opacity:1;background:radial-gradient(circle,rgba(159,216,223,.22),transparent 62%)}
.orb-touched .entrance .powered-by{visibility:hidden}
.checking-arc{position:absolute;inset:-14px;border-radius:50%;border:2px solid transparent;border-top-color:rgba(159,216,223,.75);border-right-color:rgba(159,216,223,.18);opacity:0;pointer-events:none}
.orb-checking .checking-arc{opacity:1;animation:checking-spin 1.2s linear infinite}
@keyframes checking-spin{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){.entrance .orb-position,.entrance .orb-arrival,.orb-checking .checking-arc{transition:none;animation:none}}
