/* Theme 4: pages.css; declarations retain their original cascade order. */
.t4-terms-aside {
    display: grid;
    gap: 16px;
}
.t4-terms-commitment {
    padding: 25px;
    border: 1px solid #a9c7ff;
    border-radius: 28px;
    background: #edf4ff;
}
.t4-terms-commitment-head,
.t4-terms-support-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.t4-terms-commitment-head > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #2c66eb;
    color: #fff;
}
.t4-terms-support-head > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 14px;
}
.t4-terms-commitment-head svg,
.t4-terms-support-head svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.t4-terms-support-ticket svg,
.t4-terms-support-contact svg {
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.t4-terms-commitment h2 {
    margin: 0;
    color: #2563eb;
    font-size: 15px;
    font-weight: 850;
    text-transform: uppercase;
}
.t4-terms-commitment ul {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}
.t4-terms-commitment li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #27415e;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}
.t4-terms-commitment li i {
    display: grid;
    place-items: center;
    flex: 0 0 18px;
    height: 18px;
    border: 1.5px solid #10b981;
    border-radius: 50%;
    color: #10b981;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}
.t4-terms-commitment li strong {
    font-weight: 850;
}
.t4-terms-support {
    padding: 25px;
    border: 1px solid var(--t4-border);
    border-radius: 28px;
    background: var(--t4-surface);
    box-shadow: var(--t4-shadow);
}
.t4-terms-support-head > span {
    background: #eff6ff;
    color: #2563eb;
}
.t4-terms-support h2 {
    margin: 0;
    color: var(--t4-text);
    font-size: 14px;
    font-weight: 850;
}
.t4-terms-support-head p {
    margin: 3px 0 0;
    color: var(--t4-muted);
    font-size: 12px;
}
.t4-terms-support > p {
    margin: 18px 0 24px;
    color: var(--t4-text);
    font-size: 13px;
    line-height: 1.65;
}
.t4-terms-support-ticket,
.t4-terms-support-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}
.t4-terms-support-ticket {
    background: #2c66eb;
    color: #fff;
    box-shadow: 0 7px 14px rgba(37, 99, 235, 0.18);
}
.t4-terms-support-contact {
    margin-top: 10px;
    background: var(--t4-bg);
    color: var(--t4-text);
}
.t4-terms-support-ticket svg,
.t4-terms-support-contact svg {
    width: 19px;
    height: 19px;
}
.t4-terms-support-ticket:hover {
    background: #1d4ed8;
    color: #fff;
}
.t4-terms-support-contact:hover {
    background: #e9f1fc;
    color: #1d4ed8;
}
@media (max-width: 760px) {
    .t4-terms-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    .t4-terms-commitment,
    .t4-terms-support {
        padding: 20px;
        border-radius: 22px;
    }
}
@media (max-width: 560px) {
    .t4-terms-aside {
        grid-template-columns: 1fr;
    }
    .t4-terms-commitment,
    .t4-terms-support {
        padding: 25px;
        border-radius: 25px;
    }
}
.t4-terms-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #fff);
    color: var(--t4-text);
}
.t4-ticket-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #fff);
    color: var(--t4-text);
}
.t4-terms-hero {
    justify-content: flex-start;
}
.t4-terms-hero-icon,
.t4-ticket-hero-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 1px solid #bfdbfe;
    border-radius: 15px;
    background: #dbeafe;
    color: #2563eb;
}
.t4-ticket-form-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #bfdbfe;
    background: #dbeafe;
    color: #2563eb;
}
.t4-terms-hero-icon svg,
.t4-ticket-hero-icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.t4-ticket-form-icon svg,
.t4-ticket-new-btn svg,
.t4-ticket-toolbar svg,
.t4-ticket-item-icon svg {
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.t4-ticket-empty svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.t4-ticket-form-actions svg {
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.t4-terms-hero h1,
.t4-ticket-hero h1 {
    margin: 0;
    font-size: 21px;
    font-weight: 850;
}
.t4-terms-hero p,
.t4-ticket-hero p {
    margin: 5px 0 0;
    color: var(--t4-muted);
    font-size: 13px;
    line-height: 1.55;
}
.t4-terms-layout {
    display: grid;
    grid-template-columns: minmax(210px, 0.45fr) minmax(0, 1.55fr);
    gap: 16px;
    align-items: start;
}
.t4-terms-aside,
.t4-terms-content,
.t4-ticket-panel,
.t4-ticket-form-card {
    border: 1px solid var(--t4-border);
    border-radius: 16px;
    background: var(--t4-surface);
    box-shadow: var(--t4-shadow);
}
.t4-terms-aside {
    padding: 17px;
}
.t4-terms-aside h2 {
    margin: 0;
    font-size: 14px;
}
.t4-terms-aside ul {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 15px 0;
    list-style: none;
}
.t4-terms-aside li {
    display: flex;
    gap: 8px;
    color: var(--t4-muted);
    font-size: 12px;
    line-height: 1.55;
}
.t4-terms-aside li span {
    display: grid;
    place-items: center;
    flex: 0 0 17px;
    height: 17px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 10px;
    font-weight: 900;
}
.t4-terms-aside a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 11px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}
.t4-terms-content {
    overflow: hidden;
}
.t4-terms-content-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    padding: 13px 18px;
    border-bottom: 1px solid var(--t4-border);
    font-size: 12px;
    font-weight: 800;
}
.t4-terms-content-head i {
    font-style: normal;
    color: var(--t4-muted);
    font-size: 10px;
    font-weight: 700;
}
.t4-terms-content .t4-rule-prose {
    padding: 18px;
}
.t4-ticket-hero > div:first-child {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
}
.t4-ticket-hero-icon {
    grid-row: span 2;
}
.t4-ticket-new-btn,
.t4-ticket-empty button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 10px;
    background: var(--t4-primary);
    color: #fff;
    padding: 11px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.t4-ticket-new-btn svg {
    width: 17px;
    height: 17px;
}
.t4-ticket-tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    margin-bottom: 15px;
    width: max-content;
    border: 1px solid var(--t4-border);
    border-radius: 12px;
    background: var(--t4-surface);
}
.t4-ticket-tab {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--t4-muted);
    padding: 9px 13px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.t4-ticket-tab.is-active {
    background: #eff6ff;
    color: #2563eb;
}
.t4-ticket-panel {
    padding: 16px;
}
.t4-ticket-toolbar {
    margin-bottom: 12px;
}
.t4-ticket-toolbar form {
    position: relative;
    max-width: 390px;
}
.t4-ticket-toolbar svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--t4-muted);
}
.t4-ticket-toolbar input {
    width: 100%;
    height: 42px;
    padding: 0 12px 0 38px;
    border: 1px solid var(--t4-border);
    border-radius: 10px;
    background: var(--t4-surface);
    color: var(--t4-text);
    font: inherit;
    font-size: 12px;
    outline: 0;
}
.t4-ticket-toolbar input:focus {
    border-color: var(--t4-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.t4-ticket-list {
    display: grid;
    gap: 9px;
}
.t4-ticket-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--t4-border);
    border-radius: 12px;
    background: var(--t4-surface);
    color: inherit;
    text-decoration: none;
    transition: 0.16s;
}
.t4-ticket-item:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    transform: translateY(-1px);
}
.t4-ticket-item-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
}
.t4-ticket-item-icon svg {
    width: 21px;
    height: 21px;
}
.t4-ticket-item-copy {
    min-width: 0;
}
.t4-ticket-item-copy strong,
.t4-ticket-item-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.t4-ticket-item-copy strong {
    color: var(--t4-text);
    font-size: 13px;
}
.t4-ticket-item-copy small {
    margin-top: 4px;
    color: var(--t4-muted);
    font-size: 11px;
}
.t4-ticket-item-meta {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    flex-direction: column;
}
.t4-ticket-item-meta time {
    color: var(--t4-muted);
    font-size: 10px;
    white-space: nowrap;
}
.t4-ticket-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 38px 18px;
    text-align: center;
    color: var(--t4-muted);
}
.t4-ticket-empty svg {
    color: #93c5fd;
}
.t4-ticket-empty strong {
    margin-top: 8px;
    color: var(--t4-text);
    font-size: 14px;
}
.t4-ticket-empty span {
    margin-top: 5px;
    font-size: 12px;
}
.t4-ticket-empty button {
    margin-top: 15px;
}
.t4-ticket-form-card {
    padding: 20px;
}
.t4-ticket-form-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
}
.t4-ticket-form-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}
.t4-ticket-form-icon svg {
    width: 21px;
    height: 21px;
}
.t4-ticket-form-head h2 {
    margin: 0;
    font-size: 15px;
}
.t4-ticket-form-head p {
    margin: 3px 0 0;
    color: var(--t4-muted);
    font-size: 12px;
}
.t4-ticket-form-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
}
.t4-ticket-form-actions .t4-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.t4-ticket-form-actions svg {
    width: 16px;
    height: 16px;
}
.t4-ticket-form-actions span {
    color: var(--t4-muted);
    font-size: 11px;
}
@media (max-width: 760px) {
    .t4-terms-layout {
        grid-template-columns: 1fr;
    }
    .t4-ticket-hero {
        align-items: flex-start;
    }
    .t4-ticket-item {
        grid-template-columns: 40px minmax(0, 1fr);
    }
    .t4-ticket-item-meta {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    .t4-ticket-tabs {
        width: 100%;
    }
    .t4-ticket-tab {
        flex: 1;
    }
}
@media (max-width: 520px) {
    .t4-terms-hero,
    .t4-ticket-hero {
        padding: 16px;
    }
    .t4-terms-hero h1,
    .t4-ticket-hero h1 {
        font-size: 18px;
    }
    .t4-ticket-hero {
        display: block;
    }
    .t4-ticket-new-btn {
        width: 100%;
        margin-top: 14px;
    }
    .t4-ticket-hero > div:first-child {
        grid-template-columns: 42px minmax(0, 1fr);
    }
    .t4-terms-hero-icon,
    .t4-ticket-hero-icon {
        width: 42px;
        height: 42px;
    }
    .t4-terms-hero-icon svg,
    .t4-ticket-hero-icon svg {
        width: 22px;
        height: 22px;
    }
    .t4-ticket-panel,
    .t4-ticket-form-card {
        padding: 13px;
    }
    .t4-terms-content-head {
        padding: 12px 14px;
    }
    .t4-terms-content .t4-rule-prose {
        padding: 14px;
    }
}
.t4-page {
    width: 100%;
    min-width: 0;
}
.t4-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}
.t4-page-title {
    margin: 0;
    color: var(--t4-text);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.t4-page-sub {
    margin: 5px 0 0;
    color: var(--t4-muted);
    font-size: 13px;
    line-height: 1.55;
}
.t4-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.t4-page-card {
    background: var(--t4-surface);
    border: 1px solid var(--t4-border);
    border-radius: 14px;
    box-shadow: var(--t4-shadow);
    overflow: hidden;
    margin-bottom: 16px;
}
.t4-page-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--t4-border);
    background: color-mix(in srgb, var(--t4-surface) 94%, var(--t4-primary) 6%);
}
.t4-page-card-title {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.t4-page-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--t4-primary);
}
.t4-page-card-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.t4-page-card-head h2,
.t4-page-card-head h3 {
    margin: 0;
    color: var(--t4-text);
    font-size: 15px;
    font-weight: 800;
}
.t4-page-card-head p {
    margin: 3px 0 0;
    color: var(--t4-muted);
    font-size: 12px;
    line-height: 1.45;
}
.t4-page-card-body {
    padding: 18px;
}
.t4-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.t4-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.t4-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.t4-layout-side {
    display: grid;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.t4-layout-main-aside {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.72fr);
    gap: 18px;
    align-items: start;
}
.t4-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.t4-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.t4-field {
    margin-bottom: 15px;
}
.t4-field:last-child {
    margin-bottom: 0;
}
.t4-label {
    display: block;
    margin: 0 0 7px;
    color: var(--t4-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}
.t4-control {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 13px;
    border: 1px solid var(--t4-border);
    border-radius: 10px;
    background: var(--t4-surface);
    color: var(--t4-text);
    font: inherit;
    font-size: 13px;
    outline: none;
    transition:
        border-color 0.16s,
        box-shadow 0.16s,
        background 0.16s;
}
.t4-control:focus {
    border-color: var(--t4-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13);
}
.t4-control:disabled,
.t4-control[readonly] {
    background: var(--t4-bg);
    color: var(--t4-muted);
}
textarea.t4-control {
    height: auto;
    min-height: 120px;
    padding: 11px 13px;
    line-height: 1.6;
    resize: vertical;
}
.t4-control-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.t4-control-row .t4-control {
    flex: 1;
}
.t4-help {
    margin: 6px 0 0;
    color: var(--t4-muted);
    font-size: 12px;
    line-height: 1.55;
}
.t4-help strong {
    color: var(--t4-text);
}
.t4-btn-secondary,
.t4-btn-danger,
.t4-btn-success,
.t4-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 15px;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: 0.16s;
    border: 1px solid var(--t4-border);
    white-space: nowrap;
}
.t4-btn-secondary,
.t4-btn-ghost {
    background: var(--t4-surface);
    color: var(--t4-text);
}
.t4-btn-secondary:hover,
.t4-btn-ghost:hover {
    background: var(--t4-bg);
    border-color: color-mix(
        in srgb,
        var(--t4-border) 60%,
        var(--t4-primary) 40%
    );
}
.t4-btn-danger {
    background: var(--t4-danger);
    border-color: var(--t4-danger);
    color: #fff;
}
.t4-btn-success {
    background: var(--t4-success);
    border-color: var(--t4-success);
    color: #fff;
}
.t4-btn[disabled],
.t4-btn-secondary[disabled],
.t4-btn-danger[disabled],
.t4-btn-success[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}
.t4-btn svg,
.t4-btn-secondary svg,
.t4-btn-danger svg,
.t4-btn-success svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.t4-tabs {
    display: flex;
    gap: 5px;
    padding: 4px;
    margin-bottom: 16px;
    width: max-content;
    max-width: 100%;
    overflow: auto;
    border: 1px solid var(--t4-border);
    border-radius: 12px;
    background: var(--t4-surface);
}
.t4-tab {
    border: 0;
    background: transparent;
    color: var(--t4-muted);
    border-radius: 9px;
    padding: 9px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.t4-tab.is-active {
    background: var(--t4-primary);
    color: #fff;
}
.t4-panel[hidden] {
    display: none !important;
}
.t4-toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.t4-search {
    position: relative;
    flex: 1;
    min-width: 220px;
}
.t4-search svg {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    color: var(--t4-muted);
    pointer-events: none;
}
.t4-search .t4-control {
    padding-left: 39px;
}
.t4-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--t4-border);
    border-radius: 12px;
    background: var(--t4-surface);
}
.t4-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.t4-table th {
    padding: 11px 13px;
    text-align: left;
    color: var(--t4-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--t4-border);
    background: var(--t4-bg);
    white-space: nowrap;
}
.t4-table td {
    padding: 12px 13px;
    color: var(--t4-text);
    vertical-align: top;
    border-bottom: 1px solid var(--t4-border);
    line-height: 1.5;
}
.t4-table tbody tr:last-child td {
    border-bottom: 0;
}
.t4-table tbody tr:hover td {
    background: color-mix(in srgb, var(--t4-bg) 65%, transparent);
}
.t4-table-link {
    color: var(--t4-primary);
    font-weight: 750;
    text-decoration: none;
}
.t4-table-link:hover {
    text-decoration: underline;
}
.t4-table-note {
    max-width: 300px;
    color: var(--t4-muted);
    font-size: 12px;
    line-height: 1.55;
    white-space: normal;
}
.t4-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    word-break: break-all;
}
.t4-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 23px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    background: rgba(100, 116, 139, 0.12);
    color: var(--t4-muted);
}
.t4-badge.blue,
.t4-badge.info {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}
.t4-badge.green,
.t4-badge.success {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}
.t4-badge.amber,
.t4-badge.warning {
    background: rgba(245, 158, 11, 0.13);
    color: #d97706;
}
.t4-badge.red,
.t4-badge.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}
.t4-badge.purple {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}
html.theme4-html[data-t4-theme="dark"] .t4-badge.blue,
html.theme4-html[data-t4-theme="dark"] .t4-badge.info {
    color: #60a5fa;
}
html.theme4-html[data-t4-theme="dark"] .t4-badge.green,
html.theme4-html[data-t4-theme="dark"] .t4-badge.success {
    color: #4ade80;
}
html.theme4-html[data-t4-theme="dark"] .t4-badge.amber,
html.theme4-html[data-t4-theme="dark"] .t4-badge.warning {
    color: #fbbf24;
}
html.theme4-html[data-t4-theme="dark"] .t4-badge.red,
html.theme4-html[data-t4-theme="dark"] .t4-badge.danger {
    color: #f87171;
}
html.theme4-html[data-t4-theme="dark"] .t4-badge.purple {
    color: #c4b5fd;
}
.t4-empty {
    padding: 38px 18px;
    text-align: center;
    color: var(--t4-muted);
    font-size: 13px;
    line-height: 1.6;
}
.t4-empty svg {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    display: block;
    color: color-mix(in srgb, var(--t4-muted) 60%, transparent);
    stroke: currentColor;
    stroke-width: 1.4;
}
.t4-note {
    padding: 13px 15px;
    border: 1px solid var(--t4-border);
    border-radius: 11px;
    background: var(--t4-bg);
    color: var(--t4-muted);
    font-size: 12.5px;
    line-height: 1.65;
}
.t4-note.info {
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.075);
    color: var(--t4-text);
}
.t4-note.warning {
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(245, 158, 11, 0.085);
    color: var(--t4-text);
}
.t4-note.success {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.075);
    color: var(--t4-text);
}
.t4-code {
    margin: 0;
    padding: 15px;
    border: 1px solid var(--t4-border);
    border-radius: 11px;
    background: #0b1020;
    color: #bfdbfe;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre;
    overflow: auto;
}
.t4-copy-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.t4-copy-value {
    min-width: 0;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: var(--t4-text);
}
.t4-api-layout {
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.t4-api-nav {
    position: sticky;
    top: 82px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border: 1px solid var(--t4-border);
    border-radius: 12px;
    background: var(--t4-surface);
}
.t4-api-nav .t4-tab {
    text-align: left;
    width: 100%;
}
.t4-api-meta {
    display: grid;
    gap: 10px;
}
.t4-api-meta-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--t4-border);
}
.t4-api-meta-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.t4-api-key {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--t4-muted);
}
.t4-rule-prose {
    color: var(--t4-text);
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.t4-rule-prose h1,
.t4-rule-prose h2,
.t4-rule-prose h3 {
    color: var(--t4-text);
    line-height: 1.35;
    margin: 1.35em 0 0.55em;
}
.t4-rule-prose h1 {
    font-size: 22px;
}
.t4-rule-prose h2 {
    font-size: 18px;
}
.t4-rule-prose h3 {
    font-size: 15px;
}
.t4-rule-prose p {
    margin: 0.7em 0;
}
.t4-rule-prose ul,
.t4-rule-prose ol {
    padding-left: 1.3rem;
}
.t4-rule-prose a {
    color: var(--t4-primary);
    text-decoration: underline;
}
.t4-rule-prose img {
    height: auto;
    border-radius: 10px;
}
.t4-profile-card {
    text-align: center;
    padding: 22px 16px;
}
.t4-profile-avatar {
    width: 82px;
    height: 82px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(59, 130, 246, 0.12);
    color: var(--t4-primary);
    font-size: 26px;
    font-weight: 900;
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.t4-profile-name {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}
.t4-profile-handle {
    margin: 4px 0 16px;
    color: var(--t4-muted);
    font-size: 12px;
}
.t4-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.t4-mini-stat {
    padding: 9px 6px;
    border-radius: 10px;
    background: var(--t4-bg);
}
.t4-side-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 7px;
    border: 1px solid var(--t4-border);
    border-radius: 12px;
    background: var(--t4-surface);
}
.t4-side-tabs .t4-tab {
    text-align: left;
    width: 100%;
    padding: 10px 12px;
}
.t4-activity {
    list-style: none;
    padding: 0;
    margin: 0;
}
.t4-activity time {
    margin-left: auto;
    color: var(--t4-muted);
    white-space: nowrap;
}
.t4-qr {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 14px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
}
.t4-qr img {
    display: block;
    max-width: 190px;
}
.t4-switch {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--t4-text);
    font-size: 13px;
}
.t4-switch input {
    width: 16px;
    height: 16px;
}
.t4-order-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.t4-order-card {
    padding: 15px 16px;
    border: 1px solid var(--t4-border);
    border-radius: 12px;
    background: var(--t4-surface);
}
.t4-order-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.t4-order-code {
    font-size: 13px;
    font-weight: 850;
}
.t4-order-time {
    display: block;
    margin-top: 3px;
    color: var(--t4-muted);
    font-size: 11px;
    font-weight: 500;
}
.t4-order-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 13px;
}
.t4-order-meta {
    padding: 10px;
    border-radius: 9px;
    background: var(--t4-bg);
    color: var(--t4-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.t4-order-meta b {
    display: block;
    margin-top: 4px;
    color: var(--t4-text);
    font-size: 12px;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: 0;
    word-break: break-word;
}
.t4-order-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--t4-border);
}
.t4-money-plus {
    color: #16a34a;
    font-weight: 800;
}
.t4-money-minus {
    color: #dc2626;
    font-weight: 800;
}
.t4-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
}
.t4-product-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px;
    border: 1px solid var(--t4-border);
    border-radius: 13px;
    background: var(--t4-surface);
    box-shadow: var(--t4-shadow);
    transition:
        transform 0.16s,
        border-color 0.16s;
}
.t4-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
}
.t4-product-img {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--t4-bg);
}
.t4-product-fallback {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(59, 130, 246, 0.12);
    color: var(--t4-primary);
    font-size: 18px;
    font-weight: 900;
}
.t4-product-name {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 850;
}
.t4-product-note {
    margin: 0 0 9px;
    color: var(--t4-muted);
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.t4-product-hero {
    width: 100%;
    max-height: 310px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--t4-bg);
}
.t4-data-box {
    width: 100%;
    min-width: 190px;
    min-height: 62px;
    padding: 8px 10px;
    border: 1px solid var(--t4-border);
    border-radius: 9px;
    background: var(--t4-bg);
    color: var(--t4-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    resize: vertical;
}
.t4-ns-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.t4-ns-card {
    border: 1px solid rgba(59, 130, 246, 0.24);
    border-radius: 11px;
    overflow: hidden;
    background: rgba(59, 130, 246, 0.055);
}
.t4-ns-card span {
    display: block;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.18);
    color: var(--t4-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.t4-ns-card button {
    width: 100%;
    padding: 13px 12px;
    border: 0;
    background: transparent;
    color: var(--t4-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    word-break: break-all;
}
.t4-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.t4-service-card {
    padding: 15px;
    border: 1px solid var(--t4-border);
    border-radius: 13px;
    background: var(--t4-surface);
    box-shadow: var(--t4-shadow);
}
.t4-service-card h3 {
    margin: 0 0 5px;
    font-size: 14px;
}
.t4-service-card p {
    margin: 0;
    color: var(--t4-muted);
    font-size: 12px;
    line-height: 1.5;
}
.t4-service-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
}
.t4-service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 9px;
    background: var(--t4-bg);
    font-size: 12px;
    font-weight: 700;
}
.t4-service-link:hover {
    color: var(--t4-primary);
}
.t4-server-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.t4-server-option {
    display: block;
    cursor: pointer;
}
.t4-server-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.t4-server-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--t4-border);
    border-radius: 10px;
    background: var(--t4-surface);
    transition: 0.15s;
}
.t4-server-card strong {
    display: block;
    font-size: 12px;
}
.t4-server-card small {
    display: block;
    margin-top: 3px;
    color: var(--t4-muted);
    font-size: 10px;
}
.t4-server-option input:checked + .t4-server-card {
    border-color: var(--t4-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.09);
    background: rgba(59, 130, 246, 0.045);
}
.t4-server-price {
    color: var(--t4-primary);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}
