:root {
  color-scheme: light;
  --ink: #17332d;
  --ink-soft: #536761;
  --paper: #f7f5ef;
  --surface: #fffefa;
  --line: #d9dfd9;
  --line-strong: #b9c7c0;
  --green: #1e6b57;
  --green-dark: #155141;
  --green-pale: #e5f2ec;
  --cream: #eee9dd;
  --danger: #a43f3f;
  --danger-pale: #fff0ed;
  --shadow: 0 24px 70px rgba(30, 63, 54, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 12%, rgba(201, 225, 214, 0.48), transparent 27rem),
    radial-gradient(circle at 96% 45%, rgba(231, 217, 182, 0.38), transparent 24rem),
    var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--green);
  font-size: 17px;
}

.header-label {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 254, 250, 0.68);
  font-size: 13px;
  font-weight: 600;
}

.settings-button,
.text-button,
.dialog-close {
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-weight: 700;
}

.settings-button {
  padding: 8px 2px;
  font-size: 13px;
}

.settings-button:hover,
.text-button:hover {
  color: var(--green);
  text-decoration: underline;
}

main {
  width: min(920px, calc(100% - 40px));
  flex: 1;
  margin: 72px auto 0;
}

.intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow,
.step-label {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.intro-copy {
  max-width: 590px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.upload-panel {
  padding: 34px;
  border: 1px solid rgba(185, 199, 192, 0.8);
  border-radius: 28px;
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.step-label {
  margin-bottom: 8px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.status-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-pale);
  font-size: 12px;
  font-weight: 700;
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: #4c9b79;
}

.drop-zone {
  padding: 46px 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 20px;
  background: #fbfaf5;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragging {
  border-color: var(--green);
  background: var(--green-pale);
  outline: none;
}

.drop-zone.is-dragging {
  transform: scale(1.008);
}

.file-symbol {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d8d0;
  border-radius: 16px;
  color: var(--green);
  background: white;
  box-shadow: 0 7px 20px rgba(30, 107, 87, 0.08);
}

.file-symbol span {
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.drop-title {
  margin-bottom: 4px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.drop-alternative {
  margin-bottom: 14px;
  color: #788882;
  font-size: 13px;
}

.secondary-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 700;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.secondary-button:hover {
  border-color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(30, 63, 54, 0.09);
}

.file-help {
  margin: 16px 0 0;
  color: #788882;
  font-size: 12px;
}

.selected-file {
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfaf5;
}

.selected-file:not([hidden]) {
  display: flex;
}

.file-extension {
  width: 50px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--green-dark);
  background: var(--green-pale);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.selected-file-info {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.selected-file-info strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-info span {
  color: var(--ink-soft);
  font-size: 12px;
}

.remove-button {
  padding: 8px 10px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.remove-button:hover {
  color: var(--danger);
}

.field-group {
  margin-top: 24px;
}

.field-group label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 700;
}

.field-group input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font-size: 16px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-group select {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font-size: 16px;
  outline: none;
}

.field-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 107, 87, 0.1);
}

.provider-row {
  margin-top: 24px;
}

.provider-field {
  margin-top: 0;
}

.provider-selection {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.provider-picker {
  position: relative;
  flex: 1;
}

.provider-instructions-button {
  width: 52px;
  min-height: 68px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--green-dark);
  background: #fbfaf5;
  font-size: 21px;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.provider-instructions-button:hover {
  border-color: var(--green);
  background: var(--green-pale);
  transform: translateY(-1px);
}

.provider-instructions-button:focus-visible {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 107, 87, 0.1);
}

.provider-instructions-button.has-instructions {
  border-color: var(--green);
  background: var(--green-pale);
}

.provider-trigger {
  width: 100%;
  min-height: 68px;
  padding: 0 20px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--ink);
  background: var(--surface);
  font-size: 17px;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.provider-trigger:hover,
.provider-trigger[aria-expanded="true"] {
  border-color: var(--green);
}

.provider-trigger:focus-visible {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 107, 87, 0.1);
}

.provider-trigger[aria-invalid="true"] {
  border-color: var(--danger);
}

.provider-chevron {
  color: var(--green-dark);
  font-size: 20px;
  line-height: 1;
  transition: transform 150ms ease;
}

.provider-trigger[aria-expanded="true"] .provider-chevron {
  transform: rotate(180deg);
}

.provider-menu {
  position: absolute;
  z-index: 4;
  right: 0;
  left: 0;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 18px 34px rgba(30, 63, 54, 0.14);
}

.provider-options {
  max-height: 210px;
  overflow-y: auto;
  padding: 6px;
}

.provider-option,
.provider-menu-footer {
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 600;
}

.provider-option {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 8px;
}

.provider-option:hover,
.provider-option[aria-selected="true"] {
  background: var(--green-pale);
}

.provider-menu-footer {
  min-height: 48px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  color: var(--green-dark);
}

.provider-menu-footer:hover {
  background: #f7faf7;
}

.text-button {
  min-height: 40px;
  padding: 0 2px;
  flex: 0 0 auto;
  font-size: 13px;
}

.field-group input::placeholder {
  color: #95a19c;
}

.field-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 107, 87, 0.1);
}

