@font-face {
  font-family: "Manrope";
  src: url("/alano-theme/Manrope-Variable.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --alano-gradient: linear-gradient(to right, #9d50bb 0%, #fe76d4 50%, #ff843a 100%);
  --alano-bg: #faf9f7;
  --alano-bg-soft: #f5f3f0;
  --alano-bg-panel: rgba(245, 243, 240, 0.8);
  --alano-bg-card: rgba(255, 255, 255, 0.76);
  --alano-bg-card-strong: #ffffff;
  --alano-border: rgba(217, 214, 209, 0.24);
  --alano-border-strong: #e5e7eb;
  --alano-text: #1f1e1c;
  --alano-text-secondary: #6b6258;
  --alano-text-tertiary: #94897d;
  --alano-accent: #9d50bb;
  --alano-accent-soft: rgba(157, 80, 187, 0.15);
  --alano-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.03);
  --alano-shadow-novel: 0 2px 4px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.04);
  --alano-shadow-float: 0 18px 38px rgba(166, 124, 93, 0.1), 0 6px 14px rgba(0, 0, 0, 0.04);
  --alano-radius-card: 14px;
  --alano-radius-panel: 20px;
  --alano-radius-control: 12px;
  --alano-focus-ring: 0 0 0 2px rgba(157, 80, 187, 0.24);
}

body.alano-outline-dark {
  --alano-bg: #111319;
  --alano-bg-soft: #171a21;
  --alano-bg-panel: rgba(46, 46, 46, 0.85);
  --alano-bg-card: rgba(27, 30, 38, 0.76);
  --alano-bg-card-strong: #1a1d24;
  --alano-border: rgba(255, 255, 255, 0.08);
  --alano-border-strong: rgba(255, 255, 255, 0.12);
  --alano-text: #f2ede6;
  --alano-text-secondary: #d1c6b9;
  --alano-text-tertiary: #9e9488;
  --alano-accent-soft: rgba(157, 80, 187, 0.22);
  --alano-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.2);
  --alano-shadow-novel: 0 8px 18px rgba(0, 0, 0, 0.34), 0 18px 38px rgba(0, 0, 0, 0.26), 0 30px 64px rgba(0, 0, 0, 0.18);
  --alano-shadow-float: 0 18px 38px rgba(0, 0, 0, 0.34), 0 6px 14px rgba(0, 0, 0, 0.22);
  --alano-focus-ring: 0 0 0 2px rgba(176, 111, 204, 0.34);
}

html,
body {
  background: var(--alano-bg);
  color: var(--alano-text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  image-rendering: -webkit-optimize-contrast;
}

body,
button,
input,
textarea,
select {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body #root {
  min-height: 100vh;
  background: linear-gradient(to top, #f8f7f5 0%, #f7f6f4 50%, #ffffff 100%);
}

body.alano-outline-dark {
  background: #111319 !important;
}

body.alano-outline-dark #root {
  background: linear-gradient(to top, #101218 0%, #13161d 46%, #1a1d24 100%) !important;
}

body a,
body button,
body input,
body textarea {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body input,
body textarea,
body [contenteditable="true"] {
  border-radius: var(--alano-radius-control) !important;
}

body input:focus,
body textarea:focus,
body button:focus-visible,
body a:focus-visible,
body [contenteditable="true"]:focus {
  box-shadow: var(--alano-focus-ring) !important;
  outline: none !important;
}

body input[type="search"],
body input[type="text"],
body input[type="email"],
body input[type="password"],
body textarea,
body [contenteditable="true"] {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid #e6ddd3 !important;
  color: var(--alano-text) !important;
}

body.alano-outline-dark input[type="search"],
body.alano-outline-dark input[type="text"],
body.alano-outline-dark input[type="email"],
body.alano-outline-dark input[type="password"],
body.alano-outline-dark textarea,
body.alano-outline-dark [contenteditable="true"] {
  background: rgba(27, 30, 38, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--alano-text) !important;
}

body input::placeholder,
body textarea::placeholder {
  color: var(--alano-text-tertiary) !important;
}

body button[type="submit"],
body button[data-variant="primary"],
body .alano-outline-primary {
  background: var(--alano-gradient) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(157, 80, 187, 0.18);
}

body [data-radix-popper-content-wrapper] > *,
body [role="menu"],
body [role="dialog"],
body [data-sonner-toast] {
  background: rgba(250, 249, 247, 0.86) !important;
  border: 1px solid var(--alano-border) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--alano-shadow-novel) !important;
}

body [data-sonner-toast] {
  color: var(--alano-text) !important;
}

body.alano-outline-dark [data-radix-popper-content-wrapper] > *,
body.alano-outline-dark [role="menu"],
body.alano-outline-dark [role="dialog"],
body.alano-outline-dark [data-sonner-toast] {
  background: rgba(25, 28, 34, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.alano-outline-auth #sidebar {
  margin: 12px 0 12px 12px;
  background: var(--alano-bg-panel) !important;
  border: 1px solid var(--alano-border) !important;
  border-radius: var(--alano-radius-panel) !important;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07) !important;
  overflow: hidden;
}

body.alano-outline-auth #sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 96px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  pointer-events: none;
}

body.alano-outline-dark #sidebar::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

body.alano-outline-auth #sidebar a,
body.alano-outline-auth #sidebar button,
body.alano-outline-auth #sidebar h3 button {
  border-radius: var(--alano-radius-control) !important;
}

