body.td-unified-project-v3[data-td-project-id="afi"] .afi-zone-section {
    padding: 24px 18px;
    scroll-margin-top: 18px;
    border-top: 8px solid var(--td-template-surface);
    background: #fff;
}

body.td-unified-project-v3[data-td-project-id="afi"] .afi-zone-section *,
body.td-unified-project-v3[data-td-project-id="afi"] .afi-zone-section *::before,
body.td-unified-project-v3[data-td-project-id="afi"] .afi-zone-section *::after {
    box-sizing: border-box;
}

.afi-zone-launch {
    display: grid;
    padding: 15px 18px 18px;
    gap: 12px;
    border-bottom: 8px solid var(--td-template-surface);
    background: #fff;
}
.afi-zone-launch__copy,
.afi-zone-launch__actions,
.afi-zone-launch__actions a,
.afi-zone-launch__actions > span {
    display: flex;
    align-items: center;
}
.afi-zone-launch__copy { min-width: 0; gap: 11px; }
.afi-zone-launch__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: #f2eefc;
    color: var(--td-project-accent);
}
.afi-zone-launch__copy strong,
.afi-zone-launch__copy small { display: block; }
.afi-zone-launch__copy strong { color: var(--td-template-text); font-size: 14px; }
.afi-zone-launch__copy small { margin-top: 4px; color: var(--td-template-muted); font-size: 10px; }
.afi-zone-launch__actions { flex-wrap: wrap; gap: 8px; }
.afi-zone-launch__actions a,
.afi-zone-launch__actions > span {
    min-height: 42px;
    padding: 0 13px;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}