.field-group input[aria-invalid="true"] {
  border-color: var(--danger);
}

.instructions-field,
.provider-exceptions-field {
  margin-top: 24px;
}

.instructions-field textarea,
.provider-exceptions-field textarea,
.provider-rule-fields textarea {
  width: 100%;
  min-height: 168px;
  padding: 14px 16px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.instructions-field textarea:focus,
.provider-exceptions-field textarea:focus,
.provider-rule-fields textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 107, 87, 0.1);
}

.instructions-field textarea::placeholder,
.provider-exceptions-field textarea::placeholder,
.provider-rule-fields textarea::placeholder {
  color: #95a19c;
}

.field-help {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.provider-rule-group {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.toggle-option {
  display: flex;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf5;
  cursor: pointer;
}

.toggle-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-pale);
}

.toggle-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.toggle-option span {
  display: grid;
  gap: 3px;
}

.toggle-option strong {
  font-size: 14px;
}

.toggle-option small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.provider-rule-fields {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.provider-rule-fields .field-group {
  margin-top: 0;
}

.provider-rule-fields .provider-exceptions-field {
  margin-top: 0;
}

.form-message {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--danger);
  background: var(--danger-pale);
  font-size: 14px;
}

.primary-button {
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--green);
  box-shadow: 0 12px 22px rgba(30, 107, 87, 0.2);
  font-size: 16px;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.primary-button:hover:not(:disabled) {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(30, 107, 87, 0.23);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.button-loader {
  width: 20px;
  height: 20px;
  display: none;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

.primary-button.is-loading .button-label {
  display: none;
}

.primary-button.is-loading .button-loader {
  display: block;
}

.panel-footer {
  margin: 24px -34px -34px;
  padding: 17px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #e6e8e3;
  border-radius: 0 0 28px 28px;
  color: var(--ink-soft);
  background: #faf9f4;
  font-size: 12px;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #74a38f;
}

.steps {
  margin: 34px 0 110px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.steps article {
  padding: 20px;
  display: flex;
  gap: 13px;
}

.step-number {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
  background: rgba(255, 254, 250, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 5px;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.steps p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.success-view {
  max-width: 680px;
  margin: 48px auto 120px;
  padding: 64px 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 28px;
  font-weight: 700;
}

.success-view h2 {
  margin-bottom: 14px;
  font-size: 35px;
  letter-spacing: -0.04em;
}

.success-view > p:not(.eyebrow) {
  max-width: 480px;
  margin: 0 auto 28px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.success-provider {
  margin: -15px 0 28px;
  color: var(--ink-soft);
  font-size: 14px;
}

.app-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 30px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(30, 63, 54, 0.22);
}

.app-dialog::backdrop {
  background: rgba(18, 41, 34, 0.42);
  backdrop-filter: blur(3px);
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-heading h2 {
  margin-bottom: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.dialog-close {
  width: 36px;
  height: 36px;
  margin: -8px -8px 0 0;
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
}

.dialog-close:hover {
  background: var(--green-pale);
}

.dialog-copy {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.folder-choice {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.folder-choice legend {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.choice-option {
  display: flex;
  gap: 11px;
  margin-top: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.choice-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-pale);
}

.choice-option input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.choice-option span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
}

.choice-option small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
}

.automation-card {
  margin-top: 24px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf5;
}

.drive-structure {
  margin: 22px 0 26px;
  padding: 0 1px;
}

.drive-structure strong {
  display: block;
  margin-bottom: 7px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
}

.drive-structure p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.drive-connection {
  margin-top: 18px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.drive-connection > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.drive-status {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.drive-status::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.drive-status.is-connected {
  color: var(--green-dark);
}

.drive-status.is-connected::before {
  background: #4c9b79;
}

.drive-connection a {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

.automation-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
}

.automation-card p {
  max-width: 270px;
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.automation-card .secondary-button {
  flex: 0 0 auto;
  font-size: 13px;
}

.automation-dialog {
  width: min(680px, calc(100% - 32px));
}

.prompt-label {
  display: block;
  margin: 24px 0 9px;
  font-size: 14px;
  font-weight: 700;
}

.automation-prompt {
  width: 100%;
  min-height: 300px;
  padding: 15px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: #fbfaf5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.copy-feedback {
  min-height: 19px;
  margin: 10px 0 0;
  color: var(--green-dark);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

footer {
  width: min(1180px, calc(100% - 48px));
  margin: 88px auto 0;
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(185, 199, 192, 0.65);
  color: var(--ink-soft);
  font-size: 12px;
}

footer p {
  margin-bottom: 0;
}

footer a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:hover {
  color: var(--green);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .site-header {
    width: calc(100% - 32px);
    padding-top: 20px;
  }

  .header-label {
    display: none;
  }

  .settings-button {
    font-size: 12px;
  }

  main {
    width: calc(100% - 24px);
    margin-top: 46px;
  }

  .intro {
    margin-bottom: 32px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .intro-copy {
    padding: 0 12px;
    font-size: 16px;
  }

  .upload-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .panel-heading {
    display: block;
  }

  .provider-row {
    display: block;
  }

  .provider-selection {
    gap: 8px;
  }

  .provider-instructions-button {
    width: 50px;
  }

  .text-button {
    margin-top: 7px;
  }

  .status-badge {
    display: inline-block;
    margin-top: 14px;
  }

  .drop-zone {
    padding: 36px 16px;
  }

  .panel-footer {
    margin: 22px -22px -22px;
    padding: 16px 20px;
    border-radius: 0 0 22px 22px;
    text-align: center;
  }

  .steps {
    margin-bottom: 72px;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .steps article {
    padding: 12px 18px;
  }

  .success-view {
    padding: 48px 22px;
  }

  .app-dialog {
    padding: 24px 20px;
  }

  .automation-card {
    display: block;
  }

  .automation-card .secondary-button {
    width: 100%;
    margin-top: 13px;
  }

  .drive-connection {
    align-items: stretch;
    flex-direction: column;
  }

  .drive-connection .secondary-button {
    width: 100%;
  }

  footer {
    width: calc(100% - 32px);
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.wizard-actions {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  margin-top: 22px;
  align-items: stretch;
}

.wizard-actions .primary-button {
  margin-top: 0;
}

.back-button {
  width: 48px;
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--green-dark);
  background: var(--surface);
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.back-button:hover {
  border-color: var(--green);
  background: var(--green-pale);
  transform: translateX(-1px);
}

.selected-provider-summary {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

#provider-step > .primary-button {
  width: 100%;
  margin-top: 24px;
}

@media (max-width: 620px) {
  .wizard-actions { gap: 10px; }
}

.vat-basis {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8faf7;
}

.vat-basis legend {
  padding: 0 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.vat-basis-help {
  margin: 6px 0 14px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.vat-basis-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vat-basis-option {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.vat-basis-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-pale);
}

.vat-basis-option input { accent-color: var(--green); }

.drive-folder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
}

.drive-folder-links a {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 620px) {
  .vat-basis-options { grid-template-columns: 1fr; }
}
