.cop-app-shell {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
}
.cop-preset-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cop-preset-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cop-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s;
}
.cop-chip:hover {
  border-color: #d97706;
  background: #fffbeb;
  color: #92400e;
}

.cop-grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1024px) {
  .cop-grid-main { grid-template-columns: 1fr; }
}

.cop-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.cop-card-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.cop-card-hdr h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.cop-step-tag {
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
}
.cop-subhdr {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  margin: 6px 0 8px;
}

.cop-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cop-form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 760px) {
  .cop-form-grid-3, .cop-form-grid-4 { grid-template-columns: 1fr; }
}

.cop-card label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cop-card input[type="text"],
.cop-card input[type="number"],
.cop-card input[type="email"],
.cop-card input[type="password"],
.cop-card select,
.cop-card textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
  font-family: inherit;
}
.cop-card input:focus, .cop-card select:focus, .cop-card textarea:focus {
  outline: 2px solid #f59e0b;
  border-color: #d97706;
}

.cop-mode-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 7px;
}
.cop-tab {
  border: none;
  background: transparent;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  border-radius: 5px;
  cursor: pointer;
}
.cop-tab.active {
  background: #0f172a;
  color: #ffffff;
}

.cop-burden-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.cop-burden-bar input { width: 82px; }
.cop-burden-note {
  font-size: 12px;
  color: #78350f;
  flex: 1;
  min-width: 240px;
  line-height: 1.4;
}

.cop-table-wrap {
  overflow-x: auto;
}
.cop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.cop-table th {
  background: #f8fafc;
  border-bottom: 2px solid #cbd5e1;
  padding: 7px 6px;
  text-align: left;
  font-size: 11.5px;
  color: #475569;
  white-space: nowrap;
}
.cop-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 5px;
  vertical-align: middle;
}
.cop-table input {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 6px;
  font-size: 12.5px;
}
.cop-del-btn {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  font-weight: 800;
  cursor: pointer;
}

.cop-row-actions, .cop-inline-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.cop-inline-controls label {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.cop-btn-sm {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.cop-btn-sm:hover { background: #e2e8f0; }

.cop-recovered-pill {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
}

.cop-summary-rail {
  position: sticky;
  top: 18px;
}
.cop-summary-card {
  background: #0f172a;
  color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}
.cop-sum-kicker {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.05em;
}
.cop-sum-big {
  font-size: 32px;
  font-weight: 900;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin: 4px 0 2px;
}
.cop-sum-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 14px;
}
.cop-sum-lines {
  background: #1e293b;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  margin-bottom: 14px;
}
.cop-sum-lines > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cop-sum-lines > div:last-child { margin-bottom: 0; }
.cop-divider {
  border-top: 1px solid #334155;
  margin: 7px 0;
}
.cop-packet-includes {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 14px;
  line-height: 1.45;
}
.cop-packet-includes ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.cop-packet-includes li { margin-bottom: 5px; }

.cop-email-lbl {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 10px;
}
.cop-email-lbl input {
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
}
.cop-bump-box {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  color: #fef3c7;
  margin-bottom: 10px;
  cursor: pointer;
}
.cop-pay-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: transform 0.1s;
}
.cop-pay-primary { background: #f59e0b; color: #0f172a; }
.cop-pay-primary:hover { background: #fbbf24; }
.cop-pay-pack { background: #1e293b; color: #ffffff; border: 1px solid #475569; font-size: 12.5px; }
.cop-pay-sub { background: #1d4ed8; color: #ffffff; font-size: 12.5px; }
.cop-pay-pro { background: #10b981; color: #064e3b; }
.cop-msg { font-size: 12px; color: #fca5a5; margin-top: 6px; }

.cop-unlocked-banner {
  background: #0f172a;
  color: #fff;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.cop-unlocked-badge {
  display: inline-block;
  background: #f59e0b;
  color: #0f172a;
  font-weight: 900;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.cop-unlocked-banner h3 { margin: 0 0 6px; font-size: 19px; }
.cop-unlocked-banner p { margin: 0; font-size: 13px; color: #cbd5e1; max-width: 660px; }
.cop-pw-flash {
  margin-top: 10px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid #60a5fa;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12.5px;
}
.cop-pw-flash a { color: #93c5fd; font-weight: 700; }
.cop-unlocked-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 250px;
}
.cop-btn {
  display: inline-block;
  text-align: center;
  padding: 10px 15px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.cop-btn-amber { background: #f59e0b; color: #0f172a; }
.cop-btn-dark { background: #334155; color: #fff; }
.cop-btn-blue { background: #2563eb; color: #fff; }
.cop-btn-outline { background: transparent; color: #cbd5e1; border: 1px solid #64748b; }

.cop-portal-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .cop-portal-auth-grid { grid-template-columns: 1fr; }
}
.cop-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 13.5px;
}
.cop-alert-ok { background: #ecfdf5; border: 1px solid #10b981; color: #065f46; }
.cop-alert-err { background: #fef2f2; border: 1px solid #ef4444; color: #991b1b; }