.t4-order-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    margin-bottom: 14px;
    border-radius: 11px;
    background: var(--t4-bg);
}
.t4-order-total strong {
    display: block;
    color: var(--t4-primary);
    font-size: 20px;
}
.t4-order-total span {
    color: var(--t4-muted);
    font-size: 11px;
    text-align: right;
}
.t4-reactions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.t4-reaction input {
    position: absolute;
    opacity: 0;
}
.t4-reaction img {
    width: 34px;
    height: 34px;
    padding: 5px;
    border-radius: 9px;
    border: 1px solid var(--t4-border);
    cursor: pointer;
    background: var(--t4-surface);
}
.t4-reaction input:checked + img {
    border-color: var(--t4-primary);
    background: rgba(59, 130, 246, 0.08);
}
.t4-card-telcos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.t4-card-telco {
    height: 42px;
    border: 1px solid var(--t4-border);
    border-radius: 10px;
    background: var(--t4-surface);
    color: var(--t4-text);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.t4-card-telco.is-active {
    border-color: var(--t4-primary);
    color: var(--t4-primary);
    background: rgba(59, 130, 246, 0.06);
}
.t4-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.t4-kpi {
    padding: 15px;
    border: 1px solid var(--t4-border);
    border-radius: 12px;
    background: var(--t4-surface);
    box-shadow: var(--t4-shadow);
}
.t4-pager {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}
.t4-pager nav {
    max-width: 100%;
}
.t4-pager .pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.t4-pager .page-link,
.t4-pager nav > a,
.t4-pager nav > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--t4-border);
    border-radius: 8px;
    background: var(--t4-surface);
    color: var(--t4-muted);
    font-size: 12px;
}
.t4-pager .active .page-link {
    background: var(--t4-primary);
    border-color: var(--t4-primary);
    color: #fff;
}
.t4-pager .disabled .page-link {
    opacity: 0.45;
}
.t4-toast-wrap {
    position: fixed;
    right: 16px;
    bottom: 88px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(360px, calc(100vw - 32px));
}
.t4-toast {
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid var(--t4-border);
    background: var(--t4-surface);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.16);
    font-size: 12px;
    line-height: 1.5;
    color: var(--t4-text);
}
.t4-toast.success {
    border-color: rgba(34, 197, 94, 0.35);
}
.t4-toast.error {
    border-color: rgba(239, 68, 68, 0.35);
}
@media (max-width: 1050px) {
    .t4-grid-4,
    .t4-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .t4-layout-main-aside {
        grid-template-columns: 1fr;
    }
    .t4-order-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 860px) {
    .t4-layout-side,
    .t4-api-layout {
        grid-template-columns: 1fr;
    }
    .t4-api-nav {
        position: static;
        flex-direction: row;
        overflow: auto;
    }
    .t4-api-nav .t4-tab {
        width: auto;
    }
    .t4-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .t4-page-title {
        font-size: 19px;
    }
    .t4-page-card-head,
    .t4-page-card-body {
        padding: 14px;
    }
    .t4-grid-2,
    .t4-grid-3,
    .t4-grid-4,
    .t4-kpi-grid,
    .t4-order-grid,
    .t4-ns-grid {
        grid-template-columns: 1fr;
    }
    .t4-control-row {
        flex-direction: column;
    }
    .t4-control-row > button,
    .t4-control-row > .t4-btn,
    .t4-control-row > .t4-btn-secondary {
        width: 100%;
    }
    .t4-toolbar {
        align-items: stretch;
    }
    .t4-search {
        min-width: 100%;
    }
    .t4-toolbar > .t4-btn,
    .t4-toolbar > .t4-btn-secondary {
        width: 100%;
    }
    .t4-mini-stats {
        grid-template-columns: 1fr;
    }
    .t4-card-telcos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .t4-hide-mobile {
        display: none !important;
    }
    .t4-tabs {
        width: 100%;
    }
    .t4-tab {
        flex: 1;
    }
    .t4-api-meta-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .t4-activity li {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .t4-activity time {
        width: 100%;
        margin-left: 0;
    }
}
.t4-mini-stat b,
.t4-mini-stat strong {
    display: block;
    color: var(--t4-text);
    font-size: 12px;
    line-height: 1.35;
}
.t4-mini-stat small,
.t4-mini-stat span {
    display: block;
    margin-top: 3px;
    color: var(--t4-muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.t4-activity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.t4-activity > span,
.t4-activity li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--t4-border);
    border-radius: 10px;
    background: var(--t4-bg);
    font-size: 12px;
}
.t4-activity > small {
    margin-top: -34px;
    margin-right: 12px;
    margin-bottom: 18px;
    margin-left: auto;
    color: var(--t4-muted);
    font-size: 11px;
    pointer-events: none;
}
.t4-kpi small,
.t4-kpi span {
    display: block;
    color: var(--t4-muted);
    font-size: 11px;
    font-weight: 700;
}
.t4-kpi b,
.t4-kpi strong {
    display: block;
    margin-top: 7px;
    color: var(--t4-text);
    font-size: 20px;
    line-height: 1.2;
}
.t4-ns-card {
    padding: 12px;
}
.t4-ns-card small {
    display: block;
    color: var(--t4-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.t4-ns-card strong {
    display: block;
    margin: 7px 0 10px;
    color: var(--t4-primary);
    font-size: 13px;
    word-break: break-all;
}
.t4-reaction span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--t4-border);
    border-radius: 9px;
    background: var(--t4-surface);
    color: var(--t4-muted);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.t4-reaction input:checked + span {
    border-color: var(--t4-primary);
    background: rgba(59, 130, 246, 0.08);
    color: var(--t4-primary);
}
.t4-product-card,
.t4-service-link {
    color: inherit;
    text-decoration: none;
}
.t4-service-card > .t4-page-card-head {
    margin: -15px -15px 0;
}
.t4-service-card > .t4-service-links {
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .t4-activity > small {
        margin: 0 0 0 12px;
    }
}
.t4-resource-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(285px, 0.75fr);
    gap: 18px;
    align-items: start;
}
.t4-resource-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 2px 0 17px;
}
.t4-resource-metric {
    padding: 12px 13px;
    border: 1px solid var(--t4-border);
    border-radius: 11px;
    background: var(--t4-bg);
}
.t4-resource-metric span {
    display: block;
    color: var(--t4-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}
.t4-resource-metric strong {
    display: block;
    margin-top: 6px;
    color: var(--t4-text);
    font-size: 15px;
    font-weight: 850;
}
.t4-qty-control {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    height: 46px;
    border: 1px solid var(--t4-border);
    border-radius: 11px;
    overflow: hidden;
    background: var(--t4-surface);
}
.t4-qty-control button {
    border: 0;
    background: var(--t4-bg);
    color: var(--t4-text);
    font: inherit;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
}
.t4-qty-control button:hover {
    background: color-mix(in srgb, var(--t4-bg) 78%, var(--t4-primary) 22%);
}
.t4-qty-control input {
    width: 100%;
    min-width: 0;
    border: 0;
    border-left: 1px solid var(--t4-border);
    border-right: 1px solid var(--t4-border);
    outline: 0;
    background: var(--t4-surface);
    color: var(--t4-text);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    -moz-appearance: textfield;
}
.t4-qty-control input::-webkit-inner-spin-button,
.t4-qty-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.t4-resource-quick {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.t4-resource-quick button {
    height: 31px;
    min-width: 42px;
    padding: 0 10px;
    border: 1px solid var(--t4-border);
    border-radius: 8px;
    background: var(--t4-surface);
    color: var(--t4-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.t4-resource-quick button:hover {
    border-color: var(--t4-primary);
    color: var(--t4-primary);
}
.t4-resource-summary {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 10px;
    margin: 17px 0 14px;
    padding: 13px;
    border: 1px solid var(--t4-border);
    border-radius: 12px;
    background: var(--t4-bg);
}
.t4-resource-summary > div {
    min-width: 0;
    padding: 3px 8px;
}
.t4-resource-summary > div + div {
    border-left: 1px solid var(--t4-border);
}
.t4-resource-summary span {
    display: block;
    color: var(--t4-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}
.t4-resource-summary strong {
    display: block;
    margin-top: 5px;
    line-height: 1.3;
    word-break: break-word;
}
.t4-resource-summary b {
    display: block;
    margin-top: 5px;
    color: var(--t4-text);
    font-size: 14px;
    line-height: 1.3;
    word-break: break-word;
}
.t4-resource-summary strong {
    color: var(--t4-primary);
    font-size: 19px;
}
.t4-resource-buy {
    width: 100%;
    min-height: 46px;
}
.t4-resource-success {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 13px;
}
.t4-resource-success strong {
    color: var(--t4-success);
}
.t4-resource-success .t4-btn-secondary {
    margin-left: auto;
    height: 36px;
}
.t4-resource-product-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.t4-resource-product-head h3 {
    margin: 0 0 6px;
    color: var(--t4-text);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.4;
}
.t4-resource-product-image {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border: 1px solid var(--t4-border);
    border-radius: 13px;
    overflow: hidden;
    background: var(--t4-bg);
    display: grid;
    place-items: center;
    color: var(--t4-primary);
    font-size: 16px;
    font-weight: 900;
}
.t4-resource-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.t4-resource-copy {
    display: grid;
    gap: 12px;
}
.t4-resource-copy h4 {
    margin: 0 0 4px;
    color: var(--t4-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.t4-resource-copy p {
    margin: 0;
    color: var(--t4-text);
    font-size: 12.5px;
    line-height: 1.65;
    white-space: pre-line;
}
.t4-resource-orders {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.t4-resource-order-card {
    margin: 0;
}
.t4-resource-data-block {
    margin-top: 13px;
}
.t4-resource-data-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}
.t4-resource-data-head strong {
    font-size: 12px;
    color: var(--t4-text);
}
.t4-resource-data-head span {
    font-size: 10px;
    color: var(--t4-muted);
}
.t4-resource-data-block textarea {
    min-height: 86px;
}
.t4-account-check-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow: auto;
    padding-right: 3px;
}
.t4-account-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--t4-border);
    border-radius: 10px;
    background: var(--t4-bg);
    cursor: pointer;
}
.t4-account-check:hover {
    border-color: color-mix(
        in srgb,
        var(--t4-border) 50%,
        var(--t4-primary) 50%
    );
}
.t4-account-check input {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: var(--t4-primary);
}
.t4-account-check span {
    color: var(--t4-text);
    line-height: 1.5;
    word-break: break-all;
}
.t4-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 8px;
}
.t4-proof-grid a {
    display: block;
    aspect-ratio: 4/3;
    border: 1px solid var(--t4-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--t4-bg);
}
.t4-proof-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.t4-file-control {
    padding: 9px 12px;
    height: auto;
    min-height: 44px;
}
@media (max-width: 1050px) {
    .t4-resource-layout {
        grid-template-columns: 1fr;
    }
    .t4-resource-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .t4-resource-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .t4-resource-summary {
        grid-template-columns: 1fr;
    }
    .t4-resource-summary > div + div {
        border-left: 0;
        border-top: 1px solid var(--t4-border);
        padding-top: 10px;
    }
    .t4-resource-success {
        align-items: flex-start;
    }
    .t4-resource-success .t4-btn-secondary {
        width: 100%;
        margin-left: 0;
    }
    .t4-resource-order-card .t4-order-actions > * {
        flex: 1 1 100%;
    }
    .t4-account-check-list {
        max-height: none;
    }
    .t4-proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
body.t4-store-sheet-open {
    overflow: hidden;
    touch-action: none;
}
.t4-storefront {
    --t4-shop-accent: var(--t4-primary);
    --t4-shop-text: var(--t4-text);
    --t4-shop-muted: var(--t4-muted);
    --t4-shop-card-radius: 12px;
    width: 100%;
    min-width: 0;
}
.t4-store-hero {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 6px;
}
.t4-store-hero-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--t4-bg), var(--t4-surface));
    color: var(--t4-shop-accent);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}
.t4-store-hero-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.t4-store-crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--t4-shop-muted);
    font-size: 12px;
    line-height: 1.3;
}
.t4-store-crumb a {
    color: inherit;
    text-decoration: none;
}
.t4-store-crumb a:hover {
    color: var(--t4-shop-text);
}
.t4-store-hero h1 {
    margin: 2px 0 0;
    color: var(--t4-shop-text);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}
