/* PMG Helpdesk — shared UI polish (prototype) */

*, *::before, *::after { box-sizing: border-box; }

#app { min-height: 100vh; }

.main .content {
  background: var(--bg);
}

/* Sticky chrome */
.hd-topbar {
  box-shadow: var(--shadow-xs);
}

/* Page rhythm */
.hd-page {
  padding: var(--space-6) var(--space-8) var(--space-16);
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.hd-page-narrow {
  padding: var(--space-5) var(--space-8) var(--space-16);
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

/* Surfaces */
.hd-surface {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.hd-surface-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-strong);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--ink-50);
}

/* Focus — keyboard users */
button:focus-visible,
a[role="button"]:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 2px;
}

input::placeholder,
textarea::placeholder {
  color: var(--fg-muted);
}

/* Scrollbars (WebKit) */
.content::-webkit-scrollbar { width: 8px; height: 8px; }
.content::-webkit-scrollbar-thumb {
  background: var(--ink-200);
  border-radius: 4px;
}
.content::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* Analytics dashboard */
.hd-analytics .hd-surface {
  box-shadow: 0 1px 2px rgba(11, 13, 16, 0.03);
}

@media (max-width: 1100px) {
  .hd-analytics > div[style*="grid-template-columns: 1fr 300px"] {
    grid-template-columns: 1fr !important;
  }
  .hd-analytics aside {
    position: static !important;
  }
}

/* Home — service portal */
.hd-home {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hd-home-announcements {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hd-home-announcement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}

.hd-home-announcement--info {
  border-color: rgba(35, 107, 118, 0.22);
  background: rgba(35, 107, 118, 0.06);
}

.hd-home-announcement--warning {
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(217, 119, 6, 0.08);
}

.hd-home-announcement-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent-700);
}

.hd-home-announcement--warning .hd-home-announcement-icon {
  color: var(--warning-700);
}

.hd-home-announcement-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-secondary);
}

.hd-home-announcement-body strong {
  color: var(--fg);
  font-weight: 600;
}

.hd-home-announcement-dismiss {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
}

.hd-home-announcement-dismiss:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--fg);
}

.hd-home-service-status {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hd-home-service-status-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.hd-home-service-status-ok {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--success-700);
}

.hd-home-service-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.hd-home-service-status-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ink-50);
  font-size: 12px;
}

.hd-home-service-status-label {
  font-weight: 600;
  color: var(--fg);
}

.hd-home-service-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  grid-column: 3;
  grid-row: 1;
}

.hd-home-service-status-item--ok .hd-home-service-status-dot { background: var(--success-600); }
.hd-home-service-status-item--warn .hd-home-service-status-dot { background: var(--warning-600); }
.hd-home-service-status-item--error .hd-home-service-status-dot { background: var(--critical-600); }
.hd-home-service-status-item--info .hd-home-service-status-dot { background: var(--accent-500); }

.hd-home-service-status-msg {
  grid-column: 1 / -1;
  color: var(--fg-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hd-home-hero {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hd-home-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hd-home-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.hd-home-hero-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg);
}

.hd-home-hero-sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.5;
}

.hd-home-hero-hours {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink-50);
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.hd-home-waiting-banner {
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--warning-100);
  background: var(--warning-50);
  color: var(--warning-700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 120ms;
}

.hd-home-waiting-banner:hover {
  border-color: var(--warning-600);
}

.hd-home-waiting-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  flex-shrink: 0;
}

.hd-home-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hd-link-sm {
  font-size: 12px;
  color: var(--accent-700);
  cursor: pointer;
  font-weight: 500;
}

.hd-link-sm:hover {
  text-decoration: underline;
}

.hd-eyebrow-xs {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Portal catalog — flat cards, 1px border, no color coding */
.hd-portal {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hd-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.hd-portal-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev);
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
}

.hd-portal-card:hover {
  background: var(--ink-50);
  border-color: var(--border-strong);
}

.hd-portal-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  flex-shrink: 0;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hd-portal-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}

.hd-portal-card-desc {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.hd-portal-card-action {
  display: none;
}

/* Modal */
.hd-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 13, 16, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hd-modal {
  background: white;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Knowledge-base article modal — wider to fit steps + visual aids */
.hd-modal--kb {
  max-width: 720px;
}

/* Resolution steps — numbered list with optional images */
.hd-kb-steps { counter-reset: kb-step; }

.hd-kb-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--ink-100);
  border-radius: 8px;
  background: var(--ink-50);
}

.hd-kb-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hd-kb-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.hd-kb-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
}

.hd-kb-step-text {
  margin: 0;
  font-size: 13px;
  color: var(--fg-secondary);
  line-height: 1.55;
}

.hd-kb-step-image-wrap {
  margin-top: 4px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
}

.hd-kb-step-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.hd-home-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.hd-home-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.hd-home-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 16px;
}

.hd-home-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.hd-home-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--ink-100);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.hd-home-tab {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--fg-secondary);
  transition: background 120ms, color 120ms, box-shadow 120ms;
}

.hd-home-tab.is-active {
  background: white;
  color: var(--fg);
  box-shadow: 0 1px 3px rgba(11, 13, 16, 0.08);
}

.hd-home-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.hd-home-panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--ink-50);
}

.hd-home-panel-body {
  padding: 6px 0;
}

@media (max-width: 1080px) {
  .hd-home-body {
    grid-template-columns: 1fr;
  }
  .hd-home-aside {
    position: static;
  }
  .hd-home-stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hd-home-hero {
    padding: 22px 20px;
  }
  .hd-home-stat-row {
    grid-template-columns: 1fr;
  }
}

/* Hero search */
.hd-hero-search {
  position: relative;
  width: 100%;
  max-width: 680px;
}

