@charset "UTF-8";
/* Public presentation only; this stylesheet is safe to cache offline. */
:root {
  --bg: #fff5f9;
  --surface: #fffafd;
  --ink: #2b222b;
  --muted: #796a76;
  --line: #eddde5;
  --accent: #b52869;
  --soft: #fbe5ef;
  --nav: #211d23;
  --danger: #b34545;
  --shadow: 0 16px 50px #39212f18;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 10px;
  font-weight: 650;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
h3 {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 16px;
}
small {
  font-size: 11px;
}
.muted,
.help {
  color: var(--muted);
}
.help {
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
  margin: 6px 0 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  width: 240px;
  color: #ded1d8;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 32px 20px 0;
  display: flex;
  flex-direction: column;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.wordmark small {
  display: block;
  letter-spacing: 0.3px;
  font-weight: 400;
  color: #a68f9b;
  font-size: 10px;
  margin-top: 2px;
}
.logo {
  font-size: 34px;
  color: #d377a5;
  line-height: 1;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #a28c97;
  margin: 48px 14px 13px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  color: #bbaab3;
  background: transparent;
  border-radius: 7px;
  text-align: left;
  margin-bottom: 5px;
  font-size: 13px;
}
.nav-item.active {
  background: #402a35;
  color: #f0c4da;
}
.nav-item:hover {
  background: #3a242f;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  background: #604955;
  color: #eed3e1;
  padding: 1px 6px;
  border-radius: 4px;
}
.sidebar-note {
  margin: auto 9px 24px;
  padding: 18px 0 5px;
  border-top: 1px solid #ffffff15;
}
.sidebar-note svg {
  color: #bb799a;
  display: block;
  margin-bottom: 10px;
}
.sidebar-note strong {
  font-size: 11px;
  font-weight: 500;
}
.sidebar-note p {
  font-size: 11px;
  line-height: 1.7;
  color: #a5909b;
  margin: 6px 0;
}
.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #ffffff15;
  padding: 20px 0;
  font-size: 10px;
}
.sidebar-bottom small {
  display: block;
  font-size: 9px;
  color: #a88f9c;
}
.sidebar-bottom .icon-button {
  margin-left: auto;
  color: #ad94a1;
}
.avatar {
  background: #503643;
  color: #e3c1d2;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.main {
  margin-left: 240px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: #ffffffa6;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 12px;
  color: #b8c0c7;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.topbar-right {
  display: flex;
  gap: 22px;
  align-items: center;
}
.local-badge {
  font-size: 10px;
  color: #78656f;
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #b55485;
  border-radius: 50%;
  display: inline-block;
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}
.icon-button:hover {
  background: #9f7f8f20;
  color: var(--accent);
}
.content {
  padding: 40px 42px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.page-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.primary,
.secondary,
.ghost,
.danger {
  border-radius: 6px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 37px;
}
.primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: white;
}
.primary:hover {
  background: #64123b;
}
.secondary {
  background: var(--surface);
  border: 1px solid #dce3e7;
  color: #44515c;
}
.secondary:hover {
  border-color: #b9aab2;
}
.ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
}
.danger {
  background: #b44646;
  color: #fff;
  border: 1px solid #b44646;
}
.wide {
  width: 100%;
  justify-content: space-between;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 28px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 19px 21px;
  position: relative;
}
.metric-label {
  font-size: 11px;
  color: #74808b;
}
.metric-value {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 9px 0 3px;
}
.metric-foot {
  font-size: 10px;
  color: #8b96a1;
}
.metric-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  background: #f6f3f4;
  color: #87707c;
  border-radius: 7px;
  padding: 7px;
  display: flex;
}
.metric.good .metric-value {
  color: var(--accent);
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 19px 23px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h3 {
  margin: 0;
  font-size: 13px;
}
.panel-heading p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}
.search {
  position: relative;
  flex: 1;
  max-width: 330px;
}
.search svg {
  position: absolute;
  left: 11px;
  top: 10px;
  color: #929fa8;
  width: 16px;
}
.search input {
  padding-left: 34px !important;
}
.toolbar input,
.toolbar select {
  font-size: 11px;
  min-height: 35px;
  padding: 7px 10px;
}
.toolbar select {
  width: auto;
  min-width: 115px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.7px;
  font-weight: 600;
  color: #84909b;
  background: #fcfcfd;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 22px;
  border-bottom: 1px solid #f0f2f4;
  font-size: 11px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fdfbfc;
}
.watch-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}
.site-icon {
  width: 33px;
  height: 36px;
  border: 1px solid #ece6e9;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #f8f5f7;
  color: #824c67;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}
.watch-title {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.watch-url {
  display: block;
  color: #97a0a9;
  font-size: 10px;
  max-width: 290px;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 500;
  background: #f3eff1;
  color: #7e6b75;
}
.badge.green {
  background: #f6e9f0;
  color: #83355c;
}
.badge.blue {
  background: #edf3fc;
  color: #5479b2;
}
.badge.red {
  background: #fbebeb;
  color: #b66161;
}
.badge.amber {
  background: #fff4e3;
  color: #a88140;
}
.group-tag {
  display: inline-flex;
  font-size: 9px;
  color: #7d8691;
  border: 1px solid #e9ecef;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 6px;
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1px;
}
.row-actions svg {
  width: 15px;
  height: 15px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 13px 22px;
  color: #949da6;
  font-size: 10px;
  border-top: 1px solid var(--line);
}
.empty {
  text-align: center;
  padding: 65px 25px 60px;
  max-width: 550px;
  margin: auto;
}
.empty-symbol {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: #f6eef2;
  border: 1px solid #e9d9e1;
  border-radius: 18px;
  color: #93476d;
}
.empty-symbol svg {
  width: 29px;
  height: 29px;
}
.empty h2 {
  font-size: 19px;
  margin-bottom: 10px;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 22px;
}
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}
.feature-item {
  display: flex;
  gap: 12px;
  padding: 6px;
}
.feature-item svg {
  color: #a68f9b;
  width: 17px;
}
.feature-item strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #706269;
}
.feature-item p {
  font-size: 10px;
  line-height: 1.7;
  color: #939ca4;
  margin: 4px 0 0;
}
.main-footer {
  padding: 18px 42px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #909ba5;
  font-size: 9px;
  letter-spacing: 0.2px;
}
.pause-banner,
.offline {
  padding: 12px 20px;
  border: 1px solid #e5d5b5;
  background: #fff9ed;
  color: #997b46;
  font-size: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
}
.offline {
  margin: 15px 42px 0;
}
.dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  width: 620px;
  max-width: calc(100vw - 30px);
  max-height: 92vh;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.dialog::backdrop {
  background: #23101a65;
  backdrop-filter: blur(3px);
}
.editor-dialog {
  width: 760px;
}
.detail-dialog {
  width: 920px;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 {
  font-size: 21px;
  margin: 0;
}
.dialog-header .eyebrow {
  font-size: 9px;
  margin-bottom: 6px;
}
.dialog-body {
  padding: 25px 28px;
  max-height: calc(92vh - 160px);
  overflow: auto;
}
.dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 28px;
  background: #fbfafb;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.dialog-footer > div {
  display: flex;
  gap: 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.span-2 {
  grid-column: span 2;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #525f68;
  margin-bottom: 14px;
}
.form-grid label {
  margin: 0;
}
input,
select,
textarea {
  border: 1px solid #dfe5e9;
  border-radius: 5px;
  padding: 10px 11px;
  min-height: 39px;
  background: #fff;
  color: #293842;
  width: 100%;
  font-size: 12px;
  transition: border-color 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #9e5c7d;
  outline: 2px solid #9e5c7d18;
}
input::placeholder,
textarea::placeholder {
  color: #a0aab1;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input[type="file"] {
  font-size: 11px;
  padding: 9px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  min-height: 14px;
  flex-shrink: 0;
}
.check-label {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
  gap: 8px;
}
.form-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
details {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #6a535f;
}
.form-options {
  display: flex;
  gap: 24px;
  margin: 23px 0 0;
  flex-wrap: wrap;
}
.error-text {
  font-size: 12px;
  color: var(--danger);
  margin-top: 10px;
  white-space: pre-wrap;
}
.error-text:empty {
  display: none;
}
.preview-box {
  padding: 18px;
  background: #f8f4f6;
  border: 1px solid #e9dce3;
  border-radius: 7px;
  margin-top: 18px;
}
.preview-box pre,
.content-value {
  font:
    12px/1.7 Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 260px;
  overflow: auto;
  margin: 10px 0 0;
}
.preview-box img {
  width: 100%;
  border: 1px solid var(--line);
  margin-top: 15px;
  cursor: crosshair;
  border-radius: 5px;
}
.preview-box h3 {
  margin: 0;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #3d202f;
  color: white;
  padding: 13px 22px;
  border-radius: 7px;
  box-shadow: var(--shadow);
  z-index: 10;
  font-size: 12px;
  max-width: 85vw;
}
.activity-item {
  padding: 20px 23px;
  display: flex;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.activity-item:last-child {
  border-bottom: 0;
}
.activity-mark {
  margin-top: 4px;
  width: 28px;
  height: 28px;
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.activity-mark.error {
  background: #fbebeb;
  color: #bb6868;
}
.activity-copy {
  min-width: 0;
  flex: 1;
}
.activity-copy h3 {
  margin: 0 0 5px;
  font-size: 12px;
}
.activity-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.activity-time {
  font-size: 10px;
  color: #9ba3aa;
}
.unread-dot {
  background: #a9537e;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 7px;
}
.activity-snippet {
  margin-top: 12px;
  padding: 10px 13px;
  background: #f8f6f7;
  border-radius: 5px;
  color: #776970;
  font-size: 11px;
  max-height: 72px;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.detail-meta a {
  font-size: 12px;
  color: var(--accent);
  overflow-wrap: anywhere;
  word-break: break-all;
}
.detail-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.detail-section {
  margin-top: 25px;
}
.detail-section h3 {
  margin-bottom: 12px;
}
.diff {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  max-height: 350px;
  overflow: auto;
  background: #fafbfc;
}
.diff pre {
  margin: 0;
  padding: 4px 12px;
  font:
    11px/1.7 Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.diff .added {
  background: #f5e7ee;
  color: #692849;
}
.diff .removed {
  background: #fae9e8;
  color: #a24d4d;
  text-decoration: line-through;
}
.check-history {
  border: 1px solid var(--line);
  border-radius: 6px;
}
.check-row {
  display: grid;
  grid-template-columns: 160px 100px 1fr;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.check-row:last-child {
  border-bottom: 0;
}
.check-row span:last-child {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.settings-body {
  padding: 24px;
}
.settings-body h3 {
  margin-top: 24px;
}
.settings-body h3:first-child {
  margin-top: 0;
}
.settings-body p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.settings-body button {
  margin-right: 7px;
  margin-bottom: 7px;
}
.session-card {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.session-card:last-child {
  border-bottom: 0;
}
.session-card h3 {
  margin: 0;
  font-size: 13px;
}
.session-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
}
.session-card .icon-button {
  margin-left: auto;
}
.small-dialog {
  width: 420px;
}
.watch-group-card { margin: 16px 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.watch-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; background: var(--bg); }
.group-disclosure { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; padding: 4px; }
.group-disclosure strong { font-size: 17px; overflow-wrap: anywhere; }
.group-summary { display: block; font-size: 12px; margin-top: 5px; color: var(--muted); }
.group-chevron { font-size: 23px; color: var(--accent); }
.group-members { border-top: 1px solid var(--line); }
.group-view-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 12px 0; }
.ungrouped-heading { margin: 28px 20px 12px; font-size: 16px; }
.gallery-navigation, .gallery-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.gallery-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.watch-group-card h3 { margin: 0 0 6px; }
img[data-watch-image], #watch-image-preview {
  cursor: zoom-in;
}
img[data-watch-image]:focus-visible, #watch-image-preview:focus-visible {
  outline: 3px solid var(--primary, #b52869);
  outline-offset: 3px;
}
#photo-lightbox {
  width: min(680px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 28px);
  height: fit-content;
  padding: 16px;
  border: 0;
  border-radius: 18px;
  background: #211d23;
  color: #fff;
  overflow: auto;
}
#photo-lightbox::backdrop { background: #140f16dd; }
#photo-lightbox > button { display: block; margin: 0 0 12px auto; }
#photo-lightbox > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 125px);
  object-fit: contain;
  border-radius: 8px;
}
#timed-pause {
  height: fit-content;
  max-height: calc(100dvh - 28px);
}
#timed-pause .dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
code {
  font:
    11px Consolas,
    monospace;
  background: #f0eaed;
  border-radius: 3px;
  padding: 2px 4px;
}
.load-more {
  display: block;
  margin: 18px auto;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: var(--nav);
  color: #ece1e7;
  padding: 55px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-story h1 {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -2px;
  font-weight: 500;
}
.login-story p {
  font-size: 14px;
  color: #bba5b0;
  max-width: 370px;
  line-height: 1.9;
  margin: 24px 0;
}
.login-story .eyebrow {
  color: #c98dab;
}
.story-line {
  font-size: 11px;
  color: #bda3b0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-panel form {
  width: 340px;
}
.login-panel h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.login-panel .muted {
  font-size: 13px;
  margin-bottom: 30px;
}
.login-panel .wide {
  margin-top: 12px;
}
.login-panel .help {
  margin-top: 25px;
  font-size: 11px;
  line-height: 1.8;
}
.login-panel label {
  margin-top: 20px;
}
.change-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.change-actions .secondary {
  font-size: 10px;
  padding: 5px 9px;
  min-height: 28px;
}
.change-url {
  overflow-wrap: anywhere;
  max-width: 380px;
}
.email-panel {
  margin-top: 24px;
}
.email-panel form {
  max-width: 720px;
}
.email-panel form > .primary {
  margin-top: 18px;
}
.email-example {
  background: #f7f4f6;
  border-left: 3px solid #c9a4b7;
  padding: 15px 20px;
  margin: 20px 0;
  font-size: 12px;
}
.email-example p {
  margin-bottom: 0;
}
.session-card .empty-symbol {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 10px;
}
.session-card .empty-symbol svg {
  width: 20px;
  height: 20px;
}
@media (min-width: 1600px) {
  .content {
    padding: 45px 60px;
  }
  .topbar,
  .main-footer {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .main {
    margin-left: 205px;
  }
  .content {
    padding: 30px 25px;
  }
  .topbar,
  .main-footer {
    padding-left: 25px;
    padding-right: 25px;
  }
  .metric {
    padding: 16px;
  }
  .metric-icon {
    display: none;
  }
  td,
  th {
    padding-left: 15px;
    padding-right: 15px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 38px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px 18px;
    display: block;
  }
  .sidebar .wordmark {
    font-size: 18px;
  }
  .sidebar .wordmark small,
  .nav-label,
  .sidebar-note,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    margin-top: 16px;
    gap: 5px;
  }
  .nav-item {
    width: auto;
    flex: 1;
    padding: 9px;
    justify-content: center;
    font-size: 10px;
    margin: 0;
    gap: 6px;
  }
  .nav-count {
    display: none !important;
  }
  .nav-item svg {
    width: 15px;
  }
  .main {
    margin: 0;
  }
  .topbar {
    height: 52px;
    padding: 0 20px;
  }
  .content {
    padding: 25px 18px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .page-actions .secondary {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .metric {
    padding: 14px;
  }
  .metric-value {
    font-size: 25px;
  }
  .toolbar {
    padding: 13px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .search {
    max-width: none;
    min-width: 100%;
  }
  .toolbar select {
    flex: 1;
  }
  .feature-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .main-footer {
    padding: 18px;
  }
  .main-footer span:last-child {
    display: none;
  }
  .dialog-header,
  .dialog-footer {
    padding: 18px;
  }
  .dialog-body {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .form-options {
    gap: 5px;
  }
  .check-row {
    grid-template-columns: 110px 75px 1fr;
    font-size: 10px;
    gap: 8px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 0;
    padding: 25px;
  }
  .login-story > div:nth-child(2),
  .login-story > .muted {
    display: none;
  }
  .login-panel {
    min-height: 75vh;
    padding: 35px 25px;
  }
  .dialog-footer .help {
    display: none;
  }
  .activity-time {
    max-width: 80px;
  }
  .local-badge {
    font-size: 9px;
  }
}

/* Installed-app shell and touch layouts; preserve the desktop workspace. */
html {
  -webkit-text-size-adjust: 100%;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid #9e396c;
  outline-offset: 3px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.mobile-only {
  display: none;
}
.install-button {
  font-size: 12px;
}
.install-icon {
  border-radius: 16px;
}
.app-update {
  position: fixed;
  z-index: 30;
  bottom: 20px;
  right: 20px;
  max-width: calc(100vw - 40px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}
.offline-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px
    max(24px, env(safe-area-inset-bottom));
  background: #2c1521;
}
.offline-card {
  background: var(--bg);
  border-radius: 24px;
  padding: 36px;
  max-width: 460px;
  width: 100%;
}
.offline-card img {
  display: block;
  border-radius: 20px;
  margin-bottom: 32px;
}
.offline-card h1 {
  font-size: 32px;
  letter-spacing: -1px;
}
.offline-card p {
  overflow-wrap: anywhere;
}
.offline-card .primary {
  margin-top: 20px;
}
.picker-frame {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
  touch-action: pan-x pan-y pinch-zoom;
}
.picker-frame img {
  display: block;
  width: 100%;
  cursor: crosshair;
}
.picker-frame.enlarged img {
  width: 1280px;
  min-width: 1280px;
  max-width: none;
}
.detail-meta a,
.session-card p {
  overflow-wrap: anywhere;
  min-width: 0;
}
.dialog-body {
  overscroll-behavior: contain;
}
.dialog-header h2 {
  overflow-wrap: anywhere;
  min-width: 0;
}
.dialog-header .icon-button {
  flex-shrink: 0;
}
.change-actions {
  flex-wrap: wrap;
}
.change-url {
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 760px) {
  :root {
    font-size: 15px;
  }
  .mobile-only {
    display: inline-flex;
  }
  .primary,
  .secondary,
  .ghost,
  .danger,
  .change-actions .secondary {
    min-height: 44px;
  }
  input:not([type="checkbox"]),
  select,
  textarea {
    font-size: 16px;
    min-height: 46px;
  }
  button,
  a.secondary {
    min-height: 44px;
  }
  .icon-button {
    min-width: 44px;
    min-height: 44px;
  }
  .sidebar {
    background: #2c1521;
    padding: calc(15px + env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right)) 15px
      max(18px, env(safe-area-inset-left));
  }
  .sidebar .wordmark {
    font-size: 20px;
    min-height: 36px;
  }
  .sidebar nav {
    position: fixed;
    z-index: 20;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px max(8px, env(safe-area-inset-right))
      calc(8px + env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
    border-top: 1px solid #513242;
    background: #2c1521;
    gap: 4px;
    box-shadow: 0 -6px 24px #2c15210a;
  }
  .nav-item {
    position: relative;
    flex-direction: column;
    gap: 3px;
    min-height: 58px;
    padding: 7px 3px;
    font-size: 11px;
    border-radius: 10px;
    color: #d8c6cf;
  }
  .nav-item svg {
    width: 22px;
    height: 22px;
  }
  .nav-item.active {
    color: #ffe6f3;
    background: #492a39;
  }
  .nav-count:not([hidden]) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 20px;
    min-width: 20px;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    font-variant-numeric: tabular-nums;
    position: absolute;
    right: 9px;
    top: 2px;
    background: #d986b0;
    color: #361526;
    font-size: 10px;
    padding: 0 5px;
    border-radius: 999px;
  }
  #nav-total {
    display: none !important;
  }
  .main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
    min-width: 0;
  }
  .topbar {
    padding: 8px 14px;
    height: auto;
    min-height: 62px;
    gap: 8px;
  }
  .topbar-right {
    gap: 4px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .breadcrumb > span {
    margin: 0 5px;
  }
  .local-badge {
    display: none;
  }
  .install-button {
    padding: 8px;
    font-size: 12px;
  }
  .content {
    padding: 25px max(16px, env(safe-area-inset-right)) 20px
      max(16px, env(safe-area-inset-left));
  }
  .page-heading {
    display: block;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 29px;
    line-height: 1.2;
  }
  .page-heading p {
    font-size: 13px;
    line-height: 1.6;
  }
  .page-actions {
    justify-content: flex-start;
    margin-top: 17px;
    gap: 8px;
  }
  .page-actions .secondary {
    display: inline-flex;
  }
  .page-actions button {
    flex: 1;
    justify-content: center;
  }
  .metric {
    padding: 16px;
  }
  .metric-label {
    font-size: 12px;
  }
  .metrics .metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 66px;
    padding: 14px;
  }
  .metrics .metric-value {
    margin: 0;
    font-size: 25px;
  }
  .metrics .metric-foot {
    display: none;
  }
  .metric-foot {
    font-size: 11px;
    line-height: 1.5;
  }
  .panel-heading {
    flex-wrap: wrap;
    gap: 5px;
    padding: 17px;
  }
  .panel-heading h3 {
    font-size: 14px;
  }
  .panel-heading p {
    margin: 0;
  }
  .toolbar select {
    min-width: 0;
    width: 0;
  }
  .table-wrap {
    overflow: visible;
  }
  #watch-table table,
  #watch-table tbody {
    display: block;
    white-space: normal;
  }
  #watch-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #watch-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 18px;
    gap: 13px 18px;
    border-top: 1px solid var(--line);
  }
  #watch-table td {
    display: block;
    padding: 0;
    border: none;
    min-width: 0;
    font-size: 13px;
  }
  #watch-table td:first-child,
  #watch-table td:last-child {
    grid-column: 1 / -1;
  }
  #watch-table td:not(:first-child):not(:last-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 5px;
  }
  .watch-cell {
    min-width: 0;
    align-items: flex-start;
  }
  .watch-cell > div:last-child {
    min-width: 0;
    flex: 1;
  }
  .site-icon {
    width: 39px;
    height: 43px;
    flex-shrink: 0;
  }
  .watch-title {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .watch-url {
    max-width: 100%;
    font-size: 12px;
    white-space: nowrap;
  }
  .row-actions {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    padding-top: 9px;
    gap: 12px;
  }
  .row-actions .icon-button {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fcfafb;
  }
  .table-footer {
    padding: 14px 18px;
    gap: 12px;
  }
  .table-footer span:last-child {
    max-width: 145px;
    text-align: right;
  }
  .activity-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 18px 16px;
    gap: 5px 10px;
  }
  .activity-copy {
    grid-column: 2;
  }
  .activity-copy p {
    font-size: 13px;
  }
  .activity-time {
    grid-column: 2;
    max-width: none;
    font-size: 11px;
    margin-top: 9px;
  }
  .activity-snippet {
    font-size: 13px;
    max-height: 120px;
    overflow-wrap: anywhere;
  }
  .change-actions {
    gap: 8px;
  }
  .change-actions .secondary {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    white-space: nowrap;
  }
  .change-url {
    flex-basis: 100%;
  }
  .settings-body {
    padding: 18px;
  }
  .settings-body p,
  .help {
    font-size: 13px;
    line-height: 1.65;
  }
  .settings-body .secondary {
    margin: 5px 4px 5px 0;
  }
  .session-card {
    flex-wrap: wrap;
    padding: 18px;
    gap: 12px;
  }
  .session-card > div:nth-child(2) {
    flex: 1;
    min-width: 0;
  }
  .session-card p {
    font-size: 13px;
  }
  .dialog {
    max-width: 100%;
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: none;
  }
  .dialog[open],
  .dialog > form {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .dialog > form {
    height: 100%;
  }
  .dialog-header {
    flex-shrink: 0;
    padding: calc(16px + env(safe-area-inset-top)) 18px 16px;
    gap: 12px;
  }
  .dialog-body {
    flex: 1;
    min-height: 0;
    max-height: none;
    padding: 20px 18px;
  }
  .dialog-footer {
    flex-shrink: 0;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
    flex-wrap: wrap;
  }
  .dialog-footer > div {
    flex: 1;
    justify-content: flex-end;
  }
  .dialog-footer button {
    padding: 11px 12px;
    font-size: 13px;
  }
  .small-dialog {
    height: auto;
    max-height: 85dvh;
    width: calc(100% - 28px);
    max-width: 460px;
    margin: auto;
    border-radius: 18px;
  }
  .small-dialog .dialog-header {
    padding-top: 20px;
  }
  .detail-meta,
  .detail-actions {
    flex-wrap: wrap;
  }
  .detail-meta a {
    flex-basis: 100%;
    font-size: 13px;
  }
  .check-row {
    grid-template-columns: 1fr auto;
    font-size: 12px;
  }
  .check-row > :last-child {
    grid-column: 1 / -1;
  }
  .login-story {
    padding: calc(24px + env(safe-area-inset-top)) 24px 24px;
    background: #2c1521;
  }
  .login-panel {
    min-height: calc(100dvh - 110px);
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    align-items: flex-start;
    padding-top: 48px;
  }
  .login-panel h2 {
    font-size: 30px;
  }
  .login-panel .secondary {
    margin-top: 14px;
  }
  .toast {
    bottom: calc(92px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 32px);
    width: max-content;
    font-size: 13px;
  }
  .app-update {
    bottom: calc(92px + env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    max-width: none;
    padding: 12px;
    font-size: 13px;
  }
  .offline {
    padding: 14px 18px;
    font-size: 13px;
  }
  .offline-card {
    padding: 28px;
  }
}

.watch-notes-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.selector-guide {
  margin: 12px 0 18px;
  line-height: 1.6;
  font-size: 13px;
}
.selector-guide summary {
  cursor: pointer;
  font-weight: 600;
}
.selector-guide code {
  overflow-wrap: anywhere;
}

/* Local documentation centre */
.docs-entry {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 23px 26px;
  margin-bottom: 24px;
  border: 1px solid #e5ccd9;
  border-radius: 14px;
  background: linear-gradient(110deg, #f8eef3, #fff);
  text-decoration: none;
  color: var(--ink);
}
.docs-entry > span:nth-child(2) {
  display: grid;
  gap: 5px;
  flex: 1;
}
.docs-entry strong {
  font-size: 21px;
}
.docs-entry > span:nth-child(2) > span:last-child {
  color: #66525c;
  font-size: 13px;
  line-height: 1.6;
}
.docs-entry-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #efdce6;
  color: var(--accent);
  flex-shrink: 0;
}
.docs-entry-icon svg {
  width: 24px;
  height: 24px;
}
.docs-entry-arrow {
  font-size: 26px;
  color: var(--accent);
}
.docs-root {
  max-width: 1280px;
  margin: auto;
}
.docs-root a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.docs-root a:focus-visible,
.docs-root button:focus-visible,
.docs-entry:focus-visible {
  outline: 3px solid #a84b7a;
  outline-offset: 4px;
}
.docs-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}
.docs-back {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.docs-version {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.docs-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(115deg, #3b1729, #5b2440);
  padding: 38px 40px;
  color: #fff;
}
.docs-hero .eyebrow {
  color: #d9a8c1;
}
.docs-hero h1 {
  font-size: clamp(27px, 3.2vw, 40px);
  margin: 12px 0;
  letter-spacing: -1.2px;
  line-height: 1.15;
}
.docs-hero > p {
  color: #e8d5df;
  max-width: 580px;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 26px;
}
.docs-search {
  max-width: 650px;
}
.docs-search label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #f0e2e9;
  margin-bottom: 8px;
}
.docs-search-input {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.docs-search-input input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid #e2d1da;
  border-radius: 9px;
  background: white;
  color: #18212f;
  padding: 13px 15px;
  font-size: 14px;
}
.docs-search-input button {
  background: #f7f1f4;
  border-color: #e2d1da;
  color: #4e2138;
}
.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  margin-top: 32px;
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 122px);
  overflow: auto;
  padding: 0 14px 15px 0;
}
.docs-nav summary {
  font-size: 12px;
  font-weight: 700;
  padding: 0 0 16px;
  list-style: none;
  cursor: pointer;
  color: #63525b;
}
.docs-nav summary span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.docs-nav nav > a {
  margin-bottom: 10px;
}
.docs-nav a {
  display: block;
  text-decoration: none;
  color: #73666d;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 11px;
  border-radius: 7px;
  margin: 2px 0;
}
.docs-nav a:hover {
  background: #f3eef1;
  color: #55203b;
}
.docs-nav a[aria-current] {
  background: #f2e4eb;
  color: #60193d;
  font-weight: 650;
}
.docs-nav-group {
  margin-bottom: 18px;
}
.docs-nav-group h2 {
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #968a90;
  margin: 18px 11px 8px;
}
.docs-reading {
  min-width: 0;
}
.docs-welcome {
  border: 1px solid #e8e0e4;
  border-radius: 14px;
  background: #fff;
  padding: 28px 30px;
}
.docs-welcome h2 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 12px 0;
  line-height: 1.25;
}
.docs-welcome p {
  max-width: 520px;
  color: #786971;
  font-size: 14px;
  line-height: 1.7;
}
.docs-welcome > a {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 650;
}
.docs-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 32px;
}
.docs-quick-links a {
  text-decoration: none;
  border: 1px solid #e5dbe0;
  background: #fff;
  border-radius: 30px;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
}
.docs-category {
  margin: 0 0 32px;
}
.docs-category-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.docs-category-title > span {
  font-size: 12px;
  color: #8d4c6d;
  background: #f0e5eb;
  padding: 5px 7px;
  border-radius: 5px;
}
.docs-category h2 {
  font-size: 17px;
  margin: 0;
}
.docs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.docs-card {
  display: flex;
  flex-direction: column;
  padding: 21px;
  border: 1px solid #e7e0e3;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.docs-card:hover {
  border-color: #ad7b94;
  transform: translateY(-2px);
}
.docs-card h3 {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-size: 15px;
  color: #3c2631;
  margin: 0 0 9px;
  line-height: 1.5;
}
.docs-card h3 span {
  color: #a28895;
  font-weight: 400;
}
.docs-card p {
  font-size: 12px;
  color: #82757b;
  line-height: 1.7;
  margin: 0 0 18px;
}
.docs-card-meta {
  margin-top: auto;
  font-size: 10px;
  color: #81596d;
  letter-spacing: 0.3px;
}
.docs-article {
  padding: 30px 34px;
  border: 1px solid #e7e0e3;
  background: #fff;
  border-radius: 14px;
}
.docs-article h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin: 10px 0 14px;
  scroll-margin-top: 95px;
}
.docs-lead {
  color: #748078;
  line-height: 1.7;
  font-size: 15px;
}
.docs-toc {
  border: 1px solid #ece4e8;
  background: #faf8f9;
  border-radius: 10px;
  padding: 17px 20px;
  margin: 24px 0 30px;
}
.docs-toc strong {
  display: block;
  color: #908088;
  font-size: 10px;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}