.t4-store-hero-sub {
    margin: 0 0 16px;
    color: var(--t4-shop-muted);
    font-size: 13px;
    line-height: 1.5;
}
.t4-store-tabs {
    margin-bottom: 14px;
}
.t4-store-desktop-only {
    display: none;
}

.t4-store-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 4px;
}
.t4-store-category {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 8px 0;
    min-width: 0;
    font: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.t4-store-category[hidden] {
    display: none !important;
}
.t4-store-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid transparent;
    background: color-mix(in srgb, var(--t4-bg) 88%, var(--t4-border) 12%);
    transition:
        border-color 0.18s,
        background 0.18s,
        box-shadow 0.18s;
}
.t4-store-category:hover .t4-store-category-icon {
    background: color-mix(in srgb, var(--t4-bg) 70%, var(--t4-border) 30%);
}
.t4-store-category.is-active .t4-store-category-icon {
    border-color: var(--t4-shop-accent);
    background: color-mix(in srgb, var(--t4-shop-accent) 8%, transparent);
    box-shadow: 0 1px 6px
        color-mix(in srgb, var(--t4-shop-accent) 20%, transparent);
}
.t4-store-category:focus-visible {
    outline: 0;
}
.t4-store-category:focus-visible .t4-store-category-icon {
    outline: 3px solid
        color-mix(in srgb, var(--t4-shop-accent) 28%, transparent);
    outline-offset: 2px;
}
.t4-store-category-icon img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}
.t4-store-category-icon-all {
    color: var(--t4-shop-accent);
}
.t4-store-category-icon-all svg {
    width: 28px;
    height: 28px;
}
.t4-store-category-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--t4-shop-muted);
    font-size: 13px;
    font-weight: 800;
}
.t4-store-category-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    width: 100%;
    color: var(--t4-shop-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}
