:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172923;
  background: #f7f8f4;
  font-synthesis: none;
  --green: #184c3a;
  --muted: #718077;
  --border: #dde3da;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #7ab68b;
  outline-offset: 4px;
}
.topbar {
  min-height: 90px;
  border-bottom: 1px solid var(--border);
  padding: 22px 5%;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fafbf8;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.7px;
  white-space: nowrap;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: var(--green);
  color: #f1f5c7;
  border-radius: 9px;
  font-size: 29px;
}
.header-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin-left: auto;
}
#account {
  margin-left: auto;
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
}
#account-email {
  color: var(--muted);
}
main {
  max-width: 1260px;
  padding: 0 50px;
  margin: auto;
}
.login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  text-align: center;
  padding: 50px 0;
}
.login-card h1 {
  font-size: clamp(34px, 6vw, 48px);
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.login-card .eyebrow {
  color: var(--muted);
  margin-bottom: 30px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2px;
  margin: 0 0 24px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #579569;
  border-radius: 50%;
  flex-shrink: 0;
}
h1 {
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.09;
  letter-spacing: -2.8px;
  font-weight: 600;
  margin: 0 0 24px;
}
h1 span {
  color: #7b8c7d;
}
.intro {
  color: #6d7b71;
  font-size: 15px;
  line-height: 1.85;
  max-width: 455px;
  margin: 0 0 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 7px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 45px;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #236147;
}
.google-login {
  margin: 10px 0 12px;
  padding: 15px 22px;
  gap: 20px;
}
.google-mark {
  font-size: 20px;
  font-weight: 750;
}
.fine-print {
  font-size: 11px;
  line-height: 1.8;
  color: #7f8a81;
}
.preview-panel {
  padding: 32px;
  background: #e9eddf;
  border: 1px solid #e1e6d8;
  border-radius: 16px;
  transform: rotate(-1deg);
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #829078;
  letter-spacing: 1.4px;
  margin-bottom: 35px;
}
.preview-notification {
  background: #fbfcf8;
  border: 1px solid #e0e5d8;
  border-radius: 11px;
  padding: 23px 20px;
  display: flex;
  gap: 14px;
  box-shadow: 0 12px 30px #24352008;
}
.preview-symbol {
  height: 36px;
  min-width: 36px;
  border-radius: 9px;
  background: #e6efdf;
  display: grid;
  place-items: center;
  font-size: 23px;
}
.preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 8px;
  font-weight: 650;
  color: #72826d;
  letter-spacing: 1px;
}
.preview-meta span {
  font-size: 7px;
  color: #9ba697;
}
.preview-notification h3 {
  font-size: 14px;
  margin: 10px 0 5px;
  letter-spacing: -0.3px;
}
.preview-notification p {
  font-size: 10px;
  color: #7d8879;
  margin: 0;
  line-height: 1.7;
}
.preview-rule {
  height: 1px;
  background: #d6ddcc;
  margin: 32px 0;
}
.preview-feature {
  display: flex;
  gap: 19px;
  margin: 24px 0;
}
.preview-feature > span {
  font-size: 10px;
  color: #90a083;
  padding-top: 3px;
}
.preview-feature strong {
  font-size: 13px;
  font-weight: 550;
}
.preview-feature p {
  font-size: 11px;
  color: #86907d;
  margin: 6px 0;
}
.preview-footer {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #87957c;
  border-top: 1px solid #d6ddcc;
  padding-top: 20px;
  margin-top: 30px;
}
footer {
  border-top: 1px solid var(--border);
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #929b91;
}
footer span:first-child {
  font-weight: 650;
}
.loading {
  padding: 100px 0;
  color: var(--muted);
}
.message {
  padding: 15px 18px;
  background: #e7efe1;
  border: 1px solid #bdcfb4;
  border-radius: 8px;
  margin-top: 25px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.message.error {
  background: #fff0e9;
  border-color: #e7c6b7;
  color: #8a4230;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 54px 0 30px;
}
.page-heading h1 {
  font-size: 45px;
  letter-spacing: -2px;
}
.page-heading .eyebrow {
  margin-bottom: 18px;
}
.page-heading .intro {
  margin-bottom: 0;
}
.summary {
  border-left: 1px solid var(--border);
  padding: 5px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.summary strong {
  font-size: 50px;
  line-height: 1;
  font-weight: 450;
  letter-spacing: -2px;
}
.summary span {
  font-size: 11px;
  color: var(--muted);
}
.browser-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #edf0e5;
  border: 1px solid #e0e6d6;
  border-radius: 10px;
  padding: 23px;
}
.browser-icon {
  background: #dfe7d5;
  color: #5e7853;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 24px;
  flex-shrink: 0;
}
.browser-copy h2 {
  font-size: 14px;
  margin: 0 0 6px;
}
.browser-copy p {
  font-size: 11px;
  line-height: 1.6;
  color: #78866d;
  margin: 0;
}
.browser-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.browser-actions input {
  width: 160px;
  border: 1px solid #d0d9c8;
  border-radius: 6px;
  background: #fafbf6;
  padding: 10px;
  font-size: 12px;
}
.browser-actions .button {
  font-size: 11px;
  padding: 12px 16px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0 22px;
}
.section-heading h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 9px 0 0;
}
.count-badge {
  background: #e9ede5;
  color: #75816c;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 5px;
  vertical-align: middle;
  margin-left: 6px;
}
.autosave {
  font-size: 10px;
  color: #8c9787;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.channel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s;
}
.channel-card.following {
  border-color: #b5c7a8;
}
.channel-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.channel-icon {
  width: 38px;
  height: 38px;
  background: #f0f3e9;
  border: 1px solid #e3e8d9;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 18px;
  color: #68805b;
}
.switch {
  appearance: none;
  border: 0;
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 12px;
  background: #d9dfd5;
  padding: 0;
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  left: 3px;
  top: 3px;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.2s;
}
.switch[aria-checked="true"] {
  background: var(--green);
}
.switch[aria-checked="true"]::after {
  transform: translateX(14px);
}
.channel-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 23px 0 10px;
}
.channel-description {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  min-height: 44px;
  margin: 0 0 23px;
}
.channel-setting {
  border-top: 1px solid #edf0e9;
  padding-top: 17px;
}
.channel-setting label {
  display: block;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.2px;
  color: #87917f;
  margin-bottom: 10px;
}
.channel-setting select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e5d9;
  border-radius: 6px;
  background: #fafbf7;
  color: #52634a;
  font-size: 12px;
}
.channel-setting select:disabled {
  opacity: 0.5;
}
.devices-section {
  margin-bottom: 45px;
}
.device-list {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.device-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 24px;
  border-bottom: 1px solid #edf0e9;
}
.device-row:last-child {
  border-bottom: 0;
}
.device-row .device-name {
  font-size: 13px;
  font-weight: 550;
}
.device-row .device-date {
  font-size: 10px;
  color: #939c8e;
  margin-top: 5px;
}
.device-row button {
  margin-left: auto;
}
.device-current {
  font-size: 9px;
  font-weight: 400;
  color: #738267;
  margin-left: 10px;
  background: #edf2e7;
  padding: 4px 6px;
  border-radius: 4px;
}
.button-quiet {
  border: 0;
  background: transparent;
  color: #788571;
  font-size: 11px;
  padding: 6px;
}
.button-quiet:hover {
  color: #234e36;
  text-decoration: underline;
}
.empty-state {
  padding: 25px;
  font-size: 12px;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.history-section {
  margin-bottom: 45px;
}
.history-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.history-list:empty {
  display: none;
}
.history-row + .history-row {
  border-top: 1px solid var(--border);
}
.history-row summary {
  display: grid;
  grid-template-columns: 24px minmax(0, 130px) minmax(0, 1fr) auto 14px;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
}
.history-row summary::-webkit-details-marker {
  display: none;
}
.history-row summary:hover,
.history-row[open] summary {
  background: #f3f6ee;
}
.history-row summary:focus-visible {
  outline-offset: -3px;
}
.history-severity {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-weight: 700;
}
.history-severity.info {
  color: #1d4ed8;
  background: #dbeafe;
}
.history-severity.warning {
  color: #854d0e;
  background: #fef3c7;
}
.history-severity.critical {
  color: #b91c1c;
  background: #fee2e2;
}
.history-channel,
.history-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.history-channel {
  color: var(--muted);
}
.history-title {
  font-weight: 600;
}
.history-time {
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}
.history-chevron {
  text-align: center;
}
.history-row[open] .history-chevron {
  transform: rotate(180deg);
}
.history-content {
  padding: 4px 24px 20px;
  overflow-wrap: anywhere;
}
.history-content h3 {
  font-size: 16px;
}
.history-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.history-body {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 13px;
}
#history-sentinel {
  height: 1px;
}
@media (min-width: 1400px) {
  .login-layout {
    gap: 90px;
  }
  .preview-panel {
    padding: 40px;
  }
}
@media (max-width: 1050px) {
  .header-label {
    display: none;
  }
  .browser-banner {
    flex-wrap: wrap;
  }
  .browser-actions {
    margin-left: 60px;
    justify-content: flex-start;
  }
  .login-layout {
    gap: 35px;
  }
  .preview-panel {
    padding: 23px;
  }
  .channel-card {
    padding: 18px;
  }
  .preview-meta {
    gap: 15px;
  }
}
@media (max-width: 760px) {
  .history-row summary {
    grid-template-columns: 20px minmax(0, 60px) minmax(0, 1fr) auto 10px;
    gap: 6px;
    padding: 14px 10px;
    font-size: 11px;
  }
  .history-severity {
    width: 20px;
    height: 20px;
  }
  .history-time {
    font-size: 9px;
    max-width: 106px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  main {
    padding: 0 22px;
  }
  .topbar {
    padding: 20px 22px;
    min-height: 75px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 25px;
  }
  #account {
    gap: 8px;
  }
  #account-email {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    padding: 55px 0;
    gap: 40px;
    min-height: auto;
  }
  .login-copy h1 {
    font-size: 46px;
  }
  .preview-panel {
    max-width: 480px;
    width: 100%;
    transform: none;
  }
  .channel-grid {
    grid-template-columns: 1fr;
  }
  .channel-description {
    min-height: 0;
  }
  .channel-card h3 {
    margin-top: 16px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .autosave {
    display: none;
  }
  .page-heading {
    margin-top: 40px;
    gap: 20px;
  }
  .page-heading h1 {
    font-size: 38px;
  }
  .page-heading .intro {
    font-size: 13px;
  }
  .summary {
    padding: 8px 0 8px 20px;
  }
  .summary strong {
    font-size: 38px;
  }
  .summary span {
    max-width: 65px;
    line-height: 1.7;
    font-size: 10px;
  }
  .browser-banner {
    padding: 18px;
    gap: 13px;
  }
  .browser-copy {
    flex: 1;
    min-width: 180px;
  }
  .browser-actions {
    margin: 5px 0 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .browser-actions input {
    flex: 1;
    min-width: 120px;
  }
  .browser-actions .button {
    flex: 1;
  }
  .device-row {
    padding: 18px 15px;
    gap: 8px;
  }
  .device-current {
    display: inline-block;
    margin: 6px 0 0;
  }
  .device-name {
    overflow-wrap: anywhere;
  }
  .devices-section .section-heading .button-quiet {
    max-width: 100px;
  }
  .intro {
    max-width: 100%;
  }
  footer {
    font-size: 9px;
  }
  .fine-print {
    font-size: 10px;
  }
}
