.armo-watchbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #9bb4b8;
  border-radius: 16px;
  background: linear-gradient(135deg, #e5eff0 0%, #d8e6e8 100%);
  color: #17363d;
  box-shadow: 0 10px 26px rgba(25, 58, 64, 0.08);
}

.armo-watchbar__copy {
  display: grid;
  gap: 3px;
  min-width: 210px;
}

.armo-watchbar__eyebrow {
  color: #42676d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.armo-watchbar__title {
  color: #112f35;
  font-size: 1rem;
  font-weight: 850;
}

.armo-watchbar__status {
  color: #38575d;
  font-size: 0.86rem;
  line-height: 1.55;
}

.armo-watchbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.armo-watchbar button,
.armo-watchbar__login,
.armo-watch-dialog button {
  min-height: 40px;
  border: 1px solid #78999e;
  border-radius: 10px;
  background: #f8fbfb;
  color: #183b42;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.armo-watchbar button,
.armo-watch-dialog button {
  padding: 0 13px;
}

.armo-watchbar__login,
.armo-watchbar__login:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-color: #123e46;
  border-radius: 12px;
  background: linear-gradient(135deg, #173f49 0%, #276b73 100%);
  color: #fff !important;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  box-shadow: 0 8px 18px rgba(20, 68, 76, 0.24), inset 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.armo-watchbar__login::after {
  content: "›";
  margin-left: 7px;
  font-size: 1.15rem;
  line-height: 1;
}

.armo-watchbar__login:hover {
  border-color: #0b3239;
  background: linear-gradient(135deg, #10363f 0%, #1f5b63 100%);
  color: #fff !important;
  box-shadow: 0 11px 22px rgba(20, 68, 76, 0.29), inset 0 1px rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.armo-watchbar__login:active {
  box-shadow: 0 5px 12px rgba(20, 68, 76, 0.22);
  transform: translateY(0);
}

.armo-watchbar__login:focus-visible {
  outline: 3px solid #bd6d24;
  outline-offset: 3px;
}

.armo-watchbar button:hover,
.armo-watch-dialog button:hover {
  border-color: #315f66;
  background: #edf4f4;
}

.armo-watchbar button[aria-pressed="true"] {
  border-color: #285f66;
  background: #285f66;
  color: #fff;
}

.armo-watchbar button.has-unread {
  border-color: #9a6c18;
  background: #f3e5be;
  color: #614305;
}

.armo-watchbar button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.armo-watch-row > td:first-child {
  position: relative;
}

.armo-watch-button {
  float: right;
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin: -4px 0 -4px 10px;
  place-items: center;
  border: 1px solid #afbcc0;
  border-radius: 999px;
  background: #f5f8f8;
  color: #50666a;
  cursor: pointer;
}

.armo-watch-button::before {
  content: "☆";
  font-size: 1.25rem;
  line-height: 1;
}

.armo-watch-button:hover {
  border-color: #8a671a;
  background: #f7f0dc;
  color: #75520a;
}

.armo-watch-button[aria-pressed="true"] {
  border-color: #9b7422;
  background: #f2e3b9;
  color: #6b4a06;
}

.armo-watch-button[aria-pressed="true"]::before {
  content: "★";
}

.armo-watch-button[hidden],
tr.armo-watch-hidden {
  display: none !important;
}

.armo-watch-dialog {
  width: min(680px, calc(100vw - 30px));
  max-height: min(76vh, 760px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #879fa4;
  border-radius: 20px;
  background: #f4f8f8;
  color: #17343a;
  box-shadow: 0 24px 80px rgba(20, 46, 52, 0.28);
}

.armo-watch-dialog::backdrop {
  background: rgba(18, 39, 44, 0.55);
  backdrop-filter: blur(3px);
}

.armo-watch-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid #bdcdcf;
  background: #dce9eb;
}

.armo-watch-dialog__header h2,
.armo-watch-dialog__section h3,
.armo-watch-dialog__item strong {
  margin: 0;
  color: #122f35;
}

.armo-watch-dialog__close {
  width: 40px;
  padding: 0 !important;
  font-size: 1.25rem !important;
}

.armo-watch-dialog__body {
  max-height: calc(min(76vh, 760px) - 81px);
  padding: 20px 22px 24px;
  overflow: auto;
}

.armo-watch-dialog__section + .armo-watch-dialog__section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #c4d2d4;
}

.armo-watch-dialog__section h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.armo-watch-dialog__section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.armo-watch-dialog__section-heading h3 {
  margin-bottom: 0;
}

.armo-watch-dialog__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #ead8a7;
  color: #654705;
  font-size: 0.75rem;
  font-weight: 850;
}

.armo-watch-dialog__item.is-unread {
  border-color: #a7853b;
  background: #fffaf0;
  box-shadow: inset 4px 0 0 #a77a1e;
}

.armo-watch-dialog__list {
  display: grid;
  gap: 9px;
}

.armo-watch-dialog__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid #c1d0d2;
  border-radius: 12px;
  background: #fff;
}

.armo-watch-dialog__item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.armo-watch-dialog__item-copy small {
  color: #526d72;
  line-height: 1.45;
}

.armo-watch-dialog__item-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.armo-watch-dialog__item-actions .is-danger {
  border-color: #b98f87;
  color: #7b3028;
}

.armo-watch-dialog__empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed #9eb2b6;
  border-radius: 12px;
  background: #edf3f3;
  color: #405f65;
  line-height: 1.6;
}

.armo-watch-toast {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 10000;
  max-width: min(390px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid #66878d;
  border-radius: 12px;
  background: #183f46;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.5;
  box-shadow: 0 16px 45px rgba(13, 39, 44, 0.25);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.armo-watch-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .armo-watchbar {
    align-items: stretch;
    flex-direction: column;
    padding: 15px;
  }

  .armo-watchbar__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .armo-watchbar button,
  .armo-watchbar__login {
    justify-content: center;
    width: 100%;
  }

  .armo-watch-dialog__header,
  .armo-watch-dialog__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .armo-watch-dialog__item {
    align-items: stretch;
    flex-direction: column;
  }

  .armo-watch-dialog__item-actions button {
    flex: 1;
  }

  .armo-watch-toast {
    right: 16px;
    bottom: 84px;
  }
}
