.accounting-sync-wizard {
    color: #e1e2ea;
    margin: 0 auto;
    max-width: 1120px;
    min-width: 0;
}

.accounting-sync-wizard-frame {
    background: #1e1d21;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 6px;
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    min-height: 560px;
    overflow: hidden;
}

.accounting-sync-setup-rail {
    background: #121419;
    border-right: 1px solid rgb(255 255 255 / 15%);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.5rem 1.25rem;
}

.accounting-sync-progress-heading {
    margin-bottom: 1.35rem;
}

.accounting-sync-progress-heading > div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.accounting-sync-progress-heading span,
.accounting-sync-stage-number,
.accounting-sync-section-kicker {
    color: #a5c8ff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.accounting-sync-progress-heading strong {
    color: #f5f6f8;
    font-size: .82rem;
}

.accounting-sync-mobile-step-toggle {
    display: none;
}

.accounting-sync-rail-stepper {
    flex: 1 1 auto;
    min-height: 240px;
}

#accountingSyncSetup.e-stepper {
    background: transparent;
    min-height: 250px;
    padding: .15rem 0;
}

#accountingSyncSetup .e-stepper-progressbar {
    --progressbar-color: #414752;
}

#accountingSyncSetup .e-progressbar-value {
    --progress-value-color: #1b6ec2;
}

#accountingSyncSetup .e-step-container {
    min-height: 58px;
}

#accountingSyncSetup .e-step-label-container {
    gap: .55rem;
}

#accountingSyncSetup .e-step-indicator {
    background: #282b31;
    border: 1px solid #59616c;
    color: #c1c6d3;
    font-size: .72rem;
    height: 24px;
    width: 24px;
}

#accountingSyncSetup .e-step-selected .e-step-indicator,
#accountingSyncSetup .e-step-inprogress .e-step-indicator {
    background: #1b6ec2;
    border-color: #a5c8ff;
    color: #fff;
}

#accountingSyncSetup .e-label {
    color: #aeb5c0;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.25;
}

#accountingSyncSetup .e-step-selected .e-label,
#accountingSyncSetup .e-step-inprogress .e-label {
    color: #d4e3ff;
    font-weight: 700;
}

#accountingSyncSetup .e-step-valid .e-step-indicator {
    background: #1e6b47;
    border-color: #65c99a;
    color: #fff;
}

.accounting-sync-rail-help {
    background: #202329;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-top: 1.25rem;
    padding: .75rem;
}

.accounting-sync-rail-help strong {
    color: #f1f3f5;
    font-size: .78rem;
}

.accounting-sync-rail-help span {
    color: #9fa8b3;
    font-size: .72rem;
    line-height: 1.4;
}

.accounting-sync-rail-help .accounting-sync-support-link {
    background: transparent;
    border: 0;
    color: #a5c8ff;
    cursor: pointer;
    font-size: .75rem;
    margin-top: .2rem;
    padding: 0;
    text-align: left;
    text-decoration: underline;
}

.accounting-sync-rail-help .accounting-sync-support-link:focus-visible {
    border-radius: 2px;
    outline: 3px solid #76c7ff;
    outline-offset: 3px;
}

.accounting-sync-stage-workspace {
    background: #202226;
    min-width: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.accounting-sync-stage-header {
    margin-bottom: 1.35rem;
}

.accounting-sync-stage-header h2,
.accounting-sync-mappings h3 {
    color: #f5f6f8;
    margin: .3rem 0 .45rem;
}

.accounting-sync-stage-header h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    line-height: 1.25;
}

.accounting-sync-stage-header h2:focus-visible {
    border-radius: 2px;
    outline: 3px solid #76c7ff;
    outline-offset: 4px;
}

.accounting-sync-stage-header p {
    color: #b8c0ca;
    font-size: .9rem;
    line-height: 1.55;
    margin: 0;
    max-width: 46rem;
}

.accounting-sync-address-alert {
    display: grid;
    gap: .55rem;
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    color: #ffe8eb;
    background: rgb(220 53 69 / 20%);
    border: 1px solid #ef7b88;
    border-left: 5px solid #ff6b7a;
    border-radius: 5px;
}

.accounting-sync-address-alert strong {
    color: #fff4f5;
    font-size: 1rem;
}

.accounting-sync-address-alert > span {
    color: #ffd8dc;
    line-height: 1.45;
}

.accounting-sync-action-panel {
    align-items: flex-start;
    background: #181a1e;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
}

.accounting-sync-action-panel-connect {
    align-items: center;
    justify-content: center;
    min-height: 188px;
    text-align: center;
}

.accounting-sync-action-panel > span:last-child {
    color: #9fa8b3;
    font-size: .74rem;
}

