.poa-page {
    --poa-orange: #ff671d;
    --poa-orange-dark: #d94d0e;
    --poa-ink: #1d2433;
    --poa-muted: #667085;
    --poa-line: #e7e9ef;
    --poa-soft: #f6f7f9;
    --poa-success: #127c43;
    --poa-danger: #c4321c;
    color: var(--poa-ink);
    background: #f7f8fa;
    -webkit-font-smoothing: antialiased;
}

.poa-container {
    max-width: 1280px;
    width: calc(100% - 40px);
    margin: 0 auto;
}

.poa-title-band {
    position: relative;
    padding: 264px 0 48px;
    background: var(--poa-banner-bg, #202633);
    color: var(--poa-banner-text, #fff);
    transition: background .25s ease, color .25s ease;
    --poa-banner-bg: #202633;
    --poa-banner-text: #fff;
    --poa-banner-lead: rgba(255, 255, 255, .78);
    --poa-banner-divider: rgba(255, 255, 255, .12);
    --poa-banner-btn-bg: #ff671d;
    --poa-banner-btn-text: #fff;
    --poa-banner-btn-border: #ff671d;
    --poa-banner-btn-shadow: rgba(255, 103, 29, 0.18);
    --poa-banner-btn-hover-bg: #e75a16;
    --poa-banner-btn-hover-border: #e75a16;
    --poa-banner-btn-hover-shadow: rgba(255, 103, 29, 0.28);
}

.poa-title-band:has(#poa-banner-theme-orange:checked) {
    --poa-banner-bg: #fc661a;
    --poa-banner-text: #fff;
    --poa-banner-lead: rgba(255, 255, 255, .94);
    --poa-banner-divider: rgba(255, 255, 255, .42);
    --poa-banner-btn-bg: #fff;
    --poa-banner-btn-text: #1d2433;
    --poa-banner-btn-border: #fff;
    --poa-banner-btn-shadow: rgba(17, 24, 39, .15);
    --poa-banner-btn-hover-bg: #f4f4f5;
    --poa-banner-btn-hover-border: #f4f4f5;
    --poa-banner-btn-hover-shadow: rgba(17, 24, 39, .22);
}

.poa-title-band:has(#poa-banner-theme-blue:checked) {
    --poa-banner-bg: #013bb0;
    --poa-banner-text: #fff;
    --poa-banner-lead: rgba(255, 255, 255, .88);
    --poa-banner-divider: rgba(255, 255, 255, .22);
    --poa-banner-btn-bg: #ff671d;
    --poa-banner-btn-text: #fff;
    --poa-banner-btn-border: #ff671d;
    --poa-banner-btn-shadow: rgba(0, 0, 0, .2);
    --poa-banner-btn-hover-bg: #e75a16;
    --poa-banner-btn-hover-border: #e75a16;
    --poa-banner-btn-hover-shadow: rgba(0, 0, 0, .26);
}

.poa-kicker {
    margin: 0 0 10px;
    color: #ffb17f;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.poa-title-band h1 {
    max-width: 760px;
    margin: 0;
    color: var(--poa-banner-text, #fff);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    font-weight: 800;
    text-wrap: balance;
}

.poa-lead {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.55;
    text-wrap: pretty;
}

.poa-title-band .poa-lead {
    color: var(--poa-banner-lead, rgba(255, 255, 255, .78));
}

.poa-title-band-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    max-width: 760px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--poa-banner-divider, rgba(255, 255, 255, .12));
}

.poa-title-band-intro .poa-lead {
    margin: 0;
}

.poa-content {
    padding: 34px 0 72px;
}

.poa-alert,
.poa-success,
.poa-panel,
.poa-progress,
.poa-live-summary {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(17, 24, 39, .08), 0 1px 2px rgba(17, 24, 39, .06);
}

.poa-alert {
    margin-bottom: 22px;
    padding: 18px 22px;
    color: #7a1f12;
    border-left: 4px solid var(--poa-danger);
}

.poa-alert strong {
    display: block;
    margin-bottom: 8px;
}

.poa-alert ul {
    margin: 0;
    padding-left: 20px;
}

.poa-success {
    display: flex;
    gap: 18px;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 34px;
}

.poa-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    min-width: 54px;
    height: 54px;
    color: #fff;
    background: var(--poa-success);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 800;
}

