/* Redwood UI Official Color Palette — with variable names */

/* Base Colors */
:root {
  --rw-bg-canvas: #F6F8F9;                     /* Background (App Canvas) */
  --rw-surface: #FFFFFF;                        /* Surface (Cards, Forms) */
  --rw-text-primary: #1A1A1A;                   /* Primary Text */
  --rw-text-secondary: #464C51;                 /* Secondary Text */
  --rw-border-divider: #D6DADB;                 /* Borders/Dividers */
  --rw-disabled-text: #A9B3BC;                  /* Disabled Fields/Text */
  --rw-disabled-bg: #CED6DB;                    /* Disabled Bg */
  --rw-zebra: #F6F8F9;                          /* Table zebra stripe alternate */
}

/* Brand & Accent Colors */
:root {
  --rw-brand-red: #F80000;
  --rw-oracle-blue: #2362AE;
  --rw-accent: #2362AE;    /* Interactive, Links, Focus */
  --rw-success: #1CA261;
  --rw-warning: #F7B924;
  --rw-error: #CE2C31;
  --rw-info: #2362AE;
}

/* Standard usage mapping for templates */
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rw-bg-canvas);
  color: var(--rw-text-primary);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
}
.redwood-container {
  max-width: 700px;
  margin: auto;
  background: var(--rw-surface);
  border-radius: 20px;
  box-shadow: 0 6px 36px #2362ae15, 0 1.5px 10px #c9cfd911;
  padding: 40px 38px 36px 38px;
  border: 1.3px solid var(--rw-border-divider);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
h1, h2 {
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--rw-oracle-blue);
  letter-spacing: 1px;
  text-shadow: 0 1.5px 9px #2362ae16;
  font-size: 2em;
}
.redwood-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-group {
  position: relative;
  margin-bottom: 6px;
}
.form-group label {
  position: absolute;
  top: 0.9em;
  left: 1em;
  color: var(--rw-oracle-blue);
  background: transparent;
  font-size: 1em;
  transition: 0.18s cubic-bezier(.45,.35,0,1.3);
  pointer-events: none;
  padding: 0 4px;
  font-weight: 700;
}
.form-input {
  width: 100%;
  padding: 1.27em 1em 1.07em 1em;
  font-size: 1.06em;
  border-radius: 11px;
  border: 1.6px solid var(--rw-border-divider);
  background: var(--rw-surface);
  transition: border-color .18s, background .18s;
  color: var(--rw-text-primary);
  font-weight: 600;
  margin: 0;
  box-sizing: border-box;
}
.form-input:focus, .form-input:not(:placeholder-shown) {
  border-color: var(--rw-oracle-blue);
  background: #F2F7FC;
}
.form-input:focus + label, .form-input:not(:placeholder-shown) + label {
  top: -1.05em;
  font-size: 0.92em;
  color: var(--rw-accent);
  background: var(--rw-surface);
  padding: 2px 5px;
  border-radius: 7px;
  left: 0.5em;
}
input[disabled], .form-input[disabled] {
  background: var(--rw-disabled-bg);
  color: var(--rw-disabled-text);
  border-color: var(--rw-border-divider);
}
.btn-redwood {
  background: var(--rw-oracle-blue);
  color: var(--rw-surface);
  border: none;
  padding: 15px 38px;
  border-radius: 12px;
  font-size: 1.19em;
  font-weight: 800;
  box-shadow: 0 1px 13px #2362ae33;
  cursor: pointer;
  margin-top: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  transition: background .17s, box-shadow .14s;
}
.btn-redwood:hover {
  background: var(--rw-brand-red);
  color: var(--rw-surface);
  box-shadow: 0 2px 18px #f8000047;
}
.redwood-assumptions {
  background: var(--rw-zebra);
  border-radius: 17px;
  margin-bottom: 37px;
  padding: 22px 22px 14px 22px;
  box-shadow: 0 1px 12px #2362ae19 inset;
  border-left: 6px solid var(--rw-oracle-blue);
  color: var(--rw-text-secondary);
}
.redwood-assumptions-header {
  display: flex;
  align-items: center;
  font-weight: 800;
  color: var(--rw-oracle-blue);
  font-size: 1.12em;
  margin-bottom: 0.7em;
  letter-spacing: 0.04em;
}
.redwood-assumptions-list {
  margin: 0;
  padding: 0 2px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.redwood-assumption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.99em;
  padding: 7px 3px 5px 0;
  color: var(--rw-text-secondary);
}
.redwood-assumption .table-action {
  color: var(--rw-accent);
  font-weight: 700;
}
.redwood-assumption .table-action:hover {
  color: var(--rw-brand-red);
}
.redwood-table-section {
  background: var(--rw-surface);
  border-radius: 17px;
  margin: 3px 0 0 0;
  padding: 22px 4px 13px 4px;
  box-shadow: 0 2.5px 12px #2362ae13, 0 0.5px 7px #e8eeed;
}
.sticky-table {
  width: 100%;
  border-radius: 15px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin-top: 5px;
  background: var(--rw-surface);
  box-shadow: 0 1px 10px #2362ae10;
  font-size: 1em;
}
.sticky-table th, .sticky-table td {
  padding: 14px 10px;
  border-bottom: 1.3px solid var(--rw-border-divider);
}
.sticky-table thead th {
  background: var(--rw-oracle-blue);
  color: var(--rw-surface);
  position: sticky;
  top: 0;
  font-weight: 700;
  font-size: 1.04em;
  border-bottom: 2px solid var(--rw-brand-red);
  text-shadow: 0 1.5px 7px #2362ae27;
}
.sticky-table tbody tr {
  transition: background 0.14s;
}
.sticky-table tbody tr:hover {
  background: #e6edf7;
}
.sticky-table tr:nth-child(even) td {
  background: var(--rw-zebra);
}
.sticky-table tr:nth-child(odd) td {
  background: var(--rw-surface);
}
.table-status {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 99px;
  color: var(--rw-surface);
  background: var(--rw-oracle-blue);
  font-weight: 800;
  font-size: 0.98em;
}
.table-status.not {
  background: var(--rw-error);
}
.table-status.warning {
  background: var(--rw-warning);
  color: #464C51;
}
.table-status.info {
  background: var(--rw-info);
}
.table-action {
  color: var(--rw-accent);
  font-size: 1.19em;
  text-decoration: none;
  margin-left: 2px;
  transition: color .12s;
}
.table-action:hover {
  color: var(--rw-brand-red);
  text-decoration: underline;
}
.table-tooltip {
  position: relative;
  cursor: help;
}
.table-tooltip .tooltip-text {
  visibility: hidden;
  position: absolute;
  bottom: 125%; left: 50%;
  transform: translateX(-50%);
  background: var(--rw-oracle-blue);
  color: var(--rw-surface);
  border-radius: 5px;
  padding: 2px 9px 3.5px 9px;
  font-size: 0.96em;
  z-index: 33;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .13s;
}
.table-tooltip:hover .tooltip-text, .table-tooltip:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}
@media (max-width: 650px) {
  .redwood-container { padding: 13px 3vw 25px 3vw; }
  .sticky-table th, .sticky-table td { font-size: 1em; padding: 11px 7px; }
  .redwood-table-section, .redwood-assumptions { padding: 11px 5vw 11px 5vw; }
}
a:focus, button:focus, .form-input:focus {
  outline: 2px solid var(--rw-brand-red);
  outline-offset: 1.5px;
}