.mobile-brandbar {
  display: none;
}

.account-link {
  color: var(--orange);
  font-size: .86rem;
  font-weight: 600;
  padding: 4px 2px;
}
.account-link:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.account-form > .primary {
  margin-top: 4px;
  min-height: 44px;
}
.account-switch, .account-identity {
  font-size: .87rem;
  color: var(--muted);
}
.account-switch {
  margin-top: 17px;
  text-align: center;
}
.account-identity {
  margin: -10px 0 20px;
  overflow-wrap: anywhere;
}
.account-session {
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.account-session .secondary {
  width: 100%;
}
.account-gate {
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
  min-height: 100dvh;
  padding: clamp(20px, 6vh, 72px) 18px;
  margin: 0;
  max-width: none;
}
.gate-wrap {
  width: min(100%, 416px);
}
.gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 25px;
  font-size: 1.95rem;
  font-weight: 760;
  letter-spacing: -.06em;
}
.gate-brand img {
  transform: rotate(-6deg);
}
.gate-card {
  padding: clamp(21px, 5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.gate-card h1 {
  margin: 0 0 24px;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.gate-card input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.gate-card .gate-email {
  margin: -12px 0 20px;
  color: var(--muted);
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.gate-signin {
  width: 100%;
  text-decoration: none;
}

.share-page {
  max-width: 720px;
}

.notifications-page {
  max-width: 850px;
}

.share-form,
.notification-list,
.notifications-page > .empty {
  margin-top: 25px;
}

.share-form {
  display: grid;
  gap: 25px;
  padding: 27px;
}

.share-field {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.share-field label {
  font-size: .94rem;
  font-weight: 580;
}

.share-field label span {
  margin-left: 7px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 400;
}

.share-url-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.share-url-box,
.share-field select,
.share-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--control-line, var(--line));
  border-radius: 9px;
  background: var(--surface-raised, var(--pale));
  color: var(--ink);
}

.share-url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.share-url-box > .icon {
  color: var(--muted);
}

.share-url-box:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.share-url-box input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.share-field input::placeholder,
.share-field textarea::placeholder {
  color: var(--muted);
}

.paste-short {
  flex-shrink: 0;
}

.share-group-select {
  position: relative;
}

.share-group-select .icon {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}

.share-field select,
.share-field textarea {
  min-height: 45px;
  padding: 11px 13px;
  font: inherit;
}

.share-field select {
  padding-right: 39px;
  appearance: none;
  cursor: pointer;
}

.share-field textarea {
  min-height: 85px;
  resize: vertical;
  line-height: 1.5;
}

.share-field select:focus-visible,
.share-field textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.share-form footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.notification-list {
  list-style: none;
  padding: 0;
  overflow: hidden;
}

.notification-list li + li {
  border-top: 1px solid var(--line);
}

.notification-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  padding: 19px 22px;
  text-align: left;
}

.notification-row:hover {
  background: var(--surface-hover, var(--pale));
}

.notification-row:focus-visible {
  outline-offset: -3px;
}

.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-byline,
.notification-source {
  display: flex;
  align-items: center;
  gap: 9px;
}

.notification-byline {
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}

.notification-byline strong {
  font-size: .92rem;
  font-weight: 620;
}

.notification-byline time,
.notification-source {
  color: var(--muted);
  font-size: .76rem;
}

.notification-text {
  display: -webkit-box;
  margin: 5px 0 7px;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: .94rem;
  line-height: 1.45;
  white-space: pre-line;
}

.notification-source {
  gap: 6px;
  line-height: 1.4;
}

.notification-source > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notification-thumb {
  width: 68px;
  aspect-ratio: 1.3;
  align-self: center;
  border-radius: 7px;
  object-fit: cover;
}

@media (max-width: 760px) {
  .mobile-brandbar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 6px 13px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .mobile-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px;
    font-size: 1.22rem;
    font-weight: 720;
    letter-spacing: -.04em;
  }

  .mobile-wordmark img {
    width: 25px;
    height: 25px;
  }

  .share-form {
    gap: 20px;
    margin-top: 20px;
    padding: 17px;
  }

  .notification-row {
    padding: 15px 13px;
    gap: 9px;
  }

  .notification-list,
  .notifications-page > .empty {
    margin-top: 19px;
  }

  .notification-thumb {
    width: 46px;
  }

  .notification-group {
    display: none;
  }
}

@media (max-width: 400px) {
  .share-url-row {
    flex-wrap: wrap;
  }

  .paste-short {
    justify-self: start;
  }
}