.poa-success h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.poa-success p {
    margin: 0;
    color: var(--poa-muted);
    font-size: 17px;
}

.poa-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: start;
}

.poa-progress,
.poa-live-summary {
    position: sticky;
    top: 24px;
    padding: 20px;
}

.poa-progress ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.poa-progress li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--poa-muted);
    font-weight: 700;
    transition-property: color, background-color;
    transition-duration: 180ms;
    transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.poa-progress li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef0f4;
    color: var(--poa-muted);
    font-variant-numeric: tabular-nums;
}

.poa-progress li.is-active,
.poa-progress li.is-complete {
    color: var(--poa-ink);
    background: #fff4ed;
}

.poa-progress li.is-active span,
.poa-progress li.is-complete span {
    color: #fff;
    background: var(--poa-orange);
}

.poa-note {
    margin-top: 18px;
    padding: 14px;
    border-radius: 7px;
    background: var(--poa-soft);
    color: var(--poa-muted);
}

.poa-note strong,
.poa-live-summary h2 {
    display: block;
    margin-bottom: 8px;
    color: var(--poa-ink);
}

.poa-note p {
    margin: 0;
    line-height: 1.45;
}

.poa-panel {
    padding: 28px;
}

.poa-step {
    display: none;
    border: 0;
    padding: 0;
    margin: 0;
}

.poa-step.is-active {
    display: block;
    animation: poaStepEnter 180ms cubic-bezier(.2, 0, 0, 1);
}

@keyframes poaStepEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.poa-step legend {
    padding: 0;
    margin: 0 0 8px;
    color: var(--poa-ink);
    font-size: 30px;
    line-height: 1.12;
    font-weight: 800;
    text-wrap: balance;
}

.poa-step-copy {
    max-width: 780px;
    margin: 0 0 24px;
    color: var(--poa-muted);
    font-size: 16px;
    line-height: 1.5;
    text-wrap: pretty;
}

.poa-grid {
    display: grid;
    gap: 16px;
}

.poa-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.poa-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poa-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.poa-field {
    margin-bottom: 16px;
}

.poa-field label {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-bottom: 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.poa-field label span,
.poa-required-marker {
    color: var(--poa-orange);
}

.poa-field input,
.poa-field select,
.poa-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d7dbe3;
    border-radius: 6px;
    background: #fff;
    color: var(--poa-ink);
    font: inherit;
    outline: none;
    transition-property: border-color, box-shadow, background-color;
    transition-duration: 160ms;
    transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.poa-field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 42px;
    line-height: 1.35;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 7.25L9 11.5L13.5 7.25' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 18px 18px;
}

.poa-field select::-ms-expand {
    display: none;
}

.poa-field input.poa-datetime-input {
    padding-right: 44px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='19' height='19' viewBox='0 0 19 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2.4V5.1M13 2.4V5.1M3.5 7.45H15.5M5.2 4.1H13.8C14.74 4.1 15.5 4.86 15.5 5.8V14.2C15.5 15.14 14.74 15.9 13.8 15.9H5.2C4.26 15.9 3.5 15.14 3.5 14.2V5.8C3.5 4.86 4.26 4.1 5.2 4.1Z' stroke='%23667085' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.9 10.2H11.9M8.9 12.7H11.9M6.4 10.2H6.42M6.4 12.7H6.42' stroke='%23FF671D' stroke-width='1.55' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 19px 19px;
    font-variant-numeric: tabular-nums;
}

.poa-field textarea {
    min-height: 132px;
    resize: vertical;
}

