/* Shared Lynoa inbox: the site header and the dashboard toolbar. */
html.editorial-refresh .site-header .theme-toggle,
.dashboard-page.reference-workspace .studio-theme-toggle {
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 38px;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 11px !important;
  outline-offset: 3px;
  box-shadow: none !important;
  background: transparent !important;
  transition: color 180ms ease, background-color 180ms ease !important;
}
html.editorial-refresh .site-header .theme-toggle:hover,
.dashboard-page.reference-workspace .studio-theme-toggle:hover {
  background: rgba(170, 159, 205, .11) !important;
}

.ly-inbox {
  --ly-panel-bg: #18171d;
  --ly-panel-surface: #222128;
  --ly-panel-text: #f6f4fb;
  --ly-panel-muted: #aba6b8;
  --ly-panel-line: rgba(228, 222, 247, .10);
  --ly-panel-accent: #d0bdf8;
  --ly-badge: #f04461;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  isolation: isolate;
}
html[data-theme='light'] .ly-inbox {
  --ly-panel-bg: #ffffff;
  --ly-panel-surface: #f5f3f9;
  --ly-panel-text: #25212e;
  --ly-panel-muted: #81798b;
  --ly-panel-line: rgba(57, 43, 72, .11);
  --ly-panel-accent: #7653b7;
}
.ly-inbox-trigger,
.ly-inbox-dismiss,
.ly-inbox-back,
.ly-inbox-item { appearance: none; -webkit-appearance: none; font: inherit; }
.ly-inbox-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 9px;
  border: 0 !important;
  border-radius: 11px;
  box-shadow: none !important;
  background: transparent !important;
  color: inherit;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}