body.alano-outline-auth #sidebar a {
  color: var(--alano-text-secondary) !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
}

body.alano-outline-auth #sidebar a:hover {
  background: rgba(157, 80, 187, 0.08) !important;
  color: var(--alano-text) !important;
}

body.alano-outline-auth #sidebar a[aria-current="page"] {
  background: rgba(254, 118, 212, 0.12) !important;
  color: var(--alano-text) !important;
  box-shadow: inset 0 0 0 1px rgba(157, 80, 187, 0.08);
}

body.alano-outline-dark #sidebar a[aria-current="page"] {
  background: rgba(157, 80, 187, 0.22) !important;
  box-shadow: inset 0 0 0 1px rgba(176, 111, 204, 0.18);
}

body.alano-outline-auth #sidebar button[aria-label="Account"] {
  background: rgba(255, 255, 255, 0.52) !important;
  border: 1px solid rgba(217, 214, 209, 0.3);
  color: var(--alano-text) !important;
  box-shadow: var(--alano-shadow-card);
}

body.alano-outline-dark #sidebar button[aria-label="Account"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.alano-outline-auth #sidebar button[aria-label="Account"] span:last-child {
  background: var(--alano-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  font-size: 1.05rem;
  font-weight: 650 !important;
  letter-spacing: -0.02em;
}

body.alano-outline-auth #sidebar button[aria-label="Collapse sidebar"],
body.alano-outline-auth #sidebar button[aria-label="Expand sidebar"] {
  background: rgba(255, 255, 255, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--alano-text-secondary) !important;
}

body.alano-outline-dark #sidebar button[aria-label="Collapse sidebar"],
body.alano-outline-dark #sidebar button[aria-label="Expand sidebar"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.alano-outline-auth #sidebar h3 button {
  color: var(--alano-text-tertiary) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.alano-outline-auth #skip-nav + div {
  padding: 12px 18px 18px !important;
  background: transparent !important;
  position: relative;
}

body.alano-outline-auth #skip-nav + div > div {
  display: grid !important;
  gap: 12px;
}

body.alano-outline-auth #skip-nav + div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0.45) 52%, rgba(255, 255, 255, 0) 84%);
  pointer-events: none;
}

body.alano-outline-dark #skip-nav + div::before {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0.04) 52%, rgba(255, 255, 255, 0) 84%);
}

body.alano-outline-auth #skip-nav + div > div > div:first-child {
  position: sticky;
  top: 0;
  z-index: 10;
  isolation: isolate;
  margin-bottom: 4px;
  padding: 8px 0 10px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none !important;
  overflow: visible;
}

body.alano-outline-auth #skip-nav + div > div > div:first-child::before {
  content: "";
  position: absolute;
  inset: -8px -12px auto;
  z-index: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 18px;
  mask-image: linear-gradient(to bottom, black 0%, black 40%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.2) 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.2) 85%, transparent 100%);
  pointer-events: none;
}

body.alano-outline-auth #skip-nav + div > div > div:first-child > * {
  position: relative;
  z-index: 1;
}

body.alano-outline-dark #skip-nav + div > div > div:first-child::before {
  background: rgba(17, 19, 25, 0.58);
}

body.alano-outline-auth #skip-nav + div nav {
  margin-bottom: 10px;
  padding: 0 0 10px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  gap: 22px;
}

body.alano-outline-auth #skip-nav + div nav a {
  padding: 4px 0 10px !important;
  border-radius: 0;
  color: var(--alano-text-secondary) !important;
  font-weight: 550 !important;
  letter-spacing: -0.01em;
}

body.alano-outline-auth #skip-nav + div nav a[aria-current="page"] {
  background: transparent !important;
  color: var(--alano-text) !important;
  box-shadow: none;
}

body.alano-outline-auth #skip-nav + div nav a:not([aria-current="page"]):hover {
  background: transparent !important;
  color: var(--alano-text) !important;
}

body.alano-outline-auth #skip-nav + div nav a > div {
  height: 2px !important;
  margin-top: 6px;
  background: transparent !important;
  border-radius: 999px;
}

body.alano-outline-auth #skip-nav + div nav a[aria-current="page"] > div {
  background: var(--alano-text) !important;
}