.poa-field input:focus,
.poa-field select:focus,
.poa-field textarea:focus {
    border-color: var(--poa-orange);
    box-shadow: 0 0 0 4px rgba(255, 103, 29, .13);
}

.poa-field small {
    display: block;
    margin-top: 6px;
    color: var(--poa-muted);
    font-size: 13px;
}

.poa-field.is-invalid input,
.poa-field.is-invalid select,
.poa-field.is-invalid textarea {
    border-color: var(--poa-danger);
    background-color: #fffafa;
}

.poa-field-error {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: var(--poa-danger);
    font-size: 13px;
    line-height: 1.35;
}

.xdsoft_datetimepicker.poa-datetime-picker {
    z-index: 99999;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(17, 24, 39, .18), 0 1px 2px rgba(17, 24, 39, .08);
    font-family: inherit;
}

.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_datepicker {
    width: 248px;
}

.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_timepicker {
    margin-left: 12px;
}

.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_label {
    background: #fff;
    color: var(--poa-ink);
    font-size: 14px;
    font-weight: 800;
}

.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_calendar th {
    height: 32px;
    background: #fff;
    color: var(--poa-muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_calendar td,
.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_timepicker .xdsoft_time_box > div > div {
    height: 34px;
    border: 1px solid #eef0f4;
    background: #fff;
    color: #344054;
    font-size: 13px;
    text-align: center;
    transition-property: background-color, color, border-color;
    transition-duration: 140ms;
    transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_calendar td > div {
    padding: 0;
    text-align: center;
}

.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_timepicker .xdsoft_time_box {
    border: 1px solid #eef0f4;
}

.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_calendar td:hover,
.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_timepicker .xdsoft_time_box > div > div:hover {
    border-color: var(--poa-orange) !important;
    background: #fff4ed !important;
    box-shadow: none !important;
    color: var(--poa-orange-dark) !important;
}

.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_calendar td.xdsoft_current,
.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_timepicker .xdsoft_time_box > div > div.xdsoft_current {
    border-color: var(--poa-orange);
    background: var(--poa-orange) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-weight: 800;
}

.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_calendar td.xdsoft_disabled,
.xdsoft_datetimepicker.poa-datetime-picker .xdsoft_timepicker .xdsoft_time_box > div > div.xdsoft_disabled {
    opacity: .38;
}

.poa-choice-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.poa-choice-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 170px));
}

.poa-choice {
    position: relative;
    min-height: 78px;
    margin: 0;
    cursor: pointer;
}