.accounting-sync-next-step {
    align-items: center;
    background: linear-gradient(105deg, #102a44 0%, #162536 100%);
    border: 1px solid #4d94d9;
    border-left: 4px solid #76c7ff;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgb(0 0 0 / 36%);
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-bottom: .9rem;
    padding: .85rem 1rem;
    position: sticky;
    top: .75rem;
    z-index: 20;
}

.accounting-sync-next-step-icon {
    align-items: center;
    background: #1b6ec2;
    border: 1px solid #76c7ff;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.accounting-sync-next-step-copy {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.accounting-sync-next-step-copy strong {
    color: #fff;
    font-size: .96rem;
}

.accounting-sync-next-step-copy > span:last-child {
    color: #c5d7e8;
    font-size: .78rem;
    line-height: 1.4;
}

.accounting-sync-next-step-action.e-btn {
    gap: .55rem;
    min-width: 205px;
}

.accounting-sync-record-choices-focus:focus-visible {
    border-radius: 5px;
    outline: 3px solid #76c7ff;
    outline-offset: 4px;
}

.accounting-sync-action-icon {
    align-items: center;
    background: #343840;
    border: 1px solid #4e5661;
    border-radius: 50%;
    color: #c9d8ec;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.accounting-sync-primary-action,
.accounting-sync-primary-link {
    align-items: center;
    background: #1b6ec2;
    border-color: #3887d4;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-size: .85rem;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    min-width: 210px;
    padding-inline: 1.25rem;
}

.accounting-sync-primary-action:hover,
.accounting-sync-primary-link:hover {
    background: #155a9f;
    color: #fff;
}

.accounting-sync-primary-action:focus-visible,
.accounting-sync-primary-link:focus-visible,
.accounting-sync-mobile-step-toggle:focus-visible {
    outline: 3px solid #76c7ff;
    outline-offset: 3px;
}

.accounting-sync-connect-support {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.accounting-sync-prerequisites {
    background: #191b20;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 4px;
    padding: 1rem;
}

.accounting-sync-prerequisites h3 {
    align-items: center;
    color: #edf0f3;
    display: flex;
    font-size: .84rem;
    gap: .5rem;
    margin: 0 0 .8rem;
}

.accounting-sync-prerequisites h3 i {
    color: #a5c8ff;
}

.accounting-sync-prerequisites ul {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.accounting-sync-prerequisites li {
    align-items: flex-start;
    color: #bdc5ce;
    display: flex;
    font-size: .8rem;
    gap: .55rem;
    line-height: 1.35;
}

.accounting-sync-prerequisites li i {
    color: #56bd88;
    margin-top: .1rem;
}

.accounting-sync-assurance-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.accounting-sync-assurance-list > div {
    align-items: center;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    display: flex;
    gap: .8rem;
    padding: .75rem 0;
}

.accounting-sync-assurance-list > div:last-child {
    border-bottom: 0;
}

.accounting-sync-assurance-icon {
    align-items: center;
    background: #292c32;
    border: 1px solid #454b55;
    border-radius: 4px;
    color: #c0cad5;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
}

.accounting-sync-assurance-list p,
.accounting-sync-review-note p {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin: 0;
}

.accounting-sync-assurance-list strong,
.accounting-sync-review-note strong {
    color: #e9ecef;
    font-size: .8rem;
}

.accounting-sync-assurance-list p span,
.accounting-sync-review-note p span,
.accounting-sync-company-check span {
    color: #9fa8b3;
    font-size: .75rem;
    line-height: 1.4;
}

.accounting-sync-company-check,
.accounting-sync-review-note {
    background: #181a1e;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 4px;
    margin-bottom: 1rem;
    padding: 1rem;
}

.accounting-sync-company-check {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.accounting-sync-company-check strong {
    color: #f0f2f4;
}

.accounting-sync-review-note {
    align-items: flex-start;
    display: flex;
    gap: .75rem;
}

.accounting-sync-review-note > i {
    color: #56bd88;
    margin-top: .15rem;
}

.accounting-sync-preview-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.accounting-sync-preview-grid > div {
    background: #181a1e;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: .8rem;
}

.accounting-sync-preview-grid span {
    color: #9fa8b3;
    font-size: .73rem;
}

.accounting-sync-preview-grid strong {
    color: #f5f6f8;
    font-size: 1.25rem;
}

.accounting-sync-waiting {
    align-items: center;
    background: #152e40;
    border: 1px solid #3c789e;
    border-radius: 4px;
    display: flex;
    gap: .65rem;
    min-height: 44px;
    padding: .6rem .85rem;
}

.accounting-sync-pulse {
    animation: accounting-sync-pulse 1.4s ease-in-out infinite;
    background: #79d5ff;
    border-radius: 50%;
    height: .6rem;
    width: .6rem;
}

.accounting-sync-mappings {
    border-top: 1px solid rgb(255 255 255 / 12%);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.accounting-sync-section-heading {
    align-items: flex-end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.accounting-sync-section-heading > span {
    color: #9fa8b3;
    font-size: .75rem;
}

.accounting-sync-empty {
    background: #191b20;
    border: 1px dashed #4b535e;
    color: #abb4bd;
    margin-top: 1rem;
    padding: .85rem;
}

.accounting-sync-page-status {
    align-items: center;
    color: #9fa8b3;
    display: flex;
    flex-wrap: wrap;
    font-size: .75rem;
    gap: .55rem;
    min-height: 44px;
    padding-top: .55rem;
}

.accounting-sync-preview-intro,
.accounting-sync-final-review > section,
.accounting-sync-review-row,
.accounting-sync-mapping-row {
    background: #181a1e;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 4px;
}

.accounting-sync-preview-intro {
    align-items: flex-start;
    display: flex;
    gap: .8rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

.accounting-sync-preview-intro > i {
    color: #79d5ff;
    margin-top: .2rem;
}

.accounting-sync-preview-intro p {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin: 0;
}

.accounting-sync-preview-intro strong,
.accounting-sync-mapping-label label,
.accounting-sync-review-row strong,
.accounting-sync-final-review strong {
    color: #f0f2f4;
}

.accounting-sync-preview-intro span,
.accounting-sync-mapping-label span,
.accounting-sync-review-row span,
.accounting-sync-final-review small,
.accounting-sync-field-help {
    color: #9fa8b3;
    font-size: .75rem;
    line-height: 1.45;
}

.accounting-sync-preview-summary,
.accounting-sync-record-policies,
.accounting-sync-review-list,
.accounting-sync-mapping-editor {
    border-top: 1px solid rgb(255 255 255 / 12%);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.accounting-sync-preview-summary:first-child,
.accounting-sync-record-policies:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.accounting-sync-setup-tools {
    border-top: 1px solid rgb(255 255 255 / 12%);
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.accounting-sync-setup-tool-card {
    align-items: flex-start;
    background: #181a1e;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 5px;
    display: grid;
    gap: .85rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1rem;
}

.accounting-sync-setup-tool-icon {
    align-items: center;
    background: rgb(0 176 255 / 12%);
    border: 1px solid rgb(0 176 255 / 32%);
    border-radius: 50%;
    color: #79d5ff;
    display: inline-flex;
    height: 2.4rem;
    justify-content: center;
    width: 2.4rem;
}

.accounting-sync-setup-tool-copy {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.accounting-sync-setup-tool-copy h3 {
    color: #f5f6f8;
    margin: 0;
}

.accounting-sync-setup-tool-copy p {
    color: #aeb7c1;
    font-size: .78rem;
    line-height: 1.5;
    margin: 0;
}

.accounting-sync-setup-tool-copy > strong {
    color: #a5c8ff;
    font-size: .73rem;
    margin-top: .2rem;
}

.accounting-sync-setup-tool-card .accounting-sync-tool-action {
    grid-column: 1 / -1;
    justify-self: flex-end;
    min-height: 42px;
}

.accounting-sync-editor-dialog.e-dialog {
    background: #111318;
    border: 1px solid #454c56;
}

.accounting-sync-editor-dialog .e-dlg-header-content,
.accounting-sync-editor-dialog .e-footer-content {
    background: #17191e;
    border-color: rgb(255 255 255 / 12%);
}

.accounting-sync-editor-dialog .e-dlg-content {
    background: #111318;
    color: #edf0f3;
    overflow: auto;
    padding: 1rem 1.1rem;
}

.accounting-sync-dialog-heading {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.accounting-sync-dialog-heading span {
    color: #8fa0b2;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.accounting-sync-dialog-heading strong {
    color: #f5f6f8;
    font-size: 1rem;
}

.accounting-sync-dialog-intro {
    background: #191c22;
    border-left: 3px solid #00b0ff;
    color: #b8c0ca;
    font-size: .8rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    padding: .75rem .9rem;
}

.accounting-sync-account-dialog-intro {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.accounting-sync-account-dialog.e-dialog {
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 8px;
    overflow: hidden;
}

.accounting-sync-account-dialog .e-dlg-content {
    max-height: calc(92vh - 84px);
    overflow: auto;
    padding: 1.25rem;
}

.accounting-sync-account-dialog-body {
    display: grid;
    gap: 1rem;
}

.accounting-sync-account-dialog-trigger {
    align-items: center;
    display: flex;
    gap: .75rem;
}

.accounting-sync-account-dialog-body .accounting-sync-review-list {
    margin-top: 0;
}

.accounting-sync-account-dialog-footer {
    background: #181a1e;
    border-top: 1px solid rgb(255 255 255 / 14%);
    bottom: -1.25rem;
    margin: 0 -1.25rem;
    padding: 1rem 1.25rem;
    position: sticky;
    z-index: 2;
}

.accounting-sync-item-guide-steps {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-block: 1rem;
}

.accounting-sync-item-guide-step {
    align-items: center;
    background: #1a1d21;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 5px;
    color: #dce4ec;
    display: flex;
    gap: .55rem;
    min-width: 0;
    padding: .65rem;
    text-align: left;
}

.accounting-sync-item-guide-step small {
    color: #97a5b2;
    display: block;
    font-size: .68rem;
    margin-top: .1rem;
}

.accounting-sync-item-guide-step.is-current {
    border-color: #49baf2;
    box-shadow: inset 0 0 0 1px rgb(73 186 242 / 30%);
}

.accounting-sync-item-guide-step.is-complete {
    border-color: rgb(70 190 138 / 55%);
}

.accounting-sync-item-guide-step.is-locked {
    cursor: not-allowed;
    opacity: .5;
}

.accounting-sync-item-guide-number {
    align-items: center;
    background: rgb(255 255 255 / 9%);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 1.65rem;
    height: 1.65rem;
    justify-content: center;
}

.accounting-sync-item-guide-step.is-current .accounting-sync-item-guide-number {
    background: #1688c5;
    color: #fff;
}

.accounting-sync-item-guide-step.is-complete .accounting-sync-item-guide-number {
    background: #237b58;
    color: #fff;
}

.accounting-sync-item-guide-body {
    background: #181a1e;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 5px;
    display: grid;
    gap: .9rem;
    margin-block: 1rem;
    padding: 1rem;
}

.accounting-sync-item-guide-body h4,
.accounting-sync-item-guide-body p {
    margin: 0;
}

.accounting-sync-item-guide-body > details.accounting-sync-ready-advanced {
    margin: .25rem 0 0;
    max-width: none;
    width: 100%;
}

.accounting-sync-ready-advanced > summary {
    padding: .55rem 0;
}

.accounting-sync-item-preview-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-block: 1rem;
}

.accounting-sync-item-review-command {
    align-items: center;
    background: #171f24;
    border: 1px solid #345363;
    border-radius: 5px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-block: 1rem;
    padding: .85rem;
}

.accounting-sync-item-review-command > div {
    display: grid;
    gap: .35rem;
}

.accounting-sync-item-review-command small {
    color: #a8b4be;
}

.accounting-sync-item-review-groups {
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(0, 1fr);
}

.accounting-sync-item-outcome-summary {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.accounting-sync-item-outcome-summary > div {
    background: #181a1e;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 5px;
    display: grid;
    gap: .3rem;
    padding: .85rem;
}

.accounting-sync-item-outcome-summary strong {
    font-size: 1.45rem;
}

.accounting-sync-item-outcome-summary small {
    color: #9eabb6;
}

.accounting-sync-item-review-group {
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 5px;
    overflow: hidden;
}

.accounting-sync-item-review-group > header {
    align-items: center;
    background: rgb(255 255 255 / 4%);
    display: flex;
    justify-content: space-between;
    padding: .75rem;
}

.accounting-sync-item-review-group h5,
.accounting-sync-item-review-group p {
    margin: 0;
}

.accounting-sync-item-review-group p,
.accounting-sync-item-simple-row small {
    color: #9eabb6;
    font-size: .75rem;
}

.accounting-sync-item-simple-row {
    align-items: center;
    border-top: 1px solid rgb(255 255 255 / 10%);
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(7rem, .7fr) minmax(9rem, 1fr);
    padding: .75rem;
}

.accounting-sync-item-simple-name,
.accounting-sync-item-simple-sku,
.accounting-sync-item-simple-action {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.accounting-sync-item-technical-details {
    border-top: 1px solid rgb(255 255 255 / 14%);
    margin-top: 1rem;
    padding-top: .75rem;
}

.accounting-sync-item-technical-details > summary {
    cursor: pointer;
    font-weight: 700;
}

.accounting-company-address-dialog.e-dialog {
    border-radius: 7px;
    box-shadow: 0 18px 48px rgb(0 0 0 / 55%);
    max-height: min(88vh, 720px);
    overflow: hidden;
}

.accounting-company-address-dialog .e-dlg-content {
    max-height: calc(88vh - 145px);
}

.accounting-company-address-body {
    display: grid;
    gap: 1rem;
}

.accounting-company-address-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accounting-company-address-card,
.accounting-company-address-selection {
    background: #1b1e23;
    border: 1px solid #454c56;
    border-radius: 5px;
    display: grid;
    gap: .45rem;
    min-width: 0;
    padding: .9rem 1rem;
}

.accounting-company-address-card span,
.accounting-company-address-selection span {
    color: #9aa8b8;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.accounting-company-address-card strong,
.accounting-company-address-selection strong {
    color: #f5f6f8;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.accounting-company-address-card a {
    color: #76c7ff;
    font-size: .8rem;
    font-weight: 700;
    justify-self: start;
}

.accounting-company-address-search.e-btn,
.accounting-company-address-use.e-btn {
    justify-self: start;
    margin-top: .25rem;
}

.accounting-company-address-footer {
    align-items: center;
    display: flex;
    gap: .65rem;
    justify-content: flex-end;
    width: 100%;
}

.accounting-company-address-footer .e-btn {
    align-items: center;
    display: inline-flex;
    gap: .5rem;
    justify-content: center;
}

.accounting-sync-button-spinner {
    display: inline-block;
    height: 15px;
    width: 15px;
}

.accounting-company-address-match,
.accounting-company-address-mismatch {
    border-radius: 5px;
    line-height: 1.45;
    padding: .75rem .9rem;
}

.accounting-company-address-match {
    background: rgb(39 174 96 / 16%);
    border: 1px solid #4bbf7a;
    color: #d8f6e4;
}

.accounting-company-address-mismatch {
    background: rgb(220 53 69 / 18%);
    border: 1px solid #ef7b88;
    color: #ffe2e5;
}

.accounting-sync-review-tabs {
    border-bottom: 1px solid #454c56;
    display: flex;
    gap: .25rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.accounting-sync-review-tab {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #aeb7c1;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    gap: .45rem;
    min-height: 44px;
    padding: .55rem .8rem;
}

.accounting-sync-review-tab span {
    background: #272c33;
    border-radius: 999px;
    color: #d9e0e7;
    font-size: .68rem;
    min-width: 1.45rem;
    padding: .15rem .4rem;
    text-align: center;
}

.accounting-sync-review-tab.is-selected {
    border-bottom-color: #00b0ff;
    color: #f5f6f8;
}

.accounting-sync-review-tab:focus-visible {
    outline: 3px solid rgb(118 199 255 / 35%);
    outline-offset: -3px;
}

.accounting-sync-review-tab:disabled {
    cursor: wait;
    opacity: .62;
}

.accounting-sync-editor-dialog .accounting-sync-review-list,
.accounting-sync-editor-dialog .accounting-sync-mapping-editor {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.accounting-sync-preview-state {
    border: 1px solid;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .55rem;
    text-transform: uppercase;
}

.accounting-sync-preview-current {
    background: #17392a;
    border-color: #328b61;
    color: #8de0b5 !important;
}

.accounting-sync-customer-plan-summary {
    background: #171a1f;
    border: 1px solid #3f4750;
    border-radius: 5px;
    display: grid;
    gap: .35rem;
    margin-top: .8rem;
    padding: .7rem .8rem;
}

.accounting-sync-customer-plan-summary span {
    color: #b8c1ca;
    font-size: .77rem;
}

.accounting-sync-customer-plan-summary strong {
    color: #eef2f6;
}

.accounting-sync-preview-expired {
    background: #3b321e;
    border-color: #8d743c;
    color: #f0c86d !important;
}

.accounting-sync-preview-refresh {
    align-items: center;
    background: #3b321e;
    border: 2px solid #b18b3d;
    border-radius: 4px;
    color: #f7e2ad;
    display: grid;
    gap: .8rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-top: 1rem;
    padding: 1rem;
}

.accounting-sync-preview-refresh > div {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.accounting-sync-preview-refresh strong {
    color: #fff4d6;
    font-size: .85rem;
}

.accounting-sync-preview-refresh span {
    color: #e2d2aa;
    font-size: .76rem;
    line-height: 1.45;
}

.accounting-sync-preview-refresh-button {
    min-height: 42px;
    white-space: nowrap;
}

.accounting-sync-customer-defaults {
    background: #171a1f;
    border: 1px solid #424952;
    border-radius: 6px;
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: .85rem 0 1rem;
    padding: .9rem;
}

.accounting-sync-customer-defaults > div,
.accounting-sync-customer-defaults > .accounting-sync-policy-toggle-state {
    grid-column: 1 / -1;
}

.accounting-sync-customer-defaults h4,
.accounting-sync-customer-defaults p {
    margin: 0;
}

.accounting-sync-customer-defaults p {
    color: #aab3bd;
    font-size: .8rem;
    margin-top: .25rem;
}

.accounting-sync-customer-defaults.accounting-sync-item-preview {
    grid-template-columns: minmax(0, 1fr);
}

.accounting-sync-customer-defaults.accounting-sync-item-preview > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.accounting-sync-record-policies.is-saving,
.accounting-sync-record-policies.is-saving * {
    cursor: wait !important;
}

.accounting-sync-customer-default-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accounting-sync-customer-default-option {
    align-items: flex-start;
    background: #1c2026;
    border: 1px solid #48515b;
    border-radius: 5px;
    cursor: pointer;
    display: grid;
    gap: .65rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 76px;
    padding: .75rem;
}

.accounting-sync-customer-default-option.is-selected {
    background: #142d39;
    border-color: #39baf6;
}

.accounting-sync-customer-default-option input {
    accent-color: #26b8fa;
    height: 18px;
    margin: .1rem 0 0;
    width: 18px;
}

.accounting-sync-customer-default-option span {
    display: grid;
    gap: .22rem;
}

.accounting-sync-customer-default-option strong {
    color: #eef3f7;
    font-size: .82rem;
    line-height: 1.35;
}

.accounting-sync-customer-default-option small {
    color: #aab5bf;
    font-size: .75rem;
    line-height: 1.4;
}

.accounting-sync-customer-default-option b {
    color: #8c98a3;
    font-size: .7rem;
    text-transform: uppercase;
}

.accounting-sync-customer-default-option.is-selected b {
    color: #66cdfc;
}

.accounting-sync-customer-saving {
    color: #66cdfc;
}

.accounting-sync-record-policies .accounting-sync-policy-card {
    box-sizing: border-box;
    border-radius: 4px;
    display: inline-flex;
    margin: .45rem .55rem .45rem 0;
    min-width: min(100%, 230px);
    vertical-align: top;
    width: calc(33.333% - .55rem);
}

.accounting-sync-record-policies .e-card-header {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    width: 100%;
}

.accounting-sync-policy-label {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
}

.accounting-sync-policy-toggle {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: .5rem;
    justify-content: flex-end;
    min-width: 5.25rem;
}

.accounting-sync-policy-toggle-state {
    color: #aeb8c2;
    font-size: .7rem;
    font-weight: 700;
    min-width: 2.6rem;
    text-align: right;
}

.accounting-sync-policy-toggle .e-switch-wrapper {
    flex: 0 0 34px;
    margin: 0;
}

.accounting-sync-policy-toggle .e-switch-wrapper.e-switch-disabled .e-switch-inner {
    background-color: initial;
    opacity: 1;
}

.accounting-sync-policy-toggle .e-switch-wrapper.e-switch-disabled .e-switch-inner .e-switch-off {
    background-color: rgb(255 255 255 / 42%);
    opacity: .42;
}

.accounting-sync-policy-toggle .e-switch-wrapper.e-switch-disabled .e-switch-inner .e-switch-on,
.accounting-sync-policy-toggle .e-switch-wrapper.e-switch-disabled .e-switch-handle.e-switch-active {
    background-color: #00b0ff;
}

.accounting-sync-policy-toggle .e-switch-wrapper.e-switch-disabled .e-switch-inner .e-switch-on {
    opacity: .54;
}

.accounting-sync-policy-toggle .e-switch-wrapper.e-switch-disabled .e-switch-handle:not(.e-switch-active) {
    background-color: #9e9e9e;
}

.accounting-sync-record-policies .e-card-content p {
    color: #b8c0ca;
    font-size: .76rem;
    line-height: 1.45;
    margin: .35rem 0;
}

.accounting-sync-review-list h3,
.accounting-sync-mapping-editor h3,
.accounting-sync-record-policies h3,
.accounting-sync-preview-summary h3 {
    color: #f5f6f8;
    margin: .3rem 0 .2rem;
}

.accounting-sync-review-row {
    display: grid;
    gap: .8rem;
    grid-template-columns: minmax(180px, .9fr) minmax(220px, 1.1fr) auto;
    margin-top: .65rem;
    padding: .85rem;
}

.accounting-sync-review-search {
    display: grid;
    gap: .35rem;
    margin: .8rem 0;
}

.accounting-sync-review-search > label,
.accounting-sync-review-decisions legend {
    color: #cbd2da;
    font-size: .78rem;
    font-weight: 600;
}

.accounting-sync-review-search > div {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.accounting-sync-review-search input {
    background: #181b20;
    border: 1px solid #59616c;
    border-radius: 4px;
    color: #edf0f3;
    flex: 1 1 260px;
    min-height: 44px;
    padding: .55rem .7rem;
}

.accounting-sync-review-search input:focus-visible {
    border-color: #76c7ff;
    outline: 3px solid rgb(118 199 255 / 35%);
    outline-offset: 1px;
}

.accounting-sync-review-decisions {
    border: 0;
    display: grid;
    gap: .5rem;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.accounting-sync-review-unsafe {
    background: #2a2117;
    border-left: 3px solid #d99b45;
    color: #e2c69f;
    font-size: .75rem;
    line-height: 1.45;
    margin: 0;
    padding: .55rem .65rem;
}

.accounting-sync-radio-option {
    align-items: flex-start;
    background: #1c2026;
    border: 1px solid #454c56;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    gap: .6rem;
    min-height: 44px;
    padding: .55rem .65rem;
}

.accounting-sync-radio-option.is-selected {
    background: rgb(0 176 255 / 9%);
    border-color: #4db8e8;
}

.accounting-sync-radio-option input {
    accent-color: #00b0ff;
    flex: 0 0 auto;
    margin-top: .2rem;
}

.accounting-sync-radio-option > span {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.accounting-sync-radio-option small,
.accounting-sync-review-result-count,
.accounting-sync-review-pagination {
    color: #9fa8b3;
    font-size: .75rem;
    line-height: 1.45;
}

.accounting-sync-review-result-count {
    margin-top: .35rem;
}

.accounting-sync-review-counterpart {
    background: #181c21;
    border-left: 2px solid #4db8e8;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    margin-top: .35rem;
    padding: .4rem .55rem;
}

.accounting-sync-review-counterpart small {
    color: #8fa0b2;
    font-size: .68rem;
}

.accounting-sync-review-counterpart strong {
    color: #dfeaf4;
    font-size: .78rem;
}

.accounting-sync-review-origin {
    align-items: center;
    align-self: flex-start;
    background: #1b2a24;
    border: 1px solid #3d6654;
    border-radius: 4px;
    display: inline-flex;
    gap: .45rem;
    margin-top: .35rem;
    padding: .3rem .5rem;
}

.accounting-sync-review-origin small {
    color: #9db7aa;
    font-size: .66rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.accounting-sync-review-origin strong {
    color: #d7eee2;
    font-size: .74rem;
}

.accounting-sync-review-pagination {
    align-items: center;
    display: flex;
    gap: .65rem;
    justify-content: flex-end;
    margin-top: .9rem;
}

.accounting-sync-review-bulk-actions {
    align-items: center;
    background: #181f27;
    border: 1px solid #46596c;
    border-radius: 5px;
    display: flex;
    gap: .8rem;
    justify-content: space-between;
    margin-top: .8rem;
    padding: .7rem .8rem;
}

.accounting-sync-review-bulk-actions > span {
    color: #afbecd;
    font-size: .75rem;
    line-height: 1.4;
}

.accounting-sync-review-bulk-actions .e-btn {
    flex: 0 0 auto;
    min-width: 190px;
}

.accounting-sync-review-row > div:first-child,
.accounting-sync-mapping-label,
.accounting-sync-mapping-status {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.accounting-sync-review-actions,
.accounting-sync-editor-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.accounting-sync-review-saved {
    color: #8de0b5;
    font-size: .75rem;
    font-weight: 700;
}

.accounting-sync-select {
    background: #202329;
    border: 1px solid #59616c;
    border-radius: 4px;
    color: #edf0f3;
    min-height: 44px;
    padding: .55rem .7rem;
    width: 100%;
}

.accounting-sync-select:focus-visible {
    border-color: #76c7ff;
    outline: 3px solid rgb(118 199 255 / 35%);
    outline-offset: 1px;
}

.accounting-sync-select:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.accounting-sync-mapping-control {
    min-width: 0;
}

.accounting-sync-automatic-tax-treatment {
    background: #152b22;
    border: 1px solid #3d8f68;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-height: 44px;
    padding: .65rem .75rem;
}

.accounting-sync-automatic-tax-treatment strong {
    color: #a8e9c7;
}

.accounting-sync-automatic-tax-treatment span {
    color: #c1ccc6;
    font-size: .78rem;
    line-height: 1.45;
}

.accounting-sync-mapping-search {
    background: #181b20;
    border: 1px solid #454c56;
    border-radius: 4px;
    color: #edf0f3;
    margin-bottom: .45rem;
    min-height: 38px;
    padding: .45rem .65rem;
    width: 100%;
}

.accounting-sync-mapping-search:focus-visible {
    border-color: #76c7ff;
    outline: 3px solid rgb(118 199 255 / 35%);
    outline-offset: 1px;
}

.accounting-sync-mapping-option-state {
    align-items: center;
    color: #9fa8b3;
    display: flex;
    flex-wrap: wrap;
    font-size: .72rem;
    gap: .45rem;
    min-height: 1.8rem;
    padding-top: .35rem;
}

.accounting-sync-mapping-refresh {
    align-items: center;
    display: inline-flex;
    gap: .3rem;
    margin-left: auto;
}

.accounting-sync-inline-link {
    background: transparent;
    border: 0;
    color: #79d5ff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 32px;
    padding: .25rem .15rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.accounting-sync-inline-link:focus-visible {
    border-radius: 3px;
    outline: 3px solid rgb(118 199 255 / 35%);
    outline-offset: 1px;
}

.accounting-sync-inline-link:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.accounting-sync-default-item-create {
    background: #181b20;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-top: .65rem;
    padding: .7rem;
}

.accounting-sync-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.accounting-sync-mapping-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.accounting-sync-mapping-row {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(170px, .8fr) minmax(240px, 1.25fr) minmax(150px, .75fr);
    padding: .85rem;
}

.accounting-sync-mapping-label small {
    color: #a5c8ff;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.accounting-sync-mapping-status strong {
    font-size: .76rem;
}

.accounting-sync-mapping-status-ready strong { color: #70d6a3; }
.accounting-sync-mapping-status-optional strong { color: #b8c0ca; }
.accounting-sync-mapping-status-invalid strong,
.accounting-sync-mapping-status-unavailable strong { color: #f0c86d; }

.accounting-sync-editor-actions {
    margin-top: .85rem;
}

.accounting-sync-field-help {
    display: block;
    margin: .55rem 0 0;
}

.accounting-sync-final-review {
    display: grid;
    gap: .7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accounting-sync-review-edit {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.accounting-sync-review-edit .e-btn {
    align-items: center;
    display: inline-flex;
    gap: .45rem;
}

.accounting-sync-settings-loading {
    align-items: center;
    color: #b8c0ca;
    display: inline-flex;
    gap: .55rem;
    margin: .35rem 0 1rem;
    min-height: 2rem;
}

.accounting-sync-settings-loading .accounting-sync-command-spinner {
    height: .95rem;
    margin-top: 0;
    width: .95rem;
}

.accounting-sync-settings-load-error {
    align-items: center;
    background: rgb(178 66 66 / 12%);
    border: 1px solid rgb(225 105 105 / 45%);
    border-radius: 5px;
    color: #f0c3c3;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin: .35rem 0 1rem;
    padding: .7rem .8rem;
}

.accounting-sync-settings-retry.e-btn {
    flex: 0 0 auto;
    min-height: 36px;
}

.accounting-sync-secondary-button {
    color: #b8c0ca !important;
    font-size: 0.76rem !important;
    letter-spacing: 0.08em;
}

.accounting-sync-final-review > section {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .9rem;
}

.accounting-sync-final-review > section > span {
    color: #a5c8ff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.accounting-sync-wizard-compact .accounting-sync-wizard-frame {
    min-height: 460px;
}

.accounting-sync-wizard-compact .accounting-sync-stage-workspace {
    padding: 1.5rem;
}

@keyframes accounting-sync-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgb(121 213 255 / 20%); opacity: .8; }
    50% { box-shadow: 0 0 0 7px rgb(121 213 255 / 0%); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .accounting-sync-pulse {
        animation: none;
    }
}

@media (max-width: 800px) {
    .accounting-sync-wizard-frame {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .accounting-sync-connect-support {
        grid-template-columns: 1fr;
    }

    .accounting-sync-customer-defaults,
    .accounting-sync-customer-default-grid {
        grid-template-columns: 1fr;
    }

    .accounting-sync-setup-tools {
        grid-template-columns: 1fr;
    }

    .accounting-sync-record-policies .accounting-sync-policy-card {
        width: calc(50% - .55rem);
    }

    .accounting-sync-review-row,
    .accounting-sync-mapping-row {
        grid-template-columns: 1fr 1fr;
    }

    .accounting-sync-review-actions,
    .accounting-sync-mapping-status {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .accounting-sync-inline-link {
        min-height: 44px;
    }

    .accounting-sync-wizard-frame {
        display: block;
        min-height: 0;
        overflow: visible;
    }

    .accounting-sync-setup-rail {
        border-bottom: 1px solid rgb(255 255 255 / 15%);
        border-right: 0;
        padding: .8rem 1rem;
    }

    .accounting-sync-progress-heading {
        align-items: center;
        display: flex;
        justify-content: space-between;
        margin: 0;
    }

    .accounting-sync-mobile-step-toggle {
        background: transparent;
        border: 1px solid #59616c;
        border-radius: 4px;
        color: #c8d6e6;
        display: inline-flex;
        font: inherit;
        font-size: .74rem;
        min-height: 40px;
        padding: .4rem .65rem;
    }

    .accounting-sync-rail-stepper,
    .accounting-sync-rail-help {
        display: none;
    }

    .accounting-sync-setup-rail-expanded .accounting-sync-rail-stepper {
        display: block;
        margin-top: .8rem;
        min-height: 230px;
    }

    .accounting-sync-stage-workspace,
    .accounting-sync-wizard-compact .accounting-sync-stage-workspace {
        padding: 1rem;
    }

    .accounting-sync-stage-header {
        margin-bottom: 1rem;
    }

    .accounting-sync-action-panel-connect {
        min-height: 170px;
        padding: 1rem;
    }

    .accounting-sync-primary-action,
    .accounting-sync-primary-link,
    .accounting-sync-waiting {
        min-width: 0;
        width: 100%;
    }

    .accounting-sync-next-step {
        grid-template-columns: auto minmax(0, 1fr);
        top: .5rem;
    }

    .accounting-sync-next-step-action.e-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .accounting-sync-connect-support,
    .accounting-sync-preview-grid,
    .accounting-sync-preview-refresh,
    .accounting-sync-final-review,
    .accounting-company-address-grid {
        grid-template-columns: 1fr;
    }

    .accounting-sync-item-guide-steps,
    .accounting-sync-item-preview-compact,
    .accounting-sync-item-outcome-summary,
    .accounting-sync-item-review-groups,
    .accounting-sync-item-simple-row {
        grid-template-columns: 1fr;
    }

    .accounting-sync-item-review-command {
        align-items: stretch;
        flex-direction: column;
    }

    .accounting-sync-preview-refresh-button,
    .accounting-sync-review-edit,
    .accounting-sync-review-edit .e-btn {
        width: 100%;
    }

    .accounting-sync-record-policies .accounting-sync-policy-card,
    .accounting-sync-setup-tool-card,
    .accounting-sync-review-row,
    .accounting-sync-mapping-row {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .accounting-sync-review-actions,
    .accounting-sync-editor-actions,
    .accounting-sync-review-bulk-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .accounting-sync-account-dialog-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .accounting-sync-account-dialog-trigger {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .accounting-sync-account-dialog-trigger .e-btn {
        width: 100%;
    }

    .accounting-sync-account-dialog .e-dlg-content {
        padding: .85rem;
    }

    .accounting-sync-account-dialog-footer {
        bottom: -.85rem;
        margin: 0 -.85rem;
        padding: .85rem;
    }

    .accounting-sync-review-actions .e-btn,
    .accounting-sync-editor-actions .e-btn,
    .accounting-sync-review-bulk-actions .e-btn,
    .accounting-sync-setup-tool-card .accounting-sync-tool-action {
        min-height: 44px;
        width: 100%;
    }

    .accounting-sync-editor-dialog .e-dlg-content {
        padding: .8rem;
    }

    .accounting-sync-review-tabs {
        margin-left: -.15rem;
        margin-right: -.15rem;
    }

    .accounting-sync-review-tab {
        flex: 1 0 auto;
        justify-content: center;
        padding-left: .6rem;
        padding-right: .6rem;
    }

    .accounting-sync-review-search > div,
    .accounting-sync-review-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .accounting-sync-review-search input,
    .accounting-sync-review-search .e-btn,
    .accounting-sync-review-pagination .e-btn {
        flex-basis: auto;
        min-height: 44px;
        width: 100%;
    }

    .accounting-sync-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }
}
