/* Resignation & Notice Letter Generator - Content Area Styles */
:root {
  --rnl-bg: #ffffff;
  --rnl-surface: #f8fafc;
  --rnl-card: #ffffff;
  --rnl-border: #e2e8f0;
  --rnl-line: #cbd5e1;
  --rnl-ink: #0f172a;
  --rnl-ink-soft: #475569;
  --rnl-ink-faint: #94a3b8;
  --rnl-primary: var(--tf-accent, #334155);
  --rnl-primary-hover: #1e293b;
  --rnl-radius: 2px;
}

.rnl-main {
  width: 100%;
  color: var(--rnl-ink);
}

.rnl-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Controls bar */
.rnl-controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--rnl-surface);
  border: 1px solid var(--rnl-line);
  border-radius: var(--rnl-radius);
}

.rnl-control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rnl-control-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rnl-ink-soft);
}

/* Panels */
.rnl-panel {
  background: var(--rnl-card);
  border: 1px solid var(--rnl-line);
  border-radius: var(--rnl-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.rnl-form-panel,
.rnl-results-panel {
  position: relative;
}

.rnl-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.rnl-panel-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--rnl-ink);
}

.rnl-header-actions {
  display: flex;
  gap: 8px;
}

.rnl-ad {
  overflow: hidden;
  min-height: 280px;
}

/* Grids */
.rnl-grid {
  display: grid;
  gap: 16px;
}

.rnl-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rnl-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rnl-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.rnl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rnl-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rnl-ink);
}

.rnl-hint {
  font-size: 0.75rem;
  color: var(--rnl-ink-soft);
}

.rnl-input,
.rnl-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--rnl-ink);
  background: var(--rnl-card);
  border: 1px solid var(--rnl-line);
  border-radius: var(--rnl-radius);
  font-family: inherit;
  box-sizing: border-box;
}

.rnl-input:focus,
.rnl-select:focus {
  outline: 2px solid var(--rnl-primary);
  border-color: var(--rnl-primary);
}

/* Buttons */
.rnl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--rnl-radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease;
  background: var(--rnl-primary);
  color: #ffffff;
}

.rnl-btn:hover {
  background: var(--rnl-primary-hover);
}

.rnl-btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.rnl-btn-secondary {
  background: var(--rnl-surface);
  color: var(--rnl-ink);
  border-color: var(--rnl-line);
}

.rnl-btn-secondary:hover {
  background: var(--rnl-card);
  border-color: var(--rnl-ink);
}

/* Pill Bar */
.rnl-pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.rnl-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--rnl-surface);
  border: 1px solid var(--rnl-line);
  border-radius: var(--rnl-radius);
  font-size: 0.8125rem;
  color: var(--rnl-ink-soft);
}

.rnl-pill strong {
  margin-left: 4px;
  color: var(--rnl-ink);
}

/* Letterhead Stationery Box */
.rnl-letterhead {
  padding: 36px 40px;
  background: var(--rnl-card);
  border: 1px solid var(--rnl-line);
  border-radius: var(--rnl-radius);
  font-family: var(--tf-font-display, Charter, Georgia, serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--rnl-ink);
  box-sizing: border-box;
}

.rnl-sender-block {
  margin-bottom: 24px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--rnl-ink-soft);
}

.rnl-date-line {
  margin-bottom: 24px;
  font-weight: 600;
}

.rnl-recipient-block {
  margin-bottom: 24px;
  line-height: 1.4;
}

.rnl-salutation {
  margin-bottom: 20px;
  font-weight: 600;
}

.rnl-body-text p {
  margin-bottom: 18px;
}

.rnl-signoff {
  margin-top: 32px;
  line-height: 1.4;
}

.rnl-sign-space {
  display: inline-block;
  color: var(--rnl-ink-faint);
  margin-bottom: 8px;
}

@media print {
  body * {
    visibility: hidden;
  }
  .rnl-letterhead, .rnl-letterhead * {
    visibility: visible;
  }
  .rnl-letterhead {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    padding: 0;
  }
  .rnl-header-actions, .rnl-ad, .rnl-controls-bar, .rnl-form-panel {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .rnl-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .rnl-control-group {
    justify-content: space-between;
  }
  .rnl-letterhead {
    padding: 20px;
    font-size: 0.9375rem;
  }
}

/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --rnl-bg: var(--tf-surface);
  --rnl-surface: var(--tf-surface);
  --rnl-card: var(--tf-surface);
  --rnl-border: var(--tf-surface);
  --rnl-line: #98abc3;
  --rnl-ink: var(--tf-ink);
  --rnl-ink-soft: var(--tf-ink-soft);
  --rnl-ink-faint: var(--tf-ink-faint);
  --rnl-primary-hover: var(--tf-ink);
}