.poa-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.poa-choice > span {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 78px;
    padding: 14px;
    border: 1px solid #dce0e8;
    border-radius: 7px;
    background: #fff;
    color: var(--poa-ink);
    font-weight: 800;
    line-height: 1.25;
    transition-property: border-color, box-shadow, color, background-color, transform;
    transition-duration: 160ms;
    transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.poa-choice.has-icon {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 14px;
    border: 1px solid #dce0e8;
    border-radius: 7px;
    background: #fff;
    color: var(--poa-ink);
    font-weight: 800;
    line-height: 1.25;
    transition-property: border-color, box-shadow, color, background-color, transform;
    transition-duration: 160ms;
    transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.poa-choice.has-icon > span {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.poa-choice .poa-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    border: 0 !important;
    border-radius: 50%;
    background: #fff4ed;
    color: var(--poa-orange);
    box-shadow: none !important;
    transition-property: background-color, color;
    transition-duration: 160ms;
    transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.poa-choice .poa-choice-label {
    display: block;
    font-size: 13.5px;
    line-height: 1.3;
}

.poa-choice.has-icon:hover {
    border-color: #b9bdc7;
}

.poa-choice.has-icon:has(input:checked) {
    border-color: var(--poa-orange);
    background: #fff5ef;
    box-shadow: 0 8px 22px rgba(255, 103, 29, .12);
    color: var(--poa-orange-dark);
}

.poa-choice.has-icon:has(input:checked) .poa-choice-icon {
    background: var(--poa-orange);
    color: #fff;
}

.poa-choice.has-icon:has(input:focus-visible) {
    outline: 3px solid rgba(255, 103, 29, .35);
    outline-offset: 2px;
}

.poa-choice:not(.has-icon) input:checked + span {
    border-color: var(--poa-orange);
    background: #fff5ef;
    box-shadow: 0 8px 22px rgba(255, 103, 29, .12);
    color: var(--poa-orange-dark);
}

.poa-choice:not(.has-icon) input:focus-visible + span {
    outline: 3px solid rgba(255, 103, 29, .35);
    outline-offset: 2px;
}

.poa-choice:active span,
.poa-primary:active,
.poa-secondary:active {
    transform: scale(.96);
}

.poa-duration,
.poa-inline-note {
    margin: 0 0 16px;
    padding: 13px 14px;
    border-radius: 6px;
    background: var(--poa-soft);
    color: var(--poa-muted);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.poa-duration.is-invalid {
    color: var(--poa-danger);
    background: #fff0ed;
}

.poa-inline-note {
    font-weight: 600;
}

.poa-deplase-files {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.poa-review {
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 7px;
    background: var(--poa-soft);
}

.poa-review dl,
.poa-live-summary dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.poa-review div,
.poa-live-summary div {
    display: grid;
    gap: 4px;
}

.poa-review dt,
.poa-live-summary dt {
    color: var(--poa-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.poa-review dd,
.poa-live-summary dd {
    margin: 0;
    color: var(--poa-ink);
    font-weight: 800;
    line-height: 1.35;
}

.poa-consents {
    display: grid;
    gap: 10px;
}

.poa-consents label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--poa-line);
    border-radius: 7px;
    background: #fff;
    line-height: 1.45;
}

.poa-consents input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--poa-orange);
}

.poa-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--poa-line);
}

.poa-primary,
.poa-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: 6px;
    font-weight: 900;
    cursor: pointer;
    transition-property: transform, background-color, color, box-shadow, opacity;
    transition-duration: 160ms;
    transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.poa-primary {
    color: #fff;
    background: var(--poa-orange);
    box-shadow: 0 10px 22px rgba(255, 103, 29, .22);
}

.poa-primary:hover {
    background: var(--poa-orange-dark);
}

.poa-secondary {
    color: var(--poa-ink);
    background: #edf0f5;
}

.poa-secondary[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.poa-live-summary h2 {
    font-size: 19px;
}

.poa-live-summary p {
    margin: 0 0 14px;
    color: var(--poa-muted);
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .poa-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .poa-live-summary {
        display: none;
    }

    .poa-choice-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .poa-container {
        width: calc(100% - 28px);
    }

    .poa-title-band {
        padding: 44px 0 56px;
    }

    .poa-title-band-intro {
        margin-top: 16px;
        padding-top: 16px;
        gap: 14px;
    }

    .poa-title-band-intro .poa-lead {
        font-size: 16px;
    }

    .poa-lookup-link--banner {
        width: 100%;
    }

    .poa-banner-theme-picker {
        right: 36px;
        bottom: 14px;
        gap: 6px;
    }

    .poa-banner-theme-swatch {
        width: 26px;
        height: 26px;
    }

    .poa-layout {
        grid-template-columns: 1fr;
    }

    .poa-progress {
        position: static;
    }

    .poa-progress ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .poa-panel {
        padding: 20px;
    }

    .poa-grid.two,
    .poa-grid.three,
    .poa-grid.four,
    .poa-deplase-files {
        grid-template-columns: 1fr;
    }

    .poa-choice-grid,
    .poa-choice-grid.compact {
        grid-template-columns: 1fr;
    }
}

/* Progress step buttons (clickable nav) */
.poa-progress li button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.poa-progress li button:focus-visible {
    outline: 2px solid var(--poa-orange);
    outline-offset: 3px;
    border-radius: 6px;
}

.poa-progress li.is-complete button::after {
    content: "✓";
    margin-left: auto;
    color: var(--poa-orange);
    font-size: 14px;
}

/* Rules block (Şekil 3 - 6 madde) */
.poa-rules-block {
    margin: 0 0 18px;
    padding: 18px 22px;
    border-left: 4px solid #f5b500;
    border-radius: 8px;
    background: #fffbea;
    color: #4a3a02;
}

.poa-rules-block h3 {
    margin: 0 0 12px;
    color: #1d2433;
    font-size: 16px;
    font-weight: 800;
}

.poa-rules-block ol {
    margin: 0;
    padding-left: 22px;
    line-height: 1.55;
    font-size: 14px;
}

.poa-rules-block ol li + li {
    margin-top: 8px;
}

/* Char counter colored states */
.poa-char-counter {
    transition: color 160ms cubic-bezier(.2, 0, 0, 1);
}

.poa-char-counter.is-short {
    color: var(--poa-danger);
    font-weight: 700;
}

.poa-char-counter.is-ok {
    color: var(--poa-success);
    font-weight: 700;
}

/* File preview list */
.poa-file-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.poa-file-list:empty {
    display: none;
}

.poa-file-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--poa-line);
    border-radius: 6px;
    background: #fafbfc;
    font-size: 13px;
}