.docs-toc button {
  display: block;
  text-align: left;
  padding: 6px 0;
  border: 0;
  background: none;
  color: #702e4f;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: none;
  height: auto;
}
.docs-section {
  margin: 30px 0;
}
.docs-section h3 {
  font-size: 19px;
  letter-spacing: -0.3px;
  margin: 0 0 13px;
  scroll-margin-top: 95px;
}
.docs-section p,
.docs-section li {
  color: #66565e;
  line-height: 1.85;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.docs-section strong {
  color: #422d38;
}
.docs-section li {
  padding-left: 4px;
  margin-bottom: 11px;
}
.docs-section ol,
.docs-section ul {
  padding-left: 23px;
}
.docs-section code {
  background: #f3eef1;
  color: #602844;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.docs-section pre {
  background: #331826;
  color: #f1e0e9;
  padding: 17px;
  border-radius: 9px;
  overflow: auto;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.docs-section pre code {
  color: inherit;
  background: none;
  padding: 0;
}
.docs-example {
  padding: 18px 21px;
  margin: 20px 0;
  border-left: 3px solid #a66e8a;
  background: #f7f0f3;
  border-radius: 0 9px 9px 0;
}
.docs-example > strong {
  font-size: 12px;
  color: #622b47;
}
.docs-example p:last-child {
  margin-bottom: 0;
}
.docs-note {
  background: #fff8e8;
  color: #75612e;
  border-left: 3px solid #ddbc69;
  padding: 16px 19px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.8;
  margin: 20px 0;
}
.docs-fields {
  margin: 10px 0 0;
}
.docs-fields > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.7fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #f1edef;
}
.docs-fields dt {
  font-size: 13px;
  color: #4c293b;
  font-weight: 650;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.docs-fields dd {
  margin: 0;
  font-size: 13px;
  color: #73656c;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.docs-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.docs-flow span {
  font-size: 12px;
  font-weight: 600;
  background: #f5edf1;
  border-radius: 8px;
  padding: 12px;
  color: #693c52;
}
.docs-next {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #ece5e9;
  padding-top: 22px;
  margin-top: 35px;
}
.docs-next a {
  font-size: 12px;
  line-height: 1.6;
  max-width: 48%;
}
.docs-result-heading h2 {
  font-size: 27px;
  margin: 10px 0;
}
.docs-result-heading p {
  font-size: 13px;
  color: #768178;
  overflow-wrap: anywhere;
}
.docs-results {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.docs-result {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e8dde3;
  padding: 23px;
  border-radius: 12px;
}
.docs-result:hover {
  border-color: #a97790;
}
.docs-result h3 {
  font-size: 17px;
  line-height: 1.5;
  color: #553143;
  margin: 10px 0;
}
.docs-result p {
  color: #807279;
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  overflow-wrap: anywhere;
}
.docs-empty {
  padding: 30px;
  border: 1px dashed #cbb7c1;
  border-radius: 12px;
  margin-top: 22px;
}
.docs-empty p {
  font-size: 14px;
  line-height: 1.7;
  color: #807179;
}
.docs-footnote {
  border-top: 1px solid #eae4e7;
  padding-top: 20px;
  margin-top: 35px;
  color: #869187;
  font-size: 11px;
  line-height: 1.8;
}
@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 22px;
  }
  .docs-article {
    padding: 25px;
  }
}
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
  }
  .docs-nav {
    position: static;
    max-height: none;
    padding: 0;
    border: 1px solid #e7dce2;
    background: white;
    border-radius: 10px;
  }
  .docs-nav summary {
    list-style: revert;
    padding: 16px;
  }
  .docs-nav summary span {
    display: inline;
    float: right;
    margin: 0;
  }
  .docs-nav nav {
    padding: 0 12px 12px;
  }
  .docs-nav a {
    padding: 10px;
    font-size: 13px;
  }
  .docs-nav-group h2 {
    margin-top: 22px;
  }
}
@media (max-width: 540px) {
  .docs-entry {
    padding: 18px;
    gap: 12px;
  }
  .docs-entry-icon {
    display: none;
  }
  .docs-hero {
    padding: 25px 20px;
    border-radius: 12px;
  }
  .docs-hero h1 {
    font-size: 29px;
  }
  .docs-hero > p {
    font-size: 13px;
  }
  .docs-search-input input {
    font-size: 16px;
    padding: 12px;
  }
  .docs-search-input {
    gap: 5px;
  }
  .docs-search-input button {
    padding: 10px;
  }
  .docs-version {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .docs-welcome {
    padding: 22px;
  }
  .docs-welcome h2 {
    font-size: 26px;
  }
  .docs-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-card {
    padding: 20px;
  }
  .docs-article {
    padding: 22px 18px;
  }
  .docs-article h2 {
    font-size: 26px;
  }
  .docs-fields > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  .docs-fields dt {
    font-size: 14px;
  }
  .docs-toc {
    padding: 15px;
  }
  .docs-toc button {
    padding: 8px 0;
  }
  .docs-example {
    padding: 16px;
  }
  .docs-quick-links {
    gap: 7px;
  }
  .docs-quick-links a {
    line-height: 1.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .docs-card {
    transition: none;
  }
  .docs-card:hover {
    transform: none;
  }
}

.docs-article h2:focus,
.docs-section h3:focus {
  outline: none;
}
.ai-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 32px 100px #061b2673,
    0 0 0 1px #ffffff66;
  width: min(800px, calc(100vw - 32px));
  max-height: 90dvh;
  padding: 0;
  border: 1px solid #e7dce2;
  border-radius: 16px;
}
.ai-dialog::backdrop {
  background: #091d2bd1;
  backdrop-filter: blur(7px);
}
.ai-dialog .dialog-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: #f6edf2;
  border-bottom: 1px solid #e4d3dc;
}
.ai-dialog h2 {
  font-size: 24px;
  margin: 8px 0 0;
}
.ai-body {
  padding: 25px 28px;
}
.ai-body form,
.ai-body section {
  margin: 18px 0 25px;
}
.ai-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 15px 0;
}
.ai-body input:not([type="checkbox"]),
.ai-body textarea,
.ai-body select {
  width: 100%;
  display: block;
  margin-top: 7px;
}
.ai-body .check-label {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  gap: 10px;
  line-height: 1.6;
}
.ai-body p {
  line-height: 1.75;
  font-size: 13px;
  color: #76666e;
}
.ai-body h3 {
  font-size: 18px;
}
.ai-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 300px;
  overflow: auto;
  background: #f5f0f3;
  padding: 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.ai-body details {
  margin: 16px 0;
}
.ai-body summary {
  cursor: pointer;
  font-size: 13px;
  color: #70264b;
}
.ai-body img {
  max-width: 100%;
  margin-top: 14px;
}
.ai-body .error-text {
  color: #b13a3a;
}
.ai-message {
  border: 1px solid #e8dfe3;
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
  background: #f8f4f6;
}
.ai-message.user {
  background: #fff;
  margin-left: 20px;
}
.ai-message strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7c4c64;
}
.ai-message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 540px) {
  .ai-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .ai-body {
    padding: 20px 20px max(24px, env(safe-area-inset-bottom));
  }
  .ai-dialog .dialog-heading {
    padding: max(18px, env(safe-area-inset-top)) 20px 18px;
  }
  .ai-dialog h2 {
    font-size: 22px;
  }
}
@media (max-width: 760px) {
  .sidebar .documentation-nav {
    display: none;
  }
}
.target-baseline {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.target-baseline summary,
.change-url,
#preview-url {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.combine-list {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin: 20px 0;
}
.combine-list label {
  padding: 8px 0;
  align-items: flex-start;
}
.combine-list label span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#combine-review {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
#combine-review li {
  margin-bottom: 8px;
}