body.alano-outline-auth #skip-nav + div > div > div:nth-child(2) {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.alano-outline-auth #skip-nav + div a:not(#sidebar a) {
  color: #7f3fb5;
}

body.alano-outline-auth #skip-nav + div h1,
body.alano-outline-auth #skip-nav + div h2,
body.alano-outline-auth #skip-nav + div h3 {
  color: var(--alano-text) !important;
  letter-spacing: -0.025em;
}

body.alano-outline-dark .heading-anchor {
  color: var(--alano-text-tertiary) !important;
}

body.alano-outline-auth button[aria-label="Notifications"],
body.alano-outline-auth button[aria-label="Account"]:not(#sidebar button[aria-label="Account"]) {
  background: rgba(255, 255, 255, 0.68) !important;
  border: 1px solid rgba(229, 231, 235, 0.92);
  color: var(--alano-text) !important;
  box-shadow: var(--alano-shadow-card);
}

body.alano-outline-dark button[aria-label="Notifications"],
body.alano-outline-dark button[aria-label="Account"]:not(#sidebar button[aria-label="Account"]) {
  background: rgba(24, 26, 32, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.alano-outline-auth button[aria-label="Notifications"],
body.alano-outline-auth button[aria-label="Account"]:not(#sidebar button[aria-label="Account"]),
body.alano-outline-auth button[aria-label="New doc"],
body.alano-outline-auth button[aria-label="Star"],
body.alano-outline-auth button[aria-label="Document options"],
body.alano-outline-auth button[aria-label="Collection menu"],
body.alano-outline-auth button[aria-label="New nested document"],
body.alano-outline-auth button[aria-label="Expand"] {
  border-radius: 999px !important;
}

body.alano-outline-auth button[aria-label="New doc"],
body.alano-outline-auth button[aria-label="Star"],
body.alano-outline-auth button[aria-label="Document options"],
body.alano-outline-auth button[aria-label="Collection menu"],
body.alano-outline-auth button[aria-label="New nested document"],
body.alano-outline-auth button[aria-label="Expand"] {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #e5e7eb !important;
  color: var(--alano-text-secondary) !important;
  box-shadow: var(--alano-shadow-card);
}

body.alano-outline-dark button[aria-label="New doc"],
body.alano-outline-dark button[aria-label="Star"],
body.alano-outline-dark button[aria-label="Document options"],
body.alano-outline-dark button[aria-label="Collection menu"],
body.alano-outline-dark button[aria-label="New nested document"],
body.alano-outline-dark button[aria-label="Expand"] {
  background: rgba(24, 26, 32, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--alano-text-secondary) !important;
}

body.alano-outline-auth #skip-nav + div a[href="/doc/new"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px !important;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  color: var(--alano-accent) !important;
  font-weight: 650 !important;
  box-shadow: var(--alano-shadow-card);
}

body.alano-outline-dark #skip-nav + div a[href="/doc/new"] {
  background: rgba(24, 26, 32, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--alano-text) !important;
}

body.alano-outline-auth #skip-nav + div a[href="/doc/new"]:hover {
  transform: translateY(-1px);
  box-shadow: var(--alano-shadow-float);
}

body.alano-outline-auth #skip-nav + div input[type="search"] {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: none;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

body.alano-outline-dark #skip-nav + div input[type="search"] {
  background: rgba(24, 26, 32, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.alano-outline-auth #skip-nav + div a[href^="/doc/"],
body.alano-outline-auth #skip-nav + div a[href^="/collection/"] {
  margin-bottom: 12px;
  padding: 14px 14px 12px !important;
  background: var(--alano-bg-card-strong) !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.alano-outline-dark #skip-nav + div a[href^="/doc/"],
body.alano-outline-dark #skip-nav + div a[href^="/collection/"] {
  background: rgba(24, 26, 32, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

body.alano-outline-auth #skip-nav + div a[href^="/doc/"]:hover,
body.alano-outline-auth #skip-nav + div a[href^="/collection/"]:hover {
  transform: translateY(-1px);
  border-color: #d1d5db !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.alano-outline-auth #skip-nav + div a[href^="/doc/"] > div:first-child,
body.alano-outline-auth #skip-nav + div a[href^="/collection/"] > div:first-child {
  gap: 12px;
}

body.alano-outline-auth #skip-nav + div a[href^="/doc/"] strong,
body.alano-outline-auth #skip-nav + div a[href^="/collection/"] strong {
  color: var(--alano-text) !important;
}

body.alano-outline-auth #skip-nav + div a[href^="/doc/"] button[aria-label="Star"],
body.alano-outline-auth #skip-nav + div a[href^="/doc/"] button[aria-label="Document options"],
body.alano-outline-auth #skip-nav + div a[href^="/collection/"] button[aria-label="Collection menu"] {
  min-width: 34px;
  min-height: 34px;
}