.poa-file-list li.is-invalid {
    border-color: var(--poa-danger);
    background: #fff0ed;
    color: #7a1f12;
}

.poa-file-list .poa-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poa-file-list .poa-file-size {
    color: var(--poa-muted);
    font-variant-numeric: tabular-nums;
}

.poa-file-list .poa-file-remove {
    border: 0;
    background: transparent;
    color: var(--poa-danger);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

/* Draft saved badge */
.poa-draft-status {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #ecf6ee;
    color: #186a3b;
    font-size: 13px;
    font-weight: 700;
}

.poa-draft-icon {
    color: var(--poa-success);
    font-size: 16px;
}

.poa-draft-clear {
    margin-left: auto;
    padding: 4px 8px;
    border: 0;
    border-radius: 4px;
    background: rgba(24, 106, 59, .12);
    color: #186a3b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.poa-draft-clear:hover {
    background: rgba(24, 106, 59, .22);
}

/* Scoped error alert (per-step grouping) */
.poa-alert details {
    margin-top: 10px;
    border: 1px solid rgba(196, 50, 28, .25);
    border-radius: 6px;
    background: #fff;
}

.poa-alert details + details {
    margin-top: 8px;
}

.poa-alert details summary {
    padding: 8px 12px;
    color: #7a1f12;
    font-weight: 800;
    cursor: pointer;
}

.poa-alert details ul {
    margin: 0;
    padding: 4px 12px 12px 30px;
    color: #7a1f12;
}

/* Phone mask helper */
.poa-field input[name="phone"]::placeholder {
    color: #b8bcc6;
}

.poa-lookup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: #ff671d;
    color: #fff;
    border: 1px solid #ff671d;
    border-radius: 8px;
    text-decoration: none;
    font-family: "Gilroy-Bold", "Calibri", sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(255, 103, 29, 0.18);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.poa-lookup-link:not(.poa-lookup-link--banner):hover,
.poa-lookup-link:not(.poa-lookup-link--banner):focus {
    background: #e75a16;
    border-color: #e75a16;
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 103, 29, 0.28);
    transform: translateY(-1px);
    text-decoration: none;
}

.poa-lookup-link--banner:hover,
.poa-lookup-link--banner:focus {
    transform: translateY(-1px);
    text-decoration: none;
}
.poa-lookup-link:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(255, 103, 29, 0.22);
}
.poa-lookup-link::after {
    content: "→";
    font-size: 1rem;
    line-height: 1;
}