/* Pink watcher palette and new watch controls. */
.sidebar {
  color: #f4e8ee;
}
.nav-item {
  color: #c9b7c2;
}
.nav-item.active {
  background: #49313f;
  color: #ffd2e6;
}
.nav-item:hover {
  background: #382832;
}
.logo {
  color: #ef8abb;
}
.primary:hover {
  background: #931c52;
}
.badge.green {
  background: #e8f4ed;
  color: #287047;
}
.diff .added {
  background: #e7f5eb;
  color: #28663c;
}
.diff .removed {
  background: #fae7e7;
  color: #a83a3a;
}
.site-icon {
  width: 48px;
  height: 48px;
  overflow: hidden;
}
.site-icon img,
.activity-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-watch-image {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}
.activity-visual {
  position: relative;
  flex-shrink: 0;
}
.activity-visual.with-image {
  width: 48px;
  height: 48px;
  margin-right: 5px;
}
.activity-visual > img {
  border-radius: 8px;
}
.activity-visual.with-image .activity-mark {
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 25px;
  height: 25px;
  border: 2px solid var(--surface);
}
.activity-visual.with-image .activity-mark svg {
  width: 15px;
  height: 15px;
}
.watch-image-settings {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 18px 0;
}
.watch-image-settings h3 {
  margin-bottom: 5px;
}
#watch-image-preview {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 12px;
}
.watch-image-settings .change-actions {
  margin-top: 12px;
}
#watch-chooser {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 460px;
  max-width: calc(100vw - 32px);
  height: fit-content;
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
#watch-chooser .dialog-header {
  padding: 20px 24px;
}
#watch-chooser .dialog-body {
  padding: 20px 24px 24px;
}
.watch-type-options {
  display: grid;
  gap: 12px;
}
.watch-type-choice {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.watch-type-choice:first-child {
  background: var(--soft);
  border-color: #e7acc6;
}
.watch-type-choice:hover {
  border-color: var(--accent);
}
.watch-type-choice > svg:first-child {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.watch-type-choice > svg:last-child {
  margin-left: auto;
  width: 16px;
}
.watch-type-choice span {
  font-weight: 650;
}
.watch-type-choice small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}
.ai-history-entry pre,
#explain-dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ai-history-entry .ai-message p,
#explain-result p {
  white-space: pre-wrap;
}
.crop-scroll {
  max-height: 52vh;
  overflow: auto;
  border: 1px solid var(--line);
  margin: 12px 0;
  background: #211d23;
}
#crop-stage {
  position: relative;
  width: 100%;
  user-select: none;
}
#crop-stage.selecting {
  cursor: crosshair;
  touch-action: none;
}
#crop-source {
  width: 100%;
  height: auto;
  display: block;
}
#crop-outline {
  pointer-events: none;
  position: absolute;
  border: 2px solid #ff3b91;
  box-shadow:
    0 0 0 1px #fff,
    inset 0 0 0 1px #fff;
}
#crop-stage.selecting #crop-outline { pointer-events: auto; cursor: move; }
.crop-handle { position: absolute; width: 18px; height: 18px; border: 2px solid #fff; background: #b52869; border-radius: 50%; z-index: 1; }
.crop-handle.nw { left: -9px; top: -9px; cursor: nwse-resize; }
.crop-handle.ne { right: -9px; top: -9px; cursor: nesw-resize; }
.crop-handle.sw { left: -9px; bottom: -9px; cursor: nesw-resize; }
.crop-handle.se { right: -9px; bottom: -9px; cursor: nwse-resize; }
#crop-outline::before,
#crop-outline::after {
  content: "";
  position: absolute;
  background: #ff3b91;
}
#crop-outline::before {
  width: 1px;
  height: 100%;
  left: 50%;
}
#crop-outline::after {
  height: 1px;
  width: 100%;
  top: 50%;
}
.crop-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.crop-controls input {
  width: 100%;
  padding: 0;
  accent-color: var(--accent);
}
.crop-result {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
#crop-preview {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  background: var(--soft);
}
.image-upload {
  cursor: pointer;
  margin: 0;
}
@media (max-width: 480px) {
  .crop-controls {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .crop-result {
    gap: 12px;
  }
}
@media (max-width: 760px) {
  .sidebar,
  .sidebar nav {
    background: var(--nav);
  }
}