.t4-store-category.is-active .t4-store-category-name {
    color: var(--t4-shop-accent);
}
.t4-store-category:hover .t4-store-category-name {
    color: var(--t4-shop-text);
}
.t4-store-category-more {
    display: none;
}

.t4-store-product-section {
    margin-top: 10px;
}
.t4-store-products-head {
    display: none;
}
.t4-store-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .t4-store-product-grid {
        gap: 18px;
    }
}
@media (min-width: 1100px) {
    .t4-store-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}
.t4-store-product-card.apb5-card,
.t4-store-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding: 0;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    background: #fff;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.04),
        0 4px 14px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    transition:
        border-color 0.22s,
        box-shadow 0.22s,
        transform 0.22s;
}
.t4-store-product-card[hidden],
.t4-store-product-card.is-paged-out {
    display: none !important;
}
@media (hover: hover) {
    .t4-store-product-card:hover {
        border-color: #dbe6ff;
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
        transform: translateY(-2px);
    }
}
.apb5-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.apb5-image-wrap.t4-store-product-image,
.t4-store-product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    flex: none;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    color: #64748b;
    font-size: 18px;
    font-weight: 800;
    box-shadow: none;
}
.apb5-image-wrap img,
.t4-store-product-image img,
.apb5-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.apb5-image-fallback {
    font-size: 18px;
    font-weight: 800;
    color: #94a3b8;
}
.apb5-info.t4-store-product-content,
.t4-store-product-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 10px;
}
.apb5-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}
.apb5-code {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
}
.apb5-name.t4-store-product-title,
.t4-store-product-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}
.apb5-name:hover {
    color: #2563eb;
}
.apb5-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.45;
}
.apb5-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 2px;
}
.apb5-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}
.apb5-stat svg {
    flex-shrink: 0;
    opacity: 0.75;
}
.apb5-stat strong {
    color: #334155;
    font-weight: 700;
}
.t4-store-stock,
.apb5-stock.t4-store-stock {
    align-self: auto;
    display: inline-flex;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 0;
}
.t4-store-stock.is-empty {
    color: #94a3b8;
}
.apb5-footer.t4-store-product-footer,
.t4-store-product-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 14px 14px;
    border-top: 1px solid #f1f5f9;
}
.apb5-price.t4-store-price-wrap,
.t4-store-price-wrap {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.t4-store-price {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}
.apb5-detail {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    text-decoration: none;
    transition:
        border-color 0.15s,
        color 0.15s,
        background 0.15s;
}
.apb5-detail:hover {
    border-color: #bfdbfe;
    color: #2563eb;
    background: #eff6ff;
}
.apb5-buy.t4-store-buy-button,
.t4-store-buy-button {
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background 0.16s,
        box-shadow 0.16s,
        transform 0.15s;
}
.apb5-buy.t4-store-buy-button:hover:not(:disabled),
.t4-store-buy-button:hover:not(:disabled) {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.t4-store-buy-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 2px;
}
.apb5-buy-disabled.t4-store-buy-button,
.t4-store-buy-button:disabled,
.t4-store-buy-button.is-sold-out {
    cursor: not-allowed;
    opacity: 1;
    background: #f1f5f9;
    color: #94a3b8;
    box-shadow: none;
}
.t4-store-cart-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    flex: 0 0 16px;
}
.t4-store-cart-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}
.t4-store-filter-empty {
    padding: 28px 16px;
    border: 1px dashed var(--t4-border);
    border-radius: 12px;
    color: var(--t4-shop-muted);
    font-size: 13px;
    text-align: center;
}
.t4-store-load-more {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}
.t4-store-load-more button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px dashed
        color-mix(in srgb, var(--t4-shop-accent) 50%, transparent);
    border-radius: 8px;
    background: transparent;
    color: var(--t4-shop-accent);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s;
}
.t4-store-load-more button:hover {
    background: color-mix(in srgb, var(--t4-shop-accent) 6%, transparent);
}
.t4-store-load-more[hidden] {
    display: none !important;
}