.poa-lookup-link--banner {
    width: auto;
    min-width: 200px;
    background: var(--poa-banner-btn-bg, #ff671d);
    color: var(--poa-banner-btn-text, #fff);
    border-color: var(--poa-banner-btn-border, #ff671d);
    box-shadow: 0 4px 12px var(--poa-banner-btn-shadow, rgba(255, 103, 29, 0.18));
}

.poa-title-band .poa-lookup-link--banner:hover,
.poa-title-band .poa-lookup-link--banner:focus {
    background: var(--poa-banner-btn-hover-bg, #e75a16);
    border-color: var(--poa-banner-btn-hover-border, #e75a16);
    color: var(--poa-banner-btn-text, #fff);
    box-shadow: 0 6px 18px var(--poa-banner-btn-hover-shadow, rgba(255, 103, 29, 0.28));
}

.poa-banner-theme-picker {
    position: absolute;
    right: 56px;
    bottom: 18px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

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

.poa-banner-theme-swatch {
    display: block;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 4px;
    background: var(--swatch-color);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.poa-banner-theme-swatch:hover {
    border-color: rgba(255, 255, 255, .72);
    transform: translateY(-1px);
}

.poa-banner-theme-input:checked + .poa-banner-theme-swatch {
    border-color: rgba(255, 255, 255, .94);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .2);
}

.poa-banner-theme-input:focus-visible + .poa-banner-theme-swatch {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ===== Lookup page ===== */
.poa-lookup-card {
    max-width: 640px;
    margin: 32px auto 48px;
    background: #fff;
    border: 1px solid #e7eceb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(41, 74, 72, 0.06);
    padding: 32px 36px;
}
.poa-lookup-card-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f3f3;
}
.poa-lookup-card-header h2 {
    margin: 0 0 8px;
    font-family: "Gilroy-Bold", "Calibri", sans-serif;
    font-size: 1.4rem;
    color: #294a48;
}
.poa-lookup-card-header p {
    margin: 0;
    color: #6b7a79;
    font-size: 0.95rem;
    line-height: 1.55;
}
.poa-lookup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.poa-lookup-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 600px) {
    .poa-lookup-card { padding: 24px 20px; margin: 16px 12px; }
    .poa-lookup-fields { grid-template-columns: 1fr; }
}
.poa-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #99a4a3;
    line-height: 1.4;
}
.poa-lookup-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.poa-lookup-actions-end {
    justify-content: flex-end;
    margin-top: 24px;
}
.poa-lookup-submit {
    min-width: 200px;
}

.poa-button-primary,
.poa-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: "Gilroy-Bold", "Calibri", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.poa-button-primary {
    color: #fff;
    background: var(--poa-orange);
    border: 1px solid var(--poa-orange);
    box-shadow: 0 4px 12px rgba(255, 103, 29, 0.18);
}

.poa-button-primary:hover,
.poa-button-primary:focus {
    background: var(--poa-orange-dark);
    border-color: var(--poa-orange-dark);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 103, 29, 0.28);
    transform: translateY(-1px);
}

.poa-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(255, 103, 29, 0.22);
}

.poa-button-secondary {
    color: var(--poa-ink);
    background: #edf0f5;
    border: 1px solid #d8dee8;
}

.poa-button-secondary:hover,
.poa-button-secondary:focus {
    background: #e4e9f1;
    border-color: #c9d1de;
    color: var(--poa-ink);
    text-decoration: none;
}

/* ===== Lookup detail page ===== */
.poa-lookup-detail {
    max-width: 880px;
    margin: 32px auto 48px;
    background: #fff;
    border: 1px solid #e7eceb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(41, 74, 72, 0.06);
    padding: 32px 36px;
}
.poa-lookup-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f3f3;
    flex-wrap: wrap;
}
.poa-lookup-meta {
    font-size: 0.78rem;
    color: #99a4a3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.poa-lookup-no {
    font-family: "Gilroy-Bold", monospace;
    font-size: 1.6rem;
    color: #294a48;
    letter-spacing: -0.01em;
}
.poa-lookup-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.poa-lookup-status small {
    color: #99a4a3;
    font-size: 0.78rem;
}
.poa-lookup-status-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f3f3;
    color: #294a48;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.poa-lookup-status-badge[data-status="received"] { background: #fff4e5; color: #b35900; }
.poa-lookup-status-badge[data-status="pending_oms_push"] { background: #e3f2fd; color: #1565c0; }
.poa-lookup-status-badge[data-status="sent_to_oms"] { background: #e1f5fe; color: #0277bd; }
.poa-lookup-status-badge[data-status="oms_started"] { background: #fff8e1; color: #b8860b; }
.poa-lookup-status-badge[data-status="oms_energized"] { background: #e8f5e9; color: #2e7d32; }
.poa-lookup-status-badge[data-status="oms_approved"] { background: #e8f5e9; color: #2e7d32; }
.poa-lookup-status-badge[data-status="oms_rejected"] { background: #ffebee; color: #c62828; }
.poa-lookup-status-badge[data-status="oms_cancelled"] { background: #f5f5f5; color: #555; }
.poa-lookup-status-badge[data-status="push_failed"] { background: #ffebee; color: #c62828; }

.poa-detail-section {
    margin-bottom: 28px;
}
.poa-detail-section h2 {
    font-family: "Gilroy-Bold", "Calibri", sans-serif;
    font-size: 1.05rem;
    color: #294a48;
    margin: 0 0 12px;
    padding-left: 12px;
    border-left: 3px solid #ff671d;
    line-height: 1.2;
}
.poa-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 24px;
    margin: 0;
}
.poa-detail-grid > div {
    display: flex;
    flex-direction: column;
}
.poa-detail-grid dt {
    font-size: 0.75rem;
    color: #99a4a3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.poa-detail-grid dd {
    margin: 0;
    color: #294a48;
    font-size: 0.95rem;
    font-weight: 500;
}
.poa-update-list {
    display: grid;
    gap: 14px;
}
.poa-update-card {
    border: 1px solid #e3e9e8;
    border-radius: 8px;
    background: #fbfcfc;
    padding: 16px;
}
.poa-update-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e8eeee;
}
.poa-update-card-header strong {
    color: #294a48;
    font-size: 0.98rem;
}
.poa-update-card-header time {
    color: #6b7a79;
    font-size: 0.86rem;
    white-space: nowrap;
}
.poa-update-change-list {
    display: grid;
    gap: 12px;
}
.poa-update-change {
    display: grid;
    gap: 8px;
}
.poa-update-change-title {
    color: #99a4a3;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.poa-update-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.poa-update-values > div {
    min-width: 0;
    background: #fff;
    border: 1px solid #edf1f0;
    border-radius: 8px;
    padding: 10px 12px;
}
.poa-update-values span {
    display: block;
    margin-bottom: 4px;
    color: #99a4a3;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.poa-update-values strong {
    display: block;
    color: #294a48;
    font-size: 0.94rem;
    font-weight: 600;
    word-break: break-word;
}
.poa-change-old {
    color: #99a4a3;
    text-decoration: line-through;
    word-break: break-word;
}
.poa-change-arrow {
    display: inline-block;
    margin: 0 6px;
    color: #ff671d;
    font-weight: 700;
}
.poa-change-new {
    color: #294a48;
    word-break: break-word;
}
.poa-detail-description {
    background: #f7f9f9;
    border: 1px solid #e7eceb;
    border-radius: 8px;
    padding: 16px;
    font-family: "Calibri", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #294a48;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}
.poa-detail-empty {
    background: #f7f9f9;
    border-left: 3px solid #c5cccb;
    padding: 12px 16px;
    margin: 0;
    color: #6b7a79;
    font-size: 0.9rem;
    border-radius: 4px;
}
@media (max-width: 600px) {
    .poa-lookup-detail { padding: 24px 20px; margin: 16px 12px; }
    .poa-lookup-detail-header { flex-direction: column; align-items: flex-start; }
    .poa-lookup-status { align-items: flex-start; }
    .poa-update-card-header { flex-direction: column; align-items: flex-start; }
    .poa-update-values { grid-template-columns: 1fr; }
}