.hd-hero-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-50);
  border-radius: 8px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--border);
  transition: border-color 140ms, box-shadow 140ms, background 140ms;
}

.hd-hero-search-row.is-focused {
  background: white;
  border-color: var(--accent-600);
  box-shadow: var(--shadow-focus);
}

.hd-hero-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--fg);
  min-width: 0;
}

.hd-hero-search-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--accent-600);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: background 120ms;
}

.hd-hero-search-btn:hover {
  background: var(--accent-700);
}

.hd-hero-search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.hd-hero-search-chips-label {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}

.hd-hero-search-chip {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  color: var(--fg-secondary);
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
}

.hd-hero-search-chip:hover {
  background: var(--accent-50);
  border-color: var(--accent-300);
  color: var(--accent-700);
}

.hd-hero-search-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex-shrink: 0;
  background: var(--ink-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hd-hero-search-item-icon--accent {
  background: var(--accent-50);
}

.hd-hero-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(11, 13, 16, 0.16);
  z-index: 2;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
  pointer-events: auto;
}

.hd-hero-search-section-label {
  padding: 10px 16px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-100);
}

.hd-hero-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--ink-100);
  transition: background 100ms;
}

.hd-hero-search-item:last-child {
  border-bottom: none;
}

.hd-hero-search-item:hover,
.hd-hero-search-item.is-highlighted {
  background: var(--accent-50);
}

.hd-hero-search-empty {
  padding: 20px 16px;
  font-size: 13px;
  color: var(--fg-secondary);
  text-align: center;
  line-height: 1.5;
}

/* Enterprise sidebar */
.hd-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  color: var(--sidebar-fg);
}

.hd-sidebar-brand {
  padding: 18px 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--sidebar-border);
}

.hd-sidebar-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hd-sidebar-brand-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--sidebar-fg);
  line-height: 1.15;
}

.hd-sidebar-brand-sub {
  font-size: 11px;
  color: var(--sidebar-muted);
}

.hd-sidebar-section {
  padding: 14px 12px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
}

.hd-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--sidebar-muted);
  font-weight: 400;
  border-left: 2px solid transparent;
  transition: background 120ms, color 120ms, border-color 120ms;
}

.hd-nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-fg);
}

.hd-nav-item.is-active {
  background: var(--sidebar-active);
  color: var(--accent-700);
  font-weight: 600;
  border-left-color: var(--accent-600);
}

.hd-nav-item.is-active .hd-nav-item-count {
  color: var(--accent-700);
}

.hd-nav-item-count {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--sidebar-muted);
}

.hd-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--sidebar-border);
}

.hd-topbar {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92) !important;
}

.hd-notification-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--critical-600);
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 16px;
  text-align: center;
  border: 1.5px solid white;
  box-sizing: border-box;
}

/* Login page */
.hd-login {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: stretch;
  font-family: var(--font-sans);
  background: var(--ink-50);
}

.hd-login-brand {
  flex: 0 0 44%;
  background: linear-gradient(165deg, var(--ink-900) 0%, var(--accent-900) 100%);
  color: white;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hd-login-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hd-login-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hd-login-brand-eyebrow {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hd-login-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

.hd-login-brand-copy h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  display: flex;
  flex-direction: column;
}

.hd-login-brand-copy h1 span:last-child {
  color: var(--accent-300);
}

.hd-login-brand-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.hd-login-brand-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.hd-login-brand-tags-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.hd-login-brand-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hd-login-brand-tag {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
}

.hd-login-brand-deco {
  position: absolute;
  right: -40px;
  bottom: -40px;
  opacity: 0.06;
  pointer-events: none;
}

.hd-login-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 48px;
  position: relative;
}

.hd-login-panel-tools {
  position: absolute;
  top: 20px;
  right: 24px;
}

.hd-login-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hd-login-card-header h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.hd-login-card-header p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.5;
}

.hd-login-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--ink-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.hd-login-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-secondary);
  line-height: 1.45;
}

.hd-login-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-600);
  margin-top: 5px;
  flex-shrink: 0;
}

.hd-login-ms-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: white;
  color: var(--ink-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}

.hd-login-ms-btn:hover {
  border-color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}

.hd-login-tenant-note {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.45;
  text-align: center;
}

.hd-login-tech {
  border: 1px solid var(--accent-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hd-login-tech-toggle {
  width: 100%;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-700);
  background: var(--accent-50);
  border: 0;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hd-login-tech-body {
  padding: 10px 12px 12px;
  font-size: 12px;
  color: var(--accent-800);
  line-height: 1.5;
  background: var(--accent-50);
  border-top: 1px solid var(--accent-100);
}

.hd-login-tech-uri {
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
  margin-top: 6px;
  color: var(--accent-900);
}

.hd-login-error {
  background: var(--critical-50);
  border: 1px solid var(--critical-100);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--critical-700);
  line-height: 1.5;
}

.hd-login-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--fg-muted);
  padding-top: 4px;
}

.hd-login-footer a {
  color: var(--accent-700);
  text-decoration: none;
}

.hd-login-footer a:hover {
  text-decoration: underline;
}

.hd-login-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--ink-150);
  border-top-color: var(--accent-600);
  animation: hd-login-spin 700ms linear infinite;
}

@keyframes hd-login-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .hd-login {
    flex-direction: column;
  }

  .hd-login-brand {
    flex: none;
    padding: 32px 24px;
    min-height: auto;
  }

  .hd-login-brand-copy h1 {
    font-size: 28px;
  }

  .hd-login-brand-tags {
    display: none;
  }

  .hd-login-panel {
    padding: 24px 16px 40px;
  }

  .hd-login-panel-tools {
    position: static;
    align-self: flex-end;
    margin-bottom: 8px;
  }
}
