/* CLAUDE 10-04: the notification center (notifications.js). Dark surfaces from DESIGN-SYSTEM.md. The panel has no
   primary action, so its buttons are quiet; green marks only the unread dot and the keyboard focus ring. */
.top-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* CLAUDE 10-06: the one-time "We updated our Terms and Privacy Policy" notice (app-account.js policyNotice) */
.policy-notice {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(640px, calc(100vw - 32px));
  padding: 12px 14px 12px 16px;
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  background: #121212;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
  font-size: 13.5px;
  line-height: 1.45;
  color: #d8d8db;
}
.policy-notice p {
  margin: 0;
  flex: 1;
}
.policy-notice a {
  color: #6dff3d;
}
.policy-notice button {
  flex: none;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #53fc18;
  color: #071200;
  font: 700 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
}
/* CLAUDE 10-05: Upgrade + the plans dropdown (pricing.js), for signed-in accounts */
.upgrade {
  position: relative;
  display: none;
  letter-spacing: 0; /* .workspace-top spaces its letters */
}
/* narrow top bar: the arrow alone; pricing.js stretches the menu across the screen */
@media (max-width: 820px) {
  .upgrade-btn {
    padding: 0 9px;
  }
  .upgrade-btn span {
    display: none;
  }
}
body.signed-in .upgrade {
  display: block;
}
.upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(83, 252, 24, 0.45);
  border-radius: 8px;
  background: rgba(83, 252, 24, 0.1);
  color: #6dff3d;
  font: 650 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.upgrade-btn:hover,
.upgrade-btn[aria-expanded='true'] {
  background: rgba(83, 252, 24, 0.18);
}
.upgrade-btn:focus-visible {
  outline: 3px solid #6dff3d;
  outline-offset: 2px;
}
.upgrade-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.upgrade-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: min(340px, 100vw - 32px);
  padding: 10px;
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  background: #121212;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
.upgrade-menu[hidden] {
  display: none;
}
.upgrade-now {
  margin: 2px 6px 8px;
  font-size: 12px;
  color: #a5a5a8;
}
.upgrade-now b {
  color: #f3f3f3;
}
.upgrade-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 9px;
}
.upgrade-plan + .upgrade-plan {
  border-top: 1px solid #222;
}
.upgrade-plan.mine {
  background: #1a1a1a;
}
.upgrade-plan b {
  color: #f3f3f3;
  font-size: 14px;
}
.upgrade-plan small {
  display: block;
  margin-top: 3px;
  color: #9a9a9d;
  font-size: 12px;
}
.upgrade-price {
  color: #d8d8db;
  font-size: 13px;
  font-weight: 650;
}
.upgrade-price small {
  display: inline;
  margin: 0;
}
.upgrade-buy {
  flex: none;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  background: #53fc18;
  color: #071200;
  font: 700 12.5px/1 inherit;
  font-family: inherit;
  cursor: pointer;
}
.upgrade-buy:disabled {
  opacity: 0.6;
}
.upgrade-mine {
  flex: none;
  font-size: 12px;
  color: #6dff3d;
}
.upgrade-all {
  width: 100%;
  margin-top: 6px;
  padding: 9px;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  background: transparent;
  color: #d3d3d6;
  font: 600 12.5px/1 inherit;
  font-family: inherit;
  cursor: pointer;
}
.upgrade-all:hover {
  background: #1a1a1a;
}
.notes-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #bdbdbd;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.notes-bell[hidden] {
  display: none;
}
.notes-bell:hover,
.notes-bell[aria-expanded='true'] {
  color: #f3f3f3;
  background: #161616;
  border-color: #2e2e2e;
}
.notes-bell svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notes-bell:focus-visible {
  outline: 3px solid #6dff3d;
  outline-offset: 2px;
}
.notes-badge {
  position: absolute;
  top: 2px;
  left: 19px; /* on the bell's shoulder, clear of its dome */
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  border: 2px solid #0b0b0b;
  background: #ff6a6a;
  color: #1a0303;
  font-size: 10px;
  font-weight: 750;
  line-height: 13px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.notes-badge[hidden] {
  display: none;
}
/* the editor header's chip is 12 px text; the bell keeps its own size there */
.account-chip .notes-bell {
  width: 32px;
  height: 32px;
}

.notes-panel {
  position: fixed;
  z-index: 60; /* above the toast (50) */
  width: 384px;
  max-height: min(560px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  background: #111113;
  color: #f3f3f3;
  border: 1px solid #262626;
  border-radius: 12px;
  box-shadow: 0 18px 50px #000a;
  overflow: hidden;
  letter-spacing: 0;
  animation: notes-in 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
.notes-panel[hidden] {
  display: none;
}
@keyframes notes-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .notes-panel {
    animation: none;
  }
}
.notes-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 10px 12px 16px;
  border-bottom: 1px solid #262626;
}
.notes-head h2 {
  margin: 0 auto 0 0;
  font-size: 15px;
  font-weight: 650;
  outline: none;
}
.notes-head button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #bdbdbd;
  font-size: 12px;
  font-weight: 600;
}
.notes-head button:hover:not(:disabled) {
  background: #1b1b1b;
  color: #f3f3f3;
}
.notes-head button:disabled {
  color: #6f6f6f;
  opacity: 1;
  cursor: default;
}
.notes-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.notes-list section + section {
  border-top: 1px solid #1d1d1f;
}
.notes-list h3 {
  margin: 0;
  padding: 12px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9a9a9a;
}
.notes-list ul {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
}
.note {
  position: relative;
  display: flex;
  align-items: stretch;
}
.note-open {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 8px;
  gap: 12px;
  align-items: start;
  padding: 10px 44px 10px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background 0.12s;
}
.note-open:hover,
.note-open:focus-visible {
  background: #18181a;
}
.note-open:focus-visible,
.note-x:focus-visible {
  outline: 3px solid #6dff3d;
  outline-offset: -3px;
}
.note-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1b1b1d;
  border: 1px solid #262626;
  color: #bdbdbd;
}
.note-ic svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.note[data-kind='failed'] .note-ic {
  color: #ff8a8a;
  background: #221212;
  border-color: #3a1d1d;
}
.note[data-kind='account'] .note-ic {
  color: #ffd84d;
  background: #201d0e;
  border-color: #38321a;
}
.note-txt {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.note-txt b {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #cfcfcf;
  overflow-wrap: anywhere;
}
.note.unread .note-txt b {
  color: #f3f3f3;
}
.note-txt span {
  font-size: 13px;
  line-height: 1.45;
  color: #b3b3b3;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-txt time {
  margin-top: 2px;
  font-size: 12px;
  color: #9a9a9a;
  font-variant-numeric: tabular-nums;
}
.note-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #53fc18;
}
.note-x {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9a9a9a;
}
.note-x:hover {
  background: #232325;
  color: #f3f3f3;
}
.note-x svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.notes-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 40px 32px 44px;
  text-align: center;
}
.notes-empty svg {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  fill: none;
  stroke: #6f6f6f;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notes-empty p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.notes-empty small {
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.5;
  color: #9a9a9a;
}
.notes-panel .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* phones: full width under the header, 16 px gutters */
@media (max-width: 600px) {
  .notes-panel {
    left: 16px;
    right: 16px !important;
    width: auto;
  }
}
/* the top bar fits the switcher and the bell at 375 px: the breadcrumb (the page name, also marked in the menu) goes */
@media (max-width: 480px) {
  .workspace-top #crumb {
    display: none;
  }
}