.t4-store-note-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid
        color-mix(in srgb, var(--t4-warning) 24%, var(--t4-border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--t4-warning) 8%, transparent);
}
.t4-store-note-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--t4-warning) 16%, transparent);
    color: #d97706;
    font-size: 13px;
    font-weight: 800;
}
.t4-store-note-card strong {
    color: var(--t4-text);
    font-size: 12.5px;
}
.t4-store-note-card p {
    margin: 3px 0 0;
    color: var(--t4-muted);
    font-size: 12px;
    line-height: 1.6;
}

.t4-store-sheet-layer {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.t4-store-sheet-layer[hidden] {
    display: none !important;
}
.t4-store-sheet-layer.is-open {
    opacity: 1;
    pointer-events: auto;
}
.t4-store-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.t4-store-sheet {
    position: relative;
    z-index: 1;
    max-height: min(790px, calc(100dvh - 48px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--t4-border);
    background: var(--t4-surface);
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.27);
    transform: translateY(16px) scale(0.985);
    transition: transform 0.22s ease;
}
.t4-store-sheet-layer.is-open .t4-store-sheet {
    transform: translateY(0) scale(1);
}
.t4-store-sheet-handle {
    display: none;
}
.t4-store-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--t4-border);
}
.t4-store-sheet-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--t4-shop-accent);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.t4-store-sheet-header h2 {
    margin: 0;
    color: var(--t4-text);
    font-weight: 800;
}
.t4-store-sheet-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid var(--t4-border);
    border-radius: 12px;
    background: var(--t4-bg);
    color: var(--t4-muted);
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.t4-store-sheet-close:hover {
    color: var(--t4-text);
}
.t4-store-sheet-close:focus-visible {
    outline: 3px solid
        color-mix(in srgb, var(--t4-shop-accent) 28%, transparent);
    outline-offset: 2px;
}
.t4-store-sheet-body {
    overscroll-behavior: contain;
}
.t4-store-sheet-product-head {
    padding: 0 0 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--t4-border);
}
.t4-store-sheet-product-head .t4-resource-product-image {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
    border-radius: 16px;
}
.t4-store-sheet-product-head .t4-resource-product-image img {
    object-fit: cover;
}
.t4-store-sheet-product-meta {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.t4-store-sheet-stock {
    color: var(--t4-muted);
    font-size: 12px;
    font-weight: 700;
}
.t4-store-sheet-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 16px;
}
.t4-store-sheet-qty {
    margin: 0;
}
.t4-store-sheet-summary {
    margin: 16px 0 13px;
}
.t4-store-sheet-actionbar {
    display: flex;
    align-items: center;
    gap: 12px;
}
.t4-store-sheet-action-total {
    display: none;
    min-width: 0;
}
.t4-store-sheet-action-total span {
    display: block;
    color: var(--t4-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}
.t4-store-sheet-action-total strong {
    display: block;
    margin-top: 2px;
    color: var(--t4-shop-accent);
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}
.t4-store-confirm-buy {
    flex: 1;
    font-weight: 800;
    background: var(--t4-shop-accent);
    border-color: var(--t4-shop-accent);
    color: #fff;
}
.t4-store-confirm-buy:hover:not(:disabled) {
    filter: brightness(0.96);
}
.t4-store-confirm-buy:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}
.t4-store-sheet-success {
    padding: 12px 13px;
}
.t4-store-sheet-success > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}
.t4-store-sheet-success span {
    color: var(--t4-muted);
    font-size: 12px;
    line-height: 1.45;
}
.t4-store-product-details {
    margin-top: 14px;
    border: 1px solid var(--t4-border);
    border-radius: 13px;
    background: var(--t4-bg);
    overflow: hidden;
}
.t4-store-product-details summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    color: var(--t4-text);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.t4-store-product-details summary::-webkit-details-marker {
    display: none;
}
.t4-store-product-details summary::after {
    content: "＋";
    color: var(--t4-muted);
    font-size: 16px;
    font-weight: 500;
}
.t4-store-product-details[open] summary::after {
    content: "−";
}
.t4-store-product-details .t4-resource-copy {
    padding: 0 14px 14px;
}
.t4-store-sheet[aria-busy="true"] .t4-store-sheet-close {
    pointer-events: none;
    opacity: 0.45;
}