body.alano-outline-auth #skip-nav + div div[aria-label="Documents"] {
  display: grid;
  gap: 10px;
}

body.alano-outline-auth #skip-nav + div p:has(button) {
  margin-bottom: 14px !important;
  padding: 14px 16px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: var(--alano-shadow-card);
}

body.alano-outline-auth #skip-nav + div time,
body.alano-outline-auth #skip-nav + div small {
  color: var(--alano-text-tertiary) !important;
}

body.alano-outline-auth #skip-nav + div h1 {
  font-size: clamp(2.1rem, 3.5vw, 3rem) !important;
  line-height: 1 !important;
  font-weight: 760 !important;
  margin: 0 0 10px !important;
}

body.alano-outline-auth:not(.alano-outline-home):not(.alano-outline-shared) #skip-nav + div > div > div:first-child a[href^="/doc/"],
body.alano-outline-auth:not(.alano-outline-home):not(.alano-outline-shared) #skip-nav + div > div > div:first-child a[href^="/collection/"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(320px, 100%);
  min-height: 38px;
  margin: 0 !important;
  padding: 0 16px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: var(--alano-shadow-card);
  color: var(--alano-accent) !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

body.alano-outline-auth:not(.alano-outline-home):not(.alano-outline-shared) #skip-nav + div > div > div:first-child a[href^="/doc/"] > *,
body.alano-outline-auth:not(.alano-outline-home):not(.alano-outline-shared) #skip-nav + div > div > div:first-child a[href^="/collection/"] > * {
  min-width: 0;
}

body.alano-outline-auth:not(.alano-outline-home):not(.alano-outline-shared) #skip-nav + div > div > div:first-child a[href^="/doc/"] :is(span, strong),
body.alano-outline-auth:not(.alano-outline-home):not(.alano-outline-shared) #skip-nav + div > div > div:first-child a[href^="/collection/"] :is(span, strong) {
  line-height: 1.2 !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.alano-outline-home #skip-nav + div > div > div:first-child::before {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.alano-outline-dark.alano-outline-home #skip-nav + div > div > div:first-child::before {
  background: rgba(17, 19, 25, 0.72);
}

body.alano-outline-shared #skip-nav + div {
  padding: 10px 22px 22px !important;
}

body.alano-outline-shared #skip-nav + div > div {
  gap: 14px;
}

body.alano-outline-shared #skip-nav + div > div > div:first-child:has(a[href*="/collection/"]) {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  min-height: 56px;
  padding: 6px 0 8px !important;
  margin-bottom: 0;
}

body.alano-outline-shared #skip-nav + div > div > div:first-child:has(a[href*="/collection/"])::before {
  inset: -6px -10px auto;
  height: 62px;
  border-radius: 16px;
}

body.alano-outline-shared #skip-nav + div > div > div:first-child a[href*="/collection/"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid #e8ddd3 !important;
  border-radius: 999px !important;
  color: var(--alano-accent) !important;
  font-size: 0.92rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em;
  box-shadow: var(--alano-shadow-card);
}

body.alano-outline-shared #skip-nav + div > div > div:first-child a[href*="/collection/"]:hover {
  transform: translateY(-1px);
  box-shadow: var(--alano-shadow-float);
}


/* Shared collection-index pages have no top toolbar; first content panel must not be centered vertically. */
body.alano-outline-shared.alano-outline-shared-index #skip-nav + div > div > div:first-child:not(:has(a[href*="/collection/"])) {
  position: static !important;
  display: block !important;
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: clamp(28px, 5vh, 56px) 4px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

body.alano-outline-shared.alano-outline-shared-index #skip-nav + div > div > div:first-child:not(:has(a[href*="/collection/"]))::before {
  content: none !important;
  display: none !important;
}

body.alano-outline-shared.alano-outline-shared-index #skip-nav + div > div > div:first-child:not(:has(a[href*="/collection/"])) > div {
  display: grid;
  gap: 18px;
}

body.alano-outline-shared.alano-outline-shared-index #skip-nav + div > div > div:first-child:not(:has(a[href*="/collection/"])) > div:first-child {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 0 18px !important;
}

body.alano-outline-shared.alano-outline-shared-index #skip-nav + div > div > div:first-child:not(:has(a[href*="/collection/"])) > div:first-child > div:nth-child(3) {
  display: none !important;
}

body.alano-outline-shared.alano-outline-shared-index #skip-nav + div > div > div:first-child:not(:has(a[href*="/collection/"])) > div:nth-child(2) {
  margin-top: 0 !important;
}

body.alano-outline-shared.alano-outline-shared-index #skip-nav + div > div > div:first-child:not(:has(a[href*="/collection/"])) > div:nth-child(2) > div > div > div:first-child {
  margin-top: 0 !important;
}

