:root {
  --asn-blue: #0077b6;
  --asn-blue-dark: #005f8f;
  --asn-soft: #eef8fc;
  --asn-border: rgba(15, 23, 42, 0.12);
  --asn-muted: #64748b;
  --asn-danger: #b91c1c;
}

.web-parity-panel {
  background: #fff;
  border: 1px solid var(--asn-border);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  padding: 1.25rem;
}

.web-parity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.web-parity-header h2,
.web-parity-header h3 {
  margin: 0;
}

.web-parity-note {
  color: var(--asn-muted);
  font-size: 0.92rem;
  margin: 0.25rem 0 0;
}

.web-parity-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.web-parity-select,
.web-parity-input,
.web-parity-textarea {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  padding: 0.7rem 0.8rem;
}

.web-parity-textarea {
  min-height: 120px;
  resize: vertical;
  width: 100%;
}

.web-parity-btn {
  align-items: center;
  background: var(--asn-blue);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 0.35rem;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
}

.web-parity-btn:hover {
  background: var(--asn-blue-dark);
}

.web-parity-btn.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.web-parity-btn.danger {
  background: #fee2e2;
  color: var(--asn-danger);
}

.web-parity-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.web-parity-tabs {
  display: inline-flex;
  background: #eaf6fb;
  border: 1px solid rgba(0, 119, 182, 0.18);
  border-radius: 12px;
  padding: 0.25rem;
}

.web-parity-tab {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 0.85rem;
}

.web-parity-tab.active {
  background: #fff;
  color: var(--asn-blue);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.notification-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.notification-list-window {
  border: 1px solid var(--asn-border);
  border-radius: 12px;
  max-height: min(62vh, 650px);
  overflow: auto;
}

.notification-row {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--asn-border);
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  padding: 0.95rem;
}

.notification-row:last-child {
  border-bottom: 0;
}

.notification-row.unread {
  background: var(--asn-soft);
}

.notification-unread-dot {
  background: transparent;
  border-radius: 50%;
  height: 10px;
  margin-top: 0.35rem;
  width: 10px;
}

.notification-row.unread .notification-unread-dot {
  background: var(--asn-blue);
}

.notification-title {
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.notification-meta,
.managed-comment-meta,
.suggestion-meta {
  color: var(--asn-muted);
  font-size: 0.84rem;
}

.notification-actions {
  display: flex;
  gap: 0.45rem;
}

.notification-settings-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.notification-settings-grid details {
  border: 1px solid var(--asn-border);
  border-radius: 12px;
  padding: 0.8rem;
}

.notification-settings-grid summary {
  cursor: pointer;
  font-weight: 800;
}

.notification-setting-option {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.manage-data-shell {
  display: grid;
  gap: 1rem;
}

.manage-data-content > .content-section,
.manage-data-content > .manage-comments-section {
  display: block !important;
}

.managed-comments-list {
  display: grid;
  gap: 0.75rem;
}

.managed-comment-card {
  border: 1px solid var(--asn-border);
  border-radius: 12px;
  padding: 0.95rem;
}

.managed-comment-card textarea {
  margin-top: 0.65rem;
}

.managed-comment-actions,
.suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.suggestion-form {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.suggestion-list {
  display: grid;
  gap: 0.85rem;
}

.suggestion-card {
  border: 1px solid var(--asn-border);
  border-radius: 12px;
  padding: 0.95rem;
}

@media (max-width: 720px) {
  .web-parity-panel {
    border-radius: 10px;
    padding: 1rem;
  }

  .web-parity-header,
  .notification-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .web-parity-controls,
  .notification-actions,
  .managed-comment-actions {
    width: 100%;
  }

  .web-parity-btn,
  .web-parity-select,
  .web-parity-input {
    width: 100%;
  }

  .web-parity-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .notification-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .notification-actions {
    grid-column: 2;
  }
}
