html,
body {
  min-height: 100%;
  margin: 0;
}
body {
  background: var(--canvas);
  font-size: 1rem;
}
#app {
  min-height: 100dvh;
}
a {
  color: var(--green);
}
.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 5;
}
.skip:focus {
  top: 1rem;
}
.shared-layout {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100dvh;
}
.shared-side {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
  padding: 15px 10px 10px;
  gap: 16px;
}
.shared-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px 4px;
  color: var(--text);
  font-weight: 650;
}
.shared-brand img {
  width: 23px;
  height: 23px;
}
.shared-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shared-side nav {
  flex: 1;
}
.shared-side h2 {
  color: var(--quiet);
  font-size: 0.79rem;
  font-weight: 550;
  margin: 18px 9px 5px;
}
.shared-side a {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 5px;
  color: var(--quiet);
  font-size: 0.96rem;
  min-height: 32px;
}
.shared-side a[aria-current="page"],
.shared-side a:hover {
  background: var(--active);
  color: var(--text);
}
.shared-side a small {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.shared-side svg,
.shared-icon svg,
.workspace-toggle svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
.shared-side footer {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--quiet);
}
.shared-side footer small {
  padding-left: 9px;
}
.shared-layout main {
  min-width: 0;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(18px, 2.4vw, 38px);
  margin: 6px 6px 6px 0;
}
.shared-layout h1,
.auth-wrap h1 {
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.shared-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 16px;
  color: var(--quiet);
  font-size: 0.82rem;
}
.workspace-toggle {
  padding: 6px;
  background: var(--active);
  border-radius: 5px;
}
.shared-layout.folded {
  grid-template-columns: minmax(0, 1fr);
}
.shared-layout.folded .shared-side {
  display: none;
}
.shared-layout.folded main {
  margin-left: 6px;
}
.shared-status {
  color: var(--green);
}
.shared-status.error {
  color: var(--red);
}
.auth-wrap {
  width: min(100% - 32px, 420px);
  margin: 0 auto;
  padding: clamp(48px, 12vh, 138px) 0;
}
.auth-wrap img {
  width: 34px;
  height: 34px;
}
.auth-wrap h1 {
  margin: 24px 0;
}
.auth-wrap p {
  margin: 12px 0;
  color: var(--quiet);
}
.auth-wrap a {
  text-decoration: none;
}
.shared-form {
  display: grid;
  max-width: 36rem;
  gap: 12px;
  margin: 16px 0;
}
.shared-form label,
.auth-wrap label {
  display: grid;
  gap: 5px;
  color: var(--quiet);
}
.shared-form input,
.shared-form select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
}
.shared-form button {
  justify-self: start;
}
.auth-wrap button.primary {
  min-height: 39px;
}
.shared-list {
  list-style: none;
  max-width: 62rem;
  padding: 0;
  margin: 12px 0 22px;
}
.shared-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-height: 41px;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
}
.shared-list .wide {
  flex: 1 1 16rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.shared-list small {
  color: var(--quiet);
}
.shared-section h2 {
  margin-top: 22px;
  font-size: 1.1rem;
}
.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shared-hint {
  margin: 0.6rem 0;
  color: var(--quiet);
}
.auth-wrap .shared-status.error {
  color: var(--red);
}
.shared-notice {
  max-width: 44rem;
  border-left: 2px solid var(--green);
  padding: 4px 12px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.shared-form .sample-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.shared-form .sample-check input {
  width: auto;
  min-height: 0;
}
@media (max-width: 760px) {
  .shared-layout,
  .shared-layout.folded {
    grid-template-columns: minmax(0, 1fr);
  }
  .shared-side {
    display: none;
    position: static;
    height: auto;
    max-height: none;
  }
  .shared-layout.mobile-open .shared-side {
    display: flex;
  }
  .shared-layout.mobile-open main {
    display: none;
  }
  .shared-layout main,
  .shared-layout.folded main {
    margin: 4px;
    padding: 16px 12px;
  }
  .shared-side nav {
    columns: 2;
  }
  .shared-side h2,
  .shared-side a {
    break-inside: avoid;
  }
  .shared-side footer {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

.shared-layout {
  grid-template-columns: 248px minmax(0, 1fr);
}
.shared-side {
  box-sizing: border-box;
  overflow: hidden;
  padding: 17px 10px 8px;
  gap: 8px;
}
.shared-side .shared-brand {
  min-height: 30px;
  gap: 8px;
  padding: 0 6px;
}
.shared-brand .sn-icon {
  margin-left: auto;
}
.shared-side .sn-tabs {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  columns: auto;
}
.sn-tabs a {
  min-height: 25px;
  justify-content: center;
  padding: 2px 8px;
}
.sn-tabs .chosen {
  color: var(--text);
  background: var(--active);
  font-weight: 600;
}
.shared-side .sn-scroll {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  columns: auto;
}
.sn-block {
  margin: 9px 0 11px;
}
.sn-block-head,
.sn-tools,
.sn-row,
.sn-disclose,
.sn-filter,
.shared-side footer {
  display: flex;
  align-items: center;
}
.sn-block-head {
  min-height: 28px;
  gap: 2px;
}
.sn-block [hidden] {
  display: none;
}
.sn-disclose {
  flex: 1;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 5px 6px;
  text-align: left;
  color: var(--quiet);
}
.sn-disclose span {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}
.sn-disclose small {
  font-size: 0.79rem;
  font-variant-numeric: tabular-nums;
}
.sn-disclose svg {
  width: 12px;
  height: 12px;
}
.sn-disclose[aria-expanded="true"] svg {
  transform: rotate(90deg);
}
.sn-icon,
.shared-side .sn-icon,
.shared-side .sn-all {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  border-radius: 5px;
  color: var(--quiet);
  background: transparent;
}
.sn-icon svg {
  width: 15px;
  height: 15px;
}
.shared-side .sn-all {
  font-size: 0.83rem;
}
.sn-icon:hover,
.shared-side .sn-icon:hover,
.sn-disclose:hover {
  color: var(--text);
  background: var(--active);
}
.sn-icon[aria-pressed="true"] {
  color: #dfb669;
}
.sn-icon[aria-pressed="true"] svg {
  fill: #dfb66930;
}
.sn-tools,
.sn-row > .sn-icon {
  opacity: 0;
}
.sn-block-head:hover .sn-tools,
.sn-block-head:focus-within .sn-tools,
.sn-row:hover > .sn-icon,
.sn-row:focus-within > .sn-icon {
  opacity: 1;
}
.sn-tools {
  opacity: 0.7;
}
.shared-side .sn-close {
  display: none;
}
.sn-row {
  min-width: 0;
  border-radius: 5px;
}
.shared-side .sn-item-trigger {
  opacity: 0.6;
}
.shared-side .sn-item-trigger[aria-expanded="true"] {
  opacity: 1;
  background: var(--active);
  color: var(--text);
}
.sn-row:has(.sn-item-actions) {
  flex-wrap: wrap;
}
.sn-item-actions {
  display: grid;
  flex: 0 0 100%;
  min-width: 0;
  padding: 4px 7px 7px 24px;
  gap: 2px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.sn-item-actions > button {
  min-height: 29px;
  padding: 4px 7px;
  justify-content: flex-start;
  gap: 9px;
  color: var(--quiet);
  border-radius: 4px;
}
.sn-item-actions > button:not(:disabled):hover,
.sn-item-actions > button:focus-visible {
  background: var(--active);
  color: var(--text);
}
.sn-item-actions > button:disabled {
  opacity: 0.37;
}
.sn-rename {
  gap: 7px;
}
.sn-rename label {
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
  color: var(--quiet);
}
.sn-rename input {
  min-width: 0;
  width: 100%;
  min-height: 32px;
}
.sn-rename > div {
  display: flex;
  gap: 6px;
}
.sn-rename small {
  color: var(--red);
}
.sn-rename small:empty {
  display: none;
}
.sn-overflow summary {
  cursor: pointer;
  width: fit-content;
  padding: 6px 0 6px 16px;
  color: var(--quiet);
  font-size: 0.87rem;
}
.sn-row:hover,
.sn-row:has([aria-current="page"]) {
  background: var(--active);
}
.sn-row > a {
  flex: 1;
  min-width: 0;
}
.sn-row a span,
.sn-account > span:nth-child(2) {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sn-row a > svg,
.sn-row a i {
  flex: none;
}
.sn-row time {
  font-variant-numeric: tabular-nums;
  color: var(--quiet);
  font-size: 0.85rem;
}
.sn-dot {
  display: inline-block;
  margin-inline: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b398ed;
}
.sn-dot.tint-1 {
  background: #70b6bd;
}
.sn-dot.tint-2 {
  background: #d6ad67;
}
.sn-dot.tint-3 {
  background: #86b39a;
}
.sn-dot.tint-4 {
  background: #d28d84;
}
.shared-side .sn-empty {
  min-height: 25px;
  padding: 3px 12px 3px 25px;
  font-size: 0.87rem;
}
.shared-side footer {
  justify-content: space-between;
  flex: none;
  gap: 3px;
}
.shared-side .sn-account {
  min-width: 0;
  flex: 1;
  padding: 4px 6px;
  gap: 9px;
  color: var(--text);
}
.sn-avatar {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #343044;
  color: #decef8;
}
.shared-side .sn-account small {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.77rem;
  color: var(--quiet);
}
.sn-page-star {
  margin-left: auto;
}
.sn-settings {
  max-width: 43rem;
}
.sn-settings h2 {
  margin: 24px 0 9px;
  font-size: 1.1rem;
  font-weight: 600;
}
.sn-settings p {
  color: var(--quiet);
}
.sn-settings .sn-row {
  border-bottom: 1px solid var(--line);
  min-height: 35px;
  border-radius: 0;
}
.sn-settings .sn-icon {
  opacity: 1;
}
.sn-settings .sn-icon:disabled {
  opacity: 0.25;
}
.sn-settings .sn-row a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px;
  color: var(--text);
  text-decoration: none;
}
.sn-settings .sn-row a svg {
  width: 15px;
  height: 15px;
  color: var(--quiet);
}
.sn-filter {
  gap: 8px;
}
.sn-filter input {
  min-width: 0;
  flex: 1;
}
.sn-filter input,
.sn-filter select {
  min-height: 36px;
}
.sn-results {
  max-height: 17rem;
  overflow-y: auto;
  margin-top: 6px;
}
.sn-switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.sn-switches button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 6px;
  min-height: 36px;
  border-bottom: 1px solid var(--line);
}
.sn-switches i {
  display: inline-flex;
  align-items: center;
  width: 26px;
  height: 15px;
  border-radius: 10px;
  padding: 2px;
  background: var(--active);
  border: 1px solid var(--line);
}
.sn-switches i::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--quiet);
  border-radius: 50%;
}
.sn-switches [aria-checked="true"] i {
  justify-content: flex-end;
  background: #214d40;
}
.sn-switches [aria-checked="true"] i::after {
  background: #95dfbc;
}
@media (hover: none), (max-width: 760px) {
  .sn-tools,
  .sn-row > .sn-icon {
    opacity: 1;
  }
}
@media (max-width: 760px) {
  .shared-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .shared-side .sn-close {
    display: inline-grid;
    margin-left: 0;
  }
  .shared-side {
    height: 100dvh;
    padding: 12px 14px;
  }
  .sn-row > a {
    min-height: 38px;
  }
  .sn-block {
    margin-block: 6px;
  }
  .sn-tools .sn-icon,
  .sn-tools .sn-all,
  .sn-row > .sn-icon {
    min-width: 32px;
    min-height: 32px;
  }
  .sn-item-actions > button {
    min-height: 38px;
  }
}
.public-day {
  max-width: 66rem;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem);
}
.public-day > header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.public-day > header img {
  width: 1.6rem;
  height: 1.6rem;
}
.public-day > header a {
  margin-left: auto;
  font-weight: 400;
}