body.alano-outline-shared #skip-nav + div > div > div:nth-child(2) {
  width: min(980px, 100%) !important;
  max-width: 980px !important;
  margin: 0 auto;
}

body.alano-outline-shared #skip-nav + div > div > div:nth-child(2) > div {
  display: grid;
  gap: 18px;
}

body.alano-outline-shared #skip-nav + div > div > div:nth-child(2) > div > div:first-child {
  padding: 6px 4px 0;
}

body.alano-outline-shared #skip-nav + div > div > div:nth-child(2) > div > div:first-child h1 {
  font-size: clamp(2.8rem, 5.4vw, 4rem) !important;
  line-height: 0.95 !important;
  font-weight: 800 !important;
  letter-spacing: -0.05em;
  margin: 0 0 6px !important;
}

body.alano-outline-shared #skip-nav + div > div > div:nth-child(2) > div > div:first-child h1 > div {
  align-items: center;
  gap: 12px !important;
}

body.alano-outline-shared #skip-nav + div > div > div:nth-child(2) > div > div:first-child h1 svg {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px;
}

body.alano-outline-shared #skip-nav + div > div > div:nth-child(2) > div > div:first-child > span {
  color: var(--alano-text-tertiary) !important;
  font-size: 0.92rem !important;
  font-weight: 560 !important;
}

body.alano-outline-shared article {
  padding: 26px 30px 34px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(229, 231, 235, 0.9) !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 30px rgba(166, 124, 93, 0.06), 0 3px 10px rgba(0, 0, 0, 0.03) !important;
}

body.alano-outline-dark.alano-outline-shared article {
  background: rgba(24, 26, 32, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24), 0 4px 16px rgba(0, 0, 0, 0.18) !important;
}

body.alano-outline-shared article > h1 {
  font-size: clamp(2.45rem, 4.6vw, 3.35rem) !important;
  line-height: 0.98 !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em;
  margin: 0 0 18px !important;
}

body.alano-outline-shared article h2 {
  font-size: clamp(2rem, 3.8vw, 3rem) !important;
  line-height: 1.02 !important;
  font-weight: 790 !important;
  letter-spacing: -0.04em;
  margin: 34px 0 14px !important;
}

body.alano-outline-shared article h3 {
  font-size: 1.45rem !important;
  line-height: 1.12 !important;
  font-weight: 740 !important;
  letter-spacing: -0.025em;
  margin: 26px 0 10px !important;
}

body.alano-outline-shared article p,
body.alano-outline-shared article li {
  color: var(--alano-text-secondary) !important;
  font-size: 1.01rem !important;
  line-height: 1.72 !important;
}

body.alano-outline-shared article p {
  margin: 0 0 12px !important;
}

body.alano-outline-shared article strong,
body.alano-outline-shared article b {
  color: var(--alano-text) !important;
  font-weight: 720 !important;
}

body.alano-outline-shared article ul,
body.alano-outline-shared article ol {
  padding-left: 1.2rem !important;
  margin: 0 0 14px !important;
}

body.alano-outline-shared article li + li {
  margin-top: 4px;
}

body.alano-outline-shared article hr {
  border-color: rgba(217, 214, 209, 0.75) !important;
}

body.alano-outline-shared article a {
  color: #7f3fb5 !important;
  text-decoration-thickness: 0.08em;
}

body.alano-outline-dark.alano-outline-shared #skip-nav + div > div > div:first-child a[href*="/collection/"] {
  background: rgba(24, 26, 32, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #dba0ef !important;
}

body.alano-outline-home #skip-nav + div > div > div:first-child {
  display: flex !important;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

body.alano-outline-home #skip-nav + div > div > div:nth-child(2) > div {
  width: min(980px, 100%) !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 14px 18px 22px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(248, 246, 242, 0.56) 100%) !important;
  border: 1px solid rgba(229, 231, 235, 0.72) !important;
  border-radius: 24px !important;
  box-shadow: 0 14px 34px rgba(166, 124, 93, 0.07), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

body.alano-outline-dark.alano-outline-home #skip-nav + div > div > div:nth-child(2) > div {
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.92) 0%, rgba(21, 24, 31, 0.86) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24), 0 4px 14px rgba(0, 0, 0, 0.16) !important;
}

body.alano-outline-home #skip-nav + div > div > div:first-child > div:first-child {
  flex: 0 0 320px;
  max-width: 320px;
}

body.alano-outline-home #skip-nav + div > div > div:first-child > div:nth-child(2) {
  display: none !important;
}

body.alano-outline-home .alano-home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 10px;
}

body.alano-outline-home .alano-home-toolbar .alano-home-actions {
  margin-left: auto;
}

body.alano-outline-home .alano-home-toolbar h1 {
  margin: 0 !important;
}

body.alano-outline-home .alano-home-tabs-block {
  display: grid;
  gap: 14px;
}

