
:root{--bg:#f5f7fb;--panel:#fff;--ink:#182233;--muted:#667085;--border:#dce3eb;--nav:#132238;--accent:#2c6bed;--warn:#a66400}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--ink)}
.shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{background:var(--nav);padding:22px 14px;color:#fff}.brand{display:flex;gap:10px;align-items:center;padding:0 8px 20px}.mark{width:38px;height:38px;background:#fff;color:var(--nav);border-radius:10px;display:grid;place-items:center;font-size:23px;font-weight:800}.brand small{display:block;color:#9bb0c8}.nav{width:100%;border:0;background:transparent;color:#dbe4ef;text-align:left;padding:12px;border-radius:10px;margin-bottom:6px;cursor:pointer}.nav.active,.nav:hover{background:rgba(255,255,255,.09)}
.main{padding:28px;max-width:1600px;width:100%}.eyebrow{font-size:12px;color:var(--accent);font-weight:700;text-transform:uppercase}h1{margin:5px 0}.muted{color:var(--muted)}.view{display:none}.view.active{display:block}.panel{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:20px;margin-top:18px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}label{display:grid;gap:7px;font-size:13px;font-weight:650}input,select{border:1px solid var(--border);border-radius:10px;padding:10px 12px}.check{display:flex;align-items:center;gap:8px;padding-top:26px}.btn{border:0;border-radius:10px;padding:10px 14px;font-weight:650;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}.primary{background:var(--accent);color:#fff}.secondary{background:#fff;border:1px solid var(--border);color:var(--ink)}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.metrics>div{background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px}.metrics span{font-size:12px;color:var(--muted);display:block}.metrics strong{font-size:24px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:10px 9px;border-bottom:1px solid var(--border);vertical-align:top}th{background:#fafbfc;color:var(--muted)}.toolbar,.upload,.actions{display:flex;gap:10px;align-items:center;margin:12px 0}.toolbar input{min-width:320px}.upload{border:2px dashed var(--border);padding:16px;border-radius:12px}.msg{margin-top:10px;color:var(--muted);font-size:13px}.hidden{display:none}.mapping-card{border:1px solid var(--border);border-radius:10px;padding:12px;margin:8px 0}.mapping-card select{width:100%;margin-top:7px}.map-target{margin-top:7px}.link-btn{background:none;border:0;color:var(--accent);font-size:12px;font-weight:650;cursor:pointer;padding:4px 0;margin-top:4px}.link-btn:hover{text-decoration:underline}.drop-target{display:block;margin-left:auto;color:var(--muted)}.issue{color:var(--warn);font-weight:650}pre{background:#111827;color:#e5e7eb;padding:14px;border-radius:10px;overflow:auto}
@media(max-width:900px){.shell{grid-template-columns:1fr}.grid,.metrics{grid-template-columns:1fr 1fr}}@media(max-width:600px){.grid,.metrics{grid-template-columns:1fr}}

textarea{border:1px solid var(--border);border-radius:10px;padding:10px 12px;font:inherit;width:100%;resize:vertical}
.small-btn{padding:7px 10px;font-size:12px}
.endpoint-status{font-size:12px;font-weight:650}

.login-overlay{position:fixed;inset:0;background:#f5f7fb;z-index:9999;display:grid;place-items:center;padding:24px}
.login-card{width:min(460px,100%);background:#fff;border:1px solid var(--border);border-radius:16px;padding:28px;box-shadow:0 20px 60px rgba(16,24,40,.12)}
.login-card label{margin:12px 0}.login-brand{color:var(--ink);padding-left:0}.login-brand small{color:var(--muted)}
.login-overlay.hidden{display:none}

.connector-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.connector-card{border:1px solid var(--border);border-radius:12px;padding:14px;background:#fff;cursor:pointer}
.connector-card:hover,.connector-card.selected{box-shadow:0 0 0 2px rgba(50,80,150,.18)}
.connector-card strong{display:block}.connector-card small{color:var(--muted)}
.object-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;margin:12px 0}
.object-item{border:1px solid var(--border);border-radius:10px;padding:10px;background:#fff}

/* Who is signed in, and the way out. Sits under the brand in the sidebar. */
.session{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:10px 14px;margin:0 10px 10px;border-radius:10px;
  background:rgba(255,255,255,.06);font-size:12px;color:#c7d2dd;
}
.session span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.session button{
  background:none;border:1px solid rgba(255,255,255,.25);color:#e8eef4;
  border-radius:7px;padding:4px 9px;font-size:11px;cursor:pointer;flex:none;
}
.session button:hover{background:rgba(255,255,255,.12)}

/* V16.1 numbered migration navigation.
   These sit on the dark navy sidebar, so they take the sidebar's own colours
   (--muted and --border are for the light content area and wash out here). */
.nav-section-label{padding:14px 14px 7px;margin-top:4px;font-size:11px;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#9bb0c8;background:transparent;border:0}
/* Named "tools" rather than "secondary": .secondary is already the secondary
   BUTTON style in this stylesheet (white background, light border), and the
   label was picking it up - a solid white block on the navy sidebar. */
.nav-section-label.tools{margin-top:18px;padding-top:17px;border-top:1px solid rgba(255,255,255,.14)}
.step-nav{display:flex!important;align-items:center;gap:10px}
.step-nav .step-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;border:1px solid currentColor;font-size:12px;font-weight:800}
/* The number has to stay readable on the active row. Filling the circle with
   currentColor while also setting the text to white paints white on white and
   the digit disappears. */
.step-nav.active .step-number{background:#fff;color:var(--nav);border-color:#fff}
.inset-panel{margin-top:18px;background:var(--surface-subtle,#f8fafc)}

/* The file being mapped right now, in the list of a project's spreadsheets. */
tr.current td{background:#f0f7ff}
tr.current td:first-child{font-weight:700}

/* An action the signed-in role is not allowed to take. Shown rather than removed,
   so the screen is the same shape for everybody and the reason is on the tooltip. */
.btn.not-allowed,button.not-allowed{opacity:.45;cursor:not-allowed}
.row-actions{white-space:nowrap}
.row-actions .btn{padding:4px 10px;font-size:12px;margin-left:6px}

/* Working inside a customer's account. Loud on purpose - it is the one state
   where what you do lands in somebody else's data. */
.support-banner{background:#7c2d12;color:#fff;padding:10px 16px;border-radius:8px;
  margin-bottom:14px;display:flex;align-items:center;gap:12px;font-size:14px}
.support-banner .btn{margin-left:auto;background:#fff;color:#7c2d12;border-color:#fff}
/* .hidden is declared earlier in this file and carries the same specificity, so the
   display:flex above would quietly win and the banner would show on every page load,
   for everybody. Same reason .login-overlay.hidden exists. */
.support-banner.hidden{display:none}

/* Search and the show-all switch, under the target table dropdown. .check has 26px
   of top padding to line up with a label in the grid above; here there is no label
   to line up with, so it is removed rather than left as a gap. */
.table-picker{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0}
.table-picker input[type=search]{min-width:260px}
.table-picker .check{padding-top:0;font-weight:400;font-size:13px}
.table-picker .muted{font-size:12px}

/* What a mapped column is allowed to contain, under its target-field picker. */
/* Real values from the sheet, under the column header. Sits above the picker
   because it is what tells you which target to pick. */
.samples{margin:2px 0 6px;font-size:12px;color:var(--muted)}
.samples code{display:inline-block;padding:1px 6px;margin-right:4px;border-radius:6px;
  background:#e2e8f0;font-size:11px;color:var(--ink)}
.samples.empty{font-style:italic}

/* Insert or update, and what an update matches on. The statement preview is the
   point of the panel - it is one row of their own file, so a wrong match column is
   visible here rather than after the download. */
#writeModePanel .check{padding-top:0;font-weight:400}
#writeModePanel h3{margin:0 0 6px}
.keyfields{display:flex;flex-wrap:wrap;gap:6px 18px;margin:6px 0 10px}
.keyfields .check{font-size:13px}
.sqlpreview{font-size:12px;line-height:1.55;white-space:pre-wrap;word-break:break-word;
  margin:6px 0 0;max-height:160px}
#sqlPreviewLabel{margin-bottom:0}

/* Columns the table supplies itself. Stated on the mapping screen, because a column
   appearing in the export that was never in the spreadsheet is alarming unexplained. */
.autofilled{margin:8px 0 0;padding:9px 11px;border-radius:9px;font-size:13px;
  background:#eef6ff;border:1px solid #cfe3fb;color:var(--ink)}
.autofilled code{padding:1px 6px;border-radius:6px;background:#fff;font-size:12px}
#fdRows input{width:100%}

/* Fallback for when the browser refuses the clipboard: the text, already selected. */
.sqlbox{width:100%;min-height:180px;font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:12px;line-height:1.5;padding:10px;border:1px solid var(--border);
  border-radius:10px;margin-top:8px}

/* Several numbered steps share one page. Landing on it is not the same as finding
   the panel, so the step flashes the one it is named after. */
.step-flash{animation:stepflash 1.6s ease-out}
@keyframes stepflash{
  0%{box-shadow:0 0 0 3px var(--accent)}
  60%{box-shadow:0 0 0 3px var(--accent)}
  100%{box-shadow:0 0 0 3px rgba(0,0,0,0)}
}

.field-values{margin-top:6px;font-size:12px}
.field-values summary{cursor:pointer;font-weight:600;color:var(--ink)}
.field-values .value-list{max-height:150px;overflow-y:auto;margin:6px 0;
  padding:6px;border:1px solid var(--border);border-radius:8px;background:#f8fafc}
.field-values code{display:inline-block;padding:1px 6px;margin:1px;border-radius:6px;
  background:#e2e8f0;font-size:11px}

/* Which column the correction editor is actually fixing. Without it the panel says
   only "Correct Preflight Issue", and the picker below has no visible subject. */
#pfField{margin-bottom:10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

/* The Group box in Admin Exposure. Sized to the column rather than the row's full
   width, which is what a bare input in a table cell would take. */
.tabsel{width:172px;padding:4px 8px;font-size:13px}

.pill{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;
  font-weight:600;vertical-align:middle;background:#e2e8f0;color:#334155}
.pill-finalized{background:#dcfce7;color:#166534}
.pill-returned{background:#fef3c7;color:#92400e}
.pill-in_progress{background:#e0f2fe;color:#075985}

.notes{margin:10px 0 16px}
.note{border-left:3px solid #cbd5e1;padding:8px 12px;margin-bottom:8px;background:#f8fafc;
  border-radius:0 6px 6px 0;white-space:pre-wrap}
.note-bcommerce{border-left-color:#2563eb;background:#eff6ff}
.note-head{font-size:12px;margin-bottom:4px}
textarea{width:100%;font:inherit;padding:8px;border:1px solid #cbd5e1;border-radius:6px;
  box-sizing:border-box}

/* Getting in: the cards that share the sign-in overlay */
.loginlink{margin:14px 0 0;text-align:center;font-size:13px}
.loginlink a{color:var(--accent);text-decoration:none}
.loginlink a:hover{text-decoration:underline}

/* Two-factor authentication */
.mfastate{font-weight:600;margin:4px 0 14px}
.mfastate.on{color:#137a4b}
.mfastate.off{color:#8a5a00}
.mfaqr{margin:12px 0;max-width:220px}
.mfaqr svg{display:block;max-width:100%}
pre.codes{background:#f4f6fa;border:1px solid var(--border);border-radius:8px;
  padding:14px;font-size:15px;letter-spacing:.5px;line-height:1.8;margin:8px 0}
code.invitelink{display:inline-block;margin-top:6px;word-break:break-all;
  background:#f4f6fa;border:1px solid var(--border);border-radius:6px;padding:4px 8px}

/* An attempt that failed, or an audited action that was refused. Not red text on
   red - the row is tinted and the words stay readable. */
tr.failrow td{background:#fdf3f3}
.warn{color:#a3341f;font-weight:600}
details.panel summary{cursor:pointer;list-style:revert}
details.panel summary strong{font-size:15px}

/* A connector that is in the catalog but has no adapter built. The card has to say
   so before somebody fills in a base URL and a token for it. */
.connector-card.unbuilt{opacity:.72}
.badge-unbuilt{display:inline-block;margin-top:6px;font-size:11px;font-weight:700;
  color:#8a5a00;background:#fff5e2;border:1px solid #f0d9a8;border-radius:999px;
  padding:2px 8px}
p.notlive{margin:0 0 12px;padding:10px 12px;border-radius:8px;font-size:13px;
  color:#8a5a00;background:#fff8ec;border:1px solid #f0d9a8}
