/* HDOutlookAddin - shared styles
   Deliberately close to Outlook's own surface: the add-in should read as part of
   the client, not as an embedded website. */

:root {
  --hd-brand: #123460;
  --hd-brand-soft: #e8eef7;
  --hd-bg: #ffffff;
  --hd-fg: #1b1b1b;
  --hd-muted: #616161;
  --hd-line: #e1e1e1;
  --hd-radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hd-brand: #7ea6dd;
    --hd-brand-soft: #23303f;
    --hd-bg: #1f1f1f;
    --hd-fg: #f3f3f3;
    --hd-muted: #a6a6a6;
    --hd-line: #3d3d3d;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--hd-bg);
  color: var(--hd-fg);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.hd-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.hd-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.hd-title {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hd-sub {
  margin: 0;
  color: var(--hd-muted);
}

.hd-panel {
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  padding: 12px 14px;
  background: var(--hd-brand-soft);
}

.hd-facts {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  font-size: 13px;
}

.hd-facts dt { color: var(--hd-muted); }
.hd-facts dd { margin: 0; overflow-wrap: anywhere; }

.hd-spacer { flex: 1; }

.hd-btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--hd-brand);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--hd-radius);
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .hd-btn { color: #10233c; }
}

.hd-btn:hover { filter: brightness(1.08); }
.hd-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.hd-ok { color: #107c10; font-weight: 600; }
.hd-fail { color: #c50f1f; font-weight: 600; }

/* --- settings --- */

.hd-heading {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hd-muted);
}

.hd-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--hd-line);
  cursor: pointer;
}

.hd-toggle:last-of-type { border-bottom: 1px solid var(--hd-line); }

.hd-toggle input {
  margin: 2px 0 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--hd-brand);
  flex: none;
}

.hd-toggle-title { display: block; font-weight: 600; }

.hd-toggle-help {
  display: block;
  color: var(--hd-muted);
  font-size: 12px;
  line-height: 1.4;
}

.hd-status {
  margin: 10px 0 0 0;
  font-size: 12px;
  min-height: 1.2em;
  color: var(--hd-muted);
}

.hd-note {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: var(--hd-muted);
}