body.alano-outline-home #skip-nav + div nav {
  margin: 0 0 8px;
  padding: 4px 8px 10px;
  border-bottom: 1px solid rgba(217, 214, 209, 0.72);
  display: inline-flex;
  justify-content: flex-start;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
}

body.alano-outline-dark.alano-outline-home #skip-nav + div nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.alano-outline-home #skip-nav + div div[aria-label="Documents"] {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: transparent !important;
}

body.alano-outline-home #skip-nav + div a[href^="/doc/"],
body.alano-outline-home #skip-nav + div a[href^="/collection/"] {
  min-height: 82px;
  height: auto;
  padding: 10px 18px 10px !important;
  border-radius: 18px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 10px rgba(0, 0, 0, 0.025);
}

body.alano-outline-home #skip-nav + div a[href^="/doc/"] > div:first-child,
body.alano-outline-home #skip-nav + div a[href^="/collection/"] > div:first-child {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 4px;
  height: auto;
}

body.alano-outline-home #skip-nav + div a[href^="/doc/"] > div:first-child > span:first-child,
body.alano-outline-home #skip-nav + div a[href^="/collection/"] > div:first-child > span:first-child {
  display: inline-flex;
  align-items: center;
  column-gap: 6px;
  gap: 6px;
  width: max-content;
  max-width: 100%;
}

body.alano-outline-home #skip-nav + div a[href^="/doc/"] > div:first-child > span:first-child > span:first-child,
body.alano-outline-home #skip-nav + div a[href^="/collection/"] > div:first-child > span:first-child > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.alano-outline-home #skip-nav + div a[href^="/doc/"] > div:first-child > span:first-child > span:last-of-type,
body.alano-outline-home #skip-nav + div a[href^="/collection/"] > div:first-child > span:first-child > span:last-of-type {
  font-size: 0.95rem;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.1 !important;
  color: var(--alano-text) !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.alano-outline-home #skip-nav + div a[href^="/doc/"] > div:first-child > div:last-child,
body.alano-outline-home #skip-nav + div a[href^="/collection/"] > div:first-child > div:last-child {
  display: flex;
  align-items: center;
  gap: 4px;
  align-content: start;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

body.alano-outline-home #skip-nav + div a[href^="/doc/"] time,
body.alano-outline-home #skip-nav + div a[href^="/doc/"] strong,
body.alano-outline-home #skip-nav + div a[href^="/doc/"] > div:first-child > div:last-child > span,
body.alano-outline-home #skip-nav + div a[href^="/collection/"] time,
body.alano-outline-home #skip-nav + div a[href^="/collection/"] strong,
body.alano-outline-home #skip-nav + div a[href^="/collection/"] > div:first-child > div:last-child > span {
  font-size: 0.84rem !important;
  line-height: 1.15 !important;
}

body.alano-outline-home #skip-nav + div input[type="search"] {
  min-height: 44px;
  border-radius: 14px !important;
}

body.alano-outline-home #skip-nav + div a[href="/doc/new"] {
  min-height: 44px;
  border-radius: 14px !important;
  color: var(--alano-text) !important;
}

body.alano-outline-home #skip-nav + div a[href^="/doc/"] button[aria-label="Star"],
body.alano-outline-home #skip-nav + div a[href^="/collection/"] button[aria-label="Star"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border: 1px solid #ddd8d1 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: none !important;
  color: #988f84 !important;
  padding: 0 !important;
}

body.alano-outline-home #skip-nav + div a[href^="/doc/"] button[aria-label="Star"] svg,
body.alano-outline-home #skip-nav + div a[href^="/collection/"] button[aria-label="Star"] svg {
  opacity: 0.92;
}

body.alano-outline-home #skip-nav + div a[href^="/doc/"] button[aria-label="Star"][aria-pressed="true"],
body.alano-outline-home #skip-nav + div a[href^="/doc/"] button[aria-label="Star"][data-state="on"],
body.alano-outline-home #skip-nav + div a[href^="/collection/"] button[aria-label="Star"][aria-pressed="true"],
body.alano-outline-home #skip-nav + div a[href^="/collection/"] button[aria-label="Star"][data-state="on"] {
  color: #9d50bb !important;
  border-color: rgba(157, 80, 187, 0.28) !important;
  background: rgba(157, 80, 187, 0.12) !important;
}

body.alano-outline-dark.alano-outline-home #skip-nav + div a[href^="/doc/"] button[aria-label="Star"],
body.alano-outline-dark.alano-outline-home #skip-nav + div a[href^="/collection/"] button[aria-label="Star"] {
  background: rgba(24, 26, 32, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(242, 237, 230, 0.82) !important;
}

body.alano-outline-home #skip-nav + div a[href^="/doc/"] button[aria-label="Document options"],
body.alano-outline-home #skip-nav + div a[href^="/collection/"] button[aria-label="Collection menu"] {
  display: none !important;
}