.ly-inbox-trigger:hover,
.ly-inbox.is-open .ly-inbox-trigger { background: rgba(170, 159, 205, .13) !important; }
.ly-inbox-trigger svg { display: block; width: 21px; height: 21px; }
.ly-inbox-badge {
  position: absolute;
  right: -3px;
  bottom: -2px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #101014;
  border-radius: 99px;
  color: #fff;
  background: var(--ly-badge);
  font: 750 10px/1 system-ui, sans-serif;
  letter-spacing: -.025em;
  box-sizing: border-box;
  pointer-events: none;
}
html[data-theme='light'] .ly-inbox-badge { border-color: #fff; }
.ly-inbox-badge[hidden], .ly-inbox-popover[hidden] { display: none !important; }

.ly-inbox-popover {
  position: fixed;
  z-index: 2147481000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 180px;
  width: 390px;
  border: 1px solid var(--ly-panel-line);
  border-radius: 20px;
  background: var(--ly-panel-bg);
  color: var(--ly-panel-text);
  box-shadow: 0 30px 75px rgba(0, 0, 0, .46), 0 5px 18px rgba(0, 0, 0, .2);
  text-align: left;
  font-family: 'IBM Plex Sans JP', 'Noto Sans JP', system-ui, sans-serif;
  animation: ly-inbox-appear 190ms cubic-bezier(.2,.78,.3,1) both;
}
@keyframes ly-inbox-appear {
  from { opacity: 0; transform: translateY(-6px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ly-inbox-top,
.ly-inbox-bottom { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; }
.ly-inbox-top {
  padding: 19px 19px 16px 22px;
  border-bottom: 1px solid var(--ly-panel-line);
  font: 700 12px/1.4 system-ui, sans-serif;
  letter-spacing: .11em;
}
.ly-inbox-top-slash { margin: 0 5px; color: var(--ly-panel-muted); font-weight: 400; }
.ly-inbox-dismiss {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ly-panel-muted);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.ly-inbox-dismiss:hover, .ly-inbox-back:hover { background: var(--ly-panel-surface); color: var(--ly-panel-text); }
.ly-inbox-dismiss svg { width: 15px; height: 15px; }
.ly-inbox-content { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.ly-inbox-count {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 22px 22px 12px;
}
.ly-inbox-count strong { font-size: 15px; font-weight: 700; letter-spacing: -.025em; }
.ly-inbox-count > span { color: var(--ly-panel-muted); font-size: 11px; }
.ly-inbox-list { padding: 0 11px 17px; }
.ly-inbox-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 17px 22px 18px 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--ly-panel-text);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.ly-inbox-item:hover,
.ly-inbox-item.is-unread { background: var(--ly-panel-surface); }
.ly-inbox-item:hover { border-color: var(--ly-panel-line); }
.ly-inbox-item-meta { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; color: var(--ly-panel-muted); font-size: 10px; letter-spacing: .025em; }
.ly-inbox-item-category { color: var(--ly-panel-accent); font-weight: 700; }
.ly-inbox-item-title { font-size: 14px; font-weight: 700; line-height: 1.55; letter-spacing: -.015em; }
.ly-inbox-item-preview { margin-top: 6px; color: var(--ly-panel-muted); font-size: 11px; line-height: 1.8; }
.ly-inbox-item-indicator { position: absolute; top: 17px; right: 15px; width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.ly-inbox-item.is-unread .ly-inbox-item-indicator { background: var(--ly-badge); box-shadow: 0 0 0 3px rgba(240,68,97,.10); }
.ly-inbox-bottom { gap: 14px; padding: 15px 22px; border-top: 1px solid var(--ly-panel-line); }
.ly-inbox-bottom > span { color: var(--ly-panel-muted); font: 650 9px/1 system-ui,sans-serif; letter-spacing: .16em; }
.ly-inbox-bottom a { color: var(--ly-panel-accent); font-size: 11px; font-weight: 650; text-decoration: none; }
.ly-inbox-bottom a:hover { text-decoration: underline; }
.ly-inbox-back { display: flex; align-items: center; gap: 3px; margin: 13px 12px 0; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ly-panel-muted); font-size: 11px; cursor: pointer; }
.ly-inbox-back svg { width: 14px; height: 14px; }
.ly-inbox-detail { padding: 15px 24px 26px; }
.ly-inbox-detail-meta { display: flex; gap: 12px; align-items: center; color: var(--ly-panel-muted); font-size: 10px; }
.ly-inbox-detail-meta span { color: var(--ly-panel-accent); font-weight: 700; }
.ly-inbox-detail h2 { margin: 13px 0 18px; color: var(--ly-panel-text); font-size: 19px; font-weight: 750; line-height: 1.5; letter-spacing: -.035em; }
.ly-inbox-detail p { margin: 0 0 16px; color: var(--ly-panel-muted); font-size: 12px; line-height: 2; }
.ly-inbox-detail .ly-inbox-note { padding: 13px 14px; border-left: 2px solid var(--ly-panel-accent); border-radius: 0 8px 8px 0; background: var(--ly-panel-surface); color: var(--ly-panel-text); }
.ly-inbox :is(button,a):focus-visible { outline: 2px solid var(--ly-panel-accent); outline-offset: 2px; }
@media (max-width: 520px) {
  .ly-inbox-popover { border-radius: 16px; }
  .ly-inbox-top { padding: 15px 14px 13px 17px; }
  .ly-inbox-count { padding: 17px 18px 9px; }
  .ly-inbox-bottom { padding: 13px 17px; }
  .reference-workspace .topbar-actions { gap: 3px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ly-inbox-popover { animation: none; }
  .ly-inbox-trigger, .ly-inbox-item, .ly-inbox-dismiss { transition: none; }
}

/* Keep host-wide pill-button styles out of the inbox. */
.ly-inbox .ly-inbox-popover {
  min-height: 0; width: 340px; border-radius: 12px;
  background: var(--ly-panel-bg);
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.ly-inbox .ly-inbox-top {
  padding: 14px 16px; letter-spacing: 0; font-size: 14px;
}
.ly-inbox .ly-inbox-dismiss {
  border: 0 !important; border-radius: 6px !important;
  box-shadow: none !important; padding: 5px !important;
  background: transparent !important; width: 26px; height: 26px;
}
.ly-inbox .ly-inbox-count { padding: 10px 16px 0; justify-content: flex-end; }
.ly-inbox .ly-inbox-count strong { display: none; }
.ly-inbox .ly-inbox-count > span { font-size: 10px; }
.ly-inbox .ly-inbox-list { padding: 4px 6px 8px; }
.ly-inbox .ly-inbox-item {
  display: flex !important; flex-direction: column !important;
  width: 100% !important; height: auto !important; min-height: 0 !important;
  padding: 13px 24px 14px 10px !important;
  border: 0 !important; border-radius: 6px !important;
  box-shadow: none !important; transform: none !important;
  background: transparent !important; text-align: left !important;
  color: var(--ly-panel-text) !important; letter-spacing: 0 !important;
}
.ly-inbox .ly-inbox-item:hover { background: var(--ly-panel-surface) !important; }
.ly-inbox .ly-inbox-item-meta { margin-bottom: 5px; font-size: 10px; gap: 8px; }
.ly-inbox .ly-inbox-item-category { font-weight: 500; }
.ly-inbox .ly-inbox-item-title { font-size: 13px; font-weight: 600; }
.ly-inbox .ly-inbox-item-preview { font-size: 11px; margin-top: 4px; line-height: 1.7; }
.ly-inbox .ly-inbox-item-indicator { top: 17px; right: 10px; width: 5px; height: 5px; box-shadow: none !important; }
.ly-inbox .ly-inbox-bottom { justify-content: center; padding: 12px 16px; }
.ly-inbox .ly-inbox-bottom a { font-size: 11px; color: var(--ly-panel-muted); }
.ly-inbox .ly-inbox-trigger {
  border: 0 !important; border-radius: 7px !important;
  outline: none; box-shadow: none !important;
}
.ly-inbox .ly-inbox-trigger:focus-visible { outline: 2px solid var(--ly-panel-accent); }
.ly-inbox .ly-inbox-back { border: 0 !important; border-radius: 6px !important; box-shadow: none !important; }

/* Article typography must not inherit the landing-page hero heading rules. */
.ly-inbox .ly-inbox-detail { padding: 14px 20px 20px !important; }
.ly-inbox .ly-inbox-detail h2 {
  font: 600 17px/1.6 'IBM Plex Sans JP', 'Noto Sans JP', system-ui, sans-serif !important;
  letter-spacing: 0 !important; margin: 10px 0 16px !important;
  width: auto !important; max-width: none !important;
  white-space: normal !important; word-break: normal !important;
  text-wrap: wrap !important; text-transform: none !important;
}
.ly-inbox .ly-inbox-detail p {
  font-size: 12px !important; line-height: 1.9 !important;
  letter-spacing: 0 !important; margin: 0 0 14px !important;
}
.ly-inbox .ly-inbox-detail .ly-inbox-note {
  padding: 12px !important; border: 0 !important;
  border-radius: 6px !important; background: var(--ly-panel-surface) !important;
}