.afi-zone-launch__actions a { background: var(--td-template-ink); color: #fff; }
.afi-zone-launch__actions > span {
    border: 1px dashed #cfc5eb;
    background: #faf8fe;
    color: #625b72;
}
.afi-zone-launch__actions > span > i { color: var(--td-project-accent); }
.afi-zone-launch__actions > span strong { color: #8a7baa; }
.afi-zone-launch__actions > .afi-zone-launch__invite { padding-right: 6px; }
.afi-zone-launch__invite button {
    min-height: 28px;
    margin-left: 2px;
    padding: 0 8px;
    border: 0;
    border-left: 1px solid #ded6f2;
    border-radius: 6px;
    background: transparent;
    color: #6744ae;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}
.afi-zone-launch__invite button:hover { background: #f0ebfb; }
.afi-zone-launch__invite button:focus-visible { outline: 2px solid var(--td-project-accent); outline-offset: 1px; }

.afi-zone-heading {
    display: flex;
    margin-bottom: 18px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}
.afi-zone-heading > div { min-width: 0; }
.afi-zone-heading p {
    margin: 0 0 4px;
    color: var(--td-template-green);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: .035em;
}
.afi-zone-heading h2 {
    margin: 0;
    color: var(--td-template-text);
    font-size: 21px;
    font-weight: 760;
    line-height: 1.25;
}
.afi-zone-heading > span {
    max-width: 44%;
    color: var(--td-template-muted);
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
}

.afi-zone-kpi-grid,
.afi-zone-window-grid,
.afi-zone-rule-grid,
.afi-zone-layout-summary {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}
.afi-zone-kpi-grid article,
.afi-zone-window-grid article,
.afi-zone-rule-grid article,
.afi-zone-layout-summary article {
    min-width: 0;
    padding: 15px 13px;
    border: 1px solid var(--td-template-line);
    border-radius: 12px;
    background: #fff;
}
.afi-zone-kpi-grid article.is-warning {
    border-color: #edd5a9;
    background: #fffaf1;
}
.afi-zone-kpi-grid span,
.afi-zone-window-grid span,
.afi-zone-rule-grid span,
.afi-zone-layout-summary span {
    display: block;
    color: #52606d;
    font-size: 12px;
    font-weight: 650;
}
.afi-zone-kpi-grid strong,
.afi-zone-window-grid strong,
.afi-zone-rule-grid strong,
.afi-zone-layout-summary strong {
    display: block;
    margin: 8px 0 4px;
    color: var(--td-template-text);
    font-size: clamp(18px,5vw,24px);
    font-weight: 780;
    letter-spacing: -.025em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}
.afi-zone-kpi-grid small,
.afi-zone-window-grid small,
.afi-zone-layout-summary small {
    display: block;
    color: var(--td-template-muted);
    font-size: 11px;
    line-height: 1.4;
}

.afi-zone-pressure-grid {
    display: grid;
    margin-top: 12px;
    gap: 10px;
}
.afi-zone-pressure-grid > article {
    padding: 16px;
    border: 1px solid #dce5e1;
    border-radius: 13px;
    background: #f7fbf9;
}
.afi-zone-pressure-grid > article.is-gross {
    border-color: #ead9b8;
    background: #fffbf3;
}
.afi-zone-pressure-grid > article > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.afi-zone-pressure-grid span {
    color: #42515e;
    font-size: 13px;
    font-weight: 720;
}
.afi-zone-pressure-grid strong {
    color: var(--td-template-green);
    font-size: 23px;
    font-weight: 790;
}
.afi-zone-pressure-grid .is-gross strong { color: var(--td-template-amber); }
.afi-zone-pressure-grid p {
    margin: 10px 0 0;
    color: #596773;
    font-size: 12px;
    line-height: 1.55;
}
.afi-zone-meter {
    height: 8px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe8e4;
}
.afi-zone-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--td-template-green);
}
.afi-zone-pressure-grid .is-gross .afi-zone-meter { background: #efe3cb; }
.afi-zone-pressure-grid .is-gross .afi-zone-meter i { background: var(--td-template-amber); }

.afi-zone-risk-cards {
    display: grid;
    margin-top: 12px;
    gap: 8px;
}
.afi-zone-risk-cards article {
    padding: 14px 15px;
    border-left: 4px solid #929da8;
    border-radius: 0 10px 10px 0;
    background: #f7f9fa;
}
.afi-zone-risk-cards article.is-low { border-left-color: var(--td-template-green); }
.afi-zone-risk-cards article.is-watch { border-left-color: var(--td-template-amber); }
.afi-zone-risk-cards article.is-high { border-left-color: var(--td-template-coral); }
.afi-zone-risk-cards strong { color: var(--td-template-text); font-size: 14px; }
.afi-zone-risk-cards p { margin: 5px 0 0; color: #576572; font-size: 12px; line-height: 1.55; }

.afi-zone-flow {
    display: grid;
    margin-top: 13px;
    grid-template-columns: 1fr;
    gap: 6px;
}
.afi-zone-flow span {
    display: flex;
    min-height: 48px;
    padding: 10px 12px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--td-template-line);
    border-radius: 10px;
    color: #344250;
    font-size: 12px;
    font-weight: 700;
}
.afi-zone-flow span i { width: 18px; color: var(--td-project-accent); text-align: center; }
.afi-zone-flow > b {
    display: flex;
    height: 16px;
    align-items: center;
    justify-content: center;
    color: #a0a9b2;
    transform: rotate(90deg);
}

.afi-zone-kpi-grid--focus {
    grid-template-columns: 1fr;
}
.afi-zone-liquidity-kpis { margin-top: 12px; }
.afi-zone-liquidity-kpis article.is-warning {
    border-color: #ead9b8;
    background: #fffbf3;
}
.afi-zone-ratio-panel {
    display: grid;
    margin-top: 12px;
    padding: 14px;
    gap: 8px;
    border: 1px solid var(--td-template-line);
    border-radius: 12px;
    background: #fafbfb;
}
.afi-zone-ratio-panel > div:not(.afi-zone-ratio-meter) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.afi-zone-ratio-panel span { color: #52606d; font-size: 11px; font-weight: 680; }
.afi-zone-ratio-panel strong { color: var(--td-template-text); font-size: 13px; }
.afi-zone-ratio-meter {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe8e4;
}
.afi-zone-ratio-meter i {
    display: block;
    min-width: 2px;
    height: 100%;
    border-radius: inherit;
    background: var(--td-template-green);
}
.afi-zone-ratio-meter.is-warning { background: #efe3cb; }
.afi-zone-ratio-meter.is-warning i { background: var(--td-template-amber); }
.afi-zone-verdicts {
    display: grid;
    margin-top: 12px;
    gap: 8px;
}
.afi-zone-verdicts > span {
    display: flex;
    min-height: 56px;
    padding: 12px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--td-template-line);
    border-left: 4px solid #929da8;
    border-radius: 10px;
    background: #fff;
}
.afi-zone-verdicts > span.is-low { border-left-color: var(--td-template-green); }
.afi-zone-verdicts > span.is-watch { border-left-color: var(--td-template-amber); }
.afi-zone-verdicts > span.is-high { border-left-color: var(--td-template-coral); }
.afi-zone-verdicts small {
    color: #52606d;
    font-size: 12px;
    font-weight: 650;
}
.afi-zone-verdicts strong {
    color: var(--td-template-text);
    font-size: 13px;
    font-weight: 780;
    white-space: nowrap;
}
.afi-zone-focus-note {
    margin: 12px 0 0;
    color: #596773;
    font-size: 12px;
    line-height: 1.65;
}

.afi-zone-note,
.afi-zone-plain {
    margin: 14px 0 0;
    padding: 12px 13px;
    border-radius: 10px;
    background: var(--td-template-surface);
    color: #576572;
    font-size: 12px;
    line-height: 1.65;
}
.afi-zone-plain {
    background: #f2eefc;
    color: #53467a;
}

.afi-zone-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--td-template-line);
    border-radius: 12px;
    overscroll-behavior-inline: contain;
}
.afi-zone-table {
    width: 100%;
    min-width: 690px;
    border-collapse: collapse;
    background: #fff;
    color: #354350;
    font-size: 12px;
}
.afi-zone-table th {
    padding: 11px 12px;
    border-bottom: 1px solid #dfe4e8;
    background: #f5f7f8;
    color: #52606d;
    font-size: 11px;
    font-weight: 760;
    text-align: left;
    white-space: nowrap;
}
.afi-zone-table td {
    padding: 12px;
    border-bottom: 1px solid #edf0f2;
    vertical-align: top;
    white-space: nowrap;
}
.afi-zone-table tbody tr:last-child td { border-bottom: 0; }
.afi-zone-table td strong { color: var(--td-template-text); font-weight: 750; }
.afi-zone-table td small {
    display: block;
    margin-top: 4px;
    color: var(--td-template-muted);
    font-size: 10px;
}
.afi-zone-table a { color: #2f5da8; font-weight: 700; text-decoration: none; }
.afi-zone-more {
    display: flex;
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--td-template-line);
    border-radius: 10px;
    background: #fff;
    color: var(--td-project-accent);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.afi-zone-callout {
    display: flex;
    margin: 12px 0;
    padding: 14px;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid #ead7b4;
    border-radius: 12px;
    background: #fff8ec;
}
.afi-zone-callout > i { margin-top: 2px; color: var(--td-template-amber); font-size: 18px; }
.afi-zone-callout strong { color: #5d421f; font-size: 13px; }
.afi-zone-callout p { margin: 5px 0 0; color: #765d3e; font-size: 12px; line-height: 1.5; }

.afi-zone-address-form,
.afi-zone-layout-controls {
    padding: 16px;
    border: 1px solid #dfe4e8;
    border-radius: 13px;
    background: #f9fafb;
}
.afi-zone-address-form label,
.afi-zone-layout-controls label {
    display: block;
    margin-bottom: 8px;
    color: #344250;
    font-size: 13px;
    font-weight: 750;
}
.afi-zone-address-form > div,
.afi-zone-layout-controls > div:first-of-type {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
}
.afi-zone-address-form input,
.afi-zone-layout-controls input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #cfd6dc;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--td-template-text);
    font: 600 13px ui-monospace,SFMono-Regular,Menlo,monospace;
}
.afi-zone-layout-controls input { font-family: inherit; }
.afi-zone-address-form input:focus,
.afi-zone-layout-controls input:focus {
    border-color: var(--td-project-accent);
    box-shadow: 0 0 0 3px rgba(118,84,216,.12);
}
.afi-zone-address-form button,
.afi-zone-layout-controls button,
.afi-zone-address-actions button {
    min-height: 44px;
    padding: 0 15px;
    border: 0;
    border-radius: 9px;
    background: var(--td-template-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}
.afi-zone-address-form button { display: inline-flex; align-items: center; gap: 7px; }
.afi-zone-address-form > small {
    display: block;
    margin-top: 9px;
    color: var(--td-template-muted);
    font-size: 11px;
    line-height: 1.5;
}
.afi-zone-address-result {
    min-height: 78px;
    margin-top: 12px;
}
.afi-zone-address-result > p {
    margin: 0;
    padding: 20px 16px;
    border: 1px dashed #d8dee4;
    border-radius: 12px;
    color: var(--td-template-muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}
.afi-zone-address-result > p.is-error { border-color: #edc1bd; background: #fff5f4; color: #9b3c35; }
.afi-zone-empty {
    display: flex;
    padding: 17px;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #e2d9f6;
    border-radius: 12px;
    background: #f7f4fd;
}
.afi-zone-empty > i { margin-top: 2px; color: var(--td-project-accent); font-size: 18px; }
.afi-zone-empty strong { color: #3e3559; font-size: 14px; }
.afi-zone-empty p { margin: 6px 0; color: #655d78; font-size: 12px; line-height: 1.55; }
.afi-zone-empty a { color: #2f5da8; font-size: 12px; font-weight: 700; text-decoration: none; }
.afi-zone-address-summary {
    overflow: hidden;
    border: 1px solid #dfe4e8;
    border-radius: 12px;
}
.afi-zone-address-summary header {
    display: flex;
    padding: 13px 14px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e7eaed;
    background: #f8f9fa;
}
.afi-zone-address-summary header > div { min-width: 0; }
.afi-zone-address-summary header strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--td-template-text);
    font: 680 12px ui-monospace,SFMono-Regular,Menlo,monospace;
}
.afi-zone-address-summary header small { display: block; margin-top: 5px; color: var(--td-template-muted); font-size: 10px; }
.afi-zone-address-summary header a { flex: 0 0 auto; color: #2f5da8; font-size: 11px; font-weight: 700; text-decoration: none; }
.afi-zone-address-summary > div {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
}
.afi-zone-address-summary > div > span { padding: 13px; border-bottom: 1px solid #edf0f2; }
.afi-zone-address-summary > div > span:nth-child(odd) { border-right: 1px solid #edf0f2; }
.afi-zone-address-summary > div > span:nth-last-child(-n+2) { border-bottom: 0; }
.afi-zone-address-summary small,
.afi-zone-address-summary strong { display: block; }
.afi-zone-address-summary small { color: var(--td-template-muted); font-size: 10px; }
.afi-zone-address-summary > div strong { margin-top: 6px; color: var(--td-template-text); font-size: 16px; }
.afi-zone-address-actions { display: flex; margin: 10px 0; flex-wrap: wrap; gap: 8px; }
.afi-zone-address-actions button { display: inline-flex; align-items: center; gap: 7px; background: var(--td-project-accent); }
.afi-zone-address-actions button + button { background: #fff; color: var(--td-project-accent); box-shadow: inset 0 0 0 1px #d8cff2; }
.afi-zone-address-actions button:disabled { opacity: .45; cursor: not-allowed; }
.afi-zone-order-status {
    display: inline-flex;
    padding: 5px 7px;
    border-radius: 999px;
    background: #eef1f3;
    color: #56626e;
    font-size: 10px;
    font-weight: 750;
}
.afi-zone-order-status.is-locked { background: #eef4ff; color: #2f5da8; }
.afi-zone-order-status.is-matured { background: #fff2df; color: #9d5d0c; }
.afi-zone-order-status.is-redeemed { background: #edf7f2; color: #16875a; }
.afi-zone-redemption {
    display: grid;
    margin-top: 14px;
    gap: 8px;
}
.afi-zone-redemption > div {
    display: flex;
    padding: 13px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--td-template-line);
    border-radius: 11px;
}
.afi-zone-redemption > div > i { margin-top: 2px; color: var(--td-project-accent); }
.afi-zone-redemption span,
.afi-zone-redemption strong,
.afi-zone-redemption small { display: block; }
.afi-zone-redemption strong { color: #344250; font-size: 12px; }
.afi-zone-redemption small { margin-top: 4px; color: var(--td-template-muted); font-size: 10px; line-height: 1.5; }
.afi-zone-redemption > a,
.afi-zone-links a {
    display: inline-flex;
    min-height: 46px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    background: var(--td-template-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.afi-zone-address-foot {
    display: block;
    margin-top: 12px;
}
.afi-zone-address-foot p {
    display: flex;
    margin: 0;
    align-items: flex-start;
    gap: 8px;
    color: #596773;
    font-size: 11px;
    line-height: 1.55;
}
.afi-zone-address-foot p i {
    margin-top: 2px;
    color: var(--td-project-accent);
}
.afi-zone-address-foot a {
    display: inline-flex;
    min-height: 44px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    background: var(--td-template-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.afi-zone-chart-panel,
.afi-zone-chart-card {
    overflow: hidden;
    border: 1px solid var(--td-template-line);
    border-radius: 13px;
    background: #fff;
}
.afi-zone-chart-panel > header,
.afi-zone-chart-card > header {
    display: flex;
    min-height: 60px;
    padding: 13px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf0f2;
    background: #fafbfb;
}
.afi-zone-chart-panel header strong,
.afi-zone-chart-panel header small,
.afi-zone-chart-card header strong,
.afi-zone-chart-card header small { display: block; }
.afi-zone-chart-panel header strong,
.afi-zone-chart-card header strong { color: #344250; font-size: 13px; }
.afi-zone-chart-panel header small,
.afi-zone-chart-card header small { margin-top: 4px; color: var(--td-template-muted); font-size: 10px; }
.afi-zone-chart-panel header > span { color: var(--td-template-muted); font-size: 10px; }
.afi-zone-chart-panel canvas,
.afi-zone-chart-card canvas {
    display: block;
    width: 100%;
}
.afi-zone-chart-grid {
    display: grid;
    margin: 12px 0;
    gap: 12px;
}
.afi-zone-detail-chart { margin-bottom: 12px; }
.afi-zone-chart-legend {
    display: flex;
    padding: 0 14px 13px;
    flex-wrap: wrap;
    gap: 12px;
    color: #596773;
    font-size: 10px;
    font-weight: 650;
}
.afi-zone-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.afi-zone-chart-legend i { width: 8px; height: 8px; border-radius: 2px; }
.afi-zone-chart-legend i.is-direct { background: #16875a; }
.afi-zone-chart-legend i.is-restake { background: #7654d8; }
.afi-zone-chart-legend i.is-return { background: #e4483c; }
.afi-zone-chart-card ul {
    display: grid;
    margin: 0;
    padding: 0 14px 14px;
    gap: 7px;
    list-style: none;
}
.afi-zone-chart-card li {
    display: grid;
    grid-template-columns: 9px minmax(0,1fr);
    align-items: start;
    gap: 8px;
}
.afi-zone-chart-card li > i { width: 9px; height: 9px; margin-top: 3px; border-radius: 3px; }
.afi-zone-chart-card li strong,
.afi-zone-chart-card li small { display: block; }
.afi-zone-chart-card li strong { color: #475461; font-size: 11px; }
.afi-zone-chart-card li small { margin-top: 2px; color: var(--td-template-muted); font-size: 10px; }
.afi-zone-address-table { min-width: 850px; }
.afi-zone-address-table td:nth-child(2) a {
    font: 600 11px ui-monospace,SFMono-Regular,Menlo,monospace;
}

.afi-zone-layout-controls { margin-bottom: 12px; }
.afi-zone-presets {
    display: flex !important;
    margin-top: 9px;
    gap: 8px;
}
.afi-zone-presets button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d8cff2;
    background: #fff;
    color: var(--td-project-accent);
}
.afi-zone-layout-summary article:nth-child(2) strong { color: var(--td-template-green); }
.afi-zone-layout-summary article:nth-child(4) strong { color: var(--td-template-amber); font-size: 17px; }
.afi-zone-layout-chain {
    display: flex;
    margin-top: 12px;
    padding: 12px;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    border: 1px solid var(--td-template-line);
    border-radius: 12px;
    background: #fbfbfc;
}
.afi-zone-layout-chain span {
    display: grid;
    min-width: 70px;
    min-height: 58px;
    padding: 8px;
    place-content: center;
    border: 1px solid #d8cff2;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}
.afi-zone-layout-chain b { color: var(--td-project-accent); font-size: 13px; }
.afi-zone-layout-chain small { margin-top: 4px; color: #596773; font-size: 10px; white-space: nowrap; }
.afi-zone-layout-chain > i { flex: 0 0 auto; color: #a6afb8; }

.afi-zone-registration-grid,
.afi-zone-security-grid {
    display: grid;
    gap: 9px;
}

.afi-zone-overall-checks {
    display: grid;
    margin-bottom: 12px;
    gap: 7px;
}
.afi-zone-overall-checks > span {
    display: flex;
    min-height: 42px;
    padding: 9px 11px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--td-template-line);
    border-radius: 10px;
    color: #45525f;
    font-size: 11px;
    font-weight: 700;
}
.afi-zone-overall-checks > span.is-pass i { color: var(--td-template-green); }
.afi-zone-overall-checks > span.is-warn i { color: var(--td-template-amber); }
.afi-zone-overall-checks > span.is-fail i { color: var(--td-template-coral); }
.afi-zone-contract-list { display: grid; gap: 10px; }
.afi-zone-contract-list > article {
    overflow: hidden;
    border: 1px solid var(--td-template-line);
    border-radius: 12px;
    background: #fff;
}
.afi-zone-contract-list header {
    display: flex;
    padding: 13px 14px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #edf0f2;
    background: #fafbfb;
}
.afi-zone-contract-list header > div { min-width: 0; }
.afi-zone-contract-list header strong,
.afi-zone-contract-list header small { display: block; }
.afi-zone-contract-list header strong { color: var(--td-template-text); font-size: 13px; }
.afi-zone-contract-list header small {
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: var(--td-template-muted);
    font: 600 10px ui-monospace,SFMono-Regular,Menlo,monospace;
}
.afi-zone-contract-list header a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: #2f5da8;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}
.afi-zone-contract-list ul {
    display: grid;
    margin: 0;
    padding: 8px 14px 12px;
    gap: 0;
    list-style: none;
}
.afi-zone-contract-list li {
    display: grid;
    min-height: 36px;
    padding: 8px 0;
    grid-template-columns: 18px minmax(0,1fr);
    align-items: start;
    gap: 7px;
    border-bottom: 1px solid #f0f2f4;
    color: #4d5a66;
    font-size: 11px;
    line-height: 1.45;
}
.afi-zone-contract-list li:last-child { border-bottom: 0; }
.afi-zone-contract-list li > i { margin-top: 2px; text-align: center; }
.afi-zone-contract-list li.is-pass > i { color: var(--td-template-green); }
.afi-zone-contract-list li.is-warn > i { color: var(--td-template-amber); }
.afi-zone-contract-list li.is-fail > i { color: var(--td-template-coral); }
.afi-zone-registration-grid article,
.afi-zone-security-grid article {
    display: flex;
    padding: 14px;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid var(--td-template-line);
    border-radius: 11px;
    background: #fff;
}
.afi-zone-registration-grid article > i,
.afi-zone-security-grid article > i {
    width: 20px;
    margin-top: 2px;
    color: var(--td-project-accent);
    font-size: 17px;
    text-align: center;
}
.afi-zone-registration-grid strong,
.afi-zone-security-grid strong { color: #344250; font-size: 13px; }
.afi-zone-registration-grid p,
.afi-zone-security-grid p { margin: 5px 0 0; color: #596773; font-size: 11px; line-height: 1.55; }
.afi-zone-security-grid article.is-ok { border-left: 4px solid var(--td-template-green); }
.afi-zone-security-grid article.is-watch { border-left: 4px solid var(--td-template-amber); }
.afi-zone-rule-grid { margin-bottom: 12px; }
.afi-zone-rule-grid strong { font-size: 18px; }
.afi-zone-levels { margin-top: 14px; }
.afi-zone-levels h3 { margin: 0 0 10px; color: var(--td-template-text); font-size: 16px; }
.afi-zone-links { display: grid; margin-top: 12px; gap: 8px; }
.afi-zone-links a:first-child { background: #fff; color: var(--td-project-accent); box-shadow: inset 0 0 0 1px #d8cff2; }

.afi-zone-more-hub .afi-zone-heading { margin-bottom: 12px; }
.afi-zone-disclosure-list {
    display: grid;
    gap: 8px;
}
.afi-zone-disclosure {
    scroll-margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--td-template-line);
    border-radius: 12px;
    background: #fff;
}
.afi-zone-disclosure > summary {
    display: grid;
    min-height: 66px;
    padding: 12px 14px;
    grid-template-columns: 38px minmax(0,1fr) auto;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    list-style: none;
}
.afi-zone-disclosure > summary::-webkit-details-marker { display: none; }
.afi-zone-disclosure > summary:focus-visible {
    outline: 3px solid rgba(118,84,216,.22);
    outline-offset: -3px;
}
.afi-zone-disclosure__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: #f2eefc;
    color: var(--td-project-accent);
}
.afi-zone-disclosure summary span:nth-child(2) { min-width: 0; }
.afi-zone-disclosure summary strong,
.afi-zone-disclosure summary small { display: block; }
.afi-zone-disclosure summary strong {
    color: var(--td-template-text);
    font-size: 13px;
    font-weight: 760;
}
.afi-zone-disclosure summary small {
    margin-top: 3px;
    color: var(--td-template-muted);
    font-size: 10px;
    line-height: 1.45;
}
.afi-zone-disclosure summary > i {
    color: #8a96a2;
    font-size: 12px;
    transition: transform .18s ease;
}
.afi-zone-disclosure[open] summary > i { transform: rotate(180deg); }
.afi-zone-disclosure[open] > summary {
    border-bottom: 1px solid var(--td-template-line);
    background: #fbfbfc;
}
.afi-zone-disclosure__body { padding: 0 14px 14px; }
body.td-unified-project-v3[data-td-project-id="afi"] .afi-zone-disclosure .afi-zone-section {
    padding: 20px 0 0;
    border-top: 0;
    background: transparent;
}
.afi-zone-disclosure .afi-zone-heading { margin-bottom: 14px; }

@media (min-width: 720px) {
    body.td-unified-project-v3[data-td-project-id="afi"] .afi-zone-section { padding: 30px 26px; }
    .afi-zone-launch { padding: 17px 26px 20px; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
    .afi-zone-kpi-grid,
    .afi-zone-window-grid,
    .afi-zone-rule-grid,
    .afi-zone-layout-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .afi-zone-pressure-grid,
    .afi-zone-chart-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .afi-zone-risk-cards,
    .afi-zone-registration-grid,
    .afi-zone-security-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .afi-zone-overall-checks { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .afi-zone-contract-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .afi-zone-contract-list header { min-height: 84px; }
    .afi-zone-flow {
        grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1fr);
        align-items: center;
    }
    .afi-zone-flow > b { height: auto; transform: none; }
    .afi-zone-address-summary > div { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .afi-zone-address-summary > div > span { border-right: 1px solid #edf0f2; border-bottom: 0; }
    .afi-zone-address-summary > div > span:last-child { border-right: 0; }
    .afi-zone-redemption { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: stretch; }
    .afi-zone-redemption > a { min-width: 150px; }
    .afi-zone-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .afi-zone-kpi-grid--focus,
    .afi-zone-verdicts { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .afi-zone-disclosure > summary { padding: 14px 16px; }
    .afi-zone-disclosure__body { padding: 0 18px 18px; }
}

@media (max-width: 420px) {
    .afi-zone-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .afi-zone-heading > span { max-width: 100%; text-align: left; }
    .afi-zone-address-form > div,
    .afi-zone-layout-controls > div:first-of-type { grid-template-columns: 1fr; }
    .afi-zone-address-form button,
    .afi-zone-layout-controls button { width: 100%; justify-content: center; }
}