body.alano-outline-home #skip-nav + div a[href^="/doc/"] > div:first-child > div:last-child > span,
body.alano-outline-home #skip-nav + div a[href^="/collection/"] > div:first-child > div:last-child > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

body.alano-outline-auth input[type="search"] {
  min-height: 44px;
}

body.alano-outline-auth ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body.alano-outline-auth ::-webkit-scrollbar-track {
  background: transparent;
}

body.alano-outline-auth ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

body.alano-outline-auth ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.15);
}

body.alano-outline-auth {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

body.alano-outline-login #root {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

body.alano-outline-login #root > div {
  width: 100%;
  max-width: 1120px;
}

body.alano-outline-login #root > div > div:has(button),
body.alano-outline-login #root > div > div > div:has(button) {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 28px 26px !important;
  background: rgba(250, 249, 247, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 24px !important;
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  box-shadow: var(--alano-shadow-novel) !important;
}

body.alano-outline-login h2 {
  color: var(--alano-text) !important;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800 !important;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 8px !important;
}

body.alano-outline-login button {
  min-height: 48px;
  border-radius: 14px !important;
}

body.alano-outline-login button[type="button"] {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(217, 214, 209, 0.88) !important;
  color: var(--alano-text) !important;
  font-weight: 650 !important;
  box-shadow: var(--alano-shadow-card);
}

body.alano-outline-login button[type="button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 16px 32px rgba(0, 0, 0, 0.08), 0 32px 64px rgba(0, 0, 0, 0.06);
}

body.alano-outline-login img {
  filter: saturate(0.96) contrast(1.02);
}

body.alano-outline-dark.alano-outline-login #root {
  background: linear-gradient(to top, #101218 0%, #13161d 46%, #1a1d24 100%) !important;
}

body.alano-outline-dark.alano-outline-login #root > div > div:has(button),
body.alano-outline-dark.alano-outline-login #root > div > div > div:has(button) {
  background: rgba(24, 26, 32, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.alano-outline-dark.alano-outline-login button[type="button"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--alano-text) !important;
}

@media (max-width: 768px) {
  button[aria-label="Switch to dark"],
  button[aria-label="Switch to light"],
  button[aria-label="Switch to system"] {
    display: none !important;
  }

  body.alano-outline-auth #sidebar {
    margin: 8px 8px 8px 0;
  }

  body.alano-outline-auth #skip-nav + div {
    padding: 12px !important;
  }

  body.alano-outline-shared article {
    padding: 22px 18px 26px !important;
    border-radius: 18px !important;
  }

  body.alano-outline-auth #skip-nav + div > div > div:first-child {
    top: 8px;
    padding: 10px 12px !important;
  }

  body.alano-outline-login #root {
    padding: 18px 12px;
  }

  body.alano-outline-login #root > div > div:has(button),
  body.alano-outline-login #root > div > div > div:has(button) {
    border-radius: 18px !important;
    padding: 24px 18px !important;
  }
}

