/* Colours and type follow the Outlook pane mockup (OutlookPane.dc.html). Fonts are the system
   stack: the pane loads nothing from other origins except office.js. */
:root {
  --ink: #161c24;
  --ink-2: #262e39;
  --muted: #525e6d;
  --line: #e4e9ee;
  --field-line: #667484;
  --surface: #ffffff;
  --surface-2: #f3f6f8;
  --action: #007a73;
  --action-hover: #045f5a;
  --ai-bg: #e6fbf9;
  --ai-line: #c4f5f0;
  --warn: #8a3b00;
  --warn-bg: #fff4e5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font:
    400 14px/1.45 "Segoe UI",
    Inter,
    Arial,
    sans-serif;
}

a {
  color: var(--action);
}

a:hover {
  color: var(--action-hover);
}

.pane {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.pane-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.who {
  font-size: 12px;
  color: var(--muted);
}

.pane-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #667484;
}

.subject {
  font-size: 15px;
  font-weight: 600;
}

.muted,
.note {
  font-size: 13px;
  color: var(--muted);
}

.note {
  font-size: 12px;
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 12px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.ai {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--ai-line);
  background: var(--ai-bg);
  border-radius: 12px;
  padding: 12px 14px;
}

.ai-title {
  font-weight: 600;
}

.ai-summary {
  font-size: 13px;
  color: var(--ink-2);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.field {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--field-line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.kinds {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
}

.kinds label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.kinds input {
  width: 18px;
  height: 18px;
  accent-color: var(--action);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: 500 14px/1 inherit;
  cursor: pointer;
}

.btn-primary {
  border-color: var(--action);
  background: var(--action);
  color: #ffffff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.warn {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--warn);
}

.ok {
  color: var(--action-hover);
}

.saved-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.fingerprint {
  margin: 0;
}

.fingerprint dt {
  font-size: 12px;
  color: var(--muted);
}

.fingerprint dd {
  margin: 0;
  word-break: break-all;
}

.mono {
  font:
    12px/1.4 Consolas,
    "IBM Plex Mono",
    monospace;
}

[hidden] {
  display: none !important;
}
