:root { color-scheme: light; --ink: #17201d; --muted: #68736e; --line: #dce4df; --paper: #f7faf8; --card: #ffffff; --accent: #18734d; --accent-dark: #0d5637; --soft: #e8f3ed; --danger: #b53a2f; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: linear-gradient(145deg, #f0f6f2, #fbfcfb 50%, #edf6f0); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 64px; }
.hero { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; margin-bottom: 34px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 720px; margin: 0; font-size: clamp(32px, 5vw, 58px); line-height: .99; letter-spacing: -.045em; }
h2 { margin: 0; font-size: 23px; letter-spacing: -.02em; }
.lead { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.account-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; min-width: 235px; color: var(--muted); font-size: 13px; }
.provider-label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.provider-label select { min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: inherit; font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #bec9c3; }.dot.active { background: #2aaf6e; box-shadow: 0 0 0 5px #dbf3e5; }
.panel { margin-top: 18px; padding: 28px; background: rgba(255,255,255,.92); border: 1px solid rgba(220,228,223,.9); border-radius: 20px; box-shadow: 0 18px 45px rgba(30,72,50,.06); }
.workflow-guide { margin-top: 18px; padding: 26px 28px; background: #e8f3ed; border: 1px solid #cfe4d7; border-radius: 20px; }
.workflow-guide h2 { margin: 0 0 12px; }
.workflow-guide ol { margin: 0 0 18px; padding-left: 22px; color: var(--muted); line-height: 1.7; font-size: 14px; }
.guide-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 25px; }.hint { color: var(--muted); font-size: 13px; }
.filters { display: grid; grid-template-columns: 1.4fr 1.4fr .85fr .85fr auto; gap: 14px; align-items: end; }
label { display: grid; gap: 7px; color: #405149; font-size: 12px; font-weight: 700; }.filters input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fbfdfb; font: inherit; font-size: 14px; outline: none; }.filters input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft); }
.sheet-choice { grid-column: 3 / 5; display: flex; flex-wrap: wrap; gap: 8px 18px; min-width: 0; margin: 0; padding: 10px 12px 9px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb; }
.sheet-choice legend { padding: 0 4px; color: var(--muted); font-size: 11px; font-weight: 800; }
.sheet-choice label { display: flex; align-items: center; gap: 6px; color: #405149; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sheet-choice input[type="radio"] { width: 16px; min-height: 16px; margin: 0; accent-color: var(--accent); }
.mapping-choice { grid-column: 1 / -1; }
.mapping-label { display: block; margin-bottom: 8px; color: #405149; font-size: 12px; font-weight: 700; }
.mapping-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; max-height: 250px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb; }
.mapping-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 7px; margin: 0; color: #405149; font-size: 11px; font-weight: 700; }
.mapping-row select { width: 100%; min-height: 32px; padding: 0 6px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; font: inherit; font-size: 11px; }
.filters > .button { grid-column: 5; }
.button { min-height: 44px; padding: 0 17px; border: 0; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s, opacity .15s; }.button:hover:not(:disabled) { transform: translateY(-1px); }.button:disabled { opacity: .45; cursor: not-allowed; }.button.primary { color: white; background: var(--accent); }.button.primary:hover:not(:disabled) { background: var(--accent-dark); }.button.secondary { color: var(--accent-dark); background: var(--soft); }.link-button { padding: 0; border: 0; color: var(--accent-dark); background: transparent; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.status { min-height: 20px; margin: 16px 0 0; color: var(--muted); font-size: 13px; }.status.success { color: var(--accent-dark); }.status.error { color: var(--danger); }
.results-heading { align-items: center; }.actions { display: flex; flex-wrap: wrap; gap: 10px; }.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }table { width: 100%; border-collapse: collapse; min-width: 760px; }th, td { padding: 14px 15px; border-bottom: 1px solid #edf1ee; text-align: left; vertical-align: top; font-size: 13px; }th { color: var(--muted); background: #f8fbf9; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }tr:last-child td { border-bottom: 0; }td small { display: block; max-width: 400px; margin-top: 5px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }.attachment-count { color: var(--accent-dark); font-weight: 800; }.attachment-count.muted { color: var(--muted); font-weight: 500; }.notes { margin: 17px 4px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }.hidden { display: none !important; }
@media (max-width: 900px) { .hero { display: block; }.account-card { justify-content: flex-start; margin-top: 22px; }.filters { grid-template-columns: 1fr 1fr; }.sheet-choice { grid-column: 1 / -1; }.filters > .button { grid-column: auto; }.filters .button { width: fit-content; } }
@media (max-width: 600px) { .shell { width: min(100% - 24px, 1180px); padding-top: 32px; }.panel { padding: 20px; border-radius: 16px; }.panel-heading { display: block; }.hint { display: block; margin-top: 10px; }.filters { grid-template-columns: 1fr; }.sheet-choice { grid-column: 1; display: grid; gap: 8px; }.filters > .button { grid-column: 1; }.filters .button { width: 100%; }.actions { margin-top: 16px; }.actions .button { width: 100%; } }