/* Responsive hardening for public guides and rich document content. */
body.alano-outline-shared [role="main"],
body.alano-outline-shared [role="main"] div:has(.ProseMirror),
body.alano-outline-shared [role="main"] .ProseMirror {
  box-sizing: border-box;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.alano-outline-shared [role="main"] .ProseMirror {
  overflow-wrap: break-word;
  word-break: normal;
}

body.alano-outline-shared [role="main"] .ProseMirror .image,
body.alano-outline-shared [role="main"] .ProseMirror figure,
body.alano-outline-shared [role="main"] .ProseMirror img,
body.alano-outline-shared [role="main"] .ProseMirror video,
body.alano-outline-shared [role="main"] .ProseMirror iframe {
  box-sizing: border-box;
  max-width: 100% !important;
}

body.alano-outline-shared [role="main"] .ProseMirror img,
body.alano-outline-shared [role="main"] .ProseMirror video {
  display: block;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

body.alano-outline-shared [role="main"] .ProseMirror iframe {
  width: 100% !important;
}

body.alano-outline-shared [role="main"] .ProseMirror pre,
body.alano-outline-shared [role="main"] .ProseMirror table {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.alano-outline-shared [role="main"] .ProseMirror code {
  overflow-wrap: anywhere;
}

body.alano-outline-shared [role="main"] .ProseMirror .notice-block,
body.alano-outline-shared [role="main"] .ProseMirror blockquote {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1024px) {
  body.alano-outline-auth #skip-nav + div {
    padding: 10px 14px 18px !important;
  }

  body.alano-outline-shared #skip-nav + div {
    padding: 10px 14px 18px !important;
  }

  body.alano-outline-home #skip-nav + div > div > div:nth-child(2) > div {
    border-radius: 18px !important;
    padding-inline: 14px !important;
  }

  body.alano-outline-home .alano-home-toolbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  body.alano-outline-auth #skip-nav + div,
  body.alano-outline-shared #skip-nav + div {
    padding: 8px 10px 14px !important;
  }

  body.alano-outline-shared [role="main"] {
    width: 100%;
    overflow-x: hidden;
  }

  body.alano-outline-shared-doc [role="main"] div:has(> div > button[aria-label="Table of contents"]) {
    padding: 8px 0 !important;
  }

  body.alano-outline-shared-doc [role="main"] div:has(> button[aria-label="Table of contents"]) {
    align-items: center;
    gap: 8px;
    padding: 0 !important;
  }

  body.alano-outline-shared-doc [role="main"] div:has(> button[aria-label="Table of contents"]) > button {
    margin: 0 !important;
  }

  body.alano-outline-shared [role="main"] div:has(.ProseMirror) {
    width: 100% !important;
  }

  /* Remove desktop editor gutters while keeping outer mobile page padding. */
  body.alano-outline-shared [role="main"] div:has(> div > div > div > .ProseMirror),
  body.alano-outline-shared [role="main"] .ProseMirror {
    padding-inline: 0 !important;
  }

  body.alano-outline-shared [role="main"] .ProseMirror {
    margin-inline: 0 !important;
  }

  body.alano-outline-shared [role="main"] h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    overflow-wrap: anywhere;
  }

  body.alano-outline-shared [role="main"] .ProseMirror h2 {
    font-size: clamp(1.45rem, 6vw, 1.8rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    margin: 28px 0 12px !important;
  }

  body.alano-outline-shared [role="main"] .ProseMirror h3 {
    font-size: clamp(1.2rem, 5vw, 1.45rem) !important;
    line-height: 1.2 !important;
    margin: 22px 0 10px !important;
  }

  body.alano-outline-shared [role="main"] .ProseMirror p,
  body.alano-outline-shared [role="main"] .ProseMirror li {
    font-size: 1rem !important;
    line-height: 1.62 !important;
  }

  body.alano-outline-shared [role="main"] .ProseMirror ul,
  body.alano-outline-shared [role="main"] .ProseMirror ol {
    padding-left: 1.3rem !important;
  }

  body.alano-outline-shared [role="main"] .ProseMirror .notice-block {
    gap: 10px;
    padding: 12px !important;
  }

  body.alano-outline-shared [role="main"] .ProseMirror figure,
  body.alano-outline-shared [role="main"] .ProseMirror .image {
    margin-inline: 0 !important;
  }

  body.alano-outline-home #skip-nav + div > div > div:first-child {
    flex-wrap: wrap;
    align-items: stretch;
  }

  body.alano-outline-home #skip-nav + div > div > div:first-child > div:first-child {
    flex: 1 1 100%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  body.alano-outline-auth #skip-nav + div,
  body.alano-outline-shared #skip-nav + div {
    padding-inline: max(8px, env(safe-area-inset-left)) !important;
  }

  body.alano-outline-shared [role="main"] .ProseMirror p,
  body.alano-outline-shared [role="main"] .ProseMirror li {
    font-size: 0.96rem !important;
    line-height: 1.58 !important;
  }

  body.alano-outline-shared [role="main"] .ProseMirror pre {
    font-size: 0.82rem;
  }

  body.alano-outline-login #root {
    padding: 12px 8px;
  }
}

/* Alano wiki is light-theme only. Keep pages light even if Outline/browser prefers dark. */
html,
body,
body #root {
  color-scheme: light !important;
}

body.alano-outline-dark,
body.dark,
html.dark body {
  --alano-bg: #faf9f7 !important;
  --alano-bg-soft: #f5f3f0 !important;
  --alano-bg-panel: rgba(245, 243, 240, 0.8) !important;
  --alano-bg-card: rgba(255, 255, 255, 0.76) !important;
  --alano-bg-card-strong: #ffffff !important;
  --alano-border: rgba(217, 214, 209, 0.24) !important;
  --alano-border-strong: #e5e7eb !important;
  --alano-text: #1f1e1c !important;
  --alano-text-secondary: #6b6258 !important;
  --alano-text-tertiary: #94897d !important;
  --alano-accent-soft: rgba(157, 80, 187, 0.15) !important;
  --alano-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  --alano-shadow-novel: 0 2px 4px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.04) !important;
  --alano-shadow-float: 0 18px 38px rgba(166, 124, 93, 0.1), 0 6px 14px rgba(0, 0, 0, 0.04) !important;
  --alano-focus-ring: 0 0 0 2px rgba(157, 80, 187, 0.24) !important;
  background: #faf9f7 !important;
  color: #1f1e1c !important;
}

body.alano-outline-dark #root,
body.dark #root,
html.dark body #root {
  background: linear-gradient(to top, #f8f7f5 0%, #f7f6f4 50%, #ffffff 100%) !important;
}