html.theme4-html[data-t4-theme="dark"] .t4-store-product-card {
    background: linear-gradient(135deg, #1a1a1a, #131313);
    border-color: rgba(255, 255, 255, 0.03);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.3);
}
html.theme4-html[data-t4-theme="dark"] .t4-store-category-icon {
    background: color-mix(in srgb, var(--t4-surface) 90%, #000);
}
html.theme4-html[data-t4-theme="dark"] .t4-store-sheet-backdrop {
    background: rgba(0, 0, 0, 0.64);
}

@media (min-width: 640px) {
    .t4-store-category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .t4-store-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 768px) {
    .t4-store-category-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .t4-store-category-grid {
        grid-template-columns: repeat(13, minmax(0, 1fr));
        gap: 8px 4px;
    }
    .t4-store-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .t4-store-desktop-only {
        display: flex;
    }
}

@media (max-width: 700px) {
    .theme4-body:has(.t4-storefront) .t4-content {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
    .t4-store-sheet-layer {
        align-items: flex-end;
        padding: 0;
    }
    .t4-store-sheet {
        width: 100%;
        max-height: min(92dvh, 880px);
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        transform: translateY(100%);
    }
    .t4-store-sheet-layer.is-open .t4-store-sheet {
        transform: translateY(0);
    }
    .t4-store-sheet-handle {
        display: block;
        width: 46px;
        height: 4px;
        flex: 0 0 4px;
        margin: 8px auto 0;
        border-radius: 999px;
        background: color-mix(in srgb, var(--t4-muted) 35%, transparent);
    }
    .t4-store-sheet-header h2 {
        font-size: 16px;
        line-height: 1.34;
    }
    .t4-store-sheet-close {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
    .t4-store-sheet-body {
        padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
    }
    .t4-store-sheet-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
    .t4-store-sheet-summary {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 0;
        overflow: hidden;
    }
    .t4-store-sheet-summary > div {
        padding: 10px 12px;
    }
    .t4-store-sheet-summary > div + div {
        border-left: 1px solid var(--t4-border);
        border-top: 0;
    }
    .t4-store-sheet-summary > div:first-child {
        grid-column: 1/-1;
        border-bottom: 1px solid var(--t4-border);
    }
    .t4-store-sheet-summary > div:nth-child(2) {
        border-left: 0;
    }
    .t4-store-sheet-actionbar {
        position: sticky;
        bottom: calc(-16px - env(safe-area-inset-bottom));
        z-index: 3;
        margin: 6px -16px calc(-16px - env(safe-area-inset-bottom));
        padding: 11px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--t4-border);
        background: color-mix(in srgb, var(--t4-surface) 94%, transparent);
        backdrop-filter: blur(12px);
    }
    .t4-store-sheet-action-total {
        display: block;
        flex: 0 0 auto;
    }
    .t4-store-confirm-buy {
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t4-store-category-icon,
    .t4-store-product-card,
    .t4-store-buy-button,
    .t4-store-sheet-layer,
    .t4-store-sheet {
        transition: none !important;
    }
}
.t4-store-sheet {
    width: min(720px, 100%);
    max-height: min(760px, calc(100dvh - 48px));
    border-radius: 22px;
}
.t4-store-sheet-header {
    padding: 16px 20px 14px;
}
.t4-store-sheet-header h2 {
    font-size: 17px;
    line-height: 1.35;
}
.t4-store-sheet-body {
    padding: 0;
    overflow: auto;
}
.t4-buy-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    min-height: 430px;
}
.t4-buy-product-panel {
    padding: 26px 24px;
    background: var(--t4-bg);
    border-right: 1px solid var(--t4-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
.t4-buy-product-image {
    width: 78px;
    height: 78px;
    border-radius: 16px;
    border: 1px solid var(--t4-border);
    background: var(--t4-surface);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--t4-shop-accent);
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 14px;
}
.t4-buy-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.t4-buy-category {
    margin-bottom: 9px;
}
.t4-buy-product-title {
    margin: 0;
    color: var(--t4-text);
    font-size: 16px;
    line-height: 1.42;
    font-weight: 850;
    text-transform: uppercase;
    word-break: break-word;
}
.t4-buy-stock {
    margin-top: 7px;
    color: var(--t4-muted);
    font-size: 12px;
    font-weight: 700;
}
.t4-buy-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 13px;
}
.t4-buy-price-row strong {
    color: var(--t4-shop-accent);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 850;
}
.t4-buy-product-description {
    margin: 14px 0 0;
    color: var(--t4-muted);
    font-size: 12px;
    line-height: 1.65;
}
.t4-buy-product-limits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 18px;
}
.t4-buy-product-limits > div {
    padding: 9px 10px;
    border: 1px solid var(--t4-border);
    border-radius: 10px;
    background: var(--t4-surface);
    min-width: 0;
}
.t4-buy-product-limits span {
    display: block;
    color: var(--t4-muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.t4-buy-product-limits strong {
    display: block;
    margin-top: 3px;
    color: var(--t4-text);
    font-size: 12px;
}
.t4-buy-checkout-panel {
    padding: 22px 24px 24px;
    min-width: 0;
    background: var(--t4-surface);
}
.t4-buy-checkout-balance {
    margin-bottom: 22px;
}
.t4-buy-checkout-balance span {
    display: block;
    color: var(--t4-muted);
    font-size: 12px;
    line-height: 1.4;
}
.t4-buy-checkout-balance strong {
    display: block;
    margin-top: 4px;
    color: var(--t4-text);
    font-size: 17px;
    font-weight: 850;
}
.t4-buy-field {
    margin-top: 18px;
}
.t4-buy-field:first-of-type {
    margin-top: 0;
}
.t4-buy-field .t4-label {
    margin-bottom: 7px;
}
.t4-buy-field .t4-label em {
    font-style: normal;
    color: var(--t4-muted);
}
.t4-buy-qty {
    height: 40px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    border: 1px solid var(--t4-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--t4-surface);
}
.t4-buy-qty button {
    border: 0;
    background: transparent;
    color: var(--t4-text);
    font-size: 21px;
    font-weight: 500;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.t4-buy-qty button:hover:not(:disabled) {
    background: var(--t4-bg);
    color: var(--t4-shop-accent);
}
.t4-buy-qty button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.t4-buy-qty input {
    width: 100%;
    min-width: 0;
    border: 0;
    border-left: 1px solid var(--t4-border);
    border-right: 1px solid var(--t4-border);
    background: transparent;
    color: var(--t4-text);
    text-align: center;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    outline: 0;
    -moz-appearance: textfield;
}
.t4-buy-qty input::-webkit-outer-spin-button,
.t4-buy-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.t4-buy-quick {
    margin-top: 8px;
}
.t4-buy-input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--t4-border);
    border-radius: 9px;
    background: var(--t4-surface);
    color: var(--t4-text);
    font: inherit;
    font-size: 13px;
    padding: 0 12px;
    outline: 0;
    transition:
        border-color 0.16s,
        box-shadow 0.16s;
}
.t4-buy-input::placeholder {
    color: var(--t4-muted);
}
.t4-buy-input:focus {
    border-color: color-mix(
        in srgb,
        var(--t4-shop-accent) 50%,
        var(--t4-border)
    );
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--t4-shop-accent) 10%, transparent);
}
.t4-buy-totals {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--t4-border);
}
.t4-buy-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--t4-muted);
    font-size: 12px;
    line-height: 1.5;
}
.t4-buy-totals > div + div {
    margin-top: 9px;
}
.t4-buy-totals strong {
    color: var(--t4-text);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.t4-buy-totals .is-total {
    font-size: 14px;
    color: var(--t4-text);
    font-weight: 800;
}
.t4-buy-totals .is-total strong {
    color: var(--t4-shop-accent);
    font-size: 17px;
}
.t4-buy-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 15px;
    color: var(--t4-muted);
    font-size: 11px;
    line-height: 1.45;
    cursor: pointer;
}
.t4-buy-terms input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    accent-color: var(--t4-shop-accent);
}
.t4-buy-terms a {
    color: var(--t4-shop-accent);
    font-weight: 800;
    text-decoration: none;
}
.t4-buy-terms a:hover {
    text-decoration: underline;
}
.t4-store-confirm-buy {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    border-radius: 10px;
    font-size: 14px;
    letter-spacing: 0.01em;
}
.t4-store-confirm-buy:disabled {
    filter: none;
}
.t4-buy-details {
    margin-top: 12px;
}
.t4-buy-details .t4-resource-copy {
    padding-bottom: 12px;
}
.t4-buy-details .t4-resource-copy p {
    font-size: 11px;
    line-height: 1.55;
}
.t4-store-sheet-success {
    margin-top: 12px;
}
@media (max-width: 700px) {
    .t4-store-sheet {
        max-height: min(94dvh, 900px);
        border-radius: 22px 22px 0 0;
    }
    .t4-store-sheet-header {
        padding: 10px 16px 11px;
    }
    .t4-buy-layout {
        display: block;
        min-height: 0;
    }
    .t4-buy-product-panel {
        padding: 18px 16px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--t4-border);
    }
    .t4-buy-product-image {
        width: 62px;
        height: 62px;
        border-radius: 14px;
        margin-bottom: 10px;
    }
    .t4-buy-product-title {
        font-size: 14px;
    }
    .t4-buy-price-row strong {
        font-size: 18px;
    }
    .t4-buy-product-description {
        margin-top: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .t4-buy-product-limits {
        margin-top: 14px;
        padding-top: 0;
    }
    .t4-buy-product-limits > div {
        padding: 8px;
    }
    .t4-buy-checkout-panel {
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    }
    .t4-buy-checkout-balance {
        margin-bottom: 17px;
    }
    .t4-buy-field {
        margin-top: 15px;
    }
    .t4-buy-totals {
        margin-top: 17px;
    }
    .t4-store-confirm-buy {
        margin-top: 13px;
    }
}
.t4-pay-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
}
.t4-pay-method {
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: 0.15s;
}
.t4-pay-method strong {
    display: block;
    font-size: 13px;
    color: var(--t4-shop-text, #111);
    margin-bottom: 2px;
}
.t4-pay-method span {
    display: block;
    font-size: 11px;
    color: var(--t4-shop-muted, #6b7280);
}
.t4-pay-method.is-active {
    border-color: var(--t4-shop-accent, #3b82f6);
    background: color-mix(in srgb, var(--t4-shop-accent, #3b82f6) 10%, #fff);
    box-shadow: 0 0 0 2px
        color-mix(in srgb, var(--t4-shop-accent, #3b82f6) 18%, transparent);
}
.t4-pay-bank-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.t4-pay-bank-item {
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.t4-pay-bank-item.is-active {
    border-color: var(--t4-shop-accent, #3b82f6);
    color: var(--t4-shop-accent, #3b82f6);
    background: color-mix(in srgb, var(--t4-shop-accent, #3b82f6) 8%, #fff);
}
.t4-terms-layout > .t4-terms-aside {
    display: grid;
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.t4-terms-layout .t4-terms-commitment ul {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}
.t4-terms-layout .t4-terms-commitment li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #27415e;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}
.t4-terms-layout .t4-terms-support-ticket,
.t4-terms-layout .t4-terms-support-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 0;
    border-radius: 13px;
    text-decoration: none;
}
.t4-terms-layout .t4-terms-support-ticket {
    background: #2c66eb;
    color: #fff;
}
.t4-terms-layout .t4-terms-support-contact {
    background: var(--t4-bg);
    color: var(--t4-text);
}
